From 63bf8a302ab47f06a89640475463d9209d9c0ba5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 5 Nov 2024 09:18:24 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../V1/Client/AccessContextManagerClient.php | 52 +- .../MarketingplatformAdminServiceClient.php | 10 +- .../src/V1/Client/ArtifactRegistryClient.php | 102 +- .../src/V2/Client/RepositoryManagerClient.php | 34 +- .../src/V1/Client/ClusterManagerClient.php | 68 +- .../src/V1/Client/ContainerAnalysisClient.php | 8 +- .../Client/FlexTemplatesServiceClient.php | 2 +- .../src/V1beta3/Client/JobsV1Beta3Client.php | 14 +- .../V1beta3/Client/MessagesV1Beta3Client.php | 2 +- .../V1beta3/Client/MetricsV1Beta3Client.php | 6 +- .../V1beta3/Client/SnapshotsV1Beta3Client.php | 6 +- .../V1beta3/Client/TemplatesServiceClient.php | 6 +- .../src/V1/Client/DataprocMetastoreClient.php | 46 +- .../DataprocMetastoreFederationClient.php | 20 +- .../Client/DataprocMetastoreClient.php | 48 +- .../DataprocMetastoreFederationClient.php | 20 +- .../V1beta/Client/DataprocMetastoreClient.php | 48 +- .../DataprocMetastoreFederationClient.php | 20 +- Datastore/src/V1/Client/DatastoreClient.php | 16 +- .../src/V1/Client/DatastoreAdminClient.php | 12 +- Debugger/src/V2/Client/Controller2Client.php | 6 +- Debugger/src/V2/Client/Debugger2Client.php | 10 +- .../src/V1/Client/CompletionServiceClient.php | 10 +- .../src/V1/Client/ControlServiceClient.php | 10 +- .../ConversationalSearchServiceClient.php | 26 +- .../src/V1/Client/DataStoreServiceClient.php | 10 +- .../src/V1/Client/DocumentServiceClient.php | 16 +- .../src/V1/Client/EngineServiceClient.php | 10 +- .../GroundedGenerationServiceClient.php | 4 +- .../src/V1/Client/ProjectServiceClient.php | 2 +- .../src/V1/Client/RankServiceClient.php | 2 +- .../V1/Client/RecommendationServiceClient.php | 2 +- .../src/V1/Client/SchemaServiceClient.php | 10 +- .../src/V1/Client/SearchServiceClient.php | 4 +- .../V1/Client/SearchTuningServiceClient.php | 4 +- .../Client/SiteSearchEngineServiceClient.php | 24 +- .../src/V1/Client/UserEventServiceClient.php | 8 +- Dlp/src/V2/Client/DlpServiceClient.php | 110 +- .../Client/DocumentProcessorServiceClient.php | 48 +- Domains/src/V1/Client/DomainsClient.php | 30 +- .../src/V1/Client/EdgeNetworkClient.php | 56 +- .../Client/ErrorGroupServiceClient.php | 4 +- .../Client/ErrorStatsServiceClient.php | 6 +- .../Client/ReportErrorsServiceClient.php | 2 +- .../Client/EssentialContactsServiceClient.php | 14 +- Eventarc/src/V1/Client/EventarcClient.php | 88 +- .../src/V1/Client/PublisherClient.php | 6 +- .../Type/DeviceResources.php | Bin 1322 -> 0 bytes .../Type/DeviceEncryptionStatus.php | 68 - .../Type/DeviceManagementLevel.php | 71 - .../AccessContextManager/Type/OsType.php | 90 - .../V1/AccessContextManager.php | Bin 13363 -> 0 bytes .../Accesscontextmanager/V1/AccessLevel.php | Bin 2836 -> 0 bytes .../Accesscontextmanager/V1/AccessPolicy.php | 38 - .../V1/GcpUserAccessBinding.php | 35 - .../V1/ServicePerimeter.php | Bin 3802 -> 0 bytes .../AccessContextManagerOperationMetadata.php | 33 - .../AccessContextManager/V1/AccessLevel.php | 312 -- .../AccessContextManager/V1/AccessPolicy.php | 371 -- .../AccessContextManager/V1/BasicLevel.php | 117 - .../BasicLevel/ConditionCombiningFunction.php | 62 - .../V1/CommitServicePerimetersRequest.php | 147 - .../V1/CommitServicePerimetersResponse.php | 80 - .../AccessContextManager/V1/Condition.php | 331 -- .../V1/CreateAccessLevelRequest.php | 158 - .../V1/CreateGcpUserAccessBindingRequest.php | 133 - .../V1/CreateServicePerimeterRequest.php | 158 - .../AccessContextManager/V1/CustomLevel.php | 79 - .../V1/DeleteAccessLevelRequest.php | 97 - .../V1/DeleteAccessPolicyRequest.php | 87 - .../V1/DeleteGcpUserAccessBindingRequest.php | 82 - .../V1/DeleteServicePerimeterRequest.php | 97 - .../AccessContextManager/V1/DevicePolicy.php | 253 - .../V1/GcpUserAccessBinding.php | 188 - .../GcpUserAccessBindingOperationMetadata.php | 35 - .../V1/GetAccessLevelRequest.php | 159 - .../V1/GetAccessPolicyRequest.php | 87 - .../V1/GetGcpUserAccessBindingRequest.php | 82 - .../V1/GetServicePerimeterRequest.php | 97 - .../AccessContextManager/V1/LevelFormat.php | 63 - .../V1/ListAccessLevelsRequest.php | 223 - .../V1/ListAccessLevelsResponse.php | 109 - .../V1/ListAccessPoliciesRequest.php | 151 - .../V1/ListAccessPoliciesResponse.php | 105 - .../V1/ListGcpUserAccessBindingsRequest.php | 166 - .../V1/ListGcpUserAccessBindingsResponse.php | 106 - .../V1/ListServicePerimetersRequest.php | 181 - .../V1/ListServicePerimetersResponse.php | 109 - .../AccessContextManager/V1/OsConstraint.php | 155 - .../V1/ReplaceAccessLevelsRequest.php | 192 - .../V1/ReplaceAccessLevelsResponse.php | 72 - .../V1/ReplaceServicePerimetersRequest.php | 192 - .../V1/ReplaceServicePerimetersResponse.php | 72 - .../V1/ServicePerimeter.php | 480 -- .../V1/ServicePerimeter/PerimeterType.php | 69 - .../V1/ServicePerimeterConfig.php | 348 -- .../ServicePerimeterConfig/ApiOperation.php | 148 - .../V1/ServicePerimeterConfig/EgressFrom.php | 130 - .../ServicePerimeterConfig/EgressPolicy.php | 173 - .../V1/ServicePerimeterConfig/EgressTo.php | 220 - .../ServicePerimeterConfig/IdentityType.php | 76 - .../V1/ServicePerimeterConfig/IngressFrom.php | 166 - .../ServicePerimeterConfig/IngressPolicy.php | 168 - .../ServicePerimeterConfig/IngressSource.php | 182 - .../V1/ServicePerimeterConfig/IngressTo.php | 163 - .../ServicePerimeterConfig/MethodSelector.php | 130 - .../VpcAccessibleServices.php | 121 - .../V1/UpdateAccessLevelRequest.php | 156 - .../V1/UpdateAccessPolicyRequest.php | 136 - .../V1/UpdateGcpUserAccessBindingRequest.php | 163 - .../V1/UpdateServicePerimeterRequest.php | 141 - .../commit_service_perimeters.php | 103 - .../create_access_level.php | 94 - .../create_access_policy.php | 72 - .../create_gcp_user_access_binding.php | 123 - .../create_service_perimeter.php | 95 - .../delete_access_level.php | 89 - .../delete_access_policy.php | 86 - .../delete_gcp_user_access_binding.php | 87 - .../delete_service_perimeter.php | 92 - .../get_access_level.php | 77 - .../get_access_policy.php | 74 - .../get_gcp_user_access_binding.php | 76 - .../get_iam_policy.php | 72 - .../get_service_perimeter.php | 80 - .../list_access_levels.php | 82 - .../list_access_policies.php | 82 - .../list_gcp_user_access_bindings.php | 78 - .../list_service_perimeters.php | 82 - .../replace_access_levels.php | 106 - .../replace_service_perimeters.php | 102 - .../set_iam_policy.php | 78 - .../test_iam_permissions.php | 83 - .../update_access_level.php | 81 - .../update_access_policy.php | 79 - .../update_gcp_user_access_binding.php | 115 - .../update_service_perimeter.php | 81 - .../V1/Client/AccessContextManagerClient.php | 1234 ----- .../v1/src/V1/gapic_metadata.json | 148 - .../access_context_manager_client_config.json | 162 - ...cess_context_manager_descriptor_config.php | 472 -- ...ess_context_manager_rest_client_config.php | 359 -- .../Client/AccessContextManagerClientTest.php | 2873 ---------- .../Admin/V1Alpha/MarketingplatformAdmin.php | Bin 4265 -> 0 bytes .../Admin/V1Alpha/Resources.php | Bin 1932 -> 0 bytes .../Admin/V1alpha/AnalyticsAccountLink.php | 202 - .../Admin/V1alpha/AnalyticsServiceLevel.php | 61 - .../CreateAnalyticsAccountLinkRequest.php | 132 - .../DeleteAnalyticsAccountLinkRequest.php | 91 - .../Admin/V1alpha/GetOrganizationRequest.php | 86 - .../Admin/V1alpha/LinkVerificationState.php | 63 - .../ListAnalyticsAccountLinksRequest.php | 182 - .../ListAnalyticsAccountLinksResponse.php | 105 - .../Admin/V1alpha/Organization.php | 105 - .../SetPropertyServiceLevelRequest.php | 166 - .../SetPropertyServiceLevelResponse.php | 33 - .../create_analytics_account_link.php | 94 - .../delete_analytics_account_link.php | 78 - .../get_organization.php | 72 - .../list_analytics_account_links.php | 78 - .../set_property_service_level.php | 90 - .../MarketingplatformAdminServiceClient.php | 440 -- .../v1alpha/src/V1alpha/gapic_metadata.json | 43 - ...gplatform_admin_service_client_config.json | 60 - ...atform_admin_service_descriptor_config.php | 102 - ...tform_admin_service_rest_client_config.php | 86 - ...arketingplatformAdminServiceClientTest.php | 461 -- .../Artifactregistry/V1/AptArtifact.php | Bin 2189 -> 0 bytes .../Devtools/Artifactregistry/V1/Artifact.php | 113 - .../Artifactregistry/V1/Attachment.php | 66 - .../Devtools/Artifactregistry/V1/File.php | Bin 2477 -> 0 bytes .../Devtools/Artifactregistry/V1/Generic.php | 36 - .../Devtools/Artifactregistry/V1/Package.php | 60 - .../Artifactregistry/V1/Repository.php | Bin 10174 -> 0 bytes .../Devtools/Artifactregistry/V1/Rule.php | Bin 2338 -> 0 bytes .../Devtools/Artifactregistry/V1/Service.php | 116 - .../Devtools/Artifactregistry/V1/Settings.php | Bin 1939 -> 0 bytes .../Devtools/Artifactregistry/V1/Tag.php | 53 - .../Devtools/Artifactregistry/V1/Version.php | Bin 2901 -> 0 bytes .../Artifactregistry/V1/VpcscConfig.php | Bin 1693 -> 0 bytes .../Artifactregistry/V1/YumArtifact.php | Bin 2138 -> 0 bytes .../Cloud/ArtifactRegistry/V1/AptArtifact.php | 239 - .../V1/AptArtifact/PackageType.php | 64 - .../Cloud/ArtifactRegistry/V1/Attachment.php | 412 -- .../V1/BatchDeleteVersionsMetadata.php | 67 - .../V1/BatchDeleteVersionsRequest.php | 156 - .../ArtifactRegistry/V1/CleanupPolicy.php | 179 - .../V1/CleanupPolicy/Action.php | 64 - .../V1/CleanupPolicyCondition.php | 269 - .../V1/CleanupPolicyCondition/TagState.php | 71 - .../V1/CleanupPolicyMostRecentVersions.php | 112 - .../V1/CreateAttachmentRequest.php | 168 - .../V1/CreateRepositoryRequest.php | 168 - .../ArtifactRegistry/V1/CreateRuleRequest.php | 163 - .../ArtifactRegistry/V1/CreateTagRequest.php | 162 - .../V1/DeleteAttachmentRequest.php | 81 - .../ArtifactRegistry/V1/DeleteFileRequest.php | 81 - .../V1/DeletePackageRequest.php | 81 - .../V1/DeleteRepositoryRequest.php | 81 - .../ArtifactRegistry/V1/DeleteRuleRequest.php | 81 - .../ArtifactRegistry/V1/DeleteTagRequest.php | 80 - .../V1/DeleteVersionRequest.php | 118 - .../Cloud/ArtifactRegistry/V1/DockerImage.php | 420 -- .../Google/Cloud/ArtifactRegistry/V1/File.php | 347 -- .../ArtifactRegistry/V1/GenericArtifact.php | 205 - .../V1/GetAttachmentRequest.php | 81 - .../V1/GetDockerImageRequest.php | 81 - .../ArtifactRegistry/V1/GetFileRequest.php | 81 - .../V1/GetMavenArtifactRequest.php | 81 - .../V1/GetNpmPackageRequest.php | 81 - .../ArtifactRegistry/V1/GetPackageRequest.php | 81 - .../V1/GetProjectSettingsRequest.php | 81 - .../V1/GetPythonPackageRequest.php | 81 - .../V1/GetRepositoryRequest.php | 81 - .../ArtifactRegistry/V1/GetRuleRequest.php | 81 - .../ArtifactRegistry/V1/GetTagRequest.php | 80 - .../V1/GetVPCSCConfigRequest.php | 81 - .../ArtifactRegistry/V1/GetVersionRequest.php | 114 - .../Google/Cloud/ArtifactRegistry/V1/Hash.php | 101 - .../ArtifactRegistry/V1/Hash/HashType.php | 64 - .../V1/ImportAptArtifactsErrorInfo.php | 119 - .../V1/ImportAptArtifactsGcsSource.php | 101 - .../V1/ImportAptArtifactsMetadata.php | 33 - .../V1/ImportAptArtifactsRequest.php | 109 - .../V1/ImportAptArtifactsResponse.php | 101 - .../V1/ImportYumArtifactsErrorInfo.php | 119 - .../V1/ImportYumArtifactsGcsSource.php | 101 - .../V1/ImportYumArtifactsMetadata.php | 33 - .../V1/ImportYumArtifactsRequest.php | 109 - .../V1/ImportYumArtifactsResponse.php | 101 - .../V1/ListAttachmentsRequest.php | 199 - .../V1/ListAttachmentsResponse.php | 105 - .../V1/ListDockerImagesRequest.php | 187 - .../V1/ListDockerImagesResponse.php | 105 - .../ArtifactRegistry/V1/ListFilesRequest.php | 354 -- .../ArtifactRegistry/V1/ListFilesResponse.php | 105 - .../V1/ListMavenArtifactsRequest.php | 154 - .../V1/ListMavenArtifactsResponse.php | 105 - .../V1/ListNpmPackagesRequest.php | 154 - .../V1/ListNpmPackagesResponse.php | 105 - .../V1/ListPackagesRequest.php | 337 -- .../V1/ListPackagesResponse.php | 105 - .../V1/ListPythonPackagesRequest.php | 154 - .../V1/ListPythonPackagesResponse.php | 105 - .../V1/ListRepositoriesRequest.php | 270 - .../V1/ListRepositoriesResponse.php | 105 - .../ArtifactRegistry/V1/ListRulesRequest.php | 159 - .../ArtifactRegistry/V1/ListRulesResponse.php | 105 - .../ArtifactRegistry/V1/ListTagsRequest.php | 264 - .../ArtifactRegistry/V1/ListTagsResponse.php | 105 - .../V1/ListVersionsRequest.php | 370 -- .../V1/ListVersionsResponse.php | 105 - .../ArtifactRegistry/V1/MavenArtifact.php | 335 -- .../Cloud/ArtifactRegistry/V1/NpmPackage.php | 281 - .../ArtifactRegistry/V1/OperationMetadata.php | 33 - .../Cloud/ArtifactRegistry/V1/Package.php | 235 - .../ArtifactRegistry/V1/ProjectSettings.php | 155 - .../V1/ProjectSettings/RedirectionState.php | 85 - .../ArtifactRegistry/V1/PythonPackage.php | 297 -- .../V1/RemoteRepositoryConfig.php | 392 -- .../RemoteRepositoryConfig/AptRepository.php | 114 - .../AptRepository/CustomRepository.php | 74 - .../AptRepository/PublicRepository.php | 105 - .../PublicRepository/RepositoryBase.php | 71 - .../CommonRemoteRepository.php | 70 - .../DockerRepository.php | 114 - .../DockerRepository/CustomRepository.php | 74 - .../DockerRepository/PublicRepository.php | 58 - .../MavenRepository.php | 114 - .../MavenRepository/CustomRepository.php | 74 - .../MavenRepository/PublicRepository.php | 58 - .../RemoteRepositoryConfig/NpmRepository.php | 114 - .../NpmRepository/CustomRepository.php | 74 - .../NpmRepository/PublicRepository.php | 57 - .../PythonRepository.php | 114 - .../PythonRepository/CustomRepository.php | 74 - .../PythonRepository/PublicRepository.php | 57 - .../UpstreamCredentials.php | 78 - .../UsernamePasswordCredentials.php | 112 - .../RemoteRepositoryConfig/YumRepository.php | 114 - .../YumRepository/CustomRepository.php | 74 - .../YumRepository/PublicRepository.php | 105 - .../PublicRepository/RepositoryBase.php | 92 - .../Cloud/ArtifactRegistry/V1/Repository.php | 797 --- .../V1/Repository/DockerRepositoryConfig.php | 80 - .../ArtifactRegistry/V1/Repository/Format.php | 113 - .../V1/Repository/MavenRepositoryConfig.php | 110 - .../MavenRepositoryConfig/VersionPolicy.php | 66 - .../ArtifactRegistry/V1/Repository/Mode.php | 72 - .../VulnerabilityScanningConfig.php | 191 - .../EnablementConfig.php | 65 - .../EnablementState.php | 72 - .../Google/Cloud/ArtifactRegistry/V1/Rule.php | 220 - .../Cloud/ArtifactRegistry/V1/Rule/Action.php | 64 - .../ArtifactRegistry/V1/Rule/Operation.php | 57 - .../Google/Cloud/ArtifactRegistry/V1/Tag.php | 130 - .../ArtifactRegistry/V1/UpdateFileRequest.php | 146 - .../V1/UpdatePackageRequest.php | 146 - .../V1/UpdateProjectSettingsRequest.php | 136 - .../V1/UpdateRepositoryRequest.php | 146 - .../ArtifactRegistry/V1/UpdateRuleRequest.php | 146 - .../ArtifactRegistry/V1/UpdateTagRequest.php | 146 - .../V1/UpdateVPCSCConfigRequest.php | 136 - .../V1/UpdateVersionRequest.php | 146 - .../ArtifactRegistry/V1/UpstreamPolicy.php | 139 - .../Cloud/ArtifactRegistry/V1/VPCSCConfig.php | 121 - .../V1/VPCSCConfig/VPCSCPolicy.php | 68 - .../Cloud/ArtifactRegistry/V1/Version.php | 335 -- .../Cloud/ArtifactRegistry/V1/VersionView.php | 63 - .../V1/VirtualRepositoryConfig.php | 71 - .../Cloud/ArtifactRegistry/V1/YumArtifact.php | 169 - .../V1/YumArtifact/PackageType.php | 64 - .../batch_delete_versions.php | 89 - .../create_attachment.php | 120 - .../create_repository.php | 85 - .../V1/ArtifactRegistryClient/create_rule.php | 75 - .../V1/ArtifactRegistryClient/create_tag.php | 57 - .../delete_attachment.php | 87 - .../V1/ArtifactRegistryClient/delete_file.php | 87 - .../ArtifactRegistryClient/delete_package.php | 86 - .../delete_repository.php | 82 - .../V1/ArtifactRegistryClient/delete_rule.php | 74 - .../V1/ArtifactRegistryClient/delete_tag.php | 55 - .../ArtifactRegistryClient/delete_version.php | 67 - .../ArtifactRegistryClient/get_attachment.php | 76 - .../get_docker_image.php | 76 - .../V1/ArtifactRegistryClient/get_file.php | 76 - .../ArtifactRegistryClient/get_iam_policy.php | 71 - .../ArtifactRegistryClient/get_location.php | 57 - .../get_maven_artifact.php | 76 - .../get_npm_package.php | 76 - .../V1/ArtifactRegistryClient/get_package.php | 76 - .../get_project_settings.php | 71 - .../get_python_package.php | 76 - .../ArtifactRegistryClient/get_repository.php | 71 - .../V1/ArtifactRegistryClient/get_rule.php | 76 - .../V1/ArtifactRegistryClient/get_tag.php | 57 - .../V1/ArtifactRegistryClient/get_version.php | 57 - .../get_vpcsc_config.php | 71 - .../import_apt_artifacts.php | 72 - .../import_yum_artifacts.php | 72 - .../list_attachments.php | 80 - .../list_docker_images.php | 76 - .../V1/ArtifactRegistryClient/list_files.php | 81 - .../ArtifactRegistryClient/list_locations.php | 62 - .../list_maven_artifacts.php | 81 - .../list_npm_packages.php | 81 - .../ArtifactRegistryClient/list_packages.php | 80 - .../list_python_packages.php | 81 - .../list_repositories.php | 77 - .../V1/ArtifactRegistryClient/list_rules.php | 82 - .../V1/ArtifactRegistryClient/list_tags.php | 62 - .../ArtifactRegistryClient/list_versions.php | 62 - .../ArtifactRegistryClient/set_iam_policy.php | 73 - .../test_iam_permissions.php | 78 - .../V1/ArtifactRegistryClient/update_file.php | 62 - .../ArtifactRegistryClient/update_package.php | 57 - .../update_project_settings.php | 57 - .../update_repository.php | 57 - .../V1/ArtifactRegistryClient/update_rule.php | 57 - .../V1/ArtifactRegistryClient/update_tag.php | 57 - .../ArtifactRegistryClient/update_version.php | 59 - .../update_vpcsc_config.php | 57 - .../src/V1/Client/ArtifactRegistryClient.php | 2032 ------- .../v1/src/V1/gapic_metadata.json | 273 - .../artifact_registry_client_config.json | 287 - .../artifact_registry_descriptor_config.php | 833 --- .../artifact_registry_rest_client_config.php | 636 --- .../V1/Client/ArtifactRegistryClientTest.php | 4171 --------------- .../Devtools/Cloudbuild/V2/Cloudbuild.php | 53 - .../Devtools/Cloudbuild/V2/Repositories.php | Bin 12102 -> 0 bytes .../V2/BatchCreateRepositoriesRequest.php | 132 - .../V2/BatchCreateRepositoriesResponse.php | 67 - .../Cloud/Build/V2/BitbucketCloudConfig.php | 217 - .../Build/V2/BitbucketDataCenterConfig.php | 333 -- .../src/Google/Cloud/Build/V2/Connection.php | 537 -- .../Build/V2/CreateConnectionRequest.php | 183 - .../Build/V2/CreateRepositoryRequest.php | 188 - .../Build/V2/DeleteConnectionRequest.php | 162 - .../Build/V2/DeleteRepositoryRequest.php | 162 - .../Cloud/Build/V2/FetchGitRefsRequest.php | 120 - .../Build/V2/FetchGitRefsRequest/RefType.php | 64 - .../Cloud/Build/V2/FetchGitRefsResponse.php | 67 - .../V2/FetchLinkableRepositoriesRequest.php | 139 - .../V2/FetchLinkableRepositoriesResponse.php | 101 - .../Cloud/Build/V2/FetchReadTokenRequest.php | 86 - .../Cloud/Build/V2/FetchReadTokenResponse.php | 111 - .../Build/V2/FetchReadWriteTokenRequest.php | 86 - .../Build/V2/FetchReadWriteTokenResponse.php | 111 - .../Cloud/Build/V2/GetConnectionRequest.php | 86 - .../Cloud/Build/V2/GetRepositoryRequest.php | 86 - .../Google/Cloud/Build/V2/GitHubConfig.php | 119 - .../Cloud/Build/V2/GitHubEnterpriseConfig.php | 407 -- .../Google/Cloud/Build/V2/GitLabConfig.php | 338 -- .../Cloud/Build/V2/InstallationState.php | 145 - .../Build/V2/InstallationState/Stage.php | 79 - .../Cloud/Build/V2/ListConnectionsRequest.php | 154 - .../Build/V2/ListConnectionsResponse.php | 101 - .../Build/V2/ListRepositoriesRequest.php | 200 - .../Build/V2/ListRepositoriesResponse.php | 101 - .../Google/Cloud/Build/V2/OAuthCredential.php | 106 - .../Cloud/Build/V2/OperationMetadata.php | 307 -- .../Cloud/Build/V2/ProcessWebhookRequest.php | 153 - .../src/Google/Cloud/Build/V2/Repository.php | 303 -- .../V2/RunWorkflowCustomOperationMetadata.php | 307 -- .../Cloud/Build/V2/ServiceDirectoryConfig.php | 76 - .../Build/V2/UpdateConnectionRequest.php | 228 - .../Google/Cloud/Build/V2/UserCredential.php | 110 - .../batch_create_repositories.php | 125 - .../create_connection.php | 92 - .../create_repository.php | 103 - .../delete_connection.php | 81 - .../delete_repository.php | 86 - .../fetch_git_refs.php | 77 - .../fetch_linkable_repositories.php | 82 - .../fetch_read_token.php | 77 - .../fetch_read_write_token.php | 77 - .../get_connection.php | 72 - .../get_iam_policy.php | 72 - .../get_repository.php | 77 - .../list_connections.php | 77 - .../list_repositories.php | 81 - .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_connection.php | 71 - .../src/V2/Client/RepositoryManagerClient.php | 845 --- .../Build/v2/src/V2/gapic_metadata.json | 103 - .../repository_manager_client_config.json | 129 - .../repository_manager_descriptor_config.php | 309 -- .../repository_manager_rest_client_config.php | 258 - .../V2/Client/RepositoryManagerClientTest.php | 1697 ------ .../Google/Container/V1/ClusterService.php | Bin 59093 -> 0 bytes .../Cloud/Container/V1/AcceleratorConfig.php | 235 - .../V1/AdditionalNodeNetworkConfig.php | 102 - .../V1/AdditionalPodNetworkConfig.php | 150 - .../V1/AdditionalPodRangesConfig.php | 102 - .../Cloud/Container/V1/AddonsConfig.php | 701 --- .../AdvancedDatapathObservabilityConfig.php | 146 - .../RelayMode.php | 71 - .../Container/V1/AdvancedMachineFeatures.php | 129 - .../V1/AuthenticatorGroupsConfig.php | 109 - .../Cloud/Container/V1/AutoUpgradeOptions.php | 114 - .../Google/Cloud/Container/V1/Autopilot.php | 111 - .../V1/AutopilotCompatibilityIssue.php | 248 - .../AutopilotCompatibilityIssue/IssueType.php | 75 - .../V1/AutoprovisioningNodePoolDefaults.php | 537 -- .../Container/V1/BestEffortProvisioning.php | 117 - .../Container/V1/BinaryAuthorization.php | 118 - .../V1/BinaryAuthorization/EvaluationMode.php | 66 - .../Cloud/Container/V1/BlueGreenSettings.php | 123 - .../StandardRolloutPolicy.php | 158 - .../Container/V1/CancelOperationRequest.php | 249 - .../V1/CheckAutopilotCompatibilityRequest.php | 72 - .../CheckAutopilotCompatibilityResponse.php | 101 - .../Container/V1/ClientCertificateConfig.php | 67 - .../Cloud/Container/V1/CloudRunConfig.php | 101 - .../V1/CloudRunConfig/LoadBalancerType.php | 64 - .../src/Google/Cloud/Container/V1/Cluster.php | 3495 ------------ .../Cloud/Container/V1/Cluster/Status.php | 97 - .../Cloud/Container/V1/ClusterAutoscaling.php | 232 - .../ClusterAutoscaling/AutoscalingProfile.php | 64 - .../Cloud/Container/V1/ClusterUpdate.php | 2974 ----------- .../V1/CompleteIPRotationRequest.php | 249 - .../V1/CompleteNodePoolUpgradeRequest.php | 76 - .../Container/V1/CompliancePostureConfig.php | 112 - .../ComplianceStandard.php | 80 - .../V1/CompliancePostureConfig/Mode.php | 64 - .../Cloud/Container/V1/ConfidentialNodes.php | 68 - .../Container/V1/ConfigConnectorConfig.php | 67 - .../Cloud/Container/V1/ContainerdConfig.php | 81 - .../PrivateRegistryAccessConfig.php | 105 - .../CertificateAuthorityDomainConfig.php | 133 - .../GCPSecretManagerCertificateConfig.php | 79 - .../V1/ControlPlaneEndpointsConfig.php | 121 - .../DNSEndpointConfig.php | 134 - .../IPEndpointsConfig.php | 382 -- .../Container/V1/CostManagementConfig.php | 67 - .../Container/V1/CreateClusterRequest.php | 257 - .../Container/V1/CreateNodePoolRequest.php | 302 -- .../Google/Cloud/Container/V1/DNSConfig.php | 169 - .../Cloud/Container/V1/DNSConfig/DNSScope.php | 64 - .../Cloud/Container/V1/DNSConfig/Provider.php | 71 - .../Container/V1/DailyMaintenanceWindow.php | 121 - .../Cloud/Container/V1/DatabaseEncryption.php | 229 - .../V1/DatabaseEncryption/CurrentState.php | 95 - .../V1/DatabaseEncryption/OperationError.php | 149 - .../Container/V1/DatabaseEncryption/State.php | 65 - .../Cloud/Container/V1/DatapathProvider.php | 65 - .../Cloud/Container/V1/DefaultSnatStatus.php | 68 - .../Container/V1/DeleteClusterRequest.php | 249 - .../Container/V1/DeleteNodePoolRequest.php | 300 -- .../Cloud/Container/V1/DnsCacheConfig.php | 67 - .../Cloud/Container/V1/EnterpriseConfig.php | 67 - .../V1/EnterpriseConfig/ClusterTier.php | 64 - .../V1/EphemeralStorageLocalSsdConfig.php | 132 - .../Google/Cloud/Container/V1/FastSocket.php | 67 - .../src/Google/Cloud/Container/V1/Fleet.php | 155 - .../V1/GPUDriverInstallationConfig.php | 78 - .../GPUDriverVersion.php | 75 - .../Cloud/Container/V1/GPUSharingConfig.php | 112 - .../GPUSharingConfig/GPUSharingStrategy.php | 64 - .../Cloud/Container/V1/GatewayAPIConfig.php | 67 - .../Container/V1/GatewayAPIConfig/Channel.php | 73 - .../V1/GcePersistentDiskCsiDriverConfig.php | 67 - .../Google/Cloud/Container/V1/GcfsConfig.php | 68 - .../V1/GcpFilestoreCsiDriverConfig.php | 67 - .../Container/V1/GcsFuseCsiDriverConfig.php | 67 - .../Cloud/Container/V1/GetClusterRequest.php | 249 - .../Container/V1/GetJSONWebKeysRequest.php | 74 - .../Container/V1/GetJSONWebKeysResponse.php | 71 - .../Cloud/Container/V1/GetNodePoolRequest.php | 300 -- .../Container/V1/GetOpenIDConfigRequest.php | 72 - .../Container/V1/GetOpenIDConfigResponse.php | 272 - .../Container/V1/GetOperationRequest.php | 249 - .../Container/V1/GetServerConfigRequest.php | 203 - .../Container/V1/GkeBackupAgentConfig.php | 67 - .../Container/V1/HorizontalPodAutoscaling.php | 77 - .../Cloud/Container/V1/HttpLoadBalancing.php | 76 - .../Container/V1/ILBSubsettingConfig.php | 68 - .../Cloud/Container/V1/IPAllocationPolicy.php | 1036 ---- .../Cloud/Container/V1/IPv6AccessType.php | 61 - .../Container/V1/IdentityServiceConfig.php | 68 - .../V1/InTransitEncryptionConfig.php | 62 - .../V1/IntraNodeVisibilityConfig.php | 68 - .../src/Google/Cloud/Container/V1/Jwk.php | 339 -- .../Cloud/Container/V1/K8sBetaAPIConfig.php | 67 - .../Container/V1/KubernetesDashboard.php | 67 - .../Google/Cloud/Container/V1/LegacyAbac.php | 80 - .../Cloud/Container/V1/LinuxNodeConfig.php | 197 - .../V1/LinuxNodeConfig/CgroupMode.php | 67 - .../V1/LinuxNodeConfig/HugepagesConfig.php | 124 - .../Container/V1/ListClustersRequest.php | 208 - .../Container/V1/ListClustersResponse.php | 109 - .../Container/V1/ListNodePoolsRequest.php | 249 - .../Container/V1/ListNodePoolsResponse.php | 67 - .../Container/V1/ListOperationsRequest.php | 208 - .../Container/V1/ListOperationsResponse.php | 105 - .../V1/ListUsableSubnetworksRequest.php | 202 - .../V1/ListUsableSubnetworksResponse.php | 114 - .../Container/V1/LocalNvmeSsdBlockConfig.php | 124 - .../Container/V1/LoggingComponentConfig.php | 67 - .../V1/LoggingComponentConfig/Component.php | 99 - .../Cloud/Container/V1/LoggingConfig.php | 77 - .../Container/V1/LoggingVariantConfig.php | 67 - .../V1/LoggingVariantConfig/Variant.php | 68 - .../V1/MaintenanceExclusionOptions.php | 71 - .../V1/MaintenanceExclusionOptions/Scope.php | 69 - .../Cloud/Container/V1/MaintenancePolicy.php | 127 - .../Cloud/Container/V1/MaintenanceWindow.php | 152 - .../Container/V1/ManagedPrometheusConfig.php | 68 - .../Google/Cloud/Container/V1/MasterAuth.php | 335 -- .../V1/MasterAuthorizedNetworksConfig.php | 196 - .../CidrBlock.php | 104 - .../Cloud/Container/V1/MaxPodsConstraint.php | 67 - .../Cloud/Container/V1/MeshCertificates.php | 140 - .../V1/MonitoringComponentConfig.php | 71 - .../MonitoringComponentConfig/Component.php | 141 - .../Cloud/Container/V1/MonitoringConfig.php | 169 - .../Cloud/Container/V1/NetworkConfig.php | 747 --- .../ClusterNetworkPerformanceConfig.php | 80 - .../ClusterNetworkPerformanceConfig/Tier.php | 57 - .../Cloud/Container/V1/NetworkPolicy.php | 102 - .../Container/V1/NetworkPolicy/Provider.php | 57 - .../Container/V1/NetworkPolicyConfig.php | 69 - .../Google/Cloud/Container/V1/NetworkTags.php | 68 - .../Google/Cloud/Container/V1/NodeConfig.php | 1993 ------- .../V1/NodeConfig/EffectiveCgroupMode.php | 67 - .../Cloud/Container/V1/NodeConfigDefaults.php | 213 - .../Cloud/Container/V1/NodeKubeletConfig.php | 348 -- .../Google/Cloud/Container/V1/NodeLabels.php | 68 - .../Cloud/Container/V1/NodeManagement.php | 166 - .../Cloud/Container/V1/NodeNetworkConfig.php | 513 -- .../NetworkPerformanceConfig.php | 80 - .../NetworkPerformanceConfig/Tier.php | 57 - .../Google/Cloud/Container/V1/NodePool.php | 953 ---- .../Container/V1/NodePool/PlacementPolicy.php | 150 - .../V1/NodePool/PlacementPolicy/Type.php | 59 - .../V1/NodePool/QueuedProvisioning.php | 78 - .../Cloud/Container/V1/NodePool/Status.php | 99 - .../Container/V1/NodePool/UpdateInfo.php | 81 - .../V1/NodePool/UpdateInfo/BlueGreenInfo.php | 226 - .../UpdateInfo/BlueGreenInfo/Phase.php | 99 - .../Container/V1/NodePool/UpgradeSettings.php | 241 - .../Cloud/Container/V1/NodePoolAutoConfig.php | 186 - .../Container/V1/NodePoolAutoscaling.php | 304 -- .../V1/NodePoolAutoscaling/LocationPolicy.php | 66 - .../Cloud/Container/V1/NodePoolDefaults.php | 77 - .../Container/V1/NodePoolLoggingConfig.php | 77 - .../Container/V1/NodePoolUpdateStrategy.php | 63 - .../Google/Cloud/Container/V1/NodeTaint.php | 139 - .../Cloud/Container/V1/NodeTaint/Effect.php | 71 - .../Google/Cloud/Container/V1/NodeTaints.php | 68 - .../Cloud/Container/V1/NotificationConfig.php | 77 - .../V1/NotificationConfig/EventType.php | 72 - .../V1/NotificationConfig/Filter.php | 73 - .../V1/NotificationConfig/PubSub.php | 160 - .../Google/Cloud/Container/V1/Operation.php | 672 --- .../Cloud/Container/V1/Operation/Status.php | 78 - .../Cloud/Container/V1/Operation/Type.php | 234 - .../Cloud/Container/V1/OperationProgress.php | 197 - .../Container/V1/OperationProgress/Metric.php | 178 - .../V1/ParallelstoreCsiDriverConfig.php | 71 - .../V1/PodCIDROverprovisionConfig.php | 72 - .../Container/V1/PrivateClusterConfig.php | 447 -- ...PrivateClusterMasterGlobalAccessConfig.php | 67 - .../Container/V1/PrivateIPv6GoogleAccess.php | 69 - .../Cloud/Container/V1/RBACBindingConfig.php | 130 - .../Google/Cloud/Container/V1/RangeInfo.php | 101 - .../Container/V1/RayClusterLoggingConfig.php | 67 - .../V1/RayClusterMonitoringConfig.php | 68 - .../Cloud/Container/V1/RayOperatorConfig.php | 155 - .../Container/V1/RecurringTimeWindow.php | 211 - .../Cloud/Container/V1/ReleaseChannel.php | 71 - .../Container/V1/ReleaseChannel/Channel.php | 86 - .../Container/V1/ReservationAffinity.php | 149 - .../Container/V1/ReservationAffinity/Type.php | 72 - .../Cloud/Container/V1/ResourceLabels.php | 68 - .../Cloud/Container/V1/ResourceLimit.php | 136 - .../Container/V1/ResourceManagerTags.php | 84 - .../V1/ResourceUsageExportConfig.php | 159 - .../BigQueryDestination.php | 70 - .../ConsumptionMeteringConfig.php | 78 - .../V1/RollbackNodePoolUpgradeRequest.php | 340 -- .../Cloud/Container/V1/SandboxConfig.php | 67 - .../Cloud/Container/V1/SandboxConfig/Type.php | 57 - .../Cloud/Container/V1/SecondaryBootDisk.php | 102 - .../Container/V1/SecondaryBootDisk/Mode.php | 59 - .../V1/SecondaryBootDiskUpdateStrategy.php | 34 - .../Container/V1/SecretManagerConfig.php | 77 - .../Container/V1/SecurityBulletinEvent.php | 406 -- .../Container/V1/SecurityPostureConfig.php | 122 - .../V1/SecurityPostureConfig/Mode.php | 71 - .../VulnerabilityMode.php | 72 - .../Cloud/Container/V1/ServerConfig.php | 237 - .../V1/ServerConfig/ReleaseChannelConfig.php | 172 - .../Container/V1/ServiceExternalIPsConfig.php | 67 - .../Container/V1/SetAddonsConfigRequest.php | 303 -- .../Cloud/Container/V1/SetLabelsRequest.php | 302 -- .../Container/V1/SetLegacyAbacRequest.php | 288 - .../Container/V1/SetLocationsRequest.php | 319 -- .../Container/V1/SetLoggingServiceRequest.php | 339 -- .../V1/SetMaintenancePolicyRequest.php | 278 - .../Container/V1/SetMasterAuthRequest.php | 290 - .../V1/SetMasterAuthRequest/Action.php | 74 - .../V1/SetMonitoringServiceRequest.php | 339 -- .../Container/V1/SetNetworkPolicyRequest.php | 297 -- .../V1/SetNodePoolAutoscalingRequest.php | 303 -- .../V1/SetNodePoolManagementRequest.php | 304 -- .../Container/V1/SetNodePoolSizeRequest.php | 293 - .../Container/V1/ShieldedInstanceConfig.php | 129 - .../Cloud/Container/V1/ShieldedNodes.php | 67 - .../Cloud/Container/V1/SoleTenantConfig.php | 68 - .../V1/SoleTenantConfig/NodeAffinity.php | 140 - .../NodeAffinity/Operator.php | 65 - .../Google/Cloud/Container/V1/StackType.php | 61 - .../Container/V1/StartIPRotationRequest.php | 284 - .../Cloud/Container/V1/StatefulHAConfig.php | 67 - .../Cloud/Container/V1/StatusCondition.php | 145 - .../Container/V1/StatusCondition/Code.php | 95 - .../Google/Cloud/Container/V1/TimeWindow.php | 170 - .../Container/V1/UpdateClusterRequest.php | 297 -- .../Container/V1/UpdateMasterRequest.php | 333 -- .../Container/V1/UpdateNodePoolRequest.php | 1517 ------ .../Container/V1/UpgradeAvailableEvent.php | 188 - .../Cloud/Container/V1/UpgradeEvent.php | 252 - .../Container/V1/UpgradeResourceType.php | 62 - .../Cloud/Container/V1/UsableSubnetwork.php | 224 - .../V1/UsableSubnetworkSecondaryRange.php | 139 - .../UsableSubnetworkSecondaryRange/Status.php | 83 - .../Container/V1/UserManagedKeysConfig.php | 354 -- .../Container/V1/VerticalPodAutoscaling.php | 69 - .../Google/Cloud/Container/V1/VirtualNIC.php | 67 - .../Cloud/Container/V1/WindowsNodeConfig.php | 69 - .../V1/WindowsNodeConfig/OSVersion.php | 64 - .../Container/V1/WorkloadIdentityConfig.php | 68 - .../Container/V1/WorkloadMetadataConfig.php | 72 - .../V1/WorkloadMetadataConfig/Mode.php | 69 - .../Container/V1/WorkloadPolicyConfig.php | 78 - .../ClusterManagerClient/cancel_operation.php | 55 - .../check_autopilot_compatibility.php | 58 - .../complete_ip_rotation.php | 57 - .../complete_node_pool_upgrade.php | 56 - .../ClusterManagerClient/create_cluster.php | 73 - .../ClusterManagerClient/create_node_pool.php | 60 - .../ClusterManagerClient/delete_cluster.php | 65 - .../ClusterManagerClient/delete_node_pool.php | 57 - .../V1/ClusterManagerClient/get_cluster.php | 57 - .../get_json_web_keys.php | 58 - .../V1/ClusterManagerClient/get_node_pool.php | 57 - .../V1/ClusterManagerClient/get_operation.php | 57 - .../get_server_config.php | 57 - .../V1/ClusterManagerClient/list_clusters.php | 58 - .../ClusterManagerClient/list_node_pools.php | 57 - .../ClusterManagerClient/list_operations.php | 57 - .../list_usable_subnetworks.php | 62 - .../rollback_node_pool_upgrade.php | 58 - .../set_addons_config.php | 60 - .../V1/ClusterManagerClient/set_labels.php | 77 - .../ClusterManagerClient/set_legacy_abac.php | 70 - .../V1/ClusterManagerClient/set_locations.php | 80 - .../set_logging_service.php | 80 - .../set_maintenance_policy.php | 82 - .../ClusterManagerClient/set_master_auth.php | 76 - .../set_monitoring_service.php | 80 - .../set_network_policy.php | 60 - .../set_node_pool_autoscaling.php | 60 - .../set_node_pool_management.php | 60 - .../set_node_pool_size.php | 72 - .../start_ip_rotation.php | 57 - .../ClusterManagerClient/update_cluster.php | 60 - .../V1/ClusterManagerClient/update_master.php | 79 - .../ClusterManagerClient/update_node_pool.php | 85 - .../v1/src/V1/Client/ClusterManagerClient.php | 1249 ----- .../Container/v1/src/V1/gapic_metadata.json | 188 - .../cluster_manager_client_config.json | 215 - .../cluster_manager_descriptor_config.php | 1007 ---- .../cluster_manager_rest_client_config.php | 1091 ---- .../V1/Client/ClusterManagerClientTest.php | 2648 ---------- .../V1/Containeranalysis.php | 50 - ...VulnerabilityOccurrencesSummaryRequest.php | 122 - .../V1/VulnerabilityOccurrencesSummary.php | 68 - .../FixableTotalByDigest.php | 176 - .../get_iam_policy.php | 78 - .../get_vulnerability_occurrences_summary.php | 72 - .../set_iam_policy.php | 80 - .../test_iam_permissions.php | 84 - .../src/V1/Client/ContainerAnalysisClient.php | 354 -- .../v1/src/V1/gapic_metadata.json | 38 - .../container_analysis_client_config.json | 52 - .../container_analysis_descriptor_config.php | 79 - .../container_analysis_rest_client_config.php | 97 - .../V1/Client/ContainerAnalysisClientTest.php | 366 -- .../Google/Dataflow/V1Beta3/Environment.php | Bin 4684 -> 0 bytes .../Google/Dataflow/V1Beta3/Jobs.php | Bin 9121 -> 0 bytes .../Google/Dataflow/V1Beta3/Messages.php | Bin 3094 -> 0 bytes .../Google/Dataflow/V1Beta3/Metrics.php | Bin 4643 -> 0 bytes .../Google/Dataflow/V1Beta3/Snapshots.php | Bin 3089 -> 0 bytes .../Google/Dataflow/V1Beta3/Streaming.php | Bin 2857 -> 0 bytes .../Google/Dataflow/V1Beta3/Templates.php | Bin 8211 -> 0 bytes .../Dataflow/V1beta3/AutoscalingAlgorithm.php | 64 - .../Dataflow/V1beta3/AutoscalingEvent.php | 270 - .../AutoscalingEvent/AutoscalingEventType.php | 88 - .../Dataflow/V1beta3/AutoscalingSettings.php | 101 - .../Dataflow/V1beta3/BigQueryIODetails.php | 169 - .../Dataflow/V1beta3/BigTableIODetails.php | 135 - .../V1beta3/CheckActiveJobsRequest.php | 67 - .../V1beta3/CheckActiveJobsResponse.php | 67 - .../Dataflow/V1beta3/ComputationTopology.php | 237 - .../Cloud/Dataflow/V1beta3/ContainerSpec.php | 199 - .../V1beta3/CreateJobFromTemplateRequest.php | 269 - .../Dataflow/V1beta3/CreateJobRequest.php | 221 - .../Dataflow/V1beta3/CustomSourceLocation.php | 67 - .../Dataflow/V1beta3/DataDiskAssignment.php | 117 - .../Dataflow/V1beta3/DatastoreIODetails.php | 101 - .../Cloud/Dataflow/V1beta3/DebugOptions.php | 71 - .../Dataflow/V1beta3/DefaultPackageSet.php | 69 - .../V1beta3/DeleteSnapshotRequest.php | 135 - .../V1beta3/DeleteSnapshotResponse.php | 33 - .../Google/Cloud/Dataflow/V1beta3/Disk.php | 195 - .../Cloud/Dataflow/V1beta3/DisplayData.php | 483 -- .../V1beta3/DynamicTemplateLaunchParams.php | 109 - .../Cloud/Dataflow/V1beta3/Environment.php | 809 --- .../Dataflow/V1beta3/ExecutionStageState.php | 145 - .../V1beta3/ExecutionStageSummary.php | 307 -- .../ExecutionStageSummary/ComponentSource.php | 143 - .../ComponentTransform.php | 142 - .../ExecutionStageSummary/StageSource.php | 176 - .../Cloud/Dataflow/V1beta3/ExecutionState.php | 82 - .../Cloud/Dataflow/V1beta3/FailedLocation.php | 77 - .../Cloud/Dataflow/V1beta3/FileIODetails.php | 67 - .../V1beta3/FlexResourceSchedulingGoal.php | 61 - .../FlexTemplateRuntimeEnvironment.php | 967 ---- .../V1beta3/GetJobExecutionDetailsRequest.php | 227 - .../Dataflow/V1beta3/GetJobMetricsRequest.php | 191 - .../Cloud/Dataflow/V1beta3/GetJobRequest.php | 177 - .../Dataflow/V1beta3/GetSnapshotRequest.php | 135 - .../GetStageExecutionDetailsRequest.php | 350 -- .../Dataflow/V1beta3/GetTemplateRequest.php | 191 - .../GetTemplateRequest/TemplateView.php | 51 - .../Dataflow/V1beta3/GetTemplateResponse.php | 207 - .../GetTemplateResponse/TemplateType.php | 64 - .../V1beta3/InvalidTemplateParameters.php | 68 - .../ParameterViolation.php | 104 - .../src/Google/Cloud/Dataflow/V1beta3/Job.php | 1209 ----- .../Dataflow/V1beta3/JobExecutionDetails.php | 109 - .../Dataflow/V1beta3/JobExecutionInfo.php | 68 - .../V1beta3/JobExecutionStageInfo.php | 76 - .../Cloud/Dataflow/V1beta3/JobMessage.php | 179 - .../Dataflow/V1beta3/JobMessageImportance.php | 100 - .../Cloud/Dataflow/V1beta3/JobMetadata.php | 282 - .../Cloud/Dataflow/V1beta3/JobMetrics.php | 116 - .../Cloud/Dataflow/V1beta3/JobState.php | 163 - .../Google/Cloud/Dataflow/V1beta3/JobType.php | 66 - .../Google/Cloud/Dataflow/V1beta3/JobView.php | 73 - .../V1beta3/KeyRangeDataDiskAssignment.php | 150 - .../Dataflow/V1beta3/KeyRangeLocation.php | 230 - .../Cloud/Dataflow/V1beta3/KindType.php | 103 - .../V1beta3/LaunchFlexTemplateParameter.php | 353 -- .../V1beta3/LaunchFlexTemplateRequest.php | 191 - .../V1beta3/LaunchFlexTemplateResponse.php | 81 - .../V1beta3/LaunchTemplateParameters.php | 221 - .../V1beta3/LaunchTemplateRequest.php | 276 - .../V1beta3/LaunchTemplateResponse.php | 81 - .../V1beta3/ListJobMessagesRequest.php | 360 -- .../V1beta3/ListJobMessagesResponse.php | 135 - .../Dataflow/V1beta3/ListJobsRequest.php | 266 - .../V1beta3/ListJobsRequest/Filter.php | 77 - .../Dataflow/V1beta3/ListJobsResponse.php | 147 - .../Dataflow/V1beta3/ListSnapshotsRequest.php | 135 - .../V1beta3/ListSnapshotsResponse.php | 67 - .../Dataflow/V1beta3/MetricStructuredName.php | 156 - .../Cloud/Dataflow/V1beta3/MetricUpdate.php | 585 -- .../Dataflow/V1beta3/MountedDataDisk.php | 79 - .../Google/Cloud/Dataflow/V1beta3/Package.php | 120 - .../Dataflow/V1beta3/ParameterMetadata.php | 275 - .../Cloud/Dataflow/V1beta3/ParameterType.php | 114 - .../Dataflow/V1beta3/PipelineDescription.php | 137 - .../Dataflow/V1beta3/ProgressTimeseries.php | 105 - .../V1beta3/ProgressTimeseries/Point.php | 114 - .../Dataflow/V1beta3/PubSubIODetails.php | 101 - .../Cloud/Dataflow/V1beta3/PubsubLocation.php | 292 - .../V1beta3/PubsubSnapshotMetadata.php | 145 - .../Dataflow/V1beta3/RuntimeEnvironment.php | 697 --- .../Dataflow/V1beta3/RuntimeMetadata.php | 111 - .../Google/Cloud/Dataflow/V1beta3/SDKInfo.php | 101 - .../Dataflow/V1beta3/SDKInfo/Language.php | 64 - .../V1beta3/SdkHarnessContainerImage.php | 193 - .../Cloud/Dataflow/V1beta3/SdkVersion.php | 135 - .../V1beta3/SdkVersion/SdkSupportStatus.php | 79 - .../Cloud/Dataflow/V1beta3/ShuffleMode.php | 64 - .../Cloud/Dataflow/V1beta3/Snapshot.php | 397 -- .../Dataflow/V1beta3/SnapshotJobRequest.php | 247 - .../Cloud/Dataflow/V1beta3/SnapshotState.php | 83 - .../Dataflow/V1beta3/SpannerIODetails.php | 135 - .../V1beta3/StageExecutionDetails.php | 109 - .../Cloud/Dataflow/V1beta3/StageSummary.php | 279 - .../Dataflow/V1beta3/StateFamilyConfig.php | 101 - .../Google/Cloud/Dataflow/V1beta3/Step.php | 173 - .../Cloud/Dataflow/V1beta3/StreamLocation.php | 178 - .../StreamingApplianceSnapshotConfig.php | 101 - .../V1beta3/StreamingComputationRanges.php | 102 - .../V1beta3/StreamingSideInputLocation.php | 101 - .../V1beta3/StreamingStageLocation.php | 72 - .../Dataflow/V1beta3/StructuredMessage.php | 141 - .../V1beta3/StructuredMessage/Parameter.php | 114 - .../Dataflow/V1beta3/TaskRunnerSettings.php | 769 --- .../Cloud/Dataflow/V1beta3/TeardownPolicy.php | 71 - .../Dataflow/V1beta3/TemplateMetadata.php | 135 - .../Cloud/Dataflow/V1beta3/TopologyConfig.php | 204 - .../Dataflow/V1beta3/TransformSummary.php | 237 - .../Dataflow/V1beta3/UpdateJobRequest.php | 191 - .../Dataflow/V1beta3/WorkItemDetails.php | 309 -- .../Cloud/Dataflow/V1beta3/WorkerDetails.php | 101 - .../V1beta3/WorkerIPAddressConfiguration.php | 61 - .../Cloud/Dataflow/V1beta3/WorkerPool.php | 951 ---- .../Cloud/Dataflow/V1beta3/WorkerSettings.php | 289 - .../launch_flex_template.php | 57 - .../aggregated_list_jobs.php | 62 - .../JobsV1Beta3Client/check_active_jobs.php | 57 - .../V1beta3/JobsV1Beta3Client/create_job.php | 63 - .../V1beta3/JobsV1Beta3Client/get_job.php | 63 - .../V1beta3/JobsV1Beta3Client/list_jobs.php | 69 - .../JobsV1Beta3Client/snapshot_job.php | 57 - .../V1beta3/JobsV1Beta3Client/update_job.php | 63 - .../list_job_messages.php | 68 - .../get_job_execution_details.php | 64 - .../MetricsV1Beta3Client/get_job_metrics.php | 63 - .../get_stage_execution_details.php | 65 - .../delete_snapshot.php | 57 - .../SnapshotsV1Beta3Client/get_snapshot.php | 57 - .../SnapshotsV1Beta3Client/list_snapshots.php | 57 - .../create_job_from_template.php | 57 - .../TemplatesServiceClient/get_template.php | 57 - .../launch_template.php | 57 - .../Client/FlexTemplatesServiceClient.php | 201 - .../src/V1beta3/Client/JobsV1Beta3Client.php | 408 -- .../V1beta3/Client/MessagesV1Beta3Client.php | 207 - .../V1beta3/Client/MetricsV1Beta3Client.php | 275 - .../V1beta3/Client/SnapshotsV1Beta3Client.php | 262 - .../V1beta3/Client/TemplatesServiceClient.php | 263 - .../V1beta3/FlexTemplatesServiceClient.php | 36 - .../Gapic/FlexTemplatesServiceGapicClient.php | 237 - .../V1beta3/Gapic/JobsV1Beta3GapicClient.php | 733 --- .../Gapic/MessagesV1Beta3GapicClient.php | 300 -- .../Gapic/MetricsV1Beta3GapicClient.php | 463 -- .../Gapic/SnapshotsV1Beta3GapicClient.php | 348 -- .../Gapic/TemplatesServiceGapicClient.php | 405 -- .../v1beta3/src/V1beta3/JobsV1Beta3Client.php | 36 - .../src/V1beta3/MessagesV1Beta3Client.php | 36 - .../src/V1beta3/MetricsV1Beta3Client.php | 36 - .../src/V1beta3/SnapshotsV1Beta3Client.php | 36 - .../src/V1beta3/TemplatesServiceClient.php | 36 - .../v1beta3/src/V1beta3/gapic_metadata.json | 153 - .../flex_templates_service_client_config.json | 27 - ...ex_templates_service_descriptor_config.php | 46 - ...x_templates_service_rest_client_config.php | 46 - .../jobs_v1_beta3_client_config.json | 67 - .../jobs_v1_beta3_descriptor_config.php | 168 - .../jobs_v1_beta3_rest_client_config.php | 171 - .../messages_v1_beta3_client_config.json | 37 - .../messages_v1_beta3_descriptor_config.php | 60 - .../messages_v1_beta3_rest_client_config.php | 56 - .../metrics_v1_beta3_client_config.json | 47 - .../metrics_v1_beta3_descriptor_config.php | 122 - .../metrics_v1_beta3_rest_client_config.php | 103 - .../snapshots_v1_beta3_client_config.json | 47 - .../snapshots_v1_beta3_descriptor_config.php | 100 - .../snapshots_v1_beta3_rest_client_config.php | 114 - .../templates_service_client_config.json | 47 - .../templates_service_descriptor_config.php | 82 - .../templates_service_rest_client_config.php | 99 - .../Client/FlexTemplatesServiceClientTest.php | 138 - .../V1beta3/Client/JobsV1Beta3ClientTest.php | 574 -- .../Client/MessagesV1Beta3ClientTest.php | 159 - .../Client/MetricsV1Beta3ClientTest.php | 282 - .../Client/SnapshotsV1Beta3ClientTest.php | 262 - .../Client/TemplatesServiceClientTest.php | 290 - .../FlexTemplatesServiceClientTest.php | 113 - .../Unit/V1beta3/JobsV1Beta3ClientTest.php | 522 -- .../V1beta3/MessagesV1Beta3ClientTest.php | 124 - .../Unit/V1beta3/MetricsV1Beta3ClientTest.php | 241 - .../V1beta3/SnapshotsV1Beta3ClientTest.php | 231 - .../V1beta3/TemplatesServiceClientTest.php | 239 - .../Google/Cloud/Metastore/V1/Metastore.php | Bin 16362 -> 0 bytes .../Metastore/V1/MetastoreFederation.php | Bin 4730 -> 0 bytes .../AlterMetadataResourceLocationRequest.php | 164 - .../AlterMetadataResourceLocationResponse.php | 34 - .../Metastore/V1/AuxiliaryVersionConfig.php | 169 - .../Cloud/Metastore/V1/BackendMetastore.php | 125 - .../V1/BackendMetastore/MetastoreType.php | 64 - .../src/Google/Cloud/Metastore/V1/Backup.php | 305 -- .../Cloud/Metastore/V1/Backup/State.php | 85 - .../Metastore/V1/CreateBackupRequest.php | 271 - .../Metastore/V1/CreateFederationRequest.php | 275 - .../V1/CreateMetadataImportRequest.php | 276 - .../Metastore/V1/CreateServiceRequest.php | 276 - .../Cloud/Metastore/V1/DatabaseDumpSpec.php | 33 - .../Metastore/V1/DatabaseDumpSpec/Type.php | 64 - .../Metastore/V1/DeleteBackupRequest.php | 163 - .../Metastore/V1/DeleteFederationRequest.php | 162 - .../Metastore/V1/DeleteServiceRequest.php | 163 - .../Cloud/Metastore/V1/EncryptionConfig.php | 75 - .../Cloud/Metastore/V1/ErrorDetails.php | 76 - .../Metastore/V1/ExportMetadataRequest.php | 232 - .../Google/Cloud/Metastore/V1/Federation.php | 433 -- .../Cloud/Metastore/V1/Federation/State.php | 87 - .../Cloud/Metastore/V1/GetBackupRequest.php | 93 - .../Metastore/V1/GetFederationRequest.php | 92 - .../Metastore/V1/GetMetadataImportRequest.php | 93 - .../Cloud/Metastore/V1/GetServiceRequest.php | 93 - .../Metastore/V1/HiveMetastoreConfig.php | 278 - .../HiveMetastoreConfig/EndpointProtocol.php | 64 - .../Cloud/Metastore/V1/KerberosConfig.php | 165 - .../Cloud/Metastore/V1/ListBackupsRequest.php | 269 - .../Metastore/V1/ListBackupsResponse.php | 140 - .../Metastore/V1/ListFederationsRequest.php | 267 - .../Metastore/V1/ListFederationsResponse.php | 139 - .../V1/ListMetadataImportsRequest.php | 269 - .../V1/ListMetadataImportsResponse.php | 140 - .../Metastore/V1/ListServicesRequest.php | 273 - .../Metastore/V1/ListServicesResponse.php | 140 - .../Cloud/Metastore/V1/LocationMetadata.php | 75 - .../LocationMetadata/HiveMetastoreVersion.php | 108 - .../Cloud/Metastore/V1/MaintenanceWindow.php | 139 - .../Cloud/Metastore/V1/MetadataExport.php | 240 - .../Metastore/V1/MetadataExport/State.php | 78 - .../Cloud/Metastore/V1/MetadataImport.php | 313 -- .../V1/MetadataImport/DatabaseDump.php | 191 - .../DatabaseDump/DatabaseType.php | 57 - .../Metastore/V1/MetadataImport/State.php | 79 - .../V1/MetadataManagementActivity.php | 101 - .../V1/MoveTableToDatabaseRequest.php | 178 - .../V1/MoveTableToDatabaseResponse.php | 34 - .../Cloud/Metastore/V1/NetworkConfig.php | 72 - .../Metastore/V1/NetworkConfig/Consumer.php | 173 - .../Cloud/Metastore/V1/OperationMetadata.php | 307 -- .../Metastore/V1/QueryMetadataRequest.php | 114 - .../Metastore/V1/QueryMetadataResponse.php | 80 - .../src/Google/Cloud/Metastore/V1/Restore.php | 269 - .../Metastore/V1/Restore/RestoreType.php | 64 - .../Cloud/Metastore/V1/Restore/State.php | 78 - .../Metastore/V1/RestoreServiceRequest.php | 244 - .../Cloud/Metastore/V1/ScalingConfig.php | 114 - .../V1/ScalingConfig/InstanceSize.php | 85 - .../src/Google/Cloud/Metastore/V1/Secret.php | 81 - .../src/Google/Cloud/Metastore/V1/Service.php | 894 ---- .../Metastore/V1/Service/DatabaseType.php | 64 - .../Metastore/V1/Service/ReleaseChannel.php | 69 - .../Cloud/Metastore/V1/Service/State.php | 102 - .../Cloud/Metastore/V1/Service/Tier.php | 66 - .../Cloud/Metastore/V1/TelemetryConfig.php | 67 - .../V1/TelemetryConfig/LogFormat.php | 62 - .../Metastore/V1/UpdateFederationRequest.php | 237 - .../V1/UpdateMetadataImportRequest.php | 238 - .../Metastore/V1/UpdateServiceRequest.php | 238 - .../alter_metadata_resource_location.php | 104 - .../DataprocMetastoreClient/create_backup.php | 96 - .../create_metadata_import.php | 96 - .../create_service.php | 96 - .../DataprocMetastoreClient/delete_backup.php | 88 - .../delete_service.php | 83 - .../export_metadata.php | 86 - .../V1/DataprocMetastoreClient/get_backup.php | 79 - .../get_iam_policy.php | 72 - .../DataprocMetastoreClient/get_location.php | 57 - .../get_metadata_import.php | 79 - .../DataprocMetastoreClient/get_service.php | 74 - .../DataprocMetastoreClient/list_backups.php | 79 - .../list_locations.php | 62 - .../list_metadata_imports.php | 79 - .../DataprocMetastoreClient/list_services.php | 79 - .../move_table_to_database.php | 99 - .../query_metadata.php | 90 - .../restore_service.php | 98 - .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_metadata_import.php | 75 - .../update_service.php | 74 - .../create_federation.php | 96 - .../delete_federation.php | 87 - .../get_federation.php | 78 - .../get_iam_policy.php | 72 - .../get_location.php | 57 - .../list_federations.php | 78 - .../list_locations.php | 62 - .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_federation.php | 74 - .../src/V1/Client/DataprocMetastoreClient.php | 1052 ---- .../DataprocMetastoreFederationClient.php | 600 --- .../v1/src/V1/gapic_metadata.json | 192 - .../dataproc_metastore_client_config.json | 159 - .../dataproc_metastore_descriptor_config.php | 435 -- ...oc_metastore_federation_client_config.json | 72 - ...metastore_federation_descriptor_config.php | 195 - ...etastore_federation_rest_client_config.php | 230 - .../dataproc_metastore_rest_client_config.php | 391 -- .../V1/Client/DataprocMetastoreClientTest.php | 2520 --------- .../DataprocMetastoreFederationClientTest.php | 1039 ---- .../Cloud/Metastore/V1Alpha/Metastore.php | Bin 17839 -> 0 bytes .../Metastore/V1Alpha/MetastoreFederation.php | Bin 4900 -> 0 bytes .../AlterMetadataResourceLocationRequest.php | 164 - .../AlterMetadataResourceLocationResponse.php | 34 - .../V1alpha/AuxiliaryVersionConfig.php | 169 - .../Metastore/V1alpha/BackendMetastore.php | 125 - .../BackendMetastore/MetastoreType.php | 71 - .../Google/Cloud/Metastore/V1alpha/Backup.php | 305 -- .../Cloud/Metastore/V1alpha/Backup/State.php | 85 - .../Metastore/V1alpha/CreateBackupRequest.php | 271 - .../V1alpha/CreateFederationRequest.php | 275 - .../V1alpha/CreateMetadataImportRequest.php | 276 - .../V1alpha/CreateServiceRequest.php | 276 - .../Metastore/V1alpha/DataCatalogConfig.php | 72 - .../Metastore/V1alpha/DatabaseDumpSpec.php | 33 - .../V1alpha/DatabaseDumpSpec/Type.php | 64 - .../Metastore/V1alpha/DataplexConfig.php | 76 - .../Metastore/V1alpha/DeleteBackupRequest.php | 163 - .../V1alpha/DeleteFederationRequest.php | 162 - .../V1alpha/DeleteServiceRequest.php | 163 - .../Metastore/V1alpha/EncryptionConfig.php | 75 - .../Cloud/Metastore/V1alpha/ErrorDetails.php | 76 - .../V1alpha/ExportMetadataRequest.php | 232 - .../Cloud/Metastore/V1alpha/Federation.php | 433 -- .../Metastore/V1alpha/Federation/State.php | 87 - .../Metastore/V1alpha/GetBackupRequest.php | 93 - .../V1alpha/GetFederationRequest.php | 92 - .../V1alpha/GetMetadataImportRequest.php | 93 - .../Metastore/V1alpha/GetServiceRequest.php | 93 - .../Metastore/V1alpha/HiveMetastoreConfig.php | 278 - .../HiveMetastoreConfig/EndpointProtocol.php | 64 - .../Metastore/V1alpha/KerberosConfig.php | 165 - .../Google/Cloud/Metastore/V1alpha/Lake.php | 75 - .../Metastore/V1alpha/ListBackupsRequest.php | 269 - .../Metastore/V1alpha/ListBackupsResponse.php | 140 - .../V1alpha/ListFederationsRequest.php | 267 - .../V1alpha/ListFederationsResponse.php | 139 - .../V1alpha/ListMetadataImportsRequest.php | 269 - .../V1alpha/ListMetadataImportsResponse.php | 140 - .../Metastore/V1alpha/ListServicesRequest.php | 273 - .../V1alpha/ListServicesResponse.php | 140 - .../Metastore/V1alpha/LocationMetadata.php | 75 - .../LocationMetadata/HiveMetastoreVersion.php | 108 - .../Metastore/V1alpha/MaintenanceWindow.php | 139 - .../Metastore/V1alpha/MetadataExport.php | 240 - .../V1alpha/MetadataExport/State.php | 78 - .../Metastore/V1alpha/MetadataImport.php | 313 -- .../V1alpha/MetadataImport/DatabaseDump.php | 191 - .../DatabaseDump/DatabaseType.php | 57 - .../V1alpha/MetadataImport/State.php | 79 - .../Metastore/V1alpha/MetadataIntegration.php | 121 - .../V1alpha/MetadataManagementActivity.php | 101 - .../V1alpha/MoveTableToDatabaseRequest.php | 178 - .../V1alpha/MoveTableToDatabaseResponse.php | 34 - .../Cloud/Metastore/V1alpha/NetworkConfig.php | 110 - .../V1alpha/NetworkConfig/Consumer.php | 173 - .../Metastore/V1alpha/OperationMetadata.php | 307 -- .../V1alpha/QueryMetadataRequest.php | 114 - .../V1alpha/QueryMetadataResponse.php | 80 - .../V1alpha/RemoveIamPolicyRequest.php | 122 - .../V1alpha/RemoveIamPolicyResponse.php | 68 - .../Cloud/Metastore/V1alpha/Restore.php | 269 - .../Metastore/V1alpha/Restore/RestoreType.php | 64 - .../Cloud/Metastore/V1alpha/Restore/State.php | 78 - .../V1alpha/RestoreServiceRequest.php | 244 - .../Cloud/Metastore/V1alpha/ScalingConfig.php | 114 - .../V1alpha/ScalingConfig/InstanceSize.php | 85 - .../Google/Cloud/Metastore/V1alpha/Secret.php | 81 - .../Cloud/Metastore/V1alpha/Service.php | 942 ---- .../V1alpha/Service/DatabaseType.php | 64 - .../V1alpha/Service/ReleaseChannel.php | 69 - .../Cloud/Metastore/V1alpha/Service/State.php | 102 - .../Cloud/Metastore/V1alpha/Service/Tier.php | 66 - .../Metastore/V1alpha/TelemetryConfig.php | 67 - .../V1alpha/TelemetryConfig/LogFormat.php | 62 - .../V1alpha/UpdateFederationRequest.php | 237 - .../V1alpha/UpdateMetadataImportRequest.php | 238 - .../V1alpha/UpdateServiceRequest.php | 238 - .../alter_metadata_resource_location.php | 104 - .../DataprocMetastoreClient/create_backup.php | 96 - .../create_metadata_import.php | 96 - .../create_service.php | 96 - .../DataprocMetastoreClient/delete_backup.php | 88 - .../delete_service.php | 83 - .../export_metadata.php | 86 - .../DataprocMetastoreClient/get_backup.php | 79 - .../get_iam_policy.php | 72 - .../DataprocMetastoreClient/get_location.php | 57 - .../get_metadata_import.php | 79 - .../DataprocMetastoreClient/get_service.php | 74 - .../DataprocMetastoreClient/list_backups.php | 79 - .../list_locations.php | 62 - .../list_metadata_imports.php | 79 - .../DataprocMetastoreClient/list_services.php | 79 - .../move_table_to_database.php | 99 - .../query_metadata.php | 90 - .../remove_iam_policy.php | 75 - .../restore_service.php | 98 - .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_metadata_import.php | 75 - .../update_service.php | 74 - .../create_federation.php | 96 - .../delete_federation.php | 87 - .../get_federation.php | 78 - .../get_iam_policy.php | 72 - .../get_location.php | 57 - .../list_federations.php | 78 - .../list_locations.php | 62 - .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_federation.php | 74 - .../Client/DataprocMetastoreClient.php | 1175 ---- .../DataprocMetastoreFederationClient.php | 636 --- .../v1alpha/src/V1alpha/gapic_metadata.json | 197 - .../dataproc_metastore_client_config.json | 164 - .../dataproc_metastore_descriptor_config.php | 448 -- ...oc_metastore_federation_client_config.json | 72 - ...metastore_federation_descriptor_config.php | 195 - ...etastore_federation_rest_client_config.php | 263 - .../dataproc_metastore_rest_client_config.php | 436 -- .../Client/DataprocMetastoreClientTest.php | 2586 --------- .../DataprocMetastoreFederationClientTest.php | 1039 ---- .../Cloud/Metastore/V1Beta/Metastore.php | Bin 17717 -> 0 bytes .../Metastore/V1Beta/MetastoreFederation.php | Bin 4870 -> 0 bytes .../AlterMetadataResourceLocationRequest.php | 164 - .../AlterMetadataResourceLocationResponse.php | 34 - .../V1beta/AuxiliaryVersionConfig.php | 169 - .../Metastore/V1beta/BackendMetastore.php | 125 - .../V1beta/BackendMetastore/MetastoreType.php | 71 - .../Google/Cloud/Metastore/V1beta/Backup.php | 305 -- .../Cloud/Metastore/V1beta/Backup/State.php | 85 - .../Metastore/V1beta/CreateBackupRequest.php | 271 - .../V1beta/CreateFederationRequest.php | 275 - .../V1beta/CreateMetadataImportRequest.php | 276 - .../Metastore/V1beta/CreateServiceRequest.php | 276 - .../Metastore/V1beta/DataCatalogConfig.php | 72 - .../Metastore/V1beta/DatabaseDumpSpec.php | 33 - .../V1beta/DatabaseDumpSpec/Type.php | 64 - .../Cloud/Metastore/V1beta/DataplexConfig.php | 76 - .../Metastore/V1beta/DeleteBackupRequest.php | 163 - .../V1beta/DeleteFederationRequest.php | 162 - .../Metastore/V1beta/DeleteServiceRequest.php | 163 - .../Metastore/V1beta/EncryptionConfig.php | 75 - .../Cloud/Metastore/V1beta/ErrorDetails.php | 76 - .../V1beta/ExportMetadataRequest.php | 232 - .../Cloud/Metastore/V1beta/Federation.php | 433 -- .../Metastore/V1beta/Federation/State.php | 87 - .../Metastore/V1beta/GetBackupRequest.php | 93 - .../Metastore/V1beta/GetFederationRequest.php | 92 - .../V1beta/GetMetadataImportRequest.php | 93 - .../Metastore/V1beta/GetServiceRequest.php | 93 - .../Metastore/V1beta/HiveMetastoreConfig.php | 278 - .../HiveMetastoreConfig/EndpointProtocol.php | 64 - .../Cloud/Metastore/V1beta/KerberosConfig.php | 165 - .../Google/Cloud/Metastore/V1beta/Lake.php | 75 - .../Metastore/V1beta/ListBackupsRequest.php | 269 - .../Metastore/V1beta/ListBackupsResponse.php | 140 - .../V1beta/ListFederationsRequest.php | 267 - .../V1beta/ListFederationsResponse.php | 139 - .../V1beta/ListMetadataImportsRequest.php | 269 - .../V1beta/ListMetadataImportsResponse.php | 140 - .../Metastore/V1beta/ListServicesRequest.php | 273 - .../Metastore/V1beta/ListServicesResponse.php | 140 - .../Metastore/V1beta/LocationMetadata.php | 75 - .../LocationMetadata/HiveMetastoreVersion.php | 108 - .../Metastore/V1beta/MaintenanceWindow.php | 139 - .../Cloud/Metastore/V1beta/MetadataExport.php | 240 - .../Metastore/V1beta/MetadataExport/State.php | 78 - .../Cloud/Metastore/V1beta/MetadataImport.php | 313 -- .../V1beta/MetadataImport/DatabaseDump.php | 191 - .../DatabaseDump/DatabaseType.php | 57 - .../Metastore/V1beta/MetadataImport/State.php | 79 - .../Metastore/V1beta/MetadataIntegration.php | 121 - .../V1beta/MetadataManagementActivity.php | 101 - .../V1beta/MoveTableToDatabaseRequest.php | 178 - .../V1beta/MoveTableToDatabaseResponse.php | 34 - .../Cloud/Metastore/V1beta/NetworkConfig.php | 110 - .../V1beta/NetworkConfig/Consumer.php | 173 - .../Metastore/V1beta/OperationMetadata.php | 307 -- .../Metastore/V1beta/QueryMetadataRequest.php | 114 - .../V1beta/QueryMetadataResponse.php | 80 - .../V1beta/RemoveIamPolicyRequest.php | 122 - .../V1beta/RemoveIamPolicyResponse.php | 68 - .../Google/Cloud/Metastore/V1beta/Restore.php | 269 - .../Metastore/V1beta/Restore/RestoreType.php | 64 - .../Cloud/Metastore/V1beta/Restore/State.php | 78 - .../V1beta/RestoreServiceRequest.php | 244 - .../Cloud/Metastore/V1beta/ScalingConfig.php | 114 - .../V1beta/ScalingConfig/InstanceSize.php | 85 - .../Google/Cloud/Metastore/V1beta/Secret.php | 81 - .../Google/Cloud/Metastore/V1beta/Service.php | 942 ---- .../Metastore/V1beta/Service/DatabaseType.php | 64 - .../V1beta/Service/ReleaseChannel.php | 69 - .../Cloud/Metastore/V1beta/Service/State.php | 102 - .../Cloud/Metastore/V1beta/Service/Tier.php | 66 - .../Metastore/V1beta/TelemetryConfig.php | 67 - .../V1beta/TelemetryConfig/LogFormat.php | 62 - .../V1beta/UpdateFederationRequest.php | 237 - .../V1beta/UpdateMetadataImportRequest.php | 238 - .../Metastore/V1beta/UpdateServiceRequest.php | 238 - .../alter_metadata_resource_location.php | 104 - .../DataprocMetastoreClient/create_backup.php | 96 - .../create_metadata_import.php | 96 - .../create_service.php | 96 - .../DataprocMetastoreClient/delete_backup.php | 88 - .../delete_service.php | 83 - .../export_metadata.php | 86 - .../DataprocMetastoreClient/get_backup.php | 79 - .../get_iam_policy.php | 72 - .../DataprocMetastoreClient/get_location.php | 57 - .../get_metadata_import.php | 79 - .../DataprocMetastoreClient/get_service.php | 74 - .../DataprocMetastoreClient/list_backups.php | 79 - .../list_locations.php | 62 - .../list_metadata_imports.php | 79 - .../DataprocMetastoreClient/list_services.php | 79 - .../move_table_to_database.php | 99 - .../query_metadata.php | 90 - .../remove_iam_policy.php | 75 - .../restore_service.php | 98 - .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_metadata_import.php | 75 - .../update_service.php | 74 - .../create_federation.php | 96 - .../delete_federation.php | 87 - .../get_federation.php | 78 - .../get_iam_policy.php | 72 - .../get_location.php | 57 - .../list_federations.php | 78 - .../list_locations.php | 62 - .../set_iam_policy.php | 77 - .../test_iam_permissions.php | 84 - .../update_federation.php | 74 - .../V1beta/Client/DataprocMetastoreClient.php | 1175 ---- .../DataprocMetastoreFederationClient.php | 636 --- .../v1beta/src/V1beta/gapic_metadata.json | 197 - .../dataproc_metastore_client_config.json | 164 - .../dataproc_metastore_descriptor_config.php | 448 -- ...oc_metastore_federation_client_config.json | 72 - ...metastore_federation_descriptor_config.php | 195 - ...etastore_federation_rest_client_config.php | 263 - .../dataproc_metastore_rest_client_config.php | 436 -- .../Client/DataprocMetastoreClientTest.php | 2586 --------- .../DataprocMetastoreFederationClientTest.php | 1039 ---- .../Google/Datastore/V1/AggregationResult.php | 39 - .../Google/Datastore/V1/Datastore.php | Bin 8218 -> 0 bytes .../Google/Datastore/V1/Entity.php | Bin 2034 -> 0 bytes .../GPBMetadata/Google/Datastore/V1/Query.php | Bin 4897 -> 0 bytes .../Google/Datastore/V1/QueryProfile.php | 42 - .../Cloud/Datastore/V1/AggregationQuery.php | 122 - .../V1/AggregationQuery/Aggregation.php | 290 - .../V1/AggregationQuery/Aggregation/Avg.php | 86 - .../V1/AggregationQuery/Aggregation/Count.php | 181 - .../V1/AggregationQuery/Aggregation/Sum.php | 95 - .../Cloud/Datastore/V1/AggregationResult.php | 86 - .../Datastore/V1/AggregationResultBatch.php | 165 - .../Cloud/Datastore/V1/AllocateIdsRequest.php | 164 - .../Datastore/V1/AllocateIdsResponse.php | 72 - .../Google/Cloud/Datastore/V1/ArrayValue.php | 75 - .../Datastore/V1/BeginTransactionRequest.php | 167 - .../Datastore/V1/BeginTransactionResponse.php | 68 - .../Cloud/Datastore/V1/CommitRequest.php | 367 -- .../Cloud/Datastore/V1/CommitRequest/Mode.php | 66 - .../Cloud/Datastore/V1/CommitResponse.php | 153 - .../Cloud/Datastore/V1/CompositeFilter.php | 109 - .../Datastore/V1/CompositeFilter/Operator.php | 68 - .../src/Google/Cloud/Datastore/V1/Entity.php | 148 - .../Cloud/Datastore/V1/EntityResult.php | 285 - .../Datastore/V1/EntityResult/ResultType.php | 75 - .../Cloud/Datastore/V1/ExecutionStats.php | 237 - .../Cloud/Datastore/V1/ExplainMetrics.php | 129 - .../Cloud/Datastore/V1/ExplainOptions.php | 83 - .../src/Google/Cloud/Datastore/V1/Filter.php | 108 - .../Google/Cloud/Datastore/V1/FindNearest.php | 390 -- .../V1/FindNearest/DistanceMeasure.php | 82 - .../Google/Cloud/Datastore/V1/GqlQuery.php | 210 - .../Cloud/Datastore/V1/GqlQueryParameter.php | 111 - .../src/Google/Cloud/Datastore/V1/Key.php | 174 - .../Cloud/Datastore/V1/Key/PathElement.php | 195 - .../Cloud/Datastore/V1/KindExpression.php | 67 - .../Cloud/Datastore/V1/LookupRequest.php | 260 - .../Cloud/Datastore/V1/LookupResponse.php | 257 - .../Google/Cloud/Datastore/V1/Mutation.php | 429 -- .../Mutation/ConflictResolutionStrategy.php | 64 - .../Cloud/Datastore/V1/MutationResult.php | 311 -- .../Google/Cloud/Datastore/V1/PartitionId.php | 154 - .../Google/Cloud/Datastore/V1/PlanSummary.php | 83 - .../Google/Cloud/Datastore/V1/Projection.php | 77 - .../Cloud/Datastore/V1/PropertyFilter.php | 155 - .../Datastore/V1/PropertyFilter/Operator.php | 135 - .../Cloud/Datastore/V1/PropertyMask.php | 96 - .../Cloud/Datastore/V1/PropertyOrder.php | 111 - .../Datastore/V1/PropertyOrder/Direction.php | 64 - .../Cloud/Datastore/V1/PropertyReference.php | 83 - .../Cloud/Datastore/V1/PropertyTransform.php | 432 -- .../V1/PropertyTransform/ServerValue.php | 59 - .../src/Google/Cloud/Datastore/V1/Query.php | 516 -- .../Cloud/Datastore/V1/QueryResultBatch.php | 379 -- .../V1/QueryResultBatch/MoreResultsType.php | 79 - .../Google/Cloud/Datastore/V1/ReadOptions.php | 207 - .../V1/ReadOptions/ReadConsistency.php | 64 - .../Cloud/Datastore/V1/ReserveIdsRequest.php | 164 - .../Cloud/Datastore/V1/ReserveIdsResponse.php | 34 - .../Cloud/Datastore/V1/RollbackRequest.php | 163 - .../Cloud/Datastore/V1/RollbackResponse.php | 35 - .../V1/RunAggregationQueryRequest.php | 333 -- .../V1/RunAggregationQueryResponse.php | 228 - .../Cloud/Datastore/V1/RunQueryRequest.php | 388 -- .../Cloud/Datastore/V1/RunQueryResponse.php | 228 - .../Cloud/Datastore/V1/TransactionOptions.php | 113 - .../V1/TransactionOptions/PBReadOnly.php | 95 - .../V1/TransactionOptions/ReadOnly.php | 9 - .../V1/TransactionOptions/ReadWrite.php | 70 - .../src/Google/Cloud/Datastore/V1/Value.php | 517 -- .../V1/DatastoreClient/allocate_ids.php | 74 - .../V1/DatastoreClient/begin_transaction.php | 70 - .../v1/samples/V1/DatastoreClient/commit.php | 78 - .../v1/samples/V1/DatastoreClient/lookup.php | 73 - .../V1/DatastoreClient/reserve_ids.php | 74 - .../samples/V1/DatastoreClient/rollback.php | 74 - .../DatastoreClient/run_aggregation_query.php | 70 - .../samples/V1/DatastoreClient/run_query.php | 73 - .../v1/src/V1/Client/DatastoreClient.php | 403 -- .../Datastore/v1/src/V1/DatastoreClient.php | 34 - .../v1/src/V1/Gapic/DatastoreGapicClient.php | 739 --- .../Datastore/v1/src/V1/gapic_metadata.json | 58 - .../V1/resources/datastore_client_config.json | 95 - .../resources/datastore_descriptor_config.php | 172 - .../datastore_rest_client_config.php | 171 - .../Unit/V1/Client/DatastoreClientTest.php | 657 --- .../v1/tests/Unit/V1/DatastoreClientTest.php | 572 -- .../Datastore/Admin/V1/DatastoreAdmin.php | Bin 5468 -> 0 bytes .../Google/Datastore/Admin/V1/Index.php | Bin 1509 -> 0 bytes .../Google/Datastore/Admin/V1/Migration.php | Bin 1926 -> 0 bytes .../Datastore/Admin/V1/CommonMetadata.php | 231 - .../Admin/V1/CommonMetadata/State.php | 101 - .../Datastore/Admin/V1/CreateIndexRequest.php | 116 - .../DatastoreFirestoreMigrationMetadata.php | 114 - .../Datastore/Admin/V1/DeleteIndexRequest.php | 102 - .../Cloud/Datastore/Admin/V1/EntityFilter.php | 134 - .../Admin/V1/ExportEntitiesMetadata.php | 259 - .../Admin/V1/ExportEntitiesRequest.php | 272 - .../Admin/V1/ExportEntitiesResponse.php | 80 - .../Datastore/Admin/V1/GetIndexRequest.php | 102 - .../Admin/V1/ImportEntitiesMetadata.php | 255 - .../Admin/V1/ImportEntitiesRequest.php | 275 - .../Google/Cloud/Datastore/Admin/V1/Index.php | 249 - .../Datastore/Admin/V1/Index/AncestorMode.php | 65 - .../Datastore/Admin/V1/Index/Direction.php | 66 - .../Admin/V1/Index/IndexedProperty.php | 108 - .../Cloud/Datastore/Admin/V1/Index/State.php | 91 - .../Admin/V1/IndexOperationMetadata.php | 155 - .../Datastore/Admin/V1/ListIndexesRequest.php | 167 - .../Admin/V1/ListIndexesResponse.php | 102 - .../Admin/V1/MigrationProgressEvent.php | 152 - .../ConcurrencyMode.php | 71 - .../PrepareStepDetails.php | 74 - .../RedirectWritesStepDetails.php | 70 - .../Datastore/Admin/V1/MigrationState.php | 68 - .../Admin/V1/MigrationStateEvent.php | 69 - .../Datastore/Admin/V1/MigrationStep.php | 97 - .../Datastore/Admin/V1/OperationType.php | 75 - .../Cloud/Datastore/Admin/V1/Progress.php | 109 - .../V1/DatastoreAdminClient/create_index.php | 82 - .../V1/DatastoreAdminClient/delete_index.php | 79 - .../DatastoreAdminClient/export_entities.php | 109 - .../V1/DatastoreAdminClient/get_index.php | 57 - .../DatastoreAdminClient/import_entities.php | 99 - .../V1/DatastoreAdminClient/list_indexes.php | 64 - .../v1/src/V1/Client/DatastoreAdminClient.php | 467 -- .../v1/src/V1/gapic_metadata.json | 48 - .../datastore_admin_client_config.json | 75 - .../datastore_admin_descriptor_config.php | 148 - .../datastore_admin_rest_client_config.php | 154 - .../V1/Client/DatastoreAdminClientTest.php | 757 --- .../Devtools/Clouddebugger/V2/Controller.php | 53 - .../Google/Devtools/Clouddebugger/V2/Data.php | Bin 3439 -> 0 bytes .../Devtools/Clouddebugger/V2/Debugger.php | 78 - .../Devtools/Source/V1/SourceContext.php | Bin 2318 -> 0 bytes .../Google/Cloud/Debugger/V2/Breakpoint.php | 781 --- .../Cloud/Debugger/V2/Breakpoint/Action.php | 61 - .../Cloud/Debugger/V2/Breakpoint/LogLevel.php | 64 - .../src/Google/Cloud/Debugger/V2/Debuggee.php | 494 -- .../Debugger/V2/DeleteBreakpointRequest.php | 157 - .../Cloud/Debugger/V2/FormatMessage.php | 125 - .../Debugger/V2/GetBreakpointRequest.php | 157 - .../Debugger/V2/GetBreakpointResponse.php | 81 - .../V2/ListActiveBreakpointsRequest.php | 176 - .../V2/ListActiveBreakpointsResponse.php | 151 - .../Debugger/V2/ListBreakpointsRequest.php | 334 -- .../BreakpointActionValue.php | 71 - .../Debugger/V2/ListBreakpointsResponse.php | 117 - .../Debugger/V2/ListDebuggeesRequest.php | 159 - .../Debugger/V2/ListDebuggeesResponse.php | 79 - .../Debugger/V2/RegisterDebuggeeRequest.php | 100 - .../Debugger/V2/RegisterDebuggeeResponse.php | 93 - .../Debugger/V2/SetBreakpointRequest.php | 172 - .../Debugger/V2/SetBreakpointResponse.php | 81 - .../Cloud/Debugger/V2/SourceLocation.php | 143 - .../Google/Cloud/Debugger/V2/StackFrame.php | 187 - .../Cloud/Debugger/V2/StatusMessage.php | 149 - .../Debugger/V2/StatusMessage/Reference.php | 92 - .../V2/UpdateActiveBreakpointRequest.php | 136 - .../V2/UpdateActiveBreakpointResponse.php | 34 - .../src/Google/Cloud/Debugger/V2/Variable.php | 441 -- .../Cloud/DevTools/Source/V1/AliasContext.php | 101 - .../DevTools/Source/V1/AliasContext/Kind.php | 73 - .../Source/V1/CloudRepoSourceContext.php | 191 - .../DevTools/Source/V1/CloudWorkspaceId.php | 117 - .../Source/V1/CloudWorkspaceSourceContext.php | 115 - .../Source/V1/ExtendedSourceContext.php | 112 - .../Source/V1/GerritSourceContext.php | 222 - .../DevTools/Source/V1/GitSourceContext.php | 106 - .../DevTools/Source/V1/ProjectRepoId.php | 102 - .../Cloud/DevTools/Source/V1/RepoId.php | 108 - .../DevTools/Source/V1/SourceContext.php | 175 - .../list_active_breakpoints.php | 82 - .../Controller2Client/register_debuggee.php | 69 - .../update_active_breakpoint.php | 80 - .../V2/Debugger2Client/delete_breakpoint.php | 78 - .../V2/Debugger2Client/get_breakpoint.php | 80 - .../V2/Debugger2Client/list_breakpoints.php | 74 - .../V2/Debugger2Client/list_debuggees.php | 74 - .../V2/Debugger2Client/set_breakpoint.php | 77 - .../v2/src/V2/Client/Controller2Client.php | 295 -- .../v2/src/V2/Client/Debugger2Client.php | 314 -- .../Debugger/v2/src/V2/Controller2Client.php | 34 - .../Debugger/v2/src/V2/Debugger2Client.php | 34 - .../src/V2/Gapic/Controller2GapicClient.php | 357 -- .../v2/src/V2/Gapic/Debugger2GapicClient.php | 451 -- .../Debugger/v2/src/V2/gapic_metadata.json | 67 - .../resources/controller2_client_config.json | 60 - .../controller2_descriptor_config.php | 63 - .../controller2_rest_client_config.php | 63 - .../V2/resources/debugger2_client_config.json | 70 - .../resources/debugger2_descriptor_config.php | 92 - .../debugger2_rest_client_config.php | 104 - .../Unit/V2/Client/Controller2ClientTest.php | 295 -- .../Unit/V2/Client/Debugger2ClientTest.php | 464 -- .../tests/Unit/V2/Controller2ClientTest.php | 247 - .../v2/tests/Unit/V2/Debugger2ClientTest.php | 389 -- .../Cloud/Discoveryengine/V1/Answer.php | Bin 5671 -> 0 bytes .../Google/Cloud/Discoveryengine/V1/Chunk.php | Bin 2126 -> 0 bytes .../Cloud/Discoveryengine/V1/Common.php | Bin 3076 -> 0 bytes .../Cloud/Discoveryengine/V1/Completion.php | Bin 1416 -> 0 bytes .../Discoveryengine/V1/CompletionService.php | 59 - .../Cloud/Discoveryengine/V1/Control.php | Bin 2913 -> 0 bytes .../Discoveryengine/V1/ControlService.php | 64 - .../Cloud/Discoveryengine/V1/Conversation.php | Bin 2509 -> 0 bytes .../V1/ConversationalSearchService.php | Bin 14097 -> 0 bytes .../Discoveryengine/V1/CustomTuningModel.php | Bin 2160 -> 0 bytes .../Cloud/Discoveryengine/V1/DataStore.php | Bin 3260 -> 0 bytes .../Discoveryengine/V1/DataStoreService.php | 82 - .../Cloud/Discoveryengine/V1/Document.php | Bin 2208 -> 0 bytes .../V1/DocumentProcessingConfig.php | Bin 2701 -> 0 bytes .../Discoveryengine/V1/DocumentService.php | Bin 6836 -> 0 bytes .../Cloud/Discoveryengine/V1/Engine.php | Bin 2669 -> 0 bytes .../Discoveryengine/V1/EngineService.php | 74 - .../V1/GroundedGenerationService.php | Bin 7834 -> 0 bytes .../Cloud/Discoveryengine/V1/Grounding.php | 45 - .../Cloud/Discoveryengine/V1/ImportConfig.php | Bin 7903 -> 0 bytes .../Cloud/Discoveryengine/V1/Project.php | Bin 1876 -> 0 bytes .../Discoveryengine/V1/ProjectService.php | 42 - .../Cloud/Discoveryengine/V1/PurgeConfig.php | Bin 3237 -> 0 bytes .../Cloud/Discoveryengine/V1/RankService.php | 53 - .../V1/RecommendationService.php | 65 - .../Cloud/Discoveryengine/V1/Schema.php | Bin 1478 -> 0 bytes .../Discoveryengine/V1/SchemaService.php | 76 - .../Discoveryengine/V1/SearchService.php | Bin 10580 -> 0 bytes .../V1/SearchTuningService.php | Bin 3570 -> 0 bytes .../Cloud/Discoveryengine/V1/Session.php | Bin 1993 -> 0 bytes .../Discoveryengine/V1/SiteSearchEngine.php | Bin 2932 -> 0 bytes .../V1/SiteSearchEngineService.php | Bin 10328 -> 0 bytes .../Cloud/Discoveryengine/V1/UserEvent.php | Bin 3408 -> 0 bytes .../Discoveryengine/V1/UserEventService.php | Bin 3784 -> 0 bytes .../DiscoveryEngine/V1/AlloyDbSource.php | 277 - .../Cloud/DiscoveryEngine/V1/Answer.php | 445 -- .../V1/Answer/AnswerSkippedReason.php | 127 - .../DiscoveryEngine/V1/Answer/Citation.php | 142 - .../V1/Answer/CitationSource.php | 70 - .../V1/Answer/QueryUnderstandingInfo.php | 70 - .../QueryClassificationInfo.php | 104 - .../QueryClassificationInfo/Type.php | 78 - .../DiscoveryEngine/V1/Answer/Reference.php | 144 - .../V1/Answer/Reference/ChunkInfo.php | 208 - .../Reference/ChunkInfo/DocumentMetadata.php | 220 - .../Reference/StructuredDocumentInfo.php | 114 - .../Reference/UnstructuredDocumentInfo.php | 220 - .../UnstructuredDocumentInfo/ChunkContent.php | 164 - .../Cloud/DiscoveryEngine/V1/Answer/State.php | 71 - .../Cloud/DiscoveryEngine/V1/Answer/Step.php | 172 - .../DiscoveryEngine/V1/Answer/Step/Action.php | 122 - .../V1/Answer/Step/Action/Observation.php | 74 - .../Step/Action/Observation/SearchResult.php | 268 - .../Observation/SearchResult/ChunkInfo.php | 164 - .../Observation/SearchResult/SnippetInfo.php | 104 - .../V1/Answer/Step/Action/SearchAction.php | 70 - .../DiscoveryEngine/V1/Answer/Step/State.php | 71 - .../DiscoveryEngine/V1/AnswerQueryRequest.php | 622 --- .../AnswerGenerationSpec.php | 454 -- .../AnswerGenerationSpec/ModelSpec.php | 74 - .../AnswerGenerationSpec/PromptSpec.php | 70 - .../QueryUnderstandingSpec.php | 124 - .../QueryClassificationSpec.php | 70 - .../QueryClassificationSpec/Type.php | 78 - .../QueryRephraserSpec.php | 112 - .../RelatedQuestionsSpec.php | 70 - .../V1/AnswerQueryRequest/SafetySpec.php | 74 - .../V1/AnswerQueryRequest/SearchSpec.php | 111 - .../SearchSpec/SearchParams.php | 358 -- .../SearchSpec/SearchResultList.php | 70 - .../SearchResultList/SearchResult.php | 111 - .../SearchResult/ChunkInfo.php | 148 - .../ChunkInfo/DocumentMetadata.php | 105 - .../SearchResult/UnstructuredDocumentInfo.php | 265 - .../DocumentContext.php | 104 - .../ExtractiveAnswer.php | 105 - .../ExtractiveSegment.php | 107 - .../V1/AnswerQueryResponse.php | 197 - .../V1/BatchCreateTargetSiteMetadata.php | 128 - .../V1/BatchCreateTargetSitesRequest.php | 119 - .../V1/BatchCreateTargetSitesResponse.php | 69 - .../V1/BatchGetDocumentsMetadataRequest.php | 136 - .../FhirMatcher.php | 79 - .../Matcher.php | 112 - .../UrisMatcher.php | 71 - .../V1/BatchGetDocumentsMetadataResponse.php | 69 - .../DocumentMetadata.php | 216 - .../DocumentMetadata/MatcherValue.php | 118 - .../State.php | 73 - .../V1/BatchVerifyTargetSitesMetadata.php | 128 - .../V1/BatchVerifyTargetSitesRequest.php | 73 - .../V1/BatchVerifyTargetSitesResponse.php | 35 - .../DiscoveryEngine/V1/BigQuerySource.php | 325 -- .../DiscoveryEngine/V1/BigtableOptions.php | 114 - .../V1/BigtableOptions/BigtableColumn.php | 220 - .../BigtableOptions/BigtableColumnFamily.php | 220 - .../V1/BigtableOptions/Encoding.php | 64 - .../V1/BigtableOptions/Type.php | 103 - .../DiscoveryEngine/V1/BigtableSource.php | 191 - .../V1/CheckGroundingRequest.php | 279 - .../V1/CheckGroundingResponse.php | 159 - .../V1/CheckGroundingResponse/Claim.php | 296 -- .../DiscoveryEngine/V1/CheckGroundingSpec.php | 93 - .../Google/Cloud/DiscoveryEngine/V1/Chunk.php | 388 -- .../V1/Chunk/ChunkMetadata.php | 138 - .../V1/Chunk/DocumentMetadata.php | 161 - .../DiscoveryEngine/V1/Chunk/PageSpan.php | 104 - .../DiscoveryEngine/V1/CloudSqlSource.php | 281 - .../V1/CollectUserEventRequest.php | 217 - .../V1/CompleteQueryRequest.php | 321 -- .../V1/CompleteQueryResponse.php | 115 - .../CompleteQueryResponse/QuerySuggestion.php | 112 - .../DiscoveryEngine/V1/CompletionInfo.php | 114 - .../V1/CompletionSuggestion.php | 292 - .../Cloud/DiscoveryEngine/V1/Condition.php | 171 - .../V1/Condition/QueryTerm.php | 120 - .../V1/Condition/TimeRange.php | 136 - .../Cloud/DiscoveryEngine/V1/Control.php | 448 -- .../V1/Control/BoostAction.php | 170 - .../V1/Control/FilterAction.php | 133 - .../V1/Control/RedirectAction.php | 82 - .../V1/Control/SynonymsAction.php | 84 - .../Cloud/DiscoveryEngine/V1/Conversation.php | 269 - .../DiscoveryEngine/V1/Conversation/State.php | 64 - .../V1/ConversationContext.php | 109 - .../V1/ConversationMessage.php | 152 - .../V1/ConverseConversationRequest.php | 550 -- .../V1/ConverseConversationResponse.php | 157 - .../V1/CreateControlRequest.php | 194 - .../V1/CreateConversationRequest.php | 132 - .../V1/CreateDataStoreMetadata.php | 128 - .../V1/CreateDataStoreRequest.php | 310 -- .../V1/CreateDocumentRequest.php | 243 - .../V1/CreateEngineMetadata.php | 128 - .../V1/CreateEngineRequest.php | 201 - .../V1/CreateSchemaMetadata.php | 125 - .../V1/CreateSchemaRequest.php | 201 - .../V1/CreateSessionRequest.php | 132 - .../V1/CreateTargetSiteMetadata.php | 128 - .../V1/CreateTargetSiteRequest.php | 144 - .../DiscoveryEngine/V1/CustomAttribute.php | 158 - .../DiscoveryEngine/V1/CustomTuningModel.php | 348 -- .../V1/CustomTuningModel/ModelState.php | 99 - .../Cloud/DiscoveryEngine/V1/DataStore.php | 577 -- .../V1/DataStore/BillingEstimation.php | 270 - .../V1/DataStore/ContentConfig.php | 82 - .../V1/DeleteControlRequest.php | 86 - .../V1/DeleteConversationRequest.php | 86 - .../V1/DeleteDataStoreMetadata.php | 128 - .../V1/DeleteDataStoreRequest.php | 120 - .../V1/DeleteDocumentRequest.php | 120 - .../V1/DeleteEngineMetadata.php | 128 - .../V1/DeleteEngineRequest.php | 120 - .../V1/DeleteSchemaMetadata.php | 125 - .../V1/DeleteSchemaRequest.php | 88 - .../V1/DeleteSessionRequest.php | 86 - .../V1/DeleteTargetSiteMetadata.php | 128 - .../V1/DeleteTargetSiteRequest.php | 120 - .../V1/DisableAdvancedSiteSearchMetadata.php | 128 - .../V1/DisableAdvancedSiteSearchRequest.php | 81 - .../V1/DisableAdvancedSiteSearchResponse.php | 35 - .../Cloud/DiscoveryEngine/V1/Document.php | 509 -- .../DiscoveryEngine/V1/Document/Content.php | 193 - .../V1/Document/IndexStatus.php | 122 - .../Cloud/DiscoveryEngine/V1/DocumentInfo.php | 290 - .../V1/DocumentProcessingConfig.php | 266 - .../ChunkingConfig.php | 78 - .../LayoutBasedChunkingConfig.php | 120 - .../ParsingConfig.php | 147 - .../ParsingConfig/DigitalParsingConfig.php | 36 - .../ParsingConfig/LayoutParsingConfig.php | 36 - .../ParsingConfig/OcrParsingConfig.php | 117 - .../V1/EnableAdvancedSiteSearchMetadata.php | 128 - .../V1/EnableAdvancedSiteSearchRequest.php | 81 - .../V1/EnableAdvancedSiteSearchResponse.php | 35 - .../Cloud/DiscoveryEngine/V1/Engine.php | 612 --- .../V1/Engine/ChatEngineConfig.php | 190 - .../ChatEngineConfig/AgentCreationConfig.php | 214 - .../V1/Engine/ChatEngineMetadata.php | 83 - .../V1/Engine/CommonConfig.php | 74 - .../V1/Engine/SearchEngineConfig.php | 124 - .../Cloud/DiscoveryEngine/V1/FactChunk.php | 181 - .../FetchDomainVerificationStatusRequest.php | 173 - .../FetchDomainVerificationStatusResponse.php | 145 - .../DiscoveryEngine/V1/FhirStoreSource.php | 163 - .../DiscoveryEngine/V1/FirestoreSource.php | 201 - .../Cloud/DiscoveryEngine/V1/GcsSource.php | 197 - .../V1/GenerateGroundedContentRequest.php | 352 -- .../DynamicRetrievalConfiguration.php | 80 - .../DynamicRetrievalPredictor.php | 118 - .../DynamicRetrievalPredictor/Version.php | 57 - .../GenerationSpec.php | 372 -- .../GroundingSource.php | 144 - .../GroundingSource/GoogleSearchSource.php | 84 - .../GroundingSource/InlineSource.php | 112 - .../GroundingSource/SearchSource.php | 192 - .../GroundingSpec.php | 70 - .../V1/GenerateGroundedContentResponse.php | 65 - .../Candidate.php | 202 - .../Candidate/GroundingMetadata.php | 240 - .../DynamicRetrievalMetadata.php | 80 - .../DynamicRetrievalPredictorMetadata.php | 130 - .../Version.php | 57 - .../GroundingMetadata/GroundingSupport.php | 172 - .../GroundingMetadata/RetrievalMetadata.php | 114 - .../RetrievalMetadata/Source.php | 78 - .../GroundingMetadata/SearchEntryPoint.php | 112 - .../DiscoveryEngine/V1/GetAnswerRequest.php | 86 - .../DiscoveryEngine/V1/GetControlRequest.php | 86 - .../V1/GetConversationRequest.php | 86 - .../V1/GetDataStoreRequest.php | 120 - .../DiscoveryEngine/V1/GetDocumentRequest.php | 120 - .../DiscoveryEngine/V1/GetEngineRequest.php | 93 - .../DiscoveryEngine/V1/GetSchemaRequest.php | 88 - .../DiscoveryEngine/V1/GetSessionRequest.php | 86 - .../V1/GetSiteSearchEngineRequest.php | 114 - .../V1/GetTargetSiteRequest.php | 120 - .../V1/GroundedGenerationContent.php | 109 - .../V1/GroundedGenerationContent/Part.php | 78 - .../DiscoveryEngine/V1/GroundingFact.php | 109 - .../ImportCompletionSuggestionsMetadata.php | 211 - .../V1/ImportCompletionSuggestionsRequest.php | 229 - .../InlineSource.php | 70 - .../ImportCompletionSuggestionsResponse.php | 115 - .../V1/ImportDocumentsMetadata.php | 228 - .../V1/ImportDocumentsRequest.php | 775 --- .../ImportDocumentsRequest/InlineSource.php | 78 - .../ReconciliationMode.php | 66 - .../V1/ImportDocumentsResponse.php | 114 - .../DiscoveryEngine/V1/ImportErrorConfig.php | 84 - ...mportSuggestionDenyListEntriesMetadata.php | 127 - ...ImportSuggestionDenyListEntriesRequest.php | 163 - .../InlineSource.php | 70 - ...mportSuggestionDenyListEntriesResponse.php | 137 - .../V1/ImportUserEventsMetadata.php | 194 - .../V1/ImportUserEventsRequest.php | 227 - .../ImportUserEventsRequest/InlineSource.php | 70 - .../V1/ImportUserEventsResponse.php | 189 - .../DiscoveryEngine/V1/IndustryVertical.php | 70 - .../Cloud/DiscoveryEngine/V1/Interval.php | 183 - .../V1/ListControlsRequest.php | 218 - .../V1/ListControlsResponse.php | 101 - .../V1/ListConversationsRequest.php | 274 - .../V1/ListConversationsResponse.php | 101 - .../V1/ListCustomModelsRequest.php | 81 - .../V1/ListCustomModelsResponse.php | 69 - .../V1/ListDataStoresRequest.php | 259 - .../V1/ListDataStoresResponse.php | 115 - .../V1/ListDocumentsRequest.php | 231 - .../V1/ListDocumentsResponse.php | 115 - .../DiscoveryEngine/V1/ListEnginesRequest.php | 194 - .../V1/ListEnginesResponse.php | 103 - .../DiscoveryEngine/V1/ListSchemasRequest.php | 192 - .../V1/ListSchemasResponse.php | 115 - .../V1/ListSessionsRequest.php | 274 - .../V1/ListSessionsResponse.php | 101 - .../V1/ListTargetSitesRequest.php | 201 - .../V1/ListTargetSitesResponse.php | 145 - .../Cloud/DiscoveryEngine/V1/MediaInfo.php | 157 - .../Cloud/DiscoveryEngine/V1/PageInfo.php | 253 - .../Cloud/DiscoveryEngine/V1/PanelInfo.php | 213 - .../Cloud/DiscoveryEngine/V1/Project.php | 213 - .../V1/Project/ServiceTerms.php | 266 - .../V1/Project/ServiceTerms/State.php | 71 - .../V1/ProvisionProjectMetadata.php | 33 - .../V1/ProvisionProjectRequest.php | 181 - .../V1/PurgeCompletionSuggestionsMetadata.php | 127 - .../V1/PurgeCompletionSuggestionsRequest.php | 77 - .../V1/PurgeCompletionSuggestionsResponse.php | 103 - .../V1/PurgeDocumentsMetadata.php | 228 - .../V1/PurgeDocumentsRequest.php | 281 - .../V1/PurgeDocumentsRequest/InlineSource.php | 84 - .../V1/PurgeDocumentsResponse.php | 112 - .../DiscoveryEngine/V1/PurgeErrorConfig.php | 84 - ...PurgeSuggestionDenyListEntriesMetadata.php | 127 - .../PurgeSuggestionDenyListEntriesRequest.php | 73 - ...PurgeSuggestionDenyListEntriesResponse.php | 103 - .../V1/PurgeUserEventsMetadata.php | 194 - .../V1/PurgeUserEventsRequest.php | 243 - .../V1/PurgeUserEventsResponse.php | 69 - .../Google/Cloud/DiscoveryEngine/V1/Query.php | 109 - .../Cloud/DiscoveryEngine/V1/RankRequest.php | 352 -- .../Cloud/DiscoveryEngine/V1/RankResponse.php | 68 - .../DiscoveryEngine/V1/RankingRecord.php | 202 - .../DiscoveryEngine/V1/RecommendRequest.php | 637 --- .../DiscoveryEngine/V1/RecommendResponse.php | 197 - .../RecommendationResult.php | 169 - .../V1/RecrawlUrisMetadata.php | 310 -- .../DiscoveryEngine/V1/RecrawlUrisRequest.php | 165 - .../V1/RecrawlUrisResponse.php | 103 - .../V1/RecrawlUrisResponse/FailureInfo.php | 105 - .../FailureInfo/FailureReason.php | 105 - .../FailureInfo/FailureReason/CorpusType.php | 64 - .../Google/Cloud/DiscoveryEngine/V1/Reply.php | 77 - .../Cloud/DiscoveryEngine/V1/Schema.php | 154 - .../Cloud/DiscoveryEngine/V1/SearchAddOn.php | 54 - .../Cloud/DiscoveryEngine/V1/SearchInfo.php | 241 - .../DiscoveryEngine/V1/SearchRequest.php | 1527 ------ .../V1/SearchRequest/BoostSpec.php | 82 - .../BoostSpec/ConditionBoostSpec.php | 240 - .../ConditionBoostSpec/BoostControlSpec.php | 206 - .../BoostControlSpec/AttributeType.php | 73 - .../BoostControlSpec/ControlPoint.php | 130 - .../BoostControlSpec/InterpolationType.php | 59 - .../V1/SearchRequest/ContentSearchSpec.php | 278 - .../ContentSearchSpec/ChunkSpec.php | 124 - .../ExtractiveContentSpec.php | 327 -- .../ContentSearchSpec/SearchResultMode.php | 66 - .../ContentSearchSpec/SnippetSpec.php | 168 - .../ContentSearchSpec/SummarySpec.php | 629 --- .../SummarySpec/ModelPromptSpec.php | 74 - .../SummarySpec/ModelSpec.php | 106 - .../V1/SearchRequest/DataStoreSpec.php | 122 - .../V1/SearchRequest/FacetSpec.php | 374 -- .../V1/SearchRequest/FacetSpec/FacetKey.php | 394 -- .../V1/SearchRequest/ImageQuery.php | 81 - .../V1/SearchRequest/QueryExpansionSpec.php | 117 - .../QueryExpansionSpec/Condition.php | 68 - .../V1/SearchRequest/SearchAsYouTypeSpec.php | 78 - .../SearchAsYouTypeSpec/Condition.php | 65 - .../V1/SearchRequest/SessionSpec.php | 213 - .../V1/SearchRequest/SpellCorrectionSpec.php | 78 - .../SpellCorrectionSpec/Mode.php | 70 - .../DiscoveryEngine/V1/SearchResponse.php | 501 -- .../V1/SearchResponse/Facet.php | 142 - .../V1/SearchResponse/Facet/FacetValue.php | 151 - .../V1/SearchResponse/QueryExpansionInfo.php | 117 - .../V1/SearchResponse/SearchResult.php | 178 - .../V1/SearchResponse/SessionInfo.php | 132 - .../V1/SearchResponse/Summary.php | 200 - .../V1/SearchResponse/Summary/Citation.php | 138 - .../Summary/CitationMetadata.php | 70 - .../SearchResponse/Summary/CitationSource.php | 78 - .../V1/SearchResponse/Summary/Reference.php | 184 - .../Summary/Reference/ChunkContent.php | 104 - .../Summary/SafetyAttributes.php | 112 - .../Summary/SummarySkippedReason.php | 138 - .../Summary/SummaryWithMetadata.php | 148 - .../Cloud/DiscoveryEngine/V1/SearchTier.php | 62 - .../DiscoveryEngine/V1/SearchUseCase.php | 65 - .../Cloud/DiscoveryEngine/V1/Session.php | 261 - .../DiscoveryEngine/V1/Session/State.php | 57 - .../Cloud/DiscoveryEngine/V1/Session/Turn.php | 123 - .../DiscoveryEngine/V1/SiteSearchEngine.php | 72 - .../V1/SiteVerificationInfo.php | 111 - .../SiteVerificationState.php | 71 - .../Cloud/DiscoveryEngine/V1/SolutionType.php | 77 - .../DiscoveryEngine/V1/SpannerSource.php | 219 - .../V1/SuggestionDenyListEntry.php | 110 - .../SuggestionDenyListEntry/MatchOperator.php | 64 - .../Cloud/DiscoveryEngine/V1/TargetSite.php | 439 -- .../V1/TargetSite/FailureReason.php | 78 - .../TargetSite/FailureReason/QuotaFailure.php | 74 - .../V1/TargetSite/IndexingStatus.php | 82 - .../DiscoveryEngine/V1/TargetSite/Type.php | 69 - .../Cloud/DiscoveryEngine/V1/TextInput.php | 111 - .../V1/TrainCustomModelMetadata.php | 126 - .../V1/TrainCustomModelRequest.php | 239 - .../GcsTrainingInput.php | 240 - .../V1/TrainCustomModelResponse.php | 243 - .../DiscoveryEngine/V1/TransactionInfo.php | 369 -- .../V1/UpdateControlRequest.php | 163 - .../V1/UpdateConversationRequest.php | 158 - .../V1/UpdateDataStoreRequest.php | 186 - .../V1/UpdateDocumentRequest.php | 222 - .../V1/UpdateEngineRequest.php | 181 - .../V1/UpdateSchemaMetadata.php | 125 - .../V1/UpdateSchemaRequest.php | 121 - .../V1/UpdateSessionRequest.php | 158 - .../V1/UpdateTargetSiteMetadata.php | 128 - .../V1/UpdateTargetSiteRequest.php | 118 - .../Cloud/DiscoveryEngine/V1/UserEvent.php | 1310 ----- .../Cloud/DiscoveryEngine/V1/UserInfo.php | 161 - .../DiscoveryEngine/V1/WorkspaceConfig.php | 185 - .../V1/WorkspaceConfig/Type.php | 99 - .../V1/WriteUserEventRequest.php | 185 - .../complete_query.php | 81 - .../import_completion_suggestions.php | 92 - .../import_suggestion_deny_list_entries.php | 90 - .../purge_completion_suggestions.php | 91 - .../purge_suggestion_deny_list_entries.php | 90 - .../ControlServiceClient/create_control.php | 105 - .../ControlServiceClient/delete_control.php | 78 - .../V1/ControlServiceClient/get_control.php | 77 - .../V1/ControlServiceClient/list_controls.php | 80 - .../ControlServiceClient/update_control.php | 86 - .../answer_query.php | 84 - .../converse_conversation.php | 84 - .../create_conversation.php | 81 - .../create_session.php | 81 - .../delete_conversation.php | 78 - .../delete_session.php | 78 - .../get_answer.php | 78 - .../get_conversation.php | 77 - .../get_session.php | 77 - .../list_conversations.php | 82 - .../list_sessions.php | 82 - .../update_conversation.php | 64 - .../update_session.php | 63 - .../create_data_store.php | 115 - .../delete_data_store.php | 89 - .../DataStoreServiceClient/get_data_store.php | 80 - .../list_data_stores.php | 87 - .../update_data_store.php | 75 - .../batch_get_documents_metadata.php | 82 - .../DocumentServiceClient/create_document.php | 98 - .../DocumentServiceClient/delete_document.php | 84 - .../V1/DocumentServiceClient/get_document.php | 86 - .../import_documents.php | 96 - .../DocumentServiceClient/list_documents.php | 89 - .../DocumentServiceClient/purge_documents.php | 109 - .../DocumentServiceClient/update_document.php | 59 - .../V1/EngineServiceClient/create_engine.php | 108 - .../V1/EngineServiceClient/delete_engine.php | 94 - .../V1/EngineServiceClient/get_engine.php | 78 - .../V1/EngineServiceClient/list_engines.php | 78 - .../V1/EngineServiceClient/update_engine.php | 77 - .../check_grounding.php | 76 - .../generate_grounded_content.php | 73 - .../stream_generate_grounded_content.php | 79 - .../provision_project.php | 105 - .../v1/samples/V1/RankServiceClient/rank.php | 79 - .../RecommendationServiceClient/recommend.php | 134 - .../V1/SchemaServiceClient/create_schema.php | 96 - .../V1/SchemaServiceClient/delete_schema.php | 86 - .../V1/SchemaServiceClient/get_schema.php | 77 - .../V1/SchemaServiceClient/list_schemas.php | 77 - .../V1/SchemaServiceClient/update_schema.php | 71 - .../samples/V1/SearchServiceClient/search.php | 86 - .../V1/SearchServiceClient/search_lite.php | 98 - .../list_custom_models.php | 78 - .../train_custom_model.php | 89 - .../batch_create_target_sites.php | 119 - .../batch_verify_target_sites.php | 90 - .../create_target_site.php | 97 - .../delete_target_site.php | 94 - .../disable_advanced_site_search.php | 90 - .../enable_advanced_site_search.php | 90 - .../fetch_domain_verification_status.php | 84 - .../get_site_search_engine.php | 83 - .../get_target_site.php | 85 - .../list_target_sites.php | 86 - .../recrawl_uris.php | 96 - .../update_target_site.php | 85 - .../collect_user_event.php | 80 - .../import_user_events.php | 90 - .../purge_user_events.php | 115 - .../write_user_event.php | 125 - .../src/V1/Client/CompletionServiceClient.php | 459 -- .../v1/src/V1/Client/ControlServiceClient.php | 522 -- .../ConversationalSearchServiceClient.php | 1184 ----- .../src/V1/Client/DataStoreServiceClient.php | 606 --- .../src/V1/Client/DocumentServiceClient.php | 684 --- .../v1/src/V1/Client/EngineServiceClient.php | 430 -- .../GroundedGenerationServiceClient.php | 402 -- .../v1/src/V1/Client/ProjectServiceClient.php | 295 -- .../v1/src/V1/Client/RankServiceClient.php | 239 - .../V1/Client/RecommendationServiceClient.php | 469 -- .../v1/src/V1/Client/SchemaServiceClient.php | 516 -- .../v1/src/V1/Client/SearchServiceClient.php | 572 -- .../V1/Client/SearchTuningServiceClient.php | 363 -- .../Client/SiteSearchEngineServiceClient.php | 730 --- .../src/V1/Client/UserEventServiceClient.php | 529 -- .../v1/src/V1/gapic_metadata.json | 504 -- .../completion_service_client_config.json | 59 - .../completion_service_descriptor_config.php | 121 - .../completion_service_rest_client_config.php | 294 - .../control_service_client_config.json | 59 - .../control_service_descriptor_config.php | 107 - .../control_service_rest_client_config.php | 322 -- ...sational_search_service_client_config.json | 99 - ...ional_search_service_descriptor_config.php | 229 - ...onal_search_service_rest_client_config.php | 494 -- .../data_store_service_client_config.json | 47 - .../data_store_service_descriptor_config.php | 123 - .../data_store_service_rest_client_config.php | 297 -- .../document_service_client_config.json | 86 - .../document_service_descriptor_config.php | 157 - .../document_service_rest_client_config.php | 358 -- .../engine_service_client_config.json | 47 - .../engine_service_descriptor_config.php | 115 - .../engine_service_rest_client_config.php | 262 - ...nded_generation_service_client_config.json | 47 - ...d_generation_service_descriptor_config.php | 75 - ..._generation_service_rest_client_config.php | 225 - .../project_service_client_config.json | 39 - .../project_service_descriptor_config.php | 50 - .../project_service_rest_client_config.php | 213 - .../resources/rank_service_client_config.json | 39 - .../rank_service_descriptor_config.php | 43 - .../rank_service_rest_client_config.php | 213 - .../recommendation_service_client_config.json | 39 - ...commendation_service_descriptor_config.php | 53 - ...ommendation_service_rest_client_config.php | 225 - .../schema_service_client_config.json | 59 - .../schema_service_descriptor_config.php | 126 - .../schema_service_rest_client_config.php | 297 -- .../search_service_client_config.json | 44 - .../search_service_descriptor_config.php | 84 - .../search_service_rest_client_config.php | 249 - .../search_tuning_service_client_config.json | 32 - ...earch_tuning_service_descriptor_config.php | 64 - ...arch_tuning_service_rest_client_config.php | 224 - ...e_search_engine_service_client_config.json | 82 - ...earch_engine_service_descriptor_config.php | 253 - ...arch_engine_service_rest_client_config.php | 407 -- .../user_event_service_client_config.json | 66 - .../user_event_service_descriptor_config.php | 99 - .../user_event_service_rest_client_config.php | 284 - .../V1/Client/CompletionServiceClientTest.php | 669 --- .../V1/Client/ControlServiceClientTest.php | 471 -- .../ConversationalSearchServiceClientTest.php | 994 ---- .../V1/Client/DataStoreServiceClientTest.php | 628 --- .../V1/Client/DocumentServiceClientTest.php | 789 --- .../V1/Client/EngineServiceClientTest.php | 639 --- .../GroundedGenerationServiceClientTest.php | 314 -- .../V1/Client/ProjectServiceClientTest.php | 275 - .../Unit/V1/Client/RankServiceClientTest.php | 161 - .../RecommendationServiceClientTest.php | 182 - .../V1/Client/SchemaServiceClientTest.php | 669 --- .../V1/Client/SearchServiceClientTest.php | 268 - .../Client/SearchTuningServiceClientTest.php | 282 - .../SiteSearchEngineServiceClientTest.php | 1452 ----- .../V1/Client/UserEventServiceClientTest.php | 525 -- .../GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php | Bin 83982 -> 0 bytes .../Google/Privacy/Dlp/V2/Storage.php | Bin 6298 -> 0 bytes .../proto/src/Google/Cloud/Dlp/V2/Action.php | 281 - .../Google/Cloud/Dlp/V2/Action/Deidentify.php | 277 - .../Dlp/V2/Action/JobNotificationEmails.php | 38 - .../PublishFindingsToCloudDataCatalog.php | 51 - .../Dlp/V2/Action/PublishSummaryToCscc.php | 43 - .../Cloud/Dlp/V2/Action/PublishToPubSub.php | 86 - .../Dlp/V2/Action/PublishToStackdriver.php | 39 - .../Cloud/Dlp/V2/Action/SaveFindings.php | 83 - .../src/Google/Cloud/Dlp/V2/ActionDetails.php | 75 - .../Dlp/V2/ActivateJobTriggerRequest.php | 71 - .../Dlp/V2/AllOtherDatabaseResources.php | 33 - .../Google/Cloud/Dlp/V2/AllOtherResources.php | 33 - .../Google/Cloud/Dlp/V2/AmazonS3Bucket.php | 111 - .../Cloud/Dlp/V2/AmazonS3BucketConditions.php | 109 - .../AmazonS3BucketConditions/BucketType.php | 65 - .../ObjectStorageClass.php | 86 - .../Cloud/Dlp/V2/AmazonS3BucketRegex.php | 115 - .../Dlp/V2/AnalyzeDataSourceRiskDetails.php | 372 -- .../CategoricalStatsResult.php | 70 - .../CategoricalStatsHistogramBucket.php | 210 - .../DeltaPresenceEstimationResult.php | 99 - ...DeltaPresenceEstimationHistogramBucket.php | 218 - .../DeltaPresenceEstimationQuasiIdValues.php | 132 - .../KAnonymityResult.php | 70 - .../KAnonymityEquivalenceClass.php | 116 - .../KAnonymityHistogramBucket.php | 210 - .../KMapEstimationResult.php | 99 - .../KMapEstimationHistogramBucket.php | 217 - .../KMapEstimationQuasiIdValues.php | 104 - .../LDiversityResult.php | 70 - .../LDiversityEquivalenceClass.php | 176 - .../LDiversityHistogramBucket.php | 218 - .../NumericalStatsResult.php | 162 - .../RequestedRiskAnalysisOptions.php | 80 - .../src/Google/Cloud/Dlp/V2/AwsAccount.php | 67 - .../Google/Cloud/Dlp/V2/AwsAccountRegex.php | 71 - .../Cloud/Dlp/V2/BigQueryDiscoveryTarget.php | 210 - .../src/Google/Cloud/Dlp/V2/BigQueryField.php | 121 - .../src/Google/Cloud/Dlp/V2/BigQueryKey.php | 127 - .../Google/Cloud/Dlp/V2/BigQueryOptions.php | 369 -- .../Dlp/V2/BigQueryOptions/SampleMethod.php | 68 - .../src/Google/Cloud/Dlp/V2/BigQueryRegex.php | 143 - .../Google/Cloud/Dlp/V2/BigQueryRegexes.php | 72 - .../Dlp/V2/BigQuerySchemaModification.php | 63 - .../src/Google/Cloud/Dlp/V2/BigQueryTable.php | 143 - .../Cloud/Dlp/V2/BigQueryTableCollection.php | 75 - .../Dlp/V2/BigQueryTableModification.php | 56 - .../Google/Cloud/Dlp/V2/BigQueryTableType.php | 69 - .../Dlp/V2/BigQueryTableTypeCollection.php | 68 - .../Cloud/Dlp/V2/BigQueryTableTypes.php | 67 - .../src/Google/Cloud/Dlp/V2/BoundingBox.php | 169 - .../Google/Cloud/Dlp/V2/BucketingConfig.php | 76 - .../Cloud/Dlp/V2/BucketingConfig/Bucket.php | 172 - .../Google/Cloud/Dlp/V2/ByteContentItem.php | 101 - .../Dlp/V2/ByteContentItem/BytesType.php | 164 - .../Cloud/Dlp/V2/CancelDlpJobRequest.php | 67 - .../Cloud/Dlp/V2/CharacterMaskConfig.php | 266 - .../src/Google/Cloud/Dlp/V2/CharsToIgnore.php | 112 - .../V2/CharsToIgnore/CommonCharsToIgnore.php | 85 - .../Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php | 210 - .../Cloud/Dlp/V2/CloudSqlIamCredential.php | 36 - .../Cloud/Dlp/V2/CloudSqlProperties.php | 250 - .../V2/CloudSqlProperties/DatabaseEngine.php | 65 - .../Dlp/V2/CloudStorageDiscoveryTarget.php | 210 - .../Cloud/Dlp/V2/CloudStorageFileSet.php | 71 - .../Cloud/Dlp/V2/CloudStorageOptions.php | 332 -- .../Dlp/V2/CloudStorageOptions/FileSet.php | 146 - .../V2/CloudStorageOptions/SampleMethod.php | 67 - .../Google/Cloud/Dlp/V2/CloudStoragePath.php | 71 - .../Google/Cloud/Dlp/V2/CloudStorageRegex.php | 112 - .../Cloud/Dlp/V2/CloudStorageRegexFileSet.php | 208 - .../Dlp/V2/CloudStorageResourceReference.php | 105 - .../proto/src/Google/Cloud/Dlp/V2/Color.php | 135 - .../Google/Cloud/Dlp/V2/ColumnDataProfile.php | 795 --- .../V2/ColumnDataProfile/ColumnDataType.php | 177 - .../ColumnDataProfile/ColumnPolicyState.php | 57 - .../Cloud/Dlp/V2/ColumnDataProfile/State.php | 67 - .../src/Google/Cloud/Dlp/V2/Connection.php | 186 - .../Google/Cloud/Dlp/V2/ConnectionState.php | 75 - .../src/Google/Cloud/Dlp/V2/Container.php | 354 -- .../src/Google/Cloud/Dlp/V2/ContentItem.php | 147 - .../Google/Cloud/Dlp/V2/ContentLocation.php | 331 -- .../src/Google/Cloud/Dlp/V2/ContentOption.php | 61 - .../Cloud/Dlp/V2/CreateConnectionRequest.php | 159 - .../V2/CreateDeidentifyTemplateRequest.php | 286 - .../Dlp/V2/CreateDiscoveryConfigRequest.php | 227 - .../Cloud/Dlp/V2/CreateDlpJobRequest.php | 334 -- .../Dlp/V2/CreateInspectTemplateRequest.php | 286 - .../Cloud/Dlp/V2/CreateJobTriggerRequest.php | 266 - .../Dlp/V2/CreateStoredInfoTypeRequest.php | 286 - .../Dlp/V2/CryptoDeterministicConfig.php | 327 -- .../Google/Cloud/Dlp/V2/CryptoHashConfig.php | 84 - .../src/Google/Cloud/Dlp/V2/CryptoKey.php | 146 - .../Dlp/V2/CryptoReplaceFfxFpeConfig.php | 445 -- .../FfxCommonNativeAlphabet.php | 80 - .../Google/Cloud/Dlp/V2/CustomInfoType.php | 427 -- .../Dlp/V2/CustomInfoType/DetectionRule.php | 81 - .../DetectionRule/HotwordRule.php | 213 - .../DetectionRule/LikelihoodAdjustment.php | 133 - .../DetectionRule/Proximity.php | 121 - .../Dlp/V2/CustomInfoType/Dictionary.php | 134 - .../V2/CustomInfoType/Dictionary/WordList.php | 78 - .../Dlp/V2/CustomInfoType/ExclusionType.php | 58 - .../Cloud/Dlp/V2/CustomInfoType/Regex.php | 116 - .../Dlp/V2/CustomInfoType/SurrogateType.php | 43 - .../Google/Cloud/Dlp/V2/DataProfileAction.php | 216 - .../Dlp/V2/DataProfileAction/EventType.php | 80 - .../Cloud/Dlp/V2/DataProfileAction/Export.php | 113 - .../DataProfileAction/PubSubNotification.php | 204 - .../PubSubNotification/DetailLevel.php | 71 - .../DataProfileAction/PublishToChronicle.php | 36 - .../PublishToSecurityCommandCenter.php | 36 - .../Dlp/V2/DataProfileAction/TagResources.php | 191 - .../TagResources/TagCondition.php | 126 - .../TagResources/TagValue.php | 84 - .../Dlp/V2/DataProfileBigQueryRowSchema.php | 142 - .../Dlp/V2/DataProfileConfigSnapshot.php | 270 - .../Cloud/Dlp/V2/DataProfileJobConfig.php | 284 - .../Cloud/Dlp/V2/DataProfileLocation.php | 108 - .../Dlp/V2/DataProfilePubSubCondition.php | 77 - .../ProfileScoreBucket.php | 64 - .../PubSubCondition.php | 111 - .../PubSubExpressions.php | 104 - .../PubSubLogicalOperator.php | 68 - .../Cloud/Dlp/V2/DataProfilePubSubMessage.php | 173 - .../Dlp/V2/DataProfileUpdateFrequency.php | 69 - .../src/Google/Cloud/Dlp/V2/DataRiskLevel.php | 68 - .../V2/DataRiskLevel/DataRiskLevelScore.php | 84 - .../Google/Cloud/Dlp/V2/DataSourceType.php | 87 - .../Dlp/V2/DatabaseResourceCollection.php | 76 - .../Dlp/V2/DatabaseResourceReference.php | 181 - .../Cloud/Dlp/V2/DatabaseResourceRegex.php | 188 - .../Cloud/Dlp/V2/DatabaseResourceRegexes.php | 80 - .../src/Google/Cloud/Dlp/V2/DatastoreKey.php | 77 - .../Google/Cloud/Dlp/V2/DatastoreOptions.php | 125 - .../Google/Cloud/Dlp/V2/DateShiftConfig.php | 220 - .../src/Google/Cloud/Dlp/V2/DateTime.php | 204 - .../Google/Cloud/Dlp/V2/DateTime/TimeZone.php | 74 - .../Google/Cloud/Dlp/V2/DeidentifyConfig.php | 198 - .../Cloud/Dlp/V2/DeidentifyContentRequest.php | 417 -- .../Dlp/V2/DeidentifyContentResponse.php | 121 - .../Dlp/V2/DeidentifyDataSourceDetails.php | 122 - .../RequestedDeidentifyOptions.php | 184 - .../Dlp/V2/DeidentifyDataSourceStats.php | 135 - .../Cloud/Dlp/V2/DeidentifyTemplate.php | 282 - .../Cloud/Dlp/V2/DeleteConnectionRequest.php | 86 - .../V2/DeleteDeidentifyTemplateRequest.php | 96 - .../Dlp/V2/DeleteDiscoveryConfigRequest.php | 86 - .../Cloud/Dlp/V2/DeleteDlpJobRequest.php | 81 - .../V2/DeleteFileStoreDataProfileRequest.php | 81 - .../Dlp/V2/DeleteInspectTemplateRequest.php | 91 - .../Cloud/Dlp/V2/DeleteJobTriggerRequest.php | 86 - .../Dlp/V2/DeleteStoredInfoTypeRequest.php | 91 - .../Dlp/V2/DeleteTableDataProfileRequest.php | 81 - .../src/Google/Cloud/Dlp/V2/Disabled.php | 33 - .../Dlp/V2/DiscoveryBigQueryConditions.php | 204 - .../OrConditions.php | 123 - .../Cloud/Dlp/V2/DiscoveryBigQueryFilter.php | 167 - .../AllOtherBigQueryTables.php | 38 - .../Dlp/V2/DiscoveryCloudSqlConditions.php | 114 - .../DatabaseEngine.php | 71 - .../DatabaseResourceType.php | 64 - .../Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php | 155 - .../V2/DiscoveryCloudSqlGenerationCadence.php | 177 - .../SchemaModifiedCadence.php | 112 - .../CloudSqlSchemaModification.php | 64 - .../V2/DiscoveryCloudStorageConditions.php | 123 - .../CloudStorageBucketAttribute.php | 76 - .../CloudStorageObjectAttribute.php | 112 - .../Dlp/V2/DiscoveryCloudStorageFilter.php | 161 - ...DiscoveryCloudStorageGenerationCadence.php | 129 - .../Google/Cloud/Dlp/V2/DiscoveryConfig.php | 564 -- .../Dlp/V2/DiscoveryConfig/OrgConfig.php | 122 - .../Cloud/Dlp/V2/DiscoveryConfig/Status.php | 65 - .../Dlp/V2/DiscoveryFileStoreConditions.php | 173 - .../Dlp/V2/DiscoveryGenerationCadence.php | 214 - ...iscoveryInspectTemplateModifiedCadence.php | 72 - .../Dlp/V2/DiscoveryOtherCloudConditions.php | 124 - .../Dlp/V2/DiscoveryOtherCloudFilter.php | 154 - .../DiscoveryOtherCloudGenerationCadence.php | 125 - .../Dlp/V2/DiscoverySchemaModifiedCadence.php | 113 - .../Dlp/V2/DiscoveryStartingLocation.php | 109 - .../Dlp/V2/DiscoveryTableModifiedCadence.php | 113 - .../Google/Cloud/Dlp/V2/DiscoveryTarget.php | 225 - .../proto/src/Google/Cloud/Dlp/V2/DlpJob.php | 492 -- .../Google/Cloud/Dlp/V2/DlpJob/JobState.php | 96 - .../src/Google/Cloud/Dlp/V2/DlpJobType.php | 61 - .../Google/Cloud/Dlp/V2/DocumentLocation.php | 71 - .../Google/Cloud/Dlp/V2/EncryptionStatus.php | 61 - .../src/Google/Cloud/Dlp/V2/EntityId.php | 81 - .../proto/src/Google/Cloud/Dlp/V2/Error.php | 150 - .../Cloud/Dlp/V2/Error/ErrorExtraInfo.php | 64 - .../Google/Cloud/Dlp/V2/ExcludeByHotword.php | 136 - .../Google/Cloud/Dlp/V2/ExcludeInfoTypes.php | 95 - .../src/Google/Cloud/Dlp/V2/ExclusionRule.php | 212 - .../proto/src/Google/Cloud/Dlp/V2/FieldId.php | 67 - .../Cloud/Dlp/V2/FieldTransformation.php | 225 - .../Cloud/Dlp/V2/FileClusterSummary.php | 367 -- .../Google/Cloud/Dlp/V2/FileClusterType.php | 75 - .../Cloud/Dlp/V2/FileClusterType/Cluster.php | 114 - .../Google/Cloud/Dlp/V2/FileExtensionInfo.php | 67 - .../Cloud/Dlp/V2/FileStoreCollection.php | 78 - .../Cloud/Dlp/V2/FileStoreDataProfile.php | 981 ---- .../Dlp/V2/FileStoreDataProfile/State.php | 67 - .../Cloud/Dlp/V2/FileStoreInfoTypeSummary.php | 77 - .../Google/Cloud/Dlp/V2/FileStoreRegex.php | 75 - .../Google/Cloud/Dlp/V2/FileStoreRegexes.php | 76 - .../src/Google/Cloud/Dlp/V2/FileType.php | 150 - .../proto/src/Google/Cloud/Dlp/V2/Finding.php | 593 --- .../Cloud/Dlp/V2/FinishDlpJobRequest.php | 67 - .../Cloud/Dlp/V2/FixedSizeBucketingConfig.php | 196 - .../Dlp/V2/GetColumnDataProfileRequest.php | 86 - .../Cloud/Dlp/V2/GetConnectionRequest.php | 86 - .../Dlp/V2/GetDeidentifyTemplateRequest.php | 91 - .../Dlp/V2/GetDiscoveryConfigRequest.php | 86 - .../Google/Cloud/Dlp/V2/GetDlpJobRequest.php | 81 - .../Dlp/V2/GetFileStoreDataProfileRequest.php | 86 - .../Dlp/V2/GetInspectTemplateRequest.php | 91 - .../Cloud/Dlp/V2/GetJobTriggerRequest.php | 86 - .../Dlp/V2/GetProjectDataProfileRequest.php | 86 - .../Cloud/Dlp/V2/GetStoredInfoTypeRequest.php | 91 - .../Dlp/V2/GetTableDataProfileRequest.php | 86 - .../Google/Cloud/Dlp/V2/HybridContentItem.php | 122 - .../Cloud/Dlp/V2/HybridFindingDetails.php | 303 -- .../Dlp/V2/HybridInspectDlpJobRequest.php | 130 - .../Dlp/V2/HybridInspectJobTriggerRequest.php | 130 - .../Cloud/Dlp/V2/HybridInspectResponse.php | 33 - .../Cloud/Dlp/V2/HybridInspectStatistics.php | 155 - .../src/Google/Cloud/Dlp/V2/HybridOptions.php | 240 - .../src/Google/Cloud/Dlp/V2/ImageLocation.php | 67 - .../Cloud/Dlp/V2/ImageTransformations.php | 67 - .../ImageTransformation.php | 201 - .../ImageTransformation/AllInfoTypes.php | 36 - .../ImageTransformation/AllText.php | 36 - .../ImageTransformation/SelectedInfoTypes.php | 74 - .../src/Google/Cloud/Dlp/V2/InfoType.php | 173 - .../Google/Cloud/Dlp/V2/InfoTypeCategory.php | 145 - .../V2/InfoTypeCategory/IndustryCategory.php | 72 - .../V2/InfoTypeCategory/LocationCategory.php | 406 -- .../Dlp/V2/InfoTypeCategory/TypeCategory.php | 104 - .../Cloud/Dlp/V2/InfoTypeDescription.php | 285 - .../src/Google/Cloud/Dlp/V2/InfoTypeStats.php | 111 - .../Google/Cloud/Dlp/V2/InfoTypeSummary.php | 116 - .../Cloud/Dlp/V2/InfoTypeSupportedBy.php | 61 - .../Cloud/Dlp/V2/InfoTypeTransformations.php | 74 - .../InfoTypeTransformation.php | 123 - .../src/Google/Cloud/Dlp/V2/InspectConfig.php | 495 -- .../Dlp/V2/InspectConfig/FindingLimits.php | 204 - .../FindingLimits/InfoTypeLimit.php | 127 - .../V2/InspectConfig/InfoTypeLikelihood.php | 130 - .../Cloud/Dlp/V2/InspectContentRequest.php | 287 - .../Cloud/Dlp/V2/InspectContentResponse.php | 77 - .../Cloud/Dlp/V2/InspectDataSourceDetails.php | 121 - .../RequestedOptions.php | 128 - .../V2/InspectDataSourceDetails/Result.php | 224 - .../Google/Cloud/Dlp/V2/InspectJobConfig.php | 197 - .../src/Google/Cloud/Dlp/V2/InspectResult.php | 121 - .../Google/Cloud/Dlp/V2/InspectTemplate.php | 283 - .../Google/Cloud/Dlp/V2/InspectionRule.php | 109 - .../Google/Cloud/Dlp/V2/InspectionRuleSet.php | 102 - .../src/Google/Cloud/Dlp/V2/JobTrigger.php | 442 -- .../Google/Cloud/Dlp/V2/JobTrigger/Status.php | 74 - .../Cloud/Dlp/V2/JobTrigger/Trigger.php | 111 - .../v2/proto/src/Google/Cloud/Dlp/V2/Key.php | 150 - .../Google/Cloud/Dlp/V2/Key/PathElement.php | 174 - .../Google/Cloud/Dlp/V2/KindExpression.php | 67 - .../Cloud/Dlp/V2/KmsWrappedCryptoKey.php | 109 - .../Dlp/V2/LargeCustomDictionaryConfig.php | 169 - .../Dlp/V2/LargeCustomDictionaryStats.php | 67 - .../src/Google/Cloud/Dlp/V2/Likelihood.php | 93 - .../Dlp/V2/ListColumnDataProfilesRequest.php | 387 -- .../Dlp/V2/ListColumnDataProfilesResponse.php | 101 - .../Cloud/Dlp/V2/ListConnectionsRequest.php | 197 - .../Cloud/Dlp/V2/ListConnectionsResponse.php | 105 - .../Dlp/V2/ListDeidentifyTemplatesRequest.php | 340 -- .../V2/ListDeidentifyTemplatesResponse.php | 109 - .../Dlp/V2/ListDiscoveryConfigsRequest.php | 256 - .../Dlp/V2/ListDiscoveryConfigsResponse.php | 105 - .../Cloud/Dlp/V2/ListDlpJobsRequest.php | 468 -- .../Cloud/Dlp/V2/ListDlpJobsResponse.php | 101 - .../V2/ListFileStoreDataProfilesRequest.php | 400 -- .../V2/ListFileStoreDataProfilesResponse.php | 102 - .../Cloud/Dlp/V2/ListInfoTypesRequest.php | 206 - .../Cloud/Dlp/V2/ListInfoTypesResponse.php | 67 - .../Dlp/V2/ListInspectTemplatesRequest.php | 340 -- .../Dlp/V2/ListInspectTemplatesResponse.php | 105 - .../Cloud/Dlp/V2/ListJobTriggersRequest.php | 468 -- .../Cloud/Dlp/V2/ListJobTriggersResponse.php | 105 - .../Dlp/V2/ListProjectDataProfilesRequest.php | 329 -- .../V2/ListProjectDataProfilesResponse.php | 101 - .../Dlp/V2/ListStoredInfoTypesRequest.php | 324 -- .../Dlp/V2/ListStoredInfoTypesResponse.php | 105 - .../Dlp/V2/ListTableDataProfilesRequest.php | 383 -- .../Dlp/V2/ListTableDataProfilesResponse.php | 101 - .../src/Google/Cloud/Dlp/V2/Location.php | 227 - .../proto/src/Google/Cloud/Dlp/V2/Manual.php | 34 - .../src/Google/Cloud/Dlp/V2/MatchingType.php | 79 - .../Google/Cloud/Dlp/V2/MetadataLocation.php | 109 - .../src/Google/Cloud/Dlp/V2/MetadataType.php | 54 - .../Cloud/Dlp/V2/NullPercentageLevel.php | 76 - .../OtherCloudDiscoveryStartingLocation.php | 75 - .../AwsDiscoveryStartingLocation.php | 123 - .../Dlp/V2/OtherCloudDiscoveryTarget.php | 265 - .../Dlp/V2/OtherCloudResourceCollection.php | 75 - .../Cloud/Dlp/V2/OtherCloudResourceRegex.php | 78 - .../Dlp/V2/OtherCloudResourceRegexes.php | 80 - .../V2/OtherCloudSingleResourceReference.php | 75 - .../Cloud/Dlp/V2/OtherInfoTypeSummary.php | 153 - .../Cloud/Dlp/V2/OutputStorageConfig.php | 174 - .../V2/OutputStorageConfig/OutputSchema.php | 87 - .../src/Google/Cloud/Dlp/V2/PartitionId.php | 105 - .../Cloud/Dlp/V2/PrimitiveTransformation.php | 438 -- .../src/Google/Cloud/Dlp/V2/PrivacyMetric.php | 240 - .../PrivacyMetric/CategoricalStatsConfig.php | 93 - .../DeltaPresenceEstimationConfig.php | 161 - .../Dlp/V2/PrivacyMetric/KAnonymityConfig.php | 162 - .../V2/PrivacyMetric/KMapEstimationConfig.php | 163 - .../KMapEstimationConfig/AuxiliaryTable.php | 168 - .../AuxiliaryTable/QuasiIdField.php | 115 - .../KMapEstimationConfig/TaggedField.php | 209 - .../Dlp/V2/PrivacyMetric/LDiversityConfig.php | 122 - .../V2/PrivacyMetric/NumericalStatsConfig.php | 85 - .../Google/Cloud/Dlp/V2/ProfileGeneration.php | 61 - .../src/Google/Cloud/Dlp/V2/ProfileStatus.php | 125 - .../Cloud/Dlp/V2/ProjectDataProfile.php | 346 -- .../proto/src/Google/Cloud/Dlp/V2/QuasiId.php | 206 - .../src/Google/Cloud/Dlp/V2/QuoteInfo.php | 75 - .../proto/src/Google/Cloud/Dlp/V2/Range.php | 101 - .../Google/Cloud/Dlp/V2/RecordCondition.php | 78 - .../Dlp/V2/RecordCondition/Condition.php | 174 - .../Dlp/V2/RecordCondition/Conditions.php | 70 - .../Dlp/V2/RecordCondition/Expressions.php | 116 - .../Expressions/LogicalOperator.php | 61 - .../src/Google/Cloud/Dlp/V2/RecordKey.php | 146 - .../Google/Cloud/Dlp/V2/RecordLocation.php | 165 - .../Google/Cloud/Dlp/V2/RecordSuppression.php | 82 - .../Cloud/Dlp/V2/RecordTransformation.php | 155 - .../Cloud/Dlp/V2/RecordTransformations.php | 106 - .../src/Google/Cloud/Dlp/V2/RedactConfig.php | 35 - .../Cloud/Dlp/V2/RedactImageRequest.php | 306 -- .../ImageRedactionConfig.php | 171 - .../Cloud/Dlp/V2/RedactImageResponse.php | 153 - .../Cloud/Dlp/V2/ReidentifyContentRequest.php | 417 -- .../Dlp/V2/ReidentifyContentResponse.php | 121 - .../Cloud/Dlp/V2/RelationalOperator.php | 96 - .../Cloud/Dlp/V2/ReplaceDictionaryConfig.php | 81 - .../Cloud/Dlp/V2/ReplaceValueConfig.php | 77 - .../Dlp/V2/ReplaceWithInfoTypeConfig.php | 33 - .../Cloud/Dlp/V2/ResourceVisibility.php | 71 - .../Cloud/Dlp/V2/RiskAnalysisJobConfig.php | 161 - .../src/Google/Cloud/Dlp/V2/Schedule.php | 90 - .../Cloud/Dlp/V2/SearchConnectionsRequest.php | 197 - .../Dlp/V2/SearchConnectionsResponse.php | 113 - .../Cloud/Dlp/V2/SecretManagerCredential.php | 108 - .../Cloud/Dlp/V2/SecretsDiscoveryTarget.php | 41 - .../Google/Cloud/Dlp/V2/SensitivityScore.php | 68 - .../SensitivityScoreLevel.php | 85 - .../Google/Cloud/Dlp/V2/StatisticalTable.php | 165 - .../StatisticalTable/QuasiIdentifierField.php | 123 - .../src/Google/Cloud/Dlp/V2/StorageConfig.php | 218 - .../Dlp/V2/StorageConfig/TimespanConfig.php | 359 -- .../Cloud/Dlp/V2/StorageMetadataLabel.php | 67 - .../Google/Cloud/Dlp/V2/StoredInfoType.php | 150 - .../Cloud/Dlp/V2/StoredInfoTypeConfig.php | 211 - .../Cloud/Dlp/V2/StoredInfoTypeState.php | 78 - .../Cloud/Dlp/V2/StoredInfoTypeStats.php | 75 - .../Cloud/Dlp/V2/StoredInfoTypeVersion.php | 282 - .../src/Google/Cloud/Dlp/V2/StoredType.php | 123 - .../proto/src/Google/Cloud/Dlp/V2/Table.php | 103 - .../src/Google/Cloud/Dlp/V2/Table/Row.php | 70 - .../Google/Cloud/Dlp/V2/TableDataProfile.php | 1031 ---- .../Cloud/Dlp/V2/TableDataProfile/State.php | 67 - .../src/Google/Cloud/Dlp/V2/TableLocation.php | 87 - .../src/Google/Cloud/Dlp/V2/TableOptions.php | 79 - .../Google/Cloud/Dlp/V2/TableReference.php | 102 - .../Google/Cloud/Dlp/V2/TimePartConfig.php | 68 - .../Cloud/Dlp/V2/TimePartConfig/TimePart.php | 92 - .../Cloud/Dlp/V2/TransformationConfig.php | 193 - .../Dlp/V2/TransformationContainerType.php | 68 - .../Dlp/V2/TransformationDescription.php | 224 - .../Cloud/Dlp/V2/TransformationDetails.php | 296 -- .../V2/TransformationDetailsStorageConfig.php | 90 - .../Dlp/V2/TransformationErrorHandling.php | 115 - .../LeaveUntransformed.php | 39 - .../ThrowError.php | 36 - .../Cloud/Dlp/V2/TransformationLocation.php | 158 - .../Cloud/Dlp/V2/TransformationOverview.php | 101 - .../Dlp/V2/TransformationResultStatus.php | 115 - .../Dlp/V2/TransformationResultStatusType.php | 82 - .../Cloud/Dlp/V2/TransformationSummary.php | 321 -- .../TransformationSummary/SummaryResult.php | 143 - .../TransformationResultCode.php | 64 - .../Cloud/Dlp/V2/TransformationType.php | 147 - .../Cloud/Dlp/V2/TransientCryptoKey.php | 88 - .../Cloud/Dlp/V2/UniquenessScoreLevel.php | 72 - .../Cloud/Dlp/V2/UnwrappedCryptoKey.php | 68 - .../Cloud/Dlp/V2/UpdateConnectionRequest.php | 174 - .../V2/UpdateDeidentifyTemplateRequest.php | 188 - .../Dlp/V2/UpdateDiscoveryConfigRequest.php | 178 - .../Dlp/V2/UpdateInspectTemplateRequest.php | 183 - .../Cloud/Dlp/V2/UpdateJobTriggerRequest.php | 178 - .../Dlp/V2/UpdateStoredInfoTypeRequest.php | 193 - .../proto/src/Google/Cloud/Dlp/V2/Value.php | 311 -- .../Google/Cloud/Dlp/V2/ValueFrequency.php | 111 - .../Cloud/Dlp/V2/VersionDescription.php | 101 - .../DlpServiceClient/activate_job_trigger.php | 73 - .../V2/DlpServiceClient/cancel_dlp_job.php | 76 - .../V2/DlpServiceClient/create_connection.php | 85 - .../create_deidentify_template.php | 96 - .../create_discovery_config.php | 91 - .../V2/DlpServiceClient/create_dlp_job.php | 95 - .../create_inspect_template.php | 96 - .../DlpServiceClient/create_job_trigger.php | 96 - .../create_stored_info_type.php | 96 - .../DlpServiceClient/deidentify_content.php | 65 - .../V2/DlpServiceClient/delete_connection.php | 70 - .../delete_deidentify_template.php | 78 - .../delete_discovery_config.php | 74 - .../V2/DlpServiceClient/delete_dlp_job.php | 76 - .../delete_file_store_data_profile.php | 74 - .../delete_inspect_template.php | 74 - .../DlpServiceClient/delete_job_trigger.php | 73 - .../delete_stored_info_type.php | 74 - .../delete_table_data_profile.php | 74 - .../V2/DlpServiceClient/finish_dlp_job.php | 70 - .../get_column_data_profile.php | 76 - .../V2/DlpServiceClient/get_connection.php | 72 - .../get_deidentify_template.php | 79 - .../DlpServiceClient/get_discovery_config.php | 76 - .../V2/DlpServiceClient/get_dlp_job.php | 76 - .../get_file_store_data_profile.php | 76 - .../DlpServiceClient/get_inspect_template.php | 76 - .../V2/DlpServiceClient/get_job_trigger.php | 75 - .../get_project_data_profile.php | 76 - .../DlpServiceClient/get_stored_info_type.php | 76 - .../get_table_data_profile.php | 76 - .../hybrid_inspect_dlp_job.php | 74 - .../hybrid_inspect_job_trigger.php | 74 - .../V2/DlpServiceClient/inspect_content.php | 67 - .../list_column_data_profiles.php | 78 - .../V2/DlpServiceClient/list_connections.php | 79 - .../list_deidentify_templates.php | 98 - .../list_discovery_configs.php | 85 - .../V2/DlpServiceClient/list_dlp_jobs.php | 96 - .../list_file_store_data_profiles.php | 78 - .../V2/DlpServiceClient/list_info_types.php | 60 - .../list_inspect_templates.php | 98 - .../V2/DlpServiceClient/list_job_triggers.php | 94 - .../list_project_data_profiles.php | 76 - .../list_stored_info_types.php | 94 - .../list_table_data_profiles.php | 78 - .../V2/DlpServiceClient/redact_image.php | 65 - .../DlpServiceClient/reidentify_content.php | 89 - .../DlpServiceClient/search_connections.php | 78 - .../V2/DlpServiceClient/update_connection.php | 78 - .../update_deidentify_template.php | 80 - .../update_discovery_config.php | 82 - .../update_inspect_template.php | 76 - .../DlpServiceClient/update_job_trigger.php | 75 - .../update_stored_info_type.php | 77 - .../Dlp/v2/src/V2/Client/DlpServiceClient.php | 2651 ---------- .../Dlp/v2/src/V2/gapic_metadata.json | 293 - .../resources/dlp_service_client_config.json | 320 -- .../dlp_service_descriptor_config.php | 827 --- .../dlp_service_rest_client_config.php | 1145 ---- .../Unit/V2/Client/DlpServiceClientTest.php | 3892 -------------- .../Google/Cloud/Documentai/V1/Barcode.php | 31 - .../Google/Cloud/Documentai/V1/Document.php | Bin 13032 -> 0 bytes .../Google/Cloud/Documentai/V1/DocumentIo.php | Bin 2208 -> 0 bytes .../V1/DocumentProcessorService.php | Bin 17082 -> 0 bytes .../Cloud/Documentai/V1/DocumentSchema.php | Bin 1829 -> 0 bytes .../Google/Cloud/Documentai/V1/Evaluation.php | Bin 3028 -> 0 bytes .../Google/Cloud/Documentai/V1/Geometry.php | 36 - .../Cloud/Documentai/V1/OperationMetadata.php | Bin 1280 -> 0 bytes .../Google/Cloud/Documentai/V1/Processor.php | Bin 4080 -> 0 bytes .../Cloud/Documentai/V1/ProcessorType.php | 40 - .../Google/Cloud/DocumentAI/V1/Barcode.php | 255 - .../V1/BatchDocumentsInputConfig.php | 108 - .../DocumentAI/V1/BatchProcessMetadata.php | 228 - .../IndividualProcessStatus.php | 208 - .../V1/BatchProcessMetadata/State.php | 92 - .../DocumentAI/V1/BatchProcessRequest.php | 342 -- .../DocumentAI/V1/BatchProcessResponse.php | 34 - .../Cloud/DocumentAI/V1/BoundingPoly.php | 101 - .../DocumentAI/V1/CommonOperationMetadata.php | 223 - .../V1/CommonOperationMetadata/State.php | 85 - .../DocumentAI/V1/CreateProcessorRequest.php | 161 - .../DocumentAI/V1/DeleteProcessorMetadata.php | 79 - .../DocumentAI/V1/DeleteProcessorRequest.php | 83 - .../V1/DeleteProcessorVersionMetadata.php | 79 - .../V1/DeleteProcessorVersionRequest.php | 83 - .../V1/DeployProcessorVersionMetadata.php | 79 - .../V1/DeployProcessorVersionRequest.php | 83 - .../V1/DeployProcessorVersionResponse.php | 35 - .../V1/DisableProcessorMetadata.php | 79 - .../DocumentAI/V1/DisableProcessorRequest.php | 69 - .../V1/DisableProcessorResponse.php | 35 - .../Google/Cloud/DocumentAI/V1/Document.php | 611 --- .../V1/Document/ChunkedDocument.php | 70 - .../V1/Document/ChunkedDocument/Chunk.php | 250 - .../ChunkedDocument/Chunk/ChunkPageFooter.php | 114 - .../ChunkedDocument/Chunk/ChunkPageHeader.php | 114 - .../ChunkedDocument/Chunk/ChunkPageSpan.php | 104 - .../DocumentAI/V1/Document/DocumentLayout.php | 71 - .../DocumentLayout/DocumentLayoutBlock.php | 223 - .../DocumentLayoutBlock/LayoutListBlock.php | 108 - .../DocumentLayoutBlock/LayoutListEntry.php | 74 - .../DocumentLayoutBlock/LayoutPageSpan.php | 104 - .../DocumentLayoutBlock/LayoutTableBlock.php | 138 - .../DocumentLayoutBlock/LayoutTableCell.php | 142 - .../DocumentLayoutBlock/LayoutTableRow.php | 70 - .../DocumentLayoutBlock/LayoutTextBlock.php | 150 - .../Cloud/DocumentAI/V1/Document/Entity.php | 488 -- .../V1/Document/Entity/NormalizedValue.php | 357 -- .../DocumentAI/V1/Document/EntityRelation.php | 139 - .../Cloud/DocumentAI/V1/Document/Page.php | 719 --- .../DocumentAI/V1/Document/Page/Block.php | 170 - .../V1/Document/Page/DetectedBarcode.php | 132 - .../V1/Document/Page/DetectedLanguage.php | 112 - .../DocumentAI/V1/Document/Page/Dimension.php | 138 - .../DocumentAI/V1/Document/Page/FormField.php | 382 -- .../DocumentAI/V1/Document/Page/Image.php | 180 - .../V1/Document/Page/ImageQualityScores.php | 104 - .../ImageQualityScores/DetectedDefect.php | 140 - .../DocumentAI/V1/Document/Page/Layout.php | 220 - .../V1/Document/Page/Layout/Orientation.php | 81 - .../DocumentAI/V1/Document/Page/Line.php | 170 - .../DocumentAI/V1/Document/Page/Matrix.php | 185 - .../DocumentAI/V1/Document/Page/Paragraph.php | 169 - .../DocumentAI/V1/Document/Page/Symbol.php | 118 - .../DocumentAI/V1/Document/Page/Table.php | 237 - .../V1/Document/Page/Table/TableCell.php | 186 - .../V1/Document/Page/Table/TableRow.php | 70 - .../DocumentAI/V1/Document/Page/Token.php | 261 - .../V1/Document/Page/Token/DetectedBreak.php | 71 - .../Page/Token/DetectedBreak/Type.php | 71 - .../V1/Document/Page/Token/StyleInfo.php | 586 -- .../V1/Document/Page/VisualElement.php | 157 - .../DocumentAI/V1/Document/PageAnchor.php | 73 - .../V1/Document/PageAnchor/PageRef.php | 265 - .../PageAnchor/PageRef/LayoutType.php | 112 - .../DocumentAI/V1/Document/Provenance.php | 187 - .../V1/Document/Provenance/OperationType.php | 105 - .../V1/Document/Provenance/PBParent.php | 148 - .../Cloud/DocumentAI/V1/Document/Revision.php | 336 -- .../V1/Document/Revision/HumanReview.php | 108 - .../DocumentAI/V1/Document/ShardInfo.php | 148 - .../Cloud/DocumentAI/V1/Document/Style.php | 377 -- .../DocumentAI/V1/Document/Style/FontSize.php | 108 - .../DocumentAI/V1/Document/TextAnchor.php | 117 - .../V1/Document/TextAnchor/TextSegment.php | 124 - .../DocumentAI/V1/Document/TextChange.php | 173 - .../DocumentAI/V1/DocumentOutputConfig.php | 76 - .../DocumentOutputConfig/GcsOutputConfig.php | 166 - .../GcsOutputConfig/ShardingConfig.php | 104 - .../Cloud/DocumentAI/V1/DocumentSchema.php | 179 - .../V1/DocumentSchema/EntityType.php | 276 - .../DocumentSchema/EntityType/EnumValues.php | 70 - .../V1/DocumentSchema/EntityType/Property.php | 184 - .../EntityType/Property/OccurrenceType.php | 88 - .../DocumentAI/V1/DocumentSchema/Metadata.php | 192 - .../DocumentAI/V1/EnableProcessorMetadata.php | 79 - .../DocumentAI/V1/EnableProcessorRequest.php | 69 - .../DocumentAI/V1/EnableProcessorResponse.php | 35 - .../V1/EvaluateProcessorVersionMetadata.php | 79 - .../V1/EvaluateProcessorVersionRequest.php | 146 - .../V1/EvaluateProcessorVersionResponse.php | 69 - .../Google/Cloud/DocumentAI/V1/Evaluation.php | 309 -- .../V1/Evaluation/ConfidenceLevelMetrics.php | 114 - .../DocumentAI/V1/Evaluation/Counters.php | 180 - .../DocumentAI/V1/Evaluation/Metrics.php | 410 -- .../V1/Evaluation/MultiConfidenceMetrics.php | 290 - .../MultiConfidenceMetrics/MetricsType.php | 63 - .../DocumentAI/V1/EvaluationReference.php | 189 - .../V1/FetchProcessorTypesRequest.php | 89 - .../V1/FetchProcessorTypesResponse.php | 69 - .../Cloud/DocumentAI/V1/GcsDocument.php | 101 - .../Cloud/DocumentAI/V1/GcsDocuments.php | 67 - .../Google/Cloud/DocumentAI/V1/GcsPrefix.php | 67 - .../DocumentAI/V1/GetEvaluationRequest.php | 91 - .../DocumentAI/V1/GetProcessorRequest.php | 83 - .../DocumentAI/V1/GetProcessorTypeRequest.php | 83 - .../V1/GetProcessorVersionRequest.php | 83 - .../Cloud/DocumentAI/V1/HumanReviewStatus.php | 155 - .../DocumentAI/V1/HumanReviewStatus/State.php | 82 - .../DocumentAI/V1/ListEvaluationsRequest.php | 177 - .../DocumentAI/V1/ListEvaluationsResponse.php | 105 - .../V1/ListProcessorTypesRequest.php | 165 - .../V1/ListProcessorTypesResponse.php | 103 - .../V1/ListProcessorVersionsRequest.php | 171 - .../V1/ListProcessorVersionsResponse.php | 103 - .../DocumentAI/V1/ListProcessorsRequest.php | 166 - .../DocumentAI/V1/ListProcessorsResponse.php | 103 - .../Cloud/DocumentAI/V1/NormalizedVertex.php | 103 - .../Google/Cloud/DocumentAI/V1/OcrConfig.php | 378 -- .../Cloud/DocumentAI/V1/OcrConfig/Hints.php | 90 - .../V1/OcrConfig/PremiumFeatures.php | 142 - .../Cloud/DocumentAI/V1/ProcessOptions.php | 300 -- .../ProcessOptions/IndividualPageSelector.php | 70 - .../V1/ProcessOptions/LayoutConfig.php | 80 - .../LayoutConfig/ChunkingConfig.php | 108 - .../Cloud/DocumentAI/V1/ProcessRequest.php | 457 -- .../Cloud/DocumentAI/V1/ProcessResponse.php | 127 - .../Google/Cloud/DocumentAI/V1/Processor.php | 438 -- .../Cloud/DocumentAI/V1/Processor/State.php | 107 - .../Cloud/DocumentAI/V1/ProcessorType.php | 280 - .../V1/ProcessorType/LocationInfo.php | 74 - .../Cloud/DocumentAI/V1/ProcessorVersion.php | 574 -- .../V1/ProcessorVersion/DeprecationInfo.php | 114 - .../V1/ProcessorVersion/GenAiModelInfo.php | 111 - .../GenAiModelInfo/CustomGenAiModelInfo.php | 106 - .../CustomGenAiModelInfo/CustomModelType.php | 64 - .../FoundationGenAiModelInfo.php | 108 - .../V1/ProcessorVersion/ModelType.php | 64 - .../DocumentAI/V1/ProcessorVersion/State.php | 106 - .../DocumentAI/V1/ProcessorVersionAlias.php | 101 - .../Cloud/DocumentAI/V1/RawDocument.php | 155 - .../V1/ReviewDocumentOperationMetadata.php | 113 - .../DocumentAI/V1/ReviewDocumentRequest.php | 247 - .../V1/ReviewDocumentRequest/Priority.php | 62 - .../DocumentAI/V1/ReviewDocumentResponse.php | 141 - .../V1/ReviewDocumentResponse/State.php | 64 - .../V1/SetDefaultProcessorVersionMetadata.php | 79 - .../V1/SetDefaultProcessorVersionRequest.php | 123 - .../V1/SetDefaultProcessorVersionResponse.php | 35 - .../V1/TrainProcessorVersionMetadata.php | 165 - .../DatasetValidation.php | 189 - .../V1/TrainProcessorVersionRequest.php | 348 -- .../CustomDocumentExtractionOptions.php | 71 - .../TrainingMethod.php | 59 - .../FoundationModelTuningOptions.php | 116 - .../InputData.php | 125 - .../V1/TrainProcessorVersionResponse.php | 68 - .../V1/UndeployProcessorVersionMetadata.php | 79 - .../V1/UndeployProcessorVersionRequest.php | 83 - .../V1/UndeployProcessorVersionResponse.php | 35 - .../src/Google/Cloud/DocumentAI/V1/Vertex.php | 102 - .../batch_process_documents.php | 88 - .../create_processor.php | 80 - .../delete_processor.php | 85 - .../delete_processor_version.php | 86 - .../deploy_processor_version.php | 88 - .../disable_processor.php | 87 - .../enable_processor.php | 87 - .../evaluate_processor_version.php | 92 - .../fetch_processor_types.php | 74 - .../get_evaluation.php | 79 - .../get_location.php | 57 - .../get_processor.php | 75 - .../get_processor_type.php | 75 - .../get_processor_version.php | 76 - .../list_evaluations.php | 84 - .../list_locations.php | 62 - .../list_processor_types.php | 77 - .../list_processor_versions.php | 82 - .../list_processors.php | 77 - .../process_document.php | 79 - .../review_document.php | 90 - .../set_default_processor_version.php | 107 - .../train_processor_version.php | 94 - .../undeploy_processor_version.php | 88 - .../Client/DocumentProcessorServiceClient.php | 1094 ---- .../DocumentAi/v1/src/V1/gapic_metadata.json | 138 - ...ument_processor_service_client_config.json | 169 - ...nt_processor_service_descriptor_config.php | 443 -- ...t_processor_service_rest_client_config.php | 389 -- .../DocumentProcessorServiceClientTest.php | 2437 --------- .../Google/Cloud/Domains/V1/Domains.php | Bin 12715 -> 0 bytes .../Cloud/Domains/V1/AuthorizationCode.php | 71 - .../V1/ConfigureContactSettingsRequest.php | 260 - .../V1/ConfigureDnsSettingsRequest.php | 248 - .../V1/ConfigureManagementSettingsRequest.php | 188 - .../Google/Cloud/Domains/V1/ContactNotice.php | 55 - .../Cloud/Domains/V1/ContactPrivacy.php | 81 - .../Cloud/Domains/V1/ContactSettings.php | 222 - .../Domains/V1/ContactSettings/Contact.php | 190 - .../Domains/V1/DeleteRegistrationRequest.php | 86 - .../Google/Cloud/Domains/V1/DnsSettings.php | 146 - .../Domains/V1/DnsSettings/CustomDns.php | 120 - .../Cloud/Domains/V1/DnsSettings/DsRecord.php | 174 - .../V1/DnsSettings/DsRecord/Algorithm.php | 170 - .../V1/DnsSettings/DsRecord/DigestType.php | 79 - .../Cloud/Domains/V1/DnsSettings/DsState.php | 68 - .../Domains/V1/DnsSettings/GlueRecord.php | 159 - .../V1/DnsSettings/GoogleDomainsDns.php | 165 - .../Google/Cloud/Domains/V1/DomainNotice.php | 58 - .../Domains/V1/ExportRegistrationRequest.php | 86 - .../Domains/V1/GetRegistrationRequest.php | 86 - .../Domains/V1/ListRegistrationsRequest.php | 240 - .../Domains/V1/ListRegistrationsResponse.php | 105 - .../Cloud/Domains/V1/ManagementSettings.php | 101 - .../V1/ManagementSettings/RenewalMethod.php | 70 - .../Cloud/Domains/V1/OperationMetadata.php | 257 - .../Domains/V1/RegisterDomainRequest.php | 310 -- .../Cloud/Domains/V1/RegisterParameters.php | 221 - .../V1/RegisterParameters/Availability.php | 81 - .../Google/Cloud/Domains/V1/Registration.php | 573 -- .../Cloud/Domains/V1/Registration/Issue.php | 71 - .../Cloud/Domains/V1/Registration/State.php | 108 - .../V1/ResetAuthorizationCodeRequest.php | 86 - .../V1/RetrieveAuthorizationCodeRequest.php | 86 - .../V1/RetrieveRegisterParametersRequest.php | 117 - .../V1/RetrieveRegisterParametersResponse.php | 77 - .../V1/RetrieveTransferParametersRequest.php | 117 - .../V1/RetrieveTransferParametersResponse.php | 77 - .../Cloud/Domains/V1/SearchDomainsRequest.php | 117 - .../Domains/V1/SearchDomainsResponse.php | 67 - .../Domains/V1/TransferDomainRequest.php | 341 -- .../Cloud/Domains/V1/TransferLockState.php | 61 - .../Cloud/Domains/V1/TransferParameters.php | 255 - .../Domains/V1/UpdateRegistrationRequest.php | 146 - .../configure_contact_settings.php | 92 - .../DomainsClient/configure_dns_settings.php | 91 - .../configure_management_settings.php | 91 - .../V1/DomainsClient/delete_registration.php | 99 - .../V1/DomainsClient/export_registration.php | 92 - .../V1/DomainsClient/get_registration.php | 72 - .../V1/DomainsClient/list_registrations.php | 77 - .../V1/DomainsClient/register_domain.php | 165 - .../reset_authorization_code.php | 79 - .../retrieve_authorization_code.php | 80 - .../retrieve_register_parameters.php | 75 - .../retrieve_transfer_parameters.php | 79 - .../V1/DomainsClient/search_domains.php | 78 - .../V1/DomainsClient/transfer_domain.php | 173 - .../V1/DomainsClient/update_registration.php | 77 - .../v1/src/V1/Client/DomainsClient.php | 789 --- .../Domains/v1/src/V1/gapic_metadata.json | 93 - .../V1/resources/domains_client_config.json | 119 - .../resources/domains_descriptor_config.php | 277 - .../resources/domains_rest_client_config.php | 291 - .../Unit/V1/Client/DomainsClientTest.php | 1792 ------- .../Google/Cloud/Edgenetwork/V1/Resources.php | Bin 7182 -> 0 bytes .../Google/Cloud/Edgenetwork/V1/Service.php | Bin 12466 -> 0 bytes .../CreateInterconnectAttachmentRequest.php | 247 - .../EdgeNetwork/V1/CreateNetworkRequest.php | 247 - .../EdgeNetwork/V1/CreateRouterRequest.php | 247 - .../EdgeNetwork/V1/CreateSubnetRequest.php | 247 - .../DeleteInterconnectAttachmentRequest.php | 155 - .../EdgeNetwork/V1/DeleteNetworkRequest.php | 155 - .../EdgeNetwork/V1/DeleteRouterRequest.php | 155 - .../EdgeNetwork/V1/DeleteSubnetRequest.php | 155 - .../V1/DiagnoseInterconnectRequest.php | 82 - .../V1/DiagnoseInterconnectResponse.php | 122 - .../EdgeNetwork/V1/DiagnoseNetworkRequest.php | 81 - .../V1/DiagnoseNetworkResponse.php | 121 - .../DiagnoseNetworkResponse/NetworkStatus.php | 105 - .../NetworkStatus/MacsecStatus.php | 64 - .../EdgeNetwork/V1/DiagnoseRouterRequest.php | 81 - .../EdgeNetwork/V1/DiagnoseRouterResponse.php | 121 - .../V1/GetInterconnectAttachmentRequest.php | 81 - .../EdgeNetwork/V1/GetInterconnectRequest.php | 81 - .../EdgeNetwork/V1/GetNetworkRequest.php | 81 - .../Cloud/EdgeNetwork/V1/GetRouterRequest.php | 81 - .../Cloud/EdgeNetwork/V1/GetSubnetRequest.php | 81 - .../Cloud/EdgeNetwork/V1/GetZoneRequest.php | 83 - .../EdgeNetwork/V1/InitializeZoneRequest.php | 81 - .../EdgeNetwork/V1/InitializeZoneResponse.php | 33 - .../Cloud/EdgeNetwork/V1/Interconnect.php | 371 -- .../V1/Interconnect/InterconnectType.php | 57 - .../EdgeNetwork/V1/InterconnectAttachment.php | 417 -- .../V1/InterconnectDiagnostics.php | 144 - .../LinkLACPStatus.php | 256 - .../LinkLACPStatus/State.php | 65 - .../LinkLLDPStatus.php | 252 - .../V1/InterconnectDiagnostics/LinkStatus.php | 196 - .../InterconnectDiagnostics/PacketCounts.php | 252 - .../Cloud/EdgeNetwork/V1/LinkLayerAddress.php | 101 - .../V1/ListInterconnectAttachmentsRequest.php | 221 - .../ListInterconnectAttachmentsResponse.php | 135 - .../V1/ListInterconnectsRequest.php | 221 - .../V1/ListInterconnectsResponse.php | 135 - .../EdgeNetwork/V1/ListNetworksRequest.php | 221 - .../EdgeNetwork/V1/ListNetworksResponse.php | 135 - .../EdgeNetwork/V1/ListRoutersRequest.php | 221 - .../EdgeNetwork/V1/ListRoutersResponse.php | 135 - .../EdgeNetwork/V1/ListSubnetsRequest.php | 221 - .../EdgeNetwork/V1/ListSubnetsResponse.php | 135 - .../Cloud/EdgeNetwork/V1/ListZonesRequest.php | 223 - .../EdgeNetwork/V1/ListZonesResponse.php | 137 - .../Google/Cloud/EdgeNetwork/V1/Network.php | 269 - .../EdgeNetwork/V1/OperationMetadata.php | 307 -- .../Cloud/EdgeNetwork/V1/ResourceState.php | 86 - .../Google/Cloud/EdgeNetwork/V1/Router.php | 453 -- .../Cloud/EdgeNetwork/V1/Router/Bgp.php | 108 - .../Cloud/EdgeNetwork/V1/Router/BgpPeer.php | 321 -- .../EdgeNetwork/V1/Router/PBInterface.php | 249 - .../Cloud/EdgeNetwork/V1/RouterStatus.php | 105 - .../V1/RouterStatus/BgpPeerStatus.php | 326 -- .../RouterStatus/BgpPeerStatus/BgpStatus.php | 64 - .../V1/RouterStatus/PrefixCounter.php | 240 - .../Google/Cloud/EdgeNetwork/V1/Subnet.php | 451 -- .../EdgeNetwork/V1/Subnet/BondingType.php | 68 - .../Cloud/EdgeNetwork/V1/SubnetStatus.php | 140 - .../EdgeNetwork/V1/UpdateRouterRequest.php | 230 - .../EdgeNetwork/V1/UpdateSubnetRequest.php | 230 - .../src/Google/Cloud/EdgeNetwork/V1/Zone.php | 241 - .../create_interconnect_attachment.php | 118 - .../V1/EdgeNetworkClient/create_network.php | 96 - .../V1/EdgeNetworkClient/create_router.php | 108 - .../V1/EdgeNetworkClient/create_subnet.php | 106 - .../delete_interconnect_attachment.php | 85 - .../V1/EdgeNetworkClient/delete_network.php | 80 - .../V1/EdgeNetworkClient/delete_router.php | 80 - .../V1/EdgeNetworkClient/delete_subnet.php | 80 - .../diagnose_interconnect.php | 76 - .../V1/EdgeNetworkClient/diagnose_network.php | 71 - .../V1/EdgeNetworkClient/diagnose_router.php | 71 - .../V1/EdgeNetworkClient/get_interconnect.php | 76 - .../get_interconnect_attachment.php | 76 - .../V1/EdgeNetworkClient/get_location.php | 57 - .../V1/EdgeNetworkClient/get_network.php | 71 - .../V1/EdgeNetworkClient/get_router.php | 71 - .../V1/EdgeNetworkClient/get_subnet.php | 71 - .../samples/V1/EdgeNetworkClient/get_zone.php | 72 - .../V1/EdgeNetworkClient/initialize_zone.php | 71 - .../list_interconnect_attachments.php | 76 - .../EdgeNetworkClient/list_interconnects.php | 76 - .../V1/EdgeNetworkClient/list_locations.php | 62 - .../V1/EdgeNetworkClient/list_networks.php | 76 - .../V1/EdgeNetworkClient/list_routers.php | 76 - .../V1/EdgeNetworkClient/list_subnets.php | 76 - .../V1/EdgeNetworkClient/list_zones.php | 77 - .../V1/EdgeNetworkClient/update_router.php | 98 - .../V1/EdgeNetworkClient/update_subnet.php | 96 - .../v1/src/V1/Client/EdgeNetworkClient.php | 1201 ----- .../EdgeNetwork/v1/src/V1/gapic_metadata.json | 158 - .../resources/edge_network_client_config.json | 184 - .../edge_network_descriptor_config.php | 503 -- .../edge_network_rest_client_config.php | 413 -- .../Unit/V1/Client/EdgeNetworkClientTest.php | 2786 ---------- .../Clouderrorreporting/V1Beta1/Common.php | Bin 2297 -> 0 bytes .../V1Beta1/ErrorGroupService.php | 43 - .../V1Beta1/ErrorStatsService.php | Bin 5318 -> 0 bytes .../V1Beta1/ReportErrorsService.php | 46 - .../V1beta1/DeleteEventsRequest.php | 128 - .../V1beta1/DeleteEventsResponse.php | 33 - .../ErrorReporting/V1beta1/ErrorContext.php | 206 - .../ErrorReporting/V1beta1/ErrorEvent.php | 207 - .../ErrorReporting/V1beta1/ErrorGroup.php | 245 - .../V1beta1/ErrorGroupOrder.php | 76 - .../V1beta1/ErrorGroupStats.php | 492 -- .../V1beta1/GetGroupRequest.php | 159 - .../V1beta1/HttpRequestContext.php | 252 - .../V1beta1/ListEventsRequest.php | 361 -- .../V1beta1/ListEventsResponse.php | 153 - .../V1beta1/ListGroupStatsRequest.php | 638 --- .../V1beta1/ListGroupStatsResponse.php | 165 - .../ErrorReporting/V1beta1/QueryTimeRange.php | 73 - .../V1beta1/QueryTimeRange/Period.php | 90 - .../V1beta1/ReportErrorEventRequest.php | 148 - .../V1beta1/ReportErrorEventResponse.php | 34 - .../V1beta1/ReportedErrorEvent.php | 311 -- .../V1beta1/ResolutionStatus.php | 78 - .../ErrorReporting/V1beta1/ServiceContext.php | 180 - .../V1beta1/ServiceContextFilter.php | 150 - .../ErrorReporting/V1beta1/SourceLocation.php | 150 - .../ErrorReporting/V1beta1/TimedCount.php | 157 - .../V1beta1/TimedCountAlignment.php | 74 - .../ErrorReporting/V1beta1/TrackingIssue.php | 71 - .../V1beta1/UpdateGroupRequest.php | 90 - .../ErrorGroupServiceClient/get_group.php | 89 - .../ErrorGroupServiceClient/update_group.php | 60 - .../ErrorStatsServiceClient/delete_events.php | 82 - .../ErrorStatsServiceClient/list_events.php | 95 - .../list_group_stats.php | 91 - .../report_error_event.php | 127 - .../Client/ErrorGroupServiceClient.php | 280 - .../Client/ErrorStatsServiceClient.php | 309 -- .../Client/ReportErrorsServiceClient.php | 266 - .../src/V1beta1/ErrorGroupServiceClient.php | 36 - .../src/V1beta1/ErrorStatsServiceClient.php | 36 - .../Gapic/ErrorGroupServiceGapicClient.php | 362 -- .../Gapic/ErrorStatsServiceGapicClient.php | 581 -- .../Gapic/ReportErrorsServiceGapicClient.php | 328 -- .../src/V1beta1/ReportErrorsServiceClient.php | 36 - .../v1beta1/src/V1beta1/gapic_metadata.json | 66 - .../error_group_service_client_config.json | 45 - .../error_group_service_descriptor_config.php | 56 - ...error_group_service_rest_client_config.php | 66 - .../error_stats_service_client_config.json | 50 - .../error_stats_service_descriptor_config.php | 83 - ...error_stats_service_rest_client_config.php | 86 - .../report_errors_service_client_config.json | 37 - ...eport_errors_service_descriptor_config.php | 43 - ...port_errors_service_rest_client_config.php | 41 - .../Client/ErrorGroupServiceClientTest.php | 226 - .../Client/ErrorStatsServiceClientTest.php | 307 -- .../Client/ReportErrorsServiceClientTest.php | 175 - .../V1beta1/ErrorGroupServiceClientTest.php | 185 - .../V1beta1/ErrorStatsServiceClientTest.php | 263 - .../V1beta1/ReportErrorsServiceClientTest.php | 133 - .../Cloud/Essentialcontacts/V1/Enums.php | Bin 1168 -> 0 bytes .../Cloud/Essentialcontacts/V1/Service.php | 86 - .../V1/ComputeContactsRequest.php | 209 - .../V1/ComputeContactsResponse.php | 121 - .../Cloud/EssentialContacts/V1/Contact.php | 283 - .../V1/CreateContactRequest.php | 142 - .../V1/DeleteContactRequest.php | 96 - .../V1/GetContactRequest.php | 96 - .../V1/ListContactsRequest.php | 183 - .../V1/ListContactsResponse.php | 113 - .../V1/NotificationCategory.php | 113 - .../V1/SendTestMessageRequest.php | 167 - .../V1/UpdateContactRequest.php | 151 - .../EssentialContacts/V1/ValidationState.php | 64 - .../compute_contacts.php | 80 - .../create_contact.php | 100 - .../delete_contact.php | 72 - .../get_contact.php | 74 - .../list_contacts.php | 78 - .../send_test_message.php | 90 - .../update_contact.php | 93 - .../Client/EssentialContactsServiceClient.php | 514 -- .../v1/src/V1/gapic_metadata.json | 53 - ...ential_contacts_service_client_config.json | 79 - ...ial_contacts_service_descriptor_config.php | 138 - ...al_contacts_service_rest_client_config.php | 186 - .../EssentialContactsServiceClientTest.php | 625 --- .../Google/Cloud/Eventarc/V1/Channel.php | Bin 1636 -> 0 bytes .../Cloud/Eventarc/V1/ChannelConnection.php | 39 - .../Google/Cloud/Eventarc/V1/Discovery.php | 44 - .../Google/Cloud/Eventarc/V1/Enrollment.php | 53 - .../Google/Cloud/Eventarc/V1/Eventarc.php | 350 -- .../Cloud/Eventarc/V1/GoogleApiSource.php | 54 - .../Cloud/Eventarc/V1/GoogleChannelConfig.php | 37 - .../Cloud/Eventarc/V1/LoggingConfig.php | Bin 1148 -> 0 bytes .../Google/Cloud/Eventarc/V1/MessageBus.php | 53 - .../Cloud/Eventarc/V1/NetworkConfig.php | 32 - .../Google/Cloud/Eventarc/V1/Pipeline.php | Bin 4457 -> 0 bytes .../Google/Cloud/Eventarc/V1/Trigger.php | Bin 3485 -> 0 bytes .../src/Google/Cloud/Eventarc/V1/Channel.php | 458 -- .../Cloud/Eventarc/V1/Channel/State.php | 82 - .../Cloud/Eventarc/V1/ChannelConnection.php | 284 - .../src/Google/Cloud/Eventarc/V1/CloudRun.php | 159 - .../V1/CreateChannelConnectionRequest.php | 163 - .../Eventarc/V1/CreateChannelRequest.php | 201 - .../Eventarc/V1/CreateEnrollmentRequest.php | 206 - .../V1/CreateGoogleApiSourceRequest.php | 206 - .../Eventarc/V1/CreateMessageBusRequest.php | 206 - .../Eventarc/V1/CreatePipelineRequest.php | 201 - .../Eventarc/V1/CreateTriggerRequest.php | 201 - .../V1/DeleteChannelConnectionRequest.php | 81 - .../Eventarc/V1/DeleteChannelRequest.php | 119 - .../Eventarc/V1/DeleteEnrollmentRequest.php | 198 - .../V1/DeleteGoogleApiSourceRequest.php | 198 - .../Eventarc/V1/DeleteMessageBusRequest.php | 198 - .../Eventarc/V1/DeletePipelineRequest.php | 198 - .../Eventarc/V1/DeleteTriggerRequest.php | 198 - .../Google/Cloud/Eventarc/V1/Destination.php | 289 - .../Google/Cloud/Eventarc/V1/Enrollment.php | 469 -- .../Google/Cloud/Eventarc/V1/EventFilter.php | 167 - .../Google/Cloud/Eventarc/V1/EventType.php | 201 - .../Cloud/Eventarc/V1/FilteringAttribute.php | 178 - .../src/Google/Cloud/Eventarc/V1/GKE.php | 231 - .../V1/GetChannelConnectionRequest.php | 81 - .../Cloud/Eventarc/V1/GetChannelRequest.php | 81 - .../Eventarc/V1/GetEnrollmentRequest.php | 81 - .../Eventarc/V1/GetGoogleApiSourceRequest.php | 81 - .../V1/GetGoogleChannelConfigRequest.php | 81 - .../Eventarc/V1/GetMessageBusRequest.php | 81 - .../Cloud/Eventarc/V1/GetPipelineRequest.php | 81 - .../Cloud/Eventarc/V1/GetProviderRequest.php | 81 - .../Cloud/Eventarc/V1/GetTriggerRequest.php | 81 - .../Cloud/Eventarc/V1/GoogleApiSource.php | 481 -- .../Cloud/Eventarc/V1/GoogleChannelConfig.php | 165 - .../Google/Cloud/Eventarc/V1/HttpEndpoint.php | 91 - .../V1/ListChannelConnectionsRequest.php | 165 - .../V1/ListChannelConnectionsResponse.php | 147 - .../Cloud/Eventarc/V1/ListChannelsRequest.php | 211 - .../Eventarc/V1/ListChannelsResponse.php | 139 - .../Eventarc/V1/ListEnrollmentsRequest.php | 249 - .../Eventarc/V1/ListEnrollmentsResponse.php | 139 - .../V1/ListGoogleApiSourcesRequest.php | 249 - .../V1/ListGoogleApiSourcesResponse.php | 139 - .../V1/ListMessageBusEnrollmentsRequest.php | 165 - .../V1/ListMessageBusEnrollmentsResponse.php | 139 - .../Eventarc/V1/ListMessageBusesRequest.php | 249 - .../Eventarc/V1/ListMessageBusesResponse.php | 139 - .../Eventarc/V1/ListPipelinesRequest.php | 249 - .../Eventarc/V1/ListPipelinesResponse.php | 139 - .../Eventarc/V1/ListProvidersRequest.php | 241 - .../Eventarc/V1/ListProvidersResponse.php | 139 - .../Cloud/Eventarc/V1/ListTriggersRequest.php | 253 - .../Eventarc/V1/ListTriggersResponse.php | 139 - .../Cloud/Eventarc/V1/LoggingConfig.php | 76 - .../Eventarc/V1/LoggingConfig/LogSeverity.php | 120 - .../Google/Cloud/Eventarc/V1/MessageBus.php | 446 -- .../Cloud/Eventarc/V1/NetworkConfig.php | 75 - .../Cloud/Eventarc/V1/OperationMetadata.php | 307 -- .../src/Google/Cloud/Eventarc/V1/Pipeline.php | 667 --- .../Eventarc/V1/Pipeline/Destination.php | 377 -- .../Destination/AuthenticationConfig.php | 129 - .../AuthenticationConfig/OAuthToken.php | 143 - .../AuthenticationConfig/OidcToken.php | 139 - .../V1/Pipeline/Destination/HttpEndpoint.php | 740 --- .../V1/Pipeline/Destination/NetworkConfig.php | 79 - .../Cloud/Eventarc/V1/Pipeline/Mediation.php | 78 - .../V1/Pipeline/Mediation/Transformation.php | 370 -- .../V1/Pipeline/MessagePayloadFormat.php | 144 - .../MessagePayloadFormat/AvroFormat.php | 70 - .../MessagePayloadFormat/JsonFormat.php | 36 - .../MessagePayloadFormat/ProtobufFormat.php | 70 - .../Eventarc/V1/Pipeline/RetryPolicy.php | 185 - .../src/Google/Cloud/Eventarc/V1/Provider.php | 143 - .../src/Google/Cloud/Eventarc/V1/Pubsub.php | 129 - .../Cloud/Eventarc/V1/StateCondition.php | 101 - .../Google/Cloud/Eventarc/V1/Transport.php | 79 - .../src/Google/Cloud/Eventarc/V1/Trigger.php | 641 --- .../Eventarc/V1/UpdateChannelRequest.php | 184 - .../Eventarc/V1/UpdateEnrollmentRequest.php | 222 - .../V1/UpdateGoogleApiSourceRequest.php | 226 - .../V1/UpdateGoogleChannelConfigRequest.php | 146 - .../Eventarc/V1/UpdateMessageBusRequest.php | 222 - .../Eventarc/V1/UpdatePipelineRequest.php | 222 - .../Eventarc/V1/UpdateTriggerRequest.php | 225 - .../V1/EventarcClient/create_channel.php | 96 - .../create_channel_connection.php | 111 - .../V1/EventarcClient/create_enrollment.php | 119 - .../create_google_api_source.php | 107 - .../V1/EventarcClient/create_message_bus.php | 89 - .../V1/EventarcClient/create_pipeline.php | 91 - .../V1/EventarcClient/create_trigger.php | 122 - .../V1/EventarcClient/delete_channel.php | 83 - .../delete_channel_connection.php | 87 - .../V1/EventarcClient/delete_enrollment.php | 83 - .../delete_google_api_source.php | 87 - .../V1/EventarcClient/delete_message_bus.php | 83 - .../V1/EventarcClient/delete_pipeline.php | 83 - .../V1/EventarcClient/delete_trigger.php | 83 - .../samples/V1/EventarcClient/get_channel.php | 71 - .../EventarcClient/get_channel_connection.php | 75 - .../V1/EventarcClient/get_enrollment.php | 71 - .../EventarcClient/get_google_api_source.php | 75 - .../get_google_channel_config.php | 71 - .../V1/EventarcClient/get_iam_policy.php | 72 - .../V1/EventarcClient/get_location.php | 57 - .../V1/EventarcClient/get_message_bus.php | 71 - .../V1/EventarcClient/get_pipeline.php | 71 - .../V1/EventarcClient/get_provider.php | 71 - .../samples/V1/EventarcClient/get_trigger.php | 71 - .../list_channel_connections.php | 76 - .../V1/EventarcClient/list_channels.php | 76 - .../V1/EventarcClient/list_enrollments.php | 76 - .../list_google_api_sources.php | 76 - .../V1/EventarcClient/list_locations.php | 62 - .../list_message_bus_enrollments.php | 75 - .../V1/EventarcClient/list_message_buses.php | 76 - .../V1/EventarcClient/list_pipelines.php | 76 - .../V1/EventarcClient/list_providers.php | 76 - .../V1/EventarcClient/list_triggers.php | 76 - .../V1/EventarcClient/set_iam_policy.php | 77 - .../EventarcClient/test_iam_permissions.php | 84 - .../V1/EventarcClient/update_channel.php | 69 - .../V1/EventarcClient/update_enrollment.php | 107 - .../update_google_api_source.php | 92 - .../update_google_channel_config.php | 73 - .../V1/EventarcClient/update_message_bus.php | 71 - .../V1/EventarcClient/update_pipeline.php | 74 - .../V1/EventarcClient/update_trigger.php | 69 - .../v1/src/V1/Client/EventarcClient.php | 1815 ------- .../Eventarc/v1/src/V1/gapic_metadata.json | 238 - .../V1/resources/eventarc_client_config.json | 265 - .../resources/eventarc_descriptor_config.php | 806 --- .../resources/eventarc_rest_client_config.php | 698 --- .../Unit/V1/Client/EventarcClientTest.php | 4705 ----------------- .../Eventarc/Publishing/V1/CloudEvent.php | Bin 1805 -> 0 bytes .../Eventarc/Publishing/V1/Publisher.php | Bin 2735 -> 0 bytes .../Eventarc/Publishing/V1/CloudEvent.php | 328 -- .../CloudEvent/CloudEventAttributeValue.php | 276 - .../PublishChannelConnectionEventsRequest.php | 159 - ...PublishChannelConnectionEventsResponse.php | 33 - .../Publishing/V1/PublishEventsRequest.php | 159 - .../Publishing/V1/PublishEventsResponse.php | 33 - .../Eventarc/Publishing/V1/PublishRequest.php | 197 - .../Publishing/V1/PublishResponse.php | 33 - .../v1/samples/V1/PublisherClient/publish.php | 71 - .../publish_channel_connection_events.php | 57 - .../V1/PublisherClient/publish_events.php | 57 - .../v1/src/V1/Client/PublisherClient.php | 272 - .../v1/src/V1/gapic_metadata.json | 33 - .../V1/resources/publisher_client_config.json | 47 - .../resources/publisher_descriptor_config.php | 64 - .../publisher_rest_client_config.php | 65 - .../Unit/V1/Client/PublisherClientTest.php | 263 - 3093 files changed, 531 insertions(+), 513814 deletions(-) delete mode 100644 owl-bot-staging/AccessContextManager/type-protos/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/Type/DeviceResources.php delete mode 100644 owl-bot-staging/AccessContextManager/type-protos/proto/src/Google/Identity/AccessContextManager/Type/DeviceEncryptionStatus.php delete mode 100644 owl-bot-staging/AccessContextManager/type-protos/proto/src/Google/Identity/AccessContextManager/Type/DeviceManagementLevel.php delete mode 100644 owl-bot-staging/AccessContextManager/type-protos/proto/src/Google/Identity/AccessContextManager/Type/OsType.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/AccessContextManager.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/AccessLevel.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/AccessPolicy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/GcpUserAccessBinding.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/ServicePerimeter.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessContextManagerOperationMetadata.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessLevel.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessPolicy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/BasicLevel.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/BasicLevel/ConditionCombiningFunction.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CommitServicePerimetersRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CommitServicePerimetersResponse.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/Condition.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateAccessLevelRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateGcpUserAccessBindingRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateServicePerimeterRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CustomLevel.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteAccessLevelRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteAccessPolicyRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteGcpUserAccessBindingRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteServicePerimeterRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DevicePolicy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GcpUserAccessBinding.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GcpUserAccessBindingOperationMetadata.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetAccessLevelRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetAccessPolicyRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetGcpUserAccessBindingRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetServicePerimeterRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/LevelFormat.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessLevelsRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessLevelsResponse.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessPoliciesRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessPoliciesResponse.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListGcpUserAccessBindingsRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListGcpUserAccessBindingsResponse.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListServicePerimetersRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListServicePerimetersResponse.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/OsConstraint.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceAccessLevelsRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceAccessLevelsResponse.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceServicePerimetersRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceServicePerimetersResponse.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeter.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeter/PerimeterType.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/ApiOperation.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressFrom.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressPolicy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressTo.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IdentityType.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressFrom.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressPolicy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressSource.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressTo.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/MethodSelector.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/VpcAccessibleServices.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateAccessLevelRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateAccessPolicyRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateGcpUserAccessBindingRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateServicePerimeterRequest.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/commit_service_perimeters.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_access_level.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_access_policy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_gcp_user_access_binding.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_service_perimeter.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_access_level.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_access_policy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_gcp_user_access_binding.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_service_perimeter.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_access_level.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_access_policy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_gcp_user_access_binding.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_iam_policy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_service_perimeter.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_access_levels.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_access_policies.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_gcp_user_access_bindings.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_service_perimeters.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/replace_access_levels.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/replace_service_perimeters.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/set_iam_policy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_access_level.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_access_policy.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_gcp_user_access_binding.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_service_perimeter.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/src/V1/Client/AccessContextManagerClient.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_client_config.json delete mode 100644 owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_descriptor_config.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_rest_client_config.php delete mode 100644 owl-bot-staging/AccessContextManager/v1/tests/Unit/V1/Client/AccessContextManagerClientTest.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/GPBMetadata/Google/Marketingplatform/Admin/V1Alpha/MarketingplatformAdmin.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/GPBMetadata/Google/Marketingplatform/Admin/V1Alpha/Resources.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/AnalyticsAccountLink.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/AnalyticsServiceLevel.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/CreateAnalyticsAccountLinkRequest.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/DeleteAnalyticsAccountLinkRequest.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/GetOrganizationRequest.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/LinkVerificationState.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/ListAnalyticsAccountLinksRequest.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/ListAnalyticsAccountLinksResponse.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/Organization.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/SetPropertyServiceLevelRequest.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/SetPropertyServiceLevelResponse.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/create_analytics_account_link.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/delete_analytics_account_link.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/get_organization.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/list_analytics_account_links.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/set_property_service_level.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/Client/MarketingplatformAdminServiceClient.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/gapic_metadata.json delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_client_config.json delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_descriptor_config.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_rest_client_config.php delete mode 100644 owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/tests/Unit/V1alpha/Client/MarketingplatformAdminServiceClientTest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/AptArtifact.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Artifact.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Attachment.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/File.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Generic.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Package.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Repository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Rule.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Service.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Settings.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Tag.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Version.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/VpcscConfig.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/YumArtifact.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/AptArtifact.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/AptArtifact/PackageType.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Attachment.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/BatchDeleteVersionsMetadata.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/BatchDeleteVersionsRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicy.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicy/Action.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyCondition.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyCondition/TagState.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyMostRecentVersions.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateAttachmentRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateRepositoryRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateRuleRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateTagRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteAttachmentRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteFileRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeletePackageRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteRepositoryRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteRuleRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteTagRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteVersionRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DockerImage.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/File.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GenericArtifact.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetAttachmentRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetDockerImageRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetFileRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetMavenArtifactRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetNpmPackageRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetPackageRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetProjectSettingsRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetPythonPackageRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetRepositoryRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetRuleRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetTagRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetVPCSCConfigRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetVersionRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Hash.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Hash/HashType.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsErrorInfo.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsGcsSource.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsMetadata.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsErrorInfo.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsGcsSource.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsMetadata.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListAttachmentsRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListAttachmentsResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListDockerImagesRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListDockerImagesResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListFilesRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListFilesResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListMavenArtifactsRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListMavenArtifactsResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListNpmPackagesRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListNpmPackagesResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPackagesRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPackagesResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPythonPackagesRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPythonPackagesResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRepositoriesRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRepositoriesResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRulesRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRulesResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListTagsRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListTagsResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListVersionsRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListVersionsResponse.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/MavenArtifact.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/NpmPackage.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Package.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ProjectSettings.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ProjectSettings/RedirectionState.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/PythonPackage.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/CustomRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/PublicRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/PublicRepository/RepositoryBase.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/CommonRemoteRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository/CustomRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository/PublicRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository/CustomRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository/PublicRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository/CustomRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository/PublicRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository/CustomRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository/PublicRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/UpstreamCredentials.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/UpstreamCredentials/UsernamePasswordCredentials.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/CustomRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/PublicRepository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/PublicRepository/RepositoryBase.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/DockerRepositoryConfig.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/Format.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/MavenRepositoryConfig.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/MavenRepositoryConfig/VersionPolicy.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/Mode.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig/EnablementConfig.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig/EnablementState.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule/Action.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule/Operation.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Tag.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateFileRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdatePackageRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateProjectSettingsRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateRepositoryRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateRuleRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateTagRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateVPCSCConfigRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateVersionRequest.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpstreamPolicy.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VPCSCConfig.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VPCSCConfig/VPCSCPolicy.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Version.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VersionView.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VirtualRepositoryConfig.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/YumArtifact.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/YumArtifact/PackageType.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/batch_delete_versions.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_attachment.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_repository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_rule.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_tag.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_attachment.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_file.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_package.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_repository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_rule.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_tag.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_version.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_attachment.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_docker_image.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_file.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_iam_policy.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_location.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_maven_artifact.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_npm_package.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_package.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_project_settings.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_python_package.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_repository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_rule.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_tag.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_version.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_vpcsc_config.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/import_apt_artifacts.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/import_yum_artifacts.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_attachments.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_docker_images.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_files.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_locations.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_maven_artifacts.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_npm_packages.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_packages.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_python_packages.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_repositories.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_rules.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_tags.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_versions.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/set_iam_policy.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_file.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_package.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_project_settings.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_repository.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_rule.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_tag.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_version.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_vpcsc_config.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/src/V1/Client/ArtifactRegistryClient.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_client_config.json delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_descriptor_config.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_rest_client_config.php delete mode 100644 owl-bot-staging/ArtifactRegistry/v1/tests/Unit/V1/Client/ArtifactRegistryClientTest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/GPBMetadata/Google/Devtools/Cloudbuild/V2/Cloudbuild.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/GPBMetadata/Google/Devtools/Cloudbuild/V2/Repositories.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BatchCreateRepositoriesRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BatchCreateRepositoriesResponse.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BitbucketCloudConfig.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BitbucketDataCenterConfig.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/Connection.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/CreateConnectionRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/CreateRepositoryRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/DeleteConnectionRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/DeleteRepositoryRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsRequest/RefType.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsResponse.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchLinkableRepositoriesRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchLinkableRepositoriesResponse.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadTokenRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadTokenResponse.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadWriteTokenRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadWriteTokenResponse.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GetConnectionRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GetRepositoryRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitHubConfig.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitHubEnterpriseConfig.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitLabConfig.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/InstallationState.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/InstallationState/Stage.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListConnectionsRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListConnectionsResponse.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListRepositoriesRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListRepositoriesResponse.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/OAuthCredential.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/OperationMetadata.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ProcessWebhookRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/Repository.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/RunWorkflowCustomOperationMetadata.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ServiceDirectoryConfig.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/UpdateConnectionRequest.php delete mode 100644 owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/UserCredential.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/batch_create_repositories.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/create_connection.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/create_repository.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/delete_connection.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/delete_repository.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_git_refs.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_linkable_repositories.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_read_token.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_read_write_token.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_connection.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_repository.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/list_connections.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/list_repositories.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/update_connection.php delete mode 100644 owl-bot-staging/Build/v2/src/V2/Client/RepositoryManagerClient.php delete mode 100644 owl-bot-staging/Build/v2/src/V2/gapic_metadata.json delete mode 100644 owl-bot-staging/Build/v2/src/V2/resources/repository_manager_client_config.json delete mode 100644 owl-bot-staging/Build/v2/src/V2/resources/repository_manager_descriptor_config.php delete mode 100644 owl-bot-staging/Build/v2/src/V2/resources/repository_manager_rest_client_config.php delete mode 100644 owl-bot-staging/Build/v2/tests/Unit/V2/Client/RepositoryManagerClientTest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/GPBMetadata/Google/Container/V1/ClusterService.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AcceleratorConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig/ComplianceStandard.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig/Mode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig/GCPSecretManagerCertificateConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig/DNSEndpointConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig/IPEndpointsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/HugepagesConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig/EffectiveCgroupMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ParallelstoreCsiDriverConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RBACBindingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayClusterLoggingConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayClusterMonitoringConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayOperatorConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecretManagerConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UserManagedKeysConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php delete mode 100644 owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php delete mode 100644 owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php delete mode 100644 owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php delete mode 100644 owl-bot-staging/Container/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json delete mode 100644 owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php delete mode 100644 owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php delete mode 100644 owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/proto/src/GPBMetadata/Google/Devtools/Containeranalysis/V1/Containeranalysis.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/proto/src/Google/Cloud/ContainerAnalysis/V1/GetVulnerabilityOccurrencesSummaryRequest.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/proto/src/Google/Cloud/ContainerAnalysis/V1/VulnerabilityOccurrencesSummary.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/proto/src/Google/Cloud/ContainerAnalysis/V1/VulnerabilityOccurrencesSummary/FixableTotalByDigest.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/get_iam_policy.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/get_vulnerability_occurrences_summary.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/set_iam_policy.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/src/V1/Client/ContainerAnalysisClient.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_client_config.json delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_descriptor_config.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_rest_client_config.php delete mode 100644 owl-bot-staging/ContainerAnalysis/v1/tests/Unit/V1/Client/ContainerAnalysisClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Environment.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Jobs.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Messages.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Metrics.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Snapshots.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Streaming.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Templates.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingAlgorithm.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingEvent.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingEvent/AutoscalingEventType.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingSettings.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/BigQueryIODetails.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/BigTableIODetails.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CheckActiveJobsRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CheckActiveJobsResponse.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ComputationTopology.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ContainerSpec.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CreateJobFromTemplateRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CreateJobRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CustomSourceLocation.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DataDiskAssignment.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DatastoreIODetails.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DebugOptions.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DefaultPackageSet.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DeleteSnapshotRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DeleteSnapshotResponse.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Disk.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DisplayData.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DynamicTemplateLaunchParams.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Environment.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageState.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/ComponentSource.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/ComponentTransform.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/StageSource.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionState.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FailedLocation.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FileIODetails.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FlexResourceSchedulingGoal.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FlexTemplateRuntimeEnvironment.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobExecutionDetailsRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobMetricsRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetSnapshotRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetStageExecutionDetailsRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateRequest/TemplateView.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateResponse.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateResponse/TemplateType.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/InvalidTemplateParameters.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/InvalidTemplateParameters/ParameterViolation.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Job.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionDetails.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionInfo.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionStageInfo.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMessage.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMessageImportance.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMetadata.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMetrics.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobState.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobType.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobView.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KeyRangeDataDiskAssignment.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KeyRangeLocation.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KindType.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateParameter.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateResponse.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateParameters.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateResponse.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobMessagesRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobMessagesResponse.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsRequest/Filter.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsResponse.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListSnapshotsRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListSnapshotsResponse.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MetricStructuredName.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MetricUpdate.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MountedDataDisk.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Package.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ParameterMetadata.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ParameterType.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PipelineDescription.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ProgressTimeseries.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ProgressTimeseries/Point.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubSubIODetails.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubsubLocation.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubsubSnapshotMetadata.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/RuntimeEnvironment.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/RuntimeMetadata.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SDKInfo.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SDKInfo/Language.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkHarnessContainerImage.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkVersion.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkVersion/SdkSupportStatus.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ShuffleMode.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Snapshot.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SnapshotJobRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SnapshotState.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SpannerIODetails.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StageExecutionDetails.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StageSummary.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StateFamilyConfig.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Step.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamLocation.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingApplianceSnapshotConfig.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingComputationRanges.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingSideInputLocation.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingStageLocation.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StructuredMessage.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StructuredMessage/Parameter.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TaskRunnerSettings.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TeardownPolicy.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TemplateMetadata.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TopologyConfig.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TransformSummary.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/UpdateJobRequest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkItemDetails.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerDetails.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerIPAddressConfiguration.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerPool.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerSettings.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/FlexTemplatesServiceClient/launch_flex_template.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/aggregated_list_jobs.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/check_active_jobs.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/create_job.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/get_job.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/list_jobs.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/snapshot_job.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/update_job.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MessagesV1Beta3Client/list_job_messages.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_job_execution_details.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_job_metrics.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_stage_execution_details.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/delete_snapshot.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/get_snapshot.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/list_snapshots.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/create_job_from_template.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/get_template.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/launch_template.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/FlexTemplatesServiceClient.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/JobsV1Beta3Client.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/MessagesV1Beta3Client.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/MetricsV1Beta3Client.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/SnapshotsV1Beta3Client.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/TemplatesServiceClient.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/FlexTemplatesServiceClient.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/FlexTemplatesServiceGapicClient.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/JobsV1Beta3GapicClient.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/MessagesV1Beta3GapicClient.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/MetricsV1Beta3GapicClient.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/SnapshotsV1Beta3GapicClient.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/TemplatesServiceGapicClient.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/JobsV1Beta3Client.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/MessagesV1Beta3Client.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/MetricsV1Beta3Client.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/SnapshotsV1Beta3Client.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/TemplatesServiceClient.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/gapic_metadata.json delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/flex_templates_service_client_config.json delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/flex_templates_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/flex_templates_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_client_config.json delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_descriptor_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_rest_client_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_client_config.json delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_descriptor_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_rest_client_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_client_config.json delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_descriptor_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_rest_client_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_client_config.json delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_descriptor_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_rest_client_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_client_config.json delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/FlexTemplatesServiceClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/JobsV1Beta3ClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/MessagesV1Beta3ClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/MetricsV1Beta3ClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/SnapshotsV1Beta3ClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/TemplatesServiceClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/FlexTemplatesServiceClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/JobsV1Beta3ClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/MessagesV1Beta3ClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/MetricsV1Beta3ClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/SnapshotsV1Beta3ClientTest.php delete mode 100644 owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/TemplatesServiceClientTest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/GPBMetadata/Google/Cloud/Metastore/V1/Metastore.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/GPBMetadata/Google/Cloud/Metastore/V1/MetastoreFederation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/AlterMetadataResourceLocationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/AlterMetadataResourceLocationResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/AuxiliaryVersionConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/BackendMetastore.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/BackendMetastore/MetastoreType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Backup/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateBackupRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateMetadataImportRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DatabaseDumpSpec.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DatabaseDumpSpec/Type.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteBackupRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/EncryptionConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ErrorDetails.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ExportMetadataRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Federation/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetBackupRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetMetadataImportRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/HiveMetastoreConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/HiveMetastoreConfig/EndpointProtocol.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/KerberosConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListBackupsRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListBackupsResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListFederationsRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListFederationsResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListMetadataImportsRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListMetadataImportsResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListServicesRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListServicesResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/LocationMetadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/LocationMetadata/HiveMetastoreVersion.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MaintenanceWindow.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataExport.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataExport/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/DatabaseDump.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/DatabaseDump/DatabaseType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataManagementActivity.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MoveTableToDatabaseRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MoveTableToDatabaseResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/NetworkConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/NetworkConfig/Consumer.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/QueryMetadataRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/QueryMetadataResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore/RestoreType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/RestoreServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ScalingConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ScalingConfig/InstanceSize.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Secret.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/DatabaseType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/ReleaseChannel.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/Tier.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/TelemetryConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/TelemetryConfig/LogFormat.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateMetadataImportRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/alter_metadata_resource_location.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_metadata_import.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/delete_backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/delete_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/export_metadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_location.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_metadata_import.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_backups.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_locations.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_metadata_imports.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_services.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/move_table_to_database.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/query_metadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/restore_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/set_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/update_metadata_import.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/update_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/create_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/delete_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_location.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/list_federations.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/list_locations.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/set_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/update_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/src/V1/Client/DataprocMetastoreClient.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/src/V1/Client/DataprocMetastoreFederationClient.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_client_config.json delete mode 100644 owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_descriptor_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_client_config.json delete mode 100644 owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_descriptor_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_rest_client_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_rest_client_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/tests/Unit/V1/Client/DataprocMetastoreClientTest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1/tests/Unit/V1/Client/DataprocMetastoreFederationClientTest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/GPBMetadata/Google/Cloud/Metastore/V1Alpha/Metastore.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/GPBMetadata/Google/Cloud/Metastore/V1Alpha/MetastoreFederation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AlterMetadataResourceLocationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AlterMetadataResourceLocationResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AuxiliaryVersionConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/BackendMetastore.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/BackendMetastore/MetastoreType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Backup/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateBackupRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateMetadataImportRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DataCatalogConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DatabaseDumpSpec.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DatabaseDumpSpec/Type.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DataplexConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteBackupRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/EncryptionConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ErrorDetails.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ExportMetadataRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Federation/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetBackupRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetMetadataImportRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/HiveMetastoreConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/HiveMetastoreConfig/EndpointProtocol.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/KerberosConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Lake.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListBackupsRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListBackupsResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListFederationsRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListFederationsResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListMetadataImportsRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListMetadataImportsResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListServicesRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListServicesResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/LocationMetadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/LocationMetadata/HiveMetastoreVersion.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MaintenanceWindow.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataExport.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataExport/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/DatabaseDump.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/DatabaseDump/DatabaseType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataIntegration.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataManagementActivity.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MoveTableToDatabaseRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MoveTableToDatabaseResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/NetworkConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/NetworkConfig/Consumer.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/OperationMetadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/QueryMetadataRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/QueryMetadataResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RemoveIamPolicyRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RemoveIamPolicyResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore/RestoreType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RestoreServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ScalingConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ScalingConfig/InstanceSize.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Secret.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/DatabaseType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/ReleaseChannel.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/Tier.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/TelemetryConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/TelemetryConfig/LogFormat.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateMetadataImportRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/alter_metadata_resource_location.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_metadata_import.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/delete_backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/delete_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/export_metadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_location.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_metadata_import.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_backups.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_locations.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_metadata_imports.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_services.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/move_table_to_database.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/query_metadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/remove_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/restore_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/set_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/update_metadata_import.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/update_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/create_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/delete_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_location.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/list_federations.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/list_locations.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/set_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/update_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/Client/DataprocMetastoreClient.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/Client/DataprocMetastoreFederationClient.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/gapic_metadata.json delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_client_config.json delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_descriptor_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_client_config.json delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_descriptor_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_rest_client_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_rest_client_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/tests/Unit/V1alpha/Client/DataprocMetastoreClientTest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1alpha/tests/Unit/V1alpha/Client/DataprocMetastoreFederationClientTest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/GPBMetadata/Google/Cloud/Metastore/V1Beta/Metastore.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/GPBMetadata/Google/Cloud/Metastore/V1Beta/MetastoreFederation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AlterMetadataResourceLocationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AlterMetadataResourceLocationResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AuxiliaryVersionConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/BackendMetastore.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/BackendMetastore/MetastoreType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Backup/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateBackupRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateMetadataImportRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DataCatalogConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DatabaseDumpSpec.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DatabaseDumpSpec/Type.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DataplexConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteBackupRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/EncryptionConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ErrorDetails.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ExportMetadataRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Federation/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetBackupRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetMetadataImportRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/HiveMetastoreConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/HiveMetastoreConfig/EndpointProtocol.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/KerberosConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Lake.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListBackupsRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListBackupsResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListFederationsRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListFederationsResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListMetadataImportsRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListMetadataImportsResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListServicesRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListServicesResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/LocationMetadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/LocationMetadata/HiveMetastoreVersion.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MaintenanceWindow.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataExport.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataExport/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/DatabaseDump.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/DatabaseDump/DatabaseType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataIntegration.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataManagementActivity.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MoveTableToDatabaseRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MoveTableToDatabaseResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/NetworkConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/NetworkConfig/Consumer.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/OperationMetadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/QueryMetadataRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/QueryMetadataResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RemoveIamPolicyRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RemoveIamPolicyResponse.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore/RestoreType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RestoreServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ScalingConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ScalingConfig/InstanceSize.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Secret.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/DatabaseType.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/ReleaseChannel.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/State.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/Tier.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/TelemetryConfig.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/TelemetryConfig/LogFormat.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateFederationRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateMetadataImportRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateServiceRequest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/alter_metadata_resource_location.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_metadata_import.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/delete_backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/delete_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/export_metadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_backup.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_location.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_metadata_import.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_backups.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_locations.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_metadata_imports.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_services.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/move_table_to_database.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/query_metadata.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/remove_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/restore_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/set_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/update_metadata_import.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/update_service.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/create_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/delete_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_location.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/list_federations.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/list_locations.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/set_iam_policy.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/update_federation.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/Client/DataprocMetastoreClient.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/Client/DataprocMetastoreFederationClient.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/gapic_metadata.json delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_client_config.json delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_descriptor_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_client_config.json delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_descriptor_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_rest_client_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_rest_client_config.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/tests/Unit/V1beta/Client/DataprocMetastoreClientTest.php delete mode 100644 owl-bot-staging/DataprocMetastore/v1beta/tests/Unit/V1beta/Client/DataprocMetastoreFederationClientTest.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/AggregationResult.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/Datastore.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/Entity.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/Query.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/QueryProfile.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Avg.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Count.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Sum.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationResult.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationResultBatch.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AllocateIdsRequest.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AllocateIdsResponse.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ArrayValue.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/BeginTransactionRequest.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/BeginTransactionResponse.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitRequest.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitRequest/Mode.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitResponse.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CompositeFilter.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CompositeFilter/Operator.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Entity.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/EntityResult.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/EntityResult/ResultType.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExecutionStats.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExplainMetrics.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExplainOptions.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Filter.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/FindNearest.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/FindNearest/DistanceMeasure.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/GqlQuery.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/GqlQueryParameter.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Key.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Key/PathElement.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/KindExpression.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/LookupRequest.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/LookupResponse.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Mutation.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Mutation/ConflictResolutionStrategy.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/MutationResult.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PartitionId.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PlanSummary.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Projection.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyFilter.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyFilter/Operator.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyMask.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyOrder.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyOrder/Direction.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyReference.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyTransform.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyTransform/ServerValue.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Query.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/QueryResultBatch.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/QueryResultBatch/MoreResultsType.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReadOptions.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReadOptions/ReadConsistency.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReserveIdsRequest.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReserveIdsResponse.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RollbackRequest.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RollbackResponse.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunAggregationQueryRequest.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunAggregationQueryResponse.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunQueryRequest.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunQueryResponse.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions/PBReadOnly.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions/ReadOnly.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions/ReadWrite.php delete mode 100644 owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Value.php delete mode 100644 owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/allocate_ids.php delete mode 100644 owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/begin_transaction.php delete mode 100644 owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/commit.php delete mode 100644 owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/lookup.php delete mode 100644 owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/reserve_ids.php delete mode 100644 owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/rollback.php delete mode 100644 owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/run_aggregation_query.php delete mode 100644 owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/run_query.php delete mode 100644 owl-bot-staging/Datastore/v1/src/V1/Client/DatastoreClient.php delete mode 100644 owl-bot-staging/Datastore/v1/src/V1/DatastoreClient.php delete mode 100644 owl-bot-staging/Datastore/v1/src/V1/Gapic/DatastoreGapicClient.php delete mode 100644 owl-bot-staging/Datastore/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Datastore/v1/src/V1/resources/datastore_client_config.json delete mode 100644 owl-bot-staging/Datastore/v1/src/V1/resources/datastore_descriptor_config.php delete mode 100644 owl-bot-staging/Datastore/v1/src/V1/resources/datastore_rest_client_config.php delete mode 100644 owl-bot-staging/Datastore/v1/tests/Unit/V1/Client/DatastoreClientTest.php delete mode 100644 owl-bot-staging/Datastore/v1/tests/Unit/V1/DatastoreClientTest.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/GPBMetadata/Google/Datastore/Admin/V1/DatastoreAdmin.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/GPBMetadata/Google/Datastore/Admin/V1/Index.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/GPBMetadata/Google/Datastore/Admin/V1/Migration.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/CommonMetadata.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/CommonMetadata/State.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/CreateIndexRequest.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/DatastoreFirestoreMigrationMetadata.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/DeleteIndexRequest.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/EntityFilter.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesMetadata.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesRequest.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesResponse.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/GetIndexRequest.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ImportEntitiesMetadata.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ImportEntitiesRequest.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/AncestorMode.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/Direction.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/IndexedProperty.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/State.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/IndexOperationMetadata.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ListIndexesRequest.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ListIndexesResponse.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/ConcurrencyMode.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/PrepareStepDetails.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/RedirectWritesStepDetails.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationState.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationStateEvent.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationStep.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/OperationType.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Progress.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/create_index.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/delete_index.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/export_entities.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/get_index.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/import_entities.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/list_indexes.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/src/V1/Client/DatastoreAdminClient.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_client_config.json delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_descriptor_config.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_rest_client_config.php delete mode 100644 owl-bot-staging/DatastoreAdmin/v1/tests/Unit/V1/Client/DatastoreAdminClientTest.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Clouddebugger/V2/Controller.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Clouddebugger/V2/Data.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Clouddebugger/V2/Debugger.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Source/V1/SourceContext.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint/Action.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint/LogLevel.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Debuggee.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/DeleteBreakpointRequest.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/FormatMessage.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/GetBreakpointRequest.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/GetBreakpointResponse.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListActiveBreakpointsRequest.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListActiveBreakpointsResponse.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsRequest.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsRequest/BreakpointActionValue.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsResponse.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListDebuggeesRequest.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListDebuggeesResponse.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/RegisterDebuggeeRequest.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/RegisterDebuggeeResponse.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SetBreakpointRequest.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SetBreakpointResponse.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SourceLocation.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StackFrame.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StatusMessage.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StatusMessage/Reference.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/UpdateActiveBreakpointRequest.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/UpdateActiveBreakpointResponse.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Variable.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/AliasContext.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/AliasContext/Kind.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudRepoSourceContext.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudWorkspaceId.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudWorkspaceSourceContext.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/ExtendedSourceContext.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/GerritSourceContext.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/GitSourceContext.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/ProjectRepoId.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/RepoId.php delete mode 100644 owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/SourceContext.php delete mode 100644 owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/list_active_breakpoints.php delete mode 100644 owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/register_debuggee.php delete mode 100644 owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/update_active_breakpoint.php delete mode 100644 owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/delete_breakpoint.php delete mode 100644 owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/get_breakpoint.php delete mode 100644 owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/list_breakpoints.php delete mode 100644 owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/list_debuggees.php delete mode 100644 owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/set_breakpoint.php delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/Client/Controller2Client.php delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/Client/Debugger2Client.php delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/Controller2Client.php delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/Debugger2Client.php delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/Gapic/Controller2GapicClient.php delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/Gapic/Debugger2GapicClient.php delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/gapic_metadata.json delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/resources/controller2_client_config.json delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/resources/controller2_descriptor_config.php delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/resources/controller2_rest_client_config.php delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_client_config.json delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_descriptor_config.php delete mode 100644 owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_rest_client_config.php delete mode 100644 owl-bot-staging/Debugger/v2/tests/Unit/V2/Client/Controller2ClientTest.php delete mode 100644 owl-bot-staging/Debugger/v2/tests/Unit/V2/Client/Debugger2ClientTest.php delete mode 100644 owl-bot-staging/Debugger/v2/tests/Unit/V2/Controller2ClientTest.php delete mode 100644 owl-bot-staging/Debugger/v2/tests/Unit/V2/Debugger2ClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Answer.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Chunk.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Common.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Completion.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/CompletionService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Control.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ControlService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Conversation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ConversationalSearchService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/CustomTuningModel.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DataStore.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DataStoreService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Document.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DocumentProcessingConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DocumentService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Engine.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/EngineService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/GroundedGenerationService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Grounding.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ImportConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Project.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ProjectService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/PurgeConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/RankService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/RecommendationService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Schema.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SchemaService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SearchService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SearchTuningService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Session.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SiteSearchEngine.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SiteSearchEngineService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/UserEvent.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/UserEventService.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AlloyDbSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/AnswerSkippedReason.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Citation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/CitationSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo/QueryClassificationInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo/QueryClassificationInfo/Type.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/ChunkInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/ChunkInfo/DocumentMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/StructuredDocumentInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/UnstructuredDocumentInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/UnstructuredDocumentInfo/ChunkContent.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/State.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult/ChunkInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult/SnippetInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/SearchAction.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/State.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec/ModelSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec/PromptSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryClassificationSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryClassificationSpec/Type.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryRephraserSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/RelatedQuestionsSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SafetySpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchParams.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/ChunkInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/ChunkInfo/DocumentMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/DocumentContext.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/ExtractiveAnswer.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/ExtractiveSegment.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSiteMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSitesRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSitesResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/FhirMatcher.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/Matcher.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/UrisMatcher.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/DocumentMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/DocumentMetadata/MatcherValue.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/State.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigQuerySource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/BigtableColumn.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/BigtableColumnFamily.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/Encoding.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/Type.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingResponse/Claim.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/ChunkMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/DocumentMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/PageSpan.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CloudSqlSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CollectUserEventRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryResponse/QuerySuggestion.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompletionInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompletionSuggestion.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition/QueryTerm.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition/TimeRange.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/BoostAction.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/FilterAction.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/RedirectAction.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/SynonymsAction.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Conversation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Conversation/State.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConversationContext.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConversationMessage.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConverseConversationRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConverseConversationResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateControlRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateConversationRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDataStoreMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDataStoreRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDocumentRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateEngineMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateEngineRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSchemaMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSchemaRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSessionRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateTargetSiteMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateTargetSiteRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomAttribute.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomTuningModel.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomTuningModel/ModelState.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore/BillingEstimation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore/ContentConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteControlRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteConversationRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDataStoreMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDataStoreRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDocumentRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteEngineMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteEngineRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSchemaMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSchemaRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSessionRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteTargetSiteMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteTargetSiteRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document/Content.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document/IndexStatus.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ChunkingConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ChunkingConfig/LayoutBasedChunkingConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/DigitalParsingConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/LayoutParsingConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/OcrParsingConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineConfig/AgentCreationConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/CommonConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/SearchEngineConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FactChunk.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FetchDomainVerificationStatusRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FetchDomainVerificationStatusResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FhirStoreSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FirestoreSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GcsSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration/DynamicRetrievalPredictor.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration/DynamicRetrievalPredictor/Version.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GenerationSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/GoogleSearchSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/InlineSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/SearchSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalPredictorMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalPredictorMetadata/Version.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/GroundingSupport.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/RetrievalMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/RetrievalMetadata/Source.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/SearchEntryPoint.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetAnswerRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetControlRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetConversationRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetDataStoreRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetDocumentRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetEngineRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSchemaRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSessionRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSiteSearchEngineRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetTargetSiteRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundedGenerationContent.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundedGenerationContent/Part.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundingFact.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsRequest/InlineSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest/InlineSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest/ReconciliationMode.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportErrorConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesRequest/InlineSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsRequest/InlineSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/IndustryVertical.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Interval.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListControlsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListControlsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListConversationsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListConversationsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListCustomModelsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListCustomModelsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDataStoresRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDataStoresResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDocumentsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDocumentsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListEnginesRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListEnginesResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSchemasRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSchemasResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSessionsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSessionsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListTargetSitesRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListTargetSitesResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/MediaInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PageInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PanelInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project/ServiceTerms.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project/ServiceTerms/State.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ProvisionProjectMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ProvisionProjectRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsRequest/InlineSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeErrorConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Query.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankingRecord.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendResponse/RecommendationResult.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo/FailureReason.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo/FailureReason/CorpusType.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Reply.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Schema.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchAddOn.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/AttributeType.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/ControlPoint.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/InterpolationType.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/ChunkSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/ExtractiveContentSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SearchResultMode.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SnippetSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec/ModelPromptSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec/ModelSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/DataStoreSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/FacetSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/FacetSpec/FacetKey.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ImageQuery.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/QueryExpansionSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/QueryExpansionSpec/Condition.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SearchAsYouTypeSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SearchAsYouTypeSpec/Condition.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SessionSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SpellCorrectionSpec.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SpellCorrectionSpec/Mode.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Facet.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Facet/FacetValue.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/QueryExpansionInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/SearchResult.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/SessionInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Citation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/CitationMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/CitationSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Reference.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Reference/ChunkContent.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SafetyAttributes.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SummarySkippedReason.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SummaryWithMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchTier.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchUseCase.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session/State.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session/Turn.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteSearchEngine.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteVerificationInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteVerificationInfo/SiteVerificationState.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SolutionType.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SpannerSource.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SuggestionDenyListEntry.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SuggestionDenyListEntry/MatchOperator.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/FailureReason.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/FailureReason/QuotaFailure.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/IndexingStatus.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/Type.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TextInput.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelRequest/GcsTrainingInput.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelResponse.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TransactionInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateControlRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateConversationRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateDataStoreRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateDocumentRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateEngineRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSchemaMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSchemaRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSessionRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateTargetSiteMetadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateTargetSiteRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UserEvent.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UserInfo.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WorkspaceConfig.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WorkspaceConfig/Type.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WriteUserEventRequest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/complete_query.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/import_completion_suggestions.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/import_suggestion_deny_list_entries.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/purge_completion_suggestions.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/purge_suggestion_deny_list_entries.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/create_control.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/delete_control.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/get_control.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/list_controls.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/update_control.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/answer_query.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/converse_conversation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/create_conversation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/create_session.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/delete_conversation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/delete_session.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_answer.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_conversation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_session.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/list_conversations.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/list_sessions.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/update_conversation.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/update_session.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/create_data_store.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/delete_data_store.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/get_data_store.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/list_data_stores.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/update_data_store.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/batch_get_documents_metadata.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/create_document.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/delete_document.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/get_document.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/import_documents.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/list_documents.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/purge_documents.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/update_document.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/create_engine.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/delete_engine.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/get_engine.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/list_engines.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/update_engine.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/check_grounding.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/generate_grounded_content.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/stream_generate_grounded_content.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/ProjectServiceClient/provision_project.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/RankServiceClient/rank.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/RecommendationServiceClient/recommend.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/create_schema.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/delete_schema.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/get_schema.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/list_schemas.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/update_schema.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchServiceClient/search.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchServiceClient/search_lite.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchTuningServiceClient/list_custom_models.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchTuningServiceClient/train_custom_model.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/batch_create_target_sites.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/batch_verify_target_sites.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/create_target_site.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/delete_target_site.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/disable_advanced_site_search.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/enable_advanced_site_search.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/fetch_domain_verification_status.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/get_site_search_engine.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/get_target_site.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/list_target_sites.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/recrawl_uris.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/update_target_site.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/collect_user_event.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/import_user_events.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/purge_user_events.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/write_user_event.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/CompletionServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ControlServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ConversationalSearchServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/DataStoreServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/DocumentServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/EngineServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/GroundedGenerationServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ProjectServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/RankServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/RecommendationServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SchemaServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SearchServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SearchTuningServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SiteSearchEngineServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/UserEventServiceClient.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_client_config.json delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_descriptor_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_rest_client_config.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/CompletionServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ControlServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ConversationalSearchServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/DataStoreServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/DocumentServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/EngineServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/GroundedGenerationServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ProjectServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/RankServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/RecommendationServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SchemaServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SearchServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SearchTuningServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SiteSearchEngineServiceClientTest.php delete mode 100644 owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/UserEventServiceClientTest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Storage.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php delete mode 100644 owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php delete mode 100644 owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php delete mode 100644 owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php delete mode 100644 owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json delete mode 100644 owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json delete mode 100644 owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php delete mode 100644 owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php delete mode 100644 owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Barcode.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Document.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/DocumentIo.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/DocumentProcessorService.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/DocumentSchema.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Evaluation.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Geometry.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Processor.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/ProcessorType.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Barcode.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchDocumentsInputConfig.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata/IndividualProcessStatus.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata/State.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BoundingPoly.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CommonOperationMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CommonOperationMetadata/State.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CreateProcessorRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorVersionMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorVersionRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageFooter.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageHeader.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageSpan.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutListBlock.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutListEntry.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutPageSpan.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableBlock.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableCell.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableRow.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTextBlock.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Entity.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Entity/NormalizedValue.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/EntityRelation.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Block.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/DetectedBarcode.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/DetectedLanguage.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Dimension.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/FormField.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Image.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/ImageQualityScores.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/ImageQualityScores/DetectedDefect.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Layout.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Layout/Orientation.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Line.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Matrix.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Paragraph.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Symbol.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table/TableCell.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table/TableRow.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/DetectedBreak.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/DetectedBreak/Type.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/StyleInfo.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/VisualElement.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor/PageRef.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor/PageRef/LayoutType.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance/OperationType.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance/PBParent.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Revision.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Revision/HumanReview.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ShardInfo.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Style.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Style/FontSize.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextAnchor.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextAnchor/TextSegment.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextChange.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig/GcsOutputConfig.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig/GcsOutputConfig/ShardingConfig.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/EnumValues.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/Property.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/Property/OccurrenceType.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/Metadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/ConfidenceLevelMetrics.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/Counters.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/Metrics.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/MultiConfidenceMetrics.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/MultiConfidenceMetrics/MetricsType.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluationReference.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/FetchProcessorTypesRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/FetchProcessorTypesResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsDocument.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsDocuments.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsPrefix.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetEvaluationRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorTypeRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorVersionRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/HumanReviewStatus.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/HumanReviewStatus/State.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListEvaluationsRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListEvaluationsResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorTypesRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorTypesResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorVersionsRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorVersionsResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorsRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorsResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/NormalizedVertex.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig/Hints.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig/PremiumFeatures.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/IndividualPageSelector.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/LayoutConfig.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/LayoutConfig/ChunkingConfig.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Processor.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Processor/State.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorType.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorType/LocationInfo.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/DeprecationInfo.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/CustomGenAiModelInfo.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/CustomGenAiModelInfo/CustomModelType.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/FoundationGenAiModelInfo.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/ModelType.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/State.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersionAlias.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/RawDocument.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentOperationMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentRequest/Priority.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentResponse/State.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionMetadata/DatasetValidation.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/CustomDocumentExtractionOptions.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/CustomDocumentExtractionOptions/TrainingMethod.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/FoundationModelTuningOptions.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/InputData.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionMetadata.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionRequest.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionResponse.php delete mode 100644 owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Vertex.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/batch_process_documents.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/create_processor.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/delete_processor.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/delete_processor_version.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/deploy_processor_version.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/disable_processor.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/enable_processor.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/evaluate_processor_version.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/fetch_processor_types.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_evaluation.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_location.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor_type.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor_version.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_evaluations.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_locations.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processor_types.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processor_versions.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processors.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/process_document.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/review_document.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/set_default_processor_version.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/train_processor_version.php delete mode 100644 owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/undeploy_processor_version.php delete mode 100644 owl-bot-staging/DocumentAi/v1/src/V1/Client/DocumentProcessorServiceClient.php delete mode 100644 owl-bot-staging/DocumentAi/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_client_config.json delete mode 100644 owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_descriptor_config.php delete mode 100644 owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_rest_client_config.php delete mode 100644 owl-bot-staging/DocumentAi/v1/tests/Unit/V1/Client/DocumentProcessorServiceClientTest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/GPBMetadata/Google/Cloud/Domains/V1/Domains.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/AuthorizationCode.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureContactSettingsRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureDnsSettingsRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureManagementSettingsRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactNotice.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactPrivacy.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactSettings.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactSettings/Contact.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DeleteRegistrationRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/CustomDns.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord/Algorithm.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord/DigestType.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsState.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/GlueRecord.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/GoogleDomainsDns.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DomainNotice.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ExportRegistrationRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/GetRegistrationRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ListRegistrationsRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ListRegistrationsResponse.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ManagementSettings.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ManagementSettings/RenewalMethod.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterDomainRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterParameters.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterParameters/Availability.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration/Issue.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration/State.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ResetAuthorizationCodeRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveAuthorizationCodeRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveRegisterParametersRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveRegisterParametersResponse.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveTransferParametersRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveTransferParametersResponse.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/SearchDomainsRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/SearchDomainsResponse.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferDomainRequest.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferLockState.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferParameters.php delete mode 100644 owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/UpdateRegistrationRequest.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_contact_settings.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_dns_settings.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_management_settings.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/delete_registration.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/export_registration.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/get_registration.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/list_registrations.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/register_domain.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/reset_authorization_code.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_authorization_code.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_register_parameters.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_transfer_parameters.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/search_domains.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/transfer_domain.php delete mode 100644 owl-bot-staging/Domains/v1/samples/V1/DomainsClient/update_registration.php delete mode 100644 owl-bot-staging/Domains/v1/src/V1/Client/DomainsClient.php delete mode 100644 owl-bot-staging/Domains/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Domains/v1/src/V1/resources/domains_client_config.json delete mode 100644 owl-bot-staging/Domains/v1/src/V1/resources/domains_descriptor_config.php delete mode 100644 owl-bot-staging/Domains/v1/src/V1/resources/domains_rest_client_config.php delete mode 100644 owl-bot-staging/Domains/v1/tests/Unit/V1/Client/DomainsClientTest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/GPBMetadata/Google/Cloud/Edgenetwork/V1/Resources.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/GPBMetadata/Google/Cloud/Edgenetwork/V1/Service.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateInterconnectAttachmentRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateNetworkRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateRouterRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateSubnetRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteInterconnectAttachmentRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteNetworkRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteRouterRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteSubnetRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseInterconnectRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseInterconnectResponse.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse/NetworkStatus.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse/NetworkStatus/MacsecStatus.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseRouterRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseRouterResponse.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetInterconnectAttachmentRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetInterconnectRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetNetworkRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetRouterRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetSubnetRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetZoneRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InitializeZoneRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InitializeZoneResponse.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Interconnect.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Interconnect/InterconnectType.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectAttachment.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLACPStatus.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLACPStatus/State.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLLDPStatus.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkStatus.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/PacketCounts.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/LinkLayerAddress.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectAttachmentsRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectAttachmentsResponse.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectsRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectsResponse.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListNetworksRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListNetworksResponse.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListRoutersRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListRoutersResponse.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListSubnetsRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListSubnetsResponse.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListZonesRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListZonesResponse.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Network.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ResourceState.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/Bgp.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/BgpPeer.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/PBInterface.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/BgpPeerStatus.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/BgpPeerStatus/BgpStatus.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/PrefixCounter.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Subnet.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Subnet/BondingType.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/SubnetStatus.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/UpdateRouterRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/UpdateSubnetRequest.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Zone.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_interconnect_attachment.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_network.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_router.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_subnet.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_interconnect_attachment.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_network.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_router.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_subnet.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_interconnect.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_network.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_router.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_interconnect.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_interconnect_attachment.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_location.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_network.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_router.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_subnet.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_zone.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/initialize_zone.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_interconnect_attachments.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_interconnects.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_locations.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_networks.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_routers.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_subnets.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_zones.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/update_router.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/update_subnet.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/src/V1/Client/EdgeNetworkClient.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_client_config.json delete mode 100644 owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_descriptor_config.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_rest_client_config.php delete mode 100644 owl-bot-staging/EdgeNetwork/v1/tests/Unit/V1/Client/EdgeNetworkClientTest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/Common.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ErrorGroupService.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ErrorStatsService.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ReportErrorsService.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/DeleteEventsRequest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/DeleteEventsResponse.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorContext.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorEvent.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroup.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroupOrder.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroupStats.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/GetGroupRequest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/HttpRequestContext.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListEventsRequest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListEventsResponse.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListGroupStatsRequest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListGroupStatsResponse.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/QueryTimeRange.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/QueryTimeRange/Period.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportErrorEventRequest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportErrorEventResponse.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportedErrorEvent.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ResolutionStatus.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ServiceContext.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ServiceContextFilter.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/SourceLocation.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TimedCount.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TimedCountAlignment.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TrackingIssue.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/UpdateGroupRequest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorGroupServiceClient/get_group.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorGroupServiceClient/update_group.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/delete_events.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/list_events.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/list_group_stats.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ReportErrorsServiceClient/report_error_event.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ErrorGroupServiceClient.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ErrorStatsServiceClient.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ReportErrorsServiceClient.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/ErrorGroupServiceClient.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/ErrorStatsServiceClient.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Gapic/ErrorGroupServiceGapicClient.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Gapic/ErrorStatsServiceGapicClient.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Gapic/ReportErrorsServiceGapicClient.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/ReportErrorsServiceClient.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/gapic_metadata.json delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_group_service_client_config.json delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_group_service_descriptor_config.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_group_service_rest_client_config.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_client_config.json delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_descriptor_config.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_rest_client_config.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_client_config.json delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_descriptor_config.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_rest_client_config.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ErrorGroupServiceClientTest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ErrorStatsServiceClientTest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ReportErrorsServiceClientTest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ErrorGroupServiceClientTest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ErrorStatsServiceClientTest.php delete mode 100644 owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ReportErrorsServiceClientTest.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/GPBMetadata/Google/Cloud/Essentialcontacts/V1/Enums.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/GPBMetadata/Google/Cloud/Essentialcontacts/V1/Service.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ComputeContactsRequest.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ComputeContactsResponse.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/Contact.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/CreateContactRequest.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/DeleteContactRequest.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/GetContactRequest.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ListContactsRequest.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ListContactsResponse.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/NotificationCategory.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/SendTestMessageRequest.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/UpdateContactRequest.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ValidationState.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/compute_contacts.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/create_contact.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/delete_contact.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/get_contact.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/list_contacts.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/send_test_message.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/update_contact.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/src/V1/Client/EssentialContactsServiceClient.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_client_config.json delete mode 100644 owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_descriptor_config.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_rest_client_config.php delete mode 100644 owl-bot-staging/EssentialContacts/v1/tests/Unit/V1/Client/EssentialContactsServiceClientTest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Channel.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/ChannelConnection.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Discovery.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Enrollment.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Eventarc.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/GoogleApiSource.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/GoogleChannelConfig.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/LoggingConfig.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/MessageBus.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/NetworkConfig.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Pipeline.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Trigger.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Channel.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Channel/State.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ChannelConnection.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CloudRun.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateChannelConnectionRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateChannelRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateEnrollmentRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateGoogleApiSourceRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateMessageBusRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreatePipelineRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateTriggerRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteChannelConnectionRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteChannelRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteEnrollmentRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteGoogleApiSourceRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteMessageBusRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeletePipelineRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteTriggerRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Destination.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Enrollment.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/EventFilter.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/EventType.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/FilteringAttribute.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GKE.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetChannelConnectionRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetChannelRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetEnrollmentRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetGoogleApiSourceRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetGoogleChannelConfigRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetMessageBusRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetPipelineRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetProviderRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetTriggerRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GoogleApiSource.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GoogleChannelConfig.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/HttpEndpoint.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelConnectionsRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelConnectionsResponse.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelsRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelsResponse.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListEnrollmentsRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListEnrollmentsResponse.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListGoogleApiSourcesRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListGoogleApiSourcesResponse.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusEnrollmentsRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusEnrollmentsResponse.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusesRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusesResponse.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListPipelinesRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListPipelinesResponse.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListProvidersRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListProvidersResponse.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListTriggersRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListTriggersResponse.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/LoggingConfig.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/LoggingConfig/LogSeverity.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/MessageBus.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/NetworkConfig.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/OperationMetadata.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig/OAuthToken.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig/OidcToken.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/HttpEndpoint.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/NetworkConfig.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Mediation.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Mediation/Transformation.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/AvroFormat.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/JsonFormat.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/ProtobufFormat.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/RetryPolicy.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Provider.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pubsub.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/StateCondition.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Transport.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Trigger.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateChannelRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateEnrollmentRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateGoogleApiSourceRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateGoogleChannelConfigRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateMessageBusRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdatePipelineRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateTriggerRequest.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_channel.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_channel_connection.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_enrollment.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_google_api_source.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_message_bus.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_pipeline.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_trigger.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_channel.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_channel_connection.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_enrollment.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_google_api_source.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_message_bus.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_pipeline.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_trigger.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_channel.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_channel_connection.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_enrollment.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_google_api_source.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_google_channel_config.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_iam_policy.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_location.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_message_bus.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_pipeline.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_provider.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_trigger.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_channel_connections.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_channels.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_enrollments.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_google_api_sources.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_locations.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_message_bus_enrollments.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_message_buses.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_pipelines.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_providers.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_triggers.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/set_iam_policy.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/test_iam_permissions.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_channel.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_enrollment.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_google_api_source.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_google_channel_config.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_message_bus.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_pipeline.php delete mode 100644 owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_trigger.php delete mode 100644 owl-bot-staging/Eventarc/v1/src/V1/Client/EventarcClient.php delete mode 100644 owl-bot-staging/Eventarc/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_client_config.json delete mode 100644 owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_descriptor_config.php delete mode 100644 owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_rest_client_config.php delete mode 100644 owl-bot-staging/Eventarc/v1/tests/Unit/V1/Client/EventarcClientTest.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/Publisher.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent/CloudEventAttributeValue.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsRequest.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsResponse.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsRequest.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsResponse.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishRequest.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishResponse.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_channel_connection_events.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_events.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/src/V1/Client/PublisherClient.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/src/V1/gapic_metadata.json delete mode 100644 owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_client_config.json delete mode 100644 owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_descriptor_config.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_rest_client_config.php delete mode 100644 owl-bot-staging/EventarcPublishing/v1/tests/Unit/V1/Client/PublisherClientTest.php diff --git a/AccessContextManager/src/V1/Client/AccessContextManagerClient.php b/AccessContextManager/src/V1/Client/AccessContextManagerClient.php index 556de5234f4e..731fcab21267 100644 --- a/AccessContextManager/src/V1/Client/AccessContextManagerClient.php +++ b/AccessContextManager/src/V1/Client/AccessContextManagerClient.php @@ -93,32 +93,32 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface commitServicePerimetersAsync(CommitServicePerimetersRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAccessLevelAsync(CreateAccessLevelRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAccessPolicyAsync(AccessPolicy $request, array $optionalArgs = []) - * @method PromiseInterface createGcpUserAccessBindingAsync(CreateGcpUserAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServicePerimeterAsync(CreateServicePerimeterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccessLevelAsync(DeleteAccessLevelRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccessPolicyAsync(DeleteAccessPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGcpUserAccessBindingAsync(DeleteGcpUserAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServicePerimeterAsync(DeleteServicePerimeterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAccessLevelAsync(GetAccessLevelRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAccessPolicyAsync(GetAccessPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGcpUserAccessBindingAsync(GetGcpUserAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServicePerimeterAsync(GetServicePerimeterRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccessLevelsAsync(ListAccessLevelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccessPoliciesAsync(ListAccessPoliciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGcpUserAccessBindingsAsync(ListGcpUserAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicePerimetersAsync(ListServicePerimetersRequest $request, array $optionalArgs = []) - * @method PromiseInterface replaceAccessLevelsAsync(ReplaceAccessLevelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface replaceServicePerimetersAsync(ReplaceServicePerimetersRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAccessLevelAsync(UpdateAccessLevelRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAccessPolicyAsync(UpdateAccessPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGcpUserAccessBindingAsync(UpdateGcpUserAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServicePerimeterAsync(UpdateServicePerimeterRequest $request, array $optionalArgs = []) + * @method PromiseInterface commitServicePerimetersAsync(CommitServicePerimetersRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAccessLevelAsync(CreateAccessLevelRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAccessPolicyAsync(AccessPolicy $request, array $optionalArgs = []) + * @method PromiseInterface createGcpUserAccessBindingAsync(CreateGcpUserAccessBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface createServicePerimeterAsync(CreateServicePerimeterRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAccessLevelAsync(DeleteAccessLevelRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAccessPolicyAsync(DeleteAccessPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteGcpUserAccessBindingAsync(DeleteGcpUserAccessBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteServicePerimeterAsync(DeleteServicePerimeterRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAccessLevelAsync(GetAccessLevelRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAccessPolicyAsync(GetAccessPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getGcpUserAccessBindingAsync(GetGcpUserAccessBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getServicePerimeterAsync(GetServicePerimeterRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAccessLevelsAsync(ListAccessLevelsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAccessPoliciesAsync(ListAccessPoliciesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGcpUserAccessBindingsAsync(ListGcpUserAccessBindingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listServicePerimetersAsync(ListServicePerimetersRequest $request, array $optionalArgs = []) + * @method PromiseInterface replaceAccessLevelsAsync(ReplaceAccessLevelsRequest $request, array $optionalArgs = []) + * @method PromiseInterface replaceServicePerimetersAsync(ReplaceServicePerimetersRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAccessLevelAsync(UpdateAccessLevelRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateAccessPolicyAsync(UpdateAccessPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGcpUserAccessBindingAsync(UpdateGcpUserAccessBindingRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateServicePerimeterAsync(UpdateServicePerimeterRequest $request, array $optionalArgs = []) */ final class AccessContextManagerClient { diff --git a/AdsMarketingPlatformAdmin/src/V1alpha/Client/MarketingplatformAdminServiceClient.php b/AdsMarketingPlatformAdmin/src/V1alpha/Client/MarketingplatformAdminServiceClient.php index 2eff337aa60a..ccdc022b1a0f 100644 --- a/AdsMarketingPlatformAdmin/src/V1alpha/Client/MarketingplatformAdminServiceClient.php +++ b/AdsMarketingPlatformAdmin/src/V1alpha/Client/MarketingplatformAdminServiceClient.php @@ -58,11 +58,11 @@ * * @experimental * - * @method PromiseInterface createAnalyticsAccountLinkAsync(CreateAnalyticsAccountLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAnalyticsAccountLinkAsync(DeleteAnalyticsAccountLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getOrganizationAsync(GetOrganizationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAnalyticsAccountLinksAsync(ListAnalyticsAccountLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface setPropertyServiceLevelAsync(SetPropertyServiceLevelRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAnalyticsAccountLinkAsync(CreateAnalyticsAccountLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAnalyticsAccountLinkAsync(DeleteAnalyticsAccountLinkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getOrganizationAsync(GetOrganizationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAnalyticsAccountLinksAsync(ListAnalyticsAccountLinksRequest $request, array $optionalArgs = []) + * @method PromiseInterface setPropertyServiceLevelAsync(SetPropertyServiceLevelRequest $request, array $optionalArgs = []) */ final class MarketingplatformAdminServiceClient { diff --git a/ArtifactRegistry/src/V1/Client/ArtifactRegistryClient.php b/ArtifactRegistry/src/V1/Client/ArtifactRegistryClient.php index b47093978340..d3dba2797b07 100644 --- a/ArtifactRegistry/src/V1/Client/ArtifactRegistryClient.php +++ b/ArtifactRegistry/src/V1/Client/ArtifactRegistryClient.php @@ -128,57 +128,57 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface batchDeleteVersionsAsync(BatchDeleteVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAttachmentAsync(CreateAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRuleAsync(CreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTagAsync(CreateTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAttachmentAsync(DeleteAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFileAsync(DeleteFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface deletePackageAsync(DeletePackageRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRuleAsync(DeleteRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTagAsync(DeleteTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteVersionAsync(DeleteVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAttachmentAsync(GetAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDockerImageAsync(GetDockerImageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFileAsync(GetFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMavenArtifactAsync(GetMavenArtifactRequest $request, array $optionalArgs = []) - * @method PromiseInterface getNpmPackageAsync(GetNpmPackageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPackageAsync(GetPackageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProjectSettingsAsync(GetProjectSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPythonPackageAsync(GetPythonPackageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRuleAsync(GetRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTagAsync(GetTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVPCSCConfigAsync(GetVPCSCConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVersionAsync(GetVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface importAptArtifactsAsync(ImportAptArtifactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface importYumArtifactsAsync(ImportYumArtifactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAttachmentsAsync(ListAttachmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDockerImagesAsync(ListDockerImagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFilesAsync(ListFilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMavenArtifactsAsync(ListMavenArtifactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNpmPackagesAsync(ListNpmPackagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPackagesAsync(ListPackagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPythonPackagesAsync(ListPythonPackagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRepositoriesAsync(ListRepositoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRulesAsync(ListRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTagsAsync(ListTagsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listVersionsAsync(ListVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFileAsync(UpdateFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePackageAsync(UpdatePackageRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateProjectSettingsAsync(UpdateProjectSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRepositoryAsync(UpdateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRuleAsync(UpdateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTagAsync(UpdateTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVPCSCConfigAsync(UpdateVPCSCConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVersionAsync(UpdateVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchDeleteVersionsAsync(BatchDeleteVersionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createAttachmentAsync(CreateAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRuleAsync(CreateRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTagAsync(CreateTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteAttachmentAsync(DeleteAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFileAsync(DeleteFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface deletePackageAsync(DeletePackageRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRuleAsync(DeleteRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTagAsync(DeleteTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteVersionAsync(DeleteVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAttachmentAsync(GetAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDockerImageAsync(GetDockerImageRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFileAsync(GetFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMavenArtifactAsync(GetMavenArtifactRequest $request, array $optionalArgs = []) + * @method PromiseInterface getNpmPackageAsync(GetNpmPackageRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPackageAsync(GetPackageRequest $request, array $optionalArgs = []) + * @method PromiseInterface getProjectSettingsAsync(GetProjectSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPythonPackageAsync(GetPythonPackageRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRuleAsync(GetRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTagAsync(GetTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface getVPCSCConfigAsync(GetVPCSCConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getVersionAsync(GetVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface importAptArtifactsAsync(ImportAptArtifactsRequest $request, array $optionalArgs = []) + * @method PromiseInterface importYumArtifactsAsync(ImportYumArtifactsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listAttachmentsAsync(ListAttachmentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDockerImagesAsync(ListDockerImagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFilesAsync(ListFilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMavenArtifactsAsync(ListMavenArtifactsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listNpmPackagesAsync(ListNpmPackagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPackagesAsync(ListPackagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPythonPackagesAsync(ListPythonPackagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRepositoriesAsync(ListRepositoriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRulesAsync(ListRulesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTagsAsync(ListTagsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listVersionsAsync(ListVersionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFileAsync(UpdateFileRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePackageAsync(UpdatePackageRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateProjectSettingsAsync(UpdateProjectSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRepositoryAsync(UpdateRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRuleAsync(UpdateRuleRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTagAsync(UpdateTagRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateVPCSCConfigAsync(UpdateVPCSCConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateVersionAsync(UpdateVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class ArtifactRegistryClient { diff --git a/Build/src/V2/Client/RepositoryManagerClient.php b/Build/src/V2/Client/RepositoryManagerClient.php index 81c5204ea7c9..59e1209b7b9c 100644 --- a/Build/src/V2/Client/RepositoryManagerClient.php +++ b/Build/src/V2/Client/RepositoryManagerClient.php @@ -73,23 +73,23 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface batchCreateRepositoriesAsync(BatchCreateRepositoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConnectionAsync(CreateConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConnectionAsync(DeleteConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchGitRefsAsync(FetchGitRefsRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchLinkableRepositoriesAsync(FetchLinkableRepositoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchReadTokenAsync(FetchReadTokenRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchReadWriteTokenAsync(FetchReadWriteTokenRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConnectionAsync(GetConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRepositoriesAsync(ListRepositoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConnectionAsync(UpdateConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateRepositoriesAsync(BatchCreateRepositoriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createConnectionAsync(CreateConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConnectionAsync(DeleteConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchGitRefsAsync(FetchGitRefsRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchLinkableRepositoriesAsync(FetchLinkableRepositoriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchReadTokenAsync(FetchReadTokenRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchReadWriteTokenAsync(FetchReadWriteTokenRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConnectionAsync(GetConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRepositoriesAsync(ListRepositoriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateConnectionAsync(UpdateConnectionRequest $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 RepositoryManagerClient { diff --git a/Container/src/V1/Client/ClusterManagerClient.php b/Container/src/V1/Client/ClusterManagerClient.php index 1baf5f0edca0..2312a9998373 100644 --- a/Container/src/V1/Client/ClusterManagerClient.php +++ b/Container/src/V1/Client/ClusterManagerClient.php @@ -89,40 +89,40 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface cancelOperationAsync(CancelOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface checkAutopilotCompatibilityAsync(CheckAutopilotCompatibilityRequest $request, array $optionalArgs = []) - * @method PromiseInterface completeIPRotationAsync(CompleteIPRotationRequest $request, array $optionalArgs = []) - * @method PromiseInterface completeNodePoolUpgradeAsync(CompleteNodePoolUpgradeRequest $request, array $optionalArgs = []) - * @method PromiseInterface createClusterAsync(CreateClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface createNodePoolAsync(CreateNodePoolRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteClusterAsync(DeleteClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteNodePoolAsync(DeleteNodePoolRequest $request, array $optionalArgs = []) - * @method PromiseInterface getClusterAsync(GetClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJSONWebKeysAsync(GetJSONWebKeysRequest $request, array $optionalArgs = []) - * @method PromiseInterface getNodePoolAsync(GetNodePoolRequest $request, array $optionalArgs = []) - * @method PromiseInterface getOperationAsync(GetOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServerConfigAsync(GetServerConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface listClustersAsync(ListClustersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNodePoolsAsync(ListNodePoolsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listOperationsAsync(ListOperationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listUsableSubnetworksAsync(ListUsableSubnetworksRequest $request, array $optionalArgs = []) - * @method PromiseInterface rollbackNodePoolUpgradeAsync(RollbackNodePoolUpgradeRequest $request, array $optionalArgs = []) - * @method PromiseInterface setAddonsConfigAsync(SetAddonsConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface setLabelsAsync(SetLabelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface setLegacyAbacAsync(SetLegacyAbacRequest $request, array $optionalArgs = []) - * @method PromiseInterface setLocationsAsync(SetLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface setLoggingServiceAsync(SetLoggingServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface setMaintenancePolicyAsync(SetMaintenancePolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setMasterAuthAsync(SetMasterAuthRequest $request, array $optionalArgs = []) - * @method PromiseInterface setMonitoringServiceAsync(SetMonitoringServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface setNetworkPolicyAsync(SetNetworkPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setNodePoolAutoscalingAsync(SetNodePoolAutoscalingRequest $request, array $optionalArgs = []) - * @method PromiseInterface setNodePoolManagementAsync(SetNodePoolManagementRequest $request, array $optionalArgs = []) - * @method PromiseInterface setNodePoolSizeAsync(SetNodePoolSizeRequest $request, array $optionalArgs = []) - * @method PromiseInterface startIPRotationAsync(StartIPRotationRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateClusterAsync(UpdateClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMasterAsync(UpdateMasterRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateNodePoolAsync(UpdateNodePoolRequest $request, array $optionalArgs = []) + * @method PromiseInterface cancelOperationAsync(CancelOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface checkAutopilotCompatibilityAsync(CheckAutopilotCompatibilityRequest $request, array $optionalArgs = []) + * @method PromiseInterface completeIPRotationAsync(CompleteIPRotationRequest $request, array $optionalArgs = []) + * @method PromiseInterface completeNodePoolUpgradeAsync(CompleteNodePoolUpgradeRequest $request, array $optionalArgs = []) + * @method PromiseInterface createClusterAsync(CreateClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface createNodePoolAsync(CreateNodePoolRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteClusterAsync(DeleteClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteNodePoolAsync(DeleteNodePoolRequest $request, array $optionalArgs = []) + * @method PromiseInterface getClusterAsync(GetClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface getJSONWebKeysAsync(GetJSONWebKeysRequest $request, array $optionalArgs = []) + * @method PromiseInterface getNodePoolAsync(GetNodePoolRequest $request, array $optionalArgs = []) + * @method PromiseInterface getOperationAsync(GetOperationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getServerConfigAsync(GetServerConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface listClustersAsync(ListClustersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listNodePoolsAsync(ListNodePoolsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listOperationsAsync(ListOperationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listUsableSubnetworksAsync(ListUsableSubnetworksRequest $request, array $optionalArgs = []) + * @method PromiseInterface rollbackNodePoolUpgradeAsync(RollbackNodePoolUpgradeRequest $request, array $optionalArgs = []) + * @method PromiseInterface setAddonsConfigAsync(SetAddonsConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface setLabelsAsync(SetLabelsRequest $request, array $optionalArgs = []) + * @method PromiseInterface setLegacyAbacAsync(SetLegacyAbacRequest $request, array $optionalArgs = []) + * @method PromiseInterface setLocationsAsync(SetLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface setLoggingServiceAsync(SetLoggingServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface setMaintenancePolicyAsync(SetMaintenancePolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setMasterAuthAsync(SetMasterAuthRequest $request, array $optionalArgs = []) + * @method PromiseInterface setMonitoringServiceAsync(SetMonitoringServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface setNetworkPolicyAsync(SetNetworkPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface setNodePoolAutoscalingAsync(SetNodePoolAutoscalingRequest $request, array $optionalArgs = []) + * @method PromiseInterface setNodePoolManagementAsync(SetNodePoolManagementRequest $request, array $optionalArgs = []) + * @method PromiseInterface setNodePoolSizeAsync(SetNodePoolSizeRequest $request, array $optionalArgs = []) + * @method PromiseInterface startIPRotationAsync(StartIPRotationRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateClusterAsync(UpdateClusterRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMasterAsync(UpdateMasterRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateNodePoolAsync(UpdateNodePoolRequest $request, array $optionalArgs = []) */ final class ClusterManagerClient { diff --git a/ContainerAnalysis/src/V1/Client/ContainerAnalysisClient.php b/ContainerAnalysis/src/V1/Client/ContainerAnalysisClient.php index e109beea3bb6..434e1d2e72f8 100644 --- a/ContainerAnalysis/src/V1/Client/ContainerAnalysisClient.php +++ b/ContainerAnalysis/src/V1/Client/ContainerAnalysisClient.php @@ -64,10 +64,10 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVulnerabilityOccurrencesSummaryAsync(GetVulnerabilityOccurrencesSummaryRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getVulnerabilityOccurrencesSummaryAsync(GetVulnerabilityOccurrencesSummaryRequest $request, array $optionalArgs = []) + * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) */ final class ContainerAnalysisClient { diff --git a/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php b/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php index ea7b89ab57d2..af432c5b54cb 100644 --- a/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php +++ b/Dataflow/src/V1beta3/Client/FlexTemplatesServiceClient.php @@ -45,7 +45,7 @@ * * @experimental * - * @method PromiseInterface launchFlexTemplateAsync(LaunchFlexTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface launchFlexTemplateAsync(LaunchFlexTemplateRequest $request, array $optionalArgs = []) */ final class FlexTemplatesServiceClient { diff --git a/Dataflow/src/V1beta3/Client/JobsV1Beta3Client.php b/Dataflow/src/V1beta3/Client/JobsV1Beta3Client.php index 7866a42d36ba..a6b50f730d45 100644 --- a/Dataflow/src/V1beta3/Client/JobsV1Beta3Client.php +++ b/Dataflow/src/V1beta3/Client/JobsV1Beta3Client.php @@ -54,13 +54,13 @@ * * @experimental * - * @method PromiseInterface aggregatedListJobsAsync(ListJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface checkActiveJobsAsync(CheckActiveJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createJobAsync(CreateJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJobAsync(GetJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface listJobsAsync(ListJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface snapshotJobAsync(SnapshotJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateJobAsync(UpdateJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface aggregatedListJobsAsync(ListJobsRequest $request, array $optionalArgs = []) + * @method PromiseInterface checkActiveJobsAsync(CheckActiveJobsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createJobAsync(CreateJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface getJobAsync(GetJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface listJobsAsync(ListJobsRequest $request, array $optionalArgs = []) + * @method PromiseInterface snapshotJobAsync(SnapshotJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateJobAsync(UpdateJobRequest $request, array $optionalArgs = []) */ final class JobsV1Beta3Client { diff --git a/Dataflow/src/V1beta3/Client/MessagesV1Beta3Client.php b/Dataflow/src/V1beta3/Client/MessagesV1Beta3Client.php index 3269e83a0372..d43eacce4def 100644 --- a/Dataflow/src/V1beta3/Client/MessagesV1Beta3Client.php +++ b/Dataflow/src/V1beta3/Client/MessagesV1Beta3Client.php @@ -46,7 +46,7 @@ * * @experimental * - * @method PromiseInterface listJobMessagesAsync(ListJobMessagesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listJobMessagesAsync(ListJobMessagesRequest $request, array $optionalArgs = []) */ final class MessagesV1Beta3Client { diff --git a/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php b/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php index 321cdd94f614..f03d546addb9 100644 --- a/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php +++ b/Dataflow/src/V1beta3/Client/MetricsV1Beta3Client.php @@ -49,9 +49,9 @@ * * @experimental * - * @method PromiseInterface getJobExecutionDetailsAsync(GetJobExecutionDetailsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJobMetricsAsync(GetJobMetricsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getStageExecutionDetailsAsync(GetStageExecutionDetailsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getJobExecutionDetailsAsync(GetJobExecutionDetailsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getJobMetricsAsync(GetJobMetricsRequest $request, array $optionalArgs = []) + * @method PromiseInterface getStageExecutionDetailsAsync(GetStageExecutionDetailsRequest $request, array $optionalArgs = []) */ final class MetricsV1Beta3Client { diff --git a/Dataflow/src/V1beta3/Client/SnapshotsV1Beta3Client.php b/Dataflow/src/V1beta3/Client/SnapshotsV1Beta3Client.php index a00228dcd950..57811b097b94 100644 --- a/Dataflow/src/V1beta3/Client/SnapshotsV1Beta3Client.php +++ b/Dataflow/src/V1beta3/Client/SnapshotsV1Beta3Client.php @@ -49,9 +49,9 @@ * * @experimental * - * @method PromiseInterface deleteSnapshotAsync(DeleteSnapshotRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSnapshotAsync(GetSnapshotRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSnapshotsAsync(ListSnapshotsRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSnapshotAsync(DeleteSnapshotRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSnapshotAsync(GetSnapshotRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSnapshotsAsync(ListSnapshotsRequest $request, array $optionalArgs = []) */ final class SnapshotsV1Beta3Client { diff --git a/Dataflow/src/V1beta3/Client/TemplatesServiceClient.php b/Dataflow/src/V1beta3/Client/TemplatesServiceClient.php index b37ffa9cd3b0..79ffd65edd8b 100644 --- a/Dataflow/src/V1beta3/Client/TemplatesServiceClient.php +++ b/Dataflow/src/V1beta3/Client/TemplatesServiceClient.php @@ -49,9 +49,9 @@ * * @experimental * - * @method PromiseInterface createJobFromTemplateAsync(CreateJobFromTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTemplateAsync(GetTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface launchTemplateAsync(LaunchTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface createJobFromTemplateAsync(CreateJobFromTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTemplateAsync(GetTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface launchTemplateAsync(LaunchTemplateRequest $request, array $optionalArgs = []) */ final class TemplatesServiceClient { diff --git a/DataprocMetastore/src/V1/Client/DataprocMetastoreClient.php b/DataprocMetastore/src/V1/Client/DataprocMetastoreClient.php index 7d0f557f4f16..abb1d708f909 100644 --- a/DataprocMetastore/src/V1/Client/DataprocMetastoreClient.php +++ b/DataprocMetastore/src/V1/Client/DataprocMetastoreClient.php @@ -95,29 +95,29 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface alterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMetadataImportAsync(CreateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportMetadataAsync(ExportMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMetadataImportAsync(GetMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMetadataImportsAsync(ListMetadataImportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveTableToDatabaseAsync(MoveTableToDatabaseRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryMetadataAsync(QueryMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreServiceAsync(RestoreServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMetadataImportAsync(UpdateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface alterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMetadataImportAsync(CreateMetadataImportRequest $request, array $optionalArgs = []) + * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportMetadataAsync(ExportMetadataRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMetadataImportAsync(GetMetadataImportRequest $request, array $optionalArgs = []) + * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMetadataImportsAsync(ListMetadataImportsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveTableToDatabaseAsync(MoveTableToDatabaseRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryMetadataAsync(QueryMetadataRequest $request, array $optionalArgs = []) + * @method PromiseInterface restoreServiceAsync(RestoreServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMetadataImportAsync(UpdateMetadataImportRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $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 DataprocMetastoreClient { diff --git a/DataprocMetastore/src/V1/Client/DataprocMetastoreFederationClient.php b/DataprocMetastore/src/V1/Client/DataprocMetastoreFederationClient.php index ac90828d88a2..09f13ab4d721 100644 --- a/DataprocMetastore/src/V1/Client/DataprocMetastoreFederationClient.php +++ b/DataprocMetastore/src/V1/Client/DataprocMetastoreFederationClient.php @@ -75,16 +75,16 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createFederationAsync(CreateFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFederationAsync(DeleteFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFederationAsync(GetFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFederationsAsync(ListFederationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFederationAsync(UpdateFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFederationAsync(CreateFederationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFederationAsync(DeleteFederationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFederationAsync(GetFederationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFederationsAsync(ListFederationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFederationAsync(UpdateFederationRequest $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 DataprocMetastoreFederationClient { diff --git a/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreClient.php b/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreClient.php index f0caa084d55f..01f3fd546288 100644 --- a/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreClient.php +++ b/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreClient.php @@ -101,30 +101,30 @@ * * @experimental * - * @method PromiseInterface alterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMetadataImportAsync(CreateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportMetadataAsync(ExportMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMetadataImportAsync(GetMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMetadataImportsAsync(ListMetadataImportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveTableToDatabaseAsync(MoveTableToDatabaseRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryMetadataAsync(QueryMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface removeIamPolicyAsync(RemoveIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreServiceAsync(RestoreServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMetadataImportAsync(UpdateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface alterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMetadataImportAsync(CreateMetadataImportRequest $request, array $optionalArgs = []) + * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportMetadataAsync(ExportMetadataRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMetadataImportAsync(GetMetadataImportRequest $request, array $optionalArgs = []) + * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMetadataImportsAsync(ListMetadataImportsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveTableToDatabaseAsync(MoveTableToDatabaseRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryMetadataAsync(QueryMetadataRequest $request, array $optionalArgs = []) + * @method PromiseInterface removeIamPolicyAsync(RemoveIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface restoreServiceAsync(RestoreServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMetadataImportAsync(UpdateMetadataImportRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $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 DataprocMetastoreClient { diff --git a/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreFederationClient.php b/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreFederationClient.php index 31d74cee2139..64ef854e763f 100644 --- a/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreFederationClient.php +++ b/DataprocMetastore/src/V1alpha/Client/DataprocMetastoreFederationClient.php @@ -79,16 +79,16 @@ * * @experimental * - * @method PromiseInterface createFederationAsync(CreateFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFederationAsync(DeleteFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFederationAsync(GetFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFederationsAsync(ListFederationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFederationAsync(UpdateFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFederationAsync(CreateFederationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFederationAsync(DeleteFederationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFederationAsync(GetFederationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFederationsAsync(ListFederationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFederationAsync(UpdateFederationRequest $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 DataprocMetastoreFederationClient { diff --git a/DataprocMetastore/src/V1beta/Client/DataprocMetastoreClient.php b/DataprocMetastore/src/V1beta/Client/DataprocMetastoreClient.php index a7ce3eee4872..cb76af48a83b 100644 --- a/DataprocMetastore/src/V1beta/Client/DataprocMetastoreClient.php +++ b/DataprocMetastore/src/V1beta/Client/DataprocMetastoreClient.php @@ -101,30 +101,30 @@ * * @experimental * - * @method PromiseInterface alterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMetadataImportAsync(CreateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportMetadataAsync(ExportMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMetadataImportAsync(GetMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMetadataImportsAsync(ListMetadataImportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveTableToDatabaseAsync(MoveTableToDatabaseRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryMetadataAsync(QueryMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface removeIamPolicyAsync(RemoveIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreServiceAsync(RestoreServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMetadataImportAsync(UpdateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface alterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMetadataImportAsync(CreateMetadataImportRequest $request, array $optionalArgs = []) + * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportMetadataAsync(ExportMetadataRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMetadataImportAsync(GetMetadataImportRequest $request, array $optionalArgs = []) + * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMetadataImportsAsync(ListMetadataImportsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) + * @method PromiseInterface moveTableToDatabaseAsync(MoveTableToDatabaseRequest $request, array $optionalArgs = []) + * @method PromiseInterface queryMetadataAsync(QueryMetadataRequest $request, array $optionalArgs = []) + * @method PromiseInterface removeIamPolicyAsync(RemoveIamPolicyRequest $request, array $optionalArgs = []) + * @method PromiseInterface restoreServiceAsync(RestoreServiceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMetadataImportAsync(UpdateMetadataImportRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $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 DataprocMetastoreClient { diff --git a/DataprocMetastore/src/V1beta/Client/DataprocMetastoreFederationClient.php b/DataprocMetastore/src/V1beta/Client/DataprocMetastoreFederationClient.php index 7e3d104b096f..ab7366cd2378 100644 --- a/DataprocMetastore/src/V1beta/Client/DataprocMetastoreFederationClient.php +++ b/DataprocMetastore/src/V1beta/Client/DataprocMetastoreFederationClient.php @@ -79,16 +79,16 @@ * * @experimental * - * @method PromiseInterface createFederationAsync(CreateFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFederationAsync(DeleteFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFederationAsync(GetFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFederationsAsync(ListFederationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFederationAsync(UpdateFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createFederationAsync(CreateFederationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFederationAsync(DeleteFederationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFederationAsync(GetFederationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFederationsAsync(ListFederationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateFederationAsync(UpdateFederationRequest $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 DataprocMetastoreFederationClient { diff --git a/Datastore/src/V1/Client/DatastoreClient.php b/Datastore/src/V1/Client/DatastoreClient.php index fb29d1bbbbf3..9f70ddbfce01 100644 --- a/Datastore/src/V1/Client/DatastoreClient.php +++ b/Datastore/src/V1/Client/DatastoreClient.php @@ -62,14 +62,14 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface allocateIdsAsync(AllocateIdsRequest $request, array $optionalArgs = []) - * @method PromiseInterface beginTransactionAsync(BeginTransactionRequest $request, array $optionalArgs = []) - * @method PromiseInterface commitAsync(CommitRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupAsync(LookupRequest $request, array $optionalArgs = []) - * @method PromiseInterface reserveIdsAsync(ReserveIdsRequest $request, array $optionalArgs = []) - * @method PromiseInterface rollbackAsync(RollbackRequest $request, array $optionalArgs = []) - * @method PromiseInterface runAggregationQueryAsync(RunAggregationQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface runQueryAsync(RunQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface allocateIdsAsync(AllocateIdsRequest $request, array $optionalArgs = []) + * @method PromiseInterface beginTransactionAsync(BeginTransactionRequest $request, array $optionalArgs = []) + * @method PromiseInterface commitAsync(CommitRequest $request, array $optionalArgs = []) + * @method PromiseInterface lookupAsync(LookupRequest $request, array $optionalArgs = []) + * @method PromiseInterface reserveIdsAsync(ReserveIdsRequest $request, array $optionalArgs = []) + * @method PromiseInterface rollbackAsync(RollbackRequest $request, array $optionalArgs = []) + * @method PromiseInterface runAggregationQueryAsync(RunAggregationQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface runQueryAsync(RunQueryRequest $request, array $optionalArgs = []) */ final class DatastoreClient { diff --git a/DatastoreAdmin/src/V1/Client/DatastoreAdminClient.php b/DatastoreAdmin/src/V1/Client/DatastoreAdminClient.php index cf6a87538cfe..b468a999f5aa 100644 --- a/DatastoreAdmin/src/V1/Client/DatastoreAdminClient.php +++ b/DatastoreAdmin/src/V1/Client/DatastoreAdminClient.php @@ -96,12 +96,12 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface createIndexAsync(CreateIndexRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteIndexAsync(DeleteIndexRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportEntitiesAsync(ExportEntitiesRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIndexAsync(GetIndexRequest $request, array $optionalArgs = []) - * @method PromiseInterface importEntitiesAsync(ImportEntitiesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listIndexesAsync(ListIndexesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createIndexAsync(CreateIndexRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteIndexAsync(DeleteIndexRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportEntitiesAsync(ExportEntitiesRequest $request, array $optionalArgs = []) + * @method PromiseInterface getIndexAsync(GetIndexRequest $request, array $optionalArgs = []) + * @method PromiseInterface importEntitiesAsync(ImportEntitiesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listIndexesAsync(ListIndexesRequest $request, array $optionalArgs = []) */ final class DatastoreAdminClient { diff --git a/Debugger/src/V2/Client/Controller2Client.php b/Debugger/src/V2/Client/Controller2Client.php index 1062343d8b49..f3717d781ca9 100644 --- a/Debugger/src/V2/Client/Controller2Client.php +++ b/Debugger/src/V2/Client/Controller2Client.php @@ -64,9 +64,9 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface listActiveBreakpointsAsync(ListActiveBreakpointsRequest $request, array $optionalArgs = []) - * @method PromiseInterface registerDebuggeeAsync(RegisterDebuggeeRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateActiveBreakpointAsync(UpdateActiveBreakpointRequest $request, array $optionalArgs = []) + * @method PromiseInterface listActiveBreakpointsAsync(ListActiveBreakpointsRequest $request, array $optionalArgs = []) + * @method PromiseInterface registerDebuggeeAsync(RegisterDebuggeeRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateActiveBreakpointAsync(UpdateActiveBreakpointRequest $request, array $optionalArgs = []) */ final class Controller2Client { diff --git a/Debugger/src/V2/Client/Debugger2Client.php b/Debugger/src/V2/Client/Debugger2Client.php index c03e7d26ad9a..e405da2b92ce 100644 --- a/Debugger/src/V2/Client/Debugger2Client.php +++ b/Debugger/src/V2/Client/Debugger2Client.php @@ -59,11 +59,11 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface deleteBreakpointAsync(DeleteBreakpointRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBreakpointAsync(GetBreakpointRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBreakpointsAsync(ListBreakpointsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDebuggeesAsync(ListDebuggeesRequest $request, array $optionalArgs = []) - * @method PromiseInterface setBreakpointAsync(SetBreakpointRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteBreakpointAsync(DeleteBreakpointRequest $request, array $optionalArgs = []) + * @method PromiseInterface getBreakpointAsync(GetBreakpointRequest $request, array $optionalArgs = []) + * @method PromiseInterface listBreakpointsAsync(ListBreakpointsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDebuggeesAsync(ListDebuggeesRequest $request, array $optionalArgs = []) + * @method PromiseInterface setBreakpointAsync(SetBreakpointRequest $request, array $optionalArgs = []) */ final class Debugger2Client { diff --git a/DiscoveryEngine/src/V1/Client/CompletionServiceClient.php b/DiscoveryEngine/src/V1/Client/CompletionServiceClient.php index af999a9b198b..c53837de851a 100644 --- a/DiscoveryEngine/src/V1/Client/CompletionServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/CompletionServiceClient.php @@ -54,11 +54,11 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface completeQueryAsync(CompleteQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface importCompletionSuggestionsAsync(ImportCompletionSuggestionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface importSuggestionDenyListEntriesAsync(ImportSuggestionDenyListEntriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface purgeCompletionSuggestionsAsync(PurgeCompletionSuggestionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface purgeSuggestionDenyListEntriesAsync(PurgeSuggestionDenyListEntriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface completeQueryAsync(CompleteQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface importCompletionSuggestionsAsync(ImportCompletionSuggestionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface importSuggestionDenyListEntriesAsync(ImportSuggestionDenyListEntriesRequest $request, array $optionalArgs = []) + * @method PromiseInterface purgeCompletionSuggestionsAsync(PurgeCompletionSuggestionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface purgeSuggestionDenyListEntriesAsync(PurgeSuggestionDenyListEntriesRequest $request, array $optionalArgs = []) */ final class CompletionServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/ControlServiceClient.php b/DiscoveryEngine/src/V1/Client/ControlServiceClient.php index d523e97742e3..bf97689be2fa 100644 --- a/DiscoveryEngine/src/V1/Client/ControlServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/ControlServiceClient.php @@ -55,11 +55,11 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createControlAsync(CreateControlRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteControlAsync(DeleteControlRequest $request, array $optionalArgs = []) - * @method PromiseInterface getControlAsync(GetControlRequest $request, array $optionalArgs = []) - * @method PromiseInterface listControlsAsync(ListControlsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateControlAsync(UpdateControlRequest $request, array $optionalArgs = []) + * @method PromiseInterface createControlAsync(CreateControlRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteControlAsync(DeleteControlRequest $request, array $optionalArgs = []) + * @method PromiseInterface getControlAsync(GetControlRequest $request, array $optionalArgs = []) + * @method PromiseInterface listControlsAsync(ListControlsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateControlAsync(UpdateControlRequest $request, array $optionalArgs = []) */ final class ControlServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/ConversationalSearchServiceClient.php b/DiscoveryEngine/src/V1/Client/ConversationalSearchServiceClient.php index ea5758441b4d..f281eddeeb06 100644 --- a/DiscoveryEngine/src/V1/Client/ConversationalSearchServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/ConversationalSearchServiceClient.php @@ -64,19 +64,19 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface answerQueryAsync(AnswerQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface converseConversationAsync(ConverseConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConversationAsync(CreateConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSessionAsync(CreateSessionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConversationAsync(DeleteConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSessionAsync(DeleteSessionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAnswerAsync(GetAnswerRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConversationAsync(GetConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSessionAsync(GetSessionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConversationsAsync(ListConversationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSessionsAsync(ListSessionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConversationAsync(UpdateConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSessionAsync(UpdateSessionRequest $request, array $optionalArgs = []) + * @method PromiseInterface answerQueryAsync(AnswerQueryRequest $request, array $optionalArgs = []) + * @method PromiseInterface converseConversationAsync(ConverseConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createConversationAsync(CreateConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSessionAsync(CreateSessionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConversationAsync(DeleteConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSessionAsync(DeleteSessionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getAnswerAsync(GetAnswerRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConversationAsync(GetConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSessionAsync(GetSessionRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConversationsAsync(ListConversationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSessionsAsync(ListSessionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateConversationAsync(UpdateConversationRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSessionAsync(UpdateSessionRequest $request, array $optionalArgs = []) */ final class ConversationalSearchServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/DataStoreServiceClient.php b/DiscoveryEngine/src/V1/Client/DataStoreServiceClient.php index 6009714e4cee..4c335d59f538 100644 --- a/DiscoveryEngine/src/V1/Client/DataStoreServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/DataStoreServiceClient.php @@ -56,11 +56,11 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createDataStoreAsync(CreateDataStoreRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataStoreAsync(DeleteDataStoreRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataStoreAsync(GetDataStoreRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataStoresAsync(ListDataStoresRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataStoreAsync(UpdateDataStoreRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDataStoreAsync(CreateDataStoreRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDataStoreAsync(DeleteDataStoreRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDataStoreAsync(GetDataStoreRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDataStoresAsync(ListDataStoresRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDataStoreAsync(UpdateDataStoreRequest $request, array $optionalArgs = []) */ final class DataStoreServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/DocumentServiceClient.php b/DiscoveryEngine/src/V1/Client/DocumentServiceClient.php index c51bd037fcde..e116ea207943 100644 --- a/DiscoveryEngine/src/V1/Client/DocumentServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/DocumentServiceClient.php @@ -60,14 +60,14 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface batchGetDocumentsMetadataAsync(BatchGetDocumentsMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDocumentAsync(CreateDocumentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDocumentAsync(DeleteDocumentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDocumentAsync(GetDocumentRequest $request, array $optionalArgs = []) - * @method PromiseInterface importDocumentsAsync(ImportDocumentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDocumentsAsync(ListDocumentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface purgeDocumentsAsync(PurgeDocumentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDocumentAsync(UpdateDocumentRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchGetDocumentsMetadataAsync(BatchGetDocumentsMetadataRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDocumentAsync(CreateDocumentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDocumentAsync(DeleteDocumentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDocumentAsync(GetDocumentRequest $request, array $optionalArgs = []) + * @method PromiseInterface importDocumentsAsync(ImportDocumentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDocumentsAsync(ListDocumentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface purgeDocumentsAsync(PurgeDocumentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDocumentAsync(UpdateDocumentRequest $request, array $optionalArgs = []) */ final class DocumentServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/EngineServiceClient.php b/DiscoveryEngine/src/V1/Client/EngineServiceClient.php index 990f2790f9ea..6c22b0e26575 100644 --- a/DiscoveryEngine/src/V1/Client/EngineServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/EngineServiceClient.php @@ -56,11 +56,11 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createEngineAsync(CreateEngineRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEngineAsync(DeleteEngineRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEngineAsync(GetEngineRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEnginesAsync(ListEnginesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEngineAsync(UpdateEngineRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEngineAsync(CreateEngineRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEngineAsync(DeleteEngineRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEngineAsync(GetEngineRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEnginesAsync(ListEnginesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEngineAsync(UpdateEngineRequest $request, array $optionalArgs = []) */ final class EngineServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/GroundedGenerationServiceClient.php b/DiscoveryEngine/src/V1/Client/GroundedGenerationServiceClient.php index 3db7e4412924..cbef26076282 100644 --- a/DiscoveryEngine/src/V1/Client/GroundedGenerationServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/GroundedGenerationServiceClient.php @@ -50,8 +50,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface checkGroundingAsync(CheckGroundingRequest $request, array $optionalArgs = []) - * @method PromiseInterface generateGroundedContentAsync(GenerateGroundedContentRequest $request, array $optionalArgs = []) + * @method PromiseInterface checkGroundingAsync(CheckGroundingRequest $request, array $optionalArgs = []) + * @method PromiseInterface generateGroundedContentAsync(GenerateGroundedContentRequest $request, array $optionalArgs = []) */ final class GroundedGenerationServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/ProjectServiceClient.php b/DiscoveryEngine/src/V1/Client/ProjectServiceClient.php index 823048011f72..76486d858553 100644 --- a/DiscoveryEngine/src/V1/Client/ProjectServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/ProjectServiceClient.php @@ -51,7 +51,7 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface provisionProjectAsync(ProvisionProjectRequest $request, array $optionalArgs = []) + * @method PromiseInterface provisionProjectAsync(ProvisionProjectRequest $request, array $optionalArgs = []) */ final class ProjectServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/RankServiceClient.php b/DiscoveryEngine/src/V1/Client/RankServiceClient.php index c6e880be9f01..9f5a2dd191ef 100644 --- a/DiscoveryEngine/src/V1/Client/RankServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/RankServiceClient.php @@ -47,7 +47,7 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface rankAsync(RankRequest $request, array $optionalArgs = []) + * @method PromiseInterface rankAsync(RankRequest $request, array $optionalArgs = []) */ final class RankServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/RecommendationServiceClient.php b/DiscoveryEngine/src/V1/Client/RecommendationServiceClient.php index 463a8cf4b7ca..fd633d575aa6 100644 --- a/DiscoveryEngine/src/V1/Client/RecommendationServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/RecommendationServiceClient.php @@ -47,7 +47,7 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface recommendAsync(RecommendRequest $request, array $optionalArgs = []) + * @method PromiseInterface recommendAsync(RecommendRequest $request, array $optionalArgs = []) */ final class RecommendationServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/SchemaServiceClient.php b/DiscoveryEngine/src/V1/Client/SchemaServiceClient.php index 351e4eed67c4..686257062529 100644 --- a/DiscoveryEngine/src/V1/Client/SchemaServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/SchemaServiceClient.php @@ -55,11 +55,11 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createSchemaAsync(CreateSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSchemaAsync(DeleteSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSchemaAsync(GetSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSchemasAsync(ListSchemasRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSchemaAsync(UpdateSchemaRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSchemaAsync(CreateSchemaRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSchemaAsync(DeleteSchemaRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSchemaAsync(GetSchemaRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSchemasAsync(ListSchemasRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSchemaAsync(UpdateSchemaRequest $request, array $optionalArgs = []) */ final class SchemaServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/SearchServiceClient.php b/DiscoveryEngine/src/V1/Client/SearchServiceClient.php index e7c1a1e368e2..0ea840586734 100644 --- a/DiscoveryEngine/src/V1/Client/SearchServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/SearchServiceClient.php @@ -47,8 +47,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface searchAsync(SearchRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchLiteAsync(SearchRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchAsync(SearchRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchLiteAsync(SearchRequest $request, array $optionalArgs = []) */ final class SearchServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/SearchTuningServiceClient.php b/DiscoveryEngine/src/V1/Client/SearchTuningServiceClient.php index 14e2d82cb606..4035eba73cea 100644 --- a/DiscoveryEngine/src/V1/Client/SearchTuningServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/SearchTuningServiceClient.php @@ -51,8 +51,8 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface listCustomModelsAsync(ListCustomModelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface trainCustomModelAsync(TrainCustomModelRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCustomModelsAsync(ListCustomModelsRequest $request, array $optionalArgs = []) + * @method PromiseInterface trainCustomModelAsync(TrainCustomModelRequest $request, array $optionalArgs = []) */ final class SearchTuningServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/SiteSearchEngineServiceClient.php b/DiscoveryEngine/src/V1/Client/SiteSearchEngineServiceClient.php index 8352c0540ac4..c6e1c174295e 100644 --- a/DiscoveryEngine/src/V1/Client/SiteSearchEngineServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/SiteSearchEngineServiceClient.php @@ -63,18 +63,18 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface batchCreateTargetSitesAsync(BatchCreateTargetSitesRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchVerifyTargetSitesAsync(BatchVerifyTargetSitesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTargetSiteAsync(CreateTargetSiteRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTargetSiteAsync(DeleteTargetSiteRequest $request, array $optionalArgs = []) - * @method PromiseInterface disableAdvancedSiteSearchAsync(DisableAdvancedSiteSearchRequest $request, array $optionalArgs = []) - * @method PromiseInterface enableAdvancedSiteSearchAsync(EnableAdvancedSiteSearchRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchDomainVerificationStatusAsync(FetchDomainVerificationStatusRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSiteSearchEngineAsync(GetSiteSearchEngineRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTargetSiteAsync(GetTargetSiteRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTargetSitesAsync(ListTargetSitesRequest $request, array $optionalArgs = []) - * @method PromiseInterface recrawlUrisAsync(RecrawlUrisRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTargetSiteAsync(UpdateTargetSiteRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateTargetSitesAsync(BatchCreateTargetSitesRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchVerifyTargetSitesAsync(BatchVerifyTargetSitesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTargetSiteAsync(CreateTargetSiteRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTargetSiteAsync(DeleteTargetSiteRequest $request, array $optionalArgs = []) + * @method PromiseInterface disableAdvancedSiteSearchAsync(DisableAdvancedSiteSearchRequest $request, array $optionalArgs = []) + * @method PromiseInterface enableAdvancedSiteSearchAsync(EnableAdvancedSiteSearchRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchDomainVerificationStatusAsync(FetchDomainVerificationStatusRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSiteSearchEngineAsync(GetSiteSearchEngineRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTargetSiteAsync(GetTargetSiteRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTargetSitesAsync(ListTargetSitesRequest $request, array $optionalArgs = []) + * @method PromiseInterface recrawlUrisAsync(RecrawlUrisRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTargetSiteAsync(UpdateTargetSiteRequest $request, array $optionalArgs = []) */ final class SiteSearchEngineServiceClient { diff --git a/DiscoveryEngine/src/V1/Client/UserEventServiceClient.php b/DiscoveryEngine/src/V1/Client/UserEventServiceClient.php index 6434bb6e26f0..c846478561be 100644 --- a/DiscoveryEngine/src/V1/Client/UserEventServiceClient.php +++ b/DiscoveryEngine/src/V1/Client/UserEventServiceClient.php @@ -54,10 +54,10 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface collectUserEventAsync(CollectUserEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface importUserEventsAsync(ImportUserEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface purgeUserEventsAsync(PurgeUserEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface writeUserEventAsync(WriteUserEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface collectUserEventAsync(CollectUserEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface importUserEventsAsync(ImportUserEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface purgeUserEventsAsync(PurgeUserEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface writeUserEventAsync(WriteUserEventRequest $request, array $optionalArgs = []) */ final class UserEventServiceClient { diff --git a/Dlp/src/V2/Client/DlpServiceClient.php b/Dlp/src/V2/Client/DlpServiceClient.php index f90d8b555805..c0275f3e0932 100644 --- a/Dlp/src/V2/Client/DlpServiceClient.php +++ b/Dlp/src/V2/Client/DlpServiceClient.php @@ -122,61 +122,61 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface activateJobTriggerAsync(ActivateJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface cancelDlpJobAsync(CancelDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConnectionAsync(CreateConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDeidentifyTemplateAsync(CreateDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDiscoveryConfigAsync(CreateDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDlpJobAsync(CreateDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface createInspectTemplateAsync(CreateInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface createJobTriggerAsync(CreateJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface createStoredInfoTypeAsync(CreateStoredInfoTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deidentifyContentAsync(DeidentifyContentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConnectionAsync(DeleteConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDlpJobAsync(DeleteDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFileStoreDataProfileAsync(DeleteFileStoreDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInspectTemplateAsync(DeleteInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteJobTriggerAsync(DeleteJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTableDataProfileAsync(DeleteTableDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface finishDlpJobAsync(FinishDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface getColumnDataProfileAsync(GetColumnDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConnectionAsync(GetConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDeidentifyTemplateAsync(GetDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDiscoveryConfigAsync(GetDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDlpJobAsync(GetDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFileStoreDataProfileAsync(GetFileStoreDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInspectTemplateAsync(GetInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJobTriggerAsync(GetJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProjectDataProfileAsync(GetProjectDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getStoredInfoTypeAsync(GetStoredInfoTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTableDataProfileAsync(GetTableDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface hybridInspectDlpJobAsync(HybridInspectDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface hybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface inspectContentAsync(InspectContentRequest $request, array $optionalArgs = []) - * @method PromiseInterface listColumnDataProfilesAsync(ListColumnDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDeidentifyTemplatesAsync(ListDeidentifyTemplatesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDiscoveryConfigsAsync(ListDiscoveryConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDlpJobsAsync(ListDlpJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFileStoreDataProfilesAsync(ListFileStoreDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInfoTypesAsync(ListInfoTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInspectTemplatesAsync(ListInspectTemplatesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listJobTriggersAsync(ListJobTriggersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProjectDataProfilesAsync(ListProjectDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listStoredInfoTypesAsync(ListStoredInfoTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTableDataProfilesAsync(ListTableDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface redactImageAsync(RedactImageRequest $request, array $optionalArgs = []) - * @method PromiseInterface reidentifyContentAsync(ReidentifyContentRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchConnectionsAsync(SearchConnectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConnectionAsync(UpdateConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateInspectTemplateAsync(UpdateInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateJobTriggerAsync(UpdateJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface activateJobTriggerAsync(ActivateJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface cancelDlpJobAsync(CancelDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface createConnectionAsync(CreateConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDeidentifyTemplateAsync(CreateDeidentifyTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDiscoveryConfigAsync(CreateDiscoveryConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDlpJobAsync(CreateDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface createInspectTemplateAsync(CreateInspectTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface createJobTriggerAsync(CreateJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface createStoredInfoTypeAsync(CreateStoredInfoTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deidentifyContentAsync(DeidentifyContentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteConnectionAsync(DeleteConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteDlpJobAsync(DeleteDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteFileStoreDataProfileAsync(DeleteFileStoreDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteInspectTemplateAsync(DeleteInspectTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteJobTriggerAsync(DeleteJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTableDataProfileAsync(DeleteTableDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface finishDlpJobAsync(FinishDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface getColumnDataProfileAsync(GetColumnDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface getConnectionAsync(GetConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDeidentifyTemplateAsync(GetDeidentifyTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDiscoveryConfigAsync(GetDiscoveryConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDlpJobAsync(GetDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface getFileStoreDataProfileAsync(GetFileStoreDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface getInspectTemplateAsync(GetInspectTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface getJobTriggerAsync(GetJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface getProjectDataProfileAsync(GetProjectDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface getStoredInfoTypeAsync(GetStoredInfoTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTableDataProfileAsync(GetTableDataProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface hybridInspectDlpJobAsync(HybridInspectDlpJobRequest $request, array $optionalArgs = []) + * @method PromiseInterface hybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface inspectContentAsync(InspectContentRequest $request, array $optionalArgs = []) + * @method PromiseInterface listColumnDataProfilesAsync(ListColumnDataProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDeidentifyTemplatesAsync(ListDeidentifyTemplatesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDiscoveryConfigsAsync(ListDiscoveryConfigsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDlpJobsAsync(ListDlpJobsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listFileStoreDataProfilesAsync(ListFileStoreDataProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listInfoTypesAsync(ListInfoTypesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listInspectTemplatesAsync(ListInspectTemplatesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listJobTriggersAsync(ListJobTriggersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listProjectDataProfilesAsync(ListProjectDataProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listStoredInfoTypesAsync(ListStoredInfoTypesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTableDataProfilesAsync(ListTableDataProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface redactImageAsync(RedactImageRequest $request, array $optionalArgs = []) + * @method PromiseInterface reidentifyContentAsync(ReidentifyContentRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchConnectionsAsync(SearchConnectionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateConnectionAsync(UpdateConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateInspectTemplateAsync(UpdateInspectTemplateRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateJobTriggerAsync(UpdateJobTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest $request, array $optionalArgs = []) */ final class DlpServiceClient { diff --git a/DocumentAi/src/V1/Client/DocumentProcessorServiceClient.php b/DocumentAi/src/V1/Client/DocumentProcessorServiceClient.php index 9eb2bbcbb5df..6cd7a4037ea3 100644 --- a/DocumentAi/src/V1/Client/DocumentProcessorServiceClient.php +++ b/DocumentAi/src/V1/Client/DocumentProcessorServiceClient.php @@ -84,30 +84,30 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface batchProcessDocumentsAsync(BatchProcessRequest $request, array $optionalArgs = []) - * @method PromiseInterface createProcessorAsync(CreateProcessorRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteProcessorAsync(DeleteProcessorRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteProcessorVersionAsync(DeleteProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deployProcessorVersionAsync(DeployProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface disableProcessorAsync(DisableProcessorRequest $request, array $optionalArgs = []) - * @method PromiseInterface enableProcessorAsync(EnableProcessorRequest $request, array $optionalArgs = []) - * @method PromiseInterface evaluateProcessorVersionAsync(EvaluateProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchProcessorTypesAsync(FetchProcessorTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEvaluationAsync(GetEvaluationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProcessorAsync(GetProcessorRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProcessorTypeAsync(GetProcessorTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProcessorVersionAsync(GetProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEvaluationsAsync(ListEvaluationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProcessorTypesAsync(ListProcessorTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProcessorVersionsAsync(ListProcessorVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProcessorsAsync(ListProcessorsRequest $request, array $optionalArgs = []) - * @method PromiseInterface processDocumentAsync(ProcessRequest $request, array $optionalArgs = []) - * @method PromiseInterface reviewDocumentAsync(ReviewDocumentRequest $request, array $optionalArgs = []) - * @method PromiseInterface setDefaultProcessorVersionAsync(SetDefaultProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface trainProcessorVersionAsync(TrainProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface undeployProcessorVersionAsync(UndeployProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchProcessDocumentsAsync(BatchProcessRequest $request, array $optionalArgs = []) + * @method PromiseInterface createProcessorAsync(CreateProcessorRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteProcessorAsync(DeleteProcessorRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteProcessorVersionAsync(DeleteProcessorVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deployProcessorVersionAsync(DeployProcessorVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface disableProcessorAsync(DisableProcessorRequest $request, array $optionalArgs = []) + * @method PromiseInterface enableProcessorAsync(EnableProcessorRequest $request, array $optionalArgs = []) + * @method PromiseInterface evaluateProcessorVersionAsync(EvaluateProcessorVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface fetchProcessorTypesAsync(FetchProcessorTypesRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEvaluationAsync(GetEvaluationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getProcessorAsync(GetProcessorRequest $request, array $optionalArgs = []) + * @method PromiseInterface getProcessorTypeAsync(GetProcessorTypeRequest $request, array $optionalArgs = []) + * @method PromiseInterface getProcessorVersionAsync(GetProcessorVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEvaluationsAsync(ListEvaluationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listProcessorTypesAsync(ListProcessorTypesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listProcessorVersionsAsync(ListProcessorVersionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listProcessorsAsync(ListProcessorsRequest $request, array $optionalArgs = []) + * @method PromiseInterface processDocumentAsync(ProcessRequest $request, array $optionalArgs = []) + * @method PromiseInterface reviewDocumentAsync(ReviewDocumentRequest $request, array $optionalArgs = []) + * @method PromiseInterface setDefaultProcessorVersionAsync(SetDefaultProcessorVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface trainProcessorVersionAsync(TrainProcessorVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface undeployProcessorVersionAsync(UndeployProcessorVersionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class DocumentProcessorServiceClient { diff --git a/Domains/src/V1/Client/DomainsClient.php b/Domains/src/V1/Client/DomainsClient.php index ff35955ba299..b2c1303f298e 100644 --- a/Domains/src/V1/Client/DomainsClient.php +++ b/Domains/src/V1/Client/DomainsClient.php @@ -69,21 +69,21 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface configureContactSettingsAsync(ConfigureContactSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface configureDnsSettingsAsync(ConfigureDnsSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface configureManagementSettingsAsync(ConfigureManagementSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRegistrationAsync(DeleteRegistrationRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportRegistrationAsync(ExportRegistrationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRegistrationAsync(GetRegistrationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRegistrationsAsync(ListRegistrationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface registerDomainAsync(RegisterDomainRequest $request, array $optionalArgs = []) - * @method PromiseInterface resetAuthorizationCodeAsync(ResetAuthorizationCodeRequest $request, array $optionalArgs = []) - * @method PromiseInterface retrieveAuthorizationCodeAsync(RetrieveAuthorizationCodeRequest $request, array $optionalArgs = []) - * @method PromiseInterface retrieveRegisterParametersAsync(RetrieveRegisterParametersRequest $request, array $optionalArgs = []) - * @method PromiseInterface retrieveTransferParametersAsync(RetrieveTransferParametersRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchDomainsAsync(SearchDomainsRequest $request, array $optionalArgs = []) - * @method PromiseInterface transferDomainAsync(TransferDomainRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRegistrationAsync(UpdateRegistrationRequest $request, array $optionalArgs = []) + * @method PromiseInterface configureContactSettingsAsync(ConfigureContactSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface configureDnsSettingsAsync(ConfigureDnsSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface configureManagementSettingsAsync(ConfigureManagementSettingsRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRegistrationAsync(DeleteRegistrationRequest $request, array $optionalArgs = []) + * @method PromiseInterface exportRegistrationAsync(ExportRegistrationRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRegistrationAsync(GetRegistrationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRegistrationsAsync(ListRegistrationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface registerDomainAsync(RegisterDomainRequest $request, array $optionalArgs = []) + * @method PromiseInterface resetAuthorizationCodeAsync(ResetAuthorizationCodeRequest $request, array $optionalArgs = []) + * @method PromiseInterface retrieveAuthorizationCodeAsync(RetrieveAuthorizationCodeRequest $request, array $optionalArgs = []) + * @method PromiseInterface retrieveRegisterParametersAsync(RetrieveRegisterParametersRequest $request, array $optionalArgs = []) + * @method PromiseInterface retrieveTransferParametersAsync(RetrieveTransferParametersRequest $request, array $optionalArgs = []) + * @method PromiseInterface searchDomainsAsync(SearchDomainsRequest $request, array $optionalArgs = []) + * @method PromiseInterface transferDomainAsync(TransferDomainRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRegistrationAsync(UpdateRegistrationRequest $request, array $optionalArgs = []) */ final class DomainsClient { diff --git a/EdgeNetwork/src/V1/Client/EdgeNetworkClient.php b/EdgeNetwork/src/V1/Client/EdgeNetworkClient.php index 2f9698673548..b2a7980b3fdc 100644 --- a/EdgeNetwork/src/V1/Client/EdgeNetworkClient.php +++ b/EdgeNetwork/src/V1/Client/EdgeNetworkClient.php @@ -91,34 +91,34 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createNetworkAsync(CreateNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRouterAsync(CreateRouterRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSubnetAsync(CreateSubnetRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteNetworkAsync(DeleteNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRouterAsync(DeleteRouterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSubnetAsync(DeleteSubnetRequest $request, array $optionalArgs = []) - * @method PromiseInterface diagnoseInterconnectAsync(DiagnoseInterconnectRequest $request, array $optionalArgs = []) - * @method PromiseInterface diagnoseNetworkAsync(DiagnoseNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface diagnoseRouterAsync(DiagnoseRouterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInterconnectAsync(GetInterconnectRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInterconnectAttachmentAsync(GetInterconnectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getNetworkAsync(GetNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRouterAsync(GetRouterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSubnetAsync(GetSubnetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getZoneAsync(GetZoneRequest $request, array $optionalArgs = []) - * @method PromiseInterface initializeZoneAsync(InitializeZoneRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInterconnectAttachmentsAsync(ListInterconnectAttachmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInterconnectsAsync(ListInterconnectsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNetworksAsync(ListNetworksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRoutersAsync(ListRoutersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSubnetsAsync(ListSubnetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listZonesAsync(ListZonesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRouterAsync(UpdateRouterRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSubnetAsync(UpdateSubnetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface createNetworkAsync(CreateNetworkRequest $request, array $optionalArgs = []) + * @method PromiseInterface createRouterAsync(CreateRouterRequest $request, array $optionalArgs = []) + * @method PromiseInterface createSubnetAsync(CreateSubnetRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteNetworkAsync(DeleteNetworkRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteRouterAsync(DeleteRouterRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteSubnetAsync(DeleteSubnetRequest $request, array $optionalArgs = []) + * @method PromiseInterface diagnoseInterconnectAsync(DiagnoseInterconnectRequest $request, array $optionalArgs = []) + * @method PromiseInterface diagnoseNetworkAsync(DiagnoseNetworkRequest $request, array $optionalArgs = []) + * @method PromiseInterface diagnoseRouterAsync(DiagnoseRouterRequest $request, array $optionalArgs = []) + * @method PromiseInterface getInterconnectAsync(GetInterconnectRequest $request, array $optionalArgs = []) + * @method PromiseInterface getInterconnectAttachmentAsync(GetInterconnectAttachmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getNetworkAsync(GetNetworkRequest $request, array $optionalArgs = []) + * @method PromiseInterface getRouterAsync(GetRouterRequest $request, array $optionalArgs = []) + * @method PromiseInterface getSubnetAsync(GetSubnetRequest $request, array $optionalArgs = []) + * @method PromiseInterface getZoneAsync(GetZoneRequest $request, array $optionalArgs = []) + * @method PromiseInterface initializeZoneAsync(InitializeZoneRequest $request, array $optionalArgs = []) + * @method PromiseInterface listInterconnectAttachmentsAsync(ListInterconnectAttachmentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listInterconnectsAsync(ListInterconnectsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listNetworksAsync(ListNetworksRequest $request, array $optionalArgs = []) + * @method PromiseInterface listRoutersAsync(ListRoutersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listSubnetsAsync(ListSubnetsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listZonesAsync(ListZonesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateRouterAsync(UpdateRouterRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateSubnetAsync(UpdateSubnetRequest $request, array $optionalArgs = []) + * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) + * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) */ final class EdgeNetworkClient { diff --git a/ErrorReporting/src/V1beta1/Client/ErrorGroupServiceClient.php b/ErrorReporting/src/V1beta1/Client/ErrorGroupServiceClient.php index 0f1239705ae3..82b833935773 100644 --- a/ErrorReporting/src/V1beta1/Client/ErrorGroupServiceClient.php +++ b/ErrorReporting/src/V1beta1/Client/ErrorGroupServiceClient.php @@ -52,8 +52,8 @@ * * @experimental * - * @method PromiseInterface getGroupAsync(GetGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGroupAsync(UpdateGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface getGroupAsync(GetGroupRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGroupAsync(UpdateGroupRequest $request, array $optionalArgs = []) */ final class ErrorGroupServiceClient { diff --git a/ErrorReporting/src/V1beta1/Client/ErrorStatsServiceClient.php b/ErrorReporting/src/V1beta1/Client/ErrorStatsServiceClient.php index 58b77c53ff0d..9b621234b09a 100644 --- a/ErrorReporting/src/V1beta1/Client/ErrorStatsServiceClient.php +++ b/ErrorReporting/src/V1beta1/Client/ErrorStatsServiceClient.php @@ -55,9 +55,9 @@ * * @experimental * - * @method PromiseInterface deleteEventsAsync(DeleteEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEventsAsync(ListEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGroupStatsAsync(ListGroupStatsRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEventsAsync(DeleteEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEventsAsync(ListEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGroupStatsAsync(ListGroupStatsRequest $request, array $optionalArgs = []) */ final class ErrorStatsServiceClient { diff --git a/ErrorReporting/src/V1beta1/Client/ReportErrorsServiceClient.php b/ErrorReporting/src/V1beta1/Client/ReportErrorsServiceClient.php index 2415de684475..c9177e5fef1a 100644 --- a/ErrorReporting/src/V1beta1/Client/ReportErrorsServiceClient.php +++ b/ErrorReporting/src/V1beta1/Client/ReportErrorsServiceClient.php @@ -51,7 +51,7 @@ * * @experimental * - * @method PromiseInterface reportErrorEventAsync(ReportErrorEventRequest $request, array $optionalArgs = []) + * @method PromiseInterface reportErrorEventAsync(ReportErrorEventRequest $request, array $optionalArgs = []) */ final class ReportErrorsServiceClient { diff --git a/EssentialContacts/src/V1/Client/EssentialContactsServiceClient.php b/EssentialContacts/src/V1/Client/EssentialContactsServiceClient.php index b9a6ddbf1f35..71aa81debb17 100644 --- a/EssentialContacts/src/V1/Client/EssentialContactsServiceClient.php +++ b/EssentialContacts/src/V1/Client/EssentialContactsServiceClient.php @@ -54,13 +54,13 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface computeContactsAsync(ComputeContactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createContactAsync(CreateContactRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteContactAsync(DeleteContactRequest $request, array $optionalArgs = []) - * @method PromiseInterface getContactAsync(GetContactRequest $request, array $optionalArgs = []) - * @method PromiseInterface listContactsAsync(ListContactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface sendTestMessageAsync(SendTestMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateContactAsync(UpdateContactRequest $request, array $optionalArgs = []) + * @method PromiseInterface computeContactsAsync(ComputeContactsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createContactAsync(CreateContactRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteContactAsync(DeleteContactRequest $request, array $optionalArgs = []) + * @method PromiseInterface getContactAsync(GetContactRequest $request, array $optionalArgs = []) + * @method PromiseInterface listContactsAsync(ListContactsRequest $request, array $optionalArgs = []) + * @method PromiseInterface sendTestMessageAsync(SendTestMessageRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateContactAsync(UpdateContactRequest $request, array $optionalArgs = []) */ final class EssentialContactsServiceClient { diff --git a/Eventarc/src/V1/Client/EventarcClient.php b/Eventarc/src/V1/Client/EventarcClient.php index 75b327f6e27c..1909e54d0b5f 100644 --- a/Eventarc/src/V1/Client/EventarcClient.php +++ b/Eventarc/src/V1/Client/EventarcClient.php @@ -106,50 +106,50 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * - * @method PromiseInterface createChannelAsync(CreateChannelRequest $request, array $optionalArgs = []) - * @method PromiseInterface createChannelConnectionAsync(CreateChannelConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEnrollmentAsync(CreateEnrollmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createGoogleApiSourceAsync(CreateGoogleApiSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMessageBusAsync(CreateMessageBusRequest $request, array $optionalArgs = []) - * @method PromiseInterface createPipelineAsync(CreatePipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTriggerAsync(CreateTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteChannelAsync(DeleteChannelRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteChannelConnectionAsync(DeleteChannelConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEnrollmentAsync(DeleteEnrollmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGoogleApiSourceAsync(DeleteGoogleApiSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMessageBusAsync(DeleteMessageBusRequest $request, array $optionalArgs = []) - * @method PromiseInterface deletePipelineAsync(DeletePipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTriggerAsync(DeleteTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface getChannelAsync(GetChannelRequest $request, array $optionalArgs = []) - * @method PromiseInterface getChannelConnectionAsync(GetChannelConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEnrollmentAsync(GetEnrollmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGoogleApiSourceAsync(GetGoogleApiSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGoogleChannelConfigAsync(GetGoogleChannelConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMessageBusAsync(GetMessageBusRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPipelineAsync(GetPipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProviderAsync(GetProviderRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTriggerAsync(GetTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface listChannelConnectionsAsync(ListChannelConnectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listChannelsAsync(ListChannelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEnrollmentsAsync(ListEnrollmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGoogleApiSourcesAsync(ListGoogleApiSourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMessageBusEnrollmentsAsync(ListMessageBusEnrollmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMessageBusesAsync(ListMessageBusesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPipelinesAsync(ListPipelinesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProvidersAsync(ListProvidersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTriggersAsync(ListTriggersRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateChannelAsync(UpdateChannelRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEnrollmentAsync(UpdateEnrollmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGoogleApiSourceAsync(UpdateGoogleApiSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMessageBusAsync(UpdateMessageBusRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePipelineAsync(UpdatePipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTriggerAsync(UpdateTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface createChannelAsync(CreateChannelRequest $request, array $optionalArgs = []) + * @method PromiseInterface createChannelConnectionAsync(CreateChannelConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface createEnrollmentAsync(CreateEnrollmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface createGoogleApiSourceAsync(CreateGoogleApiSourceRequest $request, array $optionalArgs = []) + * @method PromiseInterface createMessageBusAsync(CreateMessageBusRequest $request, array $optionalArgs = []) + * @method PromiseInterface createPipelineAsync(CreatePipelineRequest $request, array $optionalArgs = []) + * @method PromiseInterface createTriggerAsync(CreateTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteChannelAsync(DeleteChannelRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteChannelConnectionAsync(DeleteChannelConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteEnrollmentAsync(DeleteEnrollmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteGoogleApiSourceAsync(DeleteGoogleApiSourceRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteMessageBusAsync(DeleteMessageBusRequest $request, array $optionalArgs = []) + * @method PromiseInterface deletePipelineAsync(DeletePipelineRequest $request, array $optionalArgs = []) + * @method PromiseInterface deleteTriggerAsync(DeleteTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface getChannelAsync(GetChannelRequest $request, array $optionalArgs = []) + * @method PromiseInterface getChannelConnectionAsync(GetChannelConnectionRequest $request, array $optionalArgs = []) + * @method PromiseInterface getEnrollmentAsync(GetEnrollmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface getGoogleApiSourceAsync(GetGoogleApiSourceRequest $request, array $optionalArgs = []) + * @method PromiseInterface getGoogleChannelConfigAsync(GetGoogleChannelConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface getMessageBusAsync(GetMessageBusRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPipelineAsync(GetPipelineRequest $request, array $optionalArgs = []) + * @method PromiseInterface getProviderAsync(GetProviderRequest $request, array $optionalArgs = []) + * @method PromiseInterface getTriggerAsync(GetTriggerRequest $request, array $optionalArgs = []) + * @method PromiseInterface listChannelConnectionsAsync(ListChannelConnectionsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listChannelsAsync(ListChannelsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listEnrollmentsAsync(ListEnrollmentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listGoogleApiSourcesAsync(ListGoogleApiSourcesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMessageBusEnrollmentsAsync(ListMessageBusEnrollmentsRequest $request, array $optionalArgs = []) + * @method PromiseInterface listMessageBusesAsync(ListMessageBusesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPipelinesAsync(ListPipelinesRequest $request, array $optionalArgs = []) + * @method PromiseInterface listProvidersAsync(ListProvidersRequest $request, array $optionalArgs = []) + * @method PromiseInterface listTriggersAsync(ListTriggersRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateChannelAsync(UpdateChannelRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateEnrollmentAsync(UpdateEnrollmentRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGoogleApiSourceAsync(UpdateGoogleApiSourceRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateMessageBusAsync(UpdateMessageBusRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePipelineAsync(UpdatePipelineRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateTriggerAsync(UpdateTriggerRequest $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 EventarcClient { diff --git a/EventarcPublishing/src/V1/Client/PublisherClient.php b/EventarcPublishing/src/V1/Client/PublisherClient.php index 5598ecb5fb68..08b94a2150dc 100644 --- a/EventarcPublishing/src/V1/Client/PublisherClient.php +++ b/EventarcPublishing/src/V1/Client/PublisherClient.php @@ -69,9 +69,9 @@ * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. * - * @method PromiseInterface publishAsync(PublishRequest $request, array $optionalArgs = []) - * @method PromiseInterface publishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface publishEventsAsync(PublishEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface publishAsync(PublishRequest $request, array $optionalArgs = []) + * @method PromiseInterface publishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest $request, array $optionalArgs = []) + * @method PromiseInterface publishEventsAsync(PublishEventsRequest $request, array $optionalArgs = []) */ final class PublisherClient { diff --git a/owl-bot-staging/AccessContextManager/type-protos/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/Type/DeviceResources.php b/owl-bot-staging/AccessContextManager/type-protos/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/Type/DeviceResources.php deleted file mode 100644 index f3c60c23833f4076a55638bbc0b0e05507b3cd19..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1322 zcmbtU%Wl&^6s1X@Q%X~#cEM^8m6}wovtZ{^z_H!bqOq;mp@1w!6KCR%vk_b~7LfwXz?Lk8~z2`hMOC~hH3JjAZjBt|-am)ytHc=4ZEDMsD;m>T0 zViaQ9WYZKkhxn2NxKD8rn#p-G0Ae)8S&9M-+fJ*485$yn{C1A(n=@Qry$9F#IPMVu zL4>jl>N$S5ga=;%Tozud%|Z~pF4`MJ@9J@y#3!H zN{s?RF4sW5Zw+Lz2Ky=4DJEsa0iC9z!!94rB$J+j9mCSPA05xMt$xpP9YZruOhd0d zx_j1h9J}lBvju4rtoN*0BsWx~4X}3oTiyS*0G91c?206TC$@VFnuqI#`_8kSen-_f z-czty8qQ5ix6fUUxdk>#google.identity.accesscontextmanager.type.DeviceEncryptionStatus - */ -class DeviceEncryptionStatus -{ - /** - * The encryption status of the device is not specified or not known. - * - * Generated from protobuf enum ENCRYPTION_UNSPECIFIED = 0; - */ - const ENCRYPTION_UNSPECIFIED = 0; - /** - * The device does not support encryption. - * - * Generated from protobuf enum ENCRYPTION_UNSUPPORTED = 1; - */ - const ENCRYPTION_UNSUPPORTED = 1; - /** - * The device supports encryption, but is currently unencrypted. - * - * Generated from protobuf enum UNENCRYPTED = 2; - */ - const UNENCRYPTED = 2; - /** - * The device is encrypted. - * - * Generated from protobuf enum ENCRYPTED = 3; - */ - const ENCRYPTED = 3; - - private static $valueToName = [ - self::ENCRYPTION_UNSPECIFIED => 'ENCRYPTION_UNSPECIFIED', - self::ENCRYPTION_UNSUPPORTED => 'ENCRYPTION_UNSUPPORTED', - self::UNENCRYPTED => 'UNENCRYPTED', - self::ENCRYPTED => 'ENCRYPTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/AccessContextManager/type-protos/proto/src/Google/Identity/AccessContextManager/Type/DeviceManagementLevel.php b/owl-bot-staging/AccessContextManager/type-protos/proto/src/Google/Identity/AccessContextManager/Type/DeviceManagementLevel.php deleted file mode 100644 index 857a8bf40b79..000000000000 --- a/owl-bot-staging/AccessContextManager/type-protos/proto/src/Google/Identity/AccessContextManager/Type/DeviceManagementLevel.php +++ /dev/null @@ -1,71 +0,0 @@ -google.identity.accesscontextmanager.type.DeviceManagementLevel - */ -class DeviceManagementLevel -{ - /** - * The device's management level is not specified or not known. - * - * Generated from protobuf enum MANAGEMENT_UNSPECIFIED = 0; - */ - const MANAGEMENT_UNSPECIFIED = 0; - /** - * The device is not managed. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * Basic management is enabled, which is generally limited to monitoring and - * wiping the corporate account. - * - * Generated from protobuf enum BASIC = 2; - */ - const BASIC = 2; - /** - * Complete device management. This includes more thorough monitoring and the - * ability to directly manage the device (such as remote wiping). This can be - * enabled through the Android Enterprise Platform. - * - * Generated from protobuf enum COMPLETE = 3; - */ - const COMPLETE = 3; - - private static $valueToName = [ - self::MANAGEMENT_UNSPECIFIED => 'MANAGEMENT_UNSPECIFIED', - self::NONE => 'NONE', - self::BASIC => 'BASIC', - self::COMPLETE => 'COMPLETE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AccessContextManager/type-protos/proto/src/Google/Identity/AccessContextManager/Type/OsType.php b/owl-bot-staging/AccessContextManager/type-protos/proto/src/Google/Identity/AccessContextManager/Type/OsType.php deleted file mode 100644 index b3b692b67709..000000000000 --- a/owl-bot-staging/AccessContextManager/type-protos/proto/src/Google/Identity/AccessContextManager/Type/OsType.php +++ /dev/null @@ -1,90 +0,0 @@ -google.identity.accesscontextmanager.type.OsType - */ -class OsType -{ - /** - * The operating system of the device is not specified or not known. - * - * Generated from protobuf enum OS_UNSPECIFIED = 0; - */ - const OS_UNSPECIFIED = 0; - /** - * A desktop Mac operating system. - * - * Generated from protobuf enum DESKTOP_MAC = 1; - */ - const DESKTOP_MAC = 1; - /** - * A desktop Windows operating system. - * - * Generated from protobuf enum DESKTOP_WINDOWS = 2; - */ - const DESKTOP_WINDOWS = 2; - /** - * A desktop Linux operating system. - * - * Generated from protobuf enum DESKTOP_LINUX = 3; - */ - const DESKTOP_LINUX = 3; - /** - * A desktop ChromeOS operating system. - * - * Generated from protobuf enum DESKTOP_CHROME_OS = 6; - */ - const DESKTOP_CHROME_OS = 6; - /** - * An Android operating system. - * - * Generated from protobuf enum ANDROID = 4; - */ - const ANDROID = 4; - /** - * An iOS operating system. - * - * Generated from protobuf enum IOS = 5; - */ - const IOS = 5; - - private static $valueToName = [ - self::OS_UNSPECIFIED => 'OS_UNSPECIFIED', - self::DESKTOP_MAC => 'DESKTOP_MAC', - self::DESKTOP_WINDOWS => 'DESKTOP_WINDOWS', - self::DESKTOP_LINUX => 'DESKTOP_LINUX', - self::DESKTOP_CHROME_OS => 'DESKTOP_CHROME_OS', - self::ANDROID => 'ANDROID', - self::IOS => 'IOS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/AccessContextManager.php b/owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/AccessContextManager.php deleted file mode 100644 index 14dce03a863beaea71c924ed6680cb0a240a8fdc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13363 zcmcIrO>i7X6=v2Zl-tHX?H|dT*dC8VSr*DJTI@I;MRrEgN|qy8!haO5rIyiZv>Lp- zGtA7|k%NnrsT3EdfXaarP=On#P!+0xLnsbZQ7$eda6oY2kORdnCn!$5>7UWePS2`$ zwa!KHcK7@F`n~V|Rfdc!K(t5z$pgN>qDt69EZb6SD*M$j}{ zX5I3N_s7}qRW?v%BL$)mp_bXSeAld5>fG|wq7|5{W?)w4i0sNdlU*?cvMYDSClIPN zOy5`O_%zkMNOhw(kqZC0?UjaIQ~kgU;LnS;U$t9yV4Ds5A$UKju9*$r0zv7yYwcDo zu$`6~E?8>StdVmnl^M=`(RBc=NtN5W90Ca7RptQzuVpqWGnQZTY&UScWtgh#bt{Nq z4}Tds$JB=6>@{_S+NkR(BPZ3sYg=*cs_I!m+iOh_yF&qwqW`N1kThJoVzgRLh=SAd zb$!dHEfHA@ryDlxac^s8ZL6_5Wv!d{ZO7|v=?#m8n6#1eW)q^J0)Lhr*z65?eQagV z%eDzj7O)G}eG4{T7VGW8ok<GjTz=`Y%`(?mU5yfT7D#X;O06)_&Z3`u z9nB1a{czCQ1K|Fcp~Gi5}M`6qjWe*K2OI4PjlSm{wP4U^5%8 z$ch08Vf0oZ{Al z%YI0b1|LFuT&T!ZAIjcv4upLcV}!_0fpgDl4etsSXm2YhFEYn>p=wz8Iy%76Bzppu zf?>Nx_LeRbsPb(ixe#-70}r7CEjTSyV|IkL?a{u0j?GzdP&POuvuJmCX6OWjnw30# zFq_kAIJVzqgdxs{X*G0w#%cgxip(1n2>(#f(AIX7auvniTu1C(B(XP+g$F$`)I^|U=;5!R!*mm? zge$6Rj@LAU;oT4q`%C9JT-z~af#{qiYqhr&G@N#i#q#Uu^KpGVlI1ngjiEkf2J$Zz zbTo=&GM9%~IT6SVUDPwW8L)+E)Gurw0BqBq6{SYP?16>F651EXpXEhg@Y9TW56q5d zbi(XTZ6TlT?IEmUo4u2)HqmfAs}m*;CLpvw0EOSM+y*>T#f%<&S}%9zPmWZA{x=Zs zL%ZPtuuf8bkM>RUywHtjkiOcx3VIz-M`hrONBlu1^C`;R5x8!T+ zPzp&#N&N#!dFg#{h4NCCD?;Uzp?0Xe&%?((bb``Umc@hI>c1)I6wCBZbC!do^TDQCA~! zeQ*y}$5IbgVb&|~Xp?%nA_L)r$LTKiF>tDAIO749^ZTSUzl)H_e)MwDN#Jf+`AWBi>#OIiOzaEh{iH>bLoLiv9H zru10@d~}-DfNu5=Iut5r(HBJeqV6AmMWBT<>G?L<_D{_mok4raIh#Hd;uqkVuzaVy zP@P@6v1r_?-oAcwxja2TJ71nT_!+z(A>(FsraU`;9saH0&!Jt@<%NT}(x)YKM5GV@ zMnO2tXFA9`ICx4rJ=2R>$mgebB!e=EmVf;5C-3HtV7&D*CNlC@3OW!yoswTS@D*vL z9V@xj{q=&h(M^MNc8Iwr@bjU$Z-%X&NlGl-=;G)j{CmJW{)Ea*?@x371ot@B%PT~2 zq}_gMTtNF`+q;3~B9C}7qzQo6l~Md(@FD)V%6yQIoAhG71KT+CoqiqKG_Xs$Vq@*C zh8FR1tfZ0sqQeF8w&|>=hCcz<H58=#$|Mr^(v#*Te;~5vYVQS($TI_ z`WFQq+)8f3K|X$s2ix|YtcXS$Sf;y&N9pd7UUNF%SW}950LiyM zN`3MhzASB0av^uAucm=^DZUqD%m-oUB^(F|Tcqz(j=E9LK21_LJZAIv{~gckEGWXP4AIOJ4(n8a%d={{fXzKfys~{iOUnf6uUL@~+C$e>v zMqzK+`dC5xZdyTfWg2S{ftXFWaaxEEa>tH#%%Ocd?IOvBaczw3BfpiHZX@Y_Okr3P zLL-3JvWdD6nf$C2R zV~#FZ1u2uj*t@eDJ-o;q%j??jR>gvcfE zW#w+ALZowHAh%d|7+guai(pjr;YxDIU6~Mh>aP4Ow|mZ*Ui?L_a(0eLLRrgfT|cxTV~&Ntur+4IeJ;bn+E!$%|_+>VHg z2NN7!5*%_CF^7405D$lhV~6=6^$6E7-tXhn{y9F_KR*8yTm_4{Lkv7(Y~+y^bx9D> zXwtGBhX~=YAR;d#-wx~%;jM8yJ-0kECZ4XsAQad>5uxo6e00`3A(8Fck!>C+MDsXB zG`n*U&5QO9LXKw(fs^;oBrtk~F#Lt_z@rWpksZOmhg4WJpb@n_`U_lj7Y}Vu5b(ck zJB$M-qAbADp&vM;`3NVN()MAa2iI8pMj}ij7XGg zEKiz`(y$Va4skQ#Xc)Ih?&65YWHvg+oJ27Xb`)<3aGn1$=Lpyhsrj6wc`~LKn)=W4 zdb{lBlaRnA$J8Miv@jON&hJT2E;QG)`)C>Z)g!f{di)So+_ZL~{A(q3xQ~_x zwxCXJ2_7q*C;Ec7)_c-Rb>#Q=v_rJw#3EvTZCSy5wJ^+{a?5a9sN!$})5?+x)K(N& zJp;?+(ev8Uz#$G{q@)hzcR3j0o34-MPOvnJ9a5pgOl-~SY9zToV=!|l5v^CrvlYsN z$#sgSZZUo7$#HevE2CxgtMN|(p{Z)18G;e&!q8%YfQ*$u{!Vt)cNLw!m$_;`Ar0sb zp!tK5l?^wQ@@nUFVZ14^DfC_jdzg;Q#$!~^1K)b9l~JjCy1#i(TS3MC^UXrz&jMP@ z?X@jbrJ*I_K|rD_#$P0tUelhT`)OY!aw_hX&escbPllCB&P4kJZE^B*OgV9_G)qc; z0R>-zrl_KofQ+DGRH?3N8>s9Pe?Yi^a+3ydz{yA@r7RB`I;zZ6srCRZ$qrOKR_T0@ zv6QW;%i-1dwS?AhP^u#>rDVaUgOI>u&I{$gstwV{w&$@cU`qmrPeNG^mi%PIf(VeJ z)U0;8S&+Avg`$u|KFG0tP*Box*-6)ILHRK!f_RZ;hdDxqTk~5!J zObQN+dVdtr7tpVZMIE<$n_aaVDJj&)^{nutX*wQ@-3$ZZS|c`hsI_36<(nB~e`aF~ z2RliB{P+0x;?hxf@8osS+&)r!ntq(_X?ns1>OkTodE)v-`|sS;obGh#Qg_qXgstvP t@$&@NFfw4nn1^f_7wy4{n)*++^RN4t$<{QpWc}}gr7V+O=o(!k^e=<+zrX+h diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/AccessPolicy.php b/owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/AccessPolicy.php deleted file mode 100644 index 7a7c7ce91ea9..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/AccessPolicy.php +++ /dev/null @@ -1,38 +0,0 @@ -internalAddGeneratedFile( - ' -É -;google/identity/accesscontextmanager/v1/access_policy.proto\'google.identity.accesscontextmanager.v1google/protobuf/timestamp.proto"’ - AccessPolicy -name (  -parent (  -title (  -scopes ( / - create_time ( 2.google.protobuf.Timestamp/ - update_time ( 2.google.protobuf.Timestamp -etag ( :UêAR -0accesscontextmanager.googleapis.com/AccessPolicyaccessPolicies/{access_policy}B¢ -+com.google.identity.accesscontextmanager.v1B PolicyProtoPZ\\cloud.google.com/go/accesscontextmanager/apiv1/accesscontextmanagerpb;accesscontextmanagerpb¢GACMª\'Google.Identity.AccessContextManager.V1Ê\'Google\\Identity\\AccessContextManager\\V1ê*Google::Identity::AccessContextManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/GcpUserAccessBinding.php b/owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/GcpUserAccessBinding.php deleted file mode 100644 index 518ba6dac94b..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/GcpUserAccessBinding.php +++ /dev/null @@ -1,35 +0,0 @@ -internalAddGeneratedFile( - ' -ì -Egoogle/identity/accesscontextmanager/v1/gcp_user_access_binding.proto\'google.identity.accesscontextmanager.v1google/api/resource.proto"£ -GcpUserAccessBinding -name ( BàA - group_key ( BàAàAN - access_levels ( B7àAúA1 -/accesscontextmanager.googleapis.com/AccessLevel:ŒêAˆ -8accesscontextmanager.googleapis.com/GcpUserAccessBindingLorganizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}B° -+com.google.identity.accesscontextmanager.v1BGcpUserAccessBindingProtoPZ\\cloud.google.com/go/accesscontextmanager/apiv1/accesscontextmanagerpb;accesscontextmanagerpb¢GACMª\'Google.Identity.AccessContextManager.V1Ê\'Google\\Identity\\AccessContextManager\\V1ê*Google::Identity::AccessContextManager::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/ServicePerimeter.php b/owl-bot-staging/AccessContextManager/v1/proto/src/GPBMetadata/Google/Identity/Accesscontextmanager/V1/ServicePerimeter.php deleted file mode 100644 index 2389c454cc0db4a1c8b04da4c9be61da94d9f96b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3802 zcmb_fO;aO97~TNO!W&@Ytn7wZmb183uzpMm^fW7CAVYR^11Shpt&Wbvq!YTF%uG#B z5L_v}c(ttZ=*^?$)jwf*@lSZzU$Jj@&kRY3wU&Vk(9`{XJh4}sHL7OwJ|1O3FLH^lc7mYe zkuq%&Kc?|{*>PRMm>c*pIg7iF?{r91K3yv_5}i_)*dd8%m&9mN_yX{qE@7eL61CRY zs*~7hIk98agjvf>%vzNZX04;OM*yzpFs2?z^NrLxJOdSf!rrk*U6sX7jK3aGW>cTW z)bZ#ynDmC)c05MV$kn~=p6|vq@Kt_b&v(h{Lsi=3dmn@W7HLCG<81J{Va+TP^NxJS zv#Nx-5e?%YYT#B~?~pjFHeXqNn7HNUXj@&CG3xr2AUD)F>XCl$sv42F7x|Aw+}yxL z_LnuHij|OB`y@e3zf9=z{HRk|PE7<1qw9wH$g`pr?|w*=%qy){mgo+0XEh6r2f6}3 z6=8Es(kRx7w4kN5(?-!wJ6$Wik+>3MLx9S0nvCS%^3OM+Fiak04yHIQi#av7I;+gX zO{BI*iWB1BJCJWB;37YYlVY(9c{d{1N;Y>;oWjNYdPz&dOucJaDHS}>3z6!{ftxQq zV8cSzJ9c~?lHxR;Sy->7PF_|EZ8%LW>y{>(Q}$q*bFjyXw?r_T|J(3(;J0ZUy_Equ(PkD28im>W zqjvbDvR}BNEWzT?x2=7%S~Chc{k!LtZ{husoRWw-A!QnhV|loyN>!d}1UyK>%FpEg zcE}gbFH#-M!o(eHSQ;;u|F{izhfOC{eFbKtq?Z{IbP@@=2=j>-kDL;ZAyN7AYj6j5 z#u0T<;qAl=LvHeqr*Q8ybZvQ#9(&|+0|>kh$An)y3f+oOZEihDhAAB=P``t5FBk(*q2TY~7QFNVAGgn?4C@oM6DUZth`aP8X_H^y9k)J%36u<&PmnnfZwBQq z%=ObX%S(Zol-XHUGbl>pROz1_u~A&9Ly$(HUs5LfFOl3&2(&k1N;~e6v@KBa~WnyH#smzleTSR z^#x}6^-sp7N-{mOdap zgW1GEhWg{{G2aZ9eVFU-E#-AsGONaJ(`-JK&w<0;gNCtf?wCdup9BSz&fTYWx}}gq z@htF_!vlOjRJOPG4tJY{3FRK#;j6fKWNsVThsmwqC*W;-7W~)vw-$#ldGY9OX%%s0<6DEz zZ*@7pX-8{+W?QYxp)8ro1~*$cmOY<%OWM`-)Ud9PvaIVzYsb^#dHmi=HYmI!C!W3m Q>0gHP06F#rGn diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessContextManagerOperationMetadata.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessContextManagerOperationMetadata.php deleted file mode 100644 index a561fe442aeb..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessContextManagerOperationMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.identity.accesscontextmanager.v1.AccessContextManagerOperationMetadata - */ -class AccessContextManagerOperationMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessLevel.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessLevel.php deleted file mode 100644 index d90a7a178281..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessLevel.php +++ /dev/null @@ -1,312 +0,0 @@ -google.identity.accesscontextmanager.v1.AccessLevel - */ -class AccessLevel extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the Access Level. The `short_name` component - * must begin with a letter and only include alphanumeric and '_'. Format: - * `accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum - * length of the `access_level` component is 50 characters. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Human readable title. Must be unique within the Policy. - * - * Generated from protobuf field string title = 2; - */ - protected $title = ''; - /** - * Description of the `AccessLevel` and its use. Does not affect behavior. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. Time the `AccessLevel` was created in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - */ - protected $create_time = null; - /** - * Output only. Time the `AccessLevel` was updated in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7; - */ - protected $update_time = null; - protected $level; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the Access Level. The `short_name` component - * must begin with a letter and only include alphanumeric and '_'. Format: - * `accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum - * length of the `access_level` component is 50 characters. - * @type string $title - * Human readable title. Must be unique within the Policy. - * @type string $description - * Description of the `AccessLevel` and its use. Does not affect behavior. - * @type \Google\Identity\AccessContextManager\V1\BasicLevel $basic - * A `BasicLevel` composed of `Conditions`. - * @type \Google\Identity\AccessContextManager\V1\CustomLevel $custom - * A `CustomLevel` written in the Common Expression Language. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the `AccessLevel` was created in UTC. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time the `AccessLevel` was updated in UTC. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessLevel::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the Access Level. The `short_name` component - * must begin with a letter and only include alphanumeric and '_'. Format: - * `accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum - * length of the `access_level` component is 50 characters. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name for the Access Level. The `short_name` component - * must begin with a letter and only include alphanumeric and '_'. Format: - * `accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum - * length of the `access_level` component is 50 characters. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Human readable title. Must be unique within the Policy. - * - * Generated from protobuf field string title = 2; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Human readable title. Must be unique within the Policy. - * - * Generated from protobuf field string title = 2; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * Description of the `AccessLevel` and its use. Does not affect behavior. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the `AccessLevel` and its use. Does not affect behavior. - * - * 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; - } - - /** - * A `BasicLevel` composed of `Conditions`. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.BasicLevel basic = 4; - * @return \Google\Identity\AccessContextManager\V1\BasicLevel|null - */ - public function getBasic() - { - return $this->readOneof(4); - } - - public function hasBasic() - { - return $this->hasOneof(4); - } - - /** - * A `BasicLevel` composed of `Conditions`. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.BasicLevel basic = 4; - * @param \Google\Identity\AccessContextManager\V1\BasicLevel $var - * @return $this - */ - public function setBasic($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\BasicLevel::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A `CustomLevel` written in the Common Expression Language. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.CustomLevel custom = 5; - * @return \Google\Identity\AccessContextManager\V1\CustomLevel|null - */ - public function getCustom() - { - return $this->readOneof(5); - } - - public function hasCustom() - { - return $this->hasOneof(5); - } - - /** - * A `CustomLevel` written in the Common Expression Language. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.CustomLevel custom = 5; - * @param \Google\Identity\AccessContextManager\V1\CustomLevel $var - * @return $this - */ - public function setCustom($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\CustomLevel::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Output only. Time the `AccessLevel` was created in UTC. - * - * 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); - } - - /** - * Output only. Time the `AccessLevel` was created in UTC. - * - * 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; - } - - /** - * Output only. Time the `AccessLevel` was updated in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7; - * @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 the `AccessLevel` was updated in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * @return string - */ - public function getLevel() - { - return $this->whichOneof("level"); - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessPolicy.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessPolicy.php deleted file mode 100644 index de651fb39ffc..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/AccessPolicy.php +++ /dev/null @@ -1,371 +0,0 @@ -google.identity.accesscontextmanager.v1.AccessPolicy - */ -class AccessPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Resource name of the `AccessPolicy`. Format: - * `accessPolicies/{access_policy}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The parent of this `AccessPolicy` in the Cloud Resource - * Hierarchy. Currently immutable once created. Format: - * `organizations/{organization_id}` - * - * Generated from protobuf field string parent = 2; - */ - protected $parent = ''; - /** - * Required. Human readable title. Does not affect behavior. - * - * Generated from protobuf field string title = 3; - */ - protected $title = ''; - /** - * The scopes of a policy define which resources an ACM policy can restrict, - * and where ACM resources can be referenced. - * For example, a policy with scopes=["folders/123"] has the following - * behavior: - * - vpcsc perimeters can only restrict projects within folders/123 - * - access levels can only be referenced by resources within folders/123. - * If empty, there are no limitations on which resources can be restricted by - * an ACM policy, and there are no limitations on where ACM resources can be - * referenced. - * Only one policy can include a given scope (attempting to create a second - * policy which includes "folders/123" will result in an error). - * Currently, scopes cannot be modified after a policy is created. - * Currently, policies can only have a single scope. - * Format: list of `folders/{folder_number}` or `projects/{project_number}` - * - * Generated from protobuf field repeated string scopes = 7; - */ - private $scopes; - /** - * Output only. Time the `AccessPolicy` was created in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; - */ - protected $create_time = null; - /** - * Output only. Time the `AccessPolicy` was updated in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - */ - protected $update_time = null; - /** - * Output only. An opaque identifier for the current version of the - * `AccessPolicy`. This will always be a strongly validated etag, meaning that - * two Access Polices will be identical if and only if their etags are - * identical. Clients should not expect this to be in any specific format. - * - * Generated from protobuf field string etag = 6; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Resource name of the `AccessPolicy`. Format: - * `accessPolicies/{access_policy}` - * @type string $parent - * Required. The parent of this `AccessPolicy` in the Cloud Resource - * Hierarchy. Currently immutable once created. Format: - * `organizations/{organization_id}` - * @type string $title - * Required. Human readable title. Does not affect behavior. - * @type array|\Google\Protobuf\Internal\RepeatedField $scopes - * The scopes of a policy define which resources an ACM policy can restrict, - * and where ACM resources can be referenced. - * For example, a policy with scopes=["folders/123"] has the following - * behavior: - * - vpcsc perimeters can only restrict projects within folders/123 - * - access levels can only be referenced by resources within folders/123. - * If empty, there are no limitations on which resources can be restricted by - * an ACM policy, and there are no limitations on where ACM resources can be - * referenced. - * Only one policy can include a given scope (attempting to create a second - * policy which includes "folders/123" will result in an error). - * Currently, scopes cannot be modified after a policy is created. - * Currently, policies can only have a single scope. - * Format: list of `folders/{folder_number}` or `projects/{project_number}` - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the `AccessPolicy` was created in UTC. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time the `AccessPolicy` was updated in UTC. - * @type string $etag - * Output only. An opaque identifier for the current version of the - * `AccessPolicy`. This will always be a strongly validated etag, meaning that - * two Access Polices will be identical if and only if their etags are - * identical. Clients should not expect this to be in any specific format. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessPolicy::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Resource name of the `AccessPolicy`. Format: - * `accessPolicies/{access_policy}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Resource name of the `AccessPolicy`. Format: - * `accessPolicies/{access_policy}` - * - * 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 parent of this `AccessPolicy` in the Cloud Resource - * Hierarchy. Currently immutable once created. Format: - * `organizations/{organization_id}` - * - * Generated from protobuf field string parent = 2; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent of this `AccessPolicy` in the Cloud Resource - * Hierarchy. Currently immutable once created. Format: - * `organizations/{organization_id}` - * - * Generated from protobuf field string parent = 2; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Human readable title. Does not affect behavior. - * - * Generated from protobuf field string title = 3; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Required. Human readable title. Does not affect behavior. - * - * Generated from protobuf field string title = 3; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The scopes of a policy define which resources an ACM policy can restrict, - * and where ACM resources can be referenced. - * For example, a policy with scopes=["folders/123"] has the following - * behavior: - * - vpcsc perimeters can only restrict projects within folders/123 - * - access levels can only be referenced by resources within folders/123. - * If empty, there are no limitations on which resources can be restricted by - * an ACM policy, and there are no limitations on where ACM resources can be - * referenced. - * Only one policy can include a given scope (attempting to create a second - * policy which includes "folders/123" will result in an error). - * Currently, scopes cannot be modified after a policy is created. - * Currently, policies can only have a single scope. - * Format: list of `folders/{folder_number}` or `projects/{project_number}` - * - * Generated from protobuf field repeated string scopes = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getScopes() - { - return $this->scopes; - } - - /** - * The scopes of a policy define which resources an ACM policy can restrict, - * and where ACM resources can be referenced. - * For example, a policy with scopes=["folders/123"] has the following - * behavior: - * - vpcsc perimeters can only restrict projects within folders/123 - * - access levels can only be referenced by resources within folders/123. - * If empty, there are no limitations on which resources can be restricted by - * an ACM policy, and there are no limitations on where ACM resources can be - * referenced. - * Only one policy can include a given scope (attempting to create a second - * policy which includes "folders/123" will result in an error). - * Currently, scopes cannot be modified after a policy is created. - * Currently, policies can only have a single scope. - * Format: list of `folders/{folder_number}` or `projects/{project_number}` - * - * Generated from protobuf field repeated string scopes = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->scopes = $arr; - - return $this; - } - - /** - * Output only. Time the `AccessPolicy` was created in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; - * @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 `AccessPolicy` was created in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; - * @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 the `AccessPolicy` was updated in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - * @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 the `AccessPolicy` was updated in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - * @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. An opaque identifier for the current version of the - * `AccessPolicy`. This will always be a strongly validated etag, meaning that - * two Access Polices will be identical if and only if their etags are - * identical. Clients should not expect this to be in any specific format. - * - * Generated from protobuf field string etag = 6; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. An opaque identifier for the current version of the - * `AccessPolicy`. This will always be a strongly validated etag, meaning that - * two Access Polices will be identical if and only if their etags are - * identical. Clients should not expect this to be in any specific format. - * - * Generated from protobuf field string etag = 6; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/BasicLevel.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/BasicLevel.php deleted file mode 100644 index 2a6c96834c4c..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/BasicLevel.php +++ /dev/null @@ -1,117 +0,0 @@ -google.identity.accesscontextmanager.v1.BasicLevel - */ -class BasicLevel extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A list of requirements for the `AccessLevel` to be granted. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.Condition conditions = 1; - */ - private $conditions; - /** - * How the `conditions` list should be combined to determine if a request is - * granted this `AccessLevel`. If AND is used, each `Condition` in - * `conditions` must be satisfied for the `AccessLevel` to be applied. If OR - * is used, at least one `Condition` in `conditions` must be satisfied for the - * `AccessLevel` to be applied. Default behavior is AND. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.BasicLevel.ConditionCombiningFunction combining_function = 2; - */ - protected $combining_function = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Identity\AccessContextManager\V1\Condition>|\Google\Protobuf\Internal\RepeatedField $conditions - * Required. A list of requirements for the `AccessLevel` to be granted. - * @type int $combining_function - * How the `conditions` list should be combined to determine if a request is - * granted this `AccessLevel`. If AND is used, each `Condition` in - * `conditions` must be satisfied for the `AccessLevel` to be applied. If OR - * is used, at least one `Condition` in `conditions` must be satisfied for the - * `AccessLevel` to be applied. Default behavior is AND. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessLevel::initOnce(); - parent::__construct($data); - } - - /** - * Required. A list of requirements for the `AccessLevel` to be granted. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.Condition conditions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Required. A list of requirements for the `AccessLevel` to be granted. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.Condition conditions = 1; - * @param array<\Google\Identity\AccessContextManager\V1\Condition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\Condition::class); - $this->conditions = $arr; - - return $this; - } - - /** - * How the `conditions` list should be combined to determine if a request is - * granted this `AccessLevel`. If AND is used, each `Condition` in - * `conditions` must be satisfied for the `AccessLevel` to be applied. If OR - * is used, at least one `Condition` in `conditions` must be satisfied for the - * `AccessLevel` to be applied. Default behavior is AND. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.BasicLevel.ConditionCombiningFunction combining_function = 2; - * @return int - */ - public function getCombiningFunction() - { - return $this->combining_function; - } - - /** - * How the `conditions` list should be combined to determine if a request is - * granted this `AccessLevel`. If AND is used, each `Condition` in - * `conditions` must be satisfied for the `AccessLevel` to be applied. If OR - * is used, at least one `Condition` in `conditions` must be satisfied for the - * `AccessLevel` to be applied. Default behavior is AND. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.BasicLevel.ConditionCombiningFunction combining_function = 2; - * @param int $var - * @return $this - */ - public function setCombiningFunction($var) - { - GPBUtil::checkEnum($var, \Google\Identity\AccessContextManager\V1\BasicLevel\ConditionCombiningFunction::class); - $this->combining_function = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/BasicLevel/ConditionCombiningFunction.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/BasicLevel/ConditionCombiningFunction.php deleted file mode 100644 index f34712be7256..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/BasicLevel/ConditionCombiningFunction.php +++ /dev/null @@ -1,62 +0,0 @@ -google.identity.accesscontextmanager.v1.BasicLevel.ConditionCombiningFunction - */ -class ConditionCombiningFunction -{ - /** - * All `Conditions` must be true for the `BasicLevel` to be true. - * - * Generated from protobuf enum AND = 0; - */ - const PBAND = 0; - /** - * If at least one `Condition` is true, then the `BasicLevel` is true. - * - * Generated from protobuf enum OR = 1; - */ - const PBOR = 1; - - private static $valueToName = [ - self::PBAND => 'AND', - self::PBOR => 'OR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has 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(ConditionCombiningFunction::class, \Google\Identity\AccessContextManager\V1\BasicLevel_ConditionCombiningFunction::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CommitServicePerimetersRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CommitServicePerimetersRequest.php deleted file mode 100644 index d77ac85f11c4..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CommitServicePerimetersRequest.php +++ /dev/null @@ -1,147 +0,0 @@ -google.identity.accesscontextmanager.v1.CommitServicePerimetersRequest - */ -class CommitServicePerimetersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the parent [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] which owns all - * [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] in scope for - * the commit operation. - * Format: `accessPolicies/{policy_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * commit operation is to be performed on. If, at the time of commit, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the commit operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * - * Generated from protobuf field string etag = 2; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name for the parent [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] which owns all - * [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] in scope for - * the commit operation. - * Format: `accessPolicies/{policy_id}` - * @type string $etag - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * commit operation is to be performed on. If, at the time of commit, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the commit operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the parent [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] which owns all - * [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] in scope for - * the commit operation. - * Format: `accessPolicies/{policy_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. Resource name for the parent [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] which owns all - * [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] in scope for - * the commit operation. - * Format: `accessPolicies/{policy_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * commit operation is to be performed on. If, at the time of commit, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the commit operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * - * Generated from protobuf field string etag = 2; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * commit operation is to be performed on. If, at the time of commit, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the commit operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * - * Generated from protobuf field string etag = 2; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CommitServicePerimetersResponse.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CommitServicePerimetersResponse.php deleted file mode 100644 index 2b30280601f8..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CommitServicePerimetersResponse.php +++ /dev/null @@ -1,80 +0,0 @@ -google.identity.accesscontextmanager.v1.CommitServicePerimetersResponse - */ -class CommitServicePerimetersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of all the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances in - * the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - */ - private $service_perimeters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Identity\AccessContextManager\V1\ServicePerimeter>|\Google\Protobuf\Internal\RepeatedField $service_perimeters - * List of all the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances in - * the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * List of all the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances in - * the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServicePerimeters() - { - return $this->service_perimeters; - } - - /** - * List of all the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances in - * the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - * @param array<\Google\Identity\AccessContextManager\V1\ServicePerimeter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServicePerimeters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\ServicePerimeter::class); - $this->service_perimeters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/Condition.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/Condition.php deleted file mode 100644 index 0c86f249736b..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/Condition.php +++ /dev/null @@ -1,331 +0,0 @@ -google.identity.accesscontextmanager.v1.Condition - */ -class Condition extends \Google\Protobuf\Internal\Message -{ - /** - * CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for - * a CIDR IP address block, the specified IP address portion must be properly - * truncated (i.e. all the host bits must be zero) or the input is considered - * malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is - * not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas - * "2001:db8::1/32" is not. The originating IP of a request must be in one of - * the listed subnets in order for this Condition to be true. If empty, all IP - * addresses are allowed. - * - * Generated from protobuf field repeated string ip_subnetworks = 1; - */ - private $ip_subnetworks; - /** - * Device specific restrictions, all restrictions must hold for the - * Condition to be true. If not specified, all devices are allowed. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.DevicePolicy device_policy = 2; - */ - protected $device_policy = null; - /** - * A list of other access levels defined in the same `Policy`, referenced by - * resource name. Referencing an `AccessLevel` which does not exist is an - * error. All access levels listed must be granted for the Condition - * to be true. Example: - * "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"` - * - * Generated from protobuf field repeated string required_access_levels = 3; - */ - private $required_access_levels; - /** - * Whether to negate the Condition. If true, the Condition becomes a NAND over - * its non-empty fields, each field must be false for the Condition overall to - * be satisfied. Defaults to false. - * - * Generated from protobuf field bool negate = 5; - */ - protected $negate = false; - /** - * The request must be made by one of the provided user or service - * accounts. Groups are not supported. - * Syntax: - * `user:{emailid}` - * `serviceAccount:{emailid}` - * If not specified, a request may come from any user. - * - * Generated from protobuf field repeated string members = 6; - */ - private $members; - /** - * The request must originate from one of the provided countries/regions. - * Must be valid ISO 3166-1 alpha-2 codes. - * - * Generated from protobuf field repeated string regions = 7; - */ - private $regions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $ip_subnetworks - * CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for - * a CIDR IP address block, the specified IP address portion must be properly - * truncated (i.e. all the host bits must be zero) or the input is considered - * malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is - * not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas - * "2001:db8::1/32" is not. The originating IP of a request must be in one of - * the listed subnets in order for this Condition to be true. If empty, all IP - * addresses are allowed. - * @type \Google\Identity\AccessContextManager\V1\DevicePolicy $device_policy - * Device specific restrictions, all restrictions must hold for the - * Condition to be true. If not specified, all devices are allowed. - * @type array|\Google\Protobuf\Internal\RepeatedField $required_access_levels - * A list of other access levels defined in the same `Policy`, referenced by - * resource name. Referencing an `AccessLevel` which does not exist is an - * error. All access levels listed must be granted for the Condition - * to be true. Example: - * "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"` - * @type bool $negate - * Whether to negate the Condition. If true, the Condition becomes a NAND over - * its non-empty fields, each field must be false for the Condition overall to - * be satisfied. Defaults to false. - * @type array|\Google\Protobuf\Internal\RepeatedField $members - * The request must be made by one of the provided user or service - * accounts. Groups are not supported. - * Syntax: - * `user:{emailid}` - * `serviceAccount:{emailid}` - * If not specified, a request may come from any user. - * @type array|\Google\Protobuf\Internal\RepeatedField $regions - * The request must originate from one of the provided countries/regions. - * Must be valid ISO 3166-1 alpha-2 codes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessLevel::initOnce(); - parent::__construct($data); - } - - /** - * CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for - * a CIDR IP address block, the specified IP address portion must be properly - * truncated (i.e. all the host bits must be zero) or the input is considered - * malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is - * not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas - * "2001:db8::1/32" is not. The originating IP of a request must be in one of - * the listed subnets in order for this Condition to be true. If empty, all IP - * addresses are allowed. - * - * Generated from protobuf field repeated string ip_subnetworks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIpSubnetworks() - { - return $this->ip_subnetworks; - } - - /** - * CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that for - * a CIDR IP address block, the specified IP address portion must be properly - * truncated (i.e. all the host bits must be zero) or the input is considered - * malformed. For example, "192.0.2.0/24" is accepted but "192.0.2.1/24" is - * not. Similarly, for IPv6, "2001:db8::/32" is accepted whereas - * "2001:db8::1/32" is not. The originating IP of a request must be in one of - * the listed subnets in order for this Condition to be true. If empty, all IP - * addresses are allowed. - * - * Generated from protobuf field repeated string ip_subnetworks = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIpSubnetworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ip_subnetworks = $arr; - - return $this; - } - - /** - * Device specific restrictions, all restrictions must hold for the - * Condition to be true. If not specified, all devices are allowed. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.DevicePolicy device_policy = 2; - * @return \Google\Identity\AccessContextManager\V1\DevicePolicy|null - */ - public function getDevicePolicy() - { - return $this->device_policy; - } - - public function hasDevicePolicy() - { - return isset($this->device_policy); - } - - public function clearDevicePolicy() - { - unset($this->device_policy); - } - - /** - * Device specific restrictions, all restrictions must hold for the - * Condition to be true. If not specified, all devices are allowed. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.DevicePolicy device_policy = 2; - * @param \Google\Identity\AccessContextManager\V1\DevicePolicy $var - * @return $this - */ - public function setDevicePolicy($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\DevicePolicy::class); - $this->device_policy = $var; - - return $this; - } - - /** - * A list of other access levels defined in the same `Policy`, referenced by - * resource name. Referencing an `AccessLevel` which does not exist is an - * error. All access levels listed must be granted for the Condition - * to be true. Example: - * "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"` - * - * Generated from protobuf field repeated string required_access_levels = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredAccessLevels() - { - return $this->required_access_levels; - } - - /** - * A list of other access levels defined in the same `Policy`, referenced by - * resource name. Referencing an `AccessLevel` which does not exist is an - * error. All access levels listed must be granted for the Condition - * to be true. Example: - * "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"` - * - * Generated from protobuf field repeated string required_access_levels = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredAccessLevels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->required_access_levels = $arr; - - return $this; - } - - /** - * Whether to negate the Condition. If true, the Condition becomes a NAND over - * its non-empty fields, each field must be false for the Condition overall to - * be satisfied. Defaults to false. - * - * Generated from protobuf field bool negate = 5; - * @return bool - */ - public function getNegate() - { - return $this->negate; - } - - /** - * Whether to negate the Condition. If true, the Condition becomes a NAND over - * its non-empty fields, each field must be false for the Condition overall to - * be satisfied. Defaults to false. - * - * Generated from protobuf field bool negate = 5; - * @param bool $var - * @return $this - */ - public function setNegate($var) - { - GPBUtil::checkBool($var); - $this->negate = $var; - - return $this; - } - - /** - * The request must be made by one of the provided user or service - * accounts. Groups are not supported. - * Syntax: - * `user:{emailid}` - * `serviceAccount:{emailid}` - * If not specified, a request may come from any user. - * - * Generated from protobuf field repeated string members = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMembers() - { - return $this->members; - } - - /** - * The request must be made by one of the provided user or service - * accounts. Groups are not supported. - * Syntax: - * `user:{emailid}` - * `serviceAccount:{emailid}` - * If not specified, a request may come from any user. - * - * Generated from protobuf field repeated string members = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMembers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->members = $arr; - - return $this; - } - - /** - * The request must originate from one of the provided countries/regions. - * Must be valid ISO 3166-1 alpha-2 codes. - * - * Generated from protobuf field repeated string regions = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRegions() - { - return $this->regions; - } - - /** - * The request must originate from one of the provided countries/regions. - * Must be valid ISO 3166-1 alpha-2 codes. - * - * Generated from protobuf field repeated string regions = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRegions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->regions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateAccessLevelRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateAccessLevelRequest.php deleted file mode 100644 index 9cdcada50442..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateAccessLevelRequest.php +++ /dev/null @@ -1,158 +0,0 @@ -google.identity.accesscontextmanager.v1.CreateAccessLevelRequest - */ -class CreateAccessLevelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the access policy which owns this [Access - * Level] [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: `accessPolicies/{policy_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] to create. - * Syntactic correctness of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] is a - * precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $access_level = null; - - /** - * @param string $parent Required. Resource name for the access policy which owns this [Access - * Level] [google.identity.accesscontextmanager.v1.AccessLevel]. - * - * Format: `accessPolicies/{policy_id}` - * Please see {@see AccessContextManagerClient::accessPolicyName()} for help formatting this field. - * @param \Google\Identity\AccessContextManager\V1\AccessLevel $accessLevel Required. The [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] to create. - * Syntactic correctness of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] is a - * precondition for creation. - * - * @return \Google\Identity\AccessContextManager\V1\CreateAccessLevelRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Identity\AccessContextManager\V1\AccessLevel $accessLevel): self - { - return (new self()) - ->setParent($parent) - ->setAccessLevel($accessLevel); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name for the access policy which owns this [Access - * Level] [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: `accessPolicies/{policy_id}` - * @type \Google\Identity\AccessContextManager\V1\AccessLevel $access_level - * Required. The [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] to create. - * Syntactic correctness of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] is a - * precondition for creation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the access policy which owns this [Access - * Level] [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: `accessPolicies/{policy_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. Resource name for the access policy which owns this [Access - * Level] [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: `accessPolicies/{policy_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 [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] to create. - * Syntactic correctness of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] is a - * precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Identity\AccessContextManager\V1\AccessLevel|null - */ - public function getAccessLevel() - { - return $this->access_level; - } - - public function hasAccessLevel() - { - return isset($this->access_level); - } - - public function clearAccessLevel() - { - unset($this->access_level); - } - - /** - * Required. The [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] to create. - * Syntactic correctness of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] is a - * precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessLevel access_level = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Identity\AccessContextManager\V1\AccessLevel $var - * @return $this - */ - public function setAccessLevel($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\AccessLevel::class); - $this->access_level = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateGcpUserAccessBindingRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateGcpUserAccessBindingRequest.php deleted file mode 100644 index cbd57c92a3f7..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateGcpUserAccessBindingRequest.php +++ /dev/null @@ -1,133 +0,0 @@ -google.identity.accesscontextmanager.v1.CreateGcpUserAccessBindingRequest - */ -class CreateGcpUserAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example: "organizations/256" - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $gcp_user_access_binding = null; - - /** - * @param string $parent Required. Example: "organizations/256" - * Please see {@see AccessContextManagerClient::organizationName()} for help formatting this field. - * @param \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding $gcpUserAccessBinding Required. [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * - * @return \Google\Identity\AccessContextManager\V1\CreateGcpUserAccessBindingRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding $gcpUserAccessBinding): self - { - return (new self()) - ->setParent($parent) - ->setGcpUserAccessBinding($gcpUserAccessBinding); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example: "organizations/256" - * @type \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding $gcp_user_access_binding - * Required. [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example: "organizations/256" - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example: "organizations/256" - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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. [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding|null - */ - public function getGcpUserAccessBinding() - { - return $this->gcp_user_access_binding; - } - - public function hasGcpUserAccessBinding() - { - return isset($this->gcp_user_access_binding); - } - - public function clearGcpUserAccessBinding() - { - unset($this->gcp_user_access_binding); - } - - /** - * Required. [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding $var - * @return $this - */ - public function setGcpUserAccessBinding($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding::class); - $this->gcp_user_access_binding = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateServicePerimeterRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateServicePerimeterRequest.php deleted file mode 100644 index 7a582b534388..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CreateServicePerimeterRequest.php +++ /dev/null @@ -1,158 +0,0 @@ -google.identity.accesscontextmanager.v1.CreateServicePerimeterRequest - */ -class CreateServicePerimeterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the access policy which owns this [Service - * Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: `accessPolicies/{policy_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. - * Syntactic correctness of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] is a - * precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_perimeter = null; - - /** - * @param string $parent Required. Resource name for the access policy which owns this [Service - * Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * - * Format: `accessPolicies/{policy_id}` - * Please see {@see AccessContextManagerClient::accessPolicyName()} for help formatting this field. - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeter $servicePerimeter Required. The [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. - * Syntactic correctness of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] is a - * precondition for creation. - * - * @return \Google\Identity\AccessContextManager\V1\CreateServicePerimeterRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Identity\AccessContextManager\V1\ServicePerimeter $servicePerimeter): self - { - return (new self()) - ->setParent($parent) - ->setServicePerimeter($servicePerimeter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name for the access policy which owns this [Service - * Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: `accessPolicies/{policy_id}` - * @type \Google\Identity\AccessContextManager\V1\ServicePerimeter $service_perimeter - * Required. The [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. - * Syntactic correctness of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] is a - * precondition for creation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the access policy which owns this [Service - * Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: `accessPolicies/{policy_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. Resource name for the access policy which owns this [Service - * Perimeter] [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: `accessPolicies/{policy_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 [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. - * Syntactic correctness of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] is a - * precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Identity\AccessContextManager\V1\ServicePerimeter|null - */ - public function getServicePerimeter() - { - return $this->service_perimeter; - } - - public function hasServicePerimeter() - { - return isset($this->service_perimeter); - } - - public function clearServicePerimeter() - { - unset($this->service_perimeter); - } - - /** - * Required. The [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to create. - * Syntactic correctness of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] is a - * precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeter $var - * @return $this - */ - public function setServicePerimeter($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\ServicePerimeter::class); - $this->service_perimeter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CustomLevel.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CustomLevel.php deleted file mode 100644 index 772ba3b52993..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/CustomLevel.php +++ /dev/null @@ -1,79 +0,0 @@ -google.identity.accesscontextmanager.v1.CustomLevel - */ -class CustomLevel extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A Cloud CEL expression evaluating to a boolean. - * - * Generated from protobuf field .google.type.Expr expr = 1; - */ - protected $expr = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Expr $expr - * Required. A Cloud CEL expression evaluating to a boolean. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessLevel::initOnce(); - parent::__construct($data); - } - - /** - * Required. A Cloud CEL expression evaluating to a boolean. - * - * Generated from protobuf field .google.type.Expr expr = 1; - * @return \Google\Type\Expr|null - */ - public function getExpr() - { - return $this->expr; - } - - public function hasExpr() - { - return isset($this->expr); - } - - public function clearExpr() - { - unset($this->expr); - } - - /** - * Required. A Cloud CEL expression evaluating to a boolean. - * - * Generated from protobuf field .google.type.Expr expr = 1; - * @param \Google\Type\Expr $var - * @return $this - */ - public function setExpr($var) - { - GPBUtil::checkMessage($var, \Google\Type\Expr::class); - $this->expr = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteAccessLevelRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteAccessLevelRequest.php deleted file mode 100644 index 0c57ef86ce6e..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteAccessLevelRequest.php +++ /dev/null @@ -1,97 +0,0 @@ -google.identity.accesscontextmanager.v1.DeleteAccessLevelRequest - */ -class DeleteAccessLevelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: - * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name for the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * - * Format: - * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` - * Please see {@see AccessContextManagerClient::accessLevelName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\DeleteAccessLevelRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: - * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: - * `accessPolicies/{policy_id}/accessLevels/{access_level_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. Resource name for the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: - * `accessPolicies/{policy_id}/accessLevels/{access_level_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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteAccessPolicyRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteAccessPolicyRequest.php deleted file mode 100644 index 0cb1a20e5283..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteAccessPolicyRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.identity.accesscontextmanager.v1.DeleteAccessPolicyRequest - */ -class DeleteAccessPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the access policy to delete. - * Format `accessPolicies/{policy_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name for the access policy to delete. - * - * Format `accessPolicies/{policy_id}` - * Please see {@see AccessContextManagerClient::accessPolicyName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\DeleteAccessPolicyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the access policy to delete. - * Format `accessPolicies/{policy_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the access policy to delete. - * Format `accessPolicies/{policy_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. Resource name for the access policy to delete. - * Format `accessPolicies/{policy_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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteGcpUserAccessBindingRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteGcpUserAccessBindingRequest.php deleted file mode 100644 index eaa87156204a..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteGcpUserAccessBindingRequest.php +++ /dev/null @@ -1,82 +0,0 @@ -google.identity.accesscontextmanager.v1.DeleteGcpUserAccessBindingRequest - */ -class DeleteGcpUserAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * Please see {@see AccessContextManagerClient::gcpUserAccessBindingName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\DeleteGcpUserAccessBindingRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteServicePerimeterRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteServicePerimeterRequest.php deleted file mode 100644 index c2bcbb2bcb7a..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DeleteServicePerimeterRequest.php +++ /dev/null @@ -1,97 +0,0 @@ -google.identity.accesscontextmanager.v1.DeleteServicePerimeterRequest - */ -class DeleteServicePerimeterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: - * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name for the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * - * Format: - * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` - * Please see {@see AccessContextManagerClient::servicePerimeterName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\DeleteServicePerimeterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: - * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: - * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_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. Resource name for the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: - * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DevicePolicy.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DevicePolicy.php deleted file mode 100644 index 6c6eb292095c..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/DevicePolicy.php +++ /dev/null @@ -1,253 +0,0 @@ -google.identity.accesscontextmanager.v1.DevicePolicy - */ -class DevicePolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Whether or not screenlock is required for the DevicePolicy to be true. - * Defaults to `false`. - * - * Generated from protobuf field bool require_screenlock = 1; - */ - protected $require_screenlock = false; - /** - * Allowed encryptions statuses, an empty list allows all statuses. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2; - */ - private $allowed_encryption_statuses; - /** - * Allowed OS versions, an empty list allows all types and all versions. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3; - */ - private $os_constraints; - /** - * Allowed device management levels, an empty list allows all management - * levels. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6; - */ - private $allowed_device_management_levels; - /** - * Whether the device needs to be approved by the customer admin. - * - * Generated from protobuf field bool require_admin_approval = 7; - */ - protected $require_admin_approval = false; - /** - * Whether the device needs to be corp owned. - * - * Generated from protobuf field bool require_corp_owned = 8; - */ - protected $require_corp_owned = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $require_screenlock - * Whether or not screenlock is required for the DevicePolicy to be true. - * Defaults to `false`. - * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_encryption_statuses - * Allowed encryptions statuses, an empty list allows all statuses. - * @type array<\Google\Identity\AccessContextManager\V1\OsConstraint>|\Google\Protobuf\Internal\RepeatedField $os_constraints - * Allowed OS versions, an empty list allows all types and all versions. - * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_device_management_levels - * Allowed device management levels, an empty list allows all management - * levels. - * @type bool $require_admin_approval - * Whether the device needs to be approved by the customer admin. - * @type bool $require_corp_owned - * Whether the device needs to be corp owned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessLevel::initOnce(); - parent::__construct($data); - } - - /** - * Whether or not screenlock is required for the DevicePolicy to be true. - * Defaults to `false`. - * - * Generated from protobuf field bool require_screenlock = 1; - * @return bool - */ - public function getRequireScreenlock() - { - return $this->require_screenlock; - } - - /** - * Whether or not screenlock is required for the DevicePolicy to be true. - * Defaults to `false`. - * - * Generated from protobuf field bool require_screenlock = 1; - * @param bool $var - * @return $this - */ - public function setRequireScreenlock($var) - { - GPBUtil::checkBool($var); - $this->require_screenlock = $var; - - return $this; - } - - /** - * Allowed encryptions statuses, an empty list allows all statuses. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedEncryptionStatuses() - { - return $this->allowed_encryption_statuses; - } - - /** - * Allowed encryptions statuses, an empty list allows all statuses. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.type.DeviceEncryptionStatus allowed_encryption_statuses = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedEncryptionStatuses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Identity\AccessContextManager\Type\DeviceEncryptionStatus::class); - $this->allowed_encryption_statuses = $arr; - - return $this; - } - - /** - * Allowed OS versions, an empty list allows all types and all versions. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOsConstraints() - { - return $this->os_constraints; - } - - /** - * Allowed OS versions, an empty list allows all types and all versions. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.OsConstraint os_constraints = 3; - * @param array<\Google\Identity\AccessContextManager\V1\OsConstraint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOsConstraints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\OsConstraint::class); - $this->os_constraints = $arr; - - return $this; - } - - /** - * Allowed device management levels, an empty list allows all management - * levels. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedDeviceManagementLevels() - { - return $this->allowed_device_management_levels; - } - - /** - * Allowed device management levels, an empty list allows all management - * levels. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.type.DeviceManagementLevel allowed_device_management_levels = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedDeviceManagementLevels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Identity\AccessContextManager\Type\DeviceManagementLevel::class); - $this->allowed_device_management_levels = $arr; - - return $this; - } - - /** - * Whether the device needs to be approved by the customer admin. - * - * Generated from protobuf field bool require_admin_approval = 7; - * @return bool - */ - public function getRequireAdminApproval() - { - return $this->require_admin_approval; - } - - /** - * Whether the device needs to be approved by the customer admin. - * - * Generated from protobuf field bool require_admin_approval = 7; - * @param bool $var - * @return $this - */ - public function setRequireAdminApproval($var) - { - GPBUtil::checkBool($var); - $this->require_admin_approval = $var; - - return $this; - } - - /** - * Whether the device needs to be corp owned. - * - * Generated from protobuf field bool require_corp_owned = 8; - * @return bool - */ - public function getRequireCorpOwned() - { - return $this->require_corp_owned; - } - - /** - * Whether the device needs to be corp owned. - * - * Generated from protobuf field bool require_corp_owned = 8; - * @param bool $var - * @return $this - */ - public function setRequireCorpOwned($var) - { - GPBUtil::checkBool($var); - $this->require_corp_owned = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GcpUserAccessBinding.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GcpUserAccessBinding.php deleted file mode 100644 index 3327852871b1..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GcpUserAccessBinding.php +++ /dev/null @@ -1,188 +0,0 @@ -google.identity.accesscontextmanager.v1.GcpUserAccessBinding - */ -class GcpUserAccessBinding extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Assigned by the server during creation. The last segment has an arbitrary - * length and has only URI unreserved characters (as defined by - * [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). - * Should not be specified by the client during creation. - * Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Required. Immutable. Google Group id whose members are subject to this binding's restrictions. - * See "id" in the [G Suite Directory API's Groups resource] - * (https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource). - * If a group's email address/alias is changed, this resource will continue - * to point at the changed group. This field does not accept group email - * addresses or aliases. - * Example: "01d520gv4vjcrht" - * - * Generated from protobuf field string group_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $group_key = ''; - /** - * Required. Access level that a user must have to be granted access. Only one access - * level is supported, not multiple. This repeated field must have exactly - * one element. - * Example: "accessPolicies/9522/accessLevels/device_trusted" - * - * Generated from protobuf field repeated string access_levels = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $access_levels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. Assigned by the server during creation. The last segment has an arbitrary - * length and has only URI unreserved characters (as defined by - * [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). - * Should not be specified by the client during creation. - * Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * @type string $group_key - * Required. Immutable. Google Group id whose members are subject to this binding's restrictions. - * See "id" in the [G Suite Directory API's Groups resource] - * (https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource). - * If a group's email address/alias is changed, this resource will continue - * to point at the changed group. This field does not accept group email - * addresses or aliases. - * Example: "01d520gv4vjcrht" - * @type array|\Google\Protobuf\Internal\RepeatedField $access_levels - * Required. Access level that a user must have to be granted access. Only one access - * level is supported, not multiple. This repeated field must have exactly - * one element. - * Example: "accessPolicies/9522/accessLevels/device_trusted" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\GcpUserAccessBinding::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. Assigned by the server during creation. The last segment has an arbitrary - * length and has only URI unreserved characters (as defined by - * [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). - * Should not be specified by the client during creation. - * Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. Assigned by the server during creation. The last segment has an arbitrary - * length and has only URI unreserved characters (as defined by - * [RFC 3986 Section 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). - * Should not be specified by the client during creation. - * Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * - * 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. Immutable. Google Group id whose members are subject to this binding's restrictions. - * See "id" in the [G Suite Directory API's Groups resource] - * (https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource). - * If a group's email address/alias is changed, this resource will continue - * to point at the changed group. This field does not accept group email - * addresses or aliases. - * Example: "01d520gv4vjcrht" - * - * Generated from protobuf field string group_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getGroupKey() - { - return $this->group_key; - } - - /** - * Required. Immutable. Google Group id whose members are subject to this binding's restrictions. - * See "id" in the [G Suite Directory API's Groups resource] - * (https://developers.google.com/admin-sdk/directory/v1/reference/groups#resource). - * If a group's email address/alias is changed, this resource will continue - * to point at the changed group. This field does not accept group email - * addresses or aliases. - * Example: "01d520gv4vjcrht" - * - * Generated from protobuf field string group_key = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setGroupKey($var) - { - GPBUtil::checkString($var, True); - $this->group_key = $var; - - return $this; - } - - /** - * Required. Access level that a user must have to be granted access. Only one access - * level is supported, not multiple. This repeated field must have exactly - * one element. - * Example: "accessPolicies/9522/accessLevels/device_trusted" - * - * Generated from protobuf field repeated string access_levels = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessLevels() - { - return $this->access_levels; - } - - /** - * Required. Access level that a user must have to be granted access. Only one access - * level is supported, not multiple. This repeated field must have exactly - * one element. - * Example: "accessPolicies/9522/accessLevels/device_trusted" - * - * Generated from protobuf field repeated string access_levels = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessLevels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->access_levels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GcpUserAccessBindingOperationMetadata.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GcpUserAccessBindingOperationMetadata.php deleted file mode 100644 index 35c6d5188442..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GcpUserAccessBindingOperationMetadata.php +++ /dev/null @@ -1,35 +0,0 @@ -google.identity.accesscontextmanager.v1.GcpUserAccessBindingOperationMetadata - */ -class GcpUserAccessBindingOperationMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetAccessLevelRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetAccessLevelRequest.php deleted file mode 100644 index 163a298fd48b..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetAccessLevelRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.identity.accesscontextmanager.v1.GetAccessLevelRequest - */ -class GetAccessLevelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: - * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Whether to return `BasicLevels` in the Cloud Common Expression - * Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where - * [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] - * are returned as `BasicLevels` or `CustomLevels` based on how they were - * created. If set to CEL, all [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] are returned as - * `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent - * `CustomLevels`. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 2; - */ - protected $access_level_format = 0; - - /** - * @param string $name Required. Resource name for the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * - * Format: - * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` - * Please see {@see AccessContextManagerClient::accessLevelName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\GetAccessLevelRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: - * `accessPolicies/{policy_id}/accessLevels/{access_level_id}` - * @type int $access_level_format - * Whether to return `BasicLevels` in the Cloud Common Expression - * Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where - * [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] - * are returned as `BasicLevels` or `CustomLevels` based on how they were - * created. If set to CEL, all [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] are returned as - * `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent - * `CustomLevels`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: - * `accessPolicies/{policy_id}/accessLevels/{access_level_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. Resource name for the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: - * `accessPolicies/{policy_id}/accessLevels/{access_level_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; - } - - /** - * Whether to return `BasicLevels` in the Cloud Common Expression - * Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where - * [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] - * are returned as `BasicLevels` or `CustomLevels` based on how they were - * created. If set to CEL, all [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] are returned as - * `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent - * `CustomLevels`. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 2; - * @return int - */ - public function getAccessLevelFormat() - { - return $this->access_level_format; - } - - /** - * Whether to return `BasicLevels` in the Cloud Common Expression - * Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where - * [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] - * are returned as `BasicLevels` or `CustomLevels` based on how they were - * created. If set to CEL, all [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] are returned as - * `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent - * `CustomLevels`. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 2; - * @param int $var - * @return $this - */ - public function setAccessLevelFormat($var) - { - GPBUtil::checkEnum($var, \Google\Identity\AccessContextManager\V1\LevelFormat::class); - $this->access_level_format = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetAccessPolicyRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetAccessPolicyRequest.php deleted file mode 100644 index aa0c79701aa6..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetAccessPolicyRequest.php +++ /dev/null @@ -1,87 +0,0 @@ -google.identity.accesscontextmanager.v1.GetAccessPolicyRequest - */ -class GetAccessPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the access policy to get. - * Format `accessPolicies/{policy_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name for the access policy to get. - * - * Format `accessPolicies/{policy_id}` - * Please see {@see AccessContextManagerClient::accessPolicyName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\GetAccessPolicyRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the access policy to get. - * Format `accessPolicies/{policy_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the access policy to get. - * Format `accessPolicies/{policy_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. Resource name for the access policy to get. - * Format `accessPolicies/{policy_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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetGcpUserAccessBindingRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetGcpUserAccessBindingRequest.php deleted file mode 100644 index 6674d8693b33..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetGcpUserAccessBindingRequest.php +++ /dev/null @@ -1,82 +0,0 @@ -google.identity.accesscontextmanager.v1.GetGcpUserAccessBindingRequest - */ -class GetGcpUserAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * Please see {@see AccessContextManagerClient::gcpUserAccessBindingName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\GetGcpUserAccessBindingRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Example: "organizations/256/gcpUserAccessBindings/b3-BhcX_Ud5N" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetServicePerimeterRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetServicePerimeterRequest.php deleted file mode 100644 index 3f56592f62db..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/GetServicePerimeterRequest.php +++ /dev/null @@ -1,97 +0,0 @@ -google.identity.accesscontextmanager.v1.GetServicePerimeterRequest - */ -class GetServicePerimeterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: - * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name for the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * - * Format: - * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` - * Please see {@see AccessContextManagerClient::servicePerimeterName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\GetServicePerimeterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: - * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: - * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_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. Resource name for the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: - * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/LevelFormat.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/LevelFormat.php deleted file mode 100644 index c12d273316ec..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/LevelFormat.php +++ /dev/null @@ -1,63 +0,0 @@ -google.identity.accesscontextmanager.v1.LevelFormat - */ -class LevelFormat -{ - /** - * The format was not specified. - * - * Generated from protobuf enum LEVEL_FORMAT_UNSPECIFIED = 0; - */ - const LEVEL_FORMAT_UNSPECIFIED = 0; - /** - * Uses the format the resource was defined in. BasicLevels are returned as - * BasicLevels, CustomLevels are returned as CustomLevels. - * - * Generated from protobuf enum AS_DEFINED = 1; - */ - const AS_DEFINED = 1; - /** - * Use Cloud Common Expression Language when returning the resource. Both - * BasicLevels and CustomLevels are returned as CustomLevels. - * - * Generated from protobuf enum CEL = 2; - */ - const CEL = 2; - - private static $valueToName = [ - self::LEVEL_FORMAT_UNSPECIFIED => 'LEVEL_FORMAT_UNSPECIFIED', - self::AS_DEFINED => 'AS_DEFINED', - self::CEL => 'CEL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessLevelsRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessLevelsRequest.php deleted file mode 100644 index ed0d4210254b..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessLevelsRequest.php +++ /dev/null @@ -1,223 +0,0 @@ -google.identity.accesscontextmanager.v1.ListAccessLevelsRequest - */ -class ListAccessLevelsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the access policy to list [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] from. - * Format: - * `accessPolicies/{policy_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Number of [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] to include in - * the list. Default 100. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Next page token for the next batch of [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * Defaults to the first page of results. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Whether to return `BasicLevels` in the Cloud Common Expression language, as - * `CustomLevels`, rather than as `BasicLevels`. Defaults to returning - * `AccessLevels` in the format they were defined. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 4; - */ - protected $access_level_format = 0; - - /** - * @param string $parent Required. Resource name for the access policy to list [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] from. - * - * Format: - * `accessPolicies/{policy_id}` - * Please see {@see AccessContextManagerClient::accessPolicyName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\ListAccessLevelsRequest - * - * @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 for the access policy to list [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] from. - * Format: - * `accessPolicies/{policy_id}` - * @type int $page_size - * Number of [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] to include in - * the list. Default 100. - * @type string $page_token - * Next page token for the next batch of [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * Defaults to the first page of results. - * @type int $access_level_format - * Whether to return `BasicLevels` in the Cloud Common Expression language, as - * `CustomLevels`, rather than as `BasicLevels`. Defaults to returning - * `AccessLevels` in the format they were defined. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the access policy to list [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] from. - * Format: - * `accessPolicies/{policy_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. Resource name for the access policy to list [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] from. - * Format: - * `accessPolicies/{policy_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; - } - - /** - * Number of [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] to include in - * the list. Default 100. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] to include in - * the list. Default 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; - } - - /** - * Next page token for the next batch of [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * Defaults to the first page of results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Next page token for the next batch of [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * Defaults to the first page of results. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Whether to return `BasicLevels` in the Cloud Common Expression language, as - * `CustomLevels`, rather than as `BasicLevels`. Defaults to returning - * `AccessLevels` in the format they were defined. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 4; - * @return int - */ - public function getAccessLevelFormat() - { - return $this->access_level_format; - } - - /** - * Whether to return `BasicLevels` in the Cloud Common Expression language, as - * `CustomLevels`, rather than as `BasicLevels`. Defaults to returning - * `AccessLevels` in the format they were defined. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.LevelFormat access_level_format = 4; - * @param int $var - * @return $this - */ - public function setAccessLevelFormat($var) - { - GPBUtil::checkEnum($var, \Google\Identity\AccessContextManager\V1\LevelFormat::class); - $this->access_level_format = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessLevelsResponse.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessLevelsResponse.php deleted file mode 100644 index b673f14a35e0..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessLevelsResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.identity.accesscontextmanager.v1.ListAccessLevelsResponse - */ -class ListAccessLevelsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 1; - */ - private $access_levels; - /** - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * - * 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\Identity\AccessContextManager\V1\AccessLevel>|\Google\Protobuf\Internal\RepeatedField $access_levels - * List of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * @type string $next_page_token - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * List of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessLevels() - { - return $this->access_levels; - } - - /** - * List of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 1; - * @param array<\Google\Identity\AccessContextManager\V1\AccessLevel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessLevels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\AccessLevel::class); - $this->access_levels = $arr; - - return $this; - } - - /** - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * - * 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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessPoliciesRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessPoliciesRequest.php deleted file mode 100644 index 58873c0d7830..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessPoliciesRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.identity.accesscontextmanager.v1.ListAccessPoliciesRequest - */ -class ListAccessPoliciesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the container to list AccessPolicy instances - * from. - * Format: - * `organizations/{org_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Number of AccessPolicy instances to include in the list. Default 100. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Next page token for the next batch of AccessPolicy instances. Defaults to - * the first page of results. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name for the container to list AccessPolicy instances - * from. - * Format: - * `organizations/{org_id}` - * @type int $page_size - * Number of AccessPolicy instances to include in the list. Default 100. - * @type string $page_token - * Next page token for the next batch of AccessPolicy instances. Defaults to - * the first page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the container to list AccessPolicy instances - * from. - * Format: - * `organizations/{org_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. Resource name for the container to list AccessPolicy instances - * from. - * Format: - * `organizations/{org_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; - } - - /** - * Number of AccessPolicy instances to include in the list. Default 100. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of AccessPolicy instances to include in the list. Default 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; - } - - /** - * Next page token for the next batch of AccessPolicy instances. Defaults to - * the first page of results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Next page token for the next batch of AccessPolicy instances. Defaults to - * the first page of results. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessPoliciesResponse.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessPoliciesResponse.php deleted file mode 100644 index 464491eb7396..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListAccessPoliciesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.identity.accesscontextmanager.v1.ListAccessPoliciesResponse - */ -class ListAccessPoliciesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of the AccessPolicy instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessPolicy access_policies = 1; - */ - private $access_policies; - /** - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * - * 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\Identity\AccessContextManager\V1\AccessPolicy>|\Google\Protobuf\Internal\RepeatedField $access_policies - * List of the AccessPolicy instances. - * @type string $next_page_token - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * List of the AccessPolicy instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessPolicy access_policies = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessPolicies() - { - return $this->access_policies; - } - - /** - * List of the AccessPolicy instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessPolicy access_policies = 1; - * @param array<\Google\Identity\AccessContextManager\V1\AccessPolicy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessPolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\AccessPolicy::class); - $this->access_policies = $arr; - - return $this; - } - - /** - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * - * 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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListGcpUserAccessBindingsRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListGcpUserAccessBindingsRequest.php deleted file mode 100644 index c09f53273619..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListGcpUserAccessBindingsRequest.php +++ /dev/null @@ -1,166 +0,0 @@ -google.identity.accesscontextmanager.v1.ListGcpUserAccessBindingsRequest - */ -class ListGcpUserAccessBindingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Example: "organizations/256" - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of items to return. The server may return fewer items. - * If left blank, the server may return any number of items. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. If left blank, returns the first page. To enumerate all items, use the - * [next_page_token] - * [google.identity.accesscontextmanager.v1.ListGcpUserAccessBindingsResponse.next_page_token] - * from your previous list operation. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Example: "organizations/256" - * Please see {@see AccessContextManagerClient::organizationName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\ListGcpUserAccessBindingsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Example: "organizations/256" - * @type int $page_size - * Optional. Maximum number of items to return. The server may return fewer items. - * If left blank, the server may return any number of items. - * @type string $page_token - * Optional. If left blank, returns the first page. To enumerate all items, use the - * [next_page_token] - * [google.identity.accesscontextmanager.v1.ListGcpUserAccessBindingsResponse.next_page_token] - * from your previous list operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Example: "organizations/256" - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Example: "organizations/256" - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Maximum number of items to return. The server may return fewer items. - * If left blank, the server may return any number of items. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Maximum number of items to return. The server may return fewer items. - * If left blank, the server may return any number of items. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. If left blank, returns the first page. To enumerate all items, use the - * [next_page_token] - * [google.identity.accesscontextmanager.v1.ListGcpUserAccessBindingsResponse.next_page_token] - * from your previous list operation. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. If left blank, returns the first page. To enumerate all items, use the - * [next_page_token] - * [google.identity.accesscontextmanager.v1.ListGcpUserAccessBindingsResponse.next_page_token] - * from your previous list operation. - * - * 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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListGcpUserAccessBindingsResponse.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListGcpUserAccessBindingsResponse.php deleted file mode 100644 index 76263a1ce10c..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListGcpUserAccessBindingsResponse.php +++ /dev/null @@ -1,106 +0,0 @@ -google.identity.accesscontextmanager.v1.ListGcpUserAccessBindingsResponse - */ -class ListGcpUserAccessBindingsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_bindings = 1; - */ - private $gcp_user_access_bindings; - /** - * Token to get the next page of items. If blank, 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\Identity\AccessContextManager\V1\GcpUserAccessBinding>|\Google\Protobuf\Internal\RepeatedField $gcp_user_access_bindings - * [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * @type string $next_page_token - * Token to get the next page of items. If blank, there are no more items. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_bindings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGcpUserAccessBindings() - { - return $this->gcp_user_access_bindings; - } - - /** - * [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_bindings = 1; - * @param array<\Google\Identity\AccessContextManager\V1\GcpUserAccessBinding>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGcpUserAccessBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding::class); - $this->gcp_user_access_bindings = $arr; - - return $this; - } - - /** - * Token to get the next page of items. If blank, there are no more items. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Token to get the next page of items. If blank, 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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListServicePerimetersRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListServicePerimetersRequest.php deleted file mode 100644 index 9dc7a38f7955..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListServicePerimetersRequest.php +++ /dev/null @@ -1,181 +0,0 @@ -google.identity.accesscontextmanager.v1.ListServicePerimetersRequest - */ -class ListServicePerimetersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the access policy to list [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] from. - * Format: - * `accessPolicies/{policy_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Number of [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to include - * in the list. Default 100. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Next page token for the next batch of [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * Defaults to the first page of results. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. Resource name for the access policy to list [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] from. - * - * Format: - * `accessPolicies/{policy_id}` - * Please see {@see AccessContextManagerClient::accessPolicyName()} for help formatting this field. - * - * @return \Google\Identity\AccessContextManager\V1\ListServicePerimetersRequest - * - * @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 for the access policy to list [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] from. - * Format: - * `accessPolicies/{policy_id}` - * @type int $page_size - * Number of [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to include - * in the list. Default 100. - * @type string $page_token - * Next page token for the next batch of [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * Defaults to the first page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the access policy to list [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] from. - * Format: - * `accessPolicies/{policy_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. Resource name for the access policy to list [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] from. - * Format: - * `accessPolicies/{policy_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; - } - - /** - * Number of [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to include - * in the list. Default 100. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to include - * in the list. Default 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; - } - - /** - * Next page token for the next batch of [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * Defaults to the first page of results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Next page token for the next batch of [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * Defaults to the first page of results. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListServicePerimetersResponse.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListServicePerimetersResponse.php deleted file mode 100644 index 6a08d26764d9..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ListServicePerimetersResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.identity.accesscontextmanager.v1.ListServicePerimetersResponse - */ -class ListServicePerimetersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - */ - private $service_perimeters; - /** - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * - * 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\Identity\AccessContextManager\V1\ServicePerimeter>|\Google\Protobuf\Internal\RepeatedField $service_perimeters - * List of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * @type string $next_page_token - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * List of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServicePerimeters() - { - return $this->service_perimeters; - } - - /** - * List of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - * @param array<\Google\Identity\AccessContextManager\V1\ServicePerimeter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServicePerimeters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\ServicePerimeter::class); - $this->service_perimeters = $arr; - - return $this; - } - - /** - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The pagination token to retrieve the next page of results. If the value is - * empty, no further results remain. - * - * 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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/OsConstraint.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/OsConstraint.php deleted file mode 100644 index d3a19e75cc2d..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/OsConstraint.php +++ /dev/null @@ -1,155 +0,0 @@ -google.identity.accesscontextmanager.v1.OsConstraint - */ -class OsConstraint extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The allowed OS type. - * - * Generated from protobuf field .google.identity.accesscontextmanager.type.OsType os_type = 1; - */ - protected $os_type = 0; - /** - * The minimum allowed OS version. If not set, any version of this OS - * satisfies the constraint. Format: `"major.minor.patch"`. - * Examples: `"10.5.301"`, `"9.2.1"`. - * - * Generated from protobuf field string minimum_version = 2; - */ - protected $minimum_version = ''; - /** - * Only allows requests from devices with a verified Chrome OS. - * Verifications includes requirements that the device is enterprise-managed, - * conformant to domain policies, and the caller has permission to call - * the API targeted by the request. - * - * Generated from protobuf field bool require_verified_chrome_os = 3; - */ - protected $require_verified_chrome_os = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $os_type - * Required. The allowed OS type. - * @type string $minimum_version - * The minimum allowed OS version. If not set, any version of this OS - * satisfies the constraint. Format: `"major.minor.patch"`. - * Examples: `"10.5.301"`, `"9.2.1"`. - * @type bool $require_verified_chrome_os - * Only allows requests from devices with a verified Chrome OS. - * Verifications includes requirements that the device is enterprise-managed, - * conformant to domain policies, and the caller has permission to call - * the API targeted by the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessLevel::initOnce(); - parent::__construct($data); - } - - /** - * Required. The allowed OS type. - * - * Generated from protobuf field .google.identity.accesscontextmanager.type.OsType os_type = 1; - * @return int - */ - public function getOsType() - { - return $this->os_type; - } - - /** - * Required. The allowed OS type. - * - * Generated from protobuf field .google.identity.accesscontextmanager.type.OsType os_type = 1; - * @param int $var - * @return $this - */ - public function setOsType($var) - { - GPBUtil::checkEnum($var, \Google\Identity\AccessContextManager\Type\OsType::class); - $this->os_type = $var; - - return $this; - } - - /** - * The minimum allowed OS version. If not set, any version of this OS - * satisfies the constraint. Format: `"major.minor.patch"`. - * Examples: `"10.5.301"`, `"9.2.1"`. - * - * Generated from protobuf field string minimum_version = 2; - * @return string - */ - public function getMinimumVersion() - { - return $this->minimum_version; - } - - /** - * The minimum allowed OS version. If not set, any version of this OS - * satisfies the constraint. Format: `"major.minor.patch"`. - * Examples: `"10.5.301"`, `"9.2.1"`. - * - * Generated from protobuf field string minimum_version = 2; - * @param string $var - * @return $this - */ - public function setMinimumVersion($var) - { - GPBUtil::checkString($var, True); - $this->minimum_version = $var; - - return $this; - } - - /** - * Only allows requests from devices with a verified Chrome OS. - * Verifications includes requirements that the device is enterprise-managed, - * conformant to domain policies, and the caller has permission to call - * the API targeted by the request. - * - * Generated from protobuf field bool require_verified_chrome_os = 3; - * @return bool - */ - public function getRequireVerifiedChromeOs() - { - return $this->require_verified_chrome_os; - } - - /** - * Only allows requests from devices with a verified Chrome OS. - * Verifications includes requirements that the device is enterprise-managed, - * conformant to domain policies, and the caller has permission to call - * the API targeted by the request. - * - * Generated from protobuf field bool require_verified_chrome_os = 3; - * @param bool $var - * @return $this - */ - public function setRequireVerifiedChromeOs($var) - { - GPBUtil::checkBool($var); - $this->require_verified_chrome_os = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceAccessLevelsRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceAccessLevelsRequest.php deleted file mode 100644 index 1dd69fe97dbf..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceAccessLevelsRequest.php +++ /dev/null @@ -1,192 +0,0 @@ -google.identity.accesscontextmanager.v1.ReplaceAccessLevelsRequest - */ -class ReplaceAccessLevelsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the access policy which owns these - * [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: `accessPolicies/{policy_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The desired [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] that should - * replace all existing [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] in the - * [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $access_levels; - /** - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * replace operation is to be performed on. If, at the time of replace, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the replace operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name for the access policy which owns these - * [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: `accessPolicies/{policy_id}` - * @type array<\Google\Identity\AccessContextManager\V1\AccessLevel>|\Google\Protobuf\Internal\RepeatedField $access_levels - * Required. The desired [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] that should - * replace all existing [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] in the - * [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * @type string $etag - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * replace operation is to be performed on. If, at the time of replace, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the replace operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the access policy which owns these - * [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: `accessPolicies/{policy_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. Resource name for the access policy which owns these - * [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel]. - * Format: `accessPolicies/{policy_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 desired [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] that should - * replace all existing [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] in the - * [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessLevels() - { - return $this->access_levels; - } - - /** - * Required. The desired [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] that should - * replace all existing [Access Levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] in the - * [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Identity\AccessContextManager\V1\AccessLevel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessLevels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\AccessLevel::class); - $this->access_levels = $arr; - - return $this; - } - - /** - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * replace operation is to be performed on. If, at the time of replace, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the replace operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * replace operation is to be performed on. If, at the time of replace, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the replace operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceAccessLevelsResponse.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceAccessLevelsResponse.php deleted file mode 100644 index a9c928a45c5c..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceAccessLevelsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ -google.identity.accesscontextmanager.v1.ReplaceAccessLevelsResponse - */ -class ReplaceAccessLevelsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 1; - */ - private $access_levels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Identity\AccessContextManager\V1\AccessLevel>|\Google\Protobuf\Internal\RepeatedField $access_levels - * List of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * List of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessLevels() - { - return $this->access_levels; - } - - /** - * List of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.AccessLevel access_levels = 1; - * @param array<\Google\Identity\AccessContextManager\V1\AccessLevel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessLevels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\AccessLevel::class); - $this->access_levels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceServicePerimetersRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceServicePerimetersRequest.php deleted file mode 100644 index ac778e889ae6..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceServicePerimetersRequest.php +++ /dev/null @@ -1,192 +0,0 @@ -google.identity.accesscontextmanager.v1.ReplaceServicePerimetersRequest - */ -class ReplaceServicePerimetersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the access policy which owns these - * [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: `accessPolicies/{policy_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The desired [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] that should - * replace all existing [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] in the - * [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $service_perimeters; - /** - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * replace operation is to be performed on. If, at the time of replace, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the replace operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * - * Generated from protobuf field string etag = 3; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name for the access policy which owns these - * [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: `accessPolicies/{policy_id}` - * @type array<\Google\Identity\AccessContextManager\V1\ServicePerimeter>|\Google\Protobuf\Internal\RepeatedField $service_perimeters - * Required. The desired [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] that should - * replace all existing [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] in the - * [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * @type string $etag - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * replace operation is to be performed on. If, at the time of replace, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the replace operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the access policy which owns these - * [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: `accessPolicies/{policy_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. Resource name for the access policy which owns these - * [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Format: `accessPolicies/{policy_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 desired [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] that should - * replace all existing [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] in the - * [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServicePerimeters() - { - return $this->service_perimeters; - } - - /** - * Required. The desired [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] that should - * replace all existing [Service Perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] in the - * [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Identity\AccessContextManager\V1\ServicePerimeter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServicePerimeters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\ServicePerimeter::class); - $this->service_perimeters = $arr; - - return $this; - } - - /** - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * replace operation is to be performed on. If, at the time of replace, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the replace operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * - * Generated from protobuf field string etag = 3; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. The etag for the version of the [Access Policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] that this - * replace operation is to be performed on. If, at the time of replace, the - * etag for the Access Policy stored in Access Context Manager is different - * from the specified etag, then the replace operation will not be performed - * and the call will fail. This field is not required. If etag is not - * provided, the operation will be performed as if a valid etag is provided. - * - * Generated from protobuf field string etag = 3; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceServicePerimetersResponse.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceServicePerimetersResponse.php deleted file mode 100644 index 3903108d8f8c..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ReplaceServicePerimetersResponse.php +++ /dev/null @@ -1,72 +0,0 @@ -google.identity.accesscontextmanager.v1.ReplaceServicePerimetersResponse - */ -class ReplaceServicePerimetersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - */ - private $service_perimeters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Identity\AccessContextManager\V1\ServicePerimeter>|\Google\Protobuf\Internal\RepeatedField $service_perimeters - * List of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * List of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServicePerimeters() - { - return $this->service_perimeters; - } - - /** - * List of the [Service Perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] instances. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeters = 1; - * @param array<\Google\Identity\AccessContextManager\V1\ServicePerimeter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServicePerimeters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\ServicePerimeter::class); - $this->service_perimeters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeter.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeter.php deleted file mode 100644 index 287e8cc759ab..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeter.php +++ /dev/null @@ -1,480 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeter - */ -class ServicePerimeter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name for the ServicePerimeter. The `short_name` - * component must begin with a letter and only include alphanumeric and '_'. - * Format: - * `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Human readable title. Must be unique within the Policy. - * - * Generated from protobuf field string title = 2; - */ - protected $title = ''; - /** - * Description of the `ServicePerimeter` and its use. Does not affect - * behavior. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. Time the `ServicePerimeter` was created in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; - */ - protected $create_time = null; - /** - * Output only. Time the `ServicePerimeter` was updated in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - */ - protected $update_time = null; - /** - * Perimeter type indicator. A single project is - * allowed to be a member of single regular perimeter, but multiple service - * perimeter bridges. A project cannot be a included in a perimeter bridge - * without being included in regular perimeter. For perimeter bridges, - * the restricted service list as well as access level lists must be - * empty. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter.PerimeterType perimeter_type = 6; - */ - protected $perimeter_type = 0; - /** - * Current ServicePerimeter configuration. Specifies sets of resources, - * restricted services and access levels that determine perimeter - * content and boundaries. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig status = 7; - */ - protected $status = null; - /** - * Proposed (or dry run) ServicePerimeter configuration. This configuration - * allows to specify and test ServicePerimeter configuration without enforcing - * actual access restrictions. Only allowed to be set when the - * "use_explicit_dry_run_spec" flag is set. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig spec = 8; - */ - protected $spec = null; - /** - * Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly - * exists for all Service Perimeters, and that spec is identical to the - * status for those Service Perimeters. When this flag is set, it inhibits the - * generation of the implicit spec, thereby allowing the user to explicitly - * provide a configuration ("spec") to use in a dry-run version of the Service - * Perimeter. This allows the user to test changes to the enforced config - * ("status") without actually enforcing them. This testing is done through - * analyzing the differences between currently enforced and suggested - * restrictions. use_explicit_dry_run_spec must bet set to True if any of the - * fields in the spec are set to non-default values. - * - * Generated from protobuf field bool use_explicit_dry_run_spec = 9; - */ - protected $use_explicit_dry_run_spec = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name for the ServicePerimeter. The `short_name` - * component must begin with a letter and only include alphanumeric and '_'. - * Format: - * `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}` - * @type string $title - * Human readable title. Must be unique within the Policy. - * @type string $description - * Description of the `ServicePerimeter` and its use. Does not affect - * behavior. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the `ServicePerimeter` was created in UTC. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time the `ServicePerimeter` was updated in UTC. - * @type int $perimeter_type - * Perimeter type indicator. A single project is - * allowed to be a member of single regular perimeter, but multiple service - * perimeter bridges. A project cannot be a included in a perimeter bridge - * without being included in regular perimeter. For perimeter bridges, - * the restricted service list as well as access level lists must be - * empty. - * @type \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig $status - * Current ServicePerimeter configuration. Specifies sets of resources, - * restricted services and access levels that determine perimeter - * content and boundaries. - * @type \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig $spec - * Proposed (or dry run) ServicePerimeter configuration. This configuration - * allows to specify and test ServicePerimeter configuration without enforcing - * actual access restrictions. Only allowed to be set when the - * "use_explicit_dry_run_spec" flag is set. - * @type bool $use_explicit_dry_run_spec - * Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly - * exists for all Service Perimeters, and that spec is identical to the - * status for those Service Perimeters. When this flag is set, it inhibits the - * generation of the implicit spec, thereby allowing the user to explicitly - * provide a configuration ("spec") to use in a dry-run version of the Service - * Perimeter. This allows the user to test changes to the enforced config - * ("status") without actually enforcing them. This testing is done through - * analyzing the differences between currently enforced and suggested - * restrictions. use_explicit_dry_run_spec must bet set to True if any of the - * fields in the spec are set to non-default values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name for the ServicePerimeter. The `short_name` - * component must begin with a letter and only include alphanumeric and '_'. - * Format: - * `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name for the ServicePerimeter. The `short_name` - * component must begin with a letter and only include alphanumeric and '_'. - * Format: - * `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Human readable title. Must be unique within the Policy. - * - * Generated from protobuf field string title = 2; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Human readable title. Must be unique within the Policy. - * - * Generated from protobuf field string title = 2; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * Description of the `ServicePerimeter` and its use. Does not affect - * behavior. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the `ServicePerimeter` and its use. Does not affect - * behavior. - * - * 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. Time the `ServicePerimeter` was created in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; - * @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 `ServicePerimeter` was created in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4; - * @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 the `ServicePerimeter` was updated in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - * @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 the `ServicePerimeter` was updated in UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Perimeter type indicator. A single project is - * allowed to be a member of single regular perimeter, but multiple service - * perimeter bridges. A project cannot be a included in a perimeter bridge - * without being included in regular perimeter. For perimeter bridges, - * the restricted service list as well as access level lists must be - * empty. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter.PerimeterType perimeter_type = 6; - * @return int - */ - public function getPerimeterType() - { - return $this->perimeter_type; - } - - /** - * Perimeter type indicator. A single project is - * allowed to be a member of single regular perimeter, but multiple service - * perimeter bridges. A project cannot be a included in a perimeter bridge - * without being included in regular perimeter. For perimeter bridges, - * the restricted service list as well as access level lists must be - * empty. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter.PerimeterType perimeter_type = 6; - * @param int $var - * @return $this - */ - public function setPerimeterType($var) - { - GPBUtil::checkEnum($var, \Google\Identity\AccessContextManager\V1\ServicePerimeter\PerimeterType::class); - $this->perimeter_type = $var; - - return $this; - } - - /** - * Current ServicePerimeter configuration. Specifies sets of resources, - * restricted services and access levels that determine perimeter - * content and boundaries. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig status = 7; - * @return \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Current ServicePerimeter configuration. Specifies sets of resources, - * restricted services and access levels that determine perimeter - * content and boundaries. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig status = 7; - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig::class); - $this->status = $var; - - return $this; - } - - /** - * Proposed (or dry run) ServicePerimeter configuration. This configuration - * allows to specify and test ServicePerimeter configuration without enforcing - * actual access restrictions. Only allowed to be set when the - * "use_explicit_dry_run_spec" flag is set. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig spec = 8; - * @return \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig|null - */ - public function getSpec() - { - return $this->spec; - } - - public function hasSpec() - { - return isset($this->spec); - } - - public function clearSpec() - { - unset($this->spec); - } - - /** - * Proposed (or dry run) ServicePerimeter configuration. This configuration - * allows to specify and test ServicePerimeter configuration without enforcing - * actual access restrictions. Only allowed to be set when the - * "use_explicit_dry_run_spec" flag is set. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig spec = 8; - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig $var - * @return $this - */ - public function setSpec($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig::class); - $this->spec = $var; - - return $this; - } - - /** - * Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly - * exists for all Service Perimeters, and that spec is identical to the - * status for those Service Perimeters. When this flag is set, it inhibits the - * generation of the implicit spec, thereby allowing the user to explicitly - * provide a configuration ("spec") to use in a dry-run version of the Service - * Perimeter. This allows the user to test changes to the enforced config - * ("status") without actually enforcing them. This testing is done through - * analyzing the differences between currently enforced and suggested - * restrictions. use_explicit_dry_run_spec must bet set to True if any of the - * fields in the spec are set to non-default values. - * - * Generated from protobuf field bool use_explicit_dry_run_spec = 9; - * @return bool - */ - public function getUseExplicitDryRunSpec() - { - return $this->use_explicit_dry_run_spec; - } - - /** - * Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly - * exists for all Service Perimeters, and that spec is identical to the - * status for those Service Perimeters. When this flag is set, it inhibits the - * generation of the implicit spec, thereby allowing the user to explicitly - * provide a configuration ("spec") to use in a dry-run version of the Service - * Perimeter. This allows the user to test changes to the enforced config - * ("status") without actually enforcing them. This testing is done through - * analyzing the differences between currently enforced and suggested - * restrictions. use_explicit_dry_run_spec must bet set to True if any of the - * fields in the spec are set to non-default values. - * - * Generated from protobuf field bool use_explicit_dry_run_spec = 9; - * @param bool $var - * @return $this - */ - public function setUseExplicitDryRunSpec($var) - { - GPBUtil::checkBool($var); - $this->use_explicit_dry_run_spec = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeter/PerimeterType.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeter/PerimeterType.php deleted file mode 100644 index 63bfb1b982bf..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeter/PerimeterType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeter.PerimeterType - */ -class PerimeterType -{ - /** - * Regular Perimeter. - * - * Generated from protobuf enum PERIMETER_TYPE_REGULAR = 0; - */ - const PERIMETER_TYPE_REGULAR = 0; - /** - * Perimeter Bridge. - * - * Generated from protobuf enum PERIMETER_TYPE_BRIDGE = 1; - */ - const PERIMETER_TYPE_BRIDGE = 1; - - private static $valueToName = [ - self::PERIMETER_TYPE_REGULAR => 'PERIMETER_TYPE_REGULAR', - self::PERIMETER_TYPE_BRIDGE => 'PERIMETER_TYPE_BRIDGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PerimeterType::class, \Google\Identity\AccessContextManager\V1\ServicePerimeter_PerimeterType::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig.php deleted file mode 100644 index 4b8c879819ef..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig.php +++ /dev/null @@ -1,348 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig - */ -class ServicePerimeterConfig extends \Google\Protobuf\Internal\Message -{ - /** - * A list of Google Cloud resources that are inside of the service perimeter. - * Currently only projects are allowed. Format: `projects/{project_number}` - * - * Generated from protobuf field repeated string resources = 1; - */ - private $resources; - /** - * A list of `AccessLevel` resource names that allow resources within the - * `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed - * must be in the same policy as this `ServicePerimeter`. Referencing a - * nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are - * listed, resources within the perimeter can only be accessed via Google - * Cloud calls with request origins within the perimeter. Example: - * `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. - * For Service Perimeter Bridge, must be empty. - * - * Generated from protobuf field repeated string access_levels = 2; - */ - private $access_levels; - /** - * Google Cloud services that are subject to the Service Perimeter - * restrictions. For example, if `storage.googleapis.com` is specified, access - * to the storage buckets inside the perimeter must meet the perimeter's - * access restrictions. - * - * Generated from protobuf field repeated string restricted_services = 4; - */ - private $restricted_services; - /** - * Configuration for APIs allowed within Perimeter. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.VpcAccessibleServices vpc_accessible_services = 10; - */ - protected $vpc_accessible_services = null; - /** - * List of [IngressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply to the perimeter. A perimeter may have multiple [IngressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy], - * each of which is evaluated separately. Access is granted if any [Ingress - * Policy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * grants it. Must be empty for a perimeter bridge. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy ingress_policies = 8; - */ - private $ingress_policies; - /** - * List of [EgressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply to the perimeter. A perimeter may have multiple [EgressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy], - * each of which is evaluated separately. Access is granted if any - * [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * grants it. Must be empty for a perimeter bridge. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy egress_policies = 9; - */ - private $egress_policies; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $resources - * A list of Google Cloud resources that are inside of the service perimeter. - * Currently only projects are allowed. Format: `projects/{project_number}` - * @type array|\Google\Protobuf\Internal\RepeatedField $access_levels - * A list of `AccessLevel` resource names that allow resources within the - * `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed - * must be in the same policy as this `ServicePerimeter`. Referencing a - * nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are - * listed, resources within the perimeter can only be accessed via Google - * Cloud calls with request origins within the perimeter. Example: - * `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. - * For Service Perimeter Bridge, must be empty. - * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_services - * Google Cloud services that are subject to the Service Perimeter - * restrictions. For example, if `storage.googleapis.com` is specified, access - * to the storage buckets inside the perimeter must meet the perimeter's - * access restrictions. - * @type \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\VpcAccessibleServices $vpc_accessible_services - * Configuration for APIs allowed within Perimeter. - * @type array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressPolicy>|\Google\Protobuf\Internal\RepeatedField $ingress_policies - * List of [IngressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply to the perimeter. A perimeter may have multiple [IngressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy], - * each of which is evaluated separately. Access is granted if any [Ingress - * Policy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * grants it. Must be empty for a perimeter bridge. - * @type array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressPolicy>|\Google\Protobuf\Internal\RepeatedField $egress_policies - * List of [EgressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply to the perimeter. A perimeter may have multiple [EgressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy], - * each of which is evaluated separately. Access is granted if any - * [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * grants it. Must be empty for a perimeter bridge. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * A list of Google Cloud resources that are inside of the service perimeter. - * Currently only projects are allowed. Format: `projects/{project_number}` - * - * Generated from protobuf field repeated string resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResources() - { - return $this->resources; - } - - /** - * A list of Google Cloud resources that are inside of the service perimeter. - * Currently only projects are allowed. Format: `projects/{project_number}` - * - * Generated from protobuf field repeated string resources = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->resources = $arr; - - return $this; - } - - /** - * A list of `AccessLevel` resource names that allow resources within the - * `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed - * must be in the same policy as this `ServicePerimeter`. Referencing a - * nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are - * listed, resources within the perimeter can only be accessed via Google - * Cloud calls with request origins within the perimeter. Example: - * `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. - * For Service Perimeter Bridge, must be empty. - * - * Generated from protobuf field repeated string access_levels = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccessLevels() - { - return $this->access_levels; - } - - /** - * A list of `AccessLevel` resource names that allow resources within the - * `ServicePerimeter` to be accessed from the internet. `AccessLevels` listed - * must be in the same policy as this `ServicePerimeter`. Referencing a - * nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names are - * listed, resources within the perimeter can only be accessed via Google - * Cloud calls with request origins within the perimeter. Example: - * `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. - * For Service Perimeter Bridge, must be empty. - * - * Generated from protobuf field repeated string access_levels = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccessLevels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->access_levels = $arr; - - return $this; - } - - /** - * Google Cloud services that are subject to the Service Perimeter - * restrictions. For example, if `storage.googleapis.com` is specified, access - * to the storage buckets inside the perimeter must meet the perimeter's - * access restrictions. - * - * Generated from protobuf field repeated string restricted_services = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestrictedServices() - { - return $this->restricted_services; - } - - /** - * Google Cloud services that are subject to the Service Perimeter - * restrictions. For example, if `storage.googleapis.com` is specified, access - * to the storage buckets inside the perimeter must meet the perimeter's - * access restrictions. - * - * Generated from protobuf field repeated string restricted_services = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestrictedServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->restricted_services = $arr; - - return $this; - } - - /** - * Configuration for APIs allowed within Perimeter. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.VpcAccessibleServices vpc_accessible_services = 10; - * @return \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\VpcAccessibleServices|null - */ - public function getVpcAccessibleServices() - { - return $this->vpc_accessible_services; - } - - public function hasVpcAccessibleServices() - { - return isset($this->vpc_accessible_services); - } - - public function clearVpcAccessibleServices() - { - unset($this->vpc_accessible_services); - } - - /** - * Configuration for APIs allowed within Perimeter. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.VpcAccessibleServices vpc_accessible_services = 10; - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\VpcAccessibleServices $var - * @return $this - */ - public function setVpcAccessibleServices($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\VpcAccessibleServices::class); - $this->vpc_accessible_services = $var; - - return $this; - } - - /** - * List of [IngressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply to the perimeter. A perimeter may have multiple [IngressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy], - * each of which is evaluated separately. Access is granted if any [Ingress - * Policy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * grants it. Must be empty for a perimeter bridge. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy ingress_policies = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIngressPolicies() - { - return $this->ingress_policies; - } - - /** - * List of [IngressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply to the perimeter. A perimeter may have multiple [IngressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy], - * each of which is evaluated separately. Access is granted if any [Ingress - * Policy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * grants it. Must be empty for a perimeter bridge. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy ingress_policies = 8; - * @param array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressPolicy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIngressPolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressPolicy::class); - $this->ingress_policies = $arr; - - return $this; - } - - /** - * List of [EgressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply to the perimeter. A perimeter may have multiple [EgressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy], - * each of which is evaluated separately. Access is granted if any - * [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * grants it. Must be empty for a perimeter bridge. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy egress_policies = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEgressPolicies() - { - return $this->egress_policies; - } - - /** - * List of [EgressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply to the perimeter. A perimeter may have multiple [EgressPolicies] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy], - * each of which is evaluated separately. Access is granted if any - * [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * grants it. Must be empty for a perimeter bridge. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy egress_policies = 9; - * @param array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressPolicy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEgressPolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressPolicy::class); - $this->egress_policies = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/ApiOperation.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/ApiOperation.php deleted file mode 100644 index ec2f4ff62c9c..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/ApiOperation.php +++ /dev/null @@ -1,148 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation - */ -class ApiOperation extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the API whose methods or permissions the [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * or [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * want to allow. A single [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * with `service_name` field set to `*` will allow all methods AND - * permissions for all services. - * - * Generated from protobuf field string service_name = 1; - */ - protected $service_name = ''; - /** - * API methods or permissions to allow. Method or permission must belong to - * the service specified by `service_name` field. A single [MethodSelector] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] - * entry with `*` specified for the `method` field will allow all methods - * AND permissions for the service specified in `service_name`. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2; - */ - private $method_selectors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service_name - * The name of the API whose methods or permissions the [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * or [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * want to allow. A single [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * with `service_name` field set to `*` will allow all methods AND - * permissions for all services. - * @type array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\MethodSelector>|\Google\Protobuf\Internal\RepeatedField $method_selectors - * API methods or permissions to allow. Method or permission must belong to - * the service specified by `service_name` field. A single [MethodSelector] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] - * entry with `*` specified for the `method` field will allow all methods - * AND permissions for the service specified in `service_name`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * The name of the API whose methods or permissions the [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * or [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * want to allow. A single [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * with `service_name` field set to `*` will allow all methods AND - * permissions for all services. - * - * Generated from protobuf field string service_name = 1; - * @return string - */ - public function getServiceName() - { - return $this->service_name; - } - - /** - * The name of the API whose methods or permissions the [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * or [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * want to allow. A single [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * with `service_name` field set to `*` will allow all methods AND - * permissions for all services. - * - * Generated from protobuf field string service_name = 1; - * @param string $var - * @return $this - */ - public function setServiceName($var) - { - GPBUtil::checkString($var, True); - $this->service_name = $var; - - return $this; - } - - /** - * API methods or permissions to allow. Method or permission must belong to - * the service specified by `service_name` field. A single [MethodSelector] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] - * entry with `*` specified for the `method` field will allow all methods - * AND permissions for the service specified in `service_name`. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMethodSelectors() - { - return $this->method_selectors; - } - - /** - * API methods or permissions to allow. Method or permission must belong to - * the service specified by `service_name` field. A single [MethodSelector] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector] - * entry with `*` specified for the `method` field will allow all methods - * AND permissions for the service specified in `service_name`. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector method_selectors = 2; - * @param array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\MethodSelector>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMethodSelectors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\MethodSelector::class); - $this->method_selectors = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ApiOperation::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_ApiOperation::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressFrom.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressFrom.php deleted file mode 100644 index 236fc2827e86..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressFrom.php +++ /dev/null @@ -1,130 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom - */ -class EgressFrom extends \Google\Protobuf\Internal\Message -{ - /** - * A list of identities that are allowed access through this [EgressPolicy]. - * Should be in the format of email address. The email address should - * represent individual user or service account only. - * - * Generated from protobuf field repeated string identities = 1; - */ - private $identities; - /** - * Specifies the type of identities that are allowed access to outside the - * perimeter. If left unspecified, then members of `identities` field will - * be allowed access. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 2; - */ - protected $identity_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $identities - * A list of identities that are allowed access through this [EgressPolicy]. - * Should be in the format of email address. The email address should - * represent individual user or service account only. - * @type int $identity_type - * Specifies the type of identities that are allowed access to outside the - * perimeter. If left unspecified, then members of `identities` field will - * be allowed access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * A list of identities that are allowed access through this [EgressPolicy]. - * Should be in the format of email address. The email address should - * represent individual user or service account only. - * - * Generated from protobuf field repeated string identities = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIdentities() - { - return $this->identities; - } - - /** - * A list of identities that are allowed access through this [EgressPolicy]. - * Should be in the format of email address. The email address should - * represent individual user or service account only. - * - * Generated from protobuf field repeated string identities = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIdentities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->identities = $arr; - - return $this; - } - - /** - * Specifies the type of identities that are allowed access to outside the - * perimeter. If left unspecified, then members of `identities` field will - * be allowed access. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 2; - * @return int - */ - public function getIdentityType() - { - return $this->identity_type; - } - - /** - * Specifies the type of identities that are allowed access to outside the - * perimeter. If left unspecified, then members of `identities` field will - * be allowed access. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 2; - * @param int $var - * @return $this - */ - public function setIdentityType($var) - { - GPBUtil::checkEnum($var, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IdentityType::class); - $this->identity_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EgressFrom::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_EgressFrom::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressPolicy.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressPolicy.php deleted file mode 100644 index cf334f64411f..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressPolicy.php +++ /dev/null @@ -1,173 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy - */ -class EgressPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Defines conditions on the source of a request causing this [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom egress_from = 1; - */ - protected $egress_from = null; - /** - * Defines the conditions on the [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * and destination resources that cause this [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressTo egress_to = 2; - */ - protected $egress_to = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressFrom $egress_from - * Defines conditions on the source of a request causing this [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply. - * @type \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressTo $egress_to - * Defines the conditions on the [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * and destination resources that cause this [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * Defines conditions on the source of a request causing this [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom egress_from = 1; - * @return \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressFrom|null - */ - public function getEgressFrom() - { - return $this->egress_from; - } - - public function hasEgressFrom() - { - return isset($this->egress_from); - } - - public function clearEgressFrom() - { - unset($this->egress_from); - } - - /** - * Defines conditions on the source of a request causing this [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom egress_from = 1; - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressFrom $var - * @return $this - */ - public function setEgressFrom($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressFrom::class); - $this->egress_from = $var; - - return $this; - } - - /** - * Defines the conditions on the [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * and destination resources that cause this [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressTo egress_to = 2; - * @return \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressTo|null - */ - public function getEgressTo() - { - return $this->egress_to; - } - - public function hasEgressTo() - { - return isset($this->egress_to); - } - - public function clearEgressTo() - { - unset($this->egress_to); - } - - /** - * Defines the conditions on the [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * and destination resources that cause this [EgressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressTo egress_to = 2; - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressTo $var - * @return $this - */ - public function setEgressTo($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\EgressTo::class); - $this->egress_to = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EgressPolicy::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_EgressPolicy::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressTo.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressTo.php deleted file mode 100644 index 79b7baafaf48..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/EgressTo.php +++ /dev/null @@ -1,220 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressTo - */ -class EgressTo extends \Google\Protobuf\Internal\Message -{ - /** - * A list of resources, currently only projects in the form - * `projects/`, that are allowed to be accessed by sources - * defined in the corresponding [EgressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom]. - * A request matches if it contains a resource in this list. If `*` is - * specified for `resources`, then this [EgressTo] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressTo] - * rule will authorize access to all resources outside the perimeter. - * - * Generated from protobuf field repeated string resources = 1; - */ - private $resources; - /** - * A list of [ApiOperations] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * allowed to be performed by the sources specified in the corresponding - * [EgressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom]. - * A request matches if it uses an operation/service in this list. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 2; - */ - private $operations; - /** - * A list of external resources that are allowed to be accessed. Only AWS - * and Azure resources are supported. For Amazon S3, the supported format is - * s3://BUCKET_NAME. For Azure Storage, the supported format is - * azure://myaccount.blob.core.windows.net/CONTAINER_NAME. A request matches - * if it contains an external resource in this list (Example: - * s3://bucket/path). Currently '*' is not allowed. - * - * Generated from protobuf field repeated string external_resources = 3; - */ - private $external_resources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $resources - * A list of resources, currently only projects in the form - * `projects/`, that are allowed to be accessed by sources - * defined in the corresponding [EgressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom]. - * A request matches if it contains a resource in this list. If `*` is - * specified for `resources`, then this [EgressTo] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressTo] - * rule will authorize access to all resources outside the perimeter. - * @type array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\ApiOperation>|\Google\Protobuf\Internal\RepeatedField $operations - * A list of [ApiOperations] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * allowed to be performed by the sources specified in the corresponding - * [EgressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom]. - * A request matches if it uses an operation/service in this list. - * @type array|\Google\Protobuf\Internal\RepeatedField $external_resources - * A list of external resources that are allowed to be accessed. Only AWS - * and Azure resources are supported. For Amazon S3, the supported format is - * s3://BUCKET_NAME. For Azure Storage, the supported format is - * azure://myaccount.blob.core.windows.net/CONTAINER_NAME. A request matches - * if it contains an external resource in this list (Example: - * s3://bucket/path). Currently '*' is not allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * A list of resources, currently only projects in the form - * `projects/`, that are allowed to be accessed by sources - * defined in the corresponding [EgressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom]. - * A request matches if it contains a resource in this list. If `*` is - * specified for `resources`, then this [EgressTo] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressTo] - * rule will authorize access to all resources outside the perimeter. - * - * Generated from protobuf field repeated string resources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResources() - { - return $this->resources; - } - - /** - * A list of resources, currently only projects in the form - * `projects/`, that are allowed to be accessed by sources - * defined in the corresponding [EgressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom]. - * A request matches if it contains a resource in this list. If `*` is - * specified for `resources`, then this [EgressTo] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressTo] - * rule will authorize access to all resources outside the perimeter. - * - * Generated from protobuf field repeated string resources = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->resources = $arr; - - return $this; - } - - /** - * A list of [ApiOperations] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * allowed to be performed by the sources specified in the corresponding - * [EgressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom]. - * A request matches if it uses an operation/service in this list. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOperations() - { - return $this->operations; - } - - /** - * A list of [ApiOperations] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * allowed to be performed by the sources specified in the corresponding - * [EgressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.EgressFrom]. - * A request matches if it uses an operation/service in this list. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 2; - * @param array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\ApiOperation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\ApiOperation::class); - $this->operations = $arr; - - return $this; - } - - /** - * A list of external resources that are allowed to be accessed. Only AWS - * and Azure resources are supported. For Amazon S3, the supported format is - * s3://BUCKET_NAME. For Azure Storage, the supported format is - * azure://myaccount.blob.core.windows.net/CONTAINER_NAME. A request matches - * if it contains an external resource in this list (Example: - * s3://bucket/path). Currently '*' is not allowed. - * - * Generated from protobuf field repeated string external_resources = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExternalResources() - { - return $this->external_resources; - } - - /** - * A list of external resources that are allowed to be accessed. Only AWS - * and Azure resources are supported. For Amazon S3, the supported format is - * s3://BUCKET_NAME. For Azure Storage, the supported format is - * azure://myaccount.blob.core.windows.net/CONTAINER_NAME. A request matches - * if it contains an external resource in this list (Example: - * s3://bucket/path). Currently '*' is not allowed. - * - * Generated from protobuf field repeated string external_resources = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExternalResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->external_resources = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EgressTo::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_EgressTo::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IdentityType.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IdentityType.php deleted file mode 100644 index 4e3704eea51f..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IdentityType.php +++ /dev/null @@ -1,76 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType - */ -class IdentityType -{ - /** - * No blanket identity group specified. - * - * Generated from protobuf enum IDENTITY_TYPE_UNSPECIFIED = 0; - */ - const IDENTITY_TYPE_UNSPECIFIED = 0; - /** - * Authorize access from all identities outside the perimeter. - * - * Generated from protobuf enum ANY_IDENTITY = 1; - */ - const ANY_IDENTITY = 1; - /** - * Authorize access from all human users outside the perimeter. - * - * Generated from protobuf enum ANY_USER_ACCOUNT = 2; - */ - const ANY_USER_ACCOUNT = 2; - /** - * Authorize access from all service accounts outside the perimeter. - * - * Generated from protobuf enum ANY_SERVICE_ACCOUNT = 3; - */ - const ANY_SERVICE_ACCOUNT = 3; - - private static $valueToName = [ - self::IDENTITY_TYPE_UNSPECIFIED => 'IDENTITY_TYPE_UNSPECIFIED', - self::ANY_IDENTITY => 'ANY_IDENTITY', - self::ANY_USER_ACCOUNT => 'ANY_USER_ACCOUNT', - self::ANY_SERVICE_ACCOUNT => 'ANY_SERVICE_ACCOUNT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IdentityType::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_IdentityType::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressFrom.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressFrom.php deleted file mode 100644 index 4efbd101d335..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressFrom.php +++ /dev/null @@ -1,166 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom - */ -class IngressFrom extends \Google\Protobuf\Internal\Message -{ - /** - * Sources that this [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * authorizes access from. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1; - */ - private $sources; - /** - * A list of identities that are allowed access through this ingress - * policy. Should be in the format of email address. The email address - * should represent individual user or service account only. - * - * Generated from protobuf field repeated string identities = 2; - */ - private $identities; - /** - * Specifies the type of identities that are allowed access from outside the - * perimeter. If left unspecified, then members of `identities` field will - * be allowed access. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 3; - */ - protected $identity_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressSource>|\Google\Protobuf\Internal\RepeatedField $sources - * Sources that this [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * authorizes access from. - * @type array|\Google\Protobuf\Internal\RepeatedField $identities - * A list of identities that are allowed access through this ingress - * policy. Should be in the format of email address. The email address - * should represent individual user or service account only. - * @type int $identity_type - * Specifies the type of identities that are allowed access from outside the - * perimeter. If left unspecified, then members of `identities` field will - * be allowed access. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * Sources that this [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * authorizes access from. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSources() - { - return $this->sources; - } - - /** - * Sources that this [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * authorizes access from. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource sources = 1; - * @param array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressSource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressSource::class); - $this->sources = $arr; - - return $this; - } - - /** - * A list of identities that are allowed access through this ingress - * policy. Should be in the format of email address. The email address - * should represent individual user or service account only. - * - * Generated from protobuf field repeated string identities = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIdentities() - { - return $this->identities; - } - - /** - * A list of identities that are allowed access through this ingress - * policy. Should be in the format of email address. The email address - * should represent individual user or service account only. - * - * Generated from protobuf field repeated string identities = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIdentities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->identities = $arr; - - return $this; - } - - /** - * Specifies the type of identities that are allowed access from outside the - * perimeter. If left unspecified, then members of `identities` field will - * be allowed access. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 3; - * @return int - */ - public function getIdentityType() - { - return $this->identity_type; - } - - /** - * Specifies the type of identities that are allowed access from outside the - * perimeter. If left unspecified, then members of `identities` field will - * be allowed access. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IdentityType identity_type = 3; - * @param int $var - * @return $this - */ - public function setIdentityType($var) - { - GPBUtil::checkEnum($var, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IdentityType::class); - $this->identity_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IngressFrom::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_IngressFrom::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressPolicy.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressPolicy.php deleted file mode 100644 index a5e2975504a8..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressPolicy.php +++ /dev/null @@ -1,168 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy - */ -class IngressPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Defines the conditions on the source of a request causing this - * [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1; - */ - protected $ingress_from = null; - /** - * Defines the conditions on the [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * and request destination that cause this [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2; - */ - protected $ingress_to = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressFrom $ingress_from - * Defines the conditions on the source of a request causing this - * [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply. - * @type \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressTo $ingress_to - * Defines the conditions on the [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * and request destination that cause this [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * Defines the conditions on the source of a request causing this - * [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1; - * @return \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressFrom|null - */ - public function getIngressFrom() - { - return $this->ingress_from; - } - - public function hasIngressFrom() - { - return isset($this->ingress_from); - } - - public function clearIngressFrom() - { - unset($this->ingress_from); - } - - /** - * Defines the conditions on the source of a request causing this - * [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom ingress_from = 1; - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressFrom $var - * @return $this - */ - public function setIngressFrom($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressFrom::class); - $this->ingress_from = $var; - - return $this; - } - - /** - * Defines the conditions on the [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * and request destination that cause this [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2; - * @return \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressTo|null - */ - public function getIngressTo() - { - return $this->ingress_to; - } - - public function hasIngressTo() - { - return isset($this->ingress_to); - } - - public function clearIngressTo() - { - unset($this->ingress_to); - } - - /** - * Defines the conditions on the [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * and request destination that cause this [IngressPolicy] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressPolicy] - * to apply. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo ingress_to = 2; - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressTo $var - * @return $this - */ - public function setIngressTo($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\IngressTo::class); - $this->ingress_to = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IngressPolicy::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_IngressPolicy::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressSource.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressSource.php deleted file mode 100644 index fc3f89ea2c09..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressSource.php +++ /dev/null @@ -1,182 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource - */ -class IngressSource extends \Google\Protobuf\Internal\Message -{ - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $access_level - * An [AccessLevel] - * [google.identity.accesscontextmanager.v1.AccessLevel] resource - * name that allow resources within the [ServicePerimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to be - * accessed from the internet. [AccessLevels] - * [google.identity.accesscontextmanager.v1.AccessLevel] listed must - * be in the same policy as this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Referencing a nonexistent [AccessLevel] - * [google.identity.accesscontextmanager.v1.AccessLevel] will cause - * an error. If no [AccessLevel] - * [google.identity.accesscontextmanager.v1.AccessLevel] names are - * listed, resources within the perimeter can only be accessed via Google - * Cloud calls with request origins within the perimeter. Example: - * `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. If a single `*` is - * specified for `access_level`, then all [IngressSources] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource] - * will be allowed. - * @type string $resource - * A Google Cloud resource that is allowed to ingress the perimeter. - * Requests from these resources will be allowed to access perimeter data. - * Currently only projects are allowed. - * Format: `projects/{project_number}` - * The project may be in any Google Cloud organization, not just the - * organization that the perimeter is defined in. `*` is not allowed, the - * case of allowing all Google Cloud resources only is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * An [AccessLevel] - * [google.identity.accesscontextmanager.v1.AccessLevel] resource - * name that allow resources within the [ServicePerimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to be - * accessed from the internet. [AccessLevels] - * [google.identity.accesscontextmanager.v1.AccessLevel] listed must - * be in the same policy as this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Referencing a nonexistent [AccessLevel] - * [google.identity.accesscontextmanager.v1.AccessLevel] will cause - * an error. If no [AccessLevel] - * [google.identity.accesscontextmanager.v1.AccessLevel] names are - * listed, resources within the perimeter can only be accessed via Google - * Cloud calls with request origins within the perimeter. Example: - * `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. If a single `*` is - * specified for `access_level`, then all [IngressSources] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource] - * will be allowed. - * - * Generated from protobuf field string access_level = 1; - * @return string - */ - public function getAccessLevel() - { - return $this->readOneof(1); - } - - public function hasAccessLevel() - { - return $this->hasOneof(1); - } - - /** - * An [AccessLevel] - * [google.identity.accesscontextmanager.v1.AccessLevel] resource - * name that allow resources within the [ServicePerimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] to be - * accessed from the internet. [AccessLevels] - * [google.identity.accesscontextmanager.v1.AccessLevel] listed must - * be in the same policy as this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * Referencing a nonexistent [AccessLevel] - * [google.identity.accesscontextmanager.v1.AccessLevel] will cause - * an error. If no [AccessLevel] - * [google.identity.accesscontextmanager.v1.AccessLevel] names are - * listed, resources within the perimeter can only be accessed via Google - * Cloud calls with request origins within the perimeter. Example: - * `accessPolicies/MY_POLICY/accessLevels/MY_LEVEL`. If a single `*` is - * specified for `access_level`, then all [IngressSources] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressSource] - * will be allowed. - * - * Generated from protobuf field string access_level = 1; - * @param string $var - * @return $this - */ - public function setAccessLevel($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A Google Cloud resource that is allowed to ingress the perimeter. - * Requests from these resources will be allowed to access perimeter data. - * Currently only projects are allowed. - * Format: `projects/{project_number}` - * The project may be in any Google Cloud organization, not just the - * organization that the perimeter is defined in. `*` is not allowed, the - * case of allowing all Google Cloud resources only is not supported. - * - * Generated from protobuf field string resource = 2; - * @return string - */ - public function getResource() - { - return $this->readOneof(2); - } - - public function hasResource() - { - return $this->hasOneof(2); - } - - /** - * A Google Cloud resource that is allowed to ingress the perimeter. - * Requests from these resources will be allowed to access perimeter data. - * Currently only projects are allowed. - * Format: `projects/{project_number}` - * The project may be in any Google Cloud organization, not just the - * organization that the perimeter is defined in. `*` is not allowed, the - * case of allowing all Google Cloud resources only is not supported. - * - * Generated from protobuf field string resource = 2; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IngressSource::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_IngressSource::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressTo.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressTo.php deleted file mode 100644 index 0b063ef85e0b..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/IngressTo.php +++ /dev/null @@ -1,163 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressTo - */ -class IngressTo extends \Google\Protobuf\Internal\Message -{ - /** - * A list of [ApiOperations] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * allowed to be performed by the sources specified in corresponding - * [IngressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] - * in this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1; - */ - private $operations; - /** - * A list of resources, currently only projects in the form - * `projects/`, protected by this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] that are - * allowed to be accessed by sources defined in the corresponding - * [IngressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. - * If a single `*` is specified, then access to all resources inside the - * perimeter are allowed. - * - * Generated from protobuf field repeated string resources = 2; - */ - private $resources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\ApiOperation>|\Google\Protobuf\Internal\RepeatedField $operations - * A list of [ApiOperations] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * allowed to be performed by the sources specified in corresponding - * [IngressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] - * in this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * @type array|\Google\Protobuf\Internal\RepeatedField $resources - * A list of resources, currently only projects in the form - * `projects/`, protected by this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] that are - * allowed to be accessed by sources defined in the corresponding - * [IngressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. - * If a single `*` is specified, then access to all resources inside the - * perimeter are allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * A list of [ApiOperations] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * allowed to be performed by the sources specified in corresponding - * [IngressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] - * in this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOperations() - { - return $this->operations; - } - - /** - * A list of [ApiOperations] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation] - * allowed to be performed by the sources specified in corresponding - * [IngressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom] - * in this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. - * - * Generated from protobuf field repeated .google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation operations = 1; - * @param array<\Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\ApiOperation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig\ApiOperation::class); - $this->operations = $arr; - - return $this; - } - - /** - * A list of resources, currently only projects in the form - * `projects/`, protected by this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] that are - * allowed to be accessed by sources defined in the corresponding - * [IngressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. - * If a single `*` is specified, then access to all resources inside the - * perimeter are allowed. - * - * Generated from protobuf field repeated string resources = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResources() - { - return $this->resources; - } - - /** - * A list of resources, currently only projects in the form - * `projects/`, protected by this [ServicePerimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] that are - * allowed to be accessed by sources defined in the corresponding - * [IngressFrom] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.IngressFrom]. - * If a single `*` is specified, then access to all resources inside the - * perimeter are allowed. - * - * Generated from protobuf field repeated string resources = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->resources = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IngressTo::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_IngressTo::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/MethodSelector.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/MethodSelector.php deleted file mode 100644 index f09137f9545c..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/MethodSelector.php +++ /dev/null @@ -1,130 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.MethodSelector - */ -class MethodSelector extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $method - * Value for `method` should be a valid method name for the corresponding - * `service_name` in [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. - * If `*` used as value for `method`, then ALL methods and permissions are - * allowed. - * @type string $permission - * Value for `permission` should be a valid Cloud IAM permission for the - * corresponding `service_name` in [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * Value for `method` should be a valid method name for the corresponding - * `service_name` in [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. - * If `*` used as value for `method`, then ALL methods and permissions are - * allowed. - * - * Generated from protobuf field string method = 1; - * @return string - */ - public function getMethod() - { - return $this->readOneof(1); - } - - public function hasMethod() - { - return $this->hasOneof(1); - } - - /** - * Value for `method` should be a valid method name for the corresponding - * `service_name` in [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. - * If `*` used as value for `method`, then ALL methods and permissions are - * allowed. - * - * Generated from protobuf field string method = 1; - * @param string $var - * @return $this - */ - public function setMethod($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Value for `permission` should be a valid Cloud IAM permission for the - * corresponding `service_name` in [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. - * - * Generated from protobuf field string permission = 2; - * @return string - */ - public function getPermission() - { - return $this->readOneof(2); - } - - public function hasPermission() - { - return $this->hasOneof(2); - } - - /** - * Value for `permission` should be a valid Cloud IAM permission for the - * corresponding `service_name` in [ApiOperation] - * [google.identity.accesscontextmanager.v1.ServicePerimeterConfig.ApiOperation]. - * - * Generated from protobuf field string permission = 2; - * @param string $var - * @return $this - */ - public function setPermission($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getKind() - { - return $this->whichOneof("kind"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MethodSelector::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_MethodSelector::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/VpcAccessibleServices.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/VpcAccessibleServices.php deleted file mode 100644 index f14e4021028e..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/ServicePerimeterConfig/VpcAccessibleServices.php +++ /dev/null @@ -1,121 +0,0 @@ -google.identity.accesscontextmanager.v1.ServicePerimeterConfig.VpcAccessibleServices - */ -class VpcAccessibleServices extends \Google\Protobuf\Internal\Message -{ - /** - * Whether to restrict API calls within the Service Perimeter to the list of - * APIs specified in 'allowed_services'. - * - * Generated from protobuf field bool enable_restriction = 1; - */ - protected $enable_restriction = false; - /** - * The list of APIs usable within the Service Perimeter. Must be empty - * unless 'enable_restriction' is True. You can specify a list of individual - * services, as well as include the 'RESTRICTED-SERVICES' value, which - * automatically includes all of the services protected by the perimeter. - * - * Generated from protobuf field repeated string allowed_services = 2; - */ - private $allowed_services; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_restriction - * Whether to restrict API calls within the Service Perimeter to the list of - * APIs specified in 'allowed_services'. - * @type array|\Google\Protobuf\Internal\RepeatedField $allowed_services - * The list of APIs usable within the Service Perimeter. Must be empty - * unless 'enable_restriction' is True. You can specify a list of individual - * services, as well as include the 'RESTRICTED-SERVICES' value, which - * automatically includes all of the services protected by the perimeter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\ServicePerimeter::initOnce(); - parent::__construct($data); - } - - /** - * Whether to restrict API calls within the Service Perimeter to the list of - * APIs specified in 'allowed_services'. - * - * Generated from protobuf field bool enable_restriction = 1; - * @return bool - */ - public function getEnableRestriction() - { - return $this->enable_restriction; - } - - /** - * Whether to restrict API calls within the Service Perimeter to the list of - * APIs specified in 'allowed_services'. - * - * Generated from protobuf field bool enable_restriction = 1; - * @param bool $var - * @return $this - */ - public function setEnableRestriction($var) - { - GPBUtil::checkBool($var); - $this->enable_restriction = $var; - - return $this; - } - - /** - * The list of APIs usable within the Service Perimeter. Must be empty - * unless 'enable_restriction' is True. You can specify a list of individual - * services, as well as include the 'RESTRICTED-SERVICES' value, which - * automatically includes all of the services protected by the perimeter. - * - * Generated from protobuf field repeated string allowed_services = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAllowedServices() - { - return $this->allowed_services; - } - - /** - * The list of APIs usable within the Service Perimeter. Must be empty - * unless 'enable_restriction' is True. You can specify a list of individual - * services, as well as include the 'RESTRICTED-SERVICES' value, which - * automatically includes all of the services protected by the perimeter. - * - * Generated from protobuf field repeated string allowed_services = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAllowedServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->allowed_services = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VpcAccessibleServices::class, \Google\Identity\AccessContextManager\V1\ServicePerimeterConfig_VpcAccessibleServices::class); - diff --git a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateAccessLevelRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateAccessLevelRequest.php deleted file mode 100644 index b1f323af7f53..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateAccessLevelRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.identity.accesscontextmanager.v1.UpdateAccessLevelRequest - */ -class UpdateAccessLevelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The updated [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. Syntactic - * correctness of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] is a - * precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessLevel access_level = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $access_level = null; - /** - * Required. Mask to control which fields get updated. Must be non-empty. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Identity\AccessContextManager\V1\AccessLevel $accessLevel Required. The updated [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. Syntactic - * correctness of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] is a - * precondition for creation. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask to control which fields get updated. Must be non-empty. - * - * @return \Google\Identity\AccessContextManager\V1\UpdateAccessLevelRequest - * - * @experimental - */ - public static function build(\Google\Identity\AccessContextManager\V1\AccessLevel $accessLevel, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setAccessLevel($accessLevel) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Identity\AccessContextManager\V1\AccessLevel $access_level - * Required. The updated [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. Syntactic - * correctness of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] is a - * precondition for creation. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask to control which fields get updated. Must be non-empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. The updated [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. Syntactic - * correctness of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] is a - * precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessLevel access_level = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Identity\AccessContextManager\V1\AccessLevel|null - */ - public function getAccessLevel() - { - return $this->access_level; - } - - public function hasAccessLevel() - { - return isset($this->access_level); - } - - public function clearAccessLevel() - { - unset($this->access_level); - } - - /** - * Required. The updated [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. Syntactic - * correctness of the [Access Level] - * [google.identity.accesscontextmanager.v1.AccessLevel] is a - * precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessLevel access_level = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Identity\AccessContextManager\V1\AccessLevel $var - * @return $this - */ - public function setAccessLevel($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\AccessLevel::class); - $this->access_level = $var; - - return $this; - } - - /** - * Required. Mask to control which fields get updated. Must be non-empty. - * - * 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. Mask to control which fields get updated. Must be non-empty. - * - * 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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateAccessPolicyRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateAccessPolicyRequest.php deleted file mode 100644 index 5aac2c911194..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateAccessPolicyRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.identity.accesscontextmanager.v1.UpdateAccessPolicyRequest - */ -class UpdateAccessPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The updated AccessPolicy. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $policy = null; - /** - * Required. Mask to control which fields get updated. Must be non-empty. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Identity\AccessContextManager\V1\AccessPolicy $policy Required. The updated AccessPolicy. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask to control which fields get updated. Must be non-empty. - * - * @return \Google\Identity\AccessContextManager\V1\UpdateAccessPolicyRequest - * - * @experimental - */ - public static function build(\Google\Identity\AccessContextManager\V1\AccessPolicy $policy, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setPolicy($policy) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Identity\AccessContextManager\V1\AccessPolicy $policy - * Required. The updated AccessPolicy. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask to control which fields get updated. Must be non-empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. The updated AccessPolicy. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Identity\AccessContextManager\V1\AccessPolicy|null - */ - public function getPolicy() - { - return $this->policy; - } - - public function hasPolicy() - { - return isset($this->policy); - } - - public function clearPolicy() - { - unset($this->policy); - } - - /** - * Required. The updated AccessPolicy. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.AccessPolicy policy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Identity\AccessContextManager\V1\AccessPolicy $var - * @return $this - */ - public function setPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\AccessPolicy::class); - $this->policy = $var; - - return $this; - } - - /** - * Required. Mask to control which fields get updated. Must be non-empty. - * - * 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. Mask to control which fields get updated. Must be non-empty. - * - * 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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateGcpUserAccessBindingRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateGcpUserAccessBindingRequest.php deleted file mode 100644 index 605c37ca4326..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateGcpUserAccessBindingRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.identity.accesscontextmanager.v1.UpdateGcpUserAccessBindingRequest - */ -class UpdateGcpUserAccessBindingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $gcp_user_access_binding = null; - /** - * Required. Only the fields specified in this mask are updated. Because name and - * group_key cannot be changed, update_mask is required and must always be: - * update_mask { - * paths: "access_levels" - * } - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding $gcpUserAccessBinding Required. [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * @param \Google\Protobuf\FieldMask $updateMask Required. Only the fields specified in this mask are updated. Because name and - * group_key cannot be changed, update_mask is required and must always be: - * - * update_mask { - * paths: "access_levels" - * } - * - * @return \Google\Identity\AccessContextManager\V1\UpdateGcpUserAccessBindingRequest - * - * @experimental - */ - public static function build(\Google\Identity\AccessContextManager\V1\GcpUserAccessBinding $gcpUserAccessBinding, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setGcpUserAccessBinding($gcpUserAccessBinding) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding $gcp_user_access_binding - * Required. [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Only the fields specified in this mask are updated. Because name and - * group_key cannot be changed, update_mask is required and must always be: - * update_mask { - * paths: "access_levels" - * } - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding|null - */ - public function getGcpUserAccessBinding() - { - return $this->gcp_user_access_binding; - } - - public function hasGcpUserAccessBinding() - { - return isset($this->gcp_user_access_binding); - } - - public function clearGcpUserAccessBinding() - { - unset($this->gcp_user_access_binding); - } - - /** - * Required. [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.GcpUserAccessBinding gcp_user_access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding $var - * @return $this - */ - public function setGcpUserAccessBinding($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\GcpUserAccessBinding::class); - $this->gcp_user_access_binding = $var; - - return $this; - } - - /** - * Required. Only the fields specified in this mask are updated. Because name and - * group_key cannot be changed, update_mask is required and must always be: - * update_mask { - * paths: "access_levels" - * } - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Only the fields specified in this mask are updated. Because name and - * group_key cannot be changed, update_mask is required and must always be: - * update_mask { - * paths: "access_levels" - * } - * - * 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/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateServicePerimeterRequest.php b/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateServicePerimeterRequest.php deleted file mode 100644 index 865c1cc2fed1..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/proto/src/Google/Identity/AccessContextManager/V1/UpdateServicePerimeterRequest.php +++ /dev/null @@ -1,141 +0,0 @@ -google.identity.accesscontextmanager.v1.UpdateServicePerimeterRequest - */ -class UpdateServicePerimeterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The updated `ServicePerimeter`. Syntactic correctness of the - * `ServicePerimeter` is a precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_perimeter = null; - /** - * Required. Mask to control which fields get updated. Must be non-empty. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeter $servicePerimeter Required. The updated `ServicePerimeter`. Syntactic correctness of the - * `ServicePerimeter` is a precondition for creation. - * @param \Google\Protobuf\FieldMask $updateMask Required. Mask to control which fields get updated. Must be non-empty. - * - * @return \Google\Identity\AccessContextManager\V1\UpdateServicePerimeterRequest - * - * @experimental - */ - public static function build(\Google\Identity\AccessContextManager\V1\ServicePerimeter $servicePerimeter, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setServicePerimeter($servicePerimeter) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Identity\AccessContextManager\V1\ServicePerimeter $service_perimeter - * Required. The updated `ServicePerimeter`. Syntactic correctness of the - * `ServicePerimeter` is a precondition for creation. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Mask to control which fields get updated. Must be non-empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Identity\Accesscontextmanager\V1\AccessContextManager::initOnce(); - parent::__construct($data); - } - - /** - * Required. The updated `ServicePerimeter`. Syntactic correctness of the - * `ServicePerimeter` is a precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Identity\AccessContextManager\V1\ServicePerimeter|null - */ - public function getServicePerimeter() - { - return $this->service_perimeter; - } - - public function hasServicePerimeter() - { - return isset($this->service_perimeter); - } - - public function clearServicePerimeter() - { - unset($this->service_perimeter); - } - - /** - * Required. The updated `ServicePerimeter`. Syntactic correctness of the - * `ServicePerimeter` is a precondition for creation. - * - * Generated from protobuf field .google.identity.accesscontextmanager.v1.ServicePerimeter service_perimeter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Identity\AccessContextManager\V1\ServicePerimeter $var - * @return $this - */ - public function setServicePerimeter($var) - { - GPBUtil::checkMessage($var, \Google\Identity\AccessContextManager\V1\ServicePerimeter::class); - $this->service_perimeter = $var; - - return $this; - } - - /** - * Required. Mask to control which fields get updated. Must be non-empty. - * - * 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. Mask to control which fields get updated. Must be non-empty. - * - * 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/AccessContextManager/v1/samples/V1/AccessContextManagerClient/commit_service_perimeters.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/commit_service_perimeters.php deleted file mode 100644 index 4d294690507f..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/commit_service_perimeters.php +++ /dev/null @@ -1,103 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->commitServicePerimeters($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var CommitServicePerimetersResponse $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 = AccessContextManagerClient::accessPolicyName('[ACCESS_POLICY]'); - - commit_service_perimeters_sample($formattedParent); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_CommitServicePerimeters_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_access_level.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_access_level.php deleted file mode 100644 index dc303ef367e5..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_access_level.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($formattedParent) - ->setAccessLevel($accessLevel); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->createAccessLevel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AccessLevel $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 = AccessContextManagerClient::accessPolicyName('[ACCESS_POLICY]'); - - create_access_level_sample($formattedParent); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_CreateAccessLevel_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_access_policy.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_access_policy.php deleted file mode 100644 index 9667ad91eeb7..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_access_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -createAccessPolicy($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AccessPolicy $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 accesscontextmanager_v1_generated_AccessContextManager_CreateAccessPolicy_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_gcp_user_access_binding.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_gcp_user_access_binding.php deleted file mode 100644 index 508efce70d62..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_gcp_user_access_binding.php +++ /dev/null @@ -1,123 +0,0 @@ -setGroupKey($gcpUserAccessBindingGroupKey) - ->setAccessLevels($formattedGcpUserAccessBindingAccessLevels); - $request = (new CreateGcpUserAccessBindingRequest()) - ->setParent($formattedParent) - ->setGcpUserAccessBinding($gcpUserAccessBinding); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->createGcpUserAccessBinding($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var GcpUserAccessBinding $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 = AccessContextManagerClient::organizationName('[ORGANIZATION]'); - $gcpUserAccessBindingGroupKey = '[GROUP_KEY]'; - $formattedGcpUserAccessBindingAccessLevelsElement = AccessContextManagerClient::accessLevelName( - '[ACCESS_POLICY]', - '[ACCESS_LEVEL]' - ); - - create_gcp_user_access_binding_sample( - $formattedParent, - $gcpUserAccessBindingGroupKey, - $formattedGcpUserAccessBindingAccessLevelsElement - ); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_CreateGcpUserAccessBinding_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_service_perimeter.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_service_perimeter.php deleted file mode 100644 index 4046755ca9c8..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/create_service_perimeter.php +++ /dev/null @@ -1,95 +0,0 @@ -setParent($formattedParent) - ->setServicePerimeter($servicePerimeter); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->createServicePerimeter($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ServicePerimeter $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 = AccessContextManagerClient::accessPolicyName('[ACCESS_POLICY]'); - - create_service_perimeter_sample($formattedParent); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_CreateServicePerimeter_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_access_level.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_access_level.php deleted file mode 100644 index f9ab374643e2..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_access_level.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->deleteAccessLevel($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 = AccessContextManagerClient::accessLevelName('[ACCESS_POLICY]', '[ACCESS_LEVEL]'); - - delete_access_level_sample($formattedName); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_DeleteAccessLevel_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_access_policy.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_access_policy.php deleted file mode 100644 index 60e80a0b46bf..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_access_policy.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->deleteAccessPolicy($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 = AccessContextManagerClient::accessPolicyName('[ACCESS_POLICY]'); - - delete_access_policy_sample($formattedName); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_DeleteAccessPolicy_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_gcp_user_access_binding.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_gcp_user_access_binding.php deleted file mode 100644 index f274e3d557c2..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_gcp_user_access_binding.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->deleteGcpUserAccessBinding($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 = AccessContextManagerClient::gcpUserAccessBindingName( - '[ORGANIZATION]', - '[GCP_USER_ACCESS_BINDING]' - ); - - delete_gcp_user_access_binding_sample($formattedName); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_DeleteGcpUserAccessBinding_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_service_perimeter.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_service_perimeter.php deleted file mode 100644 index 2bd1745193d8..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/delete_service_perimeter.php +++ /dev/null @@ -1,92 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->deleteServicePerimeter($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 = AccessContextManagerClient::servicePerimeterName( - '[ACCESS_POLICY]', - '[SERVICE_PERIMETER]' - ); - - delete_service_perimeter_sample($formattedName); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_DeleteServicePerimeter_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_access_level.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_access_level.php deleted file mode 100644 index 1978c295c991..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_access_level.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AccessLevel $response */ - $response = $accessContextManagerClient->getAccessLevel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AccessContextManagerClient::accessLevelName('[ACCESS_POLICY]', '[ACCESS_LEVEL]'); - - get_access_level_sample($formattedName); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_GetAccessLevel_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_access_policy.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_access_policy.php deleted file mode 100644 index bb4301faeaaf..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_access_policy.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var AccessPolicy $response */ - $response = $accessContextManagerClient->getAccessPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AccessContextManagerClient::accessPolicyName('[ACCESS_POLICY]'); - - get_access_policy_sample($formattedName); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_GetAccessPolicy_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_gcp_user_access_binding.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_gcp_user_access_binding.php deleted file mode 100644 index c9700677eb02..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_gcp_user_access_binding.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GcpUserAccessBinding $response */ - $response = $accessContextManagerClient->getGcpUserAccessBinding($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AccessContextManagerClient::gcpUserAccessBindingName( - '[ORGANIZATION]', - '[GCP_USER_ACCESS_BINDING]' - ); - - get_gcp_user_access_binding_sample($formattedName); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_GetGcpUserAccessBinding_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_iam_policy.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_iam_policy.php deleted file mode 100644 index 81a6b6508942..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $accessContextManagerClient->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 accesscontextmanager_v1_generated_AccessContextManager_GetIamPolicy_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_service_perimeter.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_service_perimeter.php deleted file mode 100644 index d8efe74bca0d..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/get_service_perimeter.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ServicePerimeter $response */ - $response = $accessContextManagerClient->getServicePerimeter($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = AccessContextManagerClient::servicePerimeterName( - '[ACCESS_POLICY]', - '[SERVICE_PERIMETER]' - ); - - get_service_perimeter_sample($formattedName); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_GetServicePerimeter_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_access_levels.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_access_levels.php deleted file mode 100644 index 43ecb0b049a6..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_access_levels.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $accessContextManagerClient->listAccessLevels($request); - - /** @var AccessLevel $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 = AccessContextManagerClient::accessPolicyName('[ACCESS_POLICY]'); - - list_access_levels_sample($formattedParent); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_ListAccessLevels_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_access_policies.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_access_policies.php deleted file mode 100644 index 2ff90d504b92..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_access_policies.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $accessContextManagerClient->listAccessPolicies($request); - - /** @var AccessPolicy $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 = AccessContextManagerClient::organizationName('[ORGANIZATION]'); - - list_access_policies_sample($formattedParent); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_ListAccessPolicies_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_gcp_user_access_bindings.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_gcp_user_access_bindings.php deleted file mode 100644 index 25eee0a9439e..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_gcp_user_access_bindings.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $accessContextManagerClient->listGcpUserAccessBindings($request); - - /** @var GcpUserAccessBinding $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 = AccessContextManagerClient::organizationName('[ORGANIZATION]'); - - list_gcp_user_access_bindings_sample($formattedParent); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_ListGcpUserAccessBindings_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_service_perimeters.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_service_perimeters.php deleted file mode 100644 index 1be2f4c5326f..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/list_service_perimeters.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $accessContextManagerClient->listServicePerimeters($request); - - /** @var ServicePerimeter $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 = AccessContextManagerClient::accessPolicyName('[ACCESS_POLICY]'); - - list_service_perimeters_sample($formattedParent); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_ListServicePerimeters_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/replace_access_levels.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/replace_access_levels.php deleted file mode 100644 index cc45f4e9e8a5..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/replace_access_levels.php +++ /dev/null @@ -1,106 +0,0 @@ -setParent($formattedParent) - ->setAccessLevels($accessLevels); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->replaceAccessLevels($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ReplaceAccessLevelsResponse $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 = AccessContextManagerClient::accessPolicyName('[ACCESS_POLICY]'); - - replace_access_levels_sample($formattedParent); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_ReplaceAccessLevels_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/replace_service_perimeters.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/replace_service_perimeters.php deleted file mode 100644 index 483da0b51fa7..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/replace_service_perimeters.php +++ /dev/null @@ -1,102 +0,0 @@ -setParent($formattedParent) - ->setServicePerimeters($servicePerimeters); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->replaceServicePerimeters($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ReplaceServicePerimetersResponse $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 = AccessContextManagerClient::accessPolicyName('[ACCESS_POLICY]'); - - replace_service_perimeters_sample($formattedParent); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_ReplaceServicePerimeters_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/set_iam_policy.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/set_iam_policy.php deleted file mode 100644 index aa4e144ec419..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/set_iam_policy.php +++ /dev/null @@ -1,78 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $accessContextManagerClient->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 accesscontextmanager_v1_generated_AccessContextManager_SetIamPolicy_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/test_iam_permissions.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/test_iam_permissions.php deleted file mode 100644 index 7691cd365de2..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/test_iam_permissions.php +++ /dev/null @@ -1,83 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $accessContextManagerClient->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 accesscontextmanager_v1_generated_AccessContextManager_TestIamPermissions_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_access_level.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_access_level.php deleted file mode 100644 index 8fc1616fd69a..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_access_level.php +++ /dev/null @@ -1,81 +0,0 @@ -setAccessLevel($accessLevel) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->updateAccessLevel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AccessLevel $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 accesscontextmanager_v1_generated_AccessContextManager_UpdateAccessLevel_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_access_policy.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_access_policy.php deleted file mode 100644 index 25a735caf28c..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_access_policy.php +++ /dev/null @@ -1,79 +0,0 @@ -setPolicy($policy) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->updateAccessPolicy($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AccessPolicy $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 accesscontextmanager_v1_generated_AccessContextManager_UpdateAccessPolicy_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_gcp_user_access_binding.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_gcp_user_access_binding.php deleted file mode 100644 index 7a881c42fe35..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_gcp_user_access_binding.php +++ /dev/null @@ -1,115 +0,0 @@ -setGroupKey($gcpUserAccessBindingGroupKey) - ->setAccessLevels($formattedGcpUserAccessBindingAccessLevels); - $updateMask = new FieldMask(); - $request = (new UpdateGcpUserAccessBindingRequest()) - ->setGcpUserAccessBinding($gcpUserAccessBinding) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->updateGcpUserAccessBinding($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var GcpUserAccessBinding $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 -{ - $gcpUserAccessBindingGroupKey = '[GROUP_KEY]'; - $formattedGcpUserAccessBindingAccessLevelsElement = AccessContextManagerClient::accessLevelName( - '[ACCESS_POLICY]', - '[ACCESS_LEVEL]' - ); - - update_gcp_user_access_binding_sample( - $gcpUserAccessBindingGroupKey, - $formattedGcpUserAccessBindingAccessLevelsElement - ); -} -// [END accesscontextmanager_v1_generated_AccessContextManager_UpdateGcpUserAccessBinding_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_service_perimeter.php b/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_service_perimeter.php deleted file mode 100644 index 70056b24e891..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/samples/V1/AccessContextManagerClient/update_service_perimeter.php +++ /dev/null @@ -1,81 +0,0 @@ -setServicePerimeter($servicePerimeter) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $accessContextManagerClient->updateServicePerimeter($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ServicePerimeter $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 accesscontextmanager_v1_generated_AccessContextManager_UpdateServicePerimeter_sync] diff --git a/owl-bot-staging/AccessContextManager/v1/src/V1/Client/AccessContextManagerClient.php b/owl-bot-staging/AccessContextManager/v1/src/V1/Client/AccessContextManagerClient.php deleted file mode 100644 index ff4a31971242..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/src/V1/Client/AccessContextManagerClient.php +++ /dev/null @@ -1,1234 +0,0 @@ - commitServicePerimetersAsync(CommitServicePerimetersRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAccessLevelAsync(CreateAccessLevelRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAccessPolicyAsync(AccessPolicy $request, array $optionalArgs = []) - * @method PromiseInterface createGcpUserAccessBindingAsync(CreateGcpUserAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServicePerimeterAsync(CreateServicePerimeterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccessLevelAsync(DeleteAccessLevelRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAccessPolicyAsync(DeleteAccessPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGcpUserAccessBindingAsync(DeleteGcpUserAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServicePerimeterAsync(DeleteServicePerimeterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAccessLevelAsync(GetAccessLevelRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAccessPolicyAsync(GetAccessPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGcpUserAccessBindingAsync(GetGcpUserAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServicePerimeterAsync(GetServicePerimeterRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccessLevelsAsync(ListAccessLevelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAccessPoliciesAsync(ListAccessPoliciesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGcpUserAccessBindingsAsync(ListGcpUserAccessBindingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicePerimetersAsync(ListServicePerimetersRequest $request, array $optionalArgs = []) - * @method PromiseInterface replaceAccessLevelsAsync(ReplaceAccessLevelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface replaceServicePerimetersAsync(ReplaceServicePerimetersRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAccessLevelAsync(UpdateAccessLevelRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateAccessPolicyAsync(UpdateAccessPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGcpUserAccessBindingAsync(UpdateGcpUserAccessBindingRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServicePerimeterAsync(UpdateServicePerimeterRequest $request, array $optionalArgs = []) - */ -final class AccessContextManagerClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.identity.accesscontextmanager.v1.AccessContextManager'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'accesscontextmanager.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'accesscontextmanager.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/access_context_manager_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/access_context_manager_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/access_context_manager_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/access_context_manager_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 access_level - * resource. - * - * @param string $accessPolicy - * @param string $accessLevel - * - * @return string The formatted access_level resource. - */ - public static function accessLevelName(string $accessPolicy, string $accessLevel): string - { - return self::getPathTemplate('accessLevel')->render([ - 'access_policy' => $accessPolicy, - 'access_level' => $accessLevel, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * access_policy resource. - * - * @param string $accessPolicy - * - * @return string The formatted access_policy resource. - */ - public static function accessPolicyName(string $accessPolicy): string - { - return self::getPathTemplate('accessPolicy')->render([ - 'access_policy' => $accessPolicy, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * gcp_user_access_binding resource. - * - * @param string $organization - * @param string $gcpUserAccessBinding - * - * @return string The formatted gcp_user_access_binding resource. - */ - public static function gcpUserAccessBindingName(string $organization, string $gcpUserAccessBinding): string - { - return self::getPathTemplate('gcpUserAccessBinding')->render([ - 'organization' => $organization, - 'gcp_user_access_binding' => $gcpUserAccessBinding, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - */ - public static function organizationName(string $organization): string - { - return self::getPathTemplate('organization')->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * service_perimeter resource. - * - * @param string $accessPolicy - * @param string $servicePerimeter - * - * @return string The formatted service_perimeter resource. - */ - public static function servicePerimeterName(string $accessPolicy, string $servicePerimeter): string - { - return self::getPathTemplate('servicePerimeter')->render([ - 'access_policy' => $accessPolicy, - 'service_perimeter' => $servicePerimeter, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - accessLevel: accessPolicies/{access_policy}/accessLevels/{access_level} - * - accessPolicy: accessPolicies/{access_policy} - * - gcpUserAccessBinding: organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding} - * - organization: organizations/{organization} - * - servicePerimeter: accessPolicies/{access_policy}/servicePerimeters/{service_perimeter} - * - * 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 'accesscontextmanager.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); - } - - /** - * Commits the dry-run specification for all the [service perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] in an - * [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. - * A commit operation on a service perimeter involves copying its `spec` field - * to the `status` field of the service perimeter. Only [service perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] with - * `use_explicit_dry_run_spec` field set to true are affected by a commit - * operation. The long-running operation from this RPC has a successful - * status after the dry-run specifications for all the [service perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] have been - * committed. If a commit fails, it causes the long-running operation to - * return an error response and the entire commit operation is cancelled. - * When successful, the Operation.response field contains - * CommitServicePerimetersResponse. The `dry_run` and the `spec` fields are - * cleared after a successful commit operation. - * - * The async variant is - * {@see AccessContextManagerClient::commitServicePerimetersAsync()} . - * - * @example samples/V1/AccessContextManagerClient/commit_service_perimeters.php - * - * @param CommitServicePerimetersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 commitServicePerimeters(CommitServicePerimetersRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CommitServicePerimeters', $request, $callOptions)->wait(); - } - - /** - * Creates an [access level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running - * operation from this RPC has a successful status after the [access - * level] [google.identity.accesscontextmanager.v1.AccessLevel] - * propagates to long-lasting storage. If [access levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] contain - * errors, an error response is returned for the first error encountered. - * - * The async variant is {@see AccessContextManagerClient::createAccessLevelAsync()} - * . - * - * @example samples/V1/AccessContextManagerClient/create_access_level.php - * - * @param CreateAccessLevelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createAccessLevel(CreateAccessLevelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateAccessLevel', $request, $callOptions)->wait(); - } - - /** - * Creates an access policy. This method fails if the organization already has - * an access policy. The long-running operation has a successful status - * after the access policy propagates to long-lasting storage. - * Syntactic and basic semantic errors are returned in `metadata` as a - * BadRequest proto. - * - * The async variant is - * {@see AccessContextManagerClient::createAccessPolicyAsync()} . - * - * @example samples/V1/AccessContextManagerClient/create_access_policy.php - * - * @param AccessPolicy $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createAccessPolicy(AccessPolicy $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateAccessPolicy', $request, $callOptions)->wait(); - } - - /** - * Creates a [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. If the - * client specifies a [name] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.name], - * the server ignores it. Fails if a resource already exists with the same - * [group_key] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding.group_key]. - * Completion of this long-running operation does not necessarily signify that - * the new binding is deployed onto all affected users, which may take more - * time. - * - * The async variant is - * {@see AccessContextManagerClient::createGcpUserAccessBindingAsync()} . - * - * @example samples/V1/AccessContextManagerClient/create_gcp_user_access_binding.php - * - * @param CreateGcpUserAccessBindingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createGcpUserAccessBinding(CreateGcpUserAccessBindingRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateGcpUserAccessBinding', $request, $callOptions)->wait(); - } - - /** - * Creates a [service perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. The - * long-running operation from this RPC has a successful status after the - * [service perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] - * propagates to long-lasting storage. If a [service perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] contains - * errors, an error response is returned for the first error encountered. - * - * The async variant is - * {@see AccessContextManagerClient::createServicePerimeterAsync()} . - * - * @example samples/V1/AccessContextManagerClient/create_service_perimeter.php - * - * @param CreateServicePerimeterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createServicePerimeter(CreateServicePerimeterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateServicePerimeter', $request, $callOptions)->wait(); - } - - /** - * Deletes an [access level] - * [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource - * name. The long-running operation from this RPC has a successful status - * after the [access level] - * [google.identity.accesscontextmanager.v1.AccessLevel] has been removed - * from long-lasting storage. - * - * The async variant is {@see AccessContextManagerClient::deleteAccessLevelAsync()} - * . - * - * @example samples/V1/AccessContextManagerClient/delete_access_level.php - * - * @param DeleteAccessLevelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteAccessLevel(DeleteAccessLevelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteAccessLevel', $request, $callOptions)->wait(); - } - - /** - * Deletes an [access policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] based on the - * resource name. The long-running operation has a successful status after the - * [access policy] [google.identity.accesscontextmanager.v1.AccessPolicy] - * is removed from long-lasting storage. - * - * The async variant is - * {@see AccessContextManagerClient::deleteAccessPolicyAsync()} . - * - * @example samples/V1/AccessContextManagerClient/delete_access_policy.php - * - * @param DeleteAccessPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteAccessPolicy(DeleteAccessPolicyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteAccessPolicy', $request, $callOptions)->wait(); - } - - /** - * Deletes a [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. - * Completion of this long-running operation does not necessarily signify that - * the binding deletion is deployed onto all affected users, which may take - * more time. - * - * The async variant is - * {@see AccessContextManagerClient::deleteGcpUserAccessBindingAsync()} . - * - * @example samples/V1/AccessContextManagerClient/delete_gcp_user_access_binding.php - * - * @param DeleteGcpUserAccessBindingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteGcpUserAccessBinding(DeleteGcpUserAccessBindingRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteGcpUserAccessBinding', $request, $callOptions)->wait(); - } - - /** - * Deletes a [service perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the - * resource name. The long-running operation from this RPC has a successful - * status after the [service perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] is removed from - * long-lasting storage. - * - * The async variant is - * {@see AccessContextManagerClient::deleteServicePerimeterAsync()} . - * - * @example samples/V1/AccessContextManagerClient/delete_service_perimeter.php - * - * @param DeleteServicePerimeterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteServicePerimeter(DeleteServicePerimeterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteServicePerimeter', $request, $callOptions)->wait(); - } - - /** - * Gets an [access level] - * [google.identity.accesscontextmanager.v1.AccessLevel] based on the resource - * name. - * - * The async variant is {@see AccessContextManagerClient::getAccessLevelAsync()} . - * - * @example samples/V1/AccessContextManagerClient/get_access_level.php - * - * @param GetAccessLevelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AccessLevel - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAccessLevel(GetAccessLevelRequest $request, array $callOptions = []): AccessLevel - { - return $this->startApiCall('GetAccessLevel', $request, $callOptions)->wait(); - } - - /** - * Returns an [access policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] based on the name. - * - * The async variant is {@see AccessContextManagerClient::getAccessPolicyAsync()} . - * - * @example samples/V1/AccessContextManagerClient/get_access_policy.php - * - * @param GetAccessPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AccessPolicy - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAccessPolicy(GetAccessPolicyRequest $request, array $callOptions = []): AccessPolicy - { - return $this->startApiCall('GetAccessPolicy', $request, $callOptions)->wait(); - } - - /** - * Gets the [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] with - * the given name. - * - * The async variant is - * {@see AccessContextManagerClient::getGcpUserAccessBindingAsync()} . - * - * @example samples/V1/AccessContextManagerClient/get_gcp_user_access_binding.php - * - * @param GetGcpUserAccessBindingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GcpUserAccessBinding - * - * @throws ApiException Thrown if the API call fails. - */ - public function getGcpUserAccessBinding(GetGcpUserAccessBindingRequest $request, array $callOptions = []): GcpUserAccessBinding - { - return $this->startApiCall('GetGcpUserAccessBinding', $request, $callOptions)->wait(); - } - - /** - * Gets the IAM policy for the specified Access Context Manager - * [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * The async variant is {@see AccessContextManagerClient::getIamPolicyAsync()} . - * - * @example samples/V1/AccessContextManagerClient/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 [service perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] based on the - * resource name. - * - * The async variant is - * {@see AccessContextManagerClient::getServicePerimeterAsync()} . - * - * @example samples/V1/AccessContextManagerClient/get_service_perimeter.php - * - * @param GetServicePerimeterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ServicePerimeter - * - * @throws ApiException Thrown if the API call fails. - */ - public function getServicePerimeter(GetServicePerimeterRequest $request, array $callOptions = []): ServicePerimeter - { - return $this->startApiCall('GetServicePerimeter', $request, $callOptions)->wait(); - } - - /** - * Lists all [access levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] for an access - * policy. - * - * The async variant is {@see AccessContextManagerClient::listAccessLevelsAsync()} - * . - * - * @example samples/V1/AccessContextManagerClient/list_access_levels.php - * - * @param ListAccessLevelsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listAccessLevels(ListAccessLevelsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccessLevels', $request, $callOptions); - } - - /** - * Lists all [access policies] - * [google.identity.accesscontextmanager.v1.AccessPolicy] in an - * organization. - * - * The async variant is - * {@see AccessContextManagerClient::listAccessPoliciesAsync()} . - * - * @example samples/V1/AccessContextManagerClient/list_access_policies.php - * - * @param ListAccessPoliciesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listAccessPolicies(ListAccessPoliciesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAccessPolicies', $request, $callOptions); - } - - /** - * Lists all [GcpUserAccessBindings] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding] for a - * Google Cloud organization. - * - * The async variant is - * {@see AccessContextManagerClient::listGcpUserAccessBindingsAsync()} . - * - * @example samples/V1/AccessContextManagerClient/list_gcp_user_access_bindings.php - * - * @param ListGcpUserAccessBindingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listGcpUserAccessBindings(ListGcpUserAccessBindingsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGcpUserAccessBindings', $request, $callOptions); - } - - /** - * Lists all [service perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] for an - * access policy. - * - * The async variant is - * {@see AccessContextManagerClient::listServicePerimetersAsync()} . - * - * @example samples/V1/AccessContextManagerClient/list_service_perimeters.php - * - * @param ListServicePerimetersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listServicePerimeters(ListServicePerimetersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListServicePerimeters', $request, $callOptions); - } - - /** - * Replaces all existing [access levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] in an [access - * policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with - * the [access levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] provided. This - * is done atomically. The long-running operation from this RPC has a - * successful status after all replacements propagate to long-lasting - * storage. If the replacement contains errors, an error response is returned - * for the first error encountered. Upon error, the replacement is cancelled, - * and existing [access levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] are not - * affected. The Operation.response field contains - * ReplaceAccessLevelsResponse. Removing [access levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] contained in existing - * [service perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] result in an - * error. - * - * The async variant is - * {@see AccessContextManagerClient::replaceAccessLevelsAsync()} . - * - * @example samples/V1/AccessContextManagerClient/replace_access_levels.php - * - * @param ReplaceAccessLevelsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 replaceAccessLevels(ReplaceAccessLevelsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ReplaceAccessLevels', $request, $callOptions)->wait(); - } - - /** - * Replace all existing [service perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] in an [access - * policy] [google.identity.accesscontextmanager.v1.AccessPolicy] with the - * [service perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] provided. This - * is done atomically. The long-running operation from this RPC has a - * successful status after all replacements propagate to long-lasting storage. - * Replacements containing errors result in an error response for the first - * error encountered. Upon an error, replacement are cancelled and existing - * [service perimeters] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] are not - * affected. The Operation.response field contains - * ReplaceServicePerimetersResponse. - * - * The async variant is - * {@see AccessContextManagerClient::replaceServicePerimetersAsync()} . - * - * @example samples/V1/AccessContextManagerClient/replace_service_perimeters.php - * - * @param ReplaceServicePerimetersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 replaceServicePerimeters(ReplaceServicePerimetersRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ReplaceServicePerimeters', $request, $callOptions)->wait(); - } - - /** - * Sets the IAM policy for the specified Access Context Manager - * [access policy][google.identity.accesscontextmanager.v1.AccessPolicy]. - * This method replaces the existing IAM policy on the access policy. The IAM - * policy controls the set of users who can perform specific operations on the - * Access Context Manager [access - * policy][google.identity.accesscontextmanager.v1.AccessPolicy]. - * - * The async variant is {@see AccessContextManagerClient::setIamPolicyAsync()} . - * - * @example samples/V1/AccessContextManagerClient/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 the IAM permissions that the caller has on the specified Access - * Context Manager resource. The resource can be an - * [AccessPolicy][google.identity.accesscontextmanager.v1.AccessPolicy], - * [AccessLevel][google.identity.accesscontextmanager.v1.AccessLevel], or - * [ServicePerimeter][google.identity.accesscontextmanager.v1.ServicePerimeter - * ]. This method does not support other resources. - * - * The async variant is - * {@see AccessContextManagerClient::testIamPermissionsAsync()} . - * - * @example samples/V1/AccessContextManagerClient/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 an [access level] - * [google.identity.accesscontextmanager.v1.AccessLevel]. The long-running - * operation from this RPC has a successful status after the changes to - * the [access level] - * [google.identity.accesscontextmanager.v1.AccessLevel] propagate - * to long-lasting storage. If [access levels] - * [google.identity.accesscontextmanager.v1.AccessLevel] contain - * errors, an error response is returned for the first error encountered. - * - * The async variant is {@see AccessContextManagerClient::updateAccessLevelAsync()} - * . - * - * @example samples/V1/AccessContextManagerClient/update_access_level.php - * - * @param UpdateAccessLevelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateAccessLevel(UpdateAccessLevelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateAccessLevel', $request, $callOptions)->wait(); - } - - /** - * Updates an [access policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy]. The - * long-running operation from this RPC has a successful status after the - * changes to the [access policy] - * [google.identity.accesscontextmanager.v1.AccessPolicy] propagate - * to long-lasting storage. - * - * The async variant is - * {@see AccessContextManagerClient::updateAccessPolicyAsync()} . - * - * @example samples/V1/AccessContextManagerClient/update_access_policy.php - * - * @param UpdateAccessPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateAccessPolicy(UpdateAccessPolicyRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateAccessPolicy', $request, $callOptions)->wait(); - } - - /** - * Updates a [GcpUserAccessBinding] - * [google.identity.accesscontextmanager.v1.GcpUserAccessBinding]. - * Completion of this long-running operation does not necessarily signify that - * the changed binding is deployed onto all affected users, which may take - * more time. - * - * The async variant is - * {@see AccessContextManagerClient::updateGcpUserAccessBindingAsync()} . - * - * @example samples/V1/AccessContextManagerClient/update_gcp_user_access_binding.php - * - * @param UpdateGcpUserAccessBindingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateGcpUserAccessBinding(UpdateGcpUserAccessBindingRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateGcpUserAccessBinding', $request, $callOptions)->wait(); - } - - /** - * Updates a [service perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter]. The - * long-running operation from this RPC has a successful status after the - * [service perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] - * propagates to long-lasting storage. If a [service perimeter] - * [google.identity.accesscontextmanager.v1.ServicePerimeter] contains - * errors, an error response is returned for the first error encountered. - * - * The async variant is - * {@see AccessContextManagerClient::updateServicePerimeterAsync()} . - * - * @example samples/V1/AccessContextManagerClient/update_service_perimeter.php - * - * @param UpdateServicePerimeterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateServicePerimeter(UpdateServicePerimeterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateServicePerimeter', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AccessContextManager/v1/src/V1/gapic_metadata.json b/owl-bot-staging/AccessContextManager/v1/src/V1/gapic_metadata.json deleted file mode 100644 index d9b2cfde7bc7..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,148 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.identity.accesscontextmanager.v1", - "libraryPackage": "Google\\Identity\\AccessContextManager\\V1", - "services": { - "AccessContextManager": { - "clients": { - "grpc": { - "libraryClient": "AccessContextManagerGapicClient", - "rpcs": { - "CommitServicePerimeters": { - "methods": [ - "commitServicePerimeters" - ] - }, - "CreateAccessLevel": { - "methods": [ - "createAccessLevel" - ] - }, - "CreateAccessPolicy": { - "methods": [ - "createAccessPolicy" - ] - }, - "CreateGcpUserAccessBinding": { - "methods": [ - "createGcpUserAccessBinding" - ] - }, - "CreateServicePerimeter": { - "methods": [ - "createServicePerimeter" - ] - }, - "DeleteAccessLevel": { - "methods": [ - "deleteAccessLevel" - ] - }, - "DeleteAccessPolicy": { - "methods": [ - "deleteAccessPolicy" - ] - }, - "DeleteGcpUserAccessBinding": { - "methods": [ - "deleteGcpUserAccessBinding" - ] - }, - "DeleteServicePerimeter": { - "methods": [ - "deleteServicePerimeter" - ] - }, - "GetAccessLevel": { - "methods": [ - "getAccessLevel" - ] - }, - "GetAccessPolicy": { - "methods": [ - "getAccessPolicy" - ] - }, - "GetGcpUserAccessBinding": { - "methods": [ - "getGcpUserAccessBinding" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "GetServicePerimeter": { - "methods": [ - "getServicePerimeter" - ] - }, - "ListAccessLevels": { - "methods": [ - "listAccessLevels" - ] - }, - "ListAccessPolicies": { - "methods": [ - "listAccessPolicies" - ] - }, - "ListGcpUserAccessBindings": { - "methods": [ - "listGcpUserAccessBindings" - ] - }, - "ListServicePerimeters": { - "methods": [ - "listServicePerimeters" - ] - }, - "ReplaceAccessLevels": { - "methods": [ - "replaceAccessLevels" - ] - }, - "ReplaceServicePerimeters": { - "methods": [ - "replaceServicePerimeters" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "UpdateAccessLevel": { - "methods": [ - "updateAccessLevel" - ] - }, - "UpdateAccessPolicy": { - "methods": [ - "updateAccessPolicy" - ] - }, - "UpdateGcpUserAccessBinding": { - "methods": [ - "updateGcpUserAccessBinding" - ] - }, - "UpdateServicePerimeter": { - "methods": [ - "updateServicePerimeter" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_client_config.json b/owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_client_config.json deleted file mode 100644 index 469d6f4737c6..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_client_config.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "interfaces": { - "google.identity.accesscontextmanager.v1.AccessContextManager": { - "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": { - "CommitServicePerimeters": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAccessLevel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAccessPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateGcpUserAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateServicePerimeter": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAccessLevel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAccessPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteGcpUserAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteServicePerimeter": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetAccessLevel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetAccessPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetGcpUserAccessBinding": { - "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" - }, - "GetServicePerimeter": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListAccessLevels": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListAccessPolicies": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListGcpUserAccessBindings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListServicePerimeters": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ReplaceAccessLevels": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ReplaceServicePerimeters": { - "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" - }, - "UpdateAccessLevel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateAccessPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateGcpUserAccessBinding": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateServicePerimeter": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_descriptor_config.php b/owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_descriptor_config.php deleted file mode 100644 index ef0360386e08..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_descriptor_config.php +++ /dev/null @@ -1,472 +0,0 @@ - [ - 'google.identity.accesscontextmanager.v1.AccessContextManager' => [ - 'CommitServicePerimeters' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\CommitServicePerimetersResponse', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAccessLevel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\AccessLevel', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAccessPolicy' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\AccessPolicy', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - ], - 'CreateGcpUserAccessBinding' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\GcpUserAccessBinding', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\GcpUserAccessBindingOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateServicePerimeter' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\ServicePerimeter', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAccessLevel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAccessPolicy' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGcpUserAccessBinding' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\GcpUserAccessBindingOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteServicePerimeter' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ReplaceAccessLevels' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\ReplaceAccessLevelsResponse', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ReplaceServicePerimeters' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\ReplaceServicePerimetersResponse', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateAccessLevel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\AccessLevel', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'access_level.name', - 'fieldAccessors' => [ - 'getAccessLevel', - 'getName', - ], - ], - ], - ], - 'UpdateAccessPolicy' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\AccessPolicy', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'policy.name', - 'fieldAccessors' => [ - 'getPolicy', - 'getName', - ], - ], - ], - ], - 'UpdateGcpUserAccessBinding' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\GcpUserAccessBinding', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\GcpUserAccessBindingOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'gcp_user_access_binding.name', - 'fieldAccessors' => [ - 'getGcpUserAccessBinding', - 'getName', - ], - ], - ], - ], - 'UpdateServicePerimeter' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Identity\AccessContextManager\V1\ServicePerimeter', - 'metadataReturnType' => '\Google\Identity\AccessContextManager\V1\AccessContextManagerOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service_perimeter.name', - 'fieldAccessors' => [ - 'getServicePerimeter', - 'getName', - ], - ], - ], - ], - 'GetAccessLevel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Identity\AccessContextManager\V1\AccessLevel', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAccessPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Identity\AccessContextManager\V1\AccessPolicy', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetGcpUserAccessBinding' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Identity\AccessContextManager\V1\GcpUserAccessBinding', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'GetServicePerimeter' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Identity\AccessContextManager\V1\ServicePerimeter', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAccessLevels' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccessLevels', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Identity\AccessContextManager\V1\ListAccessLevelsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListAccessPolicies' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAccessPolicies', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Identity\AccessContextManager\V1\ListAccessPoliciesResponse', - ], - 'ListGcpUserAccessBindings' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGcpUserAccessBindings', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Identity\AccessContextManager\V1\ListGcpUserAccessBindingsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListServicePerimeters' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getServicePerimeters', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Identity\AccessContextManager\V1\ListServicePerimetersResponse', - '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', - ], - ], - ], - ], - 'templateMap' => [ - 'accessLevel' => 'accessPolicies/{access_policy}/accessLevels/{access_level}', - 'accessPolicy' => 'accessPolicies/{access_policy}', - 'gcpUserAccessBinding' => 'organizations/{organization}/gcpUserAccessBindings/{gcp_user_access_binding}', - 'organization' => 'organizations/{organization}', - 'servicePerimeter' => 'accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_rest_client_config.php b/owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_rest_client_config.php deleted file mode 100644 index 882136ccb86d..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/src/V1/resources/access_context_manager_rest_client_config.php +++ /dev/null @@ -1,359 +0,0 @@ - [ - 'google.identity.accesscontextmanager.v1.AccessContextManager' => [ - 'CommitServicePerimeters' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=accessPolicies/*}/servicePerimeters:commit', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAccessLevel' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=accessPolicies/*}/accessLevels', - 'body' => 'access_level', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAccessPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/accessPolicies', - 'body' => '*', - ], - 'CreateGcpUserAccessBinding' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=organizations/*}/gcpUserAccessBindings', - 'body' => 'gcp_user_access_binding', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateServicePerimeter' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=accessPolicies/*}/servicePerimeters', - 'body' => 'service_perimeter', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAccessLevel' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=accessPolicies/*/accessLevels/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteAccessPolicy' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=accessPolicies/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGcpUserAccessBinding' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/gcpUserAccessBindings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteServicePerimeter' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=accessPolicies/*/servicePerimeters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAccessLevel' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=accessPolicies/*/accessLevels/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAccessPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=accessPolicies/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGcpUserAccessBinding' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/gcpUserAccessBindings/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=accessPolicies/*}:getIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'GetServicePerimeter' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=accessPolicies/*/servicePerimeters/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAccessLevels' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=accessPolicies/*}/accessLevels', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAccessPolicies' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/accessPolicies', - 'queryParams' => [ - 'parent', - ], - ], - 'ListGcpUserAccessBindings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*}/gcpUserAccessBindings', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListServicePerimeters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=accessPolicies/*}/servicePerimeters', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ReplaceAccessLevels' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=accessPolicies/*}/accessLevels:replaceAll', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ReplaceServicePerimeters' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=accessPolicies/*}/servicePerimeters:replaceAll', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=accessPolicies/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=accessPolicies/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=accessPolicies/*/accessLevels/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=accessPolicies/*/servicePerimeters/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateAccessLevel' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{access_level.name=accessPolicies/*/accessLevels/*}', - 'body' => 'access_level', - 'placeholders' => [ - 'access_level.name' => [ - 'getters' => [ - 'getAccessLevel', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateAccessPolicy' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{policy.name=accessPolicies/*}', - 'body' => 'policy', - 'placeholders' => [ - 'policy.name' => [ - 'getters' => [ - 'getPolicy', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateGcpUserAccessBinding' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{gcp_user_access_binding.name=organizations/*/gcpUserAccessBindings/*}', - 'body' => 'gcp_user_access_binding', - 'placeholders' => [ - 'gcp_user_access_binding.name' => [ - 'getters' => [ - 'getGcpUserAccessBinding', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateServicePerimeter' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{service_perimeter.name=accessPolicies/*/servicePerimeters/*}', - 'body' => 'service_perimeter', - 'placeholders' => [ - 'service_perimeter.name' => [ - 'getters' => [ - 'getServicePerimeter', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=operations/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AccessContextManager/v1/tests/Unit/V1/Client/AccessContextManagerClientTest.php b/owl-bot-staging/AccessContextManager/v1/tests/Unit/V1/Client/AccessContextManagerClientTest.php deleted file mode 100644 index 71e9b0494fd8..000000000000 --- a/owl-bot-staging/AccessContextManager/v1/tests/Unit/V1/Client/AccessContextManagerClientTest.php +++ /dev/null @@ -1,2873 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return AccessContextManagerClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new AccessContextManagerClient($options); - } - - /** @test */ - public function commitServicePerimetersTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/commitServicePerimetersTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new CommitServicePerimetersResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/commitServicePerimetersTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $request = (new CommitServicePerimetersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->commitServicePerimeters($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.identity.accesscontextmanager.v1.AccessContextManager/CommitServicePerimeters', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/commitServicePerimetersTest'); - $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 commitServicePerimetersExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/commitServicePerimetersTest'); - $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->accessPolicyName('[ACCESS_POLICY]'); - $request = (new CommitServicePerimetersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->commitServicePerimeters($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/commitServicePerimetersTest'); - 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 createAccessLevelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAccessLevelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $title = 'title110371416'; - $description = 'description-1724546052'; - $expectedResponse = new AccessLevel(); - $expectedResponse->setName($name); - $expectedResponse->setTitle($title); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAccessLevelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $accessLevel = new AccessLevel(); - $request = (new CreateAccessLevelRequest()) - ->setParent($formattedParent) - ->setAccessLevel($accessLevel); - $response = $gapicClient->createAccessLevel($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.identity.accesscontextmanager.v1.AccessContextManager/CreateAccessLevel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAccessLevel(); - $this->assertProtobufEquals($accessLevel, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAccessLevelTest'); - $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 createAccessLevelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAccessLevelTest'); - $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->accessPolicyName('[ACCESS_POLICY]'); - $accessLevel = new AccessLevel(); - $request = (new CreateAccessLevelRequest()) - ->setParent($formattedParent) - ->setAccessLevel($accessLevel); - $response = $gapicClient->createAccessLevel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAccessLevelTest'); - 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 createAccessPolicyTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAccessPolicyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $parent2 = 'parent21175163357'; - $title2 = 'title2-1307248629'; - $etag2 = 'etag2-1293302904'; - $expectedResponse = new AccessPolicy(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent2); - $expectedResponse->setTitle($title2); - $expectedResponse->setEtag($etag2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAccessPolicyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new AccessPolicy(); - $response = $gapicClient->createAccessPolicy($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.identity.accesscontextmanager.v1.AccessContextManager/CreateAccessPolicy', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAccessPolicyTest'); - $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 createAccessPolicyExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAccessPolicyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new AccessPolicy(); - $response = $gapicClient->createAccessPolicy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAccessPolicyTest'); - 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 createGcpUserAccessBindingTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createGcpUserAccessBindingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $groupKey = 'groupKey-1482658657'; - $expectedResponse = new GcpUserAccessBinding(); - $expectedResponse->setName($name); - $expectedResponse->setGroupKey($groupKey); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createGcpUserAccessBindingTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->organizationName('[ORGANIZATION]'); - $gcpUserAccessBinding = new GcpUserAccessBinding(); - $gcpUserAccessBindingGroupKey = 'gcpUserAccessBindingGroupKey-1338087614'; - $gcpUserAccessBinding->setGroupKey($gcpUserAccessBindingGroupKey); - $gcpUserAccessBindingAccessLevels = [ - $gapicClient->accessLevelName('[ACCESS_POLICY]', '[ACCESS_LEVEL]'), - ]; - $gcpUserAccessBinding->setAccessLevels($gcpUserAccessBindingAccessLevels); - $request = (new CreateGcpUserAccessBindingRequest()) - ->setParent($formattedParent) - ->setGcpUserAccessBinding($gcpUserAccessBinding); - $response = $gapicClient->createGcpUserAccessBinding($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.identity.accesscontextmanager.v1.AccessContextManager/CreateGcpUserAccessBinding', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getGcpUserAccessBinding(); - $this->assertProtobufEquals($gcpUserAccessBinding, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createGcpUserAccessBindingTest'); - $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 createGcpUserAccessBindingExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createGcpUserAccessBindingTest'); - $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->organizationName('[ORGANIZATION]'); - $gcpUserAccessBinding = new GcpUserAccessBinding(); - $gcpUserAccessBindingGroupKey = 'gcpUserAccessBindingGroupKey-1338087614'; - $gcpUserAccessBinding->setGroupKey($gcpUserAccessBindingGroupKey); - $gcpUserAccessBindingAccessLevels = [ - $gapicClient->accessLevelName('[ACCESS_POLICY]', '[ACCESS_LEVEL]'), - ]; - $gcpUserAccessBinding->setAccessLevels($gcpUserAccessBindingAccessLevels); - $request = (new CreateGcpUserAccessBindingRequest()) - ->setParent($formattedParent) - ->setGcpUserAccessBinding($gcpUserAccessBinding); - $response = $gapicClient->createGcpUserAccessBinding($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createGcpUserAccessBindingTest'); - 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 createServicePerimeterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServicePerimeterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $title = 'title110371416'; - $description = 'description-1724546052'; - $useExplicitDryRunSpec = true; - $expectedResponse = new ServicePerimeter(); - $expectedResponse->setName($name); - $expectedResponse->setTitle($title); - $expectedResponse->setDescription($description); - $expectedResponse->setUseExplicitDryRunSpec($useExplicitDryRunSpec); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createServicePerimeterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $servicePerimeter = new ServicePerimeter(); - $request = (new CreateServicePerimeterRequest()) - ->setParent($formattedParent) - ->setServicePerimeter($servicePerimeter); - $response = $gapicClient->createServicePerimeter($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.identity.accesscontextmanager.v1.AccessContextManager/CreateServicePerimeter', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getServicePerimeter(); - $this->assertProtobufEquals($servicePerimeter, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServicePerimeterTest'); - $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 createServicePerimeterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServicePerimeterTest'); - $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->accessPolicyName('[ACCESS_POLICY]'); - $servicePerimeter = new ServicePerimeter(); - $request = (new CreateServicePerimeterRequest()) - ->setParent($formattedParent) - ->setServicePerimeter($servicePerimeter); - $response = $gapicClient->createServicePerimeter($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServicePerimeterTest'); - 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 deleteAccessLevelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteAccessLevelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAccessLevelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->accessLevelName('[ACCESS_POLICY]', '[ACCESS_LEVEL]'); - $request = (new DeleteAccessLevelRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAccessLevel($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.identity.accesscontextmanager.v1.AccessContextManager/DeleteAccessLevel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAccessLevelTest'); - $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 deleteAccessLevelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteAccessLevelTest'); - $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->accessLevelName('[ACCESS_POLICY]', '[ACCESS_LEVEL]'); - $request = (new DeleteAccessLevelRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAccessLevel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAccessLevelTest'); - 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 deleteAccessPolicyTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteAccessPolicyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAccessPolicyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $request = (new DeleteAccessPolicyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAccessPolicy($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.identity.accesscontextmanager.v1.AccessContextManager/DeleteAccessPolicy', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAccessPolicyTest'); - $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 deleteAccessPolicyExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteAccessPolicyTest'); - $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->accessPolicyName('[ACCESS_POLICY]'); - $request = (new DeleteAccessPolicyRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAccessPolicy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAccessPolicyTest'); - 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 deleteGcpUserAccessBindingTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteGcpUserAccessBindingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteGcpUserAccessBindingTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->gcpUserAccessBindingName('[ORGANIZATION]', '[GCP_USER_ACCESS_BINDING]'); - $request = (new DeleteGcpUserAccessBindingRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteGcpUserAccessBinding($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.identity.accesscontextmanager.v1.AccessContextManager/DeleteGcpUserAccessBinding', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteGcpUserAccessBindingTest'); - $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 deleteGcpUserAccessBindingExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteGcpUserAccessBindingTest'); - $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->gcpUserAccessBindingName('[ORGANIZATION]', '[GCP_USER_ACCESS_BINDING]'); - $request = (new DeleteGcpUserAccessBindingRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteGcpUserAccessBinding($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteGcpUserAccessBindingTest'); - 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 deleteServicePerimeterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServicePerimeterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteServicePerimeterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->servicePerimeterName('[ACCESS_POLICY]', '[SERVICE_PERIMETER]'); - $request = (new DeleteServicePerimeterRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteServicePerimeter($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.identity.accesscontextmanager.v1.AccessContextManager/DeleteServicePerimeter', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServicePerimeterTest'); - $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 deleteServicePerimeterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServicePerimeterTest'); - $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->servicePerimeterName('[ACCESS_POLICY]', '[SERVICE_PERIMETER]'); - $request = (new DeleteServicePerimeterRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteServicePerimeter($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServicePerimeterTest'); - 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 getAccessLevelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $title = 'title110371416'; - $description = 'description-1724546052'; - $expectedResponse = new AccessLevel(); - $expectedResponse->setName($name2); - $expectedResponse->setTitle($title); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accessLevelName('[ACCESS_POLICY]', '[ACCESS_LEVEL]'); - $request = (new GetAccessLevelRequest()) - ->setName($formattedName); - $response = $gapicClient->getAccessLevel($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.identity.accesscontextmanager.v1.AccessContextManager/GetAccessLevel', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessLevelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accessLevelName('[ACCESS_POLICY]', '[ACCESS_LEVEL]'); - $request = (new GetAccessLevelRequest()) - ->setName($formattedName); - try { - $gapicClient->getAccessLevel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $parent = 'parent-995424086'; - $title = 'title110371416'; - $etag = 'etag3123477'; - $expectedResponse = new AccessPolicy(); - $expectedResponse->setName($name2); - $expectedResponse->setParent($parent); - $expectedResponse->setTitle($title); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $request = (new GetAccessPolicyRequest()) - ->setName($formattedName); - $response = $gapicClient->getAccessPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.identity.accesscontextmanager.v1.AccessContextManager/GetAccessPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAccessPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $request = (new GetAccessPolicyRequest()) - ->setName($formattedName); - try { - $gapicClient->getAccessPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGcpUserAccessBindingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $groupKey = 'groupKey-1482658657'; - $expectedResponse = new GcpUserAccessBinding(); - $expectedResponse->setName($name2); - $expectedResponse->setGroupKey($groupKey); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->gcpUserAccessBindingName('[ORGANIZATION]', '[GCP_USER_ACCESS_BINDING]'); - $request = (new GetGcpUserAccessBindingRequest()) - ->setName($formattedName); - $response = $gapicClient->getGcpUserAccessBinding($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.identity.accesscontextmanager.v1.AccessContextManager/GetGcpUserAccessBinding', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGcpUserAccessBindingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->gcpUserAccessBindingName('[ORGANIZATION]', '[GCP_USER_ACCESS_BINDING]'); - $request = (new GetGcpUserAccessBindingRequest()) - ->setName($formattedName); - try { - $gapicClient->getGcpUserAccessBinding($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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.identity.accesscontextmanager.v1.AccessContextManager/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 getServicePerimeterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $title = 'title110371416'; - $description = 'description-1724546052'; - $useExplicitDryRunSpec = true; - $expectedResponse = new ServicePerimeter(); - $expectedResponse->setName($name2); - $expectedResponse->setTitle($title); - $expectedResponse->setDescription($description); - $expectedResponse->setUseExplicitDryRunSpec($useExplicitDryRunSpec); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->servicePerimeterName('[ACCESS_POLICY]', '[SERVICE_PERIMETER]'); - $request = (new GetServicePerimeterRequest()) - ->setName($formattedName); - $response = $gapicClient->getServicePerimeter($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.identity.accesscontextmanager.v1.AccessContextManager/GetServicePerimeter', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServicePerimeterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->servicePerimeterName('[ACCESS_POLICY]', '[SERVICE_PERIMETER]'); - $request = (new GetServicePerimeterRequest()) - ->setName($formattedName); - try { - $gapicClient->getServicePerimeter($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessLevelsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accessLevelsElement = new AccessLevel(); - $accessLevels = [ - $accessLevelsElement, - ]; - $expectedResponse = new ListAccessLevelsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccessLevels($accessLevels); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $request = (new ListAccessLevelsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAccessLevels($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccessLevels()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.identity.accesscontextmanager.v1.AccessContextManager/ListAccessLevels', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessLevelsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $request = (new ListAccessLevelsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAccessLevels($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessPoliciesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $accessPoliciesElement = new AccessPolicy(); - $accessPolicies = [ - $accessPoliciesElement, - ]; - $expectedResponse = new ListAccessPoliciesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAccessPolicies($accessPolicies); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationName('[ORGANIZATION]'); - $request = (new ListAccessPoliciesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAccessPolicies($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAccessPolicies()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.identity.accesscontextmanager.v1.AccessContextManager/ListAccessPolicies', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAccessPoliciesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationName('[ORGANIZATION]'); - $request = (new ListAccessPoliciesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAccessPolicies($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGcpUserAccessBindingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $gcpUserAccessBindingsElement = new GcpUserAccessBinding(); - $gcpUserAccessBindings = [ - $gcpUserAccessBindingsElement, - ]; - $expectedResponse = new ListGcpUserAccessBindingsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGcpUserAccessBindings($gcpUserAccessBindings); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationName('[ORGANIZATION]'); - $request = (new ListGcpUserAccessBindingsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listGcpUserAccessBindings($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGcpUserAccessBindings()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.identity.accesscontextmanager.v1.AccessContextManager/ListGcpUserAccessBindings', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGcpUserAccessBindingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationName('[ORGANIZATION]'); - $request = (new ListGcpUserAccessBindingsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listGcpUserAccessBindings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicePerimetersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $servicePerimetersElement = new ServicePerimeter(); - $servicePerimeters = [ - $servicePerimetersElement, - ]; - $expectedResponse = new ListServicePerimetersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setServicePerimeters($servicePerimeters); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $request = (new ListServicePerimetersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listServicePerimeters($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getServicePerimeters()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.identity.accesscontextmanager.v1.AccessContextManager/ListServicePerimeters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicePerimetersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $request = (new ListServicePerimetersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listServicePerimeters($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function replaceAccessLevelsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/replaceAccessLevelsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new ReplaceAccessLevelsResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/replaceAccessLevelsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $accessLevels = []; - $request = (new ReplaceAccessLevelsRequest()) - ->setParent($formattedParent) - ->setAccessLevels($accessLevels); - $response = $gapicClient->replaceAccessLevels($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.identity.accesscontextmanager.v1.AccessContextManager/ReplaceAccessLevels', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAccessLevels(); - $this->assertProtobufEquals($accessLevels, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/replaceAccessLevelsTest'); - $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 replaceAccessLevelsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/replaceAccessLevelsTest'); - $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->accessPolicyName('[ACCESS_POLICY]'); - $accessLevels = []; - $request = (new ReplaceAccessLevelsRequest()) - ->setParent($formattedParent) - ->setAccessLevels($accessLevels); - $response = $gapicClient->replaceAccessLevels($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/replaceAccessLevelsTest'); - 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 replaceServicePerimetersTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/replaceServicePerimetersTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new ReplaceServicePerimetersResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/replaceServicePerimetersTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $servicePerimeters = []; - $request = (new ReplaceServicePerimetersRequest()) - ->setParent($formattedParent) - ->setServicePerimeters($servicePerimeters); - $response = $gapicClient->replaceServicePerimeters($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.identity.accesscontextmanager.v1.AccessContextManager/ReplaceServicePerimeters', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getServicePerimeters(); - $this->assertProtobufEquals($servicePerimeters, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/replaceServicePerimetersTest'); - $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 replaceServicePerimetersExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/replaceServicePerimetersTest'); - $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->accessPolicyName('[ACCESS_POLICY]'); - $servicePerimeters = []; - $request = (new ReplaceServicePerimetersRequest()) - ->setParent($formattedParent) - ->setServicePerimeters($servicePerimeters); - $response = $gapicClient->replaceServicePerimeters($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/replaceServicePerimetersTest'); - 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 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.identity.accesscontextmanager.v1.AccessContextManager/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.identity.accesscontextmanager.v1.AccessContextManager/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 updateAccessLevelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAccessLevelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $title = 'title110371416'; - $description = 'description-1724546052'; - $expectedResponse = new AccessLevel(); - $expectedResponse->setName($name); - $expectedResponse->setTitle($title); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAccessLevelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $accessLevel = new AccessLevel(); - $updateMask = new FieldMask(); - $request = (new UpdateAccessLevelRequest()) - ->setAccessLevel($accessLevel) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAccessLevel($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.identity.accesscontextmanager.v1.AccessContextManager/UpdateAccessLevel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getAccessLevel(); - $this->assertProtobufEquals($accessLevel, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAccessLevelTest'); - $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 updateAccessLevelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAccessLevelTest'); - $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 - $accessLevel = new AccessLevel(); - $updateMask = new FieldMask(); - $request = (new UpdateAccessLevelRequest()) - ->setAccessLevel($accessLevel) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAccessLevel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAccessLevelTest'); - 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 updateAccessPolicyTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAccessPolicyTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $parent = 'parent-995424086'; - $title = 'title110371416'; - $etag = 'etag3123477'; - $expectedResponse = new AccessPolicy(); - $expectedResponse->setName($name); - $expectedResponse->setParent($parent); - $expectedResponse->setTitle($title); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateAccessPolicyTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $policy = new AccessPolicy(); - $updateMask = new FieldMask(); - $request = (new UpdateAccessPolicyRequest()) - ->setPolicy($policy) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAccessPolicy($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.identity.accesscontextmanager.v1.AccessContextManager/UpdateAccessPolicy', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getPolicy(); - $this->assertProtobufEquals($policy, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAccessPolicyTest'); - $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 updateAccessPolicyExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateAccessPolicyTest'); - $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 - $policy = new AccessPolicy(); - $updateMask = new FieldMask(); - $request = (new UpdateAccessPolicyRequest()) - ->setPolicy($policy) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateAccessPolicy($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateAccessPolicyTest'); - 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 updateGcpUserAccessBindingTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateGcpUserAccessBindingTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $groupKey = 'groupKey-1482658657'; - $expectedResponse = new GcpUserAccessBinding(); - $expectedResponse->setName($name); - $expectedResponse->setGroupKey($groupKey); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateGcpUserAccessBindingTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $gcpUserAccessBinding = new GcpUserAccessBinding(); - $gcpUserAccessBindingGroupKey = 'gcpUserAccessBindingGroupKey-1338087614'; - $gcpUserAccessBinding->setGroupKey($gcpUserAccessBindingGroupKey); - $gcpUserAccessBindingAccessLevels = [ - $gapicClient->accessLevelName('[ACCESS_POLICY]', '[ACCESS_LEVEL]'), - ]; - $gcpUserAccessBinding->setAccessLevels($gcpUserAccessBindingAccessLevels); - $updateMask = new FieldMask(); - $request = (new UpdateGcpUserAccessBindingRequest()) - ->setGcpUserAccessBinding($gcpUserAccessBinding) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateGcpUserAccessBinding($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.identity.accesscontextmanager.v1.AccessContextManager/UpdateGcpUserAccessBinding', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getGcpUserAccessBinding(); - $this->assertProtobufEquals($gcpUserAccessBinding, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateGcpUserAccessBindingTest'); - $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 updateGcpUserAccessBindingExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateGcpUserAccessBindingTest'); - $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 - $gcpUserAccessBinding = new GcpUserAccessBinding(); - $gcpUserAccessBindingGroupKey = 'gcpUserAccessBindingGroupKey-1338087614'; - $gcpUserAccessBinding->setGroupKey($gcpUserAccessBindingGroupKey); - $gcpUserAccessBindingAccessLevels = [ - $gapicClient->accessLevelName('[ACCESS_POLICY]', '[ACCESS_LEVEL]'), - ]; - $gcpUserAccessBinding->setAccessLevels($gcpUserAccessBindingAccessLevels); - $updateMask = new FieldMask(); - $request = (new UpdateGcpUserAccessBindingRequest()) - ->setGcpUserAccessBinding($gcpUserAccessBinding) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateGcpUserAccessBinding($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateGcpUserAccessBindingTest'); - 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 updateServicePerimeterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServicePerimeterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $title = 'title110371416'; - $description = 'description-1724546052'; - $useExplicitDryRunSpec = true; - $expectedResponse = new ServicePerimeter(); - $expectedResponse->setName($name); - $expectedResponse->setTitle($title); - $expectedResponse->setDescription($description); - $expectedResponse->setUseExplicitDryRunSpec($useExplicitDryRunSpec); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateServicePerimeterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $servicePerimeter = new ServicePerimeter(); - $updateMask = new FieldMask(); - $request = (new UpdateServicePerimeterRequest()) - ->setServicePerimeter($servicePerimeter) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateServicePerimeter($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.identity.accesscontextmanager.v1.AccessContextManager/UpdateServicePerimeter', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getServicePerimeter(); - $this->assertProtobufEquals($servicePerimeter, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServicePerimeterTest'); - $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 updateServicePerimeterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServicePerimeterTest'); - $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 - $servicePerimeter = new ServicePerimeter(); - $updateMask = new FieldMask(); - $request = (new UpdateServicePerimeterRequest()) - ->setServicePerimeter($servicePerimeter) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateServicePerimeter($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServicePerimeterTest'); - 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 commitServicePerimetersAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/commitServicePerimetersTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new CommitServicePerimetersResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/commitServicePerimetersTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->accessPolicyName('[ACCESS_POLICY]'); - $request = (new CommitServicePerimetersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->commitServicePerimetersAsync($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.identity.accesscontextmanager.v1.AccessContextManager/CommitServicePerimeters', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/commitServicePerimetersTest'); - $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/AdsMarketingPlatformAdmin/v1alpha/proto/src/GPBMetadata/Google/Marketingplatform/Admin/V1Alpha/MarketingplatformAdmin.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/GPBMetadata/Google/Marketingplatform/Admin/V1Alpha/MarketingplatformAdmin.php deleted file mode 100644 index c61a0aa0312e069f62b003cce89ed805f5484c88..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4265 zcmcInOK%%h6lNT#lv_cgk(!62k{c&9ZWLx{S`~GYv>L~bYj6@1he$<6*7f+>8D%mv z%v>j=Q8q}36)ToVY>`-YgZKqVUBWIBQWtDM{DQ8y_s+wQnQ0wTvWYcwUf((2IdjhH zLwnx_bFhd_>>z@huyF#(K8Chq5lgcS*yyxc*nygLXzK=cBnb1{aBF)P7V@RtS*q$< z9Y@0oY+F{_!15t-4lvQpwrwENvYbO1H4k-DKDvzzdmlyL*ZF&iI|RT)huF1|hGDUi z+r$Jl5ka*gw_V#Dv|Uq~?b_aLmDyeaKr@i*!iXFf1E&DeKfBW~bPc)$5&Calck8;T z6CD})6AFI~wvgdsYAPz*>X;hQEfX?@ZBxV9ThOz~Wan**rfUrb!B$uXY4&O*lVHb0 zMlFwB&CzXQITb3ZC~Zu_yt60STfSRnPH(}i7o(y?f?R{d>EK@P5IUH29CL-o%?zA{ zziKh5RBgScnx@6FV41F>bTM^JBq^>NIyTA0bT)KsG;??#9qE>HG1VRHb8P4!BLwIt zN-eN>0o-9ZX)+6kHaUsMz*+GA1KqE=+H8g;-k|-H4U57`v;h8?0{Pd`IO0vuiWF%- z$!jma{n8V@H)QLw#>?n+UV5hIMT^y{-tdd%3rzJ0IDSR^SNHr^5$6NFAE>#$-n6gB zd!M$7j9Fs6mzf3_FJiLow2`Sl;Vj+3Uv#ib#7E#wHYO$oC}c--%5ydKLcI%?Bi=pa zo)3!GmFN(YdktoO6aXyiE>UTFp3rgNs+wkXOj6d(12=HD1FqP}p@jDx=D5REQ5nu* zoNaL&jM}J;>n39`Sq}Zq@z%>(pN$Nczve-v6=QO%?2h$HooZkPLNCd{? z5%a8G5-_VtD$@b8d2Ha9W2^LW(x(Wx1Vu9c2;ki+CUoxD*dZrX>>TMDF5@F?1PPr> z1n;#53t#*Qh}{g)PUF^ic1Cj&r*anD3?*WFCWt|N4BmFVIO+xqgfsM=<+Tg5suzuy z>JsbLy5_e!N>+uhy%DoxRd}ph}#f>0IUW@~hwf{4O;s&V;MjDVw5eR?mcW<;64cg#e}!M~(Ps*ccK` z1ZYaH!IH;}%%gMFpV1uTeeuICNN;vWV9FuoduP7*LkgsmCz&{O%*i$a_?H^Rnd5Wy zhKFn^1kyM0c_Kc^{MSS%31e0KRRHPaaX5T}l5GSD8V~pptOpX`yD}TSe7?WfgD{TI z@pWcAf0_al2_r|`2z*Dr@%{UhlwcshP`tDqpW$B%=W0Spc%@qz)TMkpBL-U_F*AxA z|JhN5#q=-2GxfblQsTZEzp38}`-Ir8BFo3e$9^KhJq&foe)Jgh42AJabf;)8UD`^= zrdK4+{gnc21q@1pn(nLCpxku)kf$F+VpW9CKK8e%wq+o*Ezwabx3S6jDtGtJD9rx7 zc!i_>DYaPSXRf5uz(T(j|BR+j>8UIEr|z>rxJEA(L@*vkMJYsg1rra8Xtq#D!$%va9Ly%0VLL4owlkZVDG8AN z2Y-hiO+5G$yqkFB%un#-%zm-b5{SKQ_uc3HdggiGdG{ea2*ESBjw$9y;uhRLhVlTz zkTc1A7Qp>pyNx;YSvMpB<|c%zb+}z`!s=?R`9!%2*5f|5VTZ9!fUPd#hgcHY2?HeC zjCU>6>Jn-lEubJgKo-ZbgD|5M08rG$B1Arh>y645mZ*g!a@V71?$+gKuA`&5dkc<^ zwgiA5AR*vR8Wo%ZsD5E@KOjC75=r%#A;Ke+NP+@#qIz70Z4?Nsya%!E9`z+*6l#Y$ z^>KL)#xXT^CS;0}Wti62&@?HE+!~dbQxv$XSooZTlJSOu+I9!aj9hIg&n0PfIMRmY zxJKI^C~_G}-oyFq5OOSgoGwLm>j3@ipF4y-CnW9~!9lBn56}@|+_o>ex(ITWYf9>H zuZW6Q?@7|Q(`sdXt|_IIv&wXxv*6b#c>8}6FiXEdToSTM0}!N=(N}yu$H))}wNh(8FO>Z-56V zg?cE)PDQ0xUY|L|Gw1dn$DIYwGtkh=lO)FUB@Rj{Jte~j4+B+$cZ4}<6F;KS)8fTb zBMLRXxNP3+oJ`%yUM|Y64x-PXWdA6fJKqbyz8T*`Ioilmd6{=BqajDD0%hiuLQnVF zpP$S=google.marketingplatform.admin.v1alpha.AnalyticsAccountLink - */ -class AnalyticsAccountLink extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of this AnalyticsAccountLink. Note the resource - * ID is the same as the ID of the Analtyics account. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * Example: "organizations/xyz/analyticsAccountLinks/1234" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Required. Immutable. The resource name of the AnalyticsAdmin API account. - * The account ID will be used as the ID of this AnalyticsAccountLink - * resource, which will become the final component of the resource name. - * Format: analyticsadmin.googleapis.com/accounts/{account_id} - * - * Generated from protobuf field string analytics_account = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $analytics_account = ''; - /** - * Output only. The human-readable name for the Analytics account. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. The verification state of the link between the Analytics - * account and the parent organization. - * - * Generated from protobuf field .google.marketingplatform.admin.v1alpha.LinkVerificationState link_verification_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $link_verification_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of this AnalyticsAccountLink. Note the resource - * ID is the same as the ID of the Analtyics account. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * Example: "organizations/xyz/analyticsAccountLinks/1234" - * @type string $analytics_account - * Required. Immutable. The resource name of the AnalyticsAdmin API account. - * The account ID will be used as the ID of this AnalyticsAccountLink - * resource, which will become the final component of the resource name. - * Format: analyticsadmin.googleapis.com/accounts/{account_id} - * @type string $display_name - * Output only. The human-readable name for the Analytics account. - * @type int $link_verification_state - * Output only. The verification state of the link between the Analytics - * account and the parent organization. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of this AnalyticsAccountLink. Note the resource - * ID is the same as the ID of the Analtyics account. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * Example: "organizations/xyz/analyticsAccountLinks/1234" - * - * 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 AnalyticsAccountLink. Note the resource - * ID is the same as the ID of the Analtyics account. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * Example: "organizations/xyz/analyticsAccountLinks/1234" - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. The resource name of the AnalyticsAdmin API account. - * The account ID will be used as the ID of this AnalyticsAccountLink - * resource, which will become the final component of the resource name. - * Format: analyticsadmin.googleapis.com/accounts/{account_id} - * - * Generated from protobuf field string analytics_account = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getAnalyticsAccount() - { - return $this->analytics_account; - } - - /** - * Required. Immutable. The resource name of the AnalyticsAdmin API account. - * The account ID will be used as the ID of this AnalyticsAccountLink - * resource, which will become the final component of the resource name. - * Format: analyticsadmin.googleapis.com/accounts/{account_id} - * - * Generated from protobuf field string analytics_account = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAnalyticsAccount($var) - { - GPBUtil::checkString($var, True); - $this->analytics_account = $var; - - return $this; - } - - /** - * Output only. The human-readable name for the Analytics account. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. The human-readable name for the Analytics account. - * - * Generated from protobuf field string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The verification state of the link between the Analytics - * account and the parent organization. - * - * Generated from protobuf field .google.marketingplatform.admin.v1alpha.LinkVerificationState link_verification_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getLinkVerificationState() - { - return $this->link_verification_state; - } - - /** - * Output only. The verification state of the link between the Analytics - * account and the parent organization. - * - * Generated from protobuf field .google.marketingplatform.admin.v1alpha.LinkVerificationState link_verification_state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setLinkVerificationState($var) - { - GPBUtil::checkEnum($var, \Google\Ads\MarketingPlatform\Admin\V1alpha\LinkVerificationState::class); - $this->link_verification_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/AnalyticsServiceLevel.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/AnalyticsServiceLevel.php deleted file mode 100644 index e42cc8fe0f91..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/AnalyticsServiceLevel.php +++ /dev/null @@ -1,61 +0,0 @@ -google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel - */ -class AnalyticsServiceLevel -{ - /** - * Service level unspecified. - * - * Generated from protobuf enum ANALYTICS_SERVICE_LEVEL_UNSPECIFIED = 0; - */ - const ANALYTICS_SERVICE_LEVEL_UNSPECIFIED = 0; - /** - * The standard version of Google Analytics. - * - * Generated from protobuf enum ANALYTICS_SERVICE_LEVEL_STANDARD = 1; - */ - const ANALYTICS_SERVICE_LEVEL_STANDARD = 1; - /** - * The premium version of Google Analytics. - * - * Generated from protobuf enum ANALYTICS_SERVICE_LEVEL_360 = 2; - */ - const ANALYTICS_SERVICE_LEVEL_360 = 2; - - private static $valueToName = [ - self::ANALYTICS_SERVICE_LEVEL_UNSPECIFIED => 'ANALYTICS_SERVICE_LEVEL_UNSPECIFIED', - self::ANALYTICS_SERVICE_LEVEL_STANDARD => 'ANALYTICS_SERVICE_LEVEL_STANDARD', - self::ANALYTICS_SERVICE_LEVEL_360 => 'ANALYTICS_SERVICE_LEVEL_360', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/CreateAnalyticsAccountLinkRequest.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/CreateAnalyticsAccountLinkRequest.php deleted file mode 100644 index c4532ac815a5..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/CreateAnalyticsAccountLinkRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.marketingplatform.admin.v1alpha.CreateAnalyticsAccountLinkRequest - */ -class CreateAnalyticsAccountLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource where this Analytics account link will be - * created. Format: organizations/{org_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The Analytics account link to create. - * - * Generated from protobuf field .google.marketingplatform.admin.v1alpha.AnalyticsAccountLink analytics_account_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $analytics_account_link = null; - - /** - * @param string $parent Required. The parent resource where this Analytics account link will be - * created. Format: organizations/{org_id} - * Please see {@see MarketingplatformAdminServiceClient::organizationName()} for help formatting this field. - * @param \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink $analyticsAccountLink Required. The Analytics account link to create. - * - * @return \Google\Ads\MarketingPlatform\Admin\V1alpha\CreateAnalyticsAccountLinkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink $analyticsAccountLink): self - { - return (new self()) - ->setParent($parent) - ->setAnalyticsAccountLink($analyticsAccountLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource where this Analytics account link will be - * created. Format: organizations/{org_id} - * @type \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink $analytics_account_link - * Required. The Analytics account link to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource where this Analytics account link will be - * created. Format: organizations/{org_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource where this Analytics account link will be - * created. Format: organizations/{org_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 Analytics account link to create. - * - * Generated from protobuf field .google.marketingplatform.admin.v1alpha.AnalyticsAccountLink analytics_account_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink|null - */ - public function getAnalyticsAccountLink() - { - return $this->analytics_account_link; - } - - public function hasAnalyticsAccountLink() - { - return isset($this->analytics_account_link); - } - - public function clearAnalyticsAccountLink() - { - unset($this->analytics_account_link); - } - - /** - * Required. The Analytics account link to create. - * - * Generated from protobuf field .google.marketingplatform.admin.v1alpha.AnalyticsAccountLink analytics_account_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink $var - * @return $this - */ - public function setAnalyticsAccountLink($var) - { - GPBUtil::checkMessage($var, \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink::class); - $this->analytics_account_link = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/DeleteAnalyticsAccountLinkRequest.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/DeleteAnalyticsAccountLinkRequest.php deleted file mode 100644 index 96cc8db8c9a0..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/DeleteAnalyticsAccountLinkRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.marketingplatform.admin.v1alpha.DeleteAnalyticsAccountLinkRequest - */ -class DeleteAnalyticsAccountLinkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Analytics account link to delete. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Analytics account link to delete. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * Please see {@see MarketingplatformAdminServiceClient::analyticsAccountLinkName()} for help formatting this field. - * - * @return \Google\Ads\MarketingPlatform\Admin\V1alpha\DeleteAnalyticsAccountLinkRequest - * - * @experimental - */ - public static function 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 Analytics account link to delete. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Analytics account link to delete. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Analytics account link to delete. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_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/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/GetOrganizationRequest.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/GetOrganizationRequest.php deleted file mode 100644 index 6e4b0cf0fef6..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/GetOrganizationRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.marketingplatform.admin.v1alpha.GetOrganizationRequest - */ -class GetOrganizationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Organization to retrieve. - * Format: organizations/{org_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the Organization to retrieve. - * Format: organizations/{org_id} - * Please see {@see MarketingplatformAdminServiceClient::organizationName()} for help formatting this field. - * - * @return \Google\Ads\MarketingPlatform\Admin\V1alpha\GetOrganizationRequest - * - * @experimental - */ - public static function 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 Organization to retrieve. - * Format: organizations/{org_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Organization to retrieve. - * Format: organizations/{org_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Organization to retrieve. - * Format: organizations/{org_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/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/LinkVerificationState.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/LinkVerificationState.php deleted file mode 100644 index e1c0b237300b..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/LinkVerificationState.php +++ /dev/null @@ -1,63 +0,0 @@ -google.marketingplatform.admin.v1alpha.LinkVerificationState - */ -class LinkVerificationState -{ - /** - * The link state is unknown. - * - * Generated from protobuf enum LINK_VERIFICATION_STATE_UNSPECIFIED = 0; - */ - const LINK_VERIFICATION_STATE_UNSPECIFIED = 0; - /** - * The link is established. - * - * Generated from protobuf enum LINK_VERIFICATION_STATE_VERIFIED = 1; - */ - const LINK_VERIFICATION_STATE_VERIFIED = 1; - /** - * The link is requested, but hasn't been approved by the product account - * admin. - * - * Generated from protobuf enum LINK_VERIFICATION_STATE_NOT_VERIFIED = 2; - */ - const LINK_VERIFICATION_STATE_NOT_VERIFIED = 2; - - private static $valueToName = [ - self::LINK_VERIFICATION_STATE_UNSPECIFIED => 'LINK_VERIFICATION_STATE_UNSPECIFIED', - self::LINK_VERIFICATION_STATE_VERIFIED => 'LINK_VERIFICATION_STATE_VERIFIED', - self::LINK_VERIFICATION_STATE_NOT_VERIFIED => 'LINK_VERIFICATION_STATE_NOT_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); - } -} - diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/ListAnalyticsAccountLinksRequest.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/ListAnalyticsAccountLinksRequest.php deleted file mode 100644 index 2f09170cac7b..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/ListAnalyticsAccountLinksRequest.php +++ /dev/null @@ -1,182 +0,0 @@ -google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksRequest - */ -class ListAnalyticsAccountLinksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent organization, which owns this collection of Analytics - * account links. Format: organizations/{org_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of Analytics account links to return in one - * call. The service may return fewer than this value. - * If unspecified, at most 50 Analytics account links will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous ListAnalyticsAccountLinks - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAnalyticsAccountLinks` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent organization, which owns this collection of Analytics - * account links. Format: organizations/{org_id} - * Please see {@see MarketingplatformAdminServiceClient::organizationName()} for help formatting this field. - * - * @return \Google\Ads\MarketingPlatform\Admin\V1alpha\ListAnalyticsAccountLinksRequest - * - * @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 organization, which owns this collection of Analytics - * account links. Format: organizations/{org_id} - * @type int $page_size - * Optional. The maximum number of Analytics account links to return in one - * call. The service may return fewer than this value. - * If unspecified, at most 50 Analytics account links will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * @type string $page_token - * Optional. A page token, received from a previous ListAnalyticsAccountLinks - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAnalyticsAccountLinks` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent organization, which owns this collection of Analytics - * account links. Format: organizations/{org_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent organization, which owns this collection of Analytics - * account links. Format: organizations/{org_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of Analytics account links to return in one - * call. The service may return fewer than this value. - * If unspecified, at most 50 Analytics account links will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of Analytics account links to return in one - * call. The service may return fewer than this value. - * If unspecified, at most 50 Analytics account links will be returned. The - * maximum value is 1000; values above 1000 will be coerced to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous ListAnalyticsAccountLinks - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAnalyticsAccountLinks` 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 ListAnalyticsAccountLinks - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `ListAnalyticsAccountLinks` 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/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/ListAnalyticsAccountLinksResponse.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/ListAnalyticsAccountLinksResponse.php deleted file mode 100644 index b3da65fa4a89..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/ListAnalyticsAccountLinksResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.marketingplatform.admin.v1alpha.ListAnalyticsAccountLinksResponse - */ -class ListAnalyticsAccountLinksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Analytics account links in this organization. - * - * Generated from protobuf field repeated .google.marketingplatform.admin.v1alpha.AnalyticsAccountLink analytics_account_links = 1; - */ - private $analytics_account_links; - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink>|\Google\Protobuf\Internal\RepeatedField $analytics_account_links - * Analytics account links in this organization. - * @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\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Analytics account links in this organization. - * - * Generated from protobuf field repeated .google.marketingplatform.admin.v1alpha.AnalyticsAccountLink analytics_account_links = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAnalyticsAccountLinks() - { - return $this->analytics_account_links; - } - - /** - * Analytics account links in this organization. - * - * Generated from protobuf field repeated .google.marketingplatform.admin.v1alpha.AnalyticsAccountLink analytics_account_links = 1; - * @param array<\Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAnalyticsAccountLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink::class); - $this->analytics_account_links = $arr; - - return $this; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token, which can be sent as `page_token` to retrieve the next page. - * If this field is omitted, there are no subsequent pages. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/Organization.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/Organization.php deleted file mode 100644 index 118a5624bbd1..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/Organization.php +++ /dev/null @@ -1,105 +0,0 @@ -google.marketingplatform.admin.v1alpha.Organization - */ -class Organization extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the GMP organization. - * Format: organizations/{org_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The human-readable name for the organization. - * - * 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 - * Identifier. The resource name of the GMP organization. - * Format: organizations/{org_id} - * @type string $display_name - * The human-readable name for the organization. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the GMP organization. - * Format: organizations/{org_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Identifier. The resource name of the GMP organization. - * Format: organizations/{org_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The human-readable name for the organization. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The human-readable name for the organization. - * - * 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/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/SetPropertyServiceLevelRequest.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/SetPropertyServiceLevelRequest.php deleted file mode 100644 index 7212d7c51045..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/SetPropertyServiceLevelRequest.php +++ /dev/null @@ -1,166 +0,0 @@ -google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest - */ -class SetPropertyServiceLevelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent AnalyticsAccountLink scope where this property is in. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * - * Generated from protobuf field string analytics_account_link = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $analytics_account_link = ''; - /** - * Required. The Analytics property to change the ServiceLevel setting. This - * field is the name of the Google Analytics Admin API property resource. - * Format: analyticsadmin.googleapis.com/properties/{property_id} - * - * Generated from protobuf field string analytics_property = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $analytics_property = ''; - /** - * Required. The service level to set for this property. - * - * Generated from protobuf field .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_level = 0; - - /** - * @param string $analyticsAccountLink Required. The parent AnalyticsAccountLink scope where this property is in. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * - * @return \Google\Ads\MarketingPlatform\Admin\V1alpha\SetPropertyServiceLevelRequest - * - * @experimental - */ - public static function build(string $analyticsAccountLink): self - { - return (new self()) - ->setAnalyticsAccountLink($analyticsAccountLink); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $analytics_account_link - * Required. The parent AnalyticsAccountLink scope where this property is in. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * @type string $analytics_property - * Required. The Analytics property to change the ServiceLevel setting. This - * field is the name of the Google Analytics Admin API property resource. - * Format: analyticsadmin.googleapis.com/properties/{property_id} - * @type int $service_level - * Required. The service level to set for this property. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent AnalyticsAccountLink scope where this property is in. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * - * Generated from protobuf field string analytics_account_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAnalyticsAccountLink() - { - return $this->analytics_account_link; - } - - /** - * Required. The parent AnalyticsAccountLink scope where this property is in. - * Format: - * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id} - * - * Generated from protobuf field string analytics_account_link = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAnalyticsAccountLink($var) - { - GPBUtil::checkString($var, True); - $this->analytics_account_link = $var; - - return $this; - } - - /** - * Required. The Analytics property to change the ServiceLevel setting. This - * field is the name of the Google Analytics Admin API property resource. - * Format: analyticsadmin.googleapis.com/properties/{property_id} - * - * Generated from protobuf field string analytics_property = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getAnalyticsProperty() - { - return $this->analytics_property; - } - - /** - * Required. The Analytics property to change the ServiceLevel setting. This - * field is the name of the Google Analytics Admin API property resource. - * Format: analyticsadmin.googleapis.com/properties/{property_id} - * - * Generated from protobuf field string analytics_property = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAnalyticsProperty($var) - { - GPBUtil::checkString($var, True); - $this->analytics_property = $var; - - return $this; - } - - /** - * Required. The service level to set for this property. - * - * Generated from protobuf field .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getServiceLevel() - { - return $this->service_level; - } - - /** - * Required. The service level to set for this property. - * - * Generated from protobuf field .google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setServiceLevel($var) - { - GPBUtil::checkEnum($var, \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsServiceLevel::class); - $this->service_level = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/SetPropertyServiceLevelResponse.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/SetPropertyServiceLevelResponse.php deleted file mode 100644 index c4b7adc3c69e..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/proto/src/Google/Ads/MarketingPlatform/Admin/V1alpha/SetPropertyServiceLevelResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelResponse - */ -class SetPropertyServiceLevelResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/create_analytics_account_link.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/create_analytics_account_link.php deleted file mode 100644 index 7f151bcf3d29..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/create_analytics_account_link.php +++ /dev/null @@ -1,94 +0,0 @@ -setAnalyticsAccount($formattedAnalyticsAccountLinkAnalyticsAccount); - $request = (new CreateAnalyticsAccountLinkRequest()) - ->setParent($formattedParent) - ->setAnalyticsAccountLink($analyticsAccountLink); - - // Call the API and handle any network failures. - try { - /** @var AnalyticsAccountLink $response */ - $response = $marketingplatformAdminServiceClient->createAnalyticsAccountLink($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = MarketingplatformAdminServiceClient::organizationName('[ORGANIZATION]'); - $formattedAnalyticsAccountLinkAnalyticsAccount = MarketingplatformAdminServiceClient::accountName( - '[ACCOUNT]' - ); - - create_analytics_account_link_sample( - $formattedParent, - $formattedAnalyticsAccountLinkAnalyticsAccount - ); -} -// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_CreateAnalyticsAccountLink_sync] diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/delete_analytics_account_link.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/delete_analytics_account_link.php deleted file mode 100644 index 47800e7fe00c..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/delete_analytics_account_link.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $marketingplatformAdminServiceClient->deleteAnalyticsAccountLink($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 = MarketingplatformAdminServiceClient::analyticsAccountLinkName( - '[ORGANIZATION]', - '[ANALYTICS_ACCOUNT_LINK]' - ); - - delete_analytics_account_link_sample($formattedName); -} -// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_DeleteAnalyticsAccountLink_sync] diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/get_organization.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/get_organization.php deleted file mode 100644 index 01a6d2143f64..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/get_organization.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Organization $response */ - $response = $marketingplatformAdminServiceClient->getOrganization($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = MarketingplatformAdminServiceClient::organizationName('[ORGANIZATION]'); - - get_organization_sample($formattedName); -} -// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_GetOrganization_sync] diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/list_analytics_account_links.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/list_analytics_account_links.php deleted file mode 100644 index 14fe03d7d1e9..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/list_analytics_account_links.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $marketingplatformAdminServiceClient->listAnalyticsAccountLinks($request); - - /** @var AnalyticsAccountLink $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 = MarketingplatformAdminServiceClient::organizationName('[ORGANIZATION]'); - - list_analytics_account_links_sample($formattedParent); -} -// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_ListAnalyticsAccountLinks_sync] diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/set_property_service_level.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/set_property_service_level.php deleted file mode 100644 index 94c3605ec348..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/samples/V1alpha/MarketingplatformAdminServiceClient/set_property_service_level.php +++ /dev/null @@ -1,90 +0,0 @@ -setAnalyticsAccountLink($analyticsAccountLink) - ->setAnalyticsProperty($formattedAnalyticsProperty) - ->setServiceLevel($serviceLevel); - - // Call the API and handle any network failures. - try { - /** @var SetPropertyServiceLevelResponse $response */ - $response = $marketingplatformAdminServiceClient->setPropertyServiceLevel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $analyticsAccountLink = '[ANALYTICS_ACCOUNT_LINK]'; - $formattedAnalyticsProperty = MarketingplatformAdminServiceClient::propertyName('[PROPERTY]'); - $serviceLevel = AnalyticsServiceLevel::ANALYTICS_SERVICE_LEVEL_UNSPECIFIED; - - set_property_service_level_sample( - $analyticsAccountLink, - $formattedAnalyticsProperty, - $serviceLevel - ); -} -// [END marketingplatformadmin_v1alpha_generated_MarketingplatformAdminService_SetPropertyServiceLevel_sync] diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/Client/MarketingplatformAdminServiceClient.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/Client/MarketingplatformAdminServiceClient.php deleted file mode 100644 index d4ac850665b8..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/Client/MarketingplatformAdminServiceClient.php +++ /dev/null @@ -1,440 +0,0 @@ - createAnalyticsAccountLinkAsync(CreateAnalyticsAccountLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAnalyticsAccountLinkAsync(DeleteAnalyticsAccountLinkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getOrganizationAsync(GetOrganizationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAnalyticsAccountLinksAsync(ListAnalyticsAccountLinksRequest $request, array $optionalArgs = []) - * @method PromiseInterface setPropertyServiceLevelAsync(SetPropertyServiceLevelRequest $request, array $optionalArgs = []) - */ -final class MarketingplatformAdminServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.marketingplatform.admin.v1alpha.MarketingplatformAdminService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'marketingplatformadmin.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'marketingplatformadmin.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/marketingplatformadmin.analytics.read', - 'https://www.googleapis.com/auth/marketingplatformadmin.analytics.update', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/marketingplatform_admin_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/marketingplatform_admin_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/marketingplatform_admin_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/marketingplatform_admin_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a account - * resource. - * - * @param string $account - * - * @return string The formatted account resource. - * - * @experimental - */ - public static function accountName(string $account): string - { - return self::getPathTemplate('account')->render([ - 'account' => $account, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * analytics_account_link resource. - * - * @param string $organization - * @param string $analyticsAccountLink - * - * @return string The formatted analytics_account_link resource. - * - * @experimental - */ - public static function analyticsAccountLinkName(string $organization, string $analyticsAccountLink): string - { - return self::getPathTemplate('analyticsAccountLink')->render([ - 'organization' => $organization, - 'analytics_account_link' => $analyticsAccountLink, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - * - * @experimental - */ - public static function organizationName(string $organization): string - { - return self::getPathTemplate('organization')->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a property - * resource. - * - * @param string $property - * - * @return string The formatted property resource. - * - * @experimental - */ - public static function propertyName(string $property): string - { - return self::getPathTemplate('property')->render([ - 'property' => $property, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - account: accounts/{account} - * - analyticsAccountLink: organizations/{organization}/analyticsAccountLinks/{analytics_account_link} - * - organization: organizations/{organization} - * - property: properties/{property} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'marketingplatformadmin.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); - } - - /** - * Creates the link between the Analytics account and the Google Marketing - * Platform organization. - * - * User needs to be an org user, and admin on the Analytics account to create - * the link. If the account is already linked to an organization, user needs - * to unlink the account from the current organization, then try link again. - * - * The async variant is - * {@see MarketingplatformAdminServiceClient::createAnalyticsAccountLinkAsync()} . - * - * @example samples/V1alpha/MarketingplatformAdminServiceClient/create_analytics_account_link.php - * - * @param CreateAnalyticsAccountLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AnalyticsAccountLink - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createAnalyticsAccountLink(CreateAnalyticsAccountLinkRequest $request, array $callOptions = []): AnalyticsAccountLink - { - return $this->startApiCall('CreateAnalyticsAccountLink', $request, $callOptions)->wait(); - } - - /** - * Deletes the AnalyticsAccountLink, which detaches the Analytics account from - * the Google Marketing Platform organization. - * - * User needs to be an org user, and admin on the Analytics account in order - * to delete the link. - * - * The async variant is - * {@see MarketingplatformAdminServiceClient::deleteAnalyticsAccountLinkAsync()} . - * - * @example samples/V1alpha/MarketingplatformAdminServiceClient/delete_analytics_account_link.php - * - * @param DeleteAnalyticsAccountLinkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteAnalyticsAccountLink(DeleteAnalyticsAccountLinkRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteAnalyticsAccountLink', $request, $callOptions)->wait(); - } - - /** - * Lookup for a single organization. - * - * The async variant is - * {@see MarketingplatformAdminServiceClient::getOrganizationAsync()} . - * - * @example samples/V1alpha/MarketingplatformAdminServiceClient/get_organization.php - * - * @param GetOrganizationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Organization - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getOrganization(GetOrganizationRequest $request, array $callOptions = []): Organization - { - return $this->startApiCall('GetOrganization', $request, $callOptions)->wait(); - } - - /** - * Lists the Google Analytics accounts link to the specified Google Marketing - * Platform organization. - * - * The async variant is - * {@see MarketingplatformAdminServiceClient::listAnalyticsAccountLinksAsync()} . - * - * @example samples/V1alpha/MarketingplatformAdminServiceClient/list_analytics_account_links.php - * - * @param ListAnalyticsAccountLinksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listAnalyticsAccountLinks(ListAnalyticsAccountLinksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAnalyticsAccountLinks', $request, $callOptions); - } - - /** - * Updates the service level for an Analytics property. - * - * The async variant is - * {@see MarketingplatformAdminServiceClient::setPropertyServiceLevelAsync()} . - * - * @example samples/V1alpha/MarketingplatformAdminServiceClient/set_property_service_level.php - * - * @param SetPropertyServiceLevelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SetPropertyServiceLevelResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function setPropertyServiceLevel(SetPropertyServiceLevelRequest $request, array $callOptions = []): SetPropertyServiceLevelResponse - { - return $this->startApiCall('SetPropertyServiceLevel', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/gapic_metadata.json b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/gapic_metadata.json deleted file mode 100644 index 4066f7b204b7..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/gapic_metadata.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.marketingplatform.admin.v1alpha", - "libraryPackage": "Google\\Ads\\MarketingPlatform\\Admin\\V1alpha", - "services": { - "MarketingplatformAdminService": { - "clients": { - "grpc": { - "libraryClient": "MarketingplatformAdminServiceGapicClient", - "rpcs": { - "CreateAnalyticsAccountLink": { - "methods": [ - "createAnalyticsAccountLink" - ] - }, - "DeleteAnalyticsAccountLink": { - "methods": [ - "deleteAnalyticsAccountLink" - ] - }, - "GetOrganization": { - "methods": [ - "getOrganization" - ] - }, - "ListAnalyticsAccountLinks": { - "methods": [ - "listAnalyticsAccountLinks" - ] - }, - "SetPropertyServiceLevel": { - "methods": [ - "setPropertyServiceLevel" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_client_config.json b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_client_config.json deleted file mode 100644 index 4ffda61291aa..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_client_config.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "interfaces": { - "google.marketingplatform.admin.v1alpha.MarketingplatformAdminService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "UNKNOWN" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateAnalyticsAccountLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteAnalyticsAccountLink": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetOrganization": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListAnalyticsAccountLinks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SetPropertyServiceLevel": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_descriptor_config.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_descriptor_config.php deleted file mode 100644 index 279e5fb82782..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_descriptor_config.php +++ /dev/null @@ -1,102 +0,0 @@ - [ - 'google.marketingplatform.admin.v1alpha.MarketingplatformAdminService' => [ - 'CreateAnalyticsAccountLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsAccountLink', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAnalyticsAccountLink' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetOrganization' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\MarketingPlatform\Admin\V1alpha\Organization', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAnalyticsAccountLinks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAnalyticsAccountLinks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Ads\MarketingPlatform\Admin\V1alpha\ListAnalyticsAccountLinksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SetPropertyServiceLevel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Ads\MarketingPlatform\Admin\V1alpha\SetPropertyServiceLevelResponse', - 'headerParams' => [ - [ - 'keyName' => 'analytics_account_link', - 'fieldAccessors' => [ - 'getAnalyticsAccountLink', - ], - ], - ], - ], - 'templateMap' => [ - 'account' => 'accounts/{account}', - 'analyticsAccountLink' => 'organizations/{organization}/analyticsAccountLinks/{analytics_account_link}', - 'organization' => 'organizations/{organization}', - 'property' => 'properties/{property}', - ], - ], - ], -]; diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_rest_client_config.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_rest_client_config.php deleted file mode 100644 index 268599714999..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/src/V1alpha/resources/marketingplatform_admin_service_rest_client_config.php +++ /dev/null @@ -1,86 +0,0 @@ - [ - 'google.marketingplatform.admin.v1alpha.MarketingplatformAdminService' => [ - 'CreateAnalyticsAccountLink' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=organizations/*}/analyticsAccountLinks', - 'body' => 'analytics_account_link', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAnalyticsAccountLink' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=organizations/*/analyticsAccountLinks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOrganization' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=organizations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListAnalyticsAccountLinks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=organizations/*}/analyticsAccountLinks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SetPropertyServiceLevel' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{analytics_account_link=organizations/*/analyticsAccountLinks/*}:setPropertyServiceLevel', - 'body' => '*', - 'placeholders' => [ - 'analytics_account_link' => [ - 'getters' => [ - 'getAnalyticsAccountLink', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/tests/Unit/V1alpha/Client/MarketingplatformAdminServiceClientTest.php b/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/tests/Unit/V1alpha/Client/MarketingplatformAdminServiceClientTest.php deleted file mode 100644 index bf1f5aa0faea..000000000000 --- a/owl-bot-staging/AdsMarketingPlatformAdmin/v1alpha/tests/Unit/V1alpha/Client/MarketingplatformAdminServiceClientTest.php +++ /dev/null @@ -1,461 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return MarketingplatformAdminServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new MarketingplatformAdminServiceClient($options); - } - - /** @test */ - public function createAnalyticsAccountLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $analyticsAccount = 'analyticsAccount1988159092'; - $displayName = 'displayName1615086568'; - $expectedResponse = new AnalyticsAccountLink(); - $expectedResponse->setName($name); - $expectedResponse->setAnalyticsAccount($analyticsAccount); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationName('[ORGANIZATION]'); - $analyticsAccountLink = new AnalyticsAccountLink(); - $analyticsAccountLinkAnalyticsAccount = $gapicClient->accountName('[ACCOUNT]'); - $analyticsAccountLink->setAnalyticsAccount($analyticsAccountLinkAnalyticsAccount); - $request = (new CreateAnalyticsAccountLinkRequest()) - ->setParent($formattedParent) - ->setAnalyticsAccountLink($analyticsAccountLink); - $response = $gapicClient->createAnalyticsAccountLink($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/CreateAnalyticsAccountLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAnalyticsAccountLink(); - $this->assertProtobufEquals($analyticsAccountLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAnalyticsAccountLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationName('[ORGANIZATION]'); - $analyticsAccountLink = new AnalyticsAccountLink(); - $analyticsAccountLinkAnalyticsAccount = $gapicClient->accountName('[ACCOUNT]'); - $analyticsAccountLink->setAnalyticsAccount($analyticsAccountLinkAnalyticsAccount); - $request = (new CreateAnalyticsAccountLinkRequest()) - ->setParent($formattedParent) - ->setAnalyticsAccountLink($analyticsAccountLink); - try { - $gapicClient->createAnalyticsAccountLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAnalyticsAccountLinkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->analyticsAccountLinkName('[ORGANIZATION]', '[ANALYTICS_ACCOUNT_LINK]'); - $request = (new DeleteAnalyticsAccountLinkRequest()) - ->setName($formattedName); - $gapicClient->deleteAnalyticsAccountLink($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/DeleteAnalyticsAccountLink', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteAnalyticsAccountLinkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->analyticsAccountLinkName('[ORGANIZATION]', '[ANALYTICS_ACCOUNT_LINK]'); - $request = (new DeleteAnalyticsAccountLinkRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteAnalyticsAccountLink($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOrganizationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Organization(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->organizationName('[ORGANIZATION]'); - $request = (new GetOrganizationRequest()) - ->setName($formattedName); - $response = $gapicClient->getOrganization($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/GetOrganization', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOrganizationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->organizationName('[ORGANIZATION]'); - $request = (new GetOrganizationRequest()) - ->setName($formattedName); - try { - $gapicClient->getOrganization($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAnalyticsAccountLinksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $analyticsAccountLinksElement = new AnalyticsAccountLink(); - $analyticsAccountLinks = [ - $analyticsAccountLinksElement, - ]; - $expectedResponse = new ListAnalyticsAccountLinksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAnalyticsAccountLinks($analyticsAccountLinks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationName('[ORGANIZATION]'); - $request = (new ListAnalyticsAccountLinksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAnalyticsAccountLinks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAnalyticsAccountLinks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/ListAnalyticsAccountLinks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAnalyticsAccountLinksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationName('[ORGANIZATION]'); - $request = (new ListAnalyticsAccountLinksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAnalyticsAccountLinks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setPropertyServiceLevelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new SetPropertyServiceLevelResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $analyticsAccountLink = 'analyticsAccountLink-545363227'; - $formattedAnalyticsProperty = $gapicClient->propertyName('[PROPERTY]'); - $serviceLevel = AnalyticsServiceLevel::ANALYTICS_SERVICE_LEVEL_UNSPECIFIED; - $request = (new SetPropertyServiceLevelRequest()) - ->setAnalyticsAccountLink($analyticsAccountLink) - ->setAnalyticsProperty($formattedAnalyticsProperty) - ->setServiceLevel($serviceLevel); - $response = $gapicClient->setPropertyServiceLevel($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.marketingplatform.admin.v1alpha.MarketingplatformAdminService/SetPropertyServiceLevel', $actualFuncCall); - $actualValue = $actualRequestObject->getAnalyticsAccountLink(); - $this->assertProtobufEquals($analyticsAccountLink, $actualValue); - $actualValue = $actualRequestObject->getAnalyticsProperty(); - $this->assertProtobufEquals($formattedAnalyticsProperty, $actualValue); - $actualValue = $actualRequestObject->getServiceLevel(); - $this->assertProtobufEquals($serviceLevel, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setPropertyServiceLevelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $analyticsAccountLink = 'analyticsAccountLink-545363227'; - $formattedAnalyticsProperty = $gapicClient->propertyName('[PROPERTY]'); - $serviceLevel = AnalyticsServiceLevel::ANALYTICS_SERVICE_LEVEL_UNSPECIFIED; - $request = (new SetPropertyServiceLevelRequest()) - ->setAnalyticsAccountLink($analyticsAccountLink) - ->setAnalyticsProperty($formattedAnalyticsProperty) - ->setServiceLevel($serviceLevel); - try { - $gapicClient->setPropertyServiceLevel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createAnalyticsAccountLinkAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $analyticsAccount = 'analyticsAccount1988159092'; - $displayName = 'displayName1615086568'; - $expectedResponse = new AnalyticsAccountLink(); - $expectedResponse->setName($name); - $expectedResponse->setAnalyticsAccount($analyticsAccount); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationName('[ORGANIZATION]'); - $analyticsAccountLink = new AnalyticsAccountLink(); - $analyticsAccountLinkAnalyticsAccount = $gapicClient->accountName('[ACCOUNT]'); - $analyticsAccountLink->setAnalyticsAccount($analyticsAccountLinkAnalyticsAccount); - $request = (new CreateAnalyticsAccountLinkRequest()) - ->setParent($formattedParent) - ->setAnalyticsAccountLink($analyticsAccountLink); - $response = $gapicClient->createAnalyticsAccountLinkAsync($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.marketingplatform.admin.v1alpha.MarketingplatformAdminService/CreateAnalyticsAccountLink', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getAnalyticsAccountLink(); - $this->assertProtobufEquals($analyticsAccountLink, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/AptArtifact.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/AptArtifact.php deleted file mode 100644 index 8c8b14eb8dcfe8e39d38ae65b976a87e2d4fdc45..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2189 zcmb_d-EJF26z;~U)r`|BtOPir7gMKFTmfqwBrY~BU?+~T5Xs6(gNhbe_Q6> zs1}i$PYKnM&A8I?vUSmJkw}m7dnYl0P)MFL6%opC-|K$CG?@@h{C4t-$SlOJmi{_fd2q4KEYEGCMocH5VZ^ z3dbR3%||%JG;be9;2P-X^gI(Kh>$-BHIpF;fUu&HM_Nb^p1SUg=_0n~ruir{YvA}4 zH&c$TyF~H{)-q;g>ljO>V;SxxybZv-IQiEEuM=_qkh5UYW#{CA3+cKGuNEM$QXR4^ zwKvupM$|unn8)gROG)_N|CndN>P#j@Y!0EgnuRyUw;l9r4Sn?Qs>!wb5p9_a#VQpv{-~f@sov~2(5flmx`nOgTDS67r($oS zbtva=$&8H>(aJ*fy4fsop`vC>JOg;=i0$;_znK!!VodHBb>XJ>> zr|KjbVfH#&jU`u*%Sv<2eiPk|6&roeg9#;aqUt7(cN#xgXmc54$i9o2()JlbGpa^u z<0Klj-A`|n-et^!*k`xwd#D-_X)>4=+8tC)Z8Uzdu5+pYX&#q2)1TTWD(f!gi|Ip*uSxZD@EhpGuFldQ^r zaI^?th6!A@nb~j2@mn;s?`pTn$h$p$aX@{9u-ki`YW_ey&fzfzx z`Rcb7+)q}gv!5X6y)ewSuyfY_Gk@ay$s4~|uK6P$w(HB4?G(s$lUJ^L70Pwb+T$wp csTLpZ6r=mSbZwQk+$%R+@-p2+b2LZjA5XE}bpQYW diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Artifact.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Artifact.php deleted file mode 100644 index 78e24ecd6707..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Artifact.php +++ /dev/null @@ -1,113 +0,0 @@ -internalAddGeneratedFile( - ' -á -2google/devtools/artifactregistry/v1/artifact.proto#google.devtools.artifactregistry.v1google/api/resource.protogoogle/protobuf/timestamp.proto"˜ - DockerImage -name ( BàA -uri ( BàA -tags (  -image_size_bytes (/ - upload_time ( 2.google.protobuf.Timestamp - -media_type ( . - -build_time ( 2.google.protobuf.Timestamp4 - update_time ( 2.google.protobuf.TimestampBàA:êAŒ -+artifactregistry.googleapis.com/DockerImage]projects/{project}/locations/{location}/repositories/{repository}/dockerImages/{docker_image}"g -ListDockerImagesRequest -parent ( BàA - page_size ( - -page_token (  -order_by ( "| -ListDockerImagesResponseG - docker_images ( 20.google.devtools.artifactregistry.v1.DockerImage -next_page_token ( "Z -GetDockerImageRequestA -name ( B3àAúA- -+artifactregistry.googleapis.com/DockerImage"õ - MavenArtifact -name ( BàA -pom_uri ( BàA -group_id (  - artifact_id (  -version ( 4 - create_time ( 2.google.protobuf.TimestampBàA4 - update_time ( 2.google.protobuf.TimestampBàA:–êA’ --artifactregistry.googleapis.com/MavenArtifactaprojects/{project}/locations/{location}/repositories/{repository}/mavenArtifacts/{maven_artifact}"‰ -ListMavenArtifactsRequestE -parent ( B5àAúA/-artifactregistry.googleapis.com/MavenArtifact - page_size ( - -page_token ( "‚ -ListMavenArtifactsResponseK -maven_artifacts ( 22.google.devtools.artifactregistry.v1.MavenArtifact -next_page_token ( "^ -GetMavenArtifactRequestC -name ( B5àAúA/ --artifactregistry.googleapis.com/MavenArtifact"Ð - -NpmPackage -name ( BàA - package_name (  -version (  -tags ( 4 - create_time ( 2.google.protobuf.TimestampBàA4 - update_time ( 2.google.protobuf.TimestampBàA:êA‰ -*artifactregistry.googleapis.com/NpmPackage[projects/{project}/locations/{location}/repositories/{repository}/npmPackages/{npm_package}"ƒ -ListNpmPackagesRequestB -parent ( B2àAúA,*artifactregistry.googleapis.com/NpmPackage - page_size ( - -page_token ( "y -ListNpmPackagesResponseE - npm_packages ( 2/.google.devtools.artifactregistry.v1.NpmPackage -next_page_token ( "X -GetNpmPackageRequest@ -name ( B2àAúA, -*artifactregistry.googleapis.com/NpmPackage"à - PythonPackage -name ( BàA -uri ( BàA - package_name (  -version ( 4 - create_time ( 2.google.protobuf.TimestampBàA4 - update_time ( 2.google.protobuf.TimestampBàA:–êA’ --artifactregistry.googleapis.com/PythonPackageaprojects/{project}/locations/{location}/repositories/{repository}/pythonPackages/{python_package}"‰ -ListPythonPackagesRequestE -parent ( B5àAúA/-artifactregistry.googleapis.com/PythonPackage - page_size ( - -page_token ( "‚ -ListPythonPackagesResponseK -python_packages ( 22.google.devtools.artifactregistry.v1.PythonPackage -next_page_token ( "^ -GetPythonPackageRequestC -name ( B5àAúA/ --artifactregistry.googleapis.com/PythonPackageBø -\'com.google.devtools.artifactregistry.v1B ArtifactProtoPZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypbª Google.Cloud.ArtifactRegistry.V1Ê Google\\Cloud\\ArtifactRegistry\\V1ê#Google::Cloud::ArtifactRegistry::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Attachment.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Attachment.php deleted file mode 100644 index 394ad21ccd46..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Attachment.php +++ /dev/null @@ -1,66 +0,0 @@ -internalAddGeneratedFile( - ' -ó -4google/devtools/artifactregistry/v1/attachment.proto#google.devtools.artifactregistry.v1google/api/resource.protogoogle/protobuf/timestamp.proto" - -Attachment -name (  -target ( BàA -type (  -attachment_namespace ( Z - annotations ( 2@.google.devtools.artifactregistry.v1.Attachment.AnnotationsEntryBàA4 - create_time ( 2.google.protobuf.TimestampBàA4 - update_time ( 2.google.protobuf.TimestampBàA; -files ( B,àAúA& -$artifactregistry.googleapis.com/File -oci_version_name ( BàA2 -AnnotationsEntry -key (  -value ( :8:ŒêAˆ -*artifactregistry.googleapis.com/AttachmentZprojects/{project}/locations/{location}/repositories/{repository}/attachments/{attachment}"˜ -ListAttachmentsRequestB -parent ( B2àAúA,*artifactregistry.googleapis.com/Attachment -filter ( BàA - page_size ( - -page_token ( "x -ListAttachmentsResponseD - attachments ( 2/.google.devtools.artifactregistry.v1.Attachment -next_page_token ( "X -GetAttachmentRequest@ -name ( B2àAúA, -*artifactregistry.googleapis.com/Attachment"à -CreateAttachmentRequestB -parent ( B2àAúA,*artifactregistry.googleapis.com/Attachment - attachment_id ( BàAH - -attachment ( 2/.google.devtools.artifactregistry.v1.AttachmentBàA"[ -DeleteAttachmentRequest@ -name ( B2àAúA, -*artifactregistry.googleapis.com/AttachmentBú -\'com.google.devtools.artifactregistry.v1BAttachmentProtoPZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypbª Google.Cloud.ArtifactRegistry.V1Ê Google\\Cloud\\ArtifactRegistry\\V1ê#Google::Cloud::ArtifactRegistry::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/File.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/File.php deleted file mode 100644 index 2cbadf3e73155e801e36a6ac54afb16c8908db7f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2477 zcmb_eOK;mo5Uw6pta0MX1d1xYbSoRR3?vk+G(}1~ZK=pFAhrctG0=d3u%cEHYnscF zE48YjbFT$@Y5zihN`FPpIrr34XO|DFwiBp8b&x1>=9`&sz8UV$*Z$ClHL}k<7Er-@ zq&p#E$cP_s!ENr6?x^2q0kQd|@3<_`32B~?@AgBA#?=|;L%GK`qXA*ztuQmg7&DO*1kfqnlXxH-axU= zx3&RnmxdwPLo~Pof**g>bsd|8f(raucfyY2Il`f?^Apzeob;(1GIYFc+aGzhaJWaL z!-;3J>L!UWrR}Q2?KRktjvXEt#&uQKAn$TL zWpOX(_DbncQIBYNF@MC=x9y-11ikd{_Ejx-{FM_EZuWX9zfu6zlo83#2K@2>^#3MB zZ7s6b6Y1(VrK^v(Rv*To)OTt@OjIQ0)kOMA*eDK^IrgA)iFCvkpTy3og-B|S3@X27 zAb&u^q4o{r#l&aj49QfN>-D&l_ok*xNA=Z4PwfFLjHx?fpQ}d?;iCid z?4Z;Bwzb=Nb$r&^eQ~&VxZ5m!paB%l4$S(~FG?Bh9^{UiPfOX#Z+XZ|jWUpTm+JFkC(z$x3+v@s{eViGMIL*T~0}5qlNp^Fng?54h^e_t3tmJpt%5VGpCoi}PW$VTpPkm#c<*VY#U4 zHIjVaCn8;vshii%yB;n^Sx;uQ4yBt9v?a)0uu07NzxrAF<#D+o* zbzIvu)xl%r@jGUVuyz$+O=~Wg$>kKa?eoyVb>=X%P5(`%YI)j?$v{S6~VPz(@(8n$@?HMe{%tK6VetpX7w2$FKkNqe* zGm+(J6)P`cd7mi;5(13bIZ4W&uS1m+SZOks2_}R7AAmn+VC9t>ky*qY$V(nnhvpqq z=`U59otZkh-BefZn$`4mpu8G?Wx(1%Db6z^jiQX!lJD78=5@<<`KXupNi`4n?UMyc z9S;{b=fLl7-@f%nmh7t|hWinternalAddGeneratedFile( - ' -Ô -1google/devtools/artifactregistry/v1/generic.proto#google.devtools.artifactregistry.v1google/api/resource.protogoogle/protobuf/timestamp.proto"» -GenericArtifact -name (  -version ( 4 - create_time ( 2.google.protobuf.TimestampBàA4 - update_time ( 2.google.protobuf.TimestampBàA:œêA˜ -/artifactregistry.googleapis.com/GenericArtifacteprojects/{project}/locations/{location}/repositories/{repository}/genericArtifacts/{generic_artifact}B÷ -\'com.google.devtools.artifactregistry.v1B GenericProtoPZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypbª Google.Cloud.ArtifactRegistry.V1Ê Google\\Cloud\\ArtifactRegistry\\V1ê#Google::Cloud::ArtifactRegistry::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Package.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Package.php deleted file mode 100644 index 1970c0d56337..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Package.php +++ /dev/null @@ -1,60 +0,0 @@ -internalAddGeneratedFile( - ' -­ -1google/devtools/artifactregistry/v1/package.proto#google.devtools.artifactregistry.v1google/api/resource.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"¡ -Package -name (  - display_name ( / - create_time ( 2.google.protobuf.Timestamp/ - update_time ( 2.google.protobuf.TimestampW - annotations ( 2=.google.devtools.artifactregistry.v1.Package.AnnotationsEntryBàA2 -AnnotationsEntry -key (  -value ( :8:‚êA -\'artifactregistry.googleapis.com/PackageTprojects/{project}/locations/{location}/repositories/{repository}/packages/{package}"© -ListPackagesRequest? -parent ( B/àAúA)\'artifactregistry.googleapis.com/Package - page_size ( - -page_token (  -filter ( BàA -order_by ( BàA"o -ListPackagesResponse> -packages ( 2,.google.devtools.artifactregistry.v1.Package -next_page_token ( "R -GetPackageRequest= -name ( B/àAúA) -\'artifactregistry.googleapis.com/Package"U -DeletePackageRequest= -name ( B/àAúA) -\'artifactregistry.googleapis.com/Package"† -UpdatePackageRequest= -package ( 2,.google.devtools.artifactregistry.v1.Package/ - update_mask ( 2.google.protobuf.FieldMaskB÷ -\'com.google.devtools.artifactregistry.v1B PackageProtoPZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypbª Google.Cloud.ArtifactRegistry.V1Ê Google\\Cloud\\ArtifactRegistry\\V1ê#Google::Cloud::ArtifactRegistry::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Repository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Repository.php deleted file mode 100644 index f36277f4dfdecf71d697adce716209516561d9d9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10174 zcmcf{&u`n-Ig)J0{$$HC?tECUkE-9oBbp4=Day@cv>w4eHDW(CsUhm2P-2;VVevpE2C) ztKGC^D>nXnO|@iIQ*Bl0t51->57YZf-y*pE^xFNQ*0oh#OVbTCtxN8`k>)Vz+Sd%^ z3-`O!)v1V3Je`VW6H`6?3RIA|$2bw7QN(^x2+BJ#tu zZ4QYadpd0rduVD87~K@WiTBi*AUn}eI~ywL_lo3DIaYPEP#AMH26EQc266N{^)62w zs;XvI*`C%B}!N36f%d}98A)|Kly;&i^de&&7Or%ILw zC^ToqoiGI3l?-2yu^`bl&?Sj7sO#t|BLN_)_EM2_ksThKo&HOqBH%fh?XhVY|E$Lbh-BQVFA-yDA0#OH{x2=nc#^D8P`g_u}< zl#CS@0c20e#U+T#V+PpIF>RScxD$}A?|p%;XLOgz6m6{^W_vtI`TA74oAP)L-0W z%?WUq;zu+vgt!1vJBVa73X^;ApQ>l4|-eT*qE zrq`6PMMOPMSI(^eJ_^?+fDwKff!jliCbsl+#7z6KZuVq9{gk_S{^$kMpKUux>kdvI zZ(CQ^e;k2Z&sae-50`33{B>CK$hQbGV7q5PAiLq828xDfzUlDfr8Z5r&pG|*A?B0A z`v0Pk496eg3HmE5MErh4C6>s4ei?~{5oPNPOTf1fcXw#ndceJS=zFoaOAL!2_xc@3 zhTjTthz(7Zt0N;pGEB1YD%`HOi`$iw+>q+EW~EhYJPI9i34n5~^iXQZTkT>pQUuhq zb7oNmEQi9fFgjcQoz7(x5JEIb{)qc5`M+4)VM(KZJXii(7nA=AEbWN9QdKTV)mB5? z4yoW@n8*c=EaCCl3i$Lg@(*B{Bz;7Dmh@jB;){s>Pb7NNCQs_IUnMMi;;`N$4-j+JlHE zNcI$pub`fjqb~1{I-ZFnLH>+a3xm9Z=W6zDffkW$`XhVT~ z^`+TR0LwRNLqWt7Z0L92pbZ6yxv&lWEOH?uqNipJBRJ-#i~Lze`)O~YDUILkitTN* zBLUA^XHB!!ki?zjjDTlA1Jj>J$yr+DOLb{GId?vLdlUO_6U!DPV4R-Onjl(Sh9#5L z?=tUAW`4B_Fm@f`b6Di1HTD>=f#6g!(v&XlR)N`2D#g1ISVhUOIW_W%0!Boi3=%{Q(kcX5bLSH;|Ff226rfX}3i%f?H+UJ|0 zrI}OYJcPM@-5e;q*_Oz^Hx>C~m1Z~CZeBcws#sb%EC`69uj~=5TWN=M+OC`r!#3M3 zX*dfK-enaOwrFMAoKEpR#=1+h*Fg1p`joC1-8D3@f^~NBw(E0uVgL7NV97^h#9Fzj zdB)Br%nbA%Ndf*!7U=ujIXvjjg#Qq&db#vJOiYmh=`*0W8^gVx^M!jaBwB;V#?=P&Sf#=14Y&T1s#i zMexwMeLU>b>EE8($9BDJbrnrhwFB23uHoA0TV|eb@A`o@9hlsBIZNM$o3umG@9U4{ zp=KGRt0EIP$)H-fJ|-~4p_;nkev7UDI|A1y1`(_%Z*tI)kk9 zZD3m$GZNm@_tK2$`gh>Q^3 z%2hmXR!m*6PNVs(8hA*cgQs}@xz7Crl0M4$1c}D0MEwd?g-g9E<~E8dqe z7MkOFuj%MvSHc|kZHW5=Ikt8%usVm(63k+camZ(Q3x()+BkNzl>ZGVfTSDV~qJLjJ zpPx!|ey}5oEAutX@l%Y>N;YbZ9kCS>DrWG!iG)6d85L`2UC1;3_2hyu2hq)15|D|jn^F~ZR7%D(J(!_~0*)J#JGFAS zj#z_hsFP}0Y?OUHE+hj<-K{iQZE@TGJ}RJ28q!V;M}6Z0B^fK2PeuJ)lUNZC(=SNZ zwsK!NPbay)-eqlIeCIx%_Pz*;aUR>&IBwb-u`Gi*WhCs7 zFrrncM!vMMb&jNSI@vHi^8;AjBx7NXTv2`OPv~4hok!Q1KcXVATaF3Rm<|{Ei%Aw*zR&AZ!J$4e)03d1XceW;FA2{uPeYDP+;PeARF+a%Fe#|JhyA>992&?}nDUsDoFu zo<{F-K!pNZRVai(6$-dYJc2i;AHE15P6%jxJBBU(aFTNpJMWD<@i}=aevRVB3DdFK zB|R1I1hCs^p_?pC{$2R~1YB;!3M XzMEk*i&481ZiTUx{O;BXoB;eEx9nO- diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Rule.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Rule.php deleted file mode 100644 index 88272adadee9d24fd1ffcc31f5674bc5546d582a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2338 zcmbtW!EW0|5Upg{jmAbI5oqf8w3Uro22!$eTC|{(wv;6s0u)hD9S1E42o$xFx28#! zT&ht6{X&1Bf6)KvrC*VA&OPlmwyAeaCmnARdiqNF4tnU@i?+LK-INm?xy!Xq|k9u8|*y4%Nxn_s1^PhIGPx z-;Fdof ztsMY3t{p|BhiLE`2!4Wi;4+6q+~)YT!=gU(7-zQ2e#e@gk&*326df0BN3rK{=6ggq zn4UwcdnCaWwmSjVg8o@vT|o;{VzoR@L(g_G)5r-~!2Pg`rn)|+d`_k~sqUp=1sofZ zYLcU_FC_Vl@Gz!VqZ1NR9*5q6%v%7==1-5Z?FhA7w%c?FxZgTC> zw3kbJ&FPR)pWD&-@)1v_0kxX1f*X>Q%zyD6OL;bi!#S--D8%ZV2tms({ILP*-4v*7 zC-!QlSoOMM)k$sZQ3`4YObb(f5(RH%ikEsuO=u%Qeg6VkNG%?w&KyhCD3+R>SN>js zf)KB=0R=Gzn>muJ7L^}h4d(^5xS7ZI`}<#}72TSlDu7f&`YA_H^aC--0%S#kJXs#Z z%v_Z{C_273#0f&20^+Rimopquj4Jw8UwLEX6a@f>_}m`TJ{xYXib5)1!&;iqLr{#v zla|@(zv%qfZ63CcTFpl3Bc%wdM!RjkEajAYP-rweKb7*8ub_CD!Xx;^>^6JGdz?4m zUc-FZX`4o)l+&kgjS1{5^e&+u+ZL&KcWILD4z}tS>hMT=oj%Pp*LNgcc$PiRu+xDb zF`Q{e@qGR^#b1zZafDy9%5P9=yO_U`Tva1mE|%l zLopCkMtE;Y6|5!%;}Q4IY0}hUWd!9bfuq3pBC31~t1>$byn+qe%Nll@zNLDUPvL<_ zU-7;Sox~9eELPfZ|Cq}9vhwt+ip`2!j{eG@IVc~76xWPkEJOS-!XCiKqG+K#nX>W? z6vTm4|6NF^%%J=tz#a5Xav7Q!(7T{18mz|>P2LAGxApz4tR>l%q0aBkiV5Wgb?Lj| zKY;D}zd5jWQTkcT+hkBLijH)}a_i=P?mDg?4>Lb8J!5}yo#SZXM!!CH!Qf!==&w9E zmU~@2l*mT9)O+b)1NF4_PiA6S(#D!^{>;e2)&DlXodD^&w9@tKP`Z9v8>~rwpX|internalAddGeneratedFile( - ' -ä` -1google/devtools/artifactregistry/v1/service.proto#google.devtools.artifactregistry.v1google/api/client.proto6google/devtools/artifactregistry/v1/apt_artifact.proto2google/devtools/artifactregistry/v1/artifact.proto4google/devtools/artifactregistry/v1/attachment.proto.google/devtools/artifactregistry/v1/file.proto1google/devtools/artifactregistry/v1/package.proto4google/devtools/artifactregistry/v1/repository.proto.google/devtools/artifactregistry/v1/rule.proto2google/devtools/artifactregistry/v1/settings.proto-google/devtools/artifactregistry/v1/tag.proto1google/devtools/artifactregistry/v1/version.proto6google/devtools/artifactregistry/v1/vpcsc_config.proto6google/devtools/artifactregistry/v1/yum_artifact.protogoogle/iam/v1/iam_policy.protogoogle/iam/v1/policy.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto" -OperationMetadata2êW -ArtifactRegistryá -ListDockerImages<.google.devtools.artifactregistry.v1.ListDockerImagesRequest=.google.devtools.artifactregistry.v1.ListDockerImagesResponse"PÚAparent‚Óä“A?/v1/{parent=projects/*/locations/*/repositories/*}/dockerImagesÎ -GetDockerImage:.google.devtools.artifactregistry.v1.GetDockerImageRequest0.google.devtools.artifactregistry.v1.DockerImage"NÚAname‚Óä“A?/v1/{name=projects/*/locations/*/repositories/*/dockerImages/*}é -ListMavenArtifacts>.google.devtools.artifactregistry.v1.ListMavenArtifactsRequest?.google.devtools.artifactregistry.v1.ListMavenArtifactsResponse"RÚAparent‚Óä“CA/v1/{parent=projects/*/locations/*/repositories/*}/mavenArtifactsÖ -GetMavenArtifact<.google.devtools.artifactregistry.v1.GetMavenArtifactRequest2.google.devtools.artifactregistry.v1.MavenArtifact"PÚAname‚Óä“CA/v1/{name=projects/*/locations/*/repositories/*/mavenArtifacts/*}Ý -ListNpmPackages;.google.devtools.artifactregistry.v1.ListNpmPackagesRequest<.google.devtools.artifactregistry.v1.ListNpmPackagesResponse"OÚAparent‚Óä“@>/v1/{parent=projects/*/locations/*/repositories/*}/npmPackagesÊ - GetNpmPackage9.google.devtools.artifactregistry.v1.GetNpmPackageRequest/.google.devtools.artifactregistry.v1.NpmPackage"MÚAname‚Óä“@>/v1/{name=projects/*/locations/*/repositories/*/npmPackages/*}é -ListPythonPackages>.google.devtools.artifactregistry.v1.ListPythonPackagesRequest?.google.devtools.artifactregistry.v1.ListPythonPackagesResponse"RÚAparent‚Óä“CA/v1/{parent=projects/*/locations/*/repositories/*}/pythonPackagesÖ -GetPythonPackage<.google.devtools.artifactregistry.v1.GetPythonPackageRequest2.google.devtools.artifactregistry.v1.PythonPackage"PÚAname‚Óä“CA/v1/{name=projects/*/locations/*/repositories/*/pythonPackages/*}Ë -ImportAptArtifacts>.google.devtools.artifactregistry.v1.ImportAptArtifactsRequest.google.longrunning.Operation"ÕÊA€ ->google.devtools.artifactregistry.v1.ImportAptArtifactsResponse>google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata‚Óä“K"F/v1/{parent=projects/*/locations/*/repositories/*}/aptArtifacts:import:*Ë -ImportYumArtifacts>.google.devtools.artifactregistry.v1.ImportYumArtifactsRequest.google.longrunning.Operation"ÕÊA€ ->google.devtools.artifactregistry.v1.ImportYumArtifactsResponse>google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata‚Óä“K"F/v1/{parent=projects/*/locations/*/repositories/*}/yumArtifacts:import:*Ò -ListRepositories<.google.devtools.artifactregistry.v1.ListRepositoriesRequest=.google.devtools.artifactregistry.v1.ListRepositoriesResponse"AÚAparent‚Óä“20/v1/{parent=projects/*/locations/*}/repositories¼ - GetRepository9.google.devtools.artifactregistry.v1.GetRepositoryRequest/.google.devtools.artifactregistry.v1.Repository"?ÚAname‚Óä“20/v1/{name=projects/*/locations/*/repositories/*} -CreateRepository<.google.devtools.artifactregistry.v1.CreateRepositoryRequest.google.longrunning.Operation"ÐÊAg -.google.devtools.artifactregistry.v1.Repository5google.devtools.artifactregistry.v1.OperationMetadataÚAparent,repository,repository_id‚Óä“>"0/v1/{parent=projects/*/locations/*}/repositories: -repositoryë -UpdateRepository<.google.devtools.artifactregistry.v1.UpdateRepositoryRequest/.google.devtools.artifactregistry.v1.Repository"hÚArepository,update_mask‚Óä“I2;/v1/{repository.name=projects/*/locations/*/repositories/*}: -repository‚ -DeleteRepository<.google.devtools.artifactregistry.v1.DeleteRepositoryRequest.google.longrunning.Operation"ÊAN -google.protobuf.Empty5google.devtools.artifactregistry.v1.OperationMetadataÚAname‚Óä“2*0/v1/{name=projects/*/locations/*/repositories/*}Ñ - ListPackages8.google.devtools.artifactregistry.v1.ListPackagesRequest9.google.devtools.artifactregistry.v1.ListPackagesResponse"LÚAparent‚Óä“=;/v1/{parent=projects/*/locations/*/repositories/*}/packages¾ - -GetPackage6.google.devtools.artifactregistry.v1.GetPackageRequest,.google.devtools.artifactregistry.v1.Package"JÚAname‚Óä“=;/v1/{name=projects/*/locations/*/repositories/*/packages/*}‡ - DeletePackage9.google.devtools.artifactregistry.v1.DeletePackageRequest.google.longrunning.Operation"›ÊAN -google.protobuf.Empty5google.devtools.artifactregistry.v1.OperationMetadataÚAname‚Óä“=*;/v1/{name=projects/*/locations/*/repositories/*/packages/*}Ü - ListVersions8.google.devtools.artifactregistry.v1.ListVersionsRequest9.google.devtools.artifactregistry.v1.ListVersionsResponse"WÚAparent‚Óä“HF/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versionsÉ - -GetVersion6.google.devtools.artifactregistry.v1.GetVersionRequest,.google.devtools.artifactregistry.v1.Version"UÚAname‚Óä“HF/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}’ - DeleteVersion9.google.devtools.artifactregistry.v1.DeleteVersionRequest.google.longrunning.Operation"¦ÊAN -google.protobuf.Empty5google.devtools.artifactregistry.v1.OperationMetadataÚAname‚Óä“H*F/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}¿ -BatchDeleteVersions?.google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest.google.longrunning.Operation"ÇÊAX -google.protobuf.Empty?google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadataÚA parent,names‚Óä“W"R/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versions:batchDelete:*ï - UpdateVersion9.google.devtools.artifactregistry.v1.UpdateVersionRequest,.google.devtools.artifactregistry.v1.Version"uÚAversion,update_mask‚Óä“Y2N/v1/{version.name=projects/*/locations/*/repositories/*/packages/*/versions/*}:versionÅ - ListFiles5.google.devtools.artifactregistry.v1.ListFilesRequest6.google.devtools.artifactregistry.v1.ListFilesResponse"IÚAparent‚Óä“:8/v1/{parent=projects/*/locations/*/repositories/*}/files³ -GetFile3.google.devtools.artifactregistry.v1.GetFileRequest).google.devtools.artifactregistry.v1.File"HÚAname‚Óä“;9/v1/{name=projects/*/locations/*/repositories/*/files/**}þ - -DeleteFile6.google.devtools.artifactregistry.v1.DeleteFileRequest.google.longrunning.Operation"˜ÊAN -google.protobuf.Empty5google.devtools.artifactregistry.v1.OperationMetadataÚAname‚Óä“:*8/v1/{name=projects/*/locations/*/repositories/*/files/*}Ï - -UpdateFile6.google.devtools.artifactregistry.v1.UpdateFileRequest).google.devtools.artifactregistry.v1.File"^ÚAfile,update_mask‚Óä“E2=/v1/{file.name=projects/*/locations/*/repositories/*/files/*}:fileÌ -ListTags4.google.devtools.artifactregistry.v1.ListTagsRequest5.google.devtools.artifactregistry.v1.ListTagsResponse"SÚAparent‚Óä“DB/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags¹ -GetTag2.google.devtools.artifactregistry.v1.GetTagRequest(.google.devtools.artifactregistry.v1.Tag"QÚAname‚Óä“DB/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}Ñ - CreateTag5.google.devtools.artifactregistry.v1.CreateTagRequest(.google.devtools.artifactregistry.v1.Tag"cÚAparent,tag,tag_id‚Óä“I"B/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags:tagÓ - UpdateTag5.google.devtools.artifactregistry.v1.UpdateTagRequest(.google.devtools.artifactregistry.v1.Tag"eÚAtag,update_mask‚Óä“M2F/v1/{tag.name=projects/*/locations/*/repositories/*/packages/*/tags/*}:tag­ - DeleteTag5.google.devtools.artifactregistry.v1.DeleteTagRequest.google.protobuf.Empty"QÚAname‚Óä“D*B/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}Í - -CreateRule6.google.devtools.artifactregistry.v1.CreateRuleRequest).google.devtools.artifactregistry.v1.Rule"\\ÚAparent,rule,rule_id‚Óä“@"8/v1/{parent=projects/*/locations/*/repositories/*}/rules:ruleÅ - ListRules5.google.devtools.artifactregistry.v1.ListRulesRequest6.google.devtools.artifactregistry.v1.ListRulesResponse"IÚAparent‚Óä“:8/v1/{parent=projects/*/locations/*/repositories/*}/rules² -GetRule3.google.devtools.artifactregistry.v1.GetRuleRequest).google.devtools.artifactregistry.v1.Rule"GÚAname‚Óä“:8/v1/{name=projects/*/locations/*/repositories/*/rules/*}Ï - -UpdateRule6.google.devtools.artifactregistry.v1.UpdateRuleRequest).google.devtools.artifactregistry.v1.Rule"^ÚArule,update_mask‚Óä“E2=/v1/{rule.name=projects/*/locations/*/repositories/*/rules/*}:rule¥ - -DeleteRule6.google.devtools.artifactregistry.v1.DeleteRuleRequest.google.protobuf.Empty"GÚAname‚Óä“:*8/v1/{name=projects/*/locations/*/repositories/*/rules/*}— - SetIamPolicy".google.iam.v1.SetIamPolicyRequest.google.iam.v1.Policy"L‚Óä“F"A/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy:*” - GetIamPolicy".google.iam.v1.GetIamPolicyRequest.google.iam.v1.Policy"I‚Óä“CA/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy½ -TestIamPermissions(.google.iam.v1.TestIamPermissionsRequest).google.iam.v1.TestIamPermissionsResponse"R‚Óä“L"G/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions:*À -GetProjectSettings>.google.devtools.artifactregistry.v1.GetProjectSettingsRequest4.google.devtools.artifactregistry.v1.ProjectSettings"4ÚAname‚Óä“\'%/v1/{name=projects/*/projectSettings} -UpdateProjectSettingsA.google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest4.google.devtools.artifactregistry.v1.ProjectSettings"oÚAproject_settings,update_mask‚Óä“J26/v1/{project_settings.name=projects/*/projectSettings}:project_settings¼ -GetVPCSCConfig:.google.devtools.artifactregistry.v1.GetVPCSCConfigRequest0.google.devtools.artifactregistry.v1.VPCSCConfig"<ÚAname‚Óä“/-/v1/{name=projects/*/locations/*/vpcscConfig}ñ -UpdateVPCSCConfig=.google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest0.google.devtools.artifactregistry.v1.VPCSCConfig"kÚAvpcsc_config,update_mask‚Óä“J2:/v1/{vpcsc_config.name=projects/*/locations/*/vpcscConfig}: vpcsc_configä - UpdatePackage9.google.devtools.artifactregistry.v1.UpdatePackageRequest,.google.devtools.artifactregistry.v1.Package"jÚApackage,update_mask‚Óä“N2C/v1/{package.name=projects/*/locations/*/repositories/*/packages/*}:packageÝ -ListAttachments;.google.devtools.artifactregistry.v1.ListAttachmentsRequest<.google.devtools.artifactregistry.v1.ListAttachmentsResponse"OÚAparent‚Óä“@>/v1/{parent=projects/*/locations/*/repositories/*}/attachmentsÊ - GetAttachment9.google.devtools.artifactregistry.v1.GetAttachmentRequest/.google.devtools.artifactregistry.v1.Attachment"MÚAname‚Óä“@>/v1/{name=projects/*/locations/*/repositories/*/attachments/*}Ð -CreateAttachment<.google.devtools.artifactregistry.v1.CreateAttachmentRequest.google.longrunning.Operation"ÞÊAg -.google.devtools.artifactregistry.v1.Attachment5google.devtools.artifactregistry.v1.OperationMetadataÚAparent,attachment,attachment_id‚Óä“L">/v1/{parent=projects/*/locations/*/repositories/*}/attachments: -attachment -DeleteAttachment<.google.devtools.artifactregistry.v1.DeleteAttachmentRequest.google.longrunning.Operation"žÊAN -google.protobuf.Empty5google.devtools.artifactregistry.v1.OperationMetadataÚAname‚Óä“@*>/v1/{name=projects/*/locations/*/repositories/*/attachments/*}ŒÊAartifactregistry.googleapis.comÒAghttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-onlyB÷ -\'com.google.devtools.artifactregistry.v1B ServiceProtoPZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypbª Google.Cloud.ArtifactRegistry.V1Ê Google\\Cloud\\ArtifactRegistry\\V1ê#Google::Cloud::ArtifactRegistry::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Settings.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Settings.php deleted file mode 100644 index 49d4de20ff0f25fa38c8ba88f939789269fa6786..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1939 zcmbVNO>fgc5GA1?*z!?X97+XZn^tNnz*Y(pl1o9(r!2Kek*&<=735LgrDfVqEXwcBhXUb+f+;p-~WXm+E*N1Y?hCLwYQNz>74(1sf4p za5`p@;3wK~MT@8q%pXUpq({gnM>GnFOL41P-J^mGi6C}MGTHTv$u_2#?1RcSLas-m z2=_8Z^d4dOh4H{+E{+5d@VCw)hxtq};<0zo+YTNPFQO1Uiyg(jD_G#;B%tHFw7iK^ z&IG$2LQfE%*Vaws0cmX07nJ+NgK8s}vrq)Q3s7AjQ!x=W`BL7@(k66lgv)7-x;|6n z4i-G7=d)wXsffA1E$dDQPA4b(H_90yvzv^1!zw)_$1LEwe%93)$-GdDW;6ZksEHgh z>mG^T{63?U@!>O;iDnFk6OEeSuJWX-q{j{P`6}A_cUviIX^fg%QJuD;dR$q#oe`6e zX*_E;PQGHL%NDmD|BuT+-^EzwlctxR zTHIR6sUVeHe(L15SHBmKy#W&DkUw3$>h)Ya=tczH!mF<91@SPCO(ro8W`?D~nBWPS zzRTfYd-l`kB5uh?M6F5Y`~|VHw@5vxe90lUEiv}wnaM#myffd5YblYgOO&opQ|bCa eWpG(a@@QkSzaFGJ{M^c)yY3}2UCO8E6rrENZirO? diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Tag.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Tag.php deleted file mode 100644 index 697e136300dc..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Tag.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' - --google/devtools/artifactregistry/v1/tag.proto#google.devtools.artifactregistry.v1 google/protobuf/field_mask.proto"± -Tag -name (  -version ( :ŠêA† -#artifactregistry.googleapis.com/Tag_projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}"X -ListTagsRequest -parent (  -filter (  - page_size ( - -page_token ( "c -ListTagsResponse6 -tags ( 2(.google.devtools.artifactregistry.v1.Tag -next_page_token ( " - GetTagRequest -name ( "i -CreateTagRequest -parent (  -tag_id ( 5 -tag ( 2(.google.devtools.artifactregistry.v1.Tag"z -UpdateTagRequest5 -tag ( 2(.google.devtools.artifactregistry.v1.Tag/ - update_mask ( 2.google.protobuf.FieldMask" -DeleteTagRequest -name ( Bó -\'com.google.devtools.artifactregistry.v1BTagProtoPZPcloud.google.com/go/artifactregistry/apiv1/artifactregistrypb;artifactregistrypbª Google.Cloud.ArtifactRegistry.V1Ê Google\\Cloud\\ArtifactRegistry\\V1ê#Google::Cloud::ArtifactRegistry::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Version.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/Version.php deleted file mode 100644 index 81d53cf2a243935847aa296a439e7839a77ad3ca..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2901 zcmbVO-A)@v6s~Q4%$Ou(Lll=r>eNKSRAjd%QdKR1)&_$t5wQ4iq-rH=ydIk^%g%Op z?AAqog5LF_PtdEXH@)jK^eJ+k7pT;$o|&Cpz$O&nhVktA{mwbxoY!CbCq7!lJJh2A z;k1og1I$k-_5;S5&0O5-bviV_Haqhjmj*hG$I zFSpxCiML@iib+vKiI&hGk5K8(GodX;DtbId`sf(x{nEn6$}aI8BT(gvW@_Q(ZCrBF zRpRl~%7KKAHaenlnrDE#l6bBRCK52q0I&M`>F8G;V;Bh(ew#qkYDl$NG$AHFpTeo) zjP?ZO+G=WG@bVdXX`q}PP#~hFFqEH!%iQXM9(jpOLX>(^DGd~QKG23znEGFZ4Ky22 zS5RFOUTt#R z3x#{+UwDP)x2Q`wRrR>u3v^hA!Q(FrkuCh0LJJkb?UO62Nhx1nEoEip-}16{`&QgQ zlX71GXBmLrcvnt?fjji_Q}h7l!I5OaJa-@|CtLUueR56E@iro=&>=wY?PgL;89?FZ z6q-Ml)H8xn1x+ha*|T>nyJ)oZC0Y|yEb+aL2a{*=^KVd2g(3U*Im$Px2Zy!&y=J3U zecL?VJFHhXYumNz*4#(h44SNz4{MuqDJ_d8wvTsr=hBsb1TVns-=;?^v&varY(n+a zw{_cPy>_fB7^KU_H$b2lSOQ16$8W8TU;UoOJ8}=yH>KsWS^^K$HmNsCf5#%0C1tE+ zQ;dZySQX!=7b8QaDWyzv)Rbv9O06kL-mjLDM|>sP!!E6DA6(g_WVBcf(Ga2k0JWFE ADgXcg diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/VpcscConfig.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/VpcscConfig.php deleted file mode 100644 index 9c53b4ad9b06433977727d5c19e02b53051a2c06..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1693 zcmbVM-EPw`6sFbqnLD8>5>lDCFx{ke0us7OTx1)N{;JZpM%`AlDN>cDPG`vC;5e1W z)TiKvXF%dbcnYrf2ylaACtcNUXrniEtaH9|&UZe4+wX$Y0Ia|!@)5Ne8o>TJWTyxQ zlrZ8D5B4M1MHD*ZEWjS3DulH*+;1PkdaZT%oTr8)q7KsGkdUE=v;i71LcCD3DZ{Sq zFp7paWb|Acm96_8ON>$d^Db)wr9pHafYmx&k*%(k2f4T6bFn@lZWd15U~lj@l9zxDI3FK z7nWp?x<1$B4rDY!)72rQh(*-j5`D)2^kV6L34g8cl|l>Re7$EwsuPt+_Fuy)!4T_r!&xfvUY znK>~Xk3@qsJ>J5Q%sVMx5jWG>{RRE4`K#|)*c4W(Rt2(=_-H3_Wwl%WnTA-Fh_NPS wn+93jZ7;Jc5=hrYl&;T0>3X-^e;`=dT$?=Mm(s?jT<=E56Oq!F#$XJ9m;e9( diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/YumArtifact.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/GPBMetadata/Google/Devtools/Artifactregistry/V1/YumArtifact.php deleted file mode 100644 index cbae06146552c32a602faa8042ac638979117a61..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2138 zcmb_dPj4GV6z|5tYA0^6ad#^RvC>4t-y^PuJm8uWpZ@?UKEo5@D+czfx|1lNnu`F( z2FC$qjmJ2}jCCJ{kQ&(M;kj{@ph8|h&`buzhkzB8Jk&zEpz1hNri?~pTp+-4W#k_+iL%dD0luQMI6 zthG0`8idq4ftp9^dQVCDKKO)Z#cGYmMQsj&T#X`|IJaH&7eXKZJ64%HshyRx(aKqu zv(dV2Zf|AaB;>Ztl1*8;{ca|bA+_TUMJg54f2^R565q_X(Rxhant_eRop$BVR>j;x zcY)5|k|`S|qP3;ytEEWKLsqMR=>FbQ>ju$UC9js7;-3OW;gd*u!8N165LR0+eAYW? zqoi&=KsC43`J&b94o}bB?(q51iQDb;5BuGN&08iy)pq}=H8|fi;`7Pz^FgP(x#s+0 zylVYqp!ZkGm_`m2R2DoDb}2~nYZ&lvARcAE%uWm27ZgTP1aOxh7f}09C=MgT8Qd3N z^F{n#(4?Vb;+mdQFW5MN9J9$9!ajCF_p$0^Br_AQf&A=_s5jT zv8u&Qxn2L+KwGOI1NL3Sls3;0no>1Pry#M|*!%28y;{XA0{i@yc^_3nB3Ym_*4#$b z)JOeSlR(>>CDtWd zz%^dD)ECh>H;>0*DpuDZ%nEG6tAiAd_E)cdTf@C%4_ciBIiH0=wogoogle.devtools.artifactregistry.v1.AptArtifact - */ -class AptArtifact extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The Artifact Registry resource name of the artifact. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. The Apt package name of the artifact. - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $package_name = ''; - /** - * Output only. An artifact is a binary or source package. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $package_type = 0; - /** - * Output only. Operating system architecture of the artifact. - * - * Generated from protobuf field string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $architecture = ''; - /** - * Output only. Repository component of the artifact. - * - * Generated from protobuf field string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $component = ''; - /** - * Output only. Contents of the artifact's control metadata file. - * - * Generated from protobuf field bytes control_file = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $control_file = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The Artifact Registry resource name of the artifact. - * @type string $package_name - * Output only. The Apt package name of the artifact. - * @type int $package_type - * Output only. An artifact is a binary or source package. - * @type string $architecture - * Output only. Operating system architecture of the artifact. - * @type string $component - * Output only. Repository component of the artifact. - * @type string $control_file - * Output only. Contents of the artifact's control metadata file. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\AptArtifact::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The Artifact Registry resource name of the artifact. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The Artifact Registry resource name of the artifact. - * - * 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 Apt package name of the artifact. - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPackageName() - { - return $this->package_name; - } - - /** - * Output only. The Apt package name of the artifact. - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPackageName($var) - { - GPBUtil::checkString($var, True); - $this->package_name = $var; - - return $this; - } - - /** - * Output only. An artifact is a binary or source package. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getPackageType() - { - return $this->package_type; - } - - /** - * Output only. An artifact is a binary or source package. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.AptArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setPackageType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\AptArtifact\PackageType::class); - $this->package_type = $var; - - return $this; - } - - /** - * Output only. Operating system architecture of the artifact. - * - * Generated from protobuf field string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getArchitecture() - { - return $this->architecture; - } - - /** - * Output only. Operating system architecture of the artifact. - * - * Generated from protobuf field string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setArchitecture($var) - { - GPBUtil::checkString($var, True); - $this->architecture = $var; - - return $this; - } - - /** - * Output only. Repository component of the artifact. - * - * Generated from protobuf field string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getComponent() - { - return $this->component; - } - - /** - * Output only. Repository component of the artifact. - * - * Generated from protobuf field string component = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setComponent($var) - { - GPBUtil::checkString($var, True); - $this->component = $var; - - return $this; - } - - /** - * Output only. Contents of the artifact's control metadata file. - * - * Generated from protobuf field bytes control_file = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getControlFile() - { - return $this->control_file; - } - - /** - * Output only. Contents of the artifact's control metadata file. - * - * Generated from protobuf field bytes control_file = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setControlFile($var) - { - GPBUtil::checkString($var, False); - $this->control_file = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/AptArtifact/PackageType.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/AptArtifact/PackageType.php deleted file mode 100644 index cc6369f933a6..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/AptArtifact/PackageType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.devtools.artifactregistry.v1.AptArtifact.PackageType - */ -class PackageType -{ - /** - * Package type is not specified. - * - * Generated from protobuf enum PACKAGE_TYPE_UNSPECIFIED = 0; - */ - const PACKAGE_TYPE_UNSPECIFIED = 0; - /** - * Binary package. - * - * Generated from protobuf enum BINARY = 1; - */ - const BINARY = 1; - /** - * Source package. - * - * Generated from protobuf enum SOURCE = 2; - */ - const SOURCE = 2; - - private static $valueToName = [ - self::PACKAGE_TYPE_UNSPECIFIED => 'PACKAGE_TYPE_UNSPECIFIED', - self::BINARY => 'BINARY', - self::SOURCE => 'SOURCE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PackageType::class, \Google\Cloud\ArtifactRegistry\V1\AptArtifact_PackageType::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Attachment.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Attachment.php deleted file mode 100644 index c0fbabaade4b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Attachment.php +++ /dev/null @@ -1,412 +0,0 @@ -google.devtools.artifactregistry.v1.Attachment - */ -class Attachment extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the attachment. E.g. - * `projects/p1/locations/us/repositories/repo/attachments/sbom`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The target the attachment is for, can be a Version, Package or - * Repository. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. - * - * Generated from protobuf field string target = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target = ''; - /** - * Type of attachment. - * E.g. `application/vnd.spdx+json` - * - * Generated from protobuf field string type = 3; - */ - protected $type = ''; - /** - * The namespace this attachment belongs to. - * E.g. If an attachment is created by artifact analysis, namespace is set - * to `artifactanalysis.googleapis.com`. - * - * Generated from protobuf field string attachment_namespace = 4; - */ - protected $attachment_namespace = ''; - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Artifact Registry. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * - * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Output only. The time when the attachment was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the attachment was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. The files that belong to this attachment. - * If the file ID part contains slashes, they are escaped. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/files/sha:`. - * - * Generated from protobuf field repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $files; - /** - * Output only. The name of the OCI version that this attachment created. Only - * populated for Docker attachments. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. - * - * Generated from protobuf field string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $oci_version_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the attachment. E.g. - * `projects/p1/locations/us/repositories/repo/attachments/sbom`. - * @type string $target - * Required. The target the attachment is for, can be a Version, Package or - * Repository. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. - * @type string $type - * Type of attachment. - * E.g. `application/vnd.spdx+json` - * @type string $attachment_namespace - * The namespace this attachment belongs to. - * E.g. If an attachment is created by artifact analysis, namespace is set - * to `artifactanalysis.googleapis.com`. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Artifact Registry. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the attachment was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the attachment was last updated. - * @type array|\Google\Protobuf\Internal\RepeatedField $files - * Required. The files that belong to this attachment. - * If the file ID part contains slashes, they are escaped. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/files/sha:`. - * @type string $oci_version_name - * Output only. The name of the OCI version that this attachment created. Only - * populated for Docker attachments. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * The name of the attachment. E.g. - * `projects/p1/locations/us/repositories/repo/attachments/sbom`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the attachment. E.g. - * `projects/p1/locations/us/repositories/repo/attachments/sbom`. - * - * 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 target the attachment is for, can be a Version, Package or - * Repository. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. - * - * Generated from protobuf field string target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Required. The target the attachment is for, can be a Version, Package or - * Repository. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. - * - * Generated from protobuf field string target = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Type of attachment. - * E.g. `application/vnd.spdx+json` - * - * Generated from protobuf field string type = 3; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Type of attachment. - * E.g. `application/vnd.spdx+json` - * - * 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; - } - - /** - * The namespace this attachment belongs to. - * E.g. If an attachment is created by artifact analysis, namespace is set - * to `artifactanalysis.googleapis.com`. - * - * Generated from protobuf field string attachment_namespace = 4; - * @return string - */ - public function getAttachmentNamespace() - { - return $this->attachment_namespace; - } - - /** - * The namespace this attachment belongs to. - * E.g. If an attachment is created by artifact analysis, namespace is set - * to `artifactanalysis.googleapis.com`. - * - * Generated from protobuf field string attachment_namespace = 4; - * @param string $var - * @return $this - */ - public function setAttachmentNamespace($var) - { - GPBUtil::checkString($var, True); - $this->attachment_namespace = $var; - - return $this; - } - - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Artifact Registry. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * - * Generated from protobuf field map annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. User annotations. These attributes can only be set and used by - * the user, and not by Artifact Registry. See - * https://google.aip.dev/128#annotations for more details such as format and - * size limitations. - * - * Generated from protobuf field map annotations = 5 [(.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; - } - - /** - * Output only. The time when the attachment was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the attachment was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the attachment was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the attachment was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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 files that belong to this attachment. - * If the file ID part contains slashes, they are escaped. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/files/sha:`. - * - * Generated from protobuf field repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFiles() - { - return $this->files; - } - - /** - * Required. The files that belong to this attachment. - * If the file ID part contains slashes, they are escaped. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/files/sha:`. - * - * Generated from protobuf field repeated string files = 8 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->files = $arr; - - return $this; - } - - /** - * Output only. The name of the OCI version that this attachment created. Only - * populated for Docker attachments. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. - * - * Generated from protobuf field string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getOciVersionName() - { - return $this->oci_version_name; - } - - /** - * Output only. The name of the OCI version that this attachment created. Only - * populated for Docker attachments. E.g. - * `projects/p1/locations/us-central1/repositories/repo1/packages/p1/versions/v1`. - * - * Generated from protobuf field string oci_version_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setOciVersionName($var) - { - GPBUtil::checkString($var, True); - $this->oci_version_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/BatchDeleteVersionsMetadata.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/BatchDeleteVersionsMetadata.php deleted file mode 100644 index 4840f20da474..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/BatchDeleteVersionsMetadata.php +++ /dev/null @@ -1,67 +0,0 @@ -google.devtools.artifactregistry.v1.BatchDeleteVersionsMetadata - */ -class BatchDeleteVersionsMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The versions the operation failed to delete. - * - * Generated from protobuf field repeated string failed_versions = 2; - */ - private $failed_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $failed_versions - * The versions the operation failed to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * The versions the operation failed to delete. - * - * Generated from protobuf field repeated string failed_versions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFailedVersions() - { - return $this->failed_versions; - } - - /** - * The versions the operation failed to delete. - * - * Generated from protobuf field repeated string failed_versions = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFailedVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->failed_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/BatchDeleteVersionsRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/BatchDeleteVersionsRequest.php deleted file mode 100644 index 723201eacaeb..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/BatchDeleteVersionsRequest.php +++ /dev/null @@ -1,156 +0,0 @@ -google.devtools.artifactregistry.v1.BatchDeleteVersionsRequest - */ -class BatchDeleteVersionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the repository holding all requested versions. - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The names of the versions to delete. - * A maximum of 10000 versions can be deleted in a batch. - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $names; - /** - * If true, the request is performed without deleting data, following AIP-163. - * - * Generated from protobuf field bool validate_only = 3; - */ - protected $validate_only = false; - - /** - * @param string $parent The name of the repository holding all requested versions. - * @param string[] $names Required. The names of the versions to delete. - * A maximum of 10000 versions can be deleted in a batch. Please see - * {@see ArtifactRegistryClient::versionName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\BatchDeleteVersionsRequest - * - * @experimental - */ - public static function build(string $parent, array $names): self - { - return (new self()) - ->setParent($parent) - ->setNames($names); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The name of the repository holding all requested versions. - * @type array|\Google\Protobuf\Internal\RepeatedField $names - * Required. The names of the versions to delete. - * A maximum of 10000 versions can be deleted in a batch. - * @type bool $validate_only - * If true, the request is performed without deleting data, following AIP-163. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * The name of the repository holding all requested versions. - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the repository holding all requested versions. - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The names of the versions to delete. - * A maximum of 10000 versions can be deleted in a batch. - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNames() - { - return $this->names; - } - - /** - * Required. The names of the versions to delete. - * A maximum of 10000 versions can be deleted in a batch. - * - * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->names = $arr; - - return $this; - } - - /** - * If true, the request is performed without deleting data, following AIP-163. - * - * Generated from protobuf field bool validate_only = 3; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If true, the request is performed without deleting data, following AIP-163. - * - * Generated from protobuf field bool validate_only = 3; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicy.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicy.php deleted file mode 100644 index 4b2b630b4d61..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicy.php +++ /dev/null @@ -1,179 +0,0 @@ -google.devtools.artifactregistry.v1.CleanupPolicy - */ -class CleanupPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * The user-provided ID of the cleanup policy. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Policy action. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.CleanupPolicy.Action action = 3; - */ - protected $action = 0; - protected $condition_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\CleanupPolicyCondition $condition - * Policy condition for matching versions. - * @type \Google\Cloud\ArtifactRegistry\V1\CleanupPolicyMostRecentVersions $most_recent_versions - * Policy condition for retaining a minimum number of versions. May only be - * specified with a Keep action. - * @type string $id - * The user-provided ID of the cleanup policy. - * @type int $action - * Policy action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Policy condition for matching versions. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.CleanupPolicyCondition condition = 2; - * @return \Google\Cloud\ArtifactRegistry\V1\CleanupPolicyCondition|null - */ - public function getCondition() - { - return $this->readOneof(2); - } - - public function hasCondition() - { - return $this->hasOneof(2); - } - - /** - * Policy condition for matching versions. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.CleanupPolicyCondition condition = 2; - * @param \Google\Cloud\ArtifactRegistry\V1\CleanupPolicyCondition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\CleanupPolicyCondition::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Policy condition for retaining a minimum number of versions. May only be - * specified with a Keep action. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.CleanupPolicyMostRecentVersions most_recent_versions = 4; - * @return \Google\Cloud\ArtifactRegistry\V1\CleanupPolicyMostRecentVersions|null - */ - public function getMostRecentVersions() - { - return $this->readOneof(4); - } - - public function hasMostRecentVersions() - { - return $this->hasOneof(4); - } - - /** - * Policy condition for retaining a minimum number of versions. May only be - * specified with a Keep action. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.CleanupPolicyMostRecentVersions most_recent_versions = 4; - * @param \Google\Cloud\ArtifactRegistry\V1\CleanupPolicyMostRecentVersions $var - * @return $this - */ - public function setMostRecentVersions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\CleanupPolicyMostRecentVersions::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * The user-provided ID of the cleanup policy. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The user-provided ID of the cleanup policy. - * - * 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; - } - - /** - * Policy action. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.CleanupPolicy.Action action = 3; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * Policy action. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.CleanupPolicy.Action action = 3; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\CleanupPolicy\Action::class); - $this->action = $var; - - return $this; - } - - /** - * @return string - */ - public function getConditionType() - { - return $this->whichOneof("condition_type"); - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicy/Action.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicy/Action.php deleted file mode 100644 index e879ac0ca239..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicy/Action.php +++ /dev/null @@ -1,64 +0,0 @@ -google.devtools.artifactregistry.v1.CleanupPolicy.Action - */ -class Action -{ - /** - * Action not specified. - * - * Generated from protobuf enum ACTION_UNSPECIFIED = 0; - */ - const ACTION_UNSPECIFIED = 0; - /** - * Delete action. - * - * Generated from protobuf enum DELETE = 1; - */ - const DELETE = 1; - /** - * Keep action. - * - * Generated from protobuf enum KEEP = 2; - */ - const KEEP = 2; - - private static $valueToName = [ - self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', - self::DELETE => 'DELETE', - self::KEEP => 'KEEP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\ArtifactRegistry\V1\CleanupPolicy_Action::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyCondition.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyCondition.php deleted file mode 100644 index 768afa66b916..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyCondition.php +++ /dev/null @@ -1,269 +0,0 @@ -google.devtools.artifactregistry.v1.CleanupPolicyCondition - */ -class CleanupPolicyCondition extends \Google\Protobuf\Internal\Message -{ - /** - * Match versions by tag status. - * - * Generated from protobuf field optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2; - */ - protected $tag_state = null; - /** - * Match versions by tag prefix. Applied on any prefix match. - * - * Generated from protobuf field repeated string tag_prefixes = 3; - */ - private $tag_prefixes; - /** - * Match versions by version name prefix. Applied on any prefix match. - * - * Generated from protobuf field repeated string version_name_prefixes = 4; - */ - private $version_name_prefixes; - /** - * Match versions by package prefix. Applied on any prefix match. - * - * Generated from protobuf field repeated string package_name_prefixes = 5; - */ - private $package_name_prefixes; - /** - * Match versions older than a duration. - * - * Generated from protobuf field optional .google.protobuf.Duration older_than = 6; - */ - protected $older_than = null; - /** - * Match versions newer than a duration. - * - * Generated from protobuf field optional .google.protobuf.Duration newer_than = 7; - */ - protected $newer_than = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $tag_state - * Match versions by tag status. - * @type array|\Google\Protobuf\Internal\RepeatedField $tag_prefixes - * Match versions by tag prefix. Applied on any prefix match. - * @type array|\Google\Protobuf\Internal\RepeatedField $version_name_prefixes - * Match versions by version name prefix. Applied on any prefix match. - * @type array|\Google\Protobuf\Internal\RepeatedField $package_name_prefixes - * Match versions by package prefix. Applied on any prefix match. - * @type \Google\Protobuf\Duration $older_than - * Match versions older than a duration. - * @type \Google\Protobuf\Duration $newer_than - * Match versions newer than a duration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Match versions by tag status. - * - * Generated from protobuf field optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2; - * @return int - */ - public function getTagState() - { - return isset($this->tag_state) ? $this->tag_state : 0; - } - - public function hasTagState() - { - return isset($this->tag_state); - } - - public function clearTagState() - { - unset($this->tag_state); - } - - /** - * Match versions by tag status. - * - * Generated from protobuf field optional .google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState tag_state = 2; - * @param int $var - * @return $this - */ - public function setTagState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\CleanupPolicyCondition\TagState::class); - $this->tag_state = $var; - - return $this; - } - - /** - * Match versions by tag prefix. Applied on any prefix match. - * - * Generated from protobuf field repeated string tag_prefixes = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTagPrefixes() - { - return $this->tag_prefixes; - } - - /** - * Match versions by tag prefix. Applied on any prefix match. - * - * Generated from protobuf field repeated string tag_prefixes = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTagPrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tag_prefixes = $arr; - - return $this; - } - - /** - * Match versions by version name prefix. Applied on any prefix match. - * - * Generated from protobuf field repeated string version_name_prefixes = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVersionNamePrefixes() - { - return $this->version_name_prefixes; - } - - /** - * Match versions by version name prefix. Applied on any prefix match. - * - * Generated from protobuf field repeated string version_name_prefixes = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVersionNamePrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->version_name_prefixes = $arr; - - return $this; - } - - /** - * Match versions by package prefix. Applied on any prefix match. - * - * Generated from protobuf field repeated string package_name_prefixes = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPackageNamePrefixes() - { - return $this->package_name_prefixes; - } - - /** - * Match versions by package prefix. Applied on any prefix match. - * - * Generated from protobuf field repeated string package_name_prefixes = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPackageNamePrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->package_name_prefixes = $arr; - - return $this; - } - - /** - * Match versions older than a duration. - * - * Generated from protobuf field optional .google.protobuf.Duration older_than = 6; - * @return \Google\Protobuf\Duration|null - */ - public function getOlderThan() - { - return $this->older_than; - } - - public function hasOlderThan() - { - return isset($this->older_than); - } - - public function clearOlderThan() - { - unset($this->older_than); - } - - /** - * Match versions older than a duration. - * - * Generated from protobuf field optional .google.protobuf.Duration older_than = 6; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setOlderThan($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->older_than = $var; - - return $this; - } - - /** - * Match versions newer than a duration. - * - * Generated from protobuf field optional .google.protobuf.Duration newer_than = 7; - * @return \Google\Protobuf\Duration|null - */ - public function getNewerThan() - { - return $this->newer_than; - } - - public function hasNewerThan() - { - return isset($this->newer_than); - } - - public function clearNewerThan() - { - unset($this->newer_than); - } - - /** - * Match versions newer than a duration. - * - * Generated from protobuf field optional .google.protobuf.Duration newer_than = 7; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setNewerThan($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->newer_than = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyCondition/TagState.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyCondition/TagState.php deleted file mode 100644 index 9a02a60e43c3..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyCondition/TagState.php +++ /dev/null @@ -1,71 +0,0 @@ -google.devtools.artifactregistry.v1.CleanupPolicyCondition.TagState - */ -class TagState -{ - /** - * Tag status not specified. - * - * Generated from protobuf enum TAG_STATE_UNSPECIFIED = 0; - */ - const TAG_STATE_UNSPECIFIED = 0; - /** - * Applies to tagged versions only. - * - * Generated from protobuf enum TAGGED = 1; - */ - const TAGGED = 1; - /** - * Applies to untagged versions only. - * - * Generated from protobuf enum UNTAGGED = 2; - */ - const UNTAGGED = 2; - /** - * Applies to all versions. - * - * Generated from protobuf enum ANY = 3; - */ - const ANY = 3; - - private static $valueToName = [ - self::TAG_STATE_UNSPECIFIED => 'TAG_STATE_UNSPECIFIED', - self::TAGGED => 'TAGGED', - self::UNTAGGED => 'UNTAGGED', - self::ANY => 'ANY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TagState::class, \Google\Cloud\ArtifactRegistry\V1\CleanupPolicyCondition_TagState::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyMostRecentVersions.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyMostRecentVersions.php deleted file mode 100644 index 7177ec80be40..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CleanupPolicyMostRecentVersions.php +++ /dev/null @@ -1,112 +0,0 @@ -google.devtools.artifactregistry.v1.CleanupPolicyMostRecentVersions - */ -class CleanupPolicyMostRecentVersions extends \Google\Protobuf\Internal\Message -{ - /** - * List of package name prefixes that will apply this rule. - * - * Generated from protobuf field repeated string package_name_prefixes = 1; - */ - private $package_name_prefixes; - /** - * Minimum number of versions to keep. - * - * Generated from protobuf field optional int32 keep_count = 2; - */ - protected $keep_count = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $package_name_prefixes - * List of package name prefixes that will apply this rule. - * @type int $keep_count - * Minimum number of versions to keep. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * List of package name prefixes that will apply this rule. - * - * Generated from protobuf field repeated string package_name_prefixes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPackageNamePrefixes() - { - return $this->package_name_prefixes; - } - - /** - * List of package name prefixes that will apply this rule. - * - * Generated from protobuf field repeated string package_name_prefixes = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPackageNamePrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->package_name_prefixes = $arr; - - return $this; - } - - /** - * Minimum number of versions to keep. - * - * Generated from protobuf field optional int32 keep_count = 2; - * @return int - */ - public function getKeepCount() - { - return isset($this->keep_count) ? $this->keep_count : 0; - } - - public function hasKeepCount() - { - return isset($this->keep_count); - } - - public function clearKeepCount() - { - unset($this->keep_count); - } - - /** - * Minimum number of versions to keep. - * - * Generated from protobuf field optional int32 keep_count = 2; - * @param int $var - * @return $this - */ - public function setKeepCount($var) - { - GPBUtil::checkInt32($var); - $this->keep_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateAttachmentRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateAttachmentRequest.php deleted file mode 100644 index 595ccb3ed8a3..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateAttachmentRequest.php +++ /dev/null @@ -1,168 +0,0 @@ -google.devtools.artifactregistry.v1.CreateAttachmentRequest - */ -class CreateAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource where the attachment will be - * created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The attachment id to use for this attachment. - * - * Generated from protobuf field string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attachment_id = ''; - /** - * Required. The attachment to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attachment = null; - - /** - * @param string $parent Required. The name of the parent resource where the attachment will be - * created. Please see - * {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\ArtifactRegistry\V1\Attachment $attachment Required. The attachment to be created. - * @param string $attachmentId Required. The attachment id to use for this attachment. - * - * @return \Google\Cloud\ArtifactRegistry\V1\CreateAttachmentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ArtifactRegistry\V1\Attachment $attachment, string $attachmentId): self - { - return (new self()) - ->setParent($parent) - ->setAttachment($attachment) - ->setAttachmentId($attachmentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource where the attachment will be - * created. - * @type string $attachment_id - * Required. The attachment id to use for this attachment. - * @type \Google\Cloud\ArtifactRegistry\V1\Attachment $attachment - * Required. The attachment to be created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource where the attachment will be - * created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the parent resource where the attachment will be - * created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The attachment id to use for this attachment. - * - * Generated from protobuf field string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAttachmentId() - { - return $this->attachment_id; - } - - /** - * Required. The attachment id to use for this attachment. - * - * Generated from protobuf field string attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAttachmentId($var) - { - GPBUtil::checkString($var, True); - $this->attachment_id = $var; - - return $this; - } - - /** - * Required. The attachment to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ArtifactRegistry\V1\Attachment|null - */ - public function getAttachment() - { - return $this->attachment; - } - - public function hasAttachment() - { - return isset($this->attachment); - } - - public function clearAttachment() - { - unset($this->attachment); - } - - /** - * Required. The attachment to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Attachment attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ArtifactRegistry\V1\Attachment $var - * @return $this - */ - public function setAttachment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Attachment::class); - $this->attachment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateRepositoryRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateRepositoryRequest.php deleted file mode 100644 index 65a034b5daab..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateRepositoryRequest.php +++ /dev/null @@ -1,168 +0,0 @@ -google.devtools.artifactregistry.v1.CreateRepositoryRequest - */ -class CreateRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource where the repository will be - * created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The repository id to use for this repository. - * - * Generated from protobuf field string repository_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repository_id = ''; - /** - * Required. The repository to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository repository = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repository = null; - - /** - * @param string $parent Required. The name of the parent resource where the repository will be - * created. Please see - * {@see ArtifactRegistryClient::locationName()} for help formatting this field. - * @param \Google\Cloud\ArtifactRegistry\V1\Repository $repository Required. The repository to be created. - * @param string $repositoryId Required. The repository id to use for this repository. - * - * @return \Google\Cloud\ArtifactRegistry\V1\CreateRepositoryRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ArtifactRegistry\V1\Repository $repository, string $repositoryId): self - { - return (new self()) - ->setParent($parent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource where the repository will be - * created. - * @type string $repository_id - * Required. The repository id to use for this repository. - * @type \Google\Cloud\ArtifactRegistry\V1\Repository $repository - * Required. The repository to be created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource where the repository will be - * created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the parent resource where the repository will be - * created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The repository id to use for this repository. - * - * Generated from protobuf field string repository_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRepositoryId() - { - return $this->repository_id; - } - - /** - * Required. The repository id to use for this repository. - * - * Generated from protobuf field string repository_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRepositoryId($var) - { - GPBUtil::checkString($var, True); - $this->repository_id = $var; - - return $this; - } - - /** - * Required. The repository to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository repository = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ArtifactRegistry\V1\Repository|null - */ - public function getRepository() - { - return $this->repository; - } - - public function hasRepository() - { - return isset($this->repository); - } - - public function clearRepository() - { - unset($this->repository); - } - - /** - * Required. The repository to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository repository = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ArtifactRegistry\V1\Repository $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Repository::class); - $this->repository = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateRuleRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateRuleRequest.php deleted file mode 100644 index a088d5919b2e..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateRuleRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.devtools.artifactregistry.v1.CreateRuleRequest - */ -class CreateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource where the rule will be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The rule id to use for this repository. - * - * Generated from protobuf field string rule_id = 2; - */ - protected $rule_id = ''; - /** - * The rule to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule rule = 3; - */ - protected $rule = null; - - /** - * @param string $parent Required. The name of the parent resource where the rule will be created. Please see - * {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * @param \Google\Cloud\ArtifactRegistry\V1\Rule $rule The rule to be created. - * @param string $ruleId The rule id to use for this repository. - * - * @return \Google\Cloud\ArtifactRegistry\V1\CreateRuleRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ArtifactRegistry\V1\Rule $rule, string $ruleId): self - { - return (new self()) - ->setParent($parent) - ->setRule($rule) - ->setRuleId($ruleId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource where the rule will be created. - * @type string $rule_id - * The rule id to use for this repository. - * @type \Google\Cloud\ArtifactRegistry\V1\Rule $rule - * The rule to be created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource where the rule will be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the parent resource where the rule will be created. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The rule id to use for this repository. - * - * Generated from protobuf field string rule_id = 2; - * @return string - */ - public function getRuleId() - { - return $this->rule_id; - } - - /** - * The rule id to use for this repository. - * - * Generated from protobuf field string rule_id = 2; - * @param string $var - * @return $this - */ - public function setRuleId($var) - { - GPBUtil::checkString($var, True); - $this->rule_id = $var; - - return $this; - } - - /** - * The rule to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule rule = 3; - * @return \Google\Cloud\ArtifactRegistry\V1\Rule|null - */ - public function getRule() - { - return $this->rule; - } - - public function hasRule() - { - return isset($this->rule); - } - - public function clearRule() - { - unset($this->rule); - } - - /** - * The rule to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule rule = 3; - * @param \Google\Cloud\ArtifactRegistry\V1\Rule $var - * @return $this - */ - public function setRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Rule::class); - $this->rule = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateTagRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateTagRequest.php deleted file mode 100644 index 731776f2ec05..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/CreateTagRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -google.devtools.artifactregistry.v1.CreateTagRequest - */ -class CreateTagRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the parent resource where the tag will be created. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * The tag id to use for this repository. - * - * Generated from protobuf field string tag_id = 2; - */ - protected $tag_id = ''; - /** - * The tag to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Tag tag = 3; - */ - protected $tag = null; - - /** - * @param string $parent The name of the parent resource where the tag will be created. - * @param \Google\Cloud\ArtifactRegistry\V1\Tag $tag The tag to be created. - * @param string $tagId The tag id to use for this repository. - * - * @return \Google\Cloud\ArtifactRegistry\V1\CreateTagRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\ArtifactRegistry\V1\Tag $tag, string $tagId): self - { - return (new self()) - ->setParent($parent) - ->setTag($tag) - ->setTagId($tagId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The name of the parent resource where the tag will be created. - * @type string $tag_id - * The tag id to use for this repository. - * @type \Google\Cloud\ArtifactRegistry\V1\Tag $tag - * The tag to be created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Tag::initOnce(); - parent::__construct($data); - } - - /** - * The name of the parent resource where the tag will be created. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the parent resource where the tag will be created. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The tag id to use for this repository. - * - * Generated from protobuf field string tag_id = 2; - * @return string - */ - public function getTagId() - { - return $this->tag_id; - } - - /** - * The tag id to use for this repository. - * - * Generated from protobuf field string tag_id = 2; - * @param string $var - * @return $this - */ - public function setTagId($var) - { - GPBUtil::checkString($var, True); - $this->tag_id = $var; - - return $this; - } - - /** - * The tag to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Tag tag = 3; - * @return \Google\Cloud\ArtifactRegistry\V1\Tag|null - */ - public function getTag() - { - return $this->tag; - } - - public function hasTag() - { - return isset($this->tag); - } - - public function clearTag() - { - unset($this->tag); - } - - /** - * The tag to be created. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Tag tag = 3; - * @param \Google\Cloud\ArtifactRegistry\V1\Tag $var - * @return $this - */ - public function setTag($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Tag::class); - $this->tag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteAttachmentRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteAttachmentRequest.php deleted file mode 100644 index 5b9bf5f09725..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteAttachmentRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.DeleteAttachmentRequest - */ -class DeleteAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the attachment 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 attachment to delete. Please see - * {@see ArtifactRegistryClient::attachmentName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\DeleteAttachmentRequest - * - * @experimental - */ - public static function 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 attachment to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the attachment 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 attachment 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteFileRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteFileRequest.php deleted file mode 100644 index 0a1b6041a92d..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteFileRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.DeleteFileRequest - */ -class DeleteFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the file 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 file to delete. Please see - * {@see ArtifactRegistryClient::fileName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\DeleteFileRequest - * - * @experimental - */ - public static function 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 file to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\File::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the file 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 file 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeletePackageRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeletePackageRequest.php deleted file mode 100644 index fe1c79b9ac60..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeletePackageRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.DeletePackageRequest - */ -class DeletePackageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the package 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 package to delete. Please see - * {@see ArtifactRegistryClient::packageName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\DeletePackageRequest - * - * @experimental - */ - public static function 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 package to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the package 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 package 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteRepositoryRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteRepositoryRequest.php deleted file mode 100644 index 2d627544d77a..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteRepositoryRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.DeleteRepositoryRequest - */ -class DeleteRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the repository 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 repository to delete. Please see - * {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\DeleteRepositoryRequest - * - * @experimental - */ - public static function 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 repository to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the repository 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 repository 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteRuleRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteRuleRequest.php deleted file mode 100644 index 1f09d0e1cb48..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteRuleRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.DeleteRuleRequest - */ -class DeleteRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the 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 name of the rule to delete. Please see - * {@see ArtifactRegistryClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\DeleteRuleRequest - * - * @experimental - */ - public static function 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 rule to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the 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 name of the 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteTagRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteTagRequest.php deleted file mode 100644 index d358ac8e1a2c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteTagRequest.php +++ /dev/null @@ -1,80 +0,0 @@ -google.devtools.artifactregistry.v1.DeleteTagRequest - */ -class DeleteTagRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the tag to delete. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * @param string $name The name of the tag to delete. - * - * @return \Google\Cloud\ArtifactRegistry\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 - * The name of the tag to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Tag::initOnce(); - parent::__construct($data); - } - - /** - * The name of the tag to delete. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the tag to delete. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteVersionRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteVersionRequest.php deleted file mode 100644 index 4964e3e74200..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DeleteVersionRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -google.devtools.artifactregistry.v1.DeleteVersionRequest - */ -class DeleteVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the version to delete. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * By default, a version that is tagged may not be deleted. If force=true, the - * version and any tags pointing to the version are deleted. - * - * Generated from protobuf field bool force = 2; - */ - protected $force = false; - - /** - * @param string $name The name of the version to delete. - * - * @return \Google\Cloud\ArtifactRegistry\V1\DeleteVersionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the version to delete. - * @type bool $force - * By default, a version that is tagged may not be deleted. If force=true, the - * version and any tags pointing to the version are deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * The name of the version to delete. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the version to delete. - * - * 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; - } - - /** - * By default, a version that is tagged may not be deleted. If force=true, the - * version and any tags pointing to the version are deleted. - * - * Generated from protobuf field bool force = 2; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * By default, a version that is tagged may not be deleted. If force=true, the - * version and any tags pointing to the version are deleted. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DockerImage.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DockerImage.php deleted file mode 100644 index 9637bc23a46d..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/DockerImage.php +++ /dev/null @@ -1,420 +0,0 @@ -google.devtools.artifactregistry.v1.DockerImage - */ -class DockerImage extends \Google\Protobuf\Internal\Message -{ - /** - * Required. registry_location, project_id, repository_name and image id forms - * a unique image - * name:`projects//locations//repository//dockerImages/`. - * For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ - * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" - * is the image's digest. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. URL to access the image. - * Example: - * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $uri = ''; - /** - * Tags attached to this image. - * - * Generated from protobuf field repeated string tags = 3; - */ - private $tags; - /** - * Calculated size of the image. - * This field is returned as the 'metadata.imageSizeBytes' field in the - * Version resource. - * - * Generated from protobuf field int64 image_size_bytes = 4; - */ - protected $image_size_bytes = 0; - /** - * Time the image was uploaded. - * - * Generated from protobuf field .google.protobuf.Timestamp upload_time = 5; - */ - protected $upload_time = null; - /** - * Media type of this image, e.g. - * "application/vnd.docker.distribution.manifest.v2+json". - * This field is returned as the 'metadata.mediaType' field in the - * Version resource. - * - * Generated from protobuf field string media_type = 6; - */ - protected $media_type = ''; - /** - * The time this image was built. - * This field is returned as the 'metadata.buildTime' field in the - * Version resource. - * The build time is returned to the client as an RFC 3339 string, which can - * be easily used with the JavaScript Date constructor. - * - * Generated from protobuf field .google.protobuf.Timestamp build_time = 7; - */ - protected $build_time = null; - /** - * Output only. The time when the docker image was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. registry_location, project_id, repository_name and image id forms - * a unique image - * name:`projects//locations//repository//dockerImages/`. - * For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ - * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" - * is the image's digest. - * @type string $uri - * Required. URL to access the image. - * Example: - * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf - * @type array|\Google\Protobuf\Internal\RepeatedField $tags - * Tags attached to this image. - * @type int|string $image_size_bytes - * Calculated size of the image. - * This field is returned as the 'metadata.imageSizeBytes' field in the - * Version resource. - * @type \Google\Protobuf\Timestamp $upload_time - * Time the image was uploaded. - * @type string $media_type - * Media type of this image, e.g. - * "application/vnd.docker.distribution.manifest.v2+json". - * This field is returned as the 'metadata.mediaType' field in the - * Version resource. - * @type \Google\Protobuf\Timestamp $build_time - * The time this image was built. - * This field is returned as the 'metadata.buildTime' field in the - * Version resource. - * The build time is returned to the client as an RFC 3339 string, which can - * be easily used with the JavaScript Date constructor. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the docker image was last updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. registry_location, project_id, repository_name and image id forms - * a unique image - * name:`projects//locations//repository//dockerImages/`. - * For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ - * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" - * is the image's digest. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. registry_location, project_id, repository_name and image id forms - * a unique image - * name:`projects//locations//repository//dockerImages/`. - * For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/dockerImages/ - * nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * "nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf" - * is the image's digest. - * - * 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. URL to access the image. - * Example: - * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Required. URL to access the image. - * Example: - * us-west4-docker.pkg.dev/test-project/test-repo/nginx@sha256:e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Tags attached to this image. - * - * Generated from protobuf field repeated string tags = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Tags attached to this image. - * - * Generated from protobuf field repeated string tags = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Calculated size of the image. - * This field is returned as the 'metadata.imageSizeBytes' field in the - * Version resource. - * - * Generated from protobuf field int64 image_size_bytes = 4; - * @return int|string - */ - public function getImageSizeBytes() - { - return $this->image_size_bytes; - } - - /** - * Calculated size of the image. - * This field is returned as the 'metadata.imageSizeBytes' field in the - * Version resource. - * - * Generated from protobuf field int64 image_size_bytes = 4; - * @param int|string $var - * @return $this - */ - public function setImageSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->image_size_bytes = $var; - - return $this; - } - - /** - * Time the image was uploaded. - * - * Generated from protobuf field .google.protobuf.Timestamp upload_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUploadTime() - { - return $this->upload_time; - } - - public function hasUploadTime() - { - return isset($this->upload_time); - } - - public function clearUploadTime() - { - unset($this->upload_time); - } - - /** - * Time the image was uploaded. - * - * Generated from protobuf field .google.protobuf.Timestamp upload_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUploadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->upload_time = $var; - - return $this; - } - - /** - * Media type of this image, e.g. - * "application/vnd.docker.distribution.manifest.v2+json". - * This field is returned as the 'metadata.mediaType' field in the - * Version resource. - * - * Generated from protobuf field string media_type = 6; - * @return string - */ - public function getMediaType() - { - return $this->media_type; - } - - /** - * Media type of this image, e.g. - * "application/vnd.docker.distribution.manifest.v2+json". - * This field is returned as the 'metadata.mediaType' field in the - * Version resource. - * - * Generated from protobuf field string media_type = 6; - * @param string $var - * @return $this - */ - public function setMediaType($var) - { - GPBUtil::checkString($var, True); - $this->media_type = $var; - - return $this; - } - - /** - * The time this image was built. - * This field is returned as the 'metadata.buildTime' field in the - * Version resource. - * The build time is returned to the client as an RFC 3339 string, which can - * be easily used with the JavaScript Date constructor. - * - * Generated from protobuf field .google.protobuf.Timestamp build_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getBuildTime() - { - return $this->build_time; - } - - public function hasBuildTime() - { - return isset($this->build_time); - } - - public function clearBuildTime() - { - unset($this->build_time); - } - - /** - * The time this image was built. - * This field is returned as the 'metadata.buildTime' field in the - * Version resource. - * The build time is returned to the client as an RFC 3339 string, which can - * be easily used with the JavaScript Date constructor. - * - * Generated from protobuf field .google.protobuf.Timestamp build_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setBuildTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->build_time = $var; - - return $this; - } - - /** - * Output only. The time when the docker image was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the docker image was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/File.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/File.php deleted file mode 100644 index 78f5157fbf56..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/File.php +++ /dev/null @@ -1,347 +0,0 @@ -google.devtools.artifactregistry.v1.File - */ -class File extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the file, for example: - * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`. - * If the file ID part contains slashes, they are escaped. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The size of the File in bytes. - * - * Generated from protobuf field int64 size_bytes = 3; - */ - protected $size_bytes = 0; - /** - * The hashes of the file content. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Hash hashes = 4; - */ - private $hashes; - /** - * Output only. The time when the File was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the File was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * The name of the Package or Version that owns this file, if any. - * - * Generated from protobuf field string owner = 7; - */ - protected $owner = ''; - /** - * Output only. The time when the last attempt to refresh the file's data was - * made. Only set when the repository is remote. - * - * Generated from protobuf field .google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $fetch_time = null; - /** - * Optional. Client specified annotations. - * - * Generated from protobuf field map annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the file, for example: - * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`. - * If the file ID part contains slashes, they are escaped. - * @type int|string $size_bytes - * The size of the File in bytes. - * @type array<\Google\Cloud\ArtifactRegistry\V1\Hash>|\Google\Protobuf\Internal\RepeatedField $hashes - * The hashes of the file content. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the File was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the File was last updated. - * @type string $owner - * The name of the Package or Version that owns this file, if any. - * @type \Google\Protobuf\Timestamp $fetch_time - * Output only. The time when the last attempt to refresh the file's data was - * made. Only set when the repository is remote. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Client specified annotations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\File::initOnce(); - parent::__construct($data); - } - - /** - * The name of the file, for example: - * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`. - * If the file ID part contains slashes, they are escaped. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the file, for example: - * `projects/p1/locations/us-central1/repositories/repo1/files/a%2Fb%2Fc.txt`. - * If the file ID part contains slashes, they are escaped. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The size of the File in bytes. - * - * Generated from protobuf field int64 size_bytes = 3; - * @return int|string - */ - public function getSizeBytes() - { - return $this->size_bytes; - } - - /** - * The size of the File in bytes. - * - * Generated from protobuf field int64 size_bytes = 3; - * @param int|string $var - * @return $this - */ - public function setSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->size_bytes = $var; - - return $this; - } - - /** - * The hashes of the file content. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Hash hashes = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHashes() - { - return $this->hashes; - } - - /** - * The hashes of the file content. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Hash hashes = 4; - * @param array<\Google\Cloud\ArtifactRegistry\V1\Hash>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHashes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\Hash::class); - $this->hashes = $arr; - - return $this; - } - - /** - * Output only. The time when the File was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the File was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the File was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the File was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The name of the Package or Version that owns this file, if any. - * - * Generated from protobuf field string owner = 7; - * @return string - */ - public function getOwner() - { - return $this->owner; - } - - /** - * The name of the Package or Version that owns this file, if any. - * - * Generated from protobuf field string owner = 7; - * @param string $var - * @return $this - */ - public function setOwner($var) - { - GPBUtil::checkString($var, True); - $this->owner = $var; - - return $this; - } - - /** - * Output only. The time when the last attempt to refresh the file's data was - * made. Only set when the repository is remote. - * - * Generated from protobuf field .google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFetchTime() - { - return $this->fetch_time; - } - - public function hasFetchTime() - { - return isset($this->fetch_time); - } - - public function clearFetchTime() - { - unset($this->fetch_time); - } - - /** - * Output only. The time when the last attempt to refresh the file's data was - * made. Only set when the repository is remote. - * - * Generated from protobuf field .google.protobuf.Timestamp fetch_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFetchTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->fetch_time = $var; - - return $this; - } - - /** - * Optional. Client specified annotations. - * - * Generated from protobuf field map annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Client specified annotations. - * - * Generated from protobuf field map annotations = 9 [(.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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GenericArtifact.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GenericArtifact.php deleted file mode 100644 index 4a6efd0137ef..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GenericArtifact.php +++ /dev/null @@ -1,205 +0,0 @@ -google.devtools.artifactregistry.v1.GenericArtifact - */ -class GenericArtifact extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the generic artifact. - * project, location, repository, package_id and version_id - * create a unique generic artifact. - * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/ - * genericArtifacts/package_id:version_id" - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The version of the generic artifact. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - /** - * Output only. The time when the Generic module is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the Generic module is updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the generic artifact. - * project, location, repository, package_id and version_id - * create a unique generic artifact. - * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/ - * genericArtifacts/package_id:version_id" - * @type string $version - * The version of the generic artifact. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the Generic module is created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the Generic module is updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Generic::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the generic artifact. - * project, location, repository, package_id and version_id - * create a unique generic artifact. - * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/ - * genericArtifacts/package_id:version_id" - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the generic artifact. - * project, location, repository, package_id and version_id - * create a unique generic artifact. - * i.e. "projects/test-project/locations/us-west4/repositories/test-repo/ - * genericArtifacts/package_id:version_id" - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The version of the generic artifact. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of the generic artifact. - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Output only. The time when the Generic module is 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 the Generic module is 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 time when the Generic module is 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 time when the Generic module is 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetAttachmentRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetAttachmentRequest.php deleted file mode 100644 index b06cb6b7177b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetAttachmentRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetAttachmentRequest - */ -class GetAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the attachment to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the attachment to retrieve. Please see - * {@see ArtifactRegistryClient::attachmentName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the attachment to retrieve. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the attachment to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the attachment to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetDockerImageRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetDockerImageRequest.php deleted file mode 100644 index 61b5cf12ccfd..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetDockerImageRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetDockerImageRequest - */ -class GetDockerImageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the docker images. - * - * 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 docker images. Please see - * {@see ArtifactRegistryClient::dockerImageName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetDockerImageRequest - * - * @experimental - */ - public static function 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 docker images. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the docker images. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the docker images. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetFileRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetFileRequest.php deleted file mode 100644 index dfb6c5bd26ac..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetFileRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetFileRequest - */ -class GetFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the file to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the file to retrieve. Please see - * {@see ArtifactRegistryClient::fileName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetFileRequest - * - * @experimental - */ - public static function 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 file to retrieve. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\File::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the file to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the file to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetMavenArtifactRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetMavenArtifactRequest.php deleted file mode 100644 index 33f61844532d..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetMavenArtifactRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetMavenArtifactRequest - */ -class GetMavenArtifactRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the maven artifact. - * - * 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 maven artifact. Please see - * {@see ArtifactRegistryClient::mavenArtifactName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetMavenArtifactRequest - * - * @experimental - */ - public static function 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 maven artifact. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the maven artifact. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the maven artifact. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetNpmPackageRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetNpmPackageRequest.php deleted file mode 100644 index 19e47bc35963..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetNpmPackageRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetNpmPackageRequest - */ -class GetNpmPackageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the npm package. - * - * 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 npm package. Please see - * {@see ArtifactRegistryClient::npmPackageName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetNpmPackageRequest - * - * @experimental - */ - public static function 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 npm package. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the npm package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the npm package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetPackageRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetPackageRequest.php deleted file mode 100644 index d1cb4907aeb9..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetPackageRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetPackageRequest - */ -class GetPackageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the package to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the package to retrieve. Please see - * {@see ArtifactRegistryClient::packageName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetPackageRequest - * - * @experimental - */ - public static function 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 package to retrieve. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the package to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the package to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetProjectSettingsRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetProjectSettingsRequest.php deleted file mode 100644 index 98fd5df8ddc6..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetProjectSettingsRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetProjectSettingsRequest - */ -class GetProjectSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the projectSettings 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 projectSettings resource. Please see - * {@see ArtifactRegistryClient::projectSettingsName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetProjectSettingsRequest - * - * @experimental - */ - public static function 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 projectSettings resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Settings::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the projectSettings 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 projectSettings 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetPythonPackageRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetPythonPackageRequest.php deleted file mode 100644 index cc414d1512f2..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetPythonPackageRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetPythonPackageRequest - */ -class GetPythonPackageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the python package. - * - * 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 python package. Please see - * {@see ArtifactRegistryClient::pythonPackageName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetPythonPackageRequest - * - * @experimental - */ - public static function 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 python package. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the python package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the python package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetRepositoryRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetRepositoryRequest.php deleted file mode 100644 index 3d634bac4006..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetRepositoryRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetRepositoryRequest - */ -class GetRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the repository to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the repository to retrieve. Please see - * {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetRepositoryRequest - * - * @experimental - */ - public static function 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 repository to retrieve. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the repository to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the repository to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetRuleRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetRuleRequest.php deleted file mode 100644 index 1e23880ca5ca..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetRuleRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetRuleRequest - */ -class GetRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the rule to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the rule to retrieve. Please see - * {@see ArtifactRegistryClient::ruleName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetRuleRequest - * - * @experimental - */ - public static function 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 rule to retrieve. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the rule to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the rule to retrieve. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetTagRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetTagRequest.php deleted file mode 100644 index 1f8670ee2d17..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetTagRequest.php +++ /dev/null @@ -1,80 +0,0 @@ -google.devtools.artifactregistry.v1.GetTagRequest - */ -class GetTagRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the tag to retrieve. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * @param string $name The name of the tag to retrieve. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetTagRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the tag to retrieve. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Tag::initOnce(); - parent::__construct($data); - } - - /** - * The name of the tag to retrieve. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the tag to retrieve. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetVPCSCConfigRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetVPCSCConfigRequest.php deleted file mode 100644 index 15127233c42b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetVPCSCConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.artifactregistry.v1.GetVPCSCConfigRequest - */ -class GetVPCSCConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the VPCSCConfig 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 VPCSCConfig resource. Please see - * {@see ArtifactRegistryClient::vpcscConfigName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetVPCSCConfigRequest - * - * @experimental - */ - public static function 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 VPCSCConfig resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\VpcscConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the VPCSCConfig 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 VPCSCConfig 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetVersionRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetVersionRequest.php deleted file mode 100644 index c41a97ec0384..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/GetVersionRequest.php +++ /dev/null @@ -1,114 +0,0 @@ -google.devtools.artifactregistry.v1.GetVersionRequest - */ -class GetVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the version to retrieve. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The view that should be returned in the response. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VersionView view = 2; - */ - protected $view = 0; - - /** - * @param string $name The name of the version to retrieve. - * - * @return \Google\Cloud\ArtifactRegistry\V1\GetVersionRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the version to retrieve. - * @type int $view - * The view that should be returned in the response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * The name of the version to retrieve. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the version to retrieve. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The view that should be returned in the response. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VersionView view = 2; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The view that should be returned in the response. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VersionView view = 2; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\VersionView::class); - $this->view = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Hash.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Hash.php deleted file mode 100644 index 79bcb7533540..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Hash.php +++ /dev/null @@ -1,101 +0,0 @@ -google.devtools.artifactregistry.v1.Hash - */ -class Hash extends \Google\Protobuf\Internal\Message -{ - /** - * The algorithm used to compute the hash value. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Hash.HashType type = 1; - */ - protected $type = 0; - /** - * The hash value. - * - * Generated from protobuf field bytes value = 2; - */ - protected $value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The algorithm used to compute the hash value. - * @type string $value - * The hash value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\File::initOnce(); - parent::__construct($data); - } - - /** - * The algorithm used to compute the hash value. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Hash.HashType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The algorithm used to compute the hash value. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Hash.HashType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\Hash\HashType::class); - $this->type = $var; - - return $this; - } - - /** - * The hash value. - * - * Generated from protobuf field bytes value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The hash value. - * - * Generated from protobuf field bytes value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, False); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Hash/HashType.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Hash/HashType.php deleted file mode 100644 index 51fcd6f07fc3..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Hash/HashType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.devtools.artifactregistry.v1.Hash.HashType - */ -class HashType -{ - /** - * Unspecified. - * - * Generated from protobuf enum HASH_TYPE_UNSPECIFIED = 0; - */ - const HASH_TYPE_UNSPECIFIED = 0; - /** - * SHA256 hash. - * - * Generated from protobuf enum SHA256 = 1; - */ - const SHA256 = 1; - /** - * MD5 hash. - * - * Generated from protobuf enum MD5 = 2; - */ - const MD5 = 2; - - private static $valueToName = [ - self::HASH_TYPE_UNSPECIFIED => 'HASH_TYPE_UNSPECIFIED', - self::SHA256 => 'SHA256', - self::MD5 => 'MD5', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(HashType::class, \Google\Cloud\ArtifactRegistry\V1\Hash_HashType::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsErrorInfo.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsErrorInfo.php deleted file mode 100644 index eb25e2abc7e3..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsErrorInfo.php +++ /dev/null @@ -1,119 +0,0 @@ -google.devtools.artifactregistry.v1.ImportAptArtifactsErrorInfo - */ -class ImportAptArtifactsErrorInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The detailed error status. - * - * Generated from protobuf field .google.rpc.Status error = 2; - */ - protected $error = null; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsGcsSource $gcs_source - * Google Cloud Storage location requested. - * @type \Google\Rpc\Status $error - * The detailed error status. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\AptArtifact::initOnce(); - parent::__construct($data); - } - - /** - * Google Cloud Storage location requested. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 1; - * @return \Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsGcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(1); - } - - public function hasGcsSource() - { - return $this->hasOneof(1); - } - - /** - * Google Cloud Storage location requested. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 1; - * @param \Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsGcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsGcsSource::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The detailed error status. - * - * Generated from protobuf field .google.rpc.Status error = 2; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->error; - } - - public function hasError() - { - return isset($this->error); - } - - public function clearError() - { - unset($this->error); - } - - /** - * The detailed error status. - * - * Generated from protobuf field .google.rpc.Status error = 2; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->error = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsGcsSource.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsGcsSource.php deleted file mode 100644 index 0d7d9bee210a..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsGcsSource.php +++ /dev/null @@ -1,101 +0,0 @@ -google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource - */ -class ImportAptArtifactsGcsSource extends \Google\Protobuf\Internal\Message -{ - /** - * Cloud Storage paths URI (e.g., gs://my_bucket//my_object). - * - * Generated from protobuf field repeated string uris = 1; - */ - private $uris; - /** - * Supports URI wildcards for matching multiple objects from a single URI. - * - * Generated from protobuf field bool use_wildcards = 2; - */ - protected $use_wildcards = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $uris - * Cloud Storage paths URI (e.g., gs://my_bucket//my_object). - * @type bool $use_wildcards - * Supports URI wildcards for matching multiple objects from a single URI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\AptArtifact::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Storage paths URI (e.g., gs://my_bucket//my_object). - * - * Generated from protobuf field repeated string uris = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUris() - { - return $this->uris; - } - - /** - * Cloud Storage paths URI (e.g., gs://my_bucket//my_object). - * - * Generated from protobuf field repeated string uris = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->uris = $arr; - - return $this; - } - - /** - * Supports URI wildcards for matching multiple objects from a single URI. - * - * Generated from protobuf field bool use_wildcards = 2; - * @return bool - */ - public function getUseWildcards() - { - return $this->use_wildcards; - } - - /** - * Supports URI wildcards for matching multiple objects from a single URI. - * - * Generated from protobuf field bool use_wildcards = 2; - * @param bool $var - * @return $this - */ - public function setUseWildcards($var) - { - GPBUtil::checkBool($var); - $this->use_wildcards = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsMetadata.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsMetadata.php deleted file mode 100644 index ed169a2e6d5b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.devtools.artifactregistry.v1.ImportAptArtifactsMetadata - */ -class ImportAptArtifactsMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\AptArtifact::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsRequest.php deleted file mode 100644 index fc3e346ecd7c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsRequest.php +++ /dev/null @@ -1,109 +0,0 @@ -google.devtools.artifactregistry.v1.ImportAptArtifactsRequest - */ -class ImportAptArtifactsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the parent resource where the artifacts will be imported. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsGcsSource $gcs_source - * Google Cloud Storage location where input content is located. - * @type string $parent - * The name of the parent resource where the artifacts will be imported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\AptArtifact::initOnce(); - parent::__construct($data); - } - - /** - * Google Cloud Storage location where input content is located. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 2; - * @return \Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsGcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(2); - } - - public function hasGcsSource() - { - return $this->hasOneof(2); - } - - /** - * Google Cloud Storage location where input content is located. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ImportAptArtifactsGcsSource gcs_source = 2; - * @param \Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsGcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsGcsSource::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The name of the parent resource where the artifacts will be imported. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the parent resource where the artifacts will be imported. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsResponse.php deleted file mode 100644 index 09ce496bb346..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportAptArtifactsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.devtools.artifactregistry.v1.ImportAptArtifactsResponse - */ -class ImportAptArtifactsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The Apt artifacts imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.AptArtifact apt_artifacts = 1; - */ - private $apt_artifacts; - /** - * Detailed error info for packages that were not imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.ImportAptArtifactsErrorInfo errors = 2; - */ - private $errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\AptArtifact>|\Google\Protobuf\Internal\RepeatedField $apt_artifacts - * The Apt artifacts imported. - * @type array<\Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsErrorInfo>|\Google\Protobuf\Internal\RepeatedField $errors - * Detailed error info for packages that were not imported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\AptArtifact::initOnce(); - parent::__construct($data); - } - - /** - * The Apt artifacts imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.AptArtifact apt_artifacts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAptArtifacts() - { - return $this->apt_artifacts; - } - - /** - * The Apt artifacts imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.AptArtifact apt_artifacts = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\AptArtifact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAptArtifacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\AptArtifact::class); - $this->apt_artifacts = $arr; - - return $this; - } - - /** - * Detailed error info for packages that were not imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.ImportAptArtifactsErrorInfo errors = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Detailed error info for packages that were not imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.ImportAptArtifactsErrorInfo errors = 2; - * @param array<\Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsErrorInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsErrorInfo::class); - $this->errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsErrorInfo.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsErrorInfo.php deleted file mode 100644 index 1a2af81059d7..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsErrorInfo.php +++ /dev/null @@ -1,119 +0,0 @@ -google.devtools.artifactregistry.v1.ImportYumArtifactsErrorInfo - */ -class ImportYumArtifactsErrorInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The detailed error status. - * - * Generated from protobuf field .google.rpc.Status error = 2; - */ - protected $error = null; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsGcsSource $gcs_source - * Google Cloud Storage location requested. - * @type \Google\Rpc\Status $error - * The detailed error status. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\YumArtifact::initOnce(); - parent::__construct($data); - } - - /** - * Google Cloud Storage location requested. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource gcs_source = 1; - * @return \Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsGcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(1); - } - - public function hasGcsSource() - { - return $this->hasOneof(1); - } - - /** - * Google Cloud Storage location requested. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource gcs_source = 1; - * @param \Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsGcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsGcsSource::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The detailed error status. - * - * Generated from protobuf field .google.rpc.Status error = 2; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->error; - } - - public function hasError() - { - return isset($this->error); - } - - public function clearError() - { - unset($this->error); - } - - /** - * The detailed error status. - * - * Generated from protobuf field .google.rpc.Status error = 2; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->error = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsGcsSource.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsGcsSource.php deleted file mode 100644 index 5260dca32be4..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsGcsSource.php +++ /dev/null @@ -1,101 +0,0 @@ -google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource - */ -class ImportYumArtifactsGcsSource extends \Google\Protobuf\Internal\Message -{ - /** - * Cloud Storage paths URI (e.g., gs://my_bucket//my_object). - * - * Generated from protobuf field repeated string uris = 1; - */ - private $uris; - /** - * Supports URI wildcards for matching multiple objects from a single URI. - * - * Generated from protobuf field bool use_wildcards = 2; - */ - protected $use_wildcards = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $uris - * Cloud Storage paths URI (e.g., gs://my_bucket//my_object). - * @type bool $use_wildcards - * Supports URI wildcards for matching multiple objects from a single URI. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\YumArtifact::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Storage paths URI (e.g., gs://my_bucket//my_object). - * - * Generated from protobuf field repeated string uris = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUris() - { - return $this->uris; - } - - /** - * Cloud Storage paths URI (e.g., gs://my_bucket//my_object). - * - * Generated from protobuf field repeated string uris = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->uris = $arr; - - return $this; - } - - /** - * Supports URI wildcards for matching multiple objects from a single URI. - * - * Generated from protobuf field bool use_wildcards = 2; - * @return bool - */ - public function getUseWildcards() - { - return $this->use_wildcards; - } - - /** - * Supports URI wildcards for matching multiple objects from a single URI. - * - * Generated from protobuf field bool use_wildcards = 2; - * @param bool $var - * @return $this - */ - public function setUseWildcards($var) - { - GPBUtil::checkBool($var); - $this->use_wildcards = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsMetadata.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsMetadata.php deleted file mode 100644 index 0445f07a4f59..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.devtools.artifactregistry.v1.ImportYumArtifactsMetadata - */ -class ImportYumArtifactsMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\YumArtifact::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsRequest.php deleted file mode 100644 index a9852949319c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsRequest.php +++ /dev/null @@ -1,109 +0,0 @@ -google.devtools.artifactregistry.v1.ImportYumArtifactsRequest - */ -class ImportYumArtifactsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the parent resource where the artifacts will be imported. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsGcsSource $gcs_source - * Google Cloud Storage location where input content is located. - * @type string $parent - * The name of the parent resource where the artifacts will be imported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\YumArtifact::initOnce(); - parent::__construct($data); - } - - /** - * Google Cloud Storage location where input content is located. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource gcs_source = 2; - * @return \Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsGcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(2); - } - - public function hasGcsSource() - { - return $this->hasOneof(2); - } - - /** - * Google Cloud Storage location where input content is located. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource gcs_source = 2; - * @param \Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsGcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsGcsSource::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The name of the parent resource where the artifacts will be imported. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the parent resource where the artifacts will be imported. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsResponse.php deleted file mode 100644 index 8599bbb9057c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ImportYumArtifactsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.devtools.artifactregistry.v1.ImportYumArtifactsResponse - */ -class ImportYumArtifactsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The yum artifacts imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.YumArtifact yum_artifacts = 1; - */ - private $yum_artifacts; - /** - * Detailed error info for packages that were not imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.ImportYumArtifactsErrorInfo errors = 2; - */ - private $errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\YumArtifact>|\Google\Protobuf\Internal\RepeatedField $yum_artifacts - * The yum artifacts imported. - * @type array<\Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsErrorInfo>|\Google\Protobuf\Internal\RepeatedField $errors - * Detailed error info for packages that were not imported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\YumArtifact::initOnce(); - parent::__construct($data); - } - - /** - * The yum artifacts imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.YumArtifact yum_artifacts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getYumArtifacts() - { - return $this->yum_artifacts; - } - - /** - * The yum artifacts imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.YumArtifact yum_artifacts = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\YumArtifact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setYumArtifacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\YumArtifact::class); - $this->yum_artifacts = $arr; - - return $this; - } - - /** - * Detailed error info for packages that were not imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.ImportYumArtifactsErrorInfo errors = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Detailed error info for packages that were not imported. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.ImportYumArtifactsErrorInfo errors = 2; - * @param array<\Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsErrorInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsErrorInfo::class); - $this->errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListAttachmentsRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListAttachmentsRequest.php deleted file mode 100644 index 9717a3807920..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListAttachmentsRequest.php +++ /dev/null @@ -1,199 +0,0 @@ -google.devtools.artifactregistry.v1.ListAttachmentsRequest - */ -class ListAttachmentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource whose attachments will be listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `target` - * * `type` - * * `attachment_namespace` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * The maximum number of attachments to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The name of the parent resource whose attachments will be listed. Please see - * {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\ListAttachmentsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource whose attachments will be listed. - * @type string $filter - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `target` - * * `type` - * * `attachment_namespace` - * @type int $page_size - * The maximum number of attachments to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource whose attachments will be listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the parent resource whose attachments will be listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `target` - * * `type` - * * `attachment_namespace` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `target` - * * `type` - * * `attachment_namespace` - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The maximum number of attachments to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of attachments to return. Maximum page size is 1,000. - * - * 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 next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListAttachmentsResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListAttachmentsResponse.php deleted file mode 100644 index 81c1780e2d0b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListAttachmentsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListAttachmentsResponse - */ -class ListAttachmentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The attachments returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; - */ - private $attachments; - /** - * The token to retrieve the next page of attachments, or empty if there are - * no more attachments to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\Attachment>|\Google\Protobuf\Internal\RepeatedField $attachments - * The attachments returned. - * @type string $next_page_token - * The token to retrieve the next page of attachments, or empty if there are - * no more attachments to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Attachment::initOnce(); - parent::__construct($data); - } - - /** - * The attachments returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAttachments() - { - return $this->attachments; - } - - /** - * The attachments returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Attachment attachments = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\Attachment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAttachments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\Attachment::class); - $this->attachments = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of attachments, or empty if there are - * no more attachments to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of attachments, or empty if there are - * no more attachments 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListDockerImagesRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListDockerImagesRequest.php deleted file mode 100644 index fc3d59be882a..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListDockerImagesRequest.php +++ /dev/null @@ -1,187 +0,0 @@ -google.devtools.artifactregistry.v1.ListDockerImagesRequest - */ -class ListDockerImagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource whose docker images will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $parent = ''; - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * The field to order the results by. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The name of the parent resource whose docker images will be - * listed. - * - * @return \Google\Cloud\ArtifactRegistry\V1\ListDockerImagesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource whose docker images will be - * listed. - * @type int $page_size - * The maximum number of artifacts to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * @type string $order_by - * The field to order the results by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource whose docker images will be - * listed. - * - * 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 parent resource whose docker images will be - * listed. - * - * 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 artifacts to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * 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 returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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 field to order the results by. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * The field to order the results by. - * - * Generated from protobuf field string order_by = 4; - * @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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListDockerImagesResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListDockerImagesResponse.php deleted file mode 100644 index 2ccec19eb3ee..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListDockerImagesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListDockerImagesResponse - */ -class ListDockerImagesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The docker images returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1; - */ - private $docker_images; - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\DockerImage>|\Google\Protobuf\Internal\RepeatedField $docker_images - * The docker images returned. - * @type string $next_page_token - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * The docker images returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDockerImages() - { - return $this->docker_images; - } - - /** - * The docker images returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.DockerImage docker_images = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\DockerImage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDockerImages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\DockerImage::class); - $this->docker_images = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListFilesRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListFilesRequest.php deleted file mode 100644 index 9e06eec43575..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListFilesRequest.php +++ /dev/null @@ -1,354 +0,0 @@ -google.devtools.artifactregistry.v1.ListFilesRequest - */ -class ListFilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the repository whose files will be listed. For - * example: "projects/p1/locations/us-central1/repositories/repo1 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * An expression for filtering the results of the request. Filter rules are - * case insensitive. The fields eligible for filtering are: - * * `name` - * * `owner` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to files with the name `my_file.txt` - * in project `my-project` in the `us-central` region, in repository - * `my-repo`, append the following filter expression to your request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` - * To filter the results of your request to files owned by the version `1.0` - * in package `pkg1`, append the following filter expression to your request: - * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` - * To filter the results of your request to files with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request: - * * `"annotations.external_link:external_link_value"` - * To filter just for a specific annotation key `external_link`, append the - * following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to files with the annotation key-value pair - * [`external.link`:`https://example.com/my-file`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-file`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * The maximum number of files to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * The field to order the results by. - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The name of the repository whose files will be listed. For - * example: "projects/p1/locations/us-central1/repositories/repo1 - * Please see {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\ListFilesRequest - * - * @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 repository whose files will be listed. For - * example: "projects/p1/locations/us-central1/repositories/repo1 - * @type string $filter - * An expression for filtering the results of the request. Filter rules are - * case insensitive. The fields eligible for filtering are: - * * `name` - * * `owner` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to files with the name `my_file.txt` - * in project `my-project` in the `us-central` region, in repository - * `my-repo`, append the following filter expression to your request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` - * To filter the results of your request to files owned by the version `1.0` - * in package `pkg1`, append the following filter expression to your request: - * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` - * To filter the results of your request to files with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request: - * * `"annotations.external_link:external_link_value"` - * To filter just for a specific annotation key `external_link`, append the - * following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to files with the annotation key-value pair - * [`external.link`:`https://example.com/my-file`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-file`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * @type int $page_size - * The maximum number of files to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * @type string $order_by - * The field to order the results by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\File::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the repository whose files will be listed. For - * example: "projects/p1/locations/us-central1/repositories/repo1 - * - * Generated 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 repository whose files will be listed. For - * example: "projects/p1/locations/us-central1/repositories/repo1 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * An expression for filtering the results of the request. Filter rules are - * case insensitive. The fields eligible for filtering are: - * * `name` - * * `owner` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to files with the name `my_file.txt` - * in project `my-project` in the `us-central` region, in repository - * `my-repo`, append the following filter expression to your request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` - * To filter the results of your request to files owned by the version `1.0` - * in package `pkg1`, append the following filter expression to your request: - * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` - * To filter the results of your request to files with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request: - * * `"annotations.external_link:external_link_value"` - * To filter just for a specific annotation key `external_link`, append the - * following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to files with the annotation key-value pair - * [`external.link`:`https://example.com/my-file`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-file`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * An expression for filtering the results of the request. Filter rules are - * case insensitive. The fields eligible for filtering are: - * * `name` - * * `owner` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to files with the name `my_file.txt` - * in project `my-project` in the `us-central` region, in repository - * `my-repo`, append the following filter expression to your request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-file.txt"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file.txt"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/files/*file*"` - * To filter the results of your request to files owned by the version `1.0` - * in package `pkg1`, append the following filter expression to your request: - * * `owner="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` - * To filter the results of your request to files with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request: - * * `"annotations.external_link:external_link_value"` - * To filter just for a specific annotation key `external_link`, append the - * following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to files with the annotation key-value pair - * [`external.link`:`https://example.com/my-file`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-file`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * - * 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; - } - - /** - * The maximum number of files to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of files to return. Maximum page size is 1,000. - * - * 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 returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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 field to order the results by. - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * The field to order the results by. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListFilesResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListFilesResponse.php deleted file mode 100644 index 96f058260762..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListFilesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListFilesResponse - */ -class ListFilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The files returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.File files = 1; - */ - private $files; - /** - * The token to retrieve the next page of files, or empty if there are no - * more files to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\File>|\Google\Protobuf\Internal\RepeatedField $files - * The files returned. - * @type string $next_page_token - * The token to retrieve the next page of files, or empty if there are no - * more files to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\File::initOnce(); - parent::__construct($data); - } - - /** - * The files returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.File files = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFiles() - { - return $this->files; - } - - /** - * The files returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.File files = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\File>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\File::class); - $this->files = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of files, or empty if there are no - * more files to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of files, or empty if there are no - * more files 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListMavenArtifactsRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListMavenArtifactsRequest.php deleted file mode 100644 index 5f9eca2db026..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListMavenArtifactsRequest.php +++ /dev/null @@ -1,154 +0,0 @@ -google.devtools.artifactregistry.v1.ListMavenArtifactsRequest - */ -class ListMavenArtifactsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource whose maven artifacts will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The name of the parent resource whose maven artifacts will be - * listed. Please see - * {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\ListMavenArtifactsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource whose maven artifacts will be - * listed. - * @type int $page_size - * The maximum number of artifacts to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource whose maven artifacts will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the parent resource whose maven artifacts will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * 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 returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListMavenArtifactsResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListMavenArtifactsResponse.php deleted file mode 100644 index b1de1f21db3d..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListMavenArtifactsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListMavenArtifactsResponse - */ -class ListMavenArtifactsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The maven artifacts returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1; - */ - private $maven_artifacts; - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\MavenArtifact>|\Google\Protobuf\Internal\RepeatedField $maven_artifacts - * The maven artifacts returned. - * @type string $next_page_token - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * The maven artifacts returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMavenArtifacts() - { - return $this->maven_artifacts; - } - - /** - * The maven artifacts returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.MavenArtifact maven_artifacts = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\MavenArtifact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMavenArtifacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\MavenArtifact::class); - $this->maven_artifacts = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListNpmPackagesRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListNpmPackagesRequest.php deleted file mode 100644 index 4c33928e1271..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListNpmPackagesRequest.php +++ /dev/null @@ -1,154 +0,0 @@ -google.devtools.artifactregistry.v1.ListNpmPackagesRequest - */ -class ListNpmPackagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource whose npm packages will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The name of the parent resource whose npm packages will be - * listed. Please see - * {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\ListNpmPackagesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource whose npm packages will be - * listed. - * @type int $page_size - * The maximum number of artifacts to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource whose npm packages will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the parent resource whose npm packages will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * 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 returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListNpmPackagesResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListNpmPackagesResponse.php deleted file mode 100644 index ad1c6898e324..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListNpmPackagesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListNpmPackagesResponse - */ -class ListNpmPackagesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The npm packages returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1; - */ - private $npm_packages; - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\NpmPackage>|\Google\Protobuf\Internal\RepeatedField $npm_packages - * The npm packages returned. - * @type string $next_page_token - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * The npm packages returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNpmPackages() - { - return $this->npm_packages; - } - - /** - * The npm packages returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.NpmPackage npm_packages = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\NpmPackage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNpmPackages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\NpmPackage::class); - $this->npm_packages = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPackagesRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPackagesRequest.php deleted file mode 100644 index d4d32aa996fc..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPackagesRequest.php +++ /dev/null @@ -1,337 +0,0 @@ -google.devtools.artifactregistry.v1.ListPackagesRequest - */ -class ListPackagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource whose packages will be listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of packages to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to packages with the name - * `my-package` in project `my-project` in the `us-central` region, in - * repository `my-repo`, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"` - * To filter the results of your request to packages with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request": - * * `"annotations.external_link:external_link_value"` - * To filter the results just for a specific annotation key `external_link`, - * append the following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to packages with the annotation key-value pair - * [`external.link`:`https://example.com/my-package`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-package`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The field to order the results by. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The name of the parent resource whose packages will be listed. Please see - * {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\ListPackagesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource whose packages will be listed. - * @type int $page_size - * The maximum number of packages to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * @type string $filter - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to packages with the name - * `my-package` in project `my-project` in the `us-central` region, in - * repository `my-repo`, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"` - * To filter the results of your request to packages with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request": - * * `"annotations.external_link:external_link_value"` - * To filter the results just for a specific annotation key `external_link`, - * append the following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to packages with the annotation key-value pair - * [`external.link`:`https://example.com/my-package`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-package`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * @type string $order_by - * Optional. The field to order the results by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource whose packages will be listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the parent resource whose packages will be listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 packages to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of packages to return. Maximum page size is 1,000. - * - * 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 returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to packages with the name - * `my-package` in project `my-project` in the `us-central` region, in - * repository `my-repo`, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"` - * To filter the results of your request to packages with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request": - * * `"annotations.external_link:external_link_value"` - * To filter the results just for a specific annotation key `external_link`, - * append the following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to packages with the annotation key-value pair - * [`external.link`:`https://example.com/my-package`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-package`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to packages with the name - * `my-package` in project `my-project` in the `us-central` region, in - * repository `my-repo`, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*package"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/*pack*"` - * To filter the results of your request to packages with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request": - * * `"annotations.external_link:external_link_value"` - * To filter the results just for a specific annotation key `external_link`, - * append the following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to packages with the annotation key-value pair - * [`external.link`:`https://example.com/my-package`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-package`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * - * 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 field to order the results by. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The field to order the results by. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPackagesResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPackagesResponse.php deleted file mode 100644 index 8822cdbba69f..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPackagesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListPackagesResponse - */ -class ListPackagesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The packages returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Package packages = 1; - */ - private $packages; - /** - * The token to retrieve the next page of packages, or empty if there are no - * more packages to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\Package>|\Google\Protobuf\Internal\RepeatedField $packages - * The packages returned. - * @type string $next_page_token - * The token to retrieve the next page of packages, or empty if there are no - * more packages to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * The packages returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Package packages = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPackages() - { - return $this->packages; - } - - /** - * The packages returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Package packages = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\Package>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPackages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\Package::class); - $this->packages = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of packages, or empty if there are no - * more packages to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of packages, or empty if there are no - * more packages 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPythonPackagesRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPythonPackagesRequest.php deleted file mode 100644 index 0435c92ec3b7..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPythonPackagesRequest.php +++ /dev/null @@ -1,154 +0,0 @@ -google.devtools.artifactregistry.v1.ListPythonPackagesRequest - */ -class ListPythonPackagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource whose python packages will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The name of the parent resource whose python packages will be - * listed. Please see - * {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\ListPythonPackagesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource whose python packages will be - * listed. - * @type int $page_size - * The maximum number of artifacts to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource whose python packages will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the parent resource whose python packages will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of artifacts to return. Maximum page size is 1,000. - * - * 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 returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPythonPackagesResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPythonPackagesResponse.php deleted file mode 100644 index b985eecc48ea..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListPythonPackagesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListPythonPackagesResponse - */ -class ListPythonPackagesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The python packages returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.PythonPackage python_packages = 1; - */ - private $python_packages; - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\PythonPackage>|\Google\Protobuf\Internal\RepeatedField $python_packages - * The python packages returned. - * @type string $next_page_token - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * The python packages returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.PythonPackage python_packages = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPythonPackages() - { - return $this->python_packages; - } - - /** - * The python packages returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.PythonPackage python_packages = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\PythonPackage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPythonPackages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\PythonPackage::class); - $this->python_packages = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of artifacts, or empty if there are no - * more artifacts 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRepositoriesRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRepositoriesRequest.php deleted file mode 100644 index 968b3ea9eb1d..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRepositoriesRequest.php +++ /dev/null @@ -1,270 +0,0 @@ -google.devtools.artifactregistry.v1.ListRepositoriesRequest - */ -class ListRepositoriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent resource whose repositories will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of repositories to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * Examples of using a filter: - * To filter the results of your request to repositories with the name - * `my-repo` in project `my-project` in the `us-central` region, append the - * following filter expression to your request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/*repo"` - * * `name="projects/my-project/locations/us-central1/repositories/*repo*"` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. The field to order the results by. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The name of the parent resource whose repositories will be - * listed. Please see - * {@see ArtifactRegistryClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\ListRepositoriesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent resource whose repositories will be - * listed. - * @type int $page_size - * The maximum number of repositories to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * @type string $filter - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * Examples of using a filter: - * To filter the results of your request to repositories with the name - * `my-repo` in project `my-project` in the `us-central` region, append the - * following filter expression to your request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/*repo"` - * * `name="projects/my-project/locations/us-central1/repositories/*repo*"` - * @type string $order_by - * Optional. The field to order the results by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent resource whose repositories will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the parent resource whose repositories will be - * listed. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 repositories to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of repositories to return. Maximum page size is 1,000. - * - * 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 returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * Examples of using a filter: - * To filter the results of your request to repositories with the name - * `my-repo` in project `my-project` in the `us-central` region, append the - * following filter expression to your request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/*repo"` - * * `name="projects/my-project/locations/us-central1/repositories/*repo*"` - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * Examples of using a filter: - * To filter the results of your request to repositories with the name - * `my-repo` in project `my-project` in the `us-central` region, append the - * following filter expression to your request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-*"` - * * `name="projects/my-project/locations/us-central1/repositories/*repo"` - * * `name="projects/my-project/locations/us-central1/repositories/*repo*"` - * - * 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 field to order the results by. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The field to order the results by. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRepositoriesResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRepositoriesResponse.php deleted file mode 100644 index 263872d9a2dc..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRepositoriesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListRepositoriesResponse - */ -class ListRepositoriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The repositories returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Repository repositories = 1; - */ - private $repositories; - /** - * The token to retrieve the next page of repositories, or empty if there are - * no more repositories to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\Repository>|\Google\Protobuf\Internal\RepeatedField $repositories - * The repositories returned. - * @type string $next_page_token - * The token to retrieve the next page of repositories, or empty if there are - * no more repositories to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * The repositories returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Repository repositories = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRepositories() - { - return $this->repositories; - } - - /** - * The repositories returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Repository repositories = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\Repository>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRepositories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\Repository::class); - $this->repositories = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of repositories, or empty if there are - * no more repositories to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of repositories, or empty if there are - * no more repositories 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRulesRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRulesRequest.php deleted file mode 100644 index 0e1d3f2a3e30..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRulesRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.devtools.artifactregistry.v1.ListRulesRequest - */ -class ListRulesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parent repository whose rules will be listed. - * For example: - * `projects/p1/locations/us-central1/repositories/repo1`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of rules to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The name of the parent repository whose rules will be listed. - * For example: - * `projects/p1/locations/us-central1/repositories/repo1`. Please see - * {@see ArtifactRegistryClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\ArtifactRegistry\V1\ListRulesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the parent repository whose rules will be listed. - * For example: - * `projects/p1/locations/us-central1/repositories/repo1`. - * @type int $page_size - * The maximum number of rules to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parent repository whose rules will be listed. - * For example: - * `projects/p1/locations/us-central1/repositories/repo1`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the parent repository whose rules will be listed. - * For example: - * `projects/p1/locations/us-central1/repositories/repo1`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 rules to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of rules to return. Maximum page size is 1,000. - * - * 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 returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRulesResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRulesResponse.php deleted file mode 100644 index bc9bcda95a7b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListRulesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListRulesResponse - */ -class ListRulesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The rules returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Rule rules = 1; - */ - private $rules; - /** - * The token to retrieve the next page of rules, or empty if there are no - * more rules to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\Rule>|\Google\Protobuf\Internal\RepeatedField $rules - * The rules returned. - * @type string $next_page_token - * The token to retrieve the next page of rules, or empty if there are no - * more rules to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The rules returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Rule rules = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRules() - { - return $this->rules; - } - - /** - * The rules returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Rule rules = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\Rule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\Rule::class); - $this->rules = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of rules, or empty if there are no - * more rules to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of rules, or empty if there are no - * more rules 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListTagsRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListTagsRequest.php deleted file mode 100644 index 91c35567cfe5..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListTagsRequest.php +++ /dev/null @@ -1,264 +0,0 @@ -google.devtools.artifactregistry.v1.ListTagsRequest - */ -class ListTagsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the parent package whose tags will be listed. - * For example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * An expression for filtering the results of the request. Filter rules are - * case insensitive. The fields eligible for filtering are: - * * `name` - * * `version` - * Examples of using a filter: - * To filter the results of your request to tags with the name `my-tag` in - * package `my-package` in repository `my-repo` in project "`y-project` in - * the us-central region, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` - * To filter the results of your request to tags applied to the version - * `1.0` in package `my-package`, append the following filter expression to - * your request: - * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * The maximum number of tags to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent The name of the parent package whose tags will be listed. - * For example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. - * - * @return \Google\Cloud\ArtifactRegistry\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 - * The name of the parent package whose tags will be listed. - * For example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. - * @type string $filter - * An expression for filtering the results of the request. Filter rules are - * case insensitive. The fields eligible for filtering are: - * * `name` - * * `version` - * Examples of using a filter: - * To filter the results of your request to tags with the name `my-tag` in - * package `my-package` in repository `my-repo` in project "`y-project` in - * the us-central region, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` - * To filter the results of your request to tags applied to the version - * `1.0` in package `my-package`, append the following filter expression to - * your request: - * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` - * @type int $page_size - * The maximum number of tags to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Tag::initOnce(); - parent::__construct($data); - } - - /** - * The name of the parent package whose tags will be listed. - * For example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the parent package whose tags will be listed. - * For example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * An expression for filtering the results of the request. Filter rules are - * case insensitive. The fields eligible for filtering are: - * * `name` - * * `version` - * Examples of using a filter: - * To filter the results of your request to tags with the name `my-tag` in - * package `my-package` in repository `my-repo` in project "`y-project` in - * the us-central region, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` - * To filter the results of your request to tags applied to the version - * `1.0` in package `my-package`, append the following filter expression to - * your request: - * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * An expression for filtering the results of the request. Filter rules are - * case insensitive. The fields eligible for filtering are: - * * `name` - * * `version` - * Examples of using a filter: - * To filter the results of your request to tags with the name `my-tag` in - * package `my-package` in repository `my-repo` in project "`y-project` in - * the us-central region, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my-tag"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/my*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/tags/*tag*"` - * To filter the results of your request to tags applied to the version - * `1.0` in package `my-package`, append the following filter expression to - * your request: - * * `version="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/1.0"` - * - * 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; - } - - /** - * The maximum number of tags to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of tags to return. Maximum page size is 1,000. - * - * 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 returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListTagsResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListTagsResponse.php deleted file mode 100644 index 5d1c4b49930c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListTagsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListTagsResponse - */ -class ListTagsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The tags returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Tag tags = 1; - */ - private $tags; - /** - * The token to retrieve the next page of tags, or empty if there are no - * more tags to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $tags - * The tags returned. - * @type string $next_page_token - * The token to retrieve the next page of tags, or empty if there are no - * more tags to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Tag::initOnce(); - parent::__construct($data); - } - - /** - * The tags returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Tag tags = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * The tags returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Tag tags = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\Tag::class); - $this->tags = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of tags, or empty if there are no - * more tags to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of tags, or empty if there are no - * more tags 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListVersionsRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListVersionsRequest.php deleted file mode 100644 index e7e73d781b2d..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListVersionsRequest.php +++ /dev/null @@ -1,370 +0,0 @@ -google.devtools.artifactregistry.v1.ListVersionsRequest - */ -class ListVersionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the parent resource whose versions will be listed. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * The maximum number of versions to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * The view that should be returned in the response. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VersionView view = 4; - */ - protected $view = 0; - /** - * Optional. The field to order the results by. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to versions with the name - * `my-version` in project `my-project` in the `us-central` region, in - * repository `my-repo`, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"` - * To filter the results of your request to versions with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request: - * * `"annotations.external_link:external_link_value"` - * To filter just for a specific annotation key `external_link`, append the - * following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to versions with the annotation key-value pair - * [`external.link`:`https://example.com/my-version`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-version`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * - * Generated from protobuf field string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent The name of the parent resource whose versions will be listed. - * - * @return \Google\Cloud\ArtifactRegistry\V1\ListVersionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The name of the parent resource whose versions will be listed. - * @type int $page_size - * The maximum number of versions to return. Maximum page size is 1,000. - * @type string $page_token - * The next_page_token value returned from a previous list request, if any. - * @type int $view - * The view that should be returned in the response. - * @type string $order_by - * Optional. The field to order the results by. - * @type string $filter - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to versions with the name - * `my-version` in project `my-project` in the `us-central` region, in - * repository `my-repo`, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"` - * To filter the results of your request to versions with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request: - * * `"annotations.external_link:external_link_value"` - * To filter just for a specific annotation key `external_link`, append the - * following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to versions with the annotation key-value pair - * [`external.link`:`https://example.com/my-version`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-version`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * The name of the parent resource whose versions will be listed. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The name of the parent resource whose versions will be listed. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The maximum number of versions to return. Maximum page size is 1,000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of versions to return. Maximum page size is 1,000. - * - * 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 returned from a previous list request, if any. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous list request, if any. - * - * 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 view that should be returned in the response. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VersionView view = 4; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The view that should be returned in the response. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VersionView view = 4; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\VersionView::class); - $this->view = $var; - - return $this; - } - - /** - * Optional. The field to order the results by. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The field to order the results by. - * - * 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. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to versions with the name - * `my-version` in project `my-project` in the `us-central` region, in - * repository `my-repo`, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"` - * To filter the results of your request to versions with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request: - * * `"annotations.external_link:external_link_value"` - * To filter just for a specific annotation key `external_link`, append the - * following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to versions with the annotation key-value pair - * [`external.link`:`https://example.com/my-version`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-version`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * - * Generated from protobuf field string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. An expression for filtering the results of the request. Filter - * rules are case insensitive. The fields eligible for filtering are: - * * `name` - * * `annotations` - * Examples of using a filter: - * To filter the results of your request to versions with the name - * `my-version` in project `my-project` in the `us-central` region, in - * repository `my-repo`, append the following filter expression to your - * request: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my-version"` - * You can also use wildcards to match any number of characters before or - * after the value: - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/my*"` - * * `name="projects/my-project/locations/us-central1/repositories/my-repo/packages/my-package/versions/*version*"` - * To filter the results of your request to versions with the annotation - * key-value pair [`external_link`: `external_link_value`], append the - * following filter expression to your request: - * * `"annotations.external_link:external_link_value"` - * To filter just for a specific annotation key `external_link`, append the - * following filter expression to your request: - * * `"annotations.external_link"` - * If the annotation key or value contains special characters, you can escape - * them by surrounding the value with backticks. For example, to filter the - * results of your request to versions with the annotation key-value pair - * [`external.link`:`https://example.com/my-version`], append the following - * filter expression to your request: - * * `` "annotations.`external.link`:`https://example.com/my-version`" `` - * You can also filter with annotations with a wildcard to - * match any number of characters before or after the value: - * * `` "annotations.*_link:`*example.com*`" `` - * - * Generated from protobuf field string filter = 6 [(.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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListVersionsResponse.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListVersionsResponse.php deleted file mode 100644 index 3aaa352298a4..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ListVersionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.ListVersionsResponse - */ -class ListVersionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The versions returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Version versions = 1; - */ - private $versions; - /** - * The token to retrieve the next page of versions, or empty if there are no - * more versions to return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\Version>|\Google\Protobuf\Internal\RepeatedField $versions - * The versions returned. - * @type string $next_page_token - * The token to retrieve the next page of versions, or empty if there are no - * more versions to return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * The versions returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Version versions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVersions() - { - return $this->versions; - } - - /** - * The versions returned. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Version versions = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\Version>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\Version::class); - $this->versions = $arr; - - return $this; - } - - /** - * The token to retrieve the next page of versions, or empty if there are no - * more versions to return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to retrieve the next page of versions, or empty if there are no - * more versions 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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/MavenArtifact.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/MavenArtifact.php deleted file mode 100644 index 6ade7c6ddb1e..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/MavenArtifact.php +++ /dev/null @@ -1,335 +0,0 @@ -google.devtools.artifactregistry.v1.MavenArtifact - */ -class MavenArtifact extends \Google\Protobuf\Internal\Message -{ - /** - * Required. registry_location, project_id, repository_name and maven_artifact - * forms a unique artifact For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ - * com.google.guava:guava:31.0-jre", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * "com.google.guava:guava:31.0-jre" - * is the maven artifact. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. URL to access the pom file of the artifact. - * Example: - * us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom - * - * Generated from protobuf field string pom_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $pom_uri = ''; - /** - * Group ID for the artifact. - * Example: - * com.google.guava - * - * Generated from protobuf field string group_id = 3; - */ - protected $group_id = ''; - /** - * Artifact ID for the artifact. - * - * Generated from protobuf field string artifact_id = 4; - */ - protected $artifact_id = ''; - /** - * Version of this artifact. - * - * Generated from protobuf field string version = 5; - */ - protected $version = ''; - /** - * Output only. Time the artifact was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time the artifact was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. registry_location, project_id, repository_name and maven_artifact - * forms a unique artifact For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ - * com.google.guava:guava:31.0-jre", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * "com.google.guava:guava:31.0-jre" - * is the maven artifact. - * @type string $pom_uri - * Required. URL to access the pom file of the artifact. - * Example: - * us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom - * @type string $group_id - * Group ID for the artifact. - * Example: - * com.google.guava - * @type string $artifact_id - * Artifact ID for the artifact. - * @type string $version - * Version of this artifact. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the artifact was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time the artifact was updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. registry_location, project_id, repository_name and maven_artifact - * forms a unique artifact For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ - * com.google.guava:guava:31.0-jre", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * "com.google.guava:guava:31.0-jre" - * is the maven artifact. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. registry_location, project_id, repository_name and maven_artifact - * forms a unique artifact For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/mavenArtifacts/ - * com.google.guava:guava:31.0-jre", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * "com.google.guava:guava:31.0-jre" - * is the maven artifact. - * - * 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. URL to access the pom file of the artifact. - * Example: - * us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom - * - * Generated from protobuf field string pom_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPomUri() - { - return $this->pom_uri; - } - - /** - * Required. URL to access the pom file of the artifact. - * Example: - * us-west4-maven.pkg.dev/test-project/test-repo/com/google/guava/guava/31.0/guava-31.0.pom - * - * Generated from protobuf field string pom_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPomUri($var) - { - GPBUtil::checkString($var, True); - $this->pom_uri = $var; - - return $this; - } - - /** - * Group ID for the artifact. - * Example: - * com.google.guava - * - * Generated from protobuf field string group_id = 3; - * @return string - */ - public function getGroupId() - { - return $this->group_id; - } - - /** - * Group ID for the artifact. - * Example: - * com.google.guava - * - * Generated from protobuf field string group_id = 3; - * @param string $var - * @return $this - */ - public function setGroupId($var) - { - GPBUtil::checkString($var, True); - $this->group_id = $var; - - return $this; - } - - /** - * Artifact ID for the artifact. - * - * Generated from protobuf field string artifact_id = 4; - * @return string - */ - public function getArtifactId() - { - return $this->artifact_id; - } - - /** - * Artifact ID for the artifact. - * - * Generated from protobuf field string artifact_id = 4; - * @param string $var - * @return $this - */ - public function setArtifactId($var) - { - GPBUtil::checkString($var, True); - $this->artifact_id = $var; - - return $this; - } - - /** - * Version of this artifact. - * - * Generated from protobuf field string version = 5; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Version of this artifact. - * - * 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; - } - - /** - * Output only. Time the artifact was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 artifact was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 the artifact was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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 the artifact was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/NpmPackage.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/NpmPackage.php deleted file mode 100644 index ef9668517d0a..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/NpmPackage.php +++ /dev/null @@ -1,281 +0,0 @@ -google.devtools.artifactregistry.v1.NpmPackage - */ -class NpmPackage extends \Google\Protobuf\Internal\Message -{ - /** - * Required. registry_location, project_id, repository_name and npm_package - * forms a unique package For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ - * npm_test:1.0.0", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * npm_test:1.0.0" is the npm package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Package for the artifact. - * - * Generated from protobuf field string package_name = 3; - */ - protected $package_name = ''; - /** - * Version of this package. - * - * Generated from protobuf field string version = 4; - */ - protected $version = ''; - /** - * Tags attached to this package. - * - * Generated from protobuf field repeated string tags = 5; - */ - private $tags; - /** - * Output only. Time the package was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time the package was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. registry_location, project_id, repository_name and npm_package - * forms a unique package For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ - * npm_test:1.0.0", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * npm_test:1.0.0" is the npm package. - * @type string $package_name - * Package for the artifact. - * @type string $version - * Version of this package. - * @type array|\Google\Protobuf\Internal\RepeatedField $tags - * Tags attached to this package. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the package was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time the package was updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. registry_location, project_id, repository_name and npm_package - * forms a unique package For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ - * npm_test:1.0.0", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * npm_test:1.0.0" is the npm package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. registry_location, project_id, repository_name and npm_package - * forms a unique package For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/npmPackages/ - * npm_test:1.0.0", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * npm_test:1.0.0" is the npm package. - * - * 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; - } - - /** - * Package for the artifact. - * - * Generated from protobuf field string package_name = 3; - * @return string - */ - public function getPackageName() - { - return $this->package_name; - } - - /** - * Package for the artifact. - * - * Generated from protobuf field string package_name = 3; - * @param string $var - * @return $this - */ - public function setPackageName($var) - { - GPBUtil::checkString($var, True); - $this->package_name = $var; - - return $this; - } - - /** - * Version of this package. - * - * Generated from protobuf field string version = 4; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Version of this package. - * - * Generated from protobuf field string version = 4; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Tags attached to this package. - * - * Generated from protobuf field repeated string tags = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Tags attached to this package. - * - * Generated from protobuf field repeated string tags = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Output only. Time the package was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 package was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 the package was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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 the package was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/OperationMetadata.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/OperationMetadata.php deleted file mode 100644 index bdf62e3203fb..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/OperationMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.devtools.artifactregistry.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Service::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Package.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Package.php deleted file mode 100644 index fb2ef7cd265c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Package.php +++ /dev/null @@ -1,235 +0,0 @@ -google.devtools.artifactregistry.v1.Package - */ -class Package extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the package, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. - * If the package ID part contains slashes, the slashes are escaped. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The display name of the package. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * The time when the package was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - */ - protected $create_time = null; - /** - * The time when the package was last updated. This includes publishing a new - * version of the package. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - */ - protected $update_time = null; - /** - * Optional. Client specified annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the package, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. - * If the package ID part contains slashes, the slashes are escaped. - * @type string $display_name - * The display name of the package. - * @type \Google\Protobuf\Timestamp $create_time - * The time when the package was created. - * @type \Google\Protobuf\Timestamp $update_time - * The time when the package was last updated. This includes publishing a new - * version of the package. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Client specified annotations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * The name of the package, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. - * If the package ID part contains slashes, the slashes are escaped. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the package, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1`. - * If the package ID part contains slashes, the slashes are escaped. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The display name of the package. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the package. - * - * 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 time when the package was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The time when the package was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The time when the package was last updated. This includes publishing a new - * version of the package. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - * @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 time when the package was last updated. This includes publishing a new - * version of the package. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Client specified annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Client specified annotations. - * - * Generated from protobuf field map annotations = 7 [(.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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ProjectSettings.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ProjectSettings.php deleted file mode 100644 index 499f6a847b9c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ProjectSettings.php +++ /dev/null @@ -1,155 +0,0 @@ -google.devtools.artifactregistry.v1.ProjectSettings - */ -class ProjectSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the project's settings. - * Always of the form: - * projects/{project-id}/projectSettings - * In update request: never set - * In response: always set - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The redirection state of the legacy repositories in this project. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState legacy_redirection_state = 2; - */ - protected $legacy_redirection_state = 0; - /** - * The percentage of pull traffic to redirect from GCR to AR when using - * partial redirection. - * - * Generated from protobuf field int32 pull_percent = 3; - */ - protected $pull_percent = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the project's settings. - * Always of the form: - * projects/{project-id}/projectSettings - * In update request: never set - * In response: always set - * @type int $legacy_redirection_state - * The redirection state of the legacy repositories in this project. - * @type int $pull_percent - * The percentage of pull traffic to redirect from GCR to AR when using - * partial redirection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Settings::initOnce(); - parent::__construct($data); - } - - /** - * The name of the project's settings. - * Always of the form: - * projects/{project-id}/projectSettings - * In update request: never set - * In response: always set - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the project's settings. - * Always of the form: - * projects/{project-id}/projectSettings - * In update request: never set - * In response: always set - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The redirection state of the legacy repositories in this project. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState legacy_redirection_state = 2; - * @return int - */ - public function getLegacyRedirectionState() - { - return $this->legacy_redirection_state; - } - - /** - * The redirection state of the legacy repositories in this project. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState legacy_redirection_state = 2; - * @param int $var - * @return $this - */ - public function setLegacyRedirectionState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\ProjectSettings\RedirectionState::class); - $this->legacy_redirection_state = $var; - - return $this; - } - - /** - * The percentage of pull traffic to redirect from GCR to AR when using - * partial redirection. - * - * Generated from protobuf field int32 pull_percent = 3; - * @return int - */ - public function getPullPercent() - { - return $this->pull_percent; - } - - /** - * The percentage of pull traffic to redirect from GCR to AR when using - * partial redirection. - * - * Generated from protobuf field int32 pull_percent = 3; - * @param int $var - * @return $this - */ - public function setPullPercent($var) - { - GPBUtil::checkInt32($var); - $this->pull_percent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ProjectSettings/RedirectionState.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ProjectSettings/RedirectionState.php deleted file mode 100644 index 876f794294ac..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/ProjectSettings/RedirectionState.php +++ /dev/null @@ -1,85 +0,0 @@ -google.devtools.artifactregistry.v1.ProjectSettings.RedirectionState - */ -class RedirectionState -{ - /** - * No redirection status has been set. - * - * Generated from protobuf enum REDIRECTION_STATE_UNSPECIFIED = 0; - */ - const REDIRECTION_STATE_UNSPECIFIED = 0; - /** - * Redirection is disabled. - * - * Generated from protobuf enum REDIRECTION_FROM_GCR_IO_DISABLED = 1; - */ - const REDIRECTION_FROM_GCR_IO_DISABLED = 1; - /** - * Redirection is enabled. - * - * Generated from protobuf enum REDIRECTION_FROM_GCR_IO_ENABLED = 2; - */ - const REDIRECTION_FROM_GCR_IO_ENABLED = 2; - /** - * Redirection is enabled, and has been finalized so cannot be reverted. - * - * Generated from protobuf enum REDIRECTION_FROM_GCR_IO_FINALIZED = 3 [deprecated = true]; - */ - const REDIRECTION_FROM_GCR_IO_FINALIZED = 3; - /** - * Redirection is enabled and missing images are copied from GCR - * - * Generated from protobuf enum REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING = 5; - */ - const REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING = 5; - /** - * Redirection is partially enabled and missing images are copied from GCR - * - * Generated from protobuf enum REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING = 6; - */ - const REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING = 6; - - private static $valueToName = [ - self::REDIRECTION_STATE_UNSPECIFIED => 'REDIRECTION_STATE_UNSPECIFIED', - self::REDIRECTION_FROM_GCR_IO_DISABLED => 'REDIRECTION_FROM_GCR_IO_DISABLED', - self::REDIRECTION_FROM_GCR_IO_ENABLED => 'REDIRECTION_FROM_GCR_IO_ENABLED', - self::REDIRECTION_FROM_GCR_IO_FINALIZED => 'REDIRECTION_FROM_GCR_IO_FINALIZED', - self::REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING => 'REDIRECTION_FROM_GCR_IO_ENABLED_AND_COPYING', - self::REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING => 'REDIRECTION_FROM_GCR_IO_PARTIAL_AND_COPYING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RedirectionState::class, \Google\Cloud\ArtifactRegistry\V1\ProjectSettings_RedirectionState::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/PythonPackage.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/PythonPackage.php deleted file mode 100644 index 208ad38fd84c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/PythonPackage.php +++ /dev/null @@ -1,297 +0,0 @@ -google.devtools.artifactregistry.v1.PythonPackage - */ -class PythonPackage extends \Google\Protobuf\Internal\Message -{ - /** - * Required. registry_location, project_id, repository_name and python_package - * forms a unique package - * name:`projects//locations//repository//pythonPackages/`. - * For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ - * python_package:1.0.0", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * python_package:1.0.0" is the python package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. URL to access the package. - * Example: - * us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $uri = ''; - /** - * Package for the artifact. - * - * Generated from protobuf field string package_name = 3; - */ - protected $package_name = ''; - /** - * Version of this package. - * - * Generated from protobuf field string version = 4; - */ - protected $version = ''; - /** - * Output only. Time the package was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Time the package was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. registry_location, project_id, repository_name and python_package - * forms a unique package - * name:`projects//locations//repository//pythonPackages/`. - * For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ - * python_package:1.0.0", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * python_package:1.0.0" is the python package. - * @type string $uri - * Required. URL to access the package. - * Example: - * us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz - * @type string $package_name - * Package for the artifact. - * @type string $version - * Version of this package. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Time the package was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Time the package was updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Artifact::initOnce(); - parent::__construct($data); - } - - /** - * Required. registry_location, project_id, repository_name and python_package - * forms a unique package - * name:`projects//locations//repository//pythonPackages/`. - * For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ - * python_package:1.0.0", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * python_package:1.0.0" is the python package. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. registry_location, project_id, repository_name and python_package - * forms a unique package - * name:`projects//locations//repository//pythonPackages/`. - * For example, - * "projects/test-project/locations/us-west4/repositories/test-repo/pythonPackages/ - * python_package:1.0.0", - * where "us-west4" is the registry_location, "test-project" is the - * project_id, "test-repo" is the repository_name and - * python_package:1.0.0" is the python package. - * - * 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. URL to access the package. - * Example: - * us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Required. URL to access the package. - * Example: - * us-west4-python.pkg.dev/test-project/test-repo/python_package/file-name-1.0.0.tar.gz - * - * Generated from protobuf field string uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Package for the artifact. - * - * Generated from protobuf field string package_name = 3; - * @return string - */ - public function getPackageName() - { - return $this->package_name; - } - - /** - * Package for the artifact. - * - * Generated from protobuf field string package_name = 3; - * @param string $var - * @return $this - */ - public function setPackageName($var) - { - GPBUtil::checkString($var, True); - $this->package_name = $var; - - return $this; - } - - /** - * Version of this package. - * - * Generated from protobuf field string version = 4; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Version of this package. - * - * Generated from protobuf field string version = 4; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Output only. Time the package was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 package was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 the package was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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 the package was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig.php deleted file mode 100644 index 35567249d52c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig.php +++ /dev/null @@ -1,392 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig - */ -class RemoteRepositoryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The description of the remote source. - * - * Generated from protobuf field string description = 1; - */ - protected $description = ''; - /** - * Optional. The credentials used to access the remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials upstream_credentials = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $upstream_credentials = null; - /** - * Input only. A create/update remote repo option to avoid making a HEAD/GET - * request to validate a remote repo and any supplied upstream credentials. - * - * Generated from protobuf field bool disable_upstream_validation = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $disable_upstream_validation = false; - protected $remote_source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository $docker_repository - * Specific settings for a Docker remote repository. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository $maven_repository - * Specific settings for a Maven remote repository. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository $npm_repository - * Specific settings for an Npm remote repository. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository $python_repository - * Specific settings for a Python remote repository. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository $apt_repository - * Specific settings for an Apt remote repository. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository $yum_repository - * Specific settings for a Yum remote repository. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\CommonRemoteRepository $common_repository - * Common remote repository settings. - * Used as the remote repository upstream URL. - * @type string $description - * The description of the remote source. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials $upstream_credentials - * Optional. The credentials used to access the remote repository. - * @type bool $disable_upstream_validation - * Input only. A create/update remote repo option to avoid making a HEAD/GET - * request to validate a remote repo and any supplied upstream credentials. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Specific settings for a Docker remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository docker_repository = 2; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository|null - */ - public function getDockerRepository() - { - return $this->readOneof(2); - } - - public function hasDockerRepository() - { - return $this->hasOneof(2); - } - - /** - * Specific settings for a Docker remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository docker_repository = 2; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository $var - * @return $this - */ - public function setDockerRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Specific settings for a Maven remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository maven_repository = 3; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository|null - */ - public function getMavenRepository() - { - return $this->readOneof(3); - } - - public function hasMavenRepository() - { - return $this->hasOneof(3); - } - - /** - * Specific settings for a Maven remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository maven_repository = 3; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository $var - * @return $this - */ - public function setMavenRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Specific settings for an Npm remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository npm_repository = 4; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository|null - */ - public function getNpmRepository() - { - return $this->readOneof(4); - } - - public function hasNpmRepository() - { - return $this->hasOneof(4); - } - - /** - * Specific settings for an Npm remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository npm_repository = 4; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository $var - * @return $this - */ - public function setNpmRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Specific settings for a Python remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository python_repository = 5; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository|null - */ - public function getPythonRepository() - { - return $this->readOneof(5); - } - - public function hasPythonRepository() - { - return $this->hasOneof(5); - } - - /** - * Specific settings for a Python remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository python_repository = 5; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository $var - * @return $this - */ - public function setPythonRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Specific settings for an Apt remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository apt_repository = 6; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository|null - */ - public function getAptRepository() - { - return $this->readOneof(6); - } - - public function hasAptRepository() - { - return $this->hasOneof(6); - } - - /** - * Specific settings for an Apt remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository apt_repository = 6; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository $var - * @return $this - */ - public function setAptRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Specific settings for a Yum remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository yum_repository = 7; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository|null - */ - public function getYumRepository() - { - return $this->readOneof(7); - } - - public function hasYumRepository() - { - return $this->hasOneof(7); - } - - /** - * Specific settings for a Yum remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository yum_repository = 7; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository $var - * @return $this - */ - public function setYumRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Common remote repository settings. - * Used as the remote repository upstream URL. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\CommonRemoteRepository|null - */ - public function getCommonRepository() - { - return $this->readOneof(14); - } - - public function hasCommonRepository() - { - return $this->hasOneof(14); - } - - /** - * Common remote repository settings. - * Used as the remote repository upstream URL. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository common_repository = 14; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\CommonRemoteRepository $var - * @return $this - */ - public function setCommonRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\CommonRemoteRepository::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * The description of the remote source. - * - * Generated from protobuf field string description = 1; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the remote source. - * - * Generated from protobuf field string description = 1; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. The credentials used to access the remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials upstream_credentials = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials|null - */ - public function getUpstreamCredentials() - { - return $this->upstream_credentials; - } - - public function hasUpstreamCredentials() - { - return isset($this->upstream_credentials); - } - - public function clearUpstreamCredentials() - { - unset($this->upstream_credentials); - } - - /** - * Optional. The credentials used to access the remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials upstream_credentials = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials $var - * @return $this - */ - public function setUpstreamCredentials($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials::class); - $this->upstream_credentials = $var; - - return $this; - } - - /** - * Input only. A create/update remote repo option to avoid making a HEAD/GET - * request to validate a remote repo and any supplied upstream credentials. - * - * Generated from protobuf field bool disable_upstream_validation = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return bool - */ - public function getDisableUpstreamValidation() - { - return $this->disable_upstream_validation; - } - - /** - * Input only. A create/update remote repo option to avoid making a HEAD/GET - * request to validate a remote repo and any supplied upstream credentials. - * - * Generated from protobuf field bool disable_upstream_validation = 12 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setDisableUpstreamValidation($var) - { - GPBUtil::checkBool($var); - $this->disable_upstream_validation = $var; - - return $this; - } - - /** - * @return string - */ - public function getRemoteSource() - { - return $this->whichOneof("remote_source"); - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository.php deleted file mode 100644 index 49b66f7471e4..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository.php +++ /dev/null @@ -1,114 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository - */ -class AptRepository extends \Google\Protobuf\Internal\Message -{ - protected $upstream; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository\PublicRepository $public_repository - * One of the publicly available Apt repositories supported by Artifact - * Registry. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository\CustomRepository $custom_repository - * Customer-specified remote repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * One of the publicly available Apt repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository\PublicRepository|null - */ - public function getPublicRepository() - { - return $this->readOneof(1); - } - - public function hasPublicRepository() - { - return $this->hasOneof(1); - } - - /** - * One of the publicly available Apt repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository public_repository = 1; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository\PublicRepository $var - * @return $this - */ - public function setPublicRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository\PublicRepository::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository\CustomRepository|null - */ - public function getCustomRepository() - { - return $this->readOneof(3); - } - - public function hasCustomRepository() - { - return $this->hasOneof(3); - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository custom_repository = 3; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository\CustomRepository $var - * @return $this - */ - public function setCustomRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository\CustomRepository::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getUpstream() - { - return $this->whichOneof("upstream"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AptRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_AptRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/CustomRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/CustomRepository.php deleted file mode 100644 index 55889c35912f..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/CustomRepository.php +++ /dev/null @@ -1,74 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.CustomRepository - */ -class CustomRepository extends \Google\Protobuf\Internal\Message -{ - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.apt.registry/". - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.apt.registry/". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.apt.registry/". - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.apt.registry/". - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_AptRepository_CustomRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/PublicRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/PublicRepository.php deleted file mode 100644 index 11286b9e8ef8..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/PublicRepository.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository - */ -class PublicRepository extends \Google\Protobuf\Internal\Message -{ - /** - * A common public repository base for Apt. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - */ - protected $repository_base = 0; - /** - * A custom field to define a path to a specific repository from the base. - * - * Generated from protobuf field string repository_path = 2; - */ - protected $repository_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $repository_base - * A common public repository base for Apt. - * @type string $repository_path - * A custom field to define a path to a specific repository from the base. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * A common public repository base for Apt. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * @return int - */ - public function getRepositoryBase() - { - return $this->repository_base; - } - - /** - * A common public repository base for Apt. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase repository_base = 1; - * @param int $var - * @return $this - */ - public function setRepositoryBase($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\AptRepository\PublicRepository\RepositoryBase::class); - $this->repository_base = $var; - - return $this; - } - - /** - * A custom field to define a path to a specific repository from the base. - * - * Generated from protobuf field string repository_path = 2; - * @return string - */ - public function getRepositoryPath() - { - return $this->repository_path; - } - - /** - * A custom field to define a path to a specific repository from the base. - * - * Generated from protobuf field string repository_path = 2; - * @param string $var - * @return $this - */ - public function setRepositoryPath($var) - { - GPBUtil::checkString($var, True); - $this->repository_path = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublicRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_AptRepository_PublicRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/PublicRepository/RepositoryBase.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/PublicRepository/RepositoryBase.php deleted file mode 100644 index 2cad9739941f..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/AptRepository/PublicRepository/RepositoryBase.php +++ /dev/null @@ -1,71 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.AptRepository.PublicRepository.RepositoryBase - */ -class RepositoryBase -{ - /** - * Unspecified repository base. - * - * Generated from protobuf enum REPOSITORY_BASE_UNSPECIFIED = 0; - */ - const REPOSITORY_BASE_UNSPECIFIED = 0; - /** - * Debian. - * - * Generated from protobuf enum DEBIAN = 1; - */ - const DEBIAN = 1; - /** - * Ubuntu LTS/Pro. - * - * Generated from protobuf enum UBUNTU = 2; - */ - const UBUNTU = 2; - /** - * Archived Debian. - * - * Generated from protobuf enum DEBIAN_SNAPSHOT = 3; - */ - const DEBIAN_SNAPSHOT = 3; - - private static $valueToName = [ - self::REPOSITORY_BASE_UNSPECIFIED => 'REPOSITORY_BASE_UNSPECIFIED', - self::DEBIAN => 'DEBIAN', - self::UBUNTU => 'UBUNTU', - self::DEBIAN_SNAPSHOT => 'DEBIAN_SNAPSHOT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RepositoryBase::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_AptRepository_PublicRepository_RepositoryBase::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/CommonRemoteRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/CommonRemoteRepository.php deleted file mode 100644 index 02e36e187caa..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/CommonRemoteRepository.php +++ /dev/null @@ -1,70 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.CommonRemoteRepository - */ -class CommonRemoteRepository extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A common public repository base for remote repository. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Required. A common public repository base for remote repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Required. A common public repository base for remote repository. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Required. A common public repository base for remote repository. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CommonRemoteRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_CommonRemoteRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository.php deleted file mode 100644 index 7f8b4d286a5d..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository.php +++ /dev/null @@ -1,114 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository - */ -class DockerRepository extends \Google\Protobuf\Internal\Message -{ - protected $upstream; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $public_repository - * One of the publicly available Docker repositories supported by Artifact - * Registry. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository\CustomRepository $custom_repository - * Customer-specified remote repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * One of the publicly available Docker repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * @return int - */ - public function getPublicRepository() - { - return $this->readOneof(1); - } - - public function hasPublicRepository() - { - return $this->hasOneof(1); - } - - /** - * One of the publicly available Docker repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository public_repository = 1; - * @param int $var - * @return $this - */ - public function setPublicRepository($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository\PublicRepository::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository\CustomRepository|null - */ - public function getCustomRepository() - { - return $this->readOneof(3); - } - - public function hasCustomRepository() - { - return $this->hasOneof(3); - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository custom_repository = 3; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository\CustomRepository $var - * @return $this - */ - public function setCustomRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\DockerRepository\CustomRepository::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getUpstream() - { - return $this->whichOneof("upstream"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DockerRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_DockerRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository/CustomRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository/CustomRepository.php deleted file mode 100644 index 0057d4ffaa76..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository/CustomRepository.php +++ /dev/null @@ -1,74 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.CustomRepository - */ -class CustomRepository extends \Google\Protobuf\Internal\Message -{ - /** - * An http/https uri reference to the custom remote repository, for ex: - * "https://registry-1.docker.io". - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * An http/https uri reference to the custom remote repository, for ex: - * "https://registry-1.docker.io". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * An http/https uri reference to the custom remote repository, for ex: - * "https://registry-1.docker.io". - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * An http/https uri reference to the custom remote repository, for ex: - * "https://registry-1.docker.io". - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_DockerRepository_CustomRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository/PublicRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository/PublicRepository.php deleted file mode 100644 index 82a2deb86984..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/DockerRepository/PublicRepository.php +++ /dev/null @@ -1,58 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.DockerRepository.PublicRepository - */ -class PublicRepository -{ - /** - * Unspecified repository. - * - * Generated from protobuf enum PUBLIC_REPOSITORY_UNSPECIFIED = 0; - */ - const PUBLIC_REPOSITORY_UNSPECIFIED = 0; - /** - * Docker Hub. - * - * Generated from protobuf enum DOCKER_HUB = 1; - */ - const DOCKER_HUB = 1; - - private static $valueToName = [ - self::PUBLIC_REPOSITORY_UNSPECIFIED => 'PUBLIC_REPOSITORY_UNSPECIFIED', - self::DOCKER_HUB => 'DOCKER_HUB', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublicRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_DockerRepository_PublicRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository.php deleted file mode 100644 index 3f3cbbecaedf..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository.php +++ /dev/null @@ -1,114 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository - */ -class MavenRepository extends \Google\Protobuf\Internal\Message -{ - protected $upstream; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $public_repository - * One of the publicly available Maven repositories supported by Artifact - * Registry. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository\CustomRepository $custom_repository - * Customer-specified remote repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * One of the publicly available Maven repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; - * @return int - */ - public function getPublicRepository() - { - return $this->readOneof(1); - } - - public function hasPublicRepository() - { - return $this->hasOneof(1); - } - - /** - * One of the publicly available Maven repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository public_repository = 1; - * @param int $var - * @return $this - */ - public function setPublicRepository($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository\PublicRepository::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository\CustomRepository|null - */ - public function getCustomRepository() - { - return $this->readOneof(3); - } - - public function hasCustomRepository() - { - return $this->hasOneof(3); - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository custom_repository = 3; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository\CustomRepository $var - * @return $this - */ - public function setCustomRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\MavenRepository\CustomRepository::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getUpstream() - { - return $this->whichOneof("upstream"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MavenRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_MavenRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository/CustomRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository/CustomRepository.php deleted file mode 100644 index 4ef64b37c856..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository/CustomRepository.php +++ /dev/null @@ -1,74 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.CustomRepository - */ -class CustomRepository extends \Google\Protobuf\Internal\Message -{ - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.maven.registry/". - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.maven.registry/". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.maven.registry/". - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.maven.registry/". - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_MavenRepository_CustomRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository/PublicRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository/PublicRepository.php deleted file mode 100644 index 7756888aacf6..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/MavenRepository/PublicRepository.php +++ /dev/null @@ -1,58 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.MavenRepository.PublicRepository - */ -class PublicRepository -{ - /** - * Unspecified repository. - * - * Generated from protobuf enum PUBLIC_REPOSITORY_UNSPECIFIED = 0; - */ - const PUBLIC_REPOSITORY_UNSPECIFIED = 0; - /** - * Maven Central. - * - * Generated from protobuf enum MAVEN_CENTRAL = 1; - */ - const MAVEN_CENTRAL = 1; - - private static $valueToName = [ - self::PUBLIC_REPOSITORY_UNSPECIFIED => 'PUBLIC_REPOSITORY_UNSPECIFIED', - self::MAVEN_CENTRAL => 'MAVEN_CENTRAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublicRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_MavenRepository_PublicRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository.php deleted file mode 100644 index 54489d695b57..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository.php +++ /dev/null @@ -1,114 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository - */ -class NpmRepository extends \Google\Protobuf\Internal\Message -{ - protected $upstream; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $public_repository - * One of the publicly available Npm repositories supported by Artifact - * Registry. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository\CustomRepository $custom_repository - * Customer-specified remote repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * One of the publicly available Npm repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * @return int - */ - public function getPublicRepository() - { - return $this->readOneof(1); - } - - public function hasPublicRepository() - { - return $this->hasOneof(1); - } - - /** - * One of the publicly available Npm repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository public_repository = 1; - * @param int $var - * @return $this - */ - public function setPublicRepository($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository\PublicRepository::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository\CustomRepository|null - */ - public function getCustomRepository() - { - return $this->readOneof(3); - } - - public function hasCustomRepository() - { - return $this->hasOneof(3); - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository custom_repository = 3; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository\CustomRepository $var - * @return $this - */ - public function setCustomRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\NpmRepository\CustomRepository::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getUpstream() - { - return $this->whichOneof("upstream"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NpmRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_NpmRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository/CustomRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository/CustomRepository.php deleted file mode 100644 index 8dd687448fb7..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository/CustomRepository.php +++ /dev/null @@ -1,74 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.CustomRepository - */ -class CustomRepository extends \Google\Protobuf\Internal\Message -{ - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.npm.registry/". - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.npm.registry/". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.npm.registry/". - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.npm.registry/". - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_NpmRepository_CustomRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository/PublicRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository/PublicRepository.php deleted file mode 100644 index 35a37914d7d1..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/NpmRepository/PublicRepository.php +++ /dev/null @@ -1,57 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.NpmRepository.PublicRepository - */ -class PublicRepository -{ - /** - * Unspecified repository. - * - * Generated from protobuf enum PUBLIC_REPOSITORY_UNSPECIFIED = 0; - */ - const PUBLIC_REPOSITORY_UNSPECIFIED = 0; - /** - * npmjs. - * - * Generated from protobuf enum NPMJS = 1; - */ - const NPMJS = 1; - - private static $valueToName = [ - self::PUBLIC_REPOSITORY_UNSPECIFIED => 'PUBLIC_REPOSITORY_UNSPECIFIED', - self::NPMJS => 'NPMJS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublicRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_NpmRepository_PublicRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository.php deleted file mode 100644 index dc19e6baca67..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository.php +++ /dev/null @@ -1,114 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository - */ -class PythonRepository extends \Google\Protobuf\Internal\Message -{ - protected $upstream; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $public_repository - * One of the publicly available Python repositories supported by Artifact - * Registry. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository\CustomRepository $custom_repository - * Customer-specified remote repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * One of the publicly available Python repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; - * @return int - */ - public function getPublicRepository() - { - return $this->readOneof(1); - } - - public function hasPublicRepository() - { - return $this->hasOneof(1); - } - - /** - * One of the publicly available Python repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository public_repository = 1; - * @param int $var - * @return $this - */ - public function setPublicRepository($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository\PublicRepository::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository\CustomRepository|null - */ - public function getCustomRepository() - { - return $this->readOneof(3); - } - - public function hasCustomRepository() - { - return $this->hasOneof(3); - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository custom_repository = 3; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository\CustomRepository $var - * @return $this - */ - public function setCustomRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\PythonRepository\CustomRepository::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getUpstream() - { - return $this->whichOneof("upstream"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PythonRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_PythonRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository/CustomRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository/CustomRepository.php deleted file mode 100644 index 0fdb400eb342..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository/CustomRepository.php +++ /dev/null @@ -1,74 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.CustomRepository - */ -class CustomRepository extends \Google\Protobuf\Internal\Message -{ - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.python.registry/". - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.python.registry/". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.python.registry/". - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.python.registry/". - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_PythonRepository_CustomRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository/PublicRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository/PublicRepository.php deleted file mode 100644 index 1a20ffd2e141..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/PythonRepository/PublicRepository.php +++ /dev/null @@ -1,57 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.PythonRepository.PublicRepository - */ -class PublicRepository -{ - /** - * Unspecified repository. - * - * Generated from protobuf enum PUBLIC_REPOSITORY_UNSPECIFIED = 0; - */ - const PUBLIC_REPOSITORY_UNSPECIFIED = 0; - /** - * PyPI. - * - * Generated from protobuf enum PYPI = 1; - */ - const PYPI = 1; - - private static $valueToName = [ - self::PUBLIC_REPOSITORY_UNSPECIFIED => 'PUBLIC_REPOSITORY_UNSPECIFIED', - self::PYPI => 'PYPI', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublicRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_PythonRepository_PublicRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/UpstreamCredentials.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/UpstreamCredentials.php deleted file mode 100644 index f4b88b8352ad..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/UpstreamCredentials.php +++ /dev/null @@ -1,78 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials - */ -class UpstreamCredentials extends \Google\Protobuf\Internal\Message -{ - protected $credentials; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials\UsernamePasswordCredentials $username_password_credentials - * Use username and password to access the remote repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Use username and password to access the remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials username_password_credentials = 1; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials\UsernamePasswordCredentials|null - */ - public function getUsernamePasswordCredentials() - { - return $this->readOneof(1); - } - - public function hasUsernamePasswordCredentials() - { - return $this->hasOneof(1); - } - - /** - * Use username and password to access the remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials username_password_credentials = 1; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials\UsernamePasswordCredentials $var - * @return $this - */ - public function setUsernamePasswordCredentials($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\UpstreamCredentials\UsernamePasswordCredentials::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getCredentials() - { - return $this->whichOneof("credentials"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UpstreamCredentials::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_UpstreamCredentials::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/UpstreamCredentials/UsernamePasswordCredentials.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/UpstreamCredentials/UsernamePasswordCredentials.php deleted file mode 100644 index c9dfe9646202..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/UpstreamCredentials/UsernamePasswordCredentials.php +++ /dev/null @@ -1,112 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials - */ -class UsernamePasswordCredentials extends \Google\Protobuf\Internal\Message -{ - /** - * The username to access the remote repository. - * - * Generated from protobuf field string username = 1; - */ - protected $username = ''; - /** - * The Secret Manager key version that holds the password to access the - * remote repository. Must be in the format of - * `projects/{project}/secrets/{secret}/versions/{version}`. - * - * Generated from protobuf field string password_secret_version = 2 [(.google.api.resource_reference) = { - */ - protected $password_secret_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * The username to access the remote repository. - * @type string $password_secret_version - * The Secret Manager key version that holds the password to access the - * remote repository. Must be in the format of - * `projects/{project}/secrets/{secret}/versions/{version}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * The username to access the remote repository. - * - * Generated from protobuf field string username = 1; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * The username to access the remote repository. - * - * 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; - } - - /** - * The Secret Manager key version that holds the password to access the - * remote repository. Must be in the format of - * `projects/{project}/secrets/{secret}/versions/{version}`. - * - * Generated from protobuf field string password_secret_version = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getPasswordSecretVersion() - { - return $this->password_secret_version; - } - - /** - * The Secret Manager key version that holds the password to access the - * remote repository. Must be in the format of - * `projects/{project}/secrets/{secret}/versions/{version}`. - * - * Generated from protobuf field string password_secret_version = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setPasswordSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->password_secret_version = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UsernamePasswordCredentials::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_UpstreamCredentials_UsernamePasswordCredentials::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository.php deleted file mode 100644 index 8b22cf016dd2..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository.php +++ /dev/null @@ -1,114 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository - */ -class YumRepository extends \Google\Protobuf\Internal\Message -{ - protected $upstream; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\PublicRepository $public_repository - * One of the publicly available Yum repositories supported by Artifact - * Registry. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\CustomRepository $custom_repository - * Customer-specified remote repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * One of the publicly available Yum repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\PublicRepository|null - */ - public function getPublicRepository() - { - return $this->readOneof(1); - } - - public function hasPublicRepository() - { - return $this->hasOneof(1); - } - - /** - * One of the publicly available Yum repositories supported by Artifact - * Registry. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository public_repository = 1; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\PublicRepository $var - * @return $this - */ - public function setPublicRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\PublicRepository::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\CustomRepository|null - */ - public function getCustomRepository() - { - return $this->readOneof(3); - } - - public function hasCustomRepository() - { - return $this->hasOneof(3); - } - - /** - * Customer-specified remote repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository custom_repository = 3; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\CustomRepository $var - * @return $this - */ - public function setCustomRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\CustomRepository::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getUpstream() - { - return $this->whichOneof("upstream"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(YumRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_YumRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/CustomRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/CustomRepository.php deleted file mode 100644 index f85629fe4a97..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/CustomRepository.php +++ /dev/null @@ -1,74 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.CustomRepository - */ -class CustomRepository extends \Google\Protobuf\Internal\Message -{ - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.yum.registry/". - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.yum.registry/". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.yum.registry/". - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * An http/https uri reference to the upstream remote repository, for ex: - * "https://my.yum.registry/". - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_YumRepository_CustomRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/PublicRepository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/PublicRepository.php deleted file mode 100644 index 33bee2b99739..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/PublicRepository.php +++ /dev/null @@ -1,105 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository - */ -class PublicRepository extends \Google\Protobuf\Internal\Message -{ - /** - * A common public repository base for Yum. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - */ - protected $repository_base = 0; - /** - * A custom field to define a path to a specific repository from the base. - * - * Generated from protobuf field string repository_path = 2; - */ - protected $repository_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $repository_base - * A common public repository base for Yum. - * @type string $repository_path - * A custom field to define a path to a specific repository from the base. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * A common public repository base for Yum. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * @return int - */ - public function getRepositoryBase() - { - return $this->repository_base; - } - - /** - * A common public repository base for Yum. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase repository_base = 1; - * @param int $var - * @return $this - */ - public function setRepositoryBase($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig\YumRepository\PublicRepository\RepositoryBase::class); - $this->repository_base = $var; - - return $this; - } - - /** - * A custom field to define a path to a specific repository from the base. - * - * Generated from protobuf field string repository_path = 2; - * @return string - */ - public function getRepositoryPath() - { - return $this->repository_path; - } - - /** - * A custom field to define a path to a specific repository from the base. - * - * Generated from protobuf field string repository_path = 2; - * @param string $var - * @return $this - */ - public function setRepositoryPath($var) - { - GPBUtil::checkString($var, True); - $this->repository_path = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublicRepository::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_YumRepository_PublicRepository::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/PublicRepository/RepositoryBase.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/PublicRepository/RepositoryBase.php deleted file mode 100644 index 938be50a17f8..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/RemoteRepositoryConfig/YumRepository/PublicRepository/RepositoryBase.php +++ /dev/null @@ -1,92 +0,0 @@ -google.devtools.artifactregistry.v1.RemoteRepositoryConfig.YumRepository.PublicRepository.RepositoryBase - */ -class RepositoryBase -{ - /** - * Unspecified repository base. - * - * Generated from protobuf enum REPOSITORY_BASE_UNSPECIFIED = 0; - */ - const REPOSITORY_BASE_UNSPECIFIED = 0; - /** - * CentOS. - * - * Generated from protobuf enum CENTOS = 1; - */ - const CENTOS = 1; - /** - * CentOS Debug. - * - * Generated from protobuf enum CENTOS_DEBUG = 2; - */ - const CENTOS_DEBUG = 2; - /** - * CentOS Vault. - * - * Generated from protobuf enum CENTOS_VAULT = 3; - */ - const CENTOS_VAULT = 3; - /** - * CentOS Stream. - * - * Generated from protobuf enum CENTOS_STREAM = 4; - */ - const CENTOS_STREAM = 4; - /** - * Rocky. - * - * Generated from protobuf enum ROCKY = 5; - */ - const ROCKY = 5; - /** - * Fedora Extra Packages for Enterprise Linux (EPEL). - * - * Generated from protobuf enum EPEL = 6; - */ - const EPEL = 6; - - private static $valueToName = [ - self::REPOSITORY_BASE_UNSPECIFIED => 'REPOSITORY_BASE_UNSPECIFIED', - self::CENTOS => 'CENTOS', - self::CENTOS_DEBUG => 'CENTOS_DEBUG', - self::CENTOS_VAULT => 'CENTOS_VAULT', - self::CENTOS_STREAM => 'CENTOS_STREAM', - self::ROCKY => 'ROCKY', - self::EPEL => 'EPEL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RepositoryBase::class, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig_YumRepository_PublicRepository_RepositoryBase::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository.php deleted file mode 100644 index 89434412b4ea..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository.php +++ /dev/null @@ -1,797 +0,0 @@ -google.devtools.artifactregistry.v1.Repository - */ -class Repository extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the repository, for example: - * `projects/p1/locations/us-central1/repositories/repo1`. For each location - * in a project, repository names must be unique. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. The format of packages that are stored in the repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.Format format = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $format = 0; - /** - * The user-provided description of the repository. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Labels with user-defined metadata. - * This field may contain up to 64 entries. Label keys and values may be no - * longer than 63 characters. Label keys must begin with a lowercase letter - * and may only contain lowercase letters, numeric characters, underscores, - * and dashes. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Output only. The time when the repository was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the repository was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * The Cloud KMS resource name of the customer managed encryption key that's - * used to encrypt the contents of the Repository. Has the form: - * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. - * This value may not be changed after the Repository has been created. - * - * Generated from protobuf field string kms_key_name = 8; - */ - protected $kms_key_name = ''; - /** - * Optional. The mode of the repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $mode = 0; - /** - * Optional. Cleanup policies for this repository. Cleanup policies indicate - * when certain package versions can be automatically deleted. Map keys are - * policy IDs supplied by users during policy creation. They must unique - * within a repository and be under 128 characters in length. - * - * Generated from protobuf field map cleanup_policies = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $cleanup_policies; - /** - * Output only. The size, in bytes, of all artifact storage in this - * repository. Repositories that are generally available or in public preview - * use this to calculate storage costs. - * - * Generated from protobuf field int64 size_bytes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $size_bytes = 0; - /** - * Output only. If set, the repository satisfies physical zone separation. - * - * Generated from protobuf field bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = false; - /** - * Optional. If true, the cleanup pipeline is prevented from deleting versions - * in this repository. - * - * Generated from protobuf field bool cleanup_policy_dry_run = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $cleanup_policy_dry_run = false; - /** - * Optional. Config and state for vulnerability scanning of resources within - * this Repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $vulnerability_scanning_config = null; - /** - * Optional. If this is true, an unspecified repo type will be treated as - * error rather than defaulting to standard. - * - * Generated from protobuf field bool disallow_unspecified_mode = 21 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disallow_unspecified_mode = false; - /** - * Output only. If set, the repository satisfies physical zone isolation. - * - * Generated from protobuf field bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzi = false; - protected $format_config; - protected $mode_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\Repository\MavenRepositoryConfig $maven_config - * Maven repository config contains repository level configuration - * for the repositories of maven type. - * @type \Google\Cloud\ArtifactRegistry\V1\Repository\DockerRepositoryConfig $docker_config - * Docker repository config contains repository level configuration - * for the repositories of docker type. - * @type \Google\Cloud\ArtifactRegistry\V1\VirtualRepositoryConfig $virtual_repository_config - * Configuration specific for a Virtual Repository. - * @type \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig $remote_repository_config - * Configuration specific for a Remote Repository. - * @type string $name - * The name of the repository, for example: - * `projects/p1/locations/us-central1/repositories/repo1`. For each location - * in a project, repository names must be unique. - * @type int $format - * Optional. The format of packages that are stored in the repository. - * @type string $description - * The user-provided description of the repository. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels with user-defined metadata. - * This field may contain up to 64 entries. Label keys and values may be no - * longer than 63 characters. Label keys must begin with a lowercase letter - * and may only contain lowercase letters, numeric characters, underscores, - * and dashes. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the repository was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the repository was last updated. - * @type string $kms_key_name - * The Cloud KMS resource name of the customer managed encryption key that's - * used to encrypt the contents of the Repository. Has the form: - * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. - * This value may not be changed after the Repository has been created. - * @type int $mode - * Optional. The mode of the repository. - * @type array|\Google\Protobuf\Internal\MapField $cleanup_policies - * Optional. Cleanup policies for this repository. Cleanup policies indicate - * when certain package versions can be automatically deleted. Map keys are - * policy IDs supplied by users during policy creation. They must unique - * within a repository and be under 128 characters in length. - * @type int|string $size_bytes - * Output only. The size, in bytes, of all artifact storage in this - * repository. Repositories that are generally available or in public preview - * use this to calculate storage costs. - * @type bool $satisfies_pzs - * Output only. If set, the repository satisfies physical zone separation. - * @type bool $cleanup_policy_dry_run - * Optional. If true, the cleanup pipeline is prevented from deleting versions - * in this repository. - * @type \Google\Cloud\ArtifactRegistry\V1\Repository\VulnerabilityScanningConfig $vulnerability_scanning_config - * Optional. Config and state for vulnerability scanning of resources within - * this Repository. - * @type bool $disallow_unspecified_mode - * Optional. If this is true, an unspecified repo type will be treated as - * error rather than defaulting to standard. - * @type bool $satisfies_pzi - * Output only. If set, the repository satisfies physical zone isolation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Maven repository config contains repository level configuration - * for the repositories of maven type. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; - * @return \Google\Cloud\ArtifactRegistry\V1\Repository\MavenRepositoryConfig|null - */ - public function getMavenConfig() - { - return $this->readOneof(9); - } - - public function hasMavenConfig() - { - return $this->hasOneof(9); - } - - /** - * Maven repository config contains repository level configuration - * for the repositories of maven type. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig maven_config = 9; - * @param \Google\Cloud\ArtifactRegistry\V1\Repository\MavenRepositoryConfig $var - * @return $this - */ - public function setMavenConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Repository\MavenRepositoryConfig::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Docker repository config contains repository level configuration - * for the repositories of docker type. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17; - * @return \Google\Cloud\ArtifactRegistry\V1\Repository\DockerRepositoryConfig|null - */ - public function getDockerConfig() - { - return $this->readOneof(17); - } - - public function hasDockerConfig() - { - return $this->hasOneof(17); - } - - /** - * Docker repository config contains repository level configuration - * for the repositories of docker type. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig docker_config = 17; - * @param \Google\Cloud\ArtifactRegistry\V1\Repository\DockerRepositoryConfig $var - * @return $this - */ - public function setDockerConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Repository\DockerRepositoryConfig::class); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * Configuration specific for a Virtual Repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14; - * @return \Google\Cloud\ArtifactRegistry\V1\VirtualRepositoryConfig|null - */ - public function getVirtualRepositoryConfig() - { - return $this->readOneof(14); - } - - public function hasVirtualRepositoryConfig() - { - return $this->hasOneof(14); - } - - /** - * Configuration specific for a Virtual Repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VirtualRepositoryConfig virtual_repository_config = 14; - * @param \Google\Cloud\ArtifactRegistry\V1\VirtualRepositoryConfig $var - * @return $this - */ - public function setVirtualRepositoryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\VirtualRepositoryConfig::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Configuration specific for a Remote Repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15; - * @return \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig|null - */ - public function getRemoteRepositoryConfig() - { - return $this->readOneof(15); - } - - public function hasRemoteRepositoryConfig() - { - return $this->hasOneof(15); - } - - /** - * Configuration specific for a Remote Repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.RemoteRepositoryConfig remote_repository_config = 15; - * @param \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig $var - * @return $this - */ - public function setRemoteRepositoryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\RemoteRepositoryConfig::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * The name of the repository, for example: - * `projects/p1/locations/us-central1/repositories/repo1`. For each location - * in a project, repository names must be unique. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the repository, for example: - * `projects/p1/locations/us-central1/repositories/repo1`. For each location - * in a project, repository names must be unique. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. The format of packages that are stored in the repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.Format format = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getFormat() - { - return $this->format; - } - - /** - * Optional. The format of packages that are stored in the repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.Format format = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\Repository\Format::class); - $this->format = $var; - - return $this; - } - - /** - * The user-provided description of the repository. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The user-provided description of the repository. - * - * 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; - } - - /** - * Labels with user-defined metadata. - * This field may contain up to 64 entries. Label keys and values may be no - * longer than 63 characters. Label keys must begin with a lowercase letter - * and may only contain lowercase letters, numeric characters, underscores, - * and dashes. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels with user-defined metadata. - * This field may contain up to 64 entries. Label keys and values may be no - * longer than 63 characters. Label keys must begin with a lowercase letter - * and may only contain lowercase letters, numeric characters, underscores, - * and dashes. - * - * 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. The time when the repository was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the repository was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the repository was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the repository was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The Cloud KMS resource name of the customer managed encryption key that's - * used to encrypt the contents of the Repository. Has the form: - * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. - * This value may not be changed after the Repository has been created. - * - * Generated from protobuf field string kms_key_name = 8; - * @return string - */ - public function getKmsKeyName() - { - return $this->kms_key_name; - } - - /** - * The Cloud KMS resource name of the customer managed encryption key that's - * used to encrypt the contents of the Repository. Has the form: - * `projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key`. - * This value may not be changed after the Repository has been created. - * - * Generated from protobuf field string kms_key_name = 8; - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_name = $var; - - return $this; - } - - /** - * Optional. The mode of the repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * Optional. The mode of the repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.Mode mode = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\Repository\Mode::class); - $this->mode = $var; - - return $this; - } - - /** - * Optional. Cleanup policies for this repository. Cleanup policies indicate - * when certain package versions can be automatically deleted. Map keys are - * policy IDs supplied by users during policy creation. They must unique - * within a repository and be under 128 characters in length. - * - * Generated from protobuf field map cleanup_policies = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getCleanupPolicies() - { - return $this->cleanup_policies; - } - - /** - * Optional. Cleanup policies for this repository. Cleanup policies indicate - * when certain package versions can be automatically deleted. Map keys are - * policy IDs supplied by users during policy creation. They must unique - * within a repository and be under 128 characters in length. - * - * Generated from protobuf field map cleanup_policies = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setCleanupPolicies($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\CleanupPolicy::class); - $this->cleanup_policies = $arr; - - return $this; - } - - /** - * Output only. The size, in bytes, of all artifact storage in this - * repository. Repositories that are generally available or in public preview - * use this to calculate storage costs. - * - * Generated from protobuf field int64 size_bytes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int|string - */ - public function getSizeBytes() - { - return $this->size_bytes; - } - - /** - * Output only. The size, in bytes, of all artifact storage in this - * repository. Repositories that are generally available or in public preview - * use this to calculate storage costs. - * - * Generated from protobuf field int64 size_bytes = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int|string $var - * @return $this - */ - public function setSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->size_bytes = $var; - - return $this; - } - - /** - * Output only. If set, the repository satisfies physical zone separation. - * - * Generated from protobuf field bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzs() - { - return $this->satisfies_pzs; - } - - /** - * Output only. If set, the repository satisfies physical zone separation. - * - * Generated from protobuf field bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * Optional. If true, the cleanup pipeline is prevented from deleting versions - * in this repository. - * - * Generated from protobuf field bool cleanup_policy_dry_run = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getCleanupPolicyDryRun() - { - return $this->cleanup_policy_dry_run; - } - - /** - * Optional. If true, the cleanup pipeline is prevented from deleting versions - * in this repository. - * - * Generated from protobuf field bool cleanup_policy_dry_run = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setCleanupPolicyDryRun($var) - { - GPBUtil::checkBool($var); - $this->cleanup_policy_dry_run = $var; - - return $this; - } - - /** - * Optional. Config and state for vulnerability scanning of resources within - * this Repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ArtifactRegistry\V1\Repository\VulnerabilityScanningConfig|null - */ - public function getVulnerabilityScanningConfig() - { - return $this->vulnerability_scanning_config; - } - - public function hasVulnerabilityScanningConfig() - { - return isset($this->vulnerability_scanning_config); - } - - public function clearVulnerabilityScanningConfig() - { - unset($this->vulnerability_scanning_config); - } - - /** - * Optional. Config and state for vulnerability scanning of resources within - * this Repository. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig vulnerability_scanning_config = 19 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ArtifactRegistry\V1\Repository\VulnerabilityScanningConfig $var - * @return $this - */ - public function setVulnerabilityScanningConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Repository\VulnerabilityScanningConfig::class); - $this->vulnerability_scanning_config = $var; - - return $this; - } - - /** - * Optional. If this is true, an unspecified repo type will be treated as - * error rather than defaulting to standard. - * - * Generated from protobuf field bool disallow_unspecified_mode = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisallowUnspecifiedMode() - { - return $this->disallow_unspecified_mode; - } - - /** - * Optional. If this is true, an unspecified repo type will be treated as - * error rather than defaulting to standard. - * - * Generated from protobuf field bool disallow_unspecified_mode = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisallowUnspecifiedMode($var) - { - GPBUtil::checkBool($var); - $this->disallow_unspecified_mode = $var; - - return $this; - } - - /** - * Output only. If set, the repository satisfies physical zone isolation. - * - * Generated from protobuf field bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzi() - { - return $this->satisfies_pzi; - } - - /** - * Output only. If set, the repository satisfies physical zone isolation. - * - * Generated from protobuf field bool satisfies_pzi = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzi($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzi = $var; - - return $this; - } - - /** - * @return string - */ - public function getFormatConfig() - { - return $this->whichOneof("format_config"); - } - - /** - * @return string - */ - public function getModeConfig() - { - return $this->whichOneof("mode_config"); - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/DockerRepositoryConfig.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/DockerRepositoryConfig.php deleted file mode 100644 index 4293a8c0f20d..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/DockerRepositoryConfig.php +++ /dev/null @@ -1,80 +0,0 @@ -google.devtools.artifactregistry.v1.Repository.DockerRepositoryConfig - */ -class DockerRepositoryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The repository which enabled this flag prevents all tags from being - * modified, moved or deleted. This does not prevent tags from being - * created. - * - * Generated from protobuf field bool immutable_tags = 1; - */ - protected $immutable_tags = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $immutable_tags - * The repository which enabled this flag prevents all tags from being - * modified, moved or deleted. This does not prevent tags from being - * created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * The repository which enabled this flag prevents all tags from being - * modified, moved or deleted. This does not prevent tags from being - * created. - * - * Generated from protobuf field bool immutable_tags = 1; - * @return bool - */ - public function getImmutableTags() - { - return $this->immutable_tags; - } - - /** - * The repository which enabled this flag prevents all tags from being - * modified, moved or deleted. This does not prevent tags from being - * created. - * - * Generated from protobuf field bool immutable_tags = 1; - * @param bool $var - * @return $this - */ - public function setImmutableTags($var) - { - GPBUtil::checkBool($var); - $this->immutable_tags = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DockerRepositoryConfig::class, \Google\Cloud\ArtifactRegistry\V1\Repository_DockerRepositoryConfig::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/Format.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/Format.php deleted file mode 100644 index 68a108538596..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/Format.php +++ /dev/null @@ -1,113 +0,0 @@ -google.devtools.artifactregistry.v1.Repository.Format - */ -class Format -{ - /** - * Unspecified package format. - * - * Generated from protobuf enum FORMAT_UNSPECIFIED = 0; - */ - const FORMAT_UNSPECIFIED = 0; - /** - * Docker package format. - * - * Generated from protobuf enum DOCKER = 1; - */ - const DOCKER = 1; - /** - * Maven package format. - * - * Generated from protobuf enum MAVEN = 2; - */ - const MAVEN = 2; - /** - * NPM package format. - * - * Generated from protobuf enum NPM = 3; - */ - const NPM = 3; - /** - * APT package format. - * - * Generated from protobuf enum APT = 5; - */ - const APT = 5; - /** - * YUM package format. - * - * Generated from protobuf enum YUM = 6; - */ - const YUM = 6; - /** - * Python package format. - * - * Generated from protobuf enum PYTHON = 8; - */ - const PYTHON = 8; - /** - * Kubeflow Pipelines package format. - * - * Generated from protobuf enum KFP = 9; - */ - const KFP = 9; - /** - * Go package format. - * - * Generated from protobuf enum GO = 10; - */ - const GO = 10; - /** - * Generic package format. - * - * Generated from protobuf enum GENERIC = 11; - */ - const GENERIC = 11; - - private static $valueToName = [ - self::FORMAT_UNSPECIFIED => 'FORMAT_UNSPECIFIED', - self::DOCKER => 'DOCKER', - self::MAVEN => 'MAVEN', - self::NPM => 'NPM', - self::APT => 'APT', - self::YUM => 'YUM', - self::PYTHON => 'PYTHON', - self::KFP => 'KFP', - self::GO => 'GO', - self::GENERIC => 'GENERIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Format::class, \Google\Cloud\ArtifactRegistry\V1\Repository_Format::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/MavenRepositoryConfig.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/MavenRepositoryConfig.php deleted file mode 100644 index 01dd9db47739..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/MavenRepositoryConfig.php +++ /dev/null @@ -1,110 +0,0 @@ -google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig - */ -class MavenRepositoryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The repository with this flag will allow publishing - * the same snapshot versions. - * - * Generated from protobuf field bool allow_snapshot_overwrites = 1; - */ - protected $allow_snapshot_overwrites = false; - /** - * Version policy defines the versions that the registry will accept. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2; - */ - protected $version_policy = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $allow_snapshot_overwrites - * The repository with this flag will allow publishing - * the same snapshot versions. - * @type int $version_policy - * Version policy defines the versions that the registry will accept. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * The repository with this flag will allow publishing - * the same snapshot versions. - * - * Generated from protobuf field bool allow_snapshot_overwrites = 1; - * @return bool - */ - public function getAllowSnapshotOverwrites() - { - return $this->allow_snapshot_overwrites; - } - - /** - * The repository with this flag will allow publishing - * the same snapshot versions. - * - * Generated from protobuf field bool allow_snapshot_overwrites = 1; - * @param bool $var - * @return $this - */ - public function setAllowSnapshotOverwrites($var) - { - GPBUtil::checkBool($var); - $this->allow_snapshot_overwrites = $var; - - return $this; - } - - /** - * Version policy defines the versions that the registry will accept. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2; - * @return int - */ - public function getVersionPolicy() - { - return $this->version_policy; - } - - /** - * Version policy defines the versions that the registry will accept. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2; - * @param int $var - * @return $this - */ - public function setVersionPolicy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\Repository\MavenRepositoryConfig\VersionPolicy::class); - $this->version_policy = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MavenRepositoryConfig::class, \Google\Cloud\ArtifactRegistry\V1\Repository_MavenRepositoryConfig::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/MavenRepositoryConfig/VersionPolicy.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/MavenRepositoryConfig/VersionPolicy.php deleted file mode 100644 index f31177cd8212..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/MavenRepositoryConfig/VersionPolicy.php +++ /dev/null @@ -1,66 +0,0 @@ -google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy - */ -class VersionPolicy -{ - /** - * VERSION_POLICY_UNSPECIFIED - the version policy is not defined. - * When the version policy is not defined, no validation is performed - * for the versions. - * - * Generated from protobuf enum VERSION_POLICY_UNSPECIFIED = 0; - */ - const VERSION_POLICY_UNSPECIFIED = 0; - /** - * RELEASE - repository will accept only Release versions. - * - * Generated from protobuf enum RELEASE = 1; - */ - const RELEASE = 1; - /** - * SNAPSHOT - repository will accept only Snapshot versions. - * - * Generated from protobuf enum SNAPSHOT = 2; - */ - const SNAPSHOT = 2; - - private static $valueToName = [ - self::VERSION_POLICY_UNSPECIFIED => 'VERSION_POLICY_UNSPECIFIED', - self::RELEASE => 'RELEASE', - self::SNAPSHOT => 'SNAPSHOT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VersionPolicy::class, \Google\Cloud\ArtifactRegistry\V1\Repository_MavenRepositoryConfig_VersionPolicy::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/Mode.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/Mode.php deleted file mode 100644 index b4830a8974a9..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/Mode.php +++ /dev/null @@ -1,72 +0,0 @@ -google.devtools.artifactregistry.v1.Repository.Mode - */ -class Mode -{ - /** - * Unspecified mode. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * A standard repository storing artifacts. - * - * Generated from protobuf enum STANDARD_REPOSITORY = 1; - */ - const STANDARD_REPOSITORY = 1; - /** - * A virtual repository to serve artifacts from one or more sources. - * - * Generated from protobuf enum VIRTUAL_REPOSITORY = 2; - */ - const VIRTUAL_REPOSITORY = 2; - /** - * A remote repository to serve artifacts from a remote source. - * - * Generated from protobuf enum REMOTE_REPOSITORY = 3; - */ - const REMOTE_REPOSITORY = 3; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::STANDARD_REPOSITORY => 'STANDARD_REPOSITORY', - self::VIRTUAL_REPOSITORY => 'VIRTUAL_REPOSITORY', - self::REMOTE_REPOSITORY => 'REMOTE_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(Mode::class, \Google\Cloud\ArtifactRegistry\V1\Repository_Mode::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig.php deleted file mode 100644 index 6098fae64203..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig.php +++ /dev/null @@ -1,191 +0,0 @@ -google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig - */ -class VulnerabilityScanningConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Config for whether this repository has vulnerability scanning - * disabled. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enablement_config = 0; - /** - * Output only. The last time this repository config was enabled. - * - * Generated from protobuf field .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_enable_time = null; - /** - * Output only. State of feature enablement, combining repository enablement - * config and API enablement state. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $enablement_state = 0; - /** - * Output only. Reason for the repository state. - * - * Generated from protobuf field string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $enablement_state_reason = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $enablement_config - * Optional. Config for whether this repository has vulnerability scanning - * disabled. - * @type \Google\Protobuf\Timestamp $last_enable_time - * Output only. The last time this repository config was enabled. - * @type int $enablement_state - * Output only. State of feature enablement, combining repository enablement - * config and API enablement state. - * @type string $enablement_state_reason - * Output only. Reason for the repository state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Config for whether this repository has vulnerability scanning - * disabled. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getEnablementConfig() - { - return $this->enablement_config; - } - - /** - * Optional. Config for whether this repository has vulnerability scanning - * disabled. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig enablement_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setEnablementConfig($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\Repository\VulnerabilityScanningConfig\EnablementConfig::class); - $this->enablement_config = $var; - - return $this; - } - - /** - * Output only. The last time this repository config was enabled. - * - * Generated from protobuf field .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastEnableTime() - { - return $this->last_enable_time; - } - - public function hasLastEnableTime() - { - return isset($this->last_enable_time); - } - - public function clearLastEnableTime() - { - unset($this->last_enable_time); - } - - /** - * Output only. The last time this repository config was enabled. - * - * Generated from protobuf field .google.protobuf.Timestamp last_enable_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastEnableTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_enable_time = $var; - - return $this; - } - - /** - * Output only. State of feature enablement, combining repository enablement - * config and API enablement state. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEnablementState() - { - return $this->enablement_state; - } - - /** - * Output only. State of feature enablement, combining repository enablement - * config and API enablement state. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState enablement_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEnablementState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\Repository\VulnerabilityScanningConfig\EnablementState::class); - $this->enablement_state = $var; - - return $this; - } - - /** - * Output only. Reason for the repository state. - * - * Generated from protobuf field string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEnablementStateReason() - { - return $this->enablement_state_reason; - } - - /** - * Output only. Reason for the repository state. - * - * Generated from protobuf field string enablement_state_reason = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEnablementStateReason($var) - { - GPBUtil::checkString($var, True); - $this->enablement_state_reason = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VulnerabilityScanningConfig::class, \Google\Cloud\ArtifactRegistry\V1\Repository_VulnerabilityScanningConfig::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig/EnablementConfig.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig/EnablementConfig.php deleted file mode 100644 index 63a848dcd39a..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig/EnablementConfig.php +++ /dev/null @@ -1,65 +0,0 @@ -google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementConfig - */ -class EnablementConfig -{ - /** - * Not set. This will be treated as INHERITED. - * - * Generated from protobuf enum ENABLEMENT_CONFIG_UNSPECIFIED = 0; - */ - const ENABLEMENT_CONFIG_UNSPECIFIED = 0; - /** - * Scanning is Enabled, but dependent on API enablement. - * - * Generated from protobuf enum INHERITED = 1; - */ - const INHERITED = 1; - /** - * No automatic vulnerability scanning will be performed for this - * repository. - * - * Generated from protobuf enum DISABLED = 2; - */ - const DISABLED = 2; - - private static $valueToName = [ - self::ENABLEMENT_CONFIG_UNSPECIFIED => 'ENABLEMENT_CONFIG_UNSPECIFIED', - self::INHERITED => 'INHERITED', - 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(EnablementConfig::class, \Google\Cloud\ArtifactRegistry\V1\Repository_VulnerabilityScanningConfig_EnablementConfig::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig/EnablementState.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig/EnablementState.php deleted file mode 100644 index a1b15750a3d6..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Repository/VulnerabilityScanningConfig/EnablementState.php +++ /dev/null @@ -1,72 +0,0 @@ -google.devtools.artifactregistry.v1.Repository.VulnerabilityScanningConfig.EnablementState - */ -class EnablementState -{ - /** - * Enablement state is unclear. - * - * Generated from protobuf enum ENABLEMENT_STATE_UNSPECIFIED = 0; - */ - const ENABLEMENT_STATE_UNSPECIFIED = 0; - /** - * Repository does not support vulnerability scanning. - * - * Generated from protobuf enum SCANNING_UNSUPPORTED = 1; - */ - const SCANNING_UNSUPPORTED = 1; - /** - * Vulnerability scanning is disabled for this repository. - * - * Generated from protobuf enum SCANNING_DISABLED = 2; - */ - const SCANNING_DISABLED = 2; - /** - * Vulnerability scanning is active for this repository. - * - * Generated from protobuf enum SCANNING_ACTIVE = 3; - */ - const SCANNING_ACTIVE = 3; - - private static $valueToName = [ - self::ENABLEMENT_STATE_UNSPECIFIED => 'ENABLEMENT_STATE_UNSPECIFIED', - self::SCANNING_UNSUPPORTED => 'SCANNING_UNSUPPORTED', - self::SCANNING_DISABLED => 'SCANNING_DISABLED', - self::SCANNING_ACTIVE => 'SCANNING_ACTIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EnablementState::class, \Google\Cloud\ArtifactRegistry\V1\Repository_VulnerabilityScanningConfig_EnablementState::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule.php deleted file mode 100644 index 6268ad14e9a5..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule.php +++ /dev/null @@ -1,220 +0,0 @@ -google.devtools.artifactregistry.v1.Rule - */ -class Rule extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the rule, for example: - * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The action this rule takes. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule.Action action = 2; - */ - protected $action = 0; - /** - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; - */ - protected $operation = 0; - /** - * Optional. A CEL expression for conditions that must be met in order for the - * rule to apply. If not provided, the rule matches all objects. - * - * Generated from protobuf field .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $condition = null; - /** - * The package ID the rule applies to. - * If empty, this rule applies to all packages inside the repository. - * - * Generated from protobuf field string package_id = 5; - */ - protected $package_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the rule, for example: - * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`. - * @type int $action - * The action this rule takes. - * @type int $operation - * @type \Google\Type\Expr $condition - * Optional. A CEL expression for conditions that must be met in order for the - * rule to apply. If not provided, the rule matches all objects. - * @type string $package_id - * The package ID the rule applies to. - * If empty, this rule applies to all packages inside the repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The name of the rule, for example: - * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the rule, for example: - * `projects/p1/locations/us-central1/repositories/repo1/rules/rule1`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The action this rule takes. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule.Action action = 2; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * The action this rule takes. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule.Action action = 2; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\Rule\Action::class); - $this->action = $var; - - return $this; - } - - /** - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; - * @return int - */ - public function getOperation() - { - return $this->operation; - } - - /** - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule.Operation operation = 3; - * @param int $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\Rule\Operation::class); - $this->operation = $var; - - return $this; - } - - /** - * Optional. A CEL expression for conditions that must be met in order for the - * rule to apply. If not provided, the rule matches all objects. - * - * Generated from protobuf field .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Type\Expr|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * Optional. A CEL expression for conditions that must be met in order for the - * rule to apply. If not provided, the rule matches all objects. - * - * Generated from protobuf field .google.type.Expr condition = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Type\Expr $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Type\Expr::class); - $this->condition = $var; - - return $this; - } - - /** - * The package ID the rule applies to. - * If empty, this rule applies to all packages inside the repository. - * - * Generated from protobuf field string package_id = 5; - * @return string - */ - public function getPackageId() - { - return $this->package_id; - } - - /** - * The package ID the rule applies to. - * If empty, this rule applies to all packages inside the repository. - * - * Generated from protobuf field string package_id = 5; - * @param string $var - * @return $this - */ - public function setPackageId($var) - { - GPBUtil::checkString($var, True); - $this->package_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule/Action.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule/Action.php deleted file mode 100644 index 43860ec9a4ca..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule/Action.php +++ /dev/null @@ -1,64 +0,0 @@ -google.devtools.artifactregistry.v1.Rule.Action - */ -class Action -{ - /** - * Action not specified. - * - * Generated from protobuf enum ACTION_UNSPECIFIED = 0; - */ - const ACTION_UNSPECIFIED = 0; - /** - * Allow the operation. - * - * Generated from protobuf enum ALLOW = 1; - */ - const ALLOW = 1; - /** - * Deny the operation. - * - * Generated from protobuf enum DENY = 2; - */ - const DENY = 2; - - private static $valueToName = [ - self::ACTION_UNSPECIFIED => 'ACTION_UNSPECIFIED', - self::ALLOW => 'ALLOW', - self::DENY => 'DENY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Action::class, \Google\Cloud\ArtifactRegistry\V1\Rule_Action::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule/Operation.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule/Operation.php deleted file mode 100644 index f4a91979ab10..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Rule/Operation.php +++ /dev/null @@ -1,57 +0,0 @@ -google.devtools.artifactregistry.v1.Rule.Operation - */ -class Operation -{ - /** - * Operation not specified. - * - * Generated from protobuf enum OPERATION_UNSPECIFIED = 0; - */ - const OPERATION_UNSPECIFIED = 0; - /** - * Download operation. - * - * Generated from protobuf enum DOWNLOAD = 1; - */ - const DOWNLOAD = 1; - - private static $valueToName = [ - self::OPERATION_UNSPECIFIED => 'OPERATION_UNSPECIFIED', - self::DOWNLOAD => 'DOWNLOAD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operation::class, \Google\Cloud\ArtifactRegistry\V1\Rule_Operation::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Tag.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Tag.php deleted file mode 100644 index 88d671f343ff..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Tag.php +++ /dev/null @@ -1,130 +0,0 @@ -google.devtools.artifactregistry.v1.Tag - */ -class Tag extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the tag, for example: - * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". - * If the package part contains slashes, the slashes are escaped. - * The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else - * must be URL encoded. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The name of the version the tag refers to, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` - * If the package or version ID parts contain slashes, the slashes are - * escaped. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the tag, for example: - * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". - * If the package part contains slashes, the slashes are escaped. - * The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else - * must be URL encoded. - * @type string $version - * The name of the version the tag refers to, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` - * If the package or version ID parts contain slashes, the slashes are - * escaped. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Tag::initOnce(); - parent::__construct($data); - } - - /** - * The name of the tag, for example: - * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". - * If the package part contains slashes, the slashes are escaped. - * The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else - * must be URL encoded. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the tag, for example: - * "projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/tags/tag1". - * If the package part contains slashes, the slashes are escaped. - * The tag part can only have characters in [a-zA-Z0-9\-._~:@], anything else - * must be URL encoded. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The name of the version the tag refers to, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` - * If the package or version ID parts contain slashes, the slashes are - * escaped. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The name of the version the tag refers to, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/sha256:5243811` - * If the package or version ID parts contain slashes, the slashes are - * escaped. - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateFileRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateFileRequest.php deleted file mode 100644 index 8158ac1dd758..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateFileRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.devtools.artifactregistry.v1.UpdateFileRequest - */ -class UpdateFileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The File that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $file = null; - /** - * Required. The update mask applies to the resource. For the `FieldMask` - * definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ArtifactRegistry\V1\File $file Required. The File that replaces the resource on the server. - * @param \Google\Protobuf\FieldMask $updateMask Required. The update mask applies to the resource. For the `FieldMask` - * definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * @return \Google\Cloud\ArtifactRegistry\V1\UpdateFileRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ArtifactRegistry\V1\File $file, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setFile($file) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\File $file - * Required. The File that replaces the resource on the server. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The update mask applies to the resource. For the `FieldMask` - * definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\File::initOnce(); - parent::__construct($data); - } - - /** - * Required. The File that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ArtifactRegistry\V1\File|null - */ - public function getFile() - { - return $this->file; - } - - public function hasFile() - { - return isset($this->file); - } - - public function clearFile() - { - unset($this->file); - } - - /** - * Required. The File that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.File file = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ArtifactRegistry\V1\File $var - * @return $this - */ - public function setFile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\File::class); - $this->file = $var; - - return $this; - } - - /** - * Required. The update mask applies to the resource. For the `FieldMask` - * definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The update mask applies to the resource. For the `FieldMask` - * definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdatePackageRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdatePackageRequest.php deleted file mode 100644 index 253ac00c595b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdatePackageRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.devtools.artifactregistry.v1.UpdatePackageRequest - */ -class UpdatePackageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The package that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Package package = 1; - */ - protected $package = null; - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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\ArtifactRegistry\V1\Package $package The package that replaces the resource on the server. - * @param \Google\Protobuf\FieldMask $updateMask The update mask applies to the resource. For the `FieldMask` definition, - * see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * @return \Google\Cloud\ArtifactRegistry\V1\UpdatePackageRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ArtifactRegistry\V1\Package $package, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setPackage($package) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\Package $package - * The package that replaces the resource on the server. - * @type \Google\Protobuf\FieldMask $update_mask - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Package::initOnce(); - parent::__construct($data); - } - - /** - * The package that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Package package = 1; - * @return \Google\Cloud\ArtifactRegistry\V1\Package|null - */ - public function getPackage() - { - return $this->package; - } - - public function hasPackage() - { - return isset($this->package); - } - - public function clearPackage() - { - unset($this->package); - } - - /** - * The package that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Package package = 1; - * @param \Google\Cloud\ArtifactRegistry\V1\Package $var - * @return $this - */ - public function setPackage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Package::class); - $this->package = $var; - - return $this; - } - - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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); - } - - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateProjectSettingsRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateProjectSettingsRequest.php deleted file mode 100644 index 77413896bc4a..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateProjectSettingsRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.devtools.artifactregistry.v1.UpdateProjectSettingsRequest - */ -class UpdateProjectSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The project settings. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ProjectSettings project_settings = 2; - */ - protected $project_settings = null; - /** - * Field mask to support partial updates. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ArtifactRegistry\V1\ProjectSettings $projectSettings The project settings. - * @param \Google\Protobuf\FieldMask $updateMask Field mask to support partial updates. - * - * @return \Google\Cloud\ArtifactRegistry\V1\UpdateProjectSettingsRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ArtifactRegistry\V1\ProjectSettings $projectSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setProjectSettings($projectSettings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\ProjectSettings $project_settings - * The project settings. - * @type \Google\Protobuf\FieldMask $update_mask - * Field mask to support partial updates. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Settings::initOnce(); - parent::__construct($data); - } - - /** - * The project settings. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ProjectSettings project_settings = 2; - * @return \Google\Cloud\ArtifactRegistry\V1\ProjectSettings|null - */ - public function getProjectSettings() - { - return $this->project_settings; - } - - public function hasProjectSettings() - { - return isset($this->project_settings); - } - - public function clearProjectSettings() - { - unset($this->project_settings); - } - - /** - * The project settings. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.ProjectSettings project_settings = 2; - * @param \Google\Cloud\ArtifactRegistry\V1\ProjectSettings $var - * @return $this - */ - public function setProjectSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\ProjectSettings::class); - $this->project_settings = $var; - - return $this; - } - - /** - * Field mask to support partial updates. - * - * 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); - } - - /** - * Field mask to support partial updates. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateRepositoryRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateRepositoryRequest.php deleted file mode 100644 index c0156c13d4c5..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateRepositoryRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.devtools.artifactregistry.v1.UpdateRepositoryRequest - */ -class UpdateRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The repository that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository repository = 1; - */ - protected $repository = null; - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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\ArtifactRegistry\V1\Repository $repository The repository that replaces the resource on the server. - * @param \Google\Protobuf\FieldMask $updateMask The update mask applies to the resource. For the `FieldMask` definition, - * see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * @return \Google\Cloud\ArtifactRegistry\V1\UpdateRepositoryRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ArtifactRegistry\V1\Repository $repository, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRepository($repository) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\Repository $repository - * The repository that replaces the resource on the server. - * @type \Google\Protobuf\FieldMask $update_mask - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * The repository that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository repository = 1; - * @return \Google\Cloud\ArtifactRegistry\V1\Repository|null - */ - public function getRepository() - { - return $this->repository; - } - - public function hasRepository() - { - return isset($this->repository); - } - - public function clearRepository() - { - unset($this->repository); - } - - /** - * The repository that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Repository repository = 1; - * @param \Google\Cloud\ArtifactRegistry\V1\Repository $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Repository::class); - $this->repository = $var; - - return $this; - } - - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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); - } - - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateRuleRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateRuleRequest.php deleted file mode 100644 index 52743d36ad42..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateRuleRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.devtools.artifactregistry.v1.UpdateRuleRequest - */ -class UpdateRuleRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The rule that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule rule = 1; - */ - protected $rule = null; - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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\ArtifactRegistry\V1\Rule $rule The rule that replaces the resource on the server. - * @param \Google\Protobuf\FieldMask $updateMask The update mask applies to the resource. For the `FieldMask` definition, - * see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * @return \Google\Cloud\ArtifactRegistry\V1\UpdateRuleRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ArtifactRegistry\V1\Rule $rule, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRule($rule) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\Rule $rule - * The rule that replaces the resource on the server. - * @type \Google\Protobuf\FieldMask $update_mask - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Rule::initOnce(); - parent::__construct($data); - } - - /** - * The rule that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule rule = 1; - * @return \Google\Cloud\ArtifactRegistry\V1\Rule|null - */ - public function getRule() - { - return $this->rule; - } - - public function hasRule() - { - return isset($this->rule); - } - - public function clearRule() - { - unset($this->rule); - } - - /** - * The rule that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Rule rule = 1; - * @param \Google\Cloud\ArtifactRegistry\V1\Rule $var - * @return $this - */ - public function setRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Rule::class); - $this->rule = $var; - - return $this; - } - - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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); - } - - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateTagRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateTagRequest.php deleted file mode 100644 index d9315b739945..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateTagRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.devtools.artifactregistry.v1.UpdateTagRequest - */ -class UpdateTagRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The tag that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Tag tag = 1; - */ - protected $tag = null; - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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\ArtifactRegistry\V1\Tag $tag The tag that replaces the resource on the server. - * @param \Google\Protobuf\FieldMask $updateMask The update mask applies to the resource. For the `FieldMask` definition, - * see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * @return \Google\Cloud\ArtifactRegistry\V1\UpdateTagRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ArtifactRegistry\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\ArtifactRegistry\V1\Tag $tag - * The tag that replaces the resource on the server. - * @type \Google\Protobuf\FieldMask $update_mask - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Tag::initOnce(); - parent::__construct($data); - } - - /** - * The tag that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Tag tag = 1; - * @return \Google\Cloud\ArtifactRegistry\V1\Tag|null - */ - public function getTag() - { - return $this->tag; - } - - public function hasTag() - { - return isset($this->tag); - } - - public function clearTag() - { - unset($this->tag); - } - - /** - * The tag that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Tag tag = 1; - * @param \Google\Cloud\ArtifactRegistry\V1\Tag $var - * @return $this - */ - public function setTag($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Tag::class); - $this->tag = $var; - - return $this; - } - - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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); - } - - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateVPCSCConfigRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateVPCSCConfigRequest.php deleted file mode 100644 index bce2a364212f..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateVPCSCConfigRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.devtools.artifactregistry.v1.UpdateVPCSCConfigRequest - */ -class UpdateVPCSCConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The project config. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VPCSCConfig vpcsc_config = 1; - */ - protected $vpcsc_config = null; - /** - * Field mask to support partial updates. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\ArtifactRegistry\V1\VPCSCConfig $vpcscConfig The project config. - * @param \Google\Protobuf\FieldMask $updateMask Field mask to support partial updates. - * - * @return \Google\Cloud\ArtifactRegistry\V1\UpdateVPCSCConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ArtifactRegistry\V1\VPCSCConfig $vpcscConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setVpcscConfig($vpcscConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\VPCSCConfig $vpcsc_config - * The project config. - * @type \Google\Protobuf\FieldMask $update_mask - * Field mask to support partial updates. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\VpcscConfig::initOnce(); - parent::__construct($data); - } - - /** - * The project config. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VPCSCConfig vpcsc_config = 1; - * @return \Google\Cloud\ArtifactRegistry\V1\VPCSCConfig|null - */ - public function getVpcscConfig() - { - return $this->vpcsc_config; - } - - public function hasVpcscConfig() - { - return isset($this->vpcsc_config); - } - - public function clearVpcscConfig() - { - unset($this->vpcsc_config); - } - - /** - * The project config. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VPCSCConfig vpcsc_config = 1; - * @param \Google\Cloud\ArtifactRegistry\V1\VPCSCConfig $var - * @return $this - */ - public function setVpcscConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\VPCSCConfig::class); - $this->vpcsc_config = $var; - - return $this; - } - - /** - * Field mask to support partial updates. - * - * 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 to support partial updates. - * - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateVersionRequest.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateVersionRequest.php deleted file mode 100644 index dc65a3000f55..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpdateVersionRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.devtools.artifactregistry.v1.UpdateVersionRequest - */ -class UpdateVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Version that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $version = null; - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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\ArtifactRegistry\V1\Version $version Required. The Version that replaces the resource on the server. - * @param \Google\Protobuf\FieldMask $updateMask The update mask applies to the resource. For the `FieldMask` definition, - * see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * @return \Google\Cloud\ArtifactRegistry\V1\UpdateVersionRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ArtifactRegistry\V1\Version $version, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setVersion($version) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ArtifactRegistry\V1\Version $version - * Required. The Version that replaces the resource on the server. - * @type \Google\Protobuf\FieldMask $update_mask - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Version that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ArtifactRegistry\V1\Version|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * Required. The Version that replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.Version version = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ArtifactRegistry\V1\Version $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ArtifactRegistry\V1\Version::class); - $this->version = $var; - - return $this; - } - - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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); - } - - /** - * The update mask applies to the resource. For the `FieldMask` definition, - * see - * 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/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpstreamPolicy.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpstreamPolicy.php deleted file mode 100644 index 909b306d0796..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/UpstreamPolicy.php +++ /dev/null @@ -1,139 +0,0 @@ -google.devtools.artifactregistry.v1.UpstreamPolicy - */ -class UpstreamPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * The user-provided ID of the upstream policy. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * A reference to the repository resource, for example: - * `projects/p1/locations/us-central1/repositories/repo1`. - * - * Generated from protobuf field string repository = 2 [(.google.api.resource_reference) = { - */ - protected $repository = ''; - /** - * Entries with a greater priority value take precedence in the pull order. - * - * Generated from protobuf field int32 priority = 3; - */ - protected $priority = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The user-provided ID of the upstream policy. - * @type string $repository - * A reference to the repository resource, for example: - * `projects/p1/locations/us-central1/repositories/repo1`. - * @type int $priority - * Entries with a greater priority value take precedence in the pull order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * The user-provided ID of the upstream policy. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The user-provided ID of the upstream policy. - * - * 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; - } - - /** - * A reference to the repository resource, for example: - * `projects/p1/locations/us-central1/repositories/repo1`. - * - * Generated from protobuf field string repository = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getRepository() - { - return $this->repository; - } - - /** - * A reference to the repository resource, for example: - * `projects/p1/locations/us-central1/repositories/repo1`. - * - * Generated from protobuf field string repository = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkString($var, True); - $this->repository = $var; - - return $this; - } - - /** - * Entries with a greater priority value take precedence in the pull order. - * - * Generated from protobuf field int32 priority = 3; - * @return int - */ - public function getPriority() - { - return $this->priority; - } - - /** - * Entries with a greater priority value take precedence in the pull order. - * - * Generated from protobuf field int32 priority = 3; - * @param int $var - * @return $this - */ - public function setPriority($var) - { - GPBUtil::checkInt32($var); - $this->priority = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VPCSCConfig.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VPCSCConfig.php deleted file mode 100644 index ceb797f0ad22..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VPCSCConfig.php +++ /dev/null @@ -1,121 +0,0 @@ -google.devtools.artifactregistry.v1.VPCSCConfig - */ -class VPCSCConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the project's VPC SC Config. - * Always of the form: - * projects/{projectID}/locations/{location}/vpcscConfig - * In update request: never set - * In response: always set - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The project per location VPC SC policy that defines the VPC SC behavior for - * the Remote Repository (Allow/Deny). - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2; - */ - protected $vpcsc_policy = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the project's VPC SC Config. - * Always of the form: - * projects/{projectID}/locations/{location}/vpcscConfig - * In update request: never set - * In response: always set - * @type int $vpcsc_policy - * The project per location VPC SC policy that defines the VPC SC behavior for - * the Remote Repository (Allow/Deny). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\VpcscConfig::initOnce(); - parent::__construct($data); - } - - /** - * The name of the project's VPC SC Config. - * Always of the form: - * projects/{projectID}/locations/{location}/vpcscConfig - * In update request: never set - * In response: always set - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the project's VPC SC Config. - * Always of the form: - * projects/{projectID}/locations/{location}/vpcscConfig - * In update request: never set - * In response: always set - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The project per location VPC SC policy that defines the VPC SC behavior for - * the Remote Repository (Allow/Deny). - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2; - * @return int - */ - public function getVpcscPolicy() - { - return $this->vpcsc_policy; - } - - /** - * The project per location VPC SC policy that defines the VPC SC behavior for - * the Remote Repository (Allow/Deny). - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy vpcsc_policy = 2; - * @param int $var - * @return $this - */ - public function setVpcscPolicy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\VPCSCConfig\VPCSCPolicy::class); - $this->vpcsc_policy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VPCSCConfig/VPCSCPolicy.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VPCSCConfig/VPCSCPolicy.php deleted file mode 100644 index b42a04df0262..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VPCSCConfig/VPCSCPolicy.php +++ /dev/null @@ -1,68 +0,0 @@ -google.devtools.artifactregistry.v1.VPCSCConfig.VPCSCPolicy - */ -class VPCSCPolicy -{ - /** - * VPCSC_POLICY_UNSPECIFIED - the VPS SC policy is not defined. - * When VPS SC policy is not defined - the Service will use the default - * behavior (VPCSC_DENY). - * - * Generated from protobuf enum VPCSC_POLICY_UNSPECIFIED = 0; - */ - const VPCSC_POLICY_UNSPECIFIED = 0; - /** - * VPCSC_DENY - repository will block the requests to the Upstreams for the - * Remote Repositories if the resource is in the perimeter. - * - * Generated from protobuf enum DENY = 1; - */ - const DENY = 1; - /** - * VPCSC_ALLOW - repository will allow the requests to the Upstreams for the - * Remote Repositories if the resource is in the perimeter. - * - * Generated from protobuf enum ALLOW = 2; - */ - const ALLOW = 2; - - private static $valueToName = [ - self::VPCSC_POLICY_UNSPECIFIED => 'VPCSC_POLICY_UNSPECIFIED', - self::DENY => 'DENY', - self::ALLOW => 'ALLOW', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VPCSCPolicy::class, \Google\Cloud\ArtifactRegistry\V1\VPCSCConfig_VPCSCPolicy::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Version.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Version.php deleted file mode 100644 index c085f4368d36..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/Version.php +++ /dev/null @@ -1,335 +0,0 @@ -google.devtools.artifactregistry.v1.Version - */ -class Version extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the version, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`. - * If the package or version ID parts contain slashes, the slashes are - * escaped. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. Description of the version, as specified in its metadata. - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * The time when the version was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - */ - protected $create_time = null; - /** - * The time when the version was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - */ - protected $update_time = null; - /** - * Output only. A list of related tags. Will contain up to 100 tags that - * reference this version. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Tag related_tags = 7; - */ - private $related_tags; - /** - * Output only. Repository-specific Metadata stored against this version. - * The fields returned are defined by the underlying repository-specific - * resource. Currently, the resources could be: - * [DockerImage][google.devtools.artifactregistry.v1.DockerImage] - * [MavenArtifact][google.devtools.artifactregistry.v1.MavenArtifact] - * - * Generated from protobuf field .google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $metadata = null; - /** - * Optional. Client specified annotations. - * - * Generated from protobuf field map annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the version, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`. - * If the package or version ID parts contain slashes, the slashes are - * escaped. - * @type string $description - * Optional. Description of the version, as specified in its metadata. - * @type \Google\Protobuf\Timestamp $create_time - * The time when the version was created. - * @type \Google\Protobuf\Timestamp $update_time - * The time when the version was last updated. - * @type array<\Google\Cloud\ArtifactRegistry\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $related_tags - * Output only. A list of related tags. Will contain up to 100 tags that - * reference this version. - * @type \Google\Protobuf\Struct $metadata - * Output only. Repository-specific Metadata stored against this version. - * The fields returned are defined by the underlying repository-specific - * resource. Currently, the resources could be: - * [DockerImage][google.devtools.artifactregistry.v1.DockerImage] - * [MavenArtifact][google.devtools.artifactregistry.v1.MavenArtifact] - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Client specified annotations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Version::initOnce(); - parent::__construct($data); - } - - /** - * The name of the version, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`. - * If the package or version ID parts contain slashes, the slashes are - * escaped. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the version, for example: - * `projects/p1/locations/us-central1/repositories/repo1/packages/pkg1/versions/art1`. - * If the package or version ID parts contain slashes, the slashes are - * escaped. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. Description of the version, as specified in its metadata. - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. Description of the version, as specified in its metadata. - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The time when the version was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The time when the version was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The time when the version was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - * @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 time when the version was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. A list of related tags. Will contain up to 100 tags that - * reference this version. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Tag related_tags = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedTags() - { - return $this->related_tags; - } - - /** - * Output only. A list of related tags. Will contain up to 100 tags that - * reference this version. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.Tag related_tags = 7; - * @param array<\Google\Cloud\ArtifactRegistry\V1\Tag>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\Tag::class); - $this->related_tags = $arr; - - return $this; - } - - /** - * Output only. Repository-specific Metadata stored against this version. - * The fields returned are defined by the underlying repository-specific - * resource. Currently, the resources could be: - * [DockerImage][google.devtools.artifactregistry.v1.DockerImage] - * [MavenArtifact][google.devtools.artifactregistry.v1.MavenArtifact] - * - * Generated from protobuf field .google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Struct|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Output only. Repository-specific Metadata stored against this version. - * The fields returned are defined by the underlying repository-specific - * resource. Currently, the resources could be: - * [DockerImage][google.devtools.artifactregistry.v1.DockerImage] - * [MavenArtifact][google.devtools.artifactregistry.v1.MavenArtifact] - * - * Generated from protobuf field .google.protobuf.Struct metadata = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->metadata = $var; - - return $this; - } - - /** - * Optional. Client specified annotations. - * - * Generated from protobuf field map annotations = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Client specified annotations. - * - * Generated from protobuf field map annotations = 9 [(.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; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VersionView.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VersionView.php deleted file mode 100644 index ba4f5fe0b170..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VersionView.php +++ /dev/null @@ -1,63 +0,0 @@ -google.devtools.artifactregistry.v1.VersionView - */ -class VersionView -{ - /** - * The default / unset value. - * The API will default to the BASIC view. - * - * Generated from protobuf enum VERSION_VIEW_UNSPECIFIED = 0; - */ - const VERSION_VIEW_UNSPECIFIED = 0; - /** - * Includes basic information about the version, but not any related tags. - * - * Generated from protobuf enum BASIC = 1; - */ - const BASIC = 1; - /** - * Include everything. - * - * Generated from protobuf enum FULL = 2; - */ - const FULL = 2; - - private static $valueToName = [ - self::VERSION_VIEW_UNSPECIFIED => 'VERSION_VIEW_UNSPECIFIED', - self::BASIC => 'BASIC', - self::FULL => 'FULL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VirtualRepositoryConfig.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VirtualRepositoryConfig.php deleted file mode 100644 index 5936e3750f99..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/VirtualRepositoryConfig.php +++ /dev/null @@ -1,71 +0,0 @@ -google.devtools.artifactregistry.v1.VirtualRepositoryConfig - */ -class VirtualRepositoryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Policies that configure the upstream artifacts distributed by the Virtual - * Repository. Upstream policies cannot be set on a standard repository. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1; - */ - private $upstream_policies; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ArtifactRegistry\V1\UpstreamPolicy>|\Google\Protobuf\Internal\RepeatedField $upstream_policies - * Policies that configure the upstream artifacts distributed by the Virtual - * Repository. Upstream policies cannot be set on a standard repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\Repository::initOnce(); - parent::__construct($data); - } - - /** - * Policies that configure the upstream artifacts distributed by the Virtual - * Repository. Upstream policies cannot be set on a standard repository. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUpstreamPolicies() - { - return $this->upstream_policies; - } - - /** - * Policies that configure the upstream artifacts distributed by the Virtual - * Repository. Upstream policies cannot be set on a standard repository. - * - * Generated from protobuf field repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1; - * @param array<\Google\Cloud\ArtifactRegistry\V1\UpstreamPolicy>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUpstreamPolicies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ArtifactRegistry\V1\UpstreamPolicy::class); - $this->upstream_policies = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/YumArtifact.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/YumArtifact.php deleted file mode 100644 index b50bad3012ac..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/YumArtifact.php +++ /dev/null @@ -1,169 +0,0 @@ -google.devtools.artifactregistry.v1.YumArtifact - */ -class YumArtifact extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The Artifact Registry resource name of the artifact. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. The yum package name of the artifact. - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $package_name = ''; - /** - * Output only. An artifact is a binary or source package. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.YumArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $package_type = 0; - /** - * Output only. Operating system architecture of the artifact. - * - * Generated from protobuf field string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $architecture = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The Artifact Registry resource name of the artifact. - * @type string $package_name - * Output only. The yum package name of the artifact. - * @type int $package_type - * Output only. An artifact is a binary or source package. - * @type string $architecture - * Output only. Operating system architecture of the artifact. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Artifactregistry\V1\YumArtifact::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The Artifact Registry resource name of the artifact. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The Artifact Registry resource name of the artifact. - * - * 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 yum package name of the artifact. - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPackageName() - { - return $this->package_name; - } - - /** - * Output only. The yum package name of the artifact. - * - * Generated from protobuf field string package_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPackageName($var) - { - GPBUtil::checkString($var, True); - $this->package_name = $var; - - return $this; - } - - /** - * Output only. An artifact is a binary or source package. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.YumArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getPackageType() - { - return $this->package_type; - } - - /** - * Output only. An artifact is a binary or source package. - * - * Generated from protobuf field .google.devtools.artifactregistry.v1.YumArtifact.PackageType package_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setPackageType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ArtifactRegistry\V1\YumArtifact\PackageType::class); - $this->package_type = $var; - - return $this; - } - - /** - * Output only. Operating system architecture of the artifact. - * - * Generated from protobuf field string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getArchitecture() - { - return $this->architecture; - } - - /** - * Output only. Operating system architecture of the artifact. - * - * Generated from protobuf field string architecture = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setArchitecture($var) - { - GPBUtil::checkString($var, True); - $this->architecture = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/YumArtifact/PackageType.php b/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/YumArtifact/PackageType.php deleted file mode 100644 index 3e2b075bd74b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/proto/src/Google/Cloud/ArtifactRegistry/V1/YumArtifact/PackageType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.devtools.artifactregistry.v1.YumArtifact.PackageType - */ -class PackageType -{ - /** - * Package type is not specified. - * - * Generated from protobuf enum PACKAGE_TYPE_UNSPECIFIED = 0; - */ - const PACKAGE_TYPE_UNSPECIFIED = 0; - /** - * Binary package (.rpm). - * - * Generated from protobuf enum BINARY = 1; - */ - const BINARY = 1; - /** - * Source package (.srpm). - * - * Generated from protobuf enum SOURCE = 2; - */ - const SOURCE = 2; - - private static $valueToName = [ - self::PACKAGE_TYPE_UNSPECIFIED => 'PACKAGE_TYPE_UNSPECIFIED', - self::BINARY => 'BINARY', - self::SOURCE => 'SOURCE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PackageType::class, \Google\Cloud\ArtifactRegistry\V1\YumArtifact_PackageType::class); - diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/batch_delete_versions.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/batch_delete_versions.php deleted file mode 100644 index b8592d2ce17c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/batch_delete_versions.php +++ /dev/null @@ -1,89 +0,0 @@ -setNames($formattedNames); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $artifactRegistryClient->batchDeleteVersions($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 -{ - $formattedNamesElement = ArtifactRegistryClient::versionName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[PACKAGE]', - '[VERSION]' - ); - - batch_delete_versions_sample($formattedNamesElement); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_BatchDeleteVersions_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_attachment.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_attachment.php deleted file mode 100644 index 55bc03d75de2..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_attachment.php +++ /dev/null @@ -1,120 +0,0 @@ -`. Please see - * {@see ArtifactRegistryClient::fileName()} for help formatting this field. - */ -function create_attachment_sample( - string $formattedParent, - string $attachmentId, - string $attachmentTarget, - string $formattedAttachmentFilesElement -): void { - // Create a client. - $artifactRegistryClient = new ArtifactRegistryClient(); - - // Prepare the request message. - $formattedAttachmentFiles = [$formattedAttachmentFilesElement,]; - $attachment = (new Attachment()) - ->setTarget($attachmentTarget) - ->setFiles($formattedAttachmentFiles); - $request = (new CreateAttachmentRequest()) - ->setParent($formattedParent) - ->setAttachmentId($attachmentId) - ->setAttachment($attachment); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $artifactRegistryClient->createAttachment($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Attachment $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 = ArtifactRegistryClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]' - ); - $attachmentId = '[ATTACHMENT_ID]'; - $attachmentTarget = '[TARGET]'; - $formattedAttachmentFilesElement = ArtifactRegistryClient::fileName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[FILE]' - ); - - create_attachment_sample( - $formattedParent, - $attachmentId, - $attachmentTarget, - $formattedAttachmentFilesElement - ); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_CreateAttachment_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_repository.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_repository.php deleted file mode 100644 index d37bd8941a61..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_repository.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $artifactRegistryClient->createRepository($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Repository $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 = ArtifactRegistryClient::locationName('[PROJECT]', '[LOCATION]'); - - create_repository_sample($formattedParent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_CreateRepository_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_rule.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_rule.php deleted file mode 100644 index c3849cd60f21..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_rule.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var Rule $response */ - $response = $artifactRegistryClient->createRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ArtifactRegistryClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]' - ); - - create_rule_sample($formattedParent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_CreateRule_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_tag.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_tag.php deleted file mode 100644 index 9781d539f5d8..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/create_tag.php +++ /dev/null @@ -1,57 +0,0 @@ -createTag($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_CreateTag_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_attachment.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_attachment.php deleted file mode 100644 index 54728b57aece..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_attachment.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $artifactRegistryClient->deleteAttachment($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 = ArtifactRegistryClient::attachmentName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[ATTACHMENT]' - ); - - delete_attachment_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteAttachment_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_file.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_file.php deleted file mode 100644 index 3e466d22af2e..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_file.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $artifactRegistryClient->deleteFile($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 = ArtifactRegistryClient::fileName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[FILE]' - ); - - delete_file_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteFile_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_package.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_package.php deleted file mode 100644 index 4a43bcc567af..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_package.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $artifactRegistryClient->deletePackage($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 = ArtifactRegistryClient::packageName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[PACKAGE]' - ); - - delete_package_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_DeletePackage_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_repository.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_repository.php deleted file mode 100644 index 77cd128dc9c1..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_repository.php +++ /dev/null @@ -1,82 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $artifactRegistryClient->deleteRepository($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 = ArtifactRegistryClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - delete_repository_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteRepository_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_rule.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_rule.php deleted file mode 100644 index e51c4979d7f2..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_rule.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $artifactRegistryClient->deleteRule($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 = ArtifactRegistryClient::ruleName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[RULE]' - ); - - delete_rule_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteRule_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_tag.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_tag.php deleted file mode 100644 index ad6f4cdb87c9..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_tag.php +++ /dev/null @@ -1,55 +0,0 @@ -deleteTag($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteTag_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_version.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_version.php deleted file mode 100644 index caadc870366e..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/delete_version.php +++ /dev/null @@ -1,67 +0,0 @@ -deleteVersion($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_DeleteVersion_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_attachment.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_attachment.php deleted file mode 100644 index 7db7fe48e5e0..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_attachment.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Attachment $response */ - $response = $artifactRegistryClient->getAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::attachmentName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[ATTACHMENT]' - ); - - get_attachment_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetAttachment_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_docker_image.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_docker_image.php deleted file mode 100644 index bcd3d8930644..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_docker_image.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DockerImage $response */ - $response = $artifactRegistryClient->getDockerImage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::dockerImageName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[DOCKER_IMAGE]' - ); - - get_docker_image_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetDockerImage_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_file.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_file.php deleted file mode 100644 index 9bd3d9d8f305..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_file.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var File $response */ - $response = $artifactRegistryClient->getFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::fileName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[FILE]' - ); - - get_file_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetFile_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_iam_policy.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_iam_policy.php deleted file mode 100644 index fde959af2b51..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_iam_policy.php +++ /dev/null @@ -1,71 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $artifactRegistryClient->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 artifactregistry_v1_generated_ArtifactRegistry_GetIamPolicy_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_location.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_location.php deleted file mode 100644 index 366fcafca6d3..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetLocation_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_maven_artifact.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_maven_artifact.php deleted file mode 100644 index 64c88aecf5c1..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_maven_artifact.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MavenArtifact $response */ - $response = $artifactRegistryClient->getMavenArtifact($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::mavenArtifactName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[MAVEN_ARTIFACT]' - ); - - get_maven_artifact_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetMavenArtifact_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_npm_package.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_npm_package.php deleted file mode 100644 index b8ceb0e8cfc6..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_npm_package.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var NpmPackage $response */ - $response = $artifactRegistryClient->getNpmPackage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::npmPackageName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[NPM_PACKAGE]' - ); - - get_npm_package_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetNpmPackage_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_package.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_package.php deleted file mode 100644 index 93c6c107fd58..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_package.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Package $response */ - $response = $artifactRegistryClient->getPackage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::packageName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[PACKAGE]' - ); - - get_package_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetPackage_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_project_settings.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_project_settings.php deleted file mode 100644 index fa72ffc5c528..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_project_settings.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ProjectSettings $response */ - $response = $artifactRegistryClient->getProjectSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::projectSettingsName('[PROJECT]'); - - get_project_settings_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetProjectSettings_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_python_package.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_python_package.php deleted file mode 100644 index 2ec2f93e374b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_python_package.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var PythonPackage $response */ - $response = $artifactRegistryClient->getPythonPackage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::pythonPackageName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[PYTHON_PACKAGE]' - ); - - get_python_package_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetPythonPackage_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_repository.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_repository.php deleted file mode 100644 index 06494b76f3fd..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_repository.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Repository $response */ - $response = $artifactRegistryClient->getRepository($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - - get_repository_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetRepository_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_rule.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_rule.php deleted file mode 100644 index 998656c310af..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_rule.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Rule $response */ - $response = $artifactRegistryClient->getRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::ruleName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]', - '[RULE]' - ); - - get_rule_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetRule_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_tag.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_tag.php deleted file mode 100644 index 98e0551af7be..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_tag.php +++ /dev/null @@ -1,57 +0,0 @@ -getTag($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetTag_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_version.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_version.php deleted file mode 100644 index 27ac0855a66c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_version.php +++ /dev/null @@ -1,57 +0,0 @@ -getVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetVersion_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_vpcsc_config.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_vpcsc_config.php deleted file mode 100644 index 84571ccdbdf5..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/get_vpcsc_config.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var VPCSCConfig $response */ - $response = $artifactRegistryClient->getVPCSCConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ArtifactRegistryClient::vpcscConfigName('[PROJECT]', '[LOCATION]'); - - get_vpcsc_config_sample($formattedName); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_GetVPCSCConfig_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/import_apt_artifacts.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/import_apt_artifacts.php deleted file mode 100644 index f089ca922ecb..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/import_apt_artifacts.php +++ /dev/null @@ -1,72 +0,0 @@ -importAptArtifacts($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ImportAptArtifactsResponse $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 artifactregistry_v1_generated_ArtifactRegistry_ImportAptArtifacts_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/import_yum_artifacts.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/import_yum_artifacts.php deleted file mode 100644 index cc3223c6c583..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/import_yum_artifacts.php +++ /dev/null @@ -1,72 +0,0 @@ -importYumArtifacts($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ImportYumArtifactsResponse $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 artifactregistry_v1_generated_ArtifactRegistry_ImportYumArtifacts_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_attachments.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_attachments.php deleted file mode 100644 index c624ce8e8132..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_attachments.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $artifactRegistryClient->listAttachments($request); - - /** @var Attachment $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 = ArtifactRegistryClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]' - ); - - list_attachments_sample($formattedParent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListAttachments_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_docker_images.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_docker_images.php deleted file mode 100644 index 73808edccf09..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_docker_images.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($parent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $artifactRegistryClient->listDockerImages($request); - - /** @var DockerImage $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_docker_images_sample($parent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListDockerImages_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_files.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_files.php deleted file mode 100644 index e3fc9bc276aa..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_files.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $artifactRegistryClient->listFiles($request); - - /** @var File $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 = ArtifactRegistryClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]' - ); - - list_files_sample($formattedParent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListFiles_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_locations.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_locations.php deleted file mode 100644 index deea74b902c6..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListLocations_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_maven_artifacts.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_maven_artifacts.php deleted file mode 100644 index 5d92e8255042..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_maven_artifacts.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $artifactRegistryClient->listMavenArtifacts($request); - - /** @var MavenArtifact $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 = ArtifactRegistryClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]' - ); - - list_maven_artifacts_sample($formattedParent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListMavenArtifacts_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_npm_packages.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_npm_packages.php deleted file mode 100644 index 57ac73d23528..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_npm_packages.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $artifactRegistryClient->listNpmPackages($request); - - /** @var NpmPackage $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 = ArtifactRegistryClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]' - ); - - list_npm_packages_sample($formattedParent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListNpmPackages_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_packages.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_packages.php deleted file mode 100644 index 1b5d9b537348..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_packages.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $artifactRegistryClient->listPackages($request); - - /** @var Package $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 = ArtifactRegistryClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]' - ); - - list_packages_sample($formattedParent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListPackages_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_python_packages.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_python_packages.php deleted file mode 100644 index 836782a89fed..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_python_packages.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $artifactRegistryClient->listPythonPackages($request); - - /** @var PythonPackage $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 = ArtifactRegistryClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]' - ); - - list_python_packages_sample($formattedParent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListPythonPackages_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_repositories.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_repositories.php deleted file mode 100644 index c0c85e7742c0..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_repositories.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $artifactRegistryClient->listRepositories($request); - - /** @var Repository $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 = ArtifactRegistryClient::locationName('[PROJECT]', '[LOCATION]'); - - list_repositories_sample($formattedParent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListRepositories_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_rules.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_rules.php deleted file mode 100644 index ac4df58ccfc0..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_rules.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $artifactRegistryClient->listRules($request); - - /** @var Rule $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 = ArtifactRegistryClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[REPOSITORY]' - ); - - list_rules_sample($formattedParent); -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListRules_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_tags.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_tags.php deleted file mode 100644 index e72d499fa159..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_tags.php +++ /dev/null @@ -1,62 +0,0 @@ -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()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListTags_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_versions.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_versions.php deleted file mode 100644 index ef516406413b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/list_versions.php +++ /dev/null @@ -1,62 +0,0 @@ -listVersions($request); - - /** @var Version $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_ListVersions_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/set_iam_policy.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/set_iam_policy.php deleted file mode 100644 index 058c9768b21f..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/set_iam_policy.php +++ /dev/null @@ -1,73 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $artifactRegistryClient->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 artifactregistry_v1_generated_ArtifactRegistry_SetIamPolicy_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/test_iam_permissions.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/test_iam_permissions.php deleted file mode 100644 index 616ac9e06c4c..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/test_iam_permissions.php +++ /dev/null @@ -1,78 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $artifactRegistryClient->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 artifactregistry_v1_generated_ArtifactRegistry_TestIamPermissions_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_file.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_file.php deleted file mode 100644 index d7848dba8bc5..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_file.php +++ /dev/null @@ -1,62 +0,0 @@ -setFile($file) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var File $response */ - $response = $artifactRegistryClient->updateFile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateFile_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_package.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_package.php deleted file mode 100644 index ceb5ee521284..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_package.php +++ /dev/null @@ -1,57 +0,0 @@ -updatePackage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_UpdatePackage_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_project_settings.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_project_settings.php deleted file mode 100644 index c1b0c8f3002e..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_project_settings.php +++ /dev/null @@ -1,57 +0,0 @@ -updateProjectSettings($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateProjectSettings_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_repository.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_repository.php deleted file mode 100644 index 1f7bc2f44e96..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_repository.php +++ /dev/null @@ -1,57 +0,0 @@ -updateRepository($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateRepository_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_rule.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_rule.php deleted file mode 100644 index d52bb220c640..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_rule.php +++ /dev/null @@ -1,57 +0,0 @@ -updateRule($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateRule_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_tag.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_tag.php deleted file mode 100644 index 2f5105a7f7cf..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_tag.php +++ /dev/null @@ -1,57 +0,0 @@ -updateTag($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateTag_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_version.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_version.php deleted file mode 100644 index 2a3684f43630..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_version.php +++ /dev/null @@ -1,59 +0,0 @@ -setVersion($version); - - // Call the API and handle any network failures. - try { - /** @var Version $response */ - $response = $artifactRegistryClient->updateVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateVersion_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_vpcsc_config.php b/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_vpcsc_config.php deleted file mode 100644 index ec0cbacd366d..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/samples/V1/ArtifactRegistryClient/update_vpcsc_config.php +++ /dev/null @@ -1,57 +0,0 @@ -updateVPCSCConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END artifactregistry_v1_generated_ArtifactRegistry_UpdateVPCSCConfig_sync] diff --git a/owl-bot-staging/ArtifactRegistry/v1/src/V1/Client/ArtifactRegistryClient.php b/owl-bot-staging/ArtifactRegistry/v1/src/V1/Client/ArtifactRegistryClient.php deleted file mode 100644 index d7964c36e232..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/src/V1/Client/ArtifactRegistryClient.php +++ /dev/null @@ -1,2032 +0,0 @@ - batchDeleteVersionsAsync(BatchDeleteVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createAttachmentAsync(CreateAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRuleAsync(CreateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTagAsync(CreateTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteAttachmentAsync(DeleteAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFileAsync(DeleteFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface deletePackageAsync(DeletePackageRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRuleAsync(DeleteRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTagAsync(DeleteTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteVersionAsync(DeleteVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAttachmentAsync(GetAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDockerImageAsync(GetDockerImageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFileAsync(GetFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMavenArtifactAsync(GetMavenArtifactRequest $request, array $optionalArgs = []) - * @method PromiseInterface getNpmPackageAsync(GetNpmPackageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPackageAsync(GetPackageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProjectSettingsAsync(GetProjectSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPythonPackageAsync(GetPythonPackageRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRuleAsync(GetRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTagAsync(GetTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVPCSCConfigAsync(GetVPCSCConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVersionAsync(GetVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface importAptArtifactsAsync(ImportAptArtifactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface importYumArtifactsAsync(ImportYumArtifactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listAttachmentsAsync(ListAttachmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDockerImagesAsync(ListDockerImagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFilesAsync(ListFilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMavenArtifactsAsync(ListMavenArtifactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNpmPackagesAsync(ListNpmPackagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPackagesAsync(ListPackagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPythonPackagesAsync(ListPythonPackagesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRepositoriesAsync(ListRepositoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRulesAsync(ListRulesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTagsAsync(ListTagsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listVersionsAsync(ListVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFileAsync(UpdateFileRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePackageAsync(UpdatePackageRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateProjectSettingsAsync(UpdateProjectSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRepositoryAsync(UpdateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRuleAsync(UpdateRuleRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTagAsync(UpdateTagRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVPCSCConfigAsync(UpdateVPCSCConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateVersionAsync(UpdateVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class ArtifactRegistryClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.devtools.artifactregistry.v1.ArtifactRegistry'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'artifactregistry.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'artifactregistry.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud-platform.read-only', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/artifact_registry_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/artifact_registry_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/artifact_registry_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/artifact_registry_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 attachment - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $attachment - * - * @return string The formatted attachment resource. - */ - public static function attachmentName(string $project, string $location, string $repository, string $attachment): string - { - return self::getPathTemplate('attachment')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'attachment' => $attachment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a docker_image - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $dockerImage - * - * @return string The formatted docker_image resource. - */ - public static function dockerImageName(string $project, string $location, string $repository, string $dockerImage): string - { - return self::getPathTemplate('dockerImage')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'docker_image' => $dockerImage, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a file - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $file - * - * @return string The formatted file resource. - */ - public static function fileName(string $project, string $location, string $repository, string $file): string - { - return self::getPathTemplate('file')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'file' => $file, - ]); - } - - /** - * 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 - * maven_artifact resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $mavenArtifact - * - * @return string The formatted maven_artifact resource. - */ - public static function mavenArtifactName(string $project, string $location, string $repository, string $mavenArtifact): string - { - return self::getPathTemplate('mavenArtifact')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'maven_artifact' => $mavenArtifact, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a npm_package - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $npmPackage - * - * @return string The formatted npm_package resource. - */ - public static function npmPackageName(string $project, string $location, string $repository, string $npmPackage): string - { - return self::getPathTemplate('npmPackage')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'npm_package' => $npmPackage, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a package - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $package - * - * @return string The formatted package resource. - */ - public static function packageName(string $project, string $location, string $repository, string $package): string - { - return self::getPathTemplate('package')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'package' => $package, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_settings resource. - * - * @param string $project - * - * @return string The formatted project_settings resource. - */ - public static function projectSettingsName(string $project): string - { - return self::getPathTemplate('projectSettings')->render([ - 'project' => $project, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * python_package resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $pythonPackage - * - * @return string The formatted python_package resource. - */ - public static function pythonPackageName(string $project, string $location, string $repository, string $pythonPackage): string - { - return self::getPathTemplate('pythonPackage')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'python_package' => $pythonPackage, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a repository - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * - * @return string The formatted repository resource. - */ - public static function repositoryName(string $project, string $location, string $repository): string - { - return self::getPathTemplate('repository')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a rule - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $rule - * - * @return string The formatted rule resource. - */ - public static function ruleName(string $project, string $location, string $repository, string $rule): string - { - return self::getPathTemplate('rule')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'rule' => $rule, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * secret_version resource. - * - * @param string $project - * @param string $secret - * @param string $secretVersion - * - * @return string The formatted secret_version resource. - */ - public static function secretVersionName(string $project, string $secret, string $secretVersion): string - { - return self::getPathTemplate('secretVersion')->render([ - 'project' => $project, - 'secret' => $secret, - 'secret_version' => $secretVersion, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a tag - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $package - * @param string $tag - * - * @return string The formatted tag resource. - */ - public static function tagName(string $project, string $location, string $repository, string $package, string $tag): string - { - return self::getPathTemplate('tag')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'package' => $package, - 'tag' => $tag, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a version - * resource. - * - * @param string $project - * @param string $location - * @param string $repository - * @param string $package - * @param string $version - * - * @return string The formatted version resource. - */ - public static function versionName(string $project, string $location, string $repository, string $package, string $version): string - { - return self::getPathTemplate('version')->render([ - 'project' => $project, - 'location' => $location, - 'repository' => $repository, - 'package' => $package, - 'version' => $version, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a vpcsc_config - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted vpcsc_config resource. - */ - public static function vpcscConfigName(string $project, string $location): string - { - return self::getPathTemplate('vpcscConfig')->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 - * - attachment: projects/{project}/locations/{location}/repositories/{repository}/attachments/{attachment} - * - dockerImage: projects/{project}/locations/{location}/repositories/{repository}/dockerImages/{docker_image} - * - file: projects/{project}/locations/{location}/repositories/{repository}/files/{file} - * - location: projects/{project}/locations/{location} - * - mavenArtifact: projects/{project}/locations/{location}/repositories/{repository}/mavenArtifacts/{maven_artifact} - * - npmPackage: projects/{project}/locations/{location}/repositories/{repository}/npmPackages/{npm_package} - * - package: projects/{project}/locations/{location}/repositories/{repository}/packages/{package} - * - projectSettings: projects/{project}/projectSettings - * - pythonPackage: projects/{project}/locations/{location}/repositories/{repository}/pythonPackages/{python_package} - * - repository: projects/{project}/locations/{location}/repositories/{repository} - * - rule: projects/{project}/locations/{location}/repositories/{repository}/rules/{rule} - * - secretVersion: projects/{project}/secrets/{secret}/versions/{secret_version} - * - tag: projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag} - * - version: projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version} - * - vpcscConfig: projects/{project}/locations/{location}/vpcscConfig - * - * 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 'artifactregistry.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Deletes multiple versions across a repository. The returned operation will - * complete once the versions have been deleted. - * - * The async variant is {@see ArtifactRegistryClient::batchDeleteVersionsAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/batch_delete_versions.php - * - * @param BatchDeleteVersionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 batchDeleteVersions(BatchDeleteVersionsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('BatchDeleteVersions', $request, $callOptions)->wait(); - } - - /** - * Creates an attachment. The returned Operation will finish once the - * attachment has been created. Its response will be the created attachment. - * - * The async variant is {@see ArtifactRegistryClient::createAttachmentAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/create_attachment.php - * - * @param CreateAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createAttachment(CreateAttachmentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateAttachment', $request, $callOptions)->wait(); - } - - /** - * Creates a repository. The returned Operation will finish once the - * repository has been created. Its response will be the created Repository. - * - * The async variant is {@see ArtifactRegistryClient::createRepositoryAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/create_repository.php - * - * @param CreateRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createRepository(CreateRepositoryRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateRepository', $request, $callOptions)->wait(); - } - - /** - * Creates a rule. - * - * The async variant is {@see ArtifactRegistryClient::createRuleAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/create_rule.php - * - * @param CreateRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Rule - * - * @throws ApiException Thrown if the API call fails. - */ - public function createRule(CreateRuleRequest $request, array $callOptions = []): Rule - { - return $this->startApiCall('CreateRule', $request, $callOptions)->wait(); - } - - /** - * Creates a tag. - * - * The async variant is {@see ArtifactRegistryClient::createTagAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/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(); - } - - /** - * Deletes an attachment. The returned Operation will - * finish once the attachments has been deleted. It will not have any - * Operation metadata and will return a `google.protobuf.Empty` response. - * - * The async variant is {@see ArtifactRegistryClient::deleteAttachmentAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/delete_attachment.php - * - * @param DeleteAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteAttachment(DeleteAttachmentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteAttachment', $request, $callOptions)->wait(); - } - - /** - * Deletes a file and all of its content. It is only allowed on generic - * repositories. The returned operation will complete once the file has been - * deleted. - * - * The async variant is {@see ArtifactRegistryClient::deleteFileAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/delete_file.php - * - * @param DeleteFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteFile(DeleteFileRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteFile', $request, $callOptions)->wait(); - } - - /** - * Deletes a package and all of its versions and tags. The returned operation - * will complete once the package has been deleted. - * - * The async variant is {@see ArtifactRegistryClient::deletePackageAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/delete_package.php - * - * @param DeletePackageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deletePackage(DeletePackageRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeletePackage', $request, $callOptions)->wait(); - } - - /** - * Deletes a repository and all of its contents. The returned Operation will - * finish once the repository has been deleted. It will not have any Operation - * metadata and will return a google.protobuf.Empty response. - * - * The async variant is {@see ArtifactRegistryClient::deleteRepositoryAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/delete_repository.php - * - * @param DeleteRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteRepository(DeleteRepositoryRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteRepository', $request, $callOptions)->wait(); - } - - /** - * Deletes a rule. - * - * The async variant is {@see ArtifactRegistryClient::deleteRuleAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/delete_rule.php - * - * @param DeleteRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteRule(DeleteRuleRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteRule', $request, $callOptions)->wait(); - } - - /** - * Deletes a tag. - * - * The async variant is {@see ArtifactRegistryClient::deleteTagAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/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 version and all of its content. The returned operation will - * complete once the version has been deleted. - * - * The async variant is {@see ArtifactRegistryClient::deleteVersionAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/delete_version.php - * - * @param DeleteVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteVersion(DeleteVersionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteVersion', $request, $callOptions)->wait(); - } - - /** - * Gets an attachment. - * - * The async variant is {@see ArtifactRegistryClient::getAttachmentAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_attachment.php - * - * @param GetAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Attachment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAttachment(GetAttachmentRequest $request, array $callOptions = []): Attachment - { - return $this->startApiCall('GetAttachment', $request, $callOptions)->wait(); - } - - /** - * Gets a docker image. - * - * The async variant is {@see ArtifactRegistryClient::getDockerImageAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_docker_image.php - * - * @param GetDockerImageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DockerImage - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDockerImage(GetDockerImageRequest $request, array $callOptions = []): DockerImage - { - return $this->startApiCall('GetDockerImage', $request, $callOptions)->wait(); - } - - /** - * Gets a file. - * - * The async variant is {@see ArtifactRegistryClient::getFileAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_file.php - * - * @param GetFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return File - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFile(GetFileRequest $request, array $callOptions = []): File - { - return $this->startApiCall('GetFile', $request, $callOptions)->wait(); - } - - /** - * Gets the IAM policy for a given resource. - * - * The async variant is {@see ArtifactRegistryClient::getIamPolicyAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/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 maven artifact. - * - * The async variant is {@see ArtifactRegistryClient::getMavenArtifactAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_maven_artifact.php - * - * @param GetMavenArtifactRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MavenArtifact - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMavenArtifact(GetMavenArtifactRequest $request, array $callOptions = []): MavenArtifact - { - return $this->startApiCall('GetMavenArtifact', $request, $callOptions)->wait(); - } - - /** - * Gets a npm package. - * - * The async variant is {@see ArtifactRegistryClient::getNpmPackageAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_npm_package.php - * - * @param GetNpmPackageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return NpmPackage - * - * @throws ApiException Thrown if the API call fails. - */ - public function getNpmPackage(GetNpmPackageRequest $request, array $callOptions = []): NpmPackage - { - return $this->startApiCall('GetNpmPackage', $request, $callOptions)->wait(); - } - - /** - * Gets a package. - * - * The async variant is {@see ArtifactRegistryClient::getPackageAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_package.php - * - * @param GetPackageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Package - * - * @throws ApiException Thrown if the API call fails. - */ - public function getPackage(GetPackageRequest $request, array $callOptions = []): Package - { - return $this->startApiCall('GetPackage', $request, $callOptions)->wait(); - } - - /** - * Retrieves the Settings for the Project. - * - * The async variant is {@see ArtifactRegistryClient::getProjectSettingsAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_project_settings.php - * - * @param GetProjectSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProjectSettings - * - * @throws ApiException Thrown if the API call fails. - */ - public function getProjectSettings(GetProjectSettingsRequest $request, array $callOptions = []): ProjectSettings - { - return $this->startApiCall('GetProjectSettings', $request, $callOptions)->wait(); - } - - /** - * Gets a python package. - * - * The async variant is {@see ArtifactRegistryClient::getPythonPackageAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_python_package.php - * - * @param GetPythonPackageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PythonPackage - * - * @throws ApiException Thrown if the API call fails. - */ - public function getPythonPackage(GetPythonPackageRequest $request, array $callOptions = []): PythonPackage - { - return $this->startApiCall('GetPythonPackage', $request, $callOptions)->wait(); - } - - /** - * Gets a repository. - * - * The async variant is {@see ArtifactRegistryClient::getRepositoryAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_repository.php - * - * @param GetRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Repository - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRepository(GetRepositoryRequest $request, array $callOptions = []): Repository - { - return $this->startApiCall('GetRepository', $request, $callOptions)->wait(); - } - - /** - * Gets a rule. - * - * The async variant is {@see ArtifactRegistryClient::getRuleAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_rule.php - * - * @param GetRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Rule - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRule(GetRuleRequest $request, array $callOptions = []): Rule - { - return $this->startApiCall('GetRule', $request, $callOptions)->wait(); - } - - /** - * Gets a tag. - * - * The async variant is {@see ArtifactRegistryClient::getTagAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_tag.php - * - * @param GetTagRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 getTag(GetTagRequest $request, array $callOptions = []): Tag - { - return $this->startApiCall('GetTag', $request, $callOptions)->wait(); - } - - /** - * Retrieves the VPCSC Config for the Project. - * - * The async variant is {@see ArtifactRegistryClient::getVPCSCConfigAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_vpcsc_config.php - * - * @param GetVPCSCConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return VPCSCConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getVPCSCConfig(GetVPCSCConfigRequest $request, array $callOptions = []): VPCSCConfig - { - return $this->startApiCall('GetVPCSCConfig', $request, $callOptions)->wait(); - } - - /** - * Gets a version - * - * The async variant is {@see ArtifactRegistryClient::getVersionAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/get_version.php - * - * @param GetVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Version - * - * @throws ApiException Thrown if the API call fails. - */ - public function getVersion(GetVersionRequest $request, array $callOptions = []): Version - { - return $this->startApiCall('GetVersion', $request, $callOptions)->wait(); - } - - /** - * Imports Apt artifacts. The returned Operation will complete once the - * resources are imported. Package, Version, and File resources are created - * based on the imported artifacts. Imported artifacts that conflict with - * existing resources are ignored. - * - * The async variant is {@see ArtifactRegistryClient::importAptArtifactsAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/import_apt_artifacts.php - * - * @param ImportAptArtifactsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 importAptArtifacts(ImportAptArtifactsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ImportAptArtifacts', $request, $callOptions)->wait(); - } - - /** - * Imports Yum (RPM) artifacts. The returned Operation will complete once the - * resources are imported. Package, Version, and File resources are created - * based on the imported artifacts. Imported artifacts that conflict with - * existing resources are ignored. - * - * The async variant is {@see ArtifactRegistryClient::importYumArtifactsAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/import_yum_artifacts.php - * - * @param ImportYumArtifactsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 importYumArtifacts(ImportYumArtifactsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ImportYumArtifacts', $request, $callOptions)->wait(); - } - - /** - * Lists attachments. - * - * The async variant is {@see ArtifactRegistryClient::listAttachmentsAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/list_attachments.php - * - * @param ListAttachmentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listAttachments(ListAttachmentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListAttachments', $request, $callOptions); - } - - /** - * Lists docker images. - * - * The async variant is {@see ArtifactRegistryClient::listDockerImagesAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/list_docker_images.php - * - * @param ListDockerImagesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listDockerImages(ListDockerImagesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDockerImages', $request, $callOptions); - } - - /** - * Lists files. - * - * The async variant is {@see ArtifactRegistryClient::listFilesAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/list_files.php - * - * @param ListFilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listFiles(ListFilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFiles', $request, $callOptions); - } - - /** - * Lists maven artifacts. - * - * The async variant is {@see ArtifactRegistryClient::listMavenArtifactsAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/list_maven_artifacts.php - * - * @param ListMavenArtifactsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listMavenArtifacts(ListMavenArtifactsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMavenArtifacts', $request, $callOptions); - } - - /** - * Lists npm packages. - * - * The async variant is {@see ArtifactRegistryClient::listNpmPackagesAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/list_npm_packages.php - * - * @param ListNpmPackagesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listNpmPackages(ListNpmPackagesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListNpmPackages', $request, $callOptions); - } - - /** - * Lists packages. - * - * The async variant is {@see ArtifactRegistryClient::listPackagesAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/list_packages.php - * - * @param ListPackagesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listPackages(ListPackagesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListPackages', $request, $callOptions); - } - - /** - * Lists python packages. - * - * The async variant is {@see ArtifactRegistryClient::listPythonPackagesAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/list_python_packages.php - * - * @param ListPythonPackagesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listPythonPackages(ListPythonPackagesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListPythonPackages', $request, $callOptions); - } - - /** - * Lists repositories. - * - * The async variant is {@see ArtifactRegistryClient::listRepositoriesAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/list_repositories.php - * - * @param ListRepositoriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listRepositories(ListRepositoriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRepositories', $request, $callOptions); - } - - /** - * Lists rules. - * - * The async variant is {@see ArtifactRegistryClient::listRulesAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/list_rules.php - * - * @param ListRulesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listRules(ListRulesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRules', $request, $callOptions); - } - - /** - * Lists tags. - * - * The async variant is {@see ArtifactRegistryClient::listTagsAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/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); - } - - /** - * Lists versions. - * - * The async variant is {@see ArtifactRegistryClient::listVersionsAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/list_versions.php - * - * @param ListVersionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listVersions(ListVersionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListVersions', $request, $callOptions); - } - - /** - * Updates the IAM policy for a given resource. - * - * The async variant is {@see ArtifactRegistryClient::setIamPolicyAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/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(); - } - - /** - * Tests if the caller has a list of permissions on a resource. - * - * The async variant is {@see ArtifactRegistryClient::testIamPermissionsAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/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 file. - * - * The async variant is {@see ArtifactRegistryClient::updateFileAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/update_file.php - * - * @param UpdateFileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return File - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateFile(UpdateFileRequest $request, array $callOptions = []): File - { - return $this->startApiCall('UpdateFile', $request, $callOptions)->wait(); - } - - /** - * Updates a package. - * - * The async variant is {@see ArtifactRegistryClient::updatePackageAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/update_package.php - * - * @param UpdatePackageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Package - * - * @throws ApiException Thrown if the API call fails. - */ - public function updatePackage(UpdatePackageRequest $request, array $callOptions = []): Package - { - return $this->startApiCall('UpdatePackage', $request, $callOptions)->wait(); - } - - /** - * Updates the Settings for the Project. - * - * The async variant is {@see ArtifactRegistryClient::updateProjectSettingsAsync()} - * . - * - * @example samples/V1/ArtifactRegistryClient/update_project_settings.php - * - * @param UpdateProjectSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProjectSettings - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateProjectSettings(UpdateProjectSettingsRequest $request, array $callOptions = []): ProjectSettings - { - return $this->startApiCall('UpdateProjectSettings', $request, $callOptions)->wait(); - } - - /** - * Updates a repository. - * - * The async variant is {@see ArtifactRegistryClient::updateRepositoryAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/update_repository.php - * - * @param UpdateRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Repository - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateRepository(UpdateRepositoryRequest $request, array $callOptions = []): Repository - { - return $this->startApiCall('UpdateRepository', $request, $callOptions)->wait(); - } - - /** - * Updates a rule. - * - * The async variant is {@see ArtifactRegistryClient::updateRuleAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/update_rule.php - * - * @param UpdateRuleRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Rule - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateRule(UpdateRuleRequest $request, array $callOptions = []): Rule - { - return $this->startApiCall('UpdateRule', $request, $callOptions)->wait(); - } - - /** - * Updates a tag. - * - * The async variant is {@see ArtifactRegistryClient::updateTagAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/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 the VPCSC Config for the Project. - * - * The async variant is {@see ArtifactRegistryClient::updateVPCSCConfigAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/update_vpcsc_config.php - * - * @param UpdateVPCSCConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return VPCSCConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateVPCSCConfig(UpdateVPCSCConfigRequest $request, array $callOptions = []): VPCSCConfig - { - return $this->startApiCall('UpdateVPCSCConfig', $request, $callOptions)->wait(); - } - - /** - * Updates a version. - * - * The async variant is {@see ArtifactRegistryClient::updateVersionAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/update_version.php - * - * @param UpdateVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Version - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateVersion(UpdateVersionRequest $request, array $callOptions = []): Version - { - return $this->startApiCall('UpdateVersion', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see ArtifactRegistryClient::getLocationAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/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 ArtifactRegistryClient::listLocationsAsync()} . - * - * @example samples/V1/ArtifactRegistryClient/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/ArtifactRegistry/v1/src/V1/gapic_metadata.json b/owl-bot-staging/ArtifactRegistry/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 304e0a5ee2f2..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.devtools.artifactregistry.v1", - "libraryPackage": "Google\\Cloud\\ArtifactRegistry\\V1", - "services": { - "ArtifactRegistry": { - "clients": { - "grpc": { - "libraryClient": "ArtifactRegistryGapicClient", - "rpcs": { - "BatchDeleteVersions": { - "methods": [ - "batchDeleteVersions" - ] - }, - "CreateAttachment": { - "methods": [ - "createAttachment" - ] - }, - "CreateRepository": { - "methods": [ - "createRepository" - ] - }, - "CreateRule": { - "methods": [ - "createRule" - ] - }, - "CreateTag": { - "methods": [ - "createTag" - ] - }, - "DeleteAttachment": { - "methods": [ - "deleteAttachment" - ] - }, - "DeleteFile": { - "methods": [ - "deleteFile" - ] - }, - "DeletePackage": { - "methods": [ - "deletePackage" - ] - }, - "DeleteRepository": { - "methods": [ - "deleteRepository" - ] - }, - "DeleteRule": { - "methods": [ - "deleteRule" - ] - }, - "DeleteTag": { - "methods": [ - "deleteTag" - ] - }, - "DeleteVersion": { - "methods": [ - "deleteVersion" - ] - }, - "GetAttachment": { - "methods": [ - "getAttachment" - ] - }, - "GetDockerImage": { - "methods": [ - "getDockerImage" - ] - }, - "GetFile": { - "methods": [ - "getFile" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "GetMavenArtifact": { - "methods": [ - "getMavenArtifact" - ] - }, - "GetNpmPackage": { - "methods": [ - "getNpmPackage" - ] - }, - "GetPackage": { - "methods": [ - "getPackage" - ] - }, - "GetProjectSettings": { - "methods": [ - "getProjectSettings" - ] - }, - "GetPythonPackage": { - "methods": [ - "getPythonPackage" - ] - }, - "GetRepository": { - "methods": [ - "getRepository" - ] - }, - "GetRule": { - "methods": [ - "getRule" - ] - }, - "GetTag": { - "methods": [ - "getTag" - ] - }, - "GetVPCSCConfig": { - "methods": [ - "getVPCSCConfig" - ] - }, - "GetVersion": { - "methods": [ - "getVersion" - ] - }, - "ImportAptArtifacts": { - "methods": [ - "importAptArtifacts" - ] - }, - "ImportYumArtifacts": { - "methods": [ - "importYumArtifacts" - ] - }, - "ListAttachments": { - "methods": [ - "listAttachments" - ] - }, - "ListDockerImages": { - "methods": [ - "listDockerImages" - ] - }, - "ListFiles": { - "methods": [ - "listFiles" - ] - }, - "ListMavenArtifacts": { - "methods": [ - "listMavenArtifacts" - ] - }, - "ListNpmPackages": { - "methods": [ - "listNpmPackages" - ] - }, - "ListPackages": { - "methods": [ - "listPackages" - ] - }, - "ListPythonPackages": { - "methods": [ - "listPythonPackages" - ] - }, - "ListRepositories": { - "methods": [ - "listRepositories" - ] - }, - "ListRules": { - "methods": [ - "listRules" - ] - }, - "ListTags": { - "methods": [ - "listTags" - ] - }, - "ListVersions": { - "methods": [ - "listVersions" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - }, - "UpdateFile": { - "methods": [ - "updateFile" - ] - }, - "UpdatePackage": { - "methods": [ - "updatePackage" - ] - }, - "UpdateProjectSettings": { - "methods": [ - "updateProjectSettings" - ] - }, - "UpdateRepository": { - "methods": [ - "updateRepository" - ] - }, - "UpdateRule": { - "methods": [ - "updateRule" - ] - }, - "UpdateTag": { - "methods": [ - "updateTag" - ] - }, - "UpdateVPCSCConfig": { - "methods": [ - "updateVPCSCConfig" - ] - }, - "UpdateVersion": { - "methods": [ - "updateVersion" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_client_config.json b/owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_client_config.json deleted file mode 100644 index 665bff1a7b12..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_client_config.json +++ /dev/null @@ -1,287 +0,0 @@ -{ - "interfaces": { - "google.devtools.artifactregistry.v1.ArtifactRegistry": { - "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": { - "BatchDeleteVersions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateTag": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeletePackage": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteTag": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetDockerImage": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetFile": { - "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" - }, - "GetMavenArtifact": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetNpmPackage": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetPackage": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetProjectSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetPythonPackage": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetTag": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetVPCSCConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ImportAptArtifacts": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ImportYumArtifacts": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListAttachments": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListDockerImages": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListFiles": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListMavenArtifacts": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListNpmPackages": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListPackages": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListPythonPackages": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListRepositories": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListRules": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListTags": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListVersions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "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" - }, - "UpdateFile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdatePackage": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateProjectSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateRule": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateTag": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateVPCSCConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_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/ArtifactRegistry/v1/src/V1/resources/artifact_registry_descriptor_config.php b/owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_descriptor_config.php deleted file mode 100644 index 326ffcd9825b..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_descriptor_config.php +++ /dev/null @@ -1,833 +0,0 @@ - [ - 'google.devtools.artifactregistry.v1.ArtifactRegistry' => [ - 'BatchDeleteVersions' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\ArtifactRegistry\V1\BatchDeleteVersionsMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAttachment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ArtifactRegistry\V1\Attachment', - 'metadataReturnType' => '\Google\Cloud\ArtifactRegistry\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRepository' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ArtifactRegistry\V1\Repository', - 'metadataReturnType' => '\Google\Cloud\ArtifactRegistry\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAttachment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\ArtifactRegistry\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFile' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\ArtifactRegistry\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeletePackage' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\ArtifactRegistry\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRepository' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\ArtifactRegistry\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteVersion' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\ArtifactRegistry\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ImportAptArtifacts' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsResponse', - 'metadataReturnType' => '\Google\Cloud\ArtifactRegistry\V1\ImportAptArtifactsMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ImportYumArtifacts' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsResponse', - 'metadataReturnType' => '\Google\Cloud\ArtifactRegistry\V1\ImportYumArtifactsMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Rule', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTag' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Tag', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteRule' => [ - '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', - ], - ], - ], - ], - 'GetAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Attachment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDockerImage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\DockerImage', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\File', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'GetMavenArtifact' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\MavenArtifact', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetNpmPackage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\NpmPackage', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetPackage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Package', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProjectSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ProjectSettings', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetPythonPackage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\PythonPackage', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Repository', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Rule', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTag' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Tag', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetVPCSCConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\VPCSCConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Version', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListAttachments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getAttachments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ListAttachmentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDockerImages' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDockerImages', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ListDockerImagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFiles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ListFilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMavenArtifacts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMavenArtifacts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ListMavenArtifactsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListNpmPackages' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getNpmPackages', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ListNpmPackagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListPackages' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getPackages', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ListPackagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListPythonPackages' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getPythonPackages', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ListPythonPackagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRepositories' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRepositories', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ListRepositoriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRules' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRules', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ListRulesResponse', - '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\ArtifactRegistry\V1\ListTagsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListVersions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getVersions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ListVersionsResponse', - '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', - ], - ], - ], - ], - 'UpdateFile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\File', - 'headerParams' => [ - [ - 'keyName' => 'file.name', - 'fieldAccessors' => [ - 'getFile', - 'getName', - ], - ], - ], - ], - 'UpdatePackage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Package', - 'headerParams' => [ - [ - 'keyName' => 'package.name', - 'fieldAccessors' => [ - 'getPackage', - 'getName', - ], - ], - ], - ], - 'UpdateProjectSettings' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\ProjectSettings', - 'headerParams' => [ - [ - 'keyName' => 'project_settings.name', - 'fieldAccessors' => [ - 'getProjectSettings', - 'getName', - ], - ], - ], - ], - 'UpdateRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Repository', - 'headerParams' => [ - [ - 'keyName' => 'repository.name', - 'fieldAccessors' => [ - 'getRepository', - 'getName', - ], - ], - ], - ], - 'UpdateRule' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Rule', - 'headerParams' => [ - [ - 'keyName' => 'rule.name', - 'fieldAccessors' => [ - 'getRule', - 'getName', - ], - ], - ], - ], - 'UpdateTag' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Tag', - 'headerParams' => [ - [ - 'keyName' => 'tag.name', - 'fieldAccessors' => [ - 'getTag', - 'getName', - ], - ], - ], - ], - 'UpdateVPCSCConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\VPCSCConfig', - 'headerParams' => [ - [ - 'keyName' => 'vpcsc_config.name', - 'fieldAccessors' => [ - 'getVpcscConfig', - 'getName', - ], - ], - ], - ], - 'UpdateVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ArtifactRegistry\V1\Version', - 'headerParams' => [ - [ - 'keyName' => 'version.name', - 'fieldAccessors' => [ - 'getVersion', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'attachment' => 'projects/{project}/locations/{location}/repositories/{repository}/attachments/{attachment}', - 'dockerImage' => 'projects/{project}/locations/{location}/repositories/{repository}/dockerImages/{docker_image}', - 'file' => 'projects/{project}/locations/{location}/repositories/{repository}/files/{file}', - 'location' => 'projects/{project}/locations/{location}', - 'mavenArtifact' => 'projects/{project}/locations/{location}/repositories/{repository}/mavenArtifacts/{maven_artifact}', - 'npmPackage' => 'projects/{project}/locations/{location}/repositories/{repository}/npmPackages/{npm_package}', - 'package' => 'projects/{project}/locations/{location}/repositories/{repository}/packages/{package}', - 'projectSettings' => 'projects/{project}/projectSettings', - 'pythonPackage' => 'projects/{project}/locations/{location}/repositories/{repository}/pythonPackages/{python_package}', - 'repository' => 'projects/{project}/locations/{location}/repositories/{repository}', - 'rule' => 'projects/{project}/locations/{location}/repositories/{repository}/rules/{rule}', - 'secretVersion' => 'projects/{project}/secrets/{secret}/versions/{secret_version}', - 'tag' => 'projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}', - 'version' => 'projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}', - 'vpcscConfig' => 'projects/{project}/locations/{location}/vpcscConfig', - ], - ], - ], -]; diff --git a/owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_rest_client_config.php b/owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_rest_client_config.php deleted file mode 100644 index 29ec04db60ad..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/src/V1/resources/artifact_registry_rest_client_config.php +++ /dev/null @@ -1,636 +0,0 @@ - [ - '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.devtools.artifactregistry.v1.ArtifactRegistry' => [ - 'BatchDeleteVersions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versions:batchDelete', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateAttachment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/attachments', - 'body' => 'attachment', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'attachment_id', - ], - ], - 'CreateRepository' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/repositories', - 'body' => 'repository', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRule' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/rules', - 'body' => 'rule', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTag' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags', - 'body' => 'tag', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteAttachment' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/attachments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFile' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/files/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeletePackage' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/packages/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRepository' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRule' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/rules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTag' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteVersion' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAttachment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/attachments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDockerImage' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/dockerImages/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFile' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/files/**}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:getIamPolicy', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'GetMavenArtifact' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/mavenArtifacts/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetNpmPackage' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/npmPackages/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetPackage' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/packages/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProjectSettings' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/projectSettings}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetPythonPackage' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/pythonPackages/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRepository' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRule' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/rules/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTag' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/packages/*/tags/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetVPCSCConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/vpcscConfig}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetVersion' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/repositories/*/packages/*/versions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ImportAptArtifacts' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/aptArtifacts:import', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ImportYumArtifacts' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/yumArtifacts:import', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListAttachments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/attachments', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDockerImages' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/dockerImages', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/files', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMavenArtifacts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/mavenArtifacts', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListNpmPackages' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/npmPackages', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListPackages' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/packages', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListPythonPackages' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/pythonPackages', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRepositories' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/repositories', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRules' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*}/rules', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTags' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/tags', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListVersions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/repositories/*/packages/*}/versions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/repositories/*}:testIamPermissions', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateFile' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{file.name=projects/*/locations/*/repositories/*/files/*}', - 'body' => 'file', - 'placeholders' => [ - 'file.name' => [ - 'getters' => [ - 'getFile', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdatePackage' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{package.name=projects/*/locations/*/repositories/*/packages/*}', - 'body' => 'package', - 'placeholders' => [ - 'package.name' => [ - 'getters' => [ - 'getPackage', - 'getName', - ], - ], - ], - ], - 'UpdateProjectSettings' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{project_settings.name=projects/*/projectSettings}', - 'body' => 'project_settings', - 'placeholders' => [ - 'project_settings.name' => [ - 'getters' => [ - 'getProjectSettings', - 'getName', - ], - ], - ], - ], - 'UpdateRepository' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{repository.name=projects/*/locations/*/repositories/*}', - 'body' => 'repository', - 'placeholders' => [ - 'repository.name' => [ - 'getters' => [ - 'getRepository', - 'getName', - ], - ], - ], - ], - 'UpdateRule' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{rule.name=projects/*/locations/*/repositories/*/rules/*}', - 'body' => 'rule', - 'placeholders' => [ - 'rule.name' => [ - 'getters' => [ - 'getRule', - 'getName', - ], - ], - ], - ], - 'UpdateTag' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{tag.name=projects/*/locations/*/repositories/*/packages/*/tags/*}', - 'body' => 'tag', - 'placeholders' => [ - 'tag.name' => [ - 'getters' => [ - 'getTag', - 'getName', - ], - ], - ], - ], - 'UpdateVPCSCConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{vpcsc_config.name=projects/*/locations/*/vpcscConfig}', - 'body' => 'vpcsc_config', - 'placeholders' => [ - 'vpcsc_config.name' => [ - 'getters' => [ - 'getVpcscConfig', - 'getName', - ], - ], - ], - ], - 'UpdateVersion' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{version.name=projects/*/locations/*/repositories/*/packages/*/versions/*}', - 'body' => 'version', - 'placeholders' => [ - 'version.name' => [ - 'getters' => [ - 'getVersion', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ArtifactRegistry/v1/tests/Unit/V1/Client/ArtifactRegistryClientTest.php b/owl-bot-staging/ArtifactRegistry/v1/tests/Unit/V1/Client/ArtifactRegistryClientTest.php deleted file mode 100644 index 1f85fb53fa62..000000000000 --- a/owl-bot-staging/ArtifactRegistry/v1/tests/Unit/V1/Client/ArtifactRegistryClientTest.php +++ /dev/null @@ -1,4171 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ArtifactRegistryClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ArtifactRegistryClient($options); - } - - /** @test */ - public function batchDeleteVersionsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchDeleteVersionsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchDeleteVersionsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedNames = [ - $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[PACKAGE]', '[VERSION]'), - ]; - $request = (new BatchDeleteVersionsRequest()) - ->setNames($formattedNames); - $response = $gapicClient->batchDeleteVersions($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.devtools.artifactregistry.v1.ArtifactRegistry/BatchDeleteVersions', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchDeleteVersionsTest'); - $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 batchDeleteVersionsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchDeleteVersionsTest'); - $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 - $formattedNames = [ - $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[PACKAGE]', '[VERSION]'), - ]; - $request = (new BatchDeleteVersionsRequest()) - ->setNames($formattedNames); - $response = $gapicClient->batchDeleteVersions($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchDeleteVersionsTest'); - 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 createAttachmentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAttachmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $target = 'target-880905839'; - $type = 'type3575610'; - $attachmentNamespace = 'attachmentNamespace1367660863'; - $ociVersionName = 'ociVersionName-1366178692'; - $expectedResponse = new Attachment(); - $expectedResponse->setName($name); - $expectedResponse->setTarget($target); - $expectedResponse->setType($type); - $expectedResponse->setAttachmentNamespace($attachmentNamespace); - $expectedResponse->setOciVersionName($ociVersionName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createAttachmentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $attachmentId = 'attachmentId-1506844233'; - $attachment = new Attachment(); - $attachmentTarget = 'attachmentTarget279842964'; - $attachment->setTarget($attachmentTarget); - $attachmentFiles = [ - $gapicClient->fileName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[FILE]'), - ]; - $attachment->setFiles($attachmentFiles); - $request = (new CreateAttachmentRequest()) - ->setParent($formattedParent) - ->setAttachmentId($attachmentId) - ->setAttachment($attachment); - $response = $gapicClient->createAttachment($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.devtools.artifactregistry.v1.ArtifactRegistry/CreateAttachment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getAttachmentId(); - $this->assertProtobufEquals($attachmentId, $actualValue); - $actualValue = $actualApiRequestObject->getAttachment(); - $this->assertProtobufEquals($attachment, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAttachmentTest'); - $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 createAttachmentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createAttachmentTest'); - $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->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $attachmentId = 'attachmentId-1506844233'; - $attachment = new Attachment(); - $attachmentTarget = 'attachmentTarget279842964'; - $attachment->setTarget($attachmentTarget); - $attachmentFiles = [ - $gapicClient->fileName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[FILE]'), - ]; - $attachment->setFiles($attachmentFiles); - $request = (new CreateAttachmentRequest()) - ->setParent($formattedParent) - ->setAttachmentId($attachmentId) - ->setAttachment($attachment); - $response = $gapicClient->createAttachment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createAttachmentTest'); - 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 createRepositoryTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRepositoryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $kmsKeyName = 'kmsKeyName2094986649'; - $sizeBytes = 1796325715; - $satisfiesPzs = false; - $cleanupPolicyDryRun = false; - $disallowUnspecifiedMode = false; - $satisfiesPzi = false; - $expectedResponse = new Repository(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setCleanupPolicyDryRun($cleanupPolicyDryRun); - $expectedResponse->setDisallowUnspecifiedMode($disallowUnspecifiedMode); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createRepositoryTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new CreateRepositoryRequest()) - ->setParent($formattedParent); - $response = $gapicClient->createRepository($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.devtools.artifactregistry.v1.ArtifactRegistry/CreateRepository', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRepositoryTest'); - $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 createRepositoryExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRepositoryTest'); - $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 CreateRepositoryRequest()) - ->setParent($formattedParent); - $response = $gapicClient->createRepository($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRepositoryTest'); - 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 createRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $packageId = 'packageId29331380'; - $expectedResponse = new Rule(); - $expectedResponse->setName($name); - $expectedResponse->setPackageId($packageId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new CreateRuleRequest()) - ->setParent($formattedParent); - $response = $gapicClient->createRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/CreateRule', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new CreateRuleRequest()) - ->setParent($formattedParent); - try { - $gapicClient->createRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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'; - $version = 'version351608024'; - $expectedResponse = new Tag(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $transport->addResponse($expectedResponse); - $request = new CreateTagRequest(); - $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.devtools.artifactregistry.v1.ArtifactRegistry/CreateTag', $actualFuncCall); - $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); - $request = new CreateTagRequest(); - 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 deleteAttachmentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteAttachmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteAttachmentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->attachmentName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[ATTACHMENT]'); - $request = (new DeleteAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAttachment($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.devtools.artifactregistry.v1.ArtifactRegistry/DeleteAttachment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAttachmentTest'); - $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 deleteAttachmentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteAttachmentTest'); - $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->attachmentName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[ATTACHMENT]'); - $request = (new DeleteAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteAttachment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteAttachmentTest'); - 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 deleteFileTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFileTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteFileTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->fileName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[FILE]'); - $request = (new DeleteFileRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFile($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.devtools.artifactregistry.v1.ArtifactRegistry/DeleteFile', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFileTest'); - $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 deleteFileExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFileTest'); - $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->fileName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[FILE]'); - $request = (new DeleteFileRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFile($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFileTest'); - 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 deletePackageTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deletePackageTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deletePackageTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->packageName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[PACKAGE]'); - $request = (new DeletePackageRequest()) - ->setName($formattedName); - $response = $gapicClient->deletePackage($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.devtools.artifactregistry.v1.ArtifactRegistry/DeletePackage', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deletePackageTest'); - $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 deletePackageExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deletePackageTest'); - $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->packageName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[PACKAGE]'); - $request = (new DeletePackageRequest()) - ->setName($formattedName); - $response = $gapicClient->deletePackage($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deletePackageTest'); - 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 deleteRepositoryTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteRepositoryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteRepositoryTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new DeleteRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteRepository($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.devtools.artifactregistry.v1.ArtifactRegistry/DeleteRepository', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteRepositoryTest'); - $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 deleteRepositoryExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteRepositoryTest'); - $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->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new DeleteRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteRepository($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteRepositoryTest'); - 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 deleteRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RULE]'); - $request = (new DeleteRuleRequest()) - ->setName($formattedName); - $gapicClient->deleteRule($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/DeleteRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RULE]'); - $request = (new DeleteRuleRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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); - $request = new DeleteTagRequest(); - $gapicClient->deleteTag($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/DeleteTag', $actualFuncCall); - $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); - $request = new DeleteTagRequest(); - 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 deleteVersionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new DeleteVersionRequest(); - $response = $gapicClient->deleteVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/DeleteVersion', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteVersionTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteVersionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new DeleteVersionRequest(); - $response = $gapicClient->deleteVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteVersionTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function getAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $target = 'target-880905839'; - $type = 'type3575610'; - $attachmentNamespace = 'attachmentNamespace1367660863'; - $ociVersionName = 'ociVersionName-1366178692'; - $expectedResponse = new Attachment(); - $expectedResponse->setName($name2); - $expectedResponse->setTarget($target); - $expectedResponse->setType($type); - $expectedResponse->setAttachmentNamespace($attachmentNamespace); - $expectedResponse->setOciVersionName($ociVersionName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->attachmentName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[ATTACHMENT]'); - $request = (new GetAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->getAttachment($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->attachmentName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[ATTACHMENT]'); - $request = (new GetAttachmentRequest()) - ->setName($formattedName); - try { - $gapicClient->getAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDockerImageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uri = 'uri116076'; - $imageSizeBytes = 837030929; - $mediaType = 'mediaType1939875509'; - $expectedResponse = new DockerImage(); - $expectedResponse->setName($name2); - $expectedResponse->setUri($uri); - $expectedResponse->setImageSizeBytes($imageSizeBytes); - $expectedResponse->setMediaType($mediaType); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dockerImageName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[DOCKER_IMAGE]'); - $request = (new GetDockerImageRequest()) - ->setName($formattedName); - $response = $gapicClient->getDockerImage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetDockerImage', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDockerImageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dockerImageName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[DOCKER_IMAGE]'); - $request = (new GetDockerImageRequest()) - ->setName($formattedName); - try { - $gapicClient->getDockerImage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $sizeBytes = 1796325715; - $owner = 'owner106164915'; - $expectedResponse = new File(); - $expectedResponse->setName($name2); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setOwner($owner); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->fileName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[FILE]'); - $request = (new GetFileRequest()) - ->setName($formattedName); - $response = $gapicClient->getFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetFile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->fileName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[FILE]'); - $request = (new GetFileRequest()) - ->setName($formattedName); - try { - $gapicClient->getFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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.devtools.artifactregistry.v1.ArtifactRegistry/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 getMavenArtifactTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $pomUri = 'pomUri-397357061'; - $groupId = 'groupId506361563'; - $artifactId = 'artifactId-1130052952'; - $version = 'version351608024'; - $expectedResponse = new MavenArtifact(); - $expectedResponse->setName($name2); - $expectedResponse->setPomUri($pomUri); - $expectedResponse->setGroupId($groupId); - $expectedResponse->setArtifactId($artifactId); - $expectedResponse->setVersion($version); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->mavenArtifactName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[MAVEN_ARTIFACT]'); - $request = (new GetMavenArtifactRequest()) - ->setName($formattedName); - $response = $gapicClient->getMavenArtifact($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetMavenArtifact', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMavenArtifactExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->mavenArtifactName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[MAVEN_ARTIFACT]'); - $request = (new GetMavenArtifactRequest()) - ->setName($formattedName); - try { - $gapicClient->getMavenArtifact($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNpmPackageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $packageName = 'packageName-1877165340'; - $version = 'version351608024'; - $expectedResponse = new NpmPackage(); - $expectedResponse->setName($name2); - $expectedResponse->setPackageName($packageName); - $expectedResponse->setVersion($version); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->npmPackageName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[NPM_PACKAGE]'); - $request = (new GetNpmPackageRequest()) - ->setName($formattedName); - $response = $gapicClient->getNpmPackage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetNpmPackage', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNpmPackageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->npmPackageName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[NPM_PACKAGE]'); - $request = (new GetNpmPackageRequest()) - ->setName($formattedName); - try { - $gapicClient->getNpmPackage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPackageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Package(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->packageName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[PACKAGE]'); - $request = (new GetPackageRequest()) - ->setName($formattedName); - $response = $gapicClient->getPackage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetPackage', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPackageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->packageName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[PACKAGE]'); - $request = (new GetPackageRequest()) - ->setName($formattedName); - try { - $gapicClient->getPackage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProjectSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $pullPercent = 1781572683; - $expectedResponse = new ProjectSettings(); - $expectedResponse->setName($name2); - $expectedResponse->setPullPercent($pullPercent); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->projectSettingsName('[PROJECT]'); - $request = (new GetProjectSettingsRequest()) - ->setName($formattedName); - $response = $gapicClient->getProjectSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetProjectSettings', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProjectSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->projectSettingsName('[PROJECT]'); - $request = (new GetProjectSettingsRequest()) - ->setName($formattedName); - try { - $gapicClient->getProjectSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPythonPackageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uri = 'uri116076'; - $packageName = 'packageName-1877165340'; - $version = 'version351608024'; - $expectedResponse = new PythonPackage(); - $expectedResponse->setName($name2); - $expectedResponse->setUri($uri); - $expectedResponse->setPackageName($packageName); - $expectedResponse->setVersion($version); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->pythonPackageName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[PYTHON_PACKAGE]'); - $request = (new GetPythonPackageRequest()) - ->setName($formattedName); - $response = $gapicClient->getPythonPackage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetPythonPackage', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPythonPackageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->pythonPackageName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[PYTHON_PACKAGE]'); - $request = (new GetPythonPackageRequest()) - ->setName($formattedName); - try { - $gapicClient->getPythonPackage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $kmsKeyName = 'kmsKeyName2094986649'; - $sizeBytes = 1796325715; - $satisfiesPzs = false; - $cleanupPolicyDryRun = false; - $disallowUnspecifiedMode = false; - $satisfiesPzi = false; - $expectedResponse = new Repository(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setCleanupPolicyDryRun($cleanupPolicyDryRun); - $expectedResponse->setDisallowUnspecifiedMode($disallowUnspecifiedMode); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new GetRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getRepository($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new GetRepositoryRequest()) - ->setName($formattedName); - try { - $gapicClient->getRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $packageId = 'packageId29331380'; - $expectedResponse = new Rule(); - $expectedResponse->setName($name2); - $expectedResponse->setPackageId($packageId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RULE]'); - $request = (new GetRuleRequest()) - ->setName($formattedName); - $response = $gapicClient->getRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetRule', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->ruleName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[RULE]'); - $request = (new GetRuleRequest()) - ->setName($formattedName); - try { - $gapicClient->getRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTagTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $version = 'version351608024'; - $expectedResponse = new Tag(); - $expectedResponse->setName($name2); - $expectedResponse->setVersion($version); - $transport->addResponse($expectedResponse); - $request = new GetTagRequest(); - $response = $gapicClient->getTag($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetTag', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTagExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetTagRequest(); - try { - $gapicClient->getTag($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVPCSCConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new VPCSCConfig(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->vpcscConfigName('[PROJECT]', '[LOCATION]'); - $request = (new GetVPCSCConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getVPCSCConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetVPCSCConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVPCSCConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->vpcscConfigName('[PROJECT]', '[LOCATION]'); - $request = (new GetVPCSCConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getVPCSCConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $expectedResponse = new Version(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - $request = new GetVersionRequest(); - $response = $gapicClient->getVersion($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/GetVersion', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetVersionRequest(); - try { - $gapicClient->getVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function importAptArtifactsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importAptArtifactsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new ImportAptArtifactsResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/importAptArtifactsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new ImportAptArtifactsRequest(); - $response = $gapicClient->importAptArtifacts($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.devtools.artifactregistry.v1.ArtifactRegistry/ImportAptArtifacts', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importAptArtifactsTest'); - $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 importAptArtifactsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importAptArtifactsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new ImportAptArtifactsRequest(); - $response = $gapicClient->importAptArtifacts($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importAptArtifactsTest'); - 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 importYumArtifactsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importYumArtifactsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new ImportYumArtifactsResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/importYumArtifactsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new ImportYumArtifactsRequest(); - $response = $gapicClient->importYumArtifacts($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.devtools.artifactregistry.v1.ArtifactRegistry/ImportYumArtifacts', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importYumArtifactsTest'); - $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 importYumArtifactsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importYumArtifactsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new ImportYumArtifactsRequest(); - $response = $gapicClient->importYumArtifacts($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importYumArtifactsTest'); - 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 listAttachmentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $attachmentsElement = new Attachment(); - $attachments = [ - $attachmentsElement, - ]; - $expectedResponse = new ListAttachmentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setAttachments($attachments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListAttachmentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listAttachments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getAttachments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/ListAttachments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listAttachmentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListAttachmentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listAttachments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDockerImagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dockerImagesElement = new DockerImage(); - $dockerImages = [ - $dockerImagesElement, - ]; - $expectedResponse = new ListDockerImagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDockerImages($dockerImages); - $transport->addResponse($expectedResponse); - // Mock request - $parent = 'parent-995424086'; - $request = (new ListDockerImagesRequest()) - ->setParent($parent); - $response = $gapicClient->listDockerImages($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDockerImages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/ListDockerImages', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($parent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDockerImagesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 ListDockerImagesRequest()) - ->setParent($parent); - try { - $gapicClient->listDockerImages($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $filesElement = new File(); - $files = [ - $filesElement, - ]; - $expectedResponse = new ListFilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFiles($files); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListFilesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/ListFiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListFilesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMavenArtifactsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $mavenArtifactsElement = new MavenArtifact(); - $mavenArtifacts = [ - $mavenArtifactsElement, - ]; - $expectedResponse = new ListMavenArtifactsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMavenArtifacts($mavenArtifacts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListMavenArtifactsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMavenArtifacts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMavenArtifacts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/ListMavenArtifacts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMavenArtifactsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListMavenArtifactsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMavenArtifacts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNpmPackagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $npmPackagesElement = new NpmPackage(); - $npmPackages = [ - $npmPackagesElement, - ]; - $expectedResponse = new ListNpmPackagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setNpmPackages($npmPackages); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListNpmPackagesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listNpmPackages($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getNpmPackages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/ListNpmPackages', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNpmPackagesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListNpmPackagesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listNpmPackages($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPackagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $packagesElement = new Package(); - $packages = [ - $packagesElement, - ]; - $expectedResponse = new ListPackagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setPackages($packages); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListPackagesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listPackages($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getPackages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/ListPackages', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPackagesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListPackagesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listPackages($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPythonPackagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $pythonPackagesElement = new PythonPackage(); - $pythonPackages = [ - $pythonPackagesElement, - ]; - $expectedResponse = new ListPythonPackagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setPythonPackages($pythonPackages); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListPythonPackagesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listPythonPackages($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getPythonPackages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/ListPythonPackages', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPythonPackagesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListPythonPackagesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listPythonPackages($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRepositoriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $repositoriesElement = new Repository(); - $repositories = [ - $repositoriesElement, - ]; - $expectedResponse = new ListRepositoriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRepositories($repositories); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListRepositoriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRepositories($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRepositories()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/ListRepositories', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRepositoriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListRepositoriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRepositories($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRulesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $rulesElement = new Rule(); - $rules = [ - $rulesElement, - ]; - $expectedResponse = new ListRulesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRules($rules); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListRulesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRules($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRules()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/ListRules', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRulesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[REPOSITORY]'); - $request = (new ListRulesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRules($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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); - $request = new ListTagsRequest(); - $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.devtools.artifactregistry.v1.ArtifactRegistry/ListTags', $actualFuncCall); - $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); - $request = new ListTagsRequest(); - 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 listVersionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $versionsElement = new Version(); - $versions = [ - $versionsElement, - ]; - $expectedResponse = new ListVersionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setVersions($versions); - $transport->addResponse($expectedResponse); - $request = new ListVersionsRequest(); - $response = $gapicClient->listVersions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getVersions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/ListVersions', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listVersionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListVersionsRequest(); - try { - $gapicClient->listVersions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function 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.devtools.artifactregistry.v1.ArtifactRegistry/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.devtools.artifactregistry.v1.ArtifactRegistry/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 updateFileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $sizeBytes = 1796325715; - $owner = 'owner106164915'; - $expectedResponse = new File(); - $expectedResponse->setName($name); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setOwner($owner); - $transport->addResponse($expectedResponse); - // Mock request - $file = new File(); - $updateMask = new FieldMask(); - $request = (new UpdateFileRequest()) - ->setFile($file) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateFile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateFile', $actualFuncCall); - $actualValue = $actualRequestObject->getFile(); - $this->assertProtobufEquals($file, $actualValue); - $actualValue = $actualRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $file = new File(); - $updateMask = new FieldMask(); - $request = (new UpdateFileRequest()) - ->setFile($file) - ->setUpdateMask($updateMask); - try { - $gapicClient->updateFile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePackageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Package(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new UpdatePackageRequest(); - $response = $gapicClient->updatePackage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/UpdatePackage', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updatePackageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 UpdatePackageRequest(); - try { - $gapicClient->updatePackage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateProjectSettingsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $pullPercent = 1781572683; - $expectedResponse = new ProjectSettings(); - $expectedResponse->setName($name); - $expectedResponse->setPullPercent($pullPercent); - $transport->addResponse($expectedResponse); - $request = new UpdateProjectSettingsRequest(); - $response = $gapicClient->updateProjectSettings($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateProjectSettings', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateProjectSettingsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 UpdateProjectSettingsRequest(); - try { - $gapicClient->updateProjectSettings($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $kmsKeyName = 'kmsKeyName2094986649'; - $sizeBytes = 1796325715; - $satisfiesPzs = false; - $cleanupPolicyDryRun = false; - $disallowUnspecifiedMode = false; - $satisfiesPzi = false; - $expectedResponse = new Repository(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setSizeBytes($sizeBytes); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setCleanupPolicyDryRun($cleanupPolicyDryRun); - $expectedResponse->setDisallowUnspecifiedMode($disallowUnspecifiedMode); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $transport->addResponse($expectedResponse); - $request = new UpdateRepositoryRequest(); - $response = $gapicClient->updateRepository($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateRepository', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 UpdateRepositoryRequest(); - try { - $gapicClient->updateRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRuleTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $packageId = 'packageId29331380'; - $expectedResponse = new Rule(); - $expectedResponse->setName($name); - $expectedResponse->setPackageId($packageId); - $transport->addResponse($expectedResponse); - $request = new UpdateRuleRequest(); - $response = $gapicClient->updateRule($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateRule', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRuleExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 UpdateRuleRequest(); - try { - $gapicClient->updateRule($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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'; - $version = 'version351608024'; - $expectedResponse = new Tag(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $transport->addResponse($expectedResponse); - $request = new UpdateTagRequest(); - $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.devtools.artifactregistry.v1.ArtifactRegistry/UpdateTag', $actualFuncCall); - $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); - $request = new UpdateTagRequest(); - 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 updateVPCSCConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new VPCSCConfig(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - $request = new UpdateVPCSCConfigRequest(); - $response = $gapicClient->updateVPCSCConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateVPCSCConfig', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVPCSCConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 UpdateVPCSCConfigRequest(); - try { - $gapicClient->updateVPCSCConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new Version(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $version = new Version(); - $request = (new UpdateVersionRequest()) - ->setVersion($version); - $response = $gapicClient->updateVersion($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.artifactregistry.v1.ArtifactRegistry/UpdateVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getVersion(); - $this->assertProtobufEquals($version, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $version = new Version(); - $request = (new UpdateVersionRequest()) - ->setVersion($version); - try { - $gapicClient->updateVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $locationId = 'locationId552319461'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Location(); - $expectedResponse->setName($name2); - $expectedResponse->setLocationId($locationId); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - $request = new GetLocationRequest(); - $response = $gapicClient->getLocation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/GetLocation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getLocationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetLocationRequest(); - try { - $gapicClient->getLocation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $locationsElement = new Location(); - $locations = [ - $locationsElement, - ]; - $expectedResponse = new ListLocationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setLocations($locations); - $transport->addResponse($expectedResponse); - $request = new ListLocationsRequest(); - $response = $gapicClient->listLocations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getLocations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.location.Locations/ListLocations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListLocationsRequest(); - try { - $gapicClient->listLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchDeleteVersionsAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchDeleteVersionsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchDeleteVersionsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedNames = [ - $gapicClient->versionName('[PROJECT]', '[LOCATION]', '[REPOSITORY]', '[PACKAGE]', '[VERSION]'), - ]; - $request = (new BatchDeleteVersionsRequest()) - ->setNames($formattedNames); - $response = $gapicClient->batchDeleteVersionsAsync($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.devtools.artifactregistry.v1.ArtifactRegistry/BatchDeleteVersions', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getNames(); - $this->assertProtobufEquals($formattedNames, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchDeleteVersionsTest'); - $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/Build/v2/proto/src/GPBMetadata/Google/Devtools/Cloudbuild/V2/Cloudbuild.php b/owl-bot-staging/Build/v2/proto/src/GPBMetadata/Google/Devtools/Cloudbuild/V2/Cloudbuild.php deleted file mode 100644 index 70eca5b4b2d7..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/GPBMetadata/Google/Devtools/Cloudbuild/V2/Cloudbuild.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' -‹ -.google/devtools/cloudbuild/v2/cloudbuild.protogoogle.devtools.cloudbuild.v2google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.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àA"’ -"RunWorkflowCustomOperationMetadata4 - create_time ( 2.google.protobuf.TimestampBàA1 -end_time ( 2.google.protobuf.TimestampBàA -verb ( BàA# -requested_cancellation (BàA - api_version ( BàA -target ( BàA -pipeline_run_id ( BàAB£ -com.google.cloudbuild.v2BCloudBuildProtoPZ>cloud.google.com/go/cloudbuild/apiv2/cloudbuildpb;cloudbuildpb¢GCBªGoogle.Cloud.CloudBuild.V2ÊGoogle\\Cloud\\Build\\V2êGoogle::Cloud::Build::V2êAN -compute.googleapis.com/Network,projects/{project}/global/networks/{network}êAY -!iam.googleapis.com/ServiceAccount4projects/{project}/serviceAccounts/{service_account}êAJ -#secretmanager.googleapis.com/Secret#projects/{project}/secrets/{secret}êAd -*secretmanager.googleapis.com/SecretVersion6projects/{project}/secrets/{secret}/versions/{version}êA| -0cloudbuild.googleapis.com/githubEnterpriseConfigHprojects/{project}/locations/{location}/githubEnterpriseConfigs/{config}bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Build/v2/proto/src/GPBMetadata/Google/Devtools/Cloudbuild/V2/Repositories.php b/owl-bot-staging/Build/v2/proto/src/GPBMetadata/Google/Devtools/Cloudbuild/V2/Repositories.php deleted file mode 100644 index 0c64b207d04f966227ab0f73112e877bd46c69f5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12102 zcmeHNPi!1l8Sn1qkNuoD&P!r%Hk3@K6-`XKTedBfZIgP}-Z-x8*zuo4sa73kci-BB z$1~HJS*LC=2UH|bB_z}fHxLLRA)y|q=ml};jdBA{kq|v_DrZ3I1-|!Z-pu~<%*N(` zL=WkD=6&D${=eV%&3pAVXUjoPEAzx6uI`hjQr}bjEuuKC?b{98RO;;s%QNN(S^5s~9KAu5`IX8N@%5(e>$Q2tr#2_})Mh20+TG$S2sKRI^OV&HKlBhO z@SoGJn?^(NeBFotJ!5#9VHv)mo5nk!*L9_(n;roMy=z--tKl2ArBH%pt3j?@RX9(& z_8ABC0s26)6>1tVOKrjOiEHU5$m%s*!vXD9U}>qeNqlKg`sB)0u`Ok1w3I7c#!{(A z$m@#lwn=n%MRAGWcCA;K+?2t-{8j5?x3Xi@%9dqQE7+D-Dup_QECvzIng+4_;b?9e z#B5f`mcDD)?r@~HeBY_t&As8MR*49?#H#g=rATBY7huu0Hr=*m8P;ZP*`YZzoRwwp zfa|I|jz5I%l9X9|N%yvsi!Eu_4ahlP-*NiWvRHrah9M%m+-%A~z6t4nMTQ;?#Ane* z8|e9A^BzCRDe^(3$cL38zgx^r35L33KnP!a^yve2Ax(HQ70B$j4ap^q1ES= zE8<7I$_uJMoUXzZ5ze8BpL<%YH^WFM*fJ6X(@SCzBY|2`Ak^35Wl$>RORmihcvP$i zRFy0Iz-@ei`j?Xk&DxelSlz;B(J@*~vneHYWwes{w0s=Dh{hT&fs(FK+H3~ij1_Z2 zSQcayNd;WgLjk{mzEC&(db_br ze2tz}T7yX%2sy%-z8oWDC15cJ9A+5z`vuTm$P7!vKlZ1`!auws3jbJ5r7Gvp+3!(oPJ02E5giyCbrI z#IuqLUqa_}#{tj`F&0z`qsh#XQ9sI{NxnIxpeW9>ta3v{jBMGS&mu-1KxqsC2Faw+ zG^CY=#ZelMqZ4cs!52dvp?`a3dz00XQM`t7Q2KZ283eSNM?f)O+a<0CNGnTEq|r*@ z^YS$`&0p>47P!t8%F6s*V{~^p8NQ32d_d}3w!IxN?BYvLtjFLxz-F{sXYf6g^@zJ` zG>FzTpf*B(uou*G1S`ghaR=HOC!Y(bg~h>$o@Z(eJv&Cl2G5PtjUWgDGtufRGWUZF z3mbWmQImK23)gCK=HVscB}gj37Q-7q2S}u;^$%8#OrDDg)(ucFj8$5!()iAx_~)?Y zaabPYG7f4E?J^2w`nilk65+BxWYEQdFkw)>{ojeY$>RbnF*xxK<3-9oh0n?CW3J>6 zds8st&kxh+y!2-Tn!)Kf`oMO#*$_k=Tr9HhC(FkoJLHC~g#RnasJ?+F2Nb{=bdnZ4 zsI0sP?RQE(>n&xxnbue`XMh9J+lvD8NE4*|FgqqF6|Rq;z*{m9R>TPf7(27@1gwFAa}kbu+Q9G<^jM(!X8@{yd?2U}1;cL~7F2hP6bldC zU?8}+KivVqir_^td)x!O4Iu7JH}V0zMY`~y%^xSx2kie*3QfU53h)ZRgy>cRApI&j;pi@aNRd?nMB`*_Ql$fi zQm;s(rbq$NCXNRlohG|u2I;@1!W8*IiCt`3y$bRiA=;aymeBP2S|Vs*3M z;7JZK0neOKFfP++k6mu;DQ zToN@*nXrBZ78?*I3Hwg4cUYW+sgie!GG#&@T`BXc6#8OChxVCgyc8ck!W@kPOK8O9 zUAPD0(-4gtN_0uGC*)wdsC9ICptwiWUW+m!O%VuyhYq8Vh57@?DVoUgQM`cv&YBotQ2&}j=a|wkvsxuBS?vxT2Y8WIyq4zgIebz$9y`hIBS#)& zS_cm5%jl%|3G?&wtJRy@`u&ye+3HD@fr%>&QxQ5*SuNk5g#oI16`k*7EZhkNgUZLg ztuxdxTKxDDIvYmv5}%jhAEwbnHxR_hs(0ui;pW_vfomdP#q#p|sQUBNC*|uMU#tpz z+&A!-x^wfC+WbgRKFujjIPN6eh5E93Y zsJhk%Qpfqehm1#@I`gP3+J+7#lDh!E524r%Nn=B?n;=jlCKP{h1fe(?i9zwXlww_` z{;gt(MPRrjpWK}t!T669n&`&7u~z9ONNAPsgH>*!3nD2YZP*Q$JiDQQhtJhWNKX$P z(m#=fDJ)vCdJlk=afRta9u1L=hF3NyOs)hN*TSDcVOmsg#22Qn1%s`|qx9ject(_WSF{r>nU>Yp4{5b}*!`4J)A)D1z(@R@ zpumT#10%&1_>e+fiWc}8%%dQ2Md%2D0@V9ILs95P_OZ#)O%SN@wU|)pr4uE8xwGU4 zY8_be4+?JlF62BfU7_h>)#@e))QUL)e)Qj}bu-h4_3pm|*xK2};IGFxsxQ80AIEcX z_bmF73OB#?s2r&}EF<4k@3V|_WwA>HRJ!B1q&H}@(5WU((7&h9xD<)?S@^}I%17I> zTpS4M+yw3vvak25*{kw>b^VA{W`a^}|CK@)nIQeHH{jQjDBh1UNQ9ZkXCTaRk2(Dg zUS<{uF-;<;@0VJGu5Msx&`vSUMT3TmNo4Kp=5lehJGz1NaI4qDYxvHQc$ldxWXvsn zQocCwdeI-td3r<9D-{Y49y}1L%exEoTLiy`_?!b*wpzBkQ~7-wW#L{@V5JD>-C|`j zteT>|gKpfnS5j}>U<)M`Tx{C3qcTdT1*HMp()Svt#Kl}e1TRAR46C3sc-R`QQ^_>OGkVs2ou zwwGQhhYMKp_kKZq6oiN3*M9v31Gz6eD{r)3<5#aEH?`p&4BRB|b4#18google.devtools.cloudbuild.v2.BatchCreateRepositoriesRequest - */ -class BatchCreateRepositoriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The connection to contain all the repositories being created. - * Format: projects/*/locations/*/connections/* - * The parent field in the CreateRepositoryRequest messages - * must either be empty or match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The request messages specifying the repositories to create. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * @param string $parent Required. The connection to contain all the repositories being created. - * Format: projects/*/locations/*/connections/* - * The parent field in the CreateRepositoryRequest messages - * must either be empty or match this field. Please see - * {@see RepositoryManagerClient::connectionName()} for help formatting this field. - * @param \Google\Cloud\Build\V2\CreateRepositoryRequest[] $requests Required. The request messages specifying the repositories to create. - * - * @return \Google\Cloud\Build\V2\BatchCreateRepositoriesRequest - * - * @experimental - */ - public static function build(string $parent, array $requests): self - { - return (new self()) - ->setParent($parent) - ->setRequests($requests); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The connection to contain all the repositories being created. - * Format: projects/*/locations/*/connections/* - * The parent field in the CreateRepositoryRequest messages - * must either be empty or match this field. - * @type array<\Google\Cloud\Build\V2\CreateRepositoryRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The request messages specifying the repositories to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The connection to contain all the repositories being created. - * Format: projects/*/locations/*/connections/* - * The parent field in the CreateRepositoryRequest messages - * must either be empty or match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The connection to contain all the repositories being created. - * Format: projects/*/locations/*/connections/* - * The parent field in the CreateRepositoryRequest messages - * must either be empty or match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The request messages specifying the repositories to create. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The request messages specifying the repositories to create. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.CreateRepositoryRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Build\V2\CreateRepositoryRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Build\V2\CreateRepositoryRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BatchCreateRepositoriesResponse.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BatchCreateRepositoriesResponse.php deleted file mode 100644 index 4aec29b05e24..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BatchCreateRepositoriesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.devtools.cloudbuild.v2.BatchCreateRepositoriesResponse - */ -class BatchCreateRepositoriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Repository resources created. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Repository repositories = 1; - */ - private $repositories; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Build\V2\Repository>|\Google\Protobuf\Internal\RepeatedField $repositories - * Repository resources created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Repository resources created. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Repository repositories = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRepositories() - { - return $this->repositories; - } - - /** - * Repository resources created. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Repository repositories = 1; - * @param array<\Google\Cloud\Build\V2\Repository>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRepositories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Build\V2\Repository::class); - $this->repositories = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BitbucketCloudConfig.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BitbucketCloudConfig.php deleted file mode 100644 index b0c857475261..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BitbucketCloudConfig.php +++ /dev/null @@ -1,217 +0,0 @@ -google.devtools.cloudbuild.v2.BitbucketCloudConfig - */ -class BitbucketCloudConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud - * Platform. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $workspace = ''; - /** - * Required. SecretManager resource containing the webhook secret used to - * verify webhook events, formatted as `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $webhook_secret_secret_version = ''; - /** - * Required. An access token with the `repository` access. It can be either a - * workspace, project or repository access token. It's recommended to use a - * system account to generate the credentials. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $read_authorizer_credential = null; - /** - * Required. An access token with the `webhook`, `repository`, - * `repository:admin` and `pullrequest` scope access. It can be either a - * workspace, project or repository access token. It's recommended to use a - * system account to generate these credentials. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorizer_credential = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workspace - * Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud - * Platform. - * @type string $webhook_secret_secret_version - * Required. SecretManager resource containing the webhook secret used to - * verify webhook events, formatted as `projects/*/secrets/*/versions/*`. - * @type \Google\Cloud\Build\V2\UserCredential $read_authorizer_credential - * Required. An access token with the `repository` access. It can be either a - * workspace, project or repository access token. It's recommended to use a - * system account to generate the credentials. - * @type \Google\Cloud\Build\V2\UserCredential $authorizer_credential - * Required. An access token with the `webhook`, `repository`, - * `repository:admin` and `pullrequest` scope access. It can be either a - * workspace, project or repository access token. It's recommended to use a - * system account to generate these credentials. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud - * Platform. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getWorkspace() - { - return $this->workspace; - } - - /** - * Required. The Bitbucket Cloud Workspace ID to be connected to Google Cloud - * Platform. - * - * Generated from protobuf field string workspace = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setWorkspace($var) - { - GPBUtil::checkString($var, True); - $this->workspace = $var; - - return $this; - } - - /** - * Required. SecretManager resource containing the webhook secret used to - * verify webhook events, formatted as `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getWebhookSecretSecretVersion() - { - return $this->webhook_secret_secret_version; - } - - /** - * Required. SecretManager resource containing the webhook secret used to - * verify webhook events, formatted as `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWebhookSecretSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->webhook_secret_secret_version = $var; - - return $this; - } - - /** - * Required. An access token with the `repository` access. It can be either a - * workspace, project or repository access token. It's recommended to use a - * system account to generate the credentials. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Build\V2\UserCredential|null - */ - public function getReadAuthorizerCredential() - { - return $this->read_authorizer_credential; - } - - public function hasReadAuthorizerCredential() - { - return isset($this->read_authorizer_credential); - } - - public function clearReadAuthorizerCredential() - { - unset($this->read_authorizer_credential); - } - - /** - * Required. An access token with the `repository` access. It can be either a - * workspace, project or repository access token. It's recommended to use a - * system account to generate the credentials. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Build\V2\UserCredential $var - * @return $this - */ - public function setReadAuthorizerCredential($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\UserCredential::class); - $this->read_authorizer_credential = $var; - - return $this; - } - - /** - * Required. An access token with the `webhook`, `repository`, - * `repository:admin` and `pullrequest` scope access. It can be either a - * workspace, project or repository access token. It's recommended to use a - * system account to generate these credentials. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Build\V2\UserCredential|null - */ - public function getAuthorizerCredential() - { - return $this->authorizer_credential; - } - - public function hasAuthorizerCredential() - { - return isset($this->authorizer_credential); - } - - public function clearAuthorizerCredential() - { - unset($this->authorizer_credential); - } - - /** - * Required. An access token with the `webhook`, `repository`, - * `repository:admin` and `pullrequest` scope access. It can be either a - * workspace, project or repository access token. It's recommended to use a - * system account to generate these credentials. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Build\V2\UserCredential $var - * @return $this - */ - public function setAuthorizerCredential($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\UserCredential::class); - $this->authorizer_credential = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BitbucketDataCenterConfig.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BitbucketDataCenterConfig.php deleted file mode 100644 index 5927ea5a1b98..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/BitbucketDataCenterConfig.php +++ /dev/null @@ -1,333 +0,0 @@ -google.devtools.cloudbuild.v2.BitbucketDataCenterConfig - */ -class BitbucketDataCenterConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The URI of the Bitbucket Data Center instance or cluster this - * connection is for. - * - * Generated from protobuf field string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $host_uri = ''; - /** - * Required. Immutable. SecretManager resource containing the webhook secret - * used to verify webhook events, formatted as - * `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $webhook_secret_secret_version = ''; - /** - * Required. A http access token with the `REPO_READ` access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $read_authorizer_credential = null; - /** - * Required. A http access token with the `REPO_ADMIN` scope access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorizer_credential = null; - /** - * Optional. Configuration for using Service Directory to privately connect to - * a Bitbucket Data Center. This should only be set if the Bitbucket Data - * Center is hosted on-premises and not reachable by public internet. If this - * field is left empty, calls to the Bitbucket Data Center will be made over - * the public internet. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_directory_config = null; - /** - * Optional. SSL certificate to use for requests to the Bitbucket Data Center. - * - * Generated from protobuf field string ssl_ca = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ssl_ca = ''; - /** - * Output only. Version of the Bitbucket Data Center running on the - * `host_uri`. - * - * Generated from protobuf field string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $server_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $host_uri - * Required. The URI of the Bitbucket Data Center instance or cluster this - * connection is for. - * @type string $webhook_secret_secret_version - * Required. Immutable. SecretManager resource containing the webhook secret - * used to verify webhook events, formatted as - * `projects/*/secrets/*/versions/*`. - * @type \Google\Cloud\Build\V2\UserCredential $read_authorizer_credential - * Required. A http access token with the `REPO_READ` access. - * @type \Google\Cloud\Build\V2\UserCredential $authorizer_credential - * Required. A http access token with the `REPO_ADMIN` scope access. - * @type \Google\Cloud\Build\V2\ServiceDirectoryConfig $service_directory_config - * Optional. Configuration for using Service Directory to privately connect to - * a Bitbucket Data Center. This should only be set if the Bitbucket Data - * Center is hosted on-premises and not reachable by public internet. If this - * field is left empty, calls to the Bitbucket Data Center will be made over - * the public internet. - * @type string $ssl_ca - * Optional. SSL certificate to use for requests to the Bitbucket Data Center. - * @type string $server_version - * Output only. Version of the Bitbucket Data Center running on the - * `host_uri`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The URI of the Bitbucket Data Center instance or cluster this - * connection is for. - * - * Generated from protobuf field string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getHostUri() - { - return $this->host_uri; - } - - /** - * Required. The URI of the Bitbucket Data Center instance or cluster this - * connection is for. - * - * Generated from protobuf field string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setHostUri($var) - { - GPBUtil::checkString($var, True); - $this->host_uri = $var; - - return $this; - } - - /** - * Required. Immutable. SecretManager resource containing the webhook secret - * used to verify webhook events, formatted as - * `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getWebhookSecretSecretVersion() - { - return $this->webhook_secret_secret_version; - } - - /** - * Required. Immutable. SecretManager resource containing the webhook secret - * used to verify webhook events, formatted as - * `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWebhookSecretSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->webhook_secret_secret_version = $var; - - return $this; - } - - /** - * Required. A http access token with the `REPO_READ` access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Build\V2\UserCredential|null - */ - public function getReadAuthorizerCredential() - { - return $this->read_authorizer_credential; - } - - public function hasReadAuthorizerCredential() - { - return isset($this->read_authorizer_credential); - } - - public function clearReadAuthorizerCredential() - { - unset($this->read_authorizer_credential); - } - - /** - * Required. A http access token with the `REPO_READ` access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Build\V2\UserCredential $var - * @return $this - */ - public function setReadAuthorizerCredential($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\UserCredential::class); - $this->read_authorizer_credential = $var; - - return $this; - } - - /** - * Required. A http access token with the `REPO_ADMIN` scope access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Build\V2\UserCredential|null - */ - public function getAuthorizerCredential() - { - return $this->authorizer_credential; - } - - public function hasAuthorizerCredential() - { - return isset($this->authorizer_credential); - } - - public function clearAuthorizerCredential() - { - unset($this->authorizer_credential); - } - - /** - * Required. A http access token with the `REPO_ADMIN` scope access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Build\V2\UserCredential $var - * @return $this - */ - public function setAuthorizerCredential($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\UserCredential::class); - $this->authorizer_credential = $var; - - return $this; - } - - /** - * Optional. Configuration for using Service Directory to privately connect to - * a Bitbucket Data Center. This should only be set if the Bitbucket Data - * Center is hosted on-premises and not reachable by public internet. If this - * field is left empty, calls to the Bitbucket Data Center will be made over - * the public internet. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Build\V2\ServiceDirectoryConfig|null - */ - public function getServiceDirectoryConfig() - { - return $this->service_directory_config; - } - - public function hasServiceDirectoryConfig() - { - return isset($this->service_directory_config); - } - - public function clearServiceDirectoryConfig() - { - unset($this->service_directory_config); - } - - /** - * Optional. Configuration for using Service Directory to privately connect to - * a Bitbucket Data Center. This should only be set if the Bitbucket Data - * Center is hosted on-premises and not reachable by public internet. If this - * field is left empty, calls to the Bitbucket Data Center will be made over - * the public internet. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Build\V2\ServiceDirectoryConfig $var - * @return $this - */ - public function setServiceDirectoryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\ServiceDirectoryConfig::class); - $this->service_directory_config = $var; - - return $this; - } - - /** - * Optional. SSL certificate to use for requests to the Bitbucket Data Center. - * - * Generated from protobuf field string ssl_ca = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSslCa() - { - return $this->ssl_ca; - } - - /** - * Optional. SSL certificate to use for requests to the Bitbucket Data Center. - * - * Generated from protobuf field string ssl_ca = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSslCa($var) - { - GPBUtil::checkString($var, True); - $this->ssl_ca = $var; - - return $this; - } - - /** - * Output only. Version of the Bitbucket Data Center running on the - * `host_uri`. - * - * Generated from protobuf field string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServerVersion() - { - return $this->server_version; - } - - /** - * Output only. Version of the Bitbucket Data Center running on the - * `host_uri`. - * - * Generated from protobuf field string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServerVersion($var) - { - GPBUtil::checkString($var, True); - $this->server_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/Connection.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/Connection.php deleted file mode 100644 index af1a1dcd99fb..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/Connection.php +++ /dev/null @@ -1,537 +0,0 @@ -google.devtools.cloudbuild.v2.Connection - */ -class Connection extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The resource name of the connection, in the format - * `projects/{project}/locations/{location}/connections/{connection_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. Server assigned timestamp for when the connection was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Server assigned timestamp for when the connection was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Installation state of the Connection. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.InstallationState installation_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $installation_state = null; - /** - * If disabled is set to true, functionality is disabled for this connection. - * Repository based API methods and webhooks processing for repositories in - * this connection will be disabled. - * - * Generated from protobuf field bool disabled = 13; - */ - protected $disabled = false; - /** - * Output only. Set to true when the connection is being set up or updated in - * the background. - * - * Generated from protobuf field bool reconciling = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $reconciling = false; - /** - * Allows clients to store small amounts of arbitrary data. - * - * Generated from protobuf field map annotations = 15; - */ - private $annotations; - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 16; - */ - protected $etag = ''; - protected $connection_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. The resource name of the connection, in the format - * `projects/{project}/locations/{location}/connections/{connection_id}`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Server assigned timestamp for when the connection was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Server assigned timestamp for when the connection was updated. - * @type \Google\Cloud\Build\V2\GitHubConfig $github_config - * Configuration for connections to github.com. - * @type \Google\Cloud\Build\V2\GitHubEnterpriseConfig $github_enterprise_config - * Configuration for connections to an instance of GitHub Enterprise. - * @type \Google\Cloud\Build\V2\GitLabConfig $gitlab_config - * Configuration for connections to gitlab.com or an instance of GitLab - * Enterprise. - * @type \Google\Cloud\Build\V2\BitbucketDataCenterConfig $bitbucket_data_center_config - * Configuration for connections to Bitbucket Data Center. - * @type \Google\Cloud\Build\V2\BitbucketCloudConfig $bitbucket_cloud_config - * Configuration for connections to Bitbucket Cloud. - * @type \Google\Cloud\Build\V2\InstallationState $installation_state - * Output only. Installation state of the Connection. - * @type bool $disabled - * If disabled is set to true, functionality is disabled for this connection. - * Repository based API methods and webhooks processing for repositories in - * this connection will be disabled. - * @type bool $reconciling - * Output only. Set to true when the connection is being set up or updated in - * the background. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Allows clients to store small amounts of arbitrary data. - * @type string $etag - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The resource name of the connection, in the format - * `projects/{project}/locations/{location}/connections/{connection_id}`. - * - * 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 connection, in the format - * `projects/{project}/locations/{location}/connections/{connection_id}`. - * - * 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. Server assigned timestamp for when the connection 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. Server assigned timestamp for when the connection 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. Server assigned timestamp for when the connection 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. Server assigned timestamp for when the connection 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; - } - - /** - * Configuration for connections to github.com. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.GitHubConfig github_config = 5; - * @return \Google\Cloud\Build\V2\GitHubConfig|null - */ - public function getGithubConfig() - { - return $this->readOneof(5); - } - - public function hasGithubConfig() - { - return $this->hasOneof(5); - } - - /** - * Configuration for connections to github.com. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.GitHubConfig github_config = 5; - * @param \Google\Cloud\Build\V2\GitHubConfig $var - * @return $this - */ - public function setGithubConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\GitHubConfig::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Configuration for connections to an instance of GitHub Enterprise. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.GitHubEnterpriseConfig github_enterprise_config = 6; - * @return \Google\Cloud\Build\V2\GitHubEnterpriseConfig|null - */ - public function getGithubEnterpriseConfig() - { - return $this->readOneof(6); - } - - public function hasGithubEnterpriseConfig() - { - return $this->hasOneof(6); - } - - /** - * Configuration for connections to an instance of GitHub Enterprise. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.GitHubEnterpriseConfig github_enterprise_config = 6; - * @param \Google\Cloud\Build\V2\GitHubEnterpriseConfig $var - * @return $this - */ - public function setGithubEnterpriseConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\GitHubEnterpriseConfig::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Configuration for connections to gitlab.com or an instance of GitLab - * Enterprise. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.GitLabConfig gitlab_config = 7; - * @return \Google\Cloud\Build\V2\GitLabConfig|null - */ - public function getGitlabConfig() - { - return $this->readOneof(7); - } - - public function hasGitlabConfig() - { - return $this->hasOneof(7); - } - - /** - * Configuration for connections to gitlab.com or an instance of GitLab - * Enterprise. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.GitLabConfig gitlab_config = 7; - * @param \Google\Cloud\Build\V2\GitLabConfig $var - * @return $this - */ - public function setGitlabConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\GitLabConfig::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Configuration for connections to Bitbucket Data Center. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.BitbucketDataCenterConfig bitbucket_data_center_config = 8; - * @return \Google\Cloud\Build\V2\BitbucketDataCenterConfig|null - */ - public function getBitbucketDataCenterConfig() - { - return $this->readOneof(8); - } - - public function hasBitbucketDataCenterConfig() - { - return $this->hasOneof(8); - } - - /** - * Configuration for connections to Bitbucket Data Center. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.BitbucketDataCenterConfig bitbucket_data_center_config = 8; - * @param \Google\Cloud\Build\V2\BitbucketDataCenterConfig $var - * @return $this - */ - public function setBitbucketDataCenterConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\BitbucketDataCenterConfig::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Configuration for connections to Bitbucket Cloud. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.BitbucketCloudConfig bitbucket_cloud_config = 9; - * @return \Google\Cloud\Build\V2\BitbucketCloudConfig|null - */ - public function getBitbucketCloudConfig() - { - return $this->readOneof(9); - } - - public function hasBitbucketCloudConfig() - { - return $this->hasOneof(9); - } - - /** - * Configuration for connections to Bitbucket Cloud. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.BitbucketCloudConfig bitbucket_cloud_config = 9; - * @param \Google\Cloud\Build\V2\BitbucketCloudConfig $var - * @return $this - */ - public function setBitbucketCloudConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\BitbucketCloudConfig::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Output only. Installation state of the Connection. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.InstallationState installation_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Build\V2\InstallationState|null - */ - public function getInstallationState() - { - return $this->installation_state; - } - - public function hasInstallationState() - { - return isset($this->installation_state); - } - - public function clearInstallationState() - { - unset($this->installation_state); - } - - /** - * Output only. Installation state of the Connection. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.InstallationState installation_state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Build\V2\InstallationState $var - * @return $this - */ - public function setInstallationState($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\InstallationState::class); - $this->installation_state = $var; - - return $this; - } - - /** - * If disabled is set to true, functionality is disabled for this connection. - * Repository based API methods and webhooks processing for repositories in - * this connection will be disabled. - * - * Generated from protobuf field bool disabled = 13; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * If disabled is set to true, functionality is disabled for this connection. - * Repository based API methods and webhooks processing for repositories in - * this connection will be disabled. - * - * Generated from protobuf field bool disabled = 13; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Output only. Set to true when the connection is being set up or updated in - * the background. - * - * Generated from protobuf field bool reconciling = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getReconciling() - { - return $this->reconciling; - } - - /** - * Output only. Set to true when the connection is being set up or updated in - * the background. - * - * Generated from protobuf field bool reconciling = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setReconciling($var) - { - GPBUtil::checkBool($var); - $this->reconciling = $var; - - return $this; - } - - /** - * Allows clients to store small amounts of arbitrary data. - * - * Generated from protobuf field map annotations = 15; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Allows clients to store small amounts of arbitrary data. - * - * Generated from protobuf field map annotations = 15; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 16; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 16; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * @return string - */ - public function getConnectionConfig() - { - return $this->whichOneof("connection_config"); - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/CreateConnectionRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/CreateConnectionRequest.php deleted file mode 100644 index 4ba96b1380b1..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/CreateConnectionRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.devtools.cloudbuild.v2.CreateConnectionRequest - */ -class CreateConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Project and location where the connection will be created. - * Format: `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The Connection to create. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $connection = null; - /** - * Required. The ID to use for the Connection, which will become the final - * component of the Connection's resource name. Names must be unique - * per-project per-location. Allows alphanumeric characters and any of - * -._~%!$&'()*+,;=@. - * - * Generated from protobuf field string connection_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $connection_id = ''; - - /** - * @param string $parent Required. Project and location where the connection will be created. - * Format: `projects/*/locations/*`. Please see - * {@see RepositoryManagerClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Build\V2\Connection $connection Required. The Connection to create. - * @param string $connectionId Required. The ID to use for the Connection, which will become the final - * component of the Connection's resource name. Names must be unique - * per-project per-location. Allows alphanumeric characters and any of - * -._~%!$&'()*+,;=@. - * - * @return \Google\Cloud\Build\V2\CreateConnectionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Build\V2\Connection $connection, string $connectionId): self - { - return (new self()) - ->setParent($parent) - ->setConnection($connection) - ->setConnectionId($connectionId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Project and location where the connection will be created. - * Format: `projects/*/locations/*`. - * @type \Google\Cloud\Build\V2\Connection $connection - * Required. The Connection to create. - * @type string $connection_id - * Required. The ID to use for the Connection, which will become the final - * component of the Connection's resource name. Names must be unique - * per-project per-location. Allows alphanumeric characters and any of - * -._~%!$&'()*+,;=@. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. Project and location where the connection will be created. - * 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. Project and location where the connection will be created. - * 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 Connection to create. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Build\V2\Connection|null - */ - public function getConnection() - { - return $this->connection; - } - - public function hasConnection() - { - return isset($this->connection); - } - - public function clearConnection() - { - unset($this->connection); - } - - /** - * Required. The Connection to create. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Build\V2\Connection $var - * @return $this - */ - public function setConnection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\Connection::class); - $this->connection = $var; - - return $this; - } - - /** - * Required. The ID to use for the Connection, which will become the final - * component of the Connection's resource name. Names must be unique - * per-project per-location. Allows alphanumeric characters and any of - * -._~%!$&'()*+,;=@. - * - * Generated from protobuf field string connection_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getConnectionId() - { - return $this->connection_id; - } - - /** - * Required. The ID to use for the Connection, which will become the final - * component of the Connection's resource name. Names must be unique - * per-project per-location. Allows alphanumeric characters and any of - * -._~%!$&'()*+,;=@. - * - * Generated from protobuf field string connection_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setConnectionId($var) - { - GPBUtil::checkString($var, True); - $this->connection_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/CreateRepositoryRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/CreateRepositoryRequest.php deleted file mode 100644 index 5dbc70bca90c..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/CreateRepositoryRequest.php +++ /dev/null @@ -1,188 +0,0 @@ -google.devtools.cloudbuild.v2.CreateRepositoryRequest - */ -class CreateRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The connection to contain the repository. If the request is part - * of a BatchCreateRepositoriesRequest, this field should be empty or match - * the parent specified there. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The repository to create. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repository = null; - /** - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. This ID should be unique in - * the connection. Allows alphanumeric characters and any of - * -._~%!$&'()*+,;=@. - * - * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $repository_id = ''; - - /** - * @param string $parent Required. The connection to contain the repository. If the request is part - * of a BatchCreateRepositoriesRequest, this field should be empty or match - * the parent specified there. Please see - * {@see RepositoryManagerClient::connectionName()} for help formatting this field. - * @param \Google\Cloud\Build\V2\Repository $repository Required. The repository to create. - * @param string $repositoryId Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. This ID should be unique in - * the connection. Allows alphanumeric characters and any of - * -._~%!$&'()*+,;=@. - * - * @return \Google\Cloud\Build\V2\CreateRepositoryRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Build\V2\Repository $repository, string $repositoryId): self - { - return (new self()) - ->setParent($parent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The connection to contain the repository. If the request is part - * of a BatchCreateRepositoriesRequest, this field should be empty or match - * the parent specified there. - * @type \Google\Cloud\Build\V2\Repository $repository - * Required. The repository to create. - * @type string $repository_id - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. This ID should be unique in - * the connection. Allows alphanumeric characters and any of - * -._~%!$&'()*+,;=@. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The connection to contain the repository. If the request is part - * of a BatchCreateRepositoriesRequest, this field should be empty or match - * the parent specified there. - * - * Generated 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 connection to contain the repository. If the request is part - * of a BatchCreateRepositoriesRequest, this field should be empty or match - * the parent specified there. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 repository to create. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Build\V2\Repository|null - */ - public function getRepository() - { - return $this->repository; - } - - public function hasRepository() - { - return isset($this->repository); - } - - public function clearRepository() - { - unset($this->repository); - } - - /** - * Required. The repository to create. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.Repository repository = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Build\V2\Repository $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\Repository::class); - $this->repository = $var; - - return $this; - } - - /** - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. This ID should be unique in - * the connection. Allows alphanumeric characters and any of - * -._~%!$&'()*+,;=@. - * - * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRepositoryId() - { - return $this->repository_id; - } - - /** - * Required. The ID to use for the repository, which will become the final - * component of the repository's resource name. This ID should be unique in - * the connection. Allows alphanumeric characters and any of - * -._~%!$&'()*+,;=@. - * - * Generated from protobuf field string repository_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRepositoryId($var) - { - GPBUtil::checkString($var, True); - $this->repository_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/DeleteConnectionRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/DeleteConnectionRequest.php deleted file mode 100644 index d76949b9bafc..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/DeleteConnectionRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -google.devtools.cloudbuild.v2.DeleteConnectionRequest - */ -class DeleteConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Connection to delete. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The current etag of the connection. - * If an etag is provided and does not match the current etag of the - * connection, deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 2; - */ - protected $etag = ''; - /** - * If set, validate the request, but do not actually post it. - * - * Generated from protobuf field bool validate_only = 3; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the Connection to delete. - * Format: `projects/*/locations/*/connections/*`. Please see - * {@see RepositoryManagerClient::connectionName()} for help formatting this field. - * - * @return \Google\Cloud\Build\V2\DeleteConnectionRequest - * - * @experimental - */ - public static function 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 Connection to delete. - * Format: `projects/*/locations/*/connections/*`. - * @type string $etag - * The current etag of the connection. - * If an etag is provided and does not match the current etag of the - * connection, deletion will be blocked and an ABORTED error will be returned. - * @type bool $validate_only - * If set, validate the request, but do not actually post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Connection to delete. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Connection to delete. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_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 current etag of the connection. - * If an etag is provided and does not match the current etag of the - * connection, deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 2; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the connection. - * If an etag is provided and does not match the current etag of the - * connection, deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 2; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * If set, validate the request, but do not actually post it. - * - * Generated from protobuf field bool validate_only = 3; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, validate the request, but do not actually post it. - * - * Generated from protobuf field bool validate_only = 3; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/DeleteRepositoryRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/DeleteRepositoryRequest.php deleted file mode 100644 index c12878d13cb8..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/DeleteRepositoryRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -google.devtools.cloudbuild.v2.DeleteRepositoryRequest - */ -class DeleteRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Repository to delete. - * Format: `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The current etag of the repository. - * If an etag is provided and does not match the current etag of the - * repository, deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 2; - */ - protected $etag = ''; - /** - * If set, validate the request, but do not actually post it. - * - * Generated from protobuf field bool validate_only = 3; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the Repository to delete. - * Format: `projects/*/locations/*/connections/*/repositories/*`. Please see - * {@see RepositoryManagerClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Build\V2\DeleteRepositoryRequest - * - * @experimental - */ - public static function 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 Repository to delete. - * Format: `projects/*/locations/*/connections/*/repositories/*`. - * @type string $etag - * The current etag of the repository. - * If an etag is provided and does not match the current etag of the - * repository, deletion will be blocked and an ABORTED error will be returned. - * @type bool $validate_only - * If set, validate the request, but do not actually post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Repository to delete. - * Format: `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Repository to delete. - * Format: `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_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 current etag of the repository. - * If an etag is provided and does not match the current etag of the - * repository, deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 2; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the repository. - * If an etag is provided and does not match the current etag of the - * repository, deletion will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 2; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * If set, validate the request, but do not actually post it. - * - * Generated from protobuf field bool validate_only = 3; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If set, validate the request, but do not actually post it. - * - * Generated from protobuf field bool validate_only = 3; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsRequest.php deleted file mode 100644 index 4f5bff6c029f..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsRequest.php +++ /dev/null @@ -1,120 +0,0 @@ -google.devtools.cloudbuild.v2.FetchGitRefsRequest - */ -class FetchGitRefsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $repository = ''; - /** - * Type of refs to fetch - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.FetchGitRefsRequest.RefType ref_type = 2; - */ - protected $ref_type = 0; - - /** - * @param string $repository Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. Please see - * {@see RepositoryManagerClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Build\V2\FetchGitRefsRequest - * - * @experimental - */ - public static function build(string $repository): self - { - return (new self()) - ->setRepository($repository); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $repository - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * @type int $ref_type - * Type of refs to fetch - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRepository() - { - return $this->repository; - } - - /** - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkString($var, True); - $this->repository = $var; - - return $this; - } - - /** - * Type of refs to fetch - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.FetchGitRefsRequest.RefType ref_type = 2; - * @return int - */ - public function getRefType() - { - return $this->ref_type; - } - - /** - * Type of refs to fetch - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.FetchGitRefsRequest.RefType ref_type = 2; - * @param int $var - * @return $this - */ - public function setRefType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Build\V2\FetchGitRefsRequest\RefType::class); - $this->ref_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsRequest/RefType.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsRequest/RefType.php deleted file mode 100644 index da33450964a7..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsRequest/RefType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.devtools.cloudbuild.v2.FetchGitRefsRequest.RefType - */ -class RefType -{ - /** - * No type specified. - * - * Generated from protobuf enum REF_TYPE_UNSPECIFIED = 0; - */ - const REF_TYPE_UNSPECIFIED = 0; - /** - * To fetch tags. - * - * Generated from protobuf enum TAG = 1; - */ - const TAG = 1; - /** - * To fetch branches. - * - * Generated from protobuf enum BRANCH = 2; - */ - const BRANCH = 2; - - private static $valueToName = [ - self::REF_TYPE_UNSPECIFIED => 'REF_TYPE_UNSPECIFIED', - self::TAG => 'TAG', - self::BRANCH => 'BRANCH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RefType::class, \Google\Cloud\Build\V2\FetchGitRefsRequest_RefType::class); - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsResponse.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsResponse.php deleted file mode 100644 index dd3b8bf543e7..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchGitRefsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.devtools.cloudbuild.v2.FetchGitRefsResponse - */ -class FetchGitRefsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the refs fetched. - * - * Generated from protobuf field repeated string ref_names = 1; - */ - private $ref_names; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $ref_names - * Name of the refs fetched. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Name of the refs fetched. - * - * Generated from protobuf field repeated string ref_names = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRefNames() - { - return $this->ref_names; - } - - /** - * Name of the refs fetched. - * - * Generated from protobuf field repeated string ref_names = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRefNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ref_names = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchLinkableRepositoriesRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchLinkableRepositoriesRequest.php deleted file mode 100644 index 677401c74cc3..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchLinkableRepositoriesRequest.php +++ /dev/null @@ -1,139 +0,0 @@ -google.devtools.cloudbuild.v2.FetchLinkableRepositoriesRequest - */ -class FetchLinkableRepositoriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Connection. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $connection = ''; - /** - * Number of results to return in the list. Default to 20. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page start. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $connection - * Required. The name of the Connection. - * Format: `projects/*/locations/*/connections/*`. - * @type int $page_size - * Number of results to return in the list. Default to 20. - * @type string $page_token - * Page start. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Connection. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getConnection() - { - return $this->connection; - } - - /** - * Required. The name of the Connection. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string connection = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setConnection($var) - { - GPBUtil::checkString($var, True); - $this->connection = $var; - - return $this; - } - - /** - * Number of results to return in the list. Default to 20. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of results to return in the list. Default to 20. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Page start. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page start. - * - * 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/Build/v2/proto/src/Google/Cloud/Build/V2/FetchLinkableRepositoriesResponse.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchLinkableRepositoriesResponse.php deleted file mode 100644 index cab0cfef5019..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchLinkableRepositoriesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.devtools.cloudbuild.v2.FetchLinkableRepositoriesResponse - */ -class FetchLinkableRepositoriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * repositories ready to be created. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Repository repositories = 1; - */ - private $repositories; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Build\V2\Repository>|\Google\Protobuf\Internal\RepeatedField $repositories - * repositories ready to be created. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * repositories ready to be created. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Repository repositories = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRepositories() - { - return $this->repositories; - } - - /** - * repositories ready to be created. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Repository repositories = 1; - * @param array<\Google\Cloud\Build\V2\Repository>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRepositories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Build\V2\Repository::class); - $this->repositories = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadTokenRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadTokenRequest.php deleted file mode 100644 index ab9057b88e0a..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadTokenRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.devtools.cloudbuild.v2.FetchReadTokenRequest - */ -class FetchReadTokenRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $repository = ''; - - /** - * @param string $repository Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. Please see - * {@see RepositoryManagerClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Build\V2\FetchReadTokenRequest - * - * @experimental - */ - public static function build(string $repository): self - { - return (new self()) - ->setRepository($repository); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $repository - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRepository() - { - return $this->repository; - } - - /** - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkString($var, True); - $this->repository = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadTokenResponse.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadTokenResponse.php deleted file mode 100644 index 3302adc79daf..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadTokenResponse.php +++ /dev/null @@ -1,111 +0,0 @@ -google.devtools.cloudbuild.v2.FetchReadTokenResponse - */ -class FetchReadTokenResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The token content. - * - * Generated from protobuf field string token = 1; - */ - protected $token = ''; - /** - * Expiration timestamp. Can be empty if unknown or non-expiring. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2; - */ - protected $expiration_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $token - * The token content. - * @type \Google\Protobuf\Timestamp $expiration_time - * Expiration timestamp. Can be empty if unknown or non-expiring. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * The token content. - * - * Generated from protobuf field string token = 1; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * The token content. - * - * Generated from protobuf field string token = 1; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - - /** - * Expiration timestamp. Can be empty if unknown or non-expiring. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpirationTime() - { - return $this->expiration_time; - } - - public function hasExpirationTime() - { - return isset($this->expiration_time); - } - - public function clearExpirationTime() - { - unset($this->expiration_time); - } - - /** - * Expiration timestamp. Can be empty if unknown or non-expiring. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expiration_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadWriteTokenRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadWriteTokenRequest.php deleted file mode 100644 index 5c24c1711c42..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadWriteTokenRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.devtools.cloudbuild.v2.FetchReadWriteTokenRequest - */ -class FetchReadWriteTokenRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $repository = ''; - - /** - * @param string $repository Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. Please see - * {@see RepositoryManagerClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Build\V2\FetchReadWriteTokenRequest - * - * @experimental - */ - public static function build(string $repository): self - { - return (new self()) - ->setRepository($repository); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $repository - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRepository() - { - return $this->repository; - } - - /** - * Required. The resource name of the repository in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRepository($var) - { - GPBUtil::checkString($var, True); - $this->repository = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadWriteTokenResponse.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadWriteTokenResponse.php deleted file mode 100644 index c38b59dc84b1..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/FetchReadWriteTokenResponse.php +++ /dev/null @@ -1,111 +0,0 @@ -google.devtools.cloudbuild.v2.FetchReadWriteTokenResponse - */ -class FetchReadWriteTokenResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The token content. - * - * Generated from protobuf field string token = 1; - */ - protected $token = ''; - /** - * Expiration timestamp. Can be empty if unknown or non-expiring. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2; - */ - protected $expiration_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $token - * The token content. - * @type \Google\Protobuf\Timestamp $expiration_time - * Expiration timestamp. Can be empty if unknown or non-expiring. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * The token content. - * - * Generated from protobuf field string token = 1; - * @return string - */ - public function getToken() - { - return $this->token; - } - - /** - * The token content. - * - * Generated from protobuf field string token = 1; - * @param string $var - * @return $this - */ - public function setToken($var) - { - GPBUtil::checkString($var, True); - $this->token = $var; - - return $this; - } - - /** - * Expiration timestamp. Can be empty if unknown or non-expiring. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpirationTime() - { - return $this->expiration_time; - } - - public function hasExpirationTime() - { - return isset($this->expiration_time); - } - - public function clearExpirationTime() - { - unset($this->expiration_time); - } - - /** - * Expiration timestamp. Can be empty if unknown or non-expiring. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expiration_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GetConnectionRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GetConnectionRequest.php deleted file mode 100644 index a5fb8449f96a..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GetConnectionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.devtools.cloudbuild.v2.GetConnectionRequest - */ -class GetConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Connection to retrieve. - * Format: `projects/*/locations/*/connections/*`. - * - * 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 Connection to retrieve. - * Format: `projects/*/locations/*/connections/*`. Please see - * {@see RepositoryManagerClient::connectionName()} for help formatting this field. - * - * @return \Google\Cloud\Build\V2\GetConnectionRequest - * - * @experimental - */ - public static function 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 Connection to retrieve. - * Format: `projects/*/locations/*/connections/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Connection to retrieve. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Connection to retrieve. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GetRepositoryRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GetRepositoryRequest.php deleted file mode 100644 index 2b71cd243f1f..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GetRepositoryRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.devtools.cloudbuild.v2.GetRepositoryRequest - */ -class GetRepositoryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Repository to retrieve. - * Format: `projects/*/locations/*/connections/*/repositories/*`. - * - * 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 Repository to retrieve. - * Format: `projects/*/locations/*/connections/*/repositories/*`. Please see - * {@see RepositoryManagerClient::repositoryName()} for help formatting this field. - * - * @return \Google\Cloud\Build\V2\GetRepositoryRequest - * - * @experimental - */ - public static function 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 Repository to retrieve. - * Format: `projects/*/locations/*/connections/*/repositories/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Repository to retrieve. - * Format: `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Repository to retrieve. - * Format: `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitHubConfig.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitHubConfig.php deleted file mode 100644 index d1435a9df8ea..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitHubConfig.php +++ /dev/null @@ -1,119 +0,0 @@ -google.devtools.cloudbuild.v2.GitHubConfig - */ -class GitHubConfig extends \Google\Protobuf\Internal\Message -{ - /** - * OAuth credential of the account that authorized the Cloud Build GitHub App. - * It is recommended to use a robot account instead of a human user account. - * The OAuth token must be tied to the Cloud Build GitHub App. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1; - */ - protected $authorizer_credential = null; - /** - * GitHub App installation id. - * - * Generated from protobuf field int64 app_installation_id = 2; - */ - protected $app_installation_id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Build\V2\OAuthCredential $authorizer_credential - * OAuth credential of the account that authorized the Cloud Build GitHub App. - * It is recommended to use a robot account instead of a human user account. - * The OAuth token must be tied to the Cloud Build GitHub App. - * @type int|string $app_installation_id - * GitHub App installation id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * OAuth credential of the account that authorized the Cloud Build GitHub App. - * It is recommended to use a robot account instead of a human user account. - * The OAuth token must be tied to the Cloud Build GitHub App. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1; - * @return \Google\Cloud\Build\V2\OAuthCredential|null - */ - public function getAuthorizerCredential() - { - return $this->authorizer_credential; - } - - public function hasAuthorizerCredential() - { - return isset($this->authorizer_credential); - } - - public function clearAuthorizerCredential() - { - unset($this->authorizer_credential); - } - - /** - * OAuth credential of the account that authorized the Cloud Build GitHub App. - * It is recommended to use a robot account instead of a human user account. - * The OAuth token must be tied to the Cloud Build GitHub App. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.OAuthCredential authorizer_credential = 1; - * @param \Google\Cloud\Build\V2\OAuthCredential $var - * @return $this - */ - public function setAuthorizerCredential($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\OAuthCredential::class); - $this->authorizer_credential = $var; - - return $this; - } - - /** - * GitHub App installation id. - * - * Generated from protobuf field int64 app_installation_id = 2; - * @return int|string - */ - public function getAppInstallationId() - { - return $this->app_installation_id; - } - - /** - * GitHub App installation id. - * - * Generated from protobuf field int64 app_installation_id = 2; - * @param int|string $var - * @return $this - */ - public function setAppInstallationId($var) - { - GPBUtil::checkInt64($var); - $this->app_installation_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitHubEnterpriseConfig.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitHubEnterpriseConfig.php deleted file mode 100644 index 333e58603534..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitHubEnterpriseConfig.php +++ /dev/null @@ -1,407 +0,0 @@ -google.devtools.cloudbuild.v2.GitHubEnterpriseConfig - */ -class GitHubEnterpriseConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The URI of the GitHub Enterprise host this connection is for. - * - * Generated from protobuf field string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $host_uri = ''; - /** - * Required. API Key used for authentication of webhook events. - * - * Generated from protobuf field string api_key = 12 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $api_key = ''; - /** - * Id of the GitHub App created from the manifest. - * - * Generated from protobuf field int64 app_id = 2; - */ - protected $app_id = 0; - /** - * The URL-friendly name of the GitHub App. - * - * Generated from protobuf field string app_slug = 13; - */ - protected $app_slug = ''; - /** - * SecretManager resource containing the private key of the GitHub App, - * formatted as `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string private_key_secret_version = 4 [(.google.api.resource_reference) = { - */ - protected $private_key_secret_version = ''; - /** - * SecretManager resource containing the webhook secret of the GitHub App, - * formatted as `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 5 [(.google.api.resource_reference) = { - */ - protected $webhook_secret_secret_version = ''; - /** - * ID of the installation of the GitHub App. - * - * Generated from protobuf field int64 app_installation_id = 9; - */ - protected $app_installation_id = 0; - /** - * Configuration for using Service Directory to privately connect to a GitHub - * Enterprise server. This should only be set if the GitHub Enterprise server - * is hosted on-premises and not reachable by public internet. If this field - * is left empty, calls to the GitHub Enterprise server will be made over the - * public internet. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 10; - */ - protected $service_directory_config = null; - /** - * SSL certificate to use for requests to GitHub Enterprise. - * - * Generated from protobuf field string ssl_ca = 11; - */ - protected $ssl_ca = ''; - /** - * Output only. GitHub Enterprise version installed at the host_uri. - * - * Generated from protobuf field string server_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $server_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $host_uri - * Required. The URI of the GitHub Enterprise host this connection is for. - * @type string $api_key - * Required. API Key used for authentication of webhook events. - * @type int|string $app_id - * Id of the GitHub App created from the manifest. - * @type string $app_slug - * The URL-friendly name of the GitHub App. - * @type string $private_key_secret_version - * SecretManager resource containing the private key of the GitHub App, - * formatted as `projects/*/secrets/*/versions/*`. - * @type string $webhook_secret_secret_version - * SecretManager resource containing the webhook secret of the GitHub App, - * formatted as `projects/*/secrets/*/versions/*`. - * @type int|string $app_installation_id - * ID of the installation of the GitHub App. - * @type \Google\Cloud\Build\V2\ServiceDirectoryConfig $service_directory_config - * Configuration for using Service Directory to privately connect to a GitHub - * Enterprise server. This should only be set if the GitHub Enterprise server - * is hosted on-premises and not reachable by public internet. If this field - * is left empty, calls to the GitHub Enterprise server will be made over the - * public internet. - * @type string $ssl_ca - * SSL certificate to use for requests to GitHub Enterprise. - * @type string $server_version - * Output only. GitHub Enterprise version installed at the host_uri. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The URI of the GitHub Enterprise host this connection is for. - * - * Generated from protobuf field string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getHostUri() - { - return $this->host_uri; - } - - /** - * Required. The URI of the GitHub Enterprise host this connection is for. - * - * Generated from protobuf field string host_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setHostUri($var) - { - GPBUtil::checkString($var, True); - $this->host_uri = $var; - - return $this; - } - - /** - * Required. API Key used for authentication of webhook events. - * - * Generated from protobuf field string api_key = 12 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getApiKey() - { - return $this->api_key; - } - - /** - * Required. API Key used for authentication of webhook events. - * - * Generated from protobuf field string api_key = 12 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setApiKey($var) - { - GPBUtil::checkString($var, True); - $this->api_key = $var; - - return $this; - } - - /** - * Id of the GitHub App created from the manifest. - * - * Generated from protobuf field int64 app_id = 2; - * @return int|string - */ - public function getAppId() - { - return $this->app_id; - } - - /** - * Id of the GitHub App created from the manifest. - * - * Generated from protobuf field int64 app_id = 2; - * @param int|string $var - * @return $this - */ - public function setAppId($var) - { - GPBUtil::checkInt64($var); - $this->app_id = $var; - - return $this; - } - - /** - * The URL-friendly name of the GitHub App. - * - * Generated from protobuf field string app_slug = 13; - * @return string - */ - public function getAppSlug() - { - return $this->app_slug; - } - - /** - * The URL-friendly name of the GitHub App. - * - * Generated from protobuf field string app_slug = 13; - * @param string $var - * @return $this - */ - public function setAppSlug($var) - { - GPBUtil::checkString($var, True); - $this->app_slug = $var; - - return $this; - } - - /** - * SecretManager resource containing the private key of the GitHub App, - * formatted as `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string private_key_secret_version = 4 [(.google.api.resource_reference) = { - * @return string - */ - public function getPrivateKeySecretVersion() - { - return $this->private_key_secret_version; - } - - /** - * SecretManager resource containing the private key of the GitHub App, - * formatted as `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string private_key_secret_version = 4 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setPrivateKeySecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->private_key_secret_version = $var; - - return $this; - } - - /** - * SecretManager resource containing the webhook secret of the GitHub App, - * formatted as `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 5 [(.google.api.resource_reference) = { - * @return string - */ - public function getWebhookSecretSecretVersion() - { - return $this->webhook_secret_secret_version; - } - - /** - * SecretManager resource containing the webhook secret of the GitHub App, - * formatted as `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 5 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWebhookSecretSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->webhook_secret_secret_version = $var; - - return $this; - } - - /** - * ID of the installation of the GitHub App. - * - * Generated from protobuf field int64 app_installation_id = 9; - * @return int|string - */ - public function getAppInstallationId() - { - return $this->app_installation_id; - } - - /** - * ID of the installation of the GitHub App. - * - * Generated from protobuf field int64 app_installation_id = 9; - * @param int|string $var - * @return $this - */ - public function setAppInstallationId($var) - { - GPBUtil::checkInt64($var); - $this->app_installation_id = $var; - - return $this; - } - - /** - * Configuration for using Service Directory to privately connect to a GitHub - * Enterprise server. This should only be set if the GitHub Enterprise server - * is hosted on-premises and not reachable by public internet. If this field - * is left empty, calls to the GitHub Enterprise server will be made over the - * public internet. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 10; - * @return \Google\Cloud\Build\V2\ServiceDirectoryConfig|null - */ - public function getServiceDirectoryConfig() - { - return $this->service_directory_config; - } - - public function hasServiceDirectoryConfig() - { - return isset($this->service_directory_config); - } - - public function clearServiceDirectoryConfig() - { - unset($this->service_directory_config); - } - - /** - * Configuration for using Service Directory to privately connect to a GitHub - * Enterprise server. This should only be set if the GitHub Enterprise server - * is hosted on-premises and not reachable by public internet. If this field - * is left empty, calls to the GitHub Enterprise server will be made over the - * public internet. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 10; - * @param \Google\Cloud\Build\V2\ServiceDirectoryConfig $var - * @return $this - */ - public function setServiceDirectoryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\ServiceDirectoryConfig::class); - $this->service_directory_config = $var; - - return $this; - } - - /** - * SSL certificate to use for requests to GitHub Enterprise. - * - * Generated from protobuf field string ssl_ca = 11; - * @return string - */ - public function getSslCa() - { - return $this->ssl_ca; - } - - /** - * SSL certificate to use for requests to GitHub Enterprise. - * - * Generated from protobuf field string ssl_ca = 11; - * @param string $var - * @return $this - */ - public function setSslCa($var) - { - GPBUtil::checkString($var, True); - $this->ssl_ca = $var; - - return $this; - } - - /** - * Output only. GitHub Enterprise version installed at the host_uri. - * - * Generated from protobuf field string server_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServerVersion() - { - return $this->server_version; - } - - /** - * Output only. GitHub Enterprise version installed at the host_uri. - * - * Generated from protobuf field string server_version = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServerVersion($var) - { - GPBUtil::checkString($var, True); - $this->server_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitLabConfig.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitLabConfig.php deleted file mode 100644 index 078b133eccbc..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/GitLabConfig.php +++ /dev/null @@ -1,338 +0,0 @@ -google.devtools.cloudbuild.v2.GitLabConfig - */ -class GitLabConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The URI of the GitLab Enterprise host this connection is for. - * If not specified, the default value is https://gitlab.com. - * - * Generated from protobuf field string host_uri = 1; - */ - protected $host_uri = ''; - /** - * Required. Immutable. SecretManager resource containing the webhook secret - * of a GitLab Enterprise project, formatted as - * `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $webhook_secret_secret_version = ''; - /** - * Required. A GitLab personal access token with the minimum `read_api` scope - * access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $read_authorizer_credential = null; - /** - * Required. A GitLab personal access token with the `api` scope access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $authorizer_credential = null; - /** - * Configuration for using Service Directory to privately connect to a GitLab - * Enterprise server. This should only be set if the GitLab Enterprise server - * is hosted on-premises and not reachable by public internet. If this field - * is left empty, calls to the GitLab Enterprise server will be made over the - * public internet. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5; - */ - protected $service_directory_config = null; - /** - * SSL certificate to use for requests to GitLab Enterprise. - * - * Generated from protobuf field string ssl_ca = 6; - */ - protected $ssl_ca = ''; - /** - * Output only. Version of the GitLab Enterprise server running on the - * `host_uri`. - * - * Generated from protobuf field string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $server_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $host_uri - * The URI of the GitLab Enterprise host this connection is for. - * If not specified, the default value is https://gitlab.com. - * @type string $webhook_secret_secret_version - * Required. Immutable. SecretManager resource containing the webhook secret - * of a GitLab Enterprise project, formatted as - * `projects/*/secrets/*/versions/*`. - * @type \Google\Cloud\Build\V2\UserCredential $read_authorizer_credential - * Required. A GitLab personal access token with the minimum `read_api` scope - * access. - * @type \Google\Cloud\Build\V2\UserCredential $authorizer_credential - * Required. A GitLab personal access token with the `api` scope access. - * @type \Google\Cloud\Build\V2\ServiceDirectoryConfig $service_directory_config - * Configuration for using Service Directory to privately connect to a GitLab - * Enterprise server. This should only be set if the GitLab Enterprise server - * is hosted on-premises and not reachable by public internet. If this field - * is left empty, calls to the GitLab Enterprise server will be made over the - * public internet. - * @type string $ssl_ca - * SSL certificate to use for requests to GitLab Enterprise. - * @type string $server_version - * Output only. Version of the GitLab Enterprise server running on the - * `host_uri`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * The URI of the GitLab Enterprise host this connection is for. - * If not specified, the default value is https://gitlab.com. - * - * Generated from protobuf field string host_uri = 1; - * @return string - */ - public function getHostUri() - { - return $this->host_uri; - } - - /** - * The URI of the GitLab Enterprise host this connection is for. - * If not specified, the default value is https://gitlab.com. - * - * Generated from protobuf field string host_uri = 1; - * @param string $var - * @return $this - */ - public function setHostUri($var) - { - GPBUtil::checkString($var, True); - $this->host_uri = $var; - - return $this; - } - - /** - * Required. Immutable. SecretManager resource containing the webhook secret - * of a GitLab Enterprise project, formatted as - * `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getWebhookSecretSecretVersion() - { - return $this->webhook_secret_secret_version; - } - - /** - * Required. Immutable. SecretManager resource containing the webhook secret - * of a GitLab Enterprise project, formatted as - * `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string webhook_secret_secret_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWebhookSecretSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->webhook_secret_secret_version = $var; - - return $this; - } - - /** - * Required. A GitLab personal access token with the minimum `read_api` scope - * access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Build\V2\UserCredential|null - */ - public function getReadAuthorizerCredential() - { - return $this->read_authorizer_credential; - } - - public function hasReadAuthorizerCredential() - { - return isset($this->read_authorizer_credential); - } - - public function clearReadAuthorizerCredential() - { - unset($this->read_authorizer_credential); - } - - /** - * Required. A GitLab personal access token with the minimum `read_api` scope - * access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential read_authorizer_credential = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Build\V2\UserCredential $var - * @return $this - */ - public function setReadAuthorizerCredential($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\UserCredential::class); - $this->read_authorizer_credential = $var; - - return $this; - } - - /** - * Required. A GitLab personal access token with the `api` scope access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Build\V2\UserCredential|null - */ - public function getAuthorizerCredential() - { - return $this->authorizer_credential; - } - - public function hasAuthorizerCredential() - { - return isset($this->authorizer_credential); - } - - public function clearAuthorizerCredential() - { - unset($this->authorizer_credential); - } - - /** - * Required. A GitLab personal access token with the `api` scope access. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.UserCredential authorizer_credential = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Build\V2\UserCredential $var - * @return $this - */ - public function setAuthorizerCredential($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\UserCredential::class); - $this->authorizer_credential = $var; - - return $this; - } - - /** - * Configuration for using Service Directory to privately connect to a GitLab - * Enterprise server. This should only be set if the GitLab Enterprise server - * is hosted on-premises and not reachable by public internet. If this field - * is left empty, calls to the GitLab Enterprise server will be made over the - * public internet. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5; - * @return \Google\Cloud\Build\V2\ServiceDirectoryConfig|null - */ - public function getServiceDirectoryConfig() - { - return $this->service_directory_config; - } - - public function hasServiceDirectoryConfig() - { - return isset($this->service_directory_config); - } - - public function clearServiceDirectoryConfig() - { - unset($this->service_directory_config); - } - - /** - * Configuration for using Service Directory to privately connect to a GitLab - * Enterprise server. This should only be set if the GitLab Enterprise server - * is hosted on-premises and not reachable by public internet. If this field - * is left empty, calls to the GitLab Enterprise server will be made over the - * public internet. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.ServiceDirectoryConfig service_directory_config = 5; - * @param \Google\Cloud\Build\V2\ServiceDirectoryConfig $var - * @return $this - */ - public function setServiceDirectoryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\ServiceDirectoryConfig::class); - $this->service_directory_config = $var; - - return $this; - } - - /** - * SSL certificate to use for requests to GitLab Enterprise. - * - * Generated from protobuf field string ssl_ca = 6; - * @return string - */ - public function getSslCa() - { - return $this->ssl_ca; - } - - /** - * SSL certificate to use for requests to GitLab Enterprise. - * - * Generated from protobuf field string ssl_ca = 6; - * @param string $var - * @return $this - */ - public function setSslCa($var) - { - GPBUtil::checkString($var, True); - $this->ssl_ca = $var; - - return $this; - } - - /** - * Output only. Version of the GitLab Enterprise server running on the - * `host_uri`. - * - * Generated from protobuf field string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServerVersion() - { - return $this->server_version; - } - - /** - * Output only. Version of the GitLab Enterprise server running on the - * `host_uri`. - * - * Generated from protobuf field string server_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServerVersion($var) - { - GPBUtil::checkString($var, True); - $this->server_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/InstallationState.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/InstallationState.php deleted file mode 100644 index b1ae1f2c68e8..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/InstallationState.php +++ /dev/null @@ -1,145 +0,0 @@ -google.devtools.cloudbuild.v2.InstallationState - */ -class InstallationState extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Current step of the installation process. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.InstallationState.Stage stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $stage = 0; - /** - * Output only. Message of what the user should do next to continue the - * installation. Empty string if the installation is already complete. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $message = ''; - /** - * Output only. Link to follow for next action. Empty string if the - * installation is already complete. - * - * Generated from protobuf field string action_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $action_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $stage - * Output only. Current step of the installation process. - * @type string $message - * Output only. Message of what the user should do next to continue the - * installation. Empty string if the installation is already complete. - * @type string $action_uri - * Output only. Link to follow for next action. Empty string if the - * installation is already complete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Current step of the installation process. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.InstallationState.Stage stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStage() - { - return $this->stage; - } - - /** - * Output only. Current step of the installation process. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.InstallationState.Stage stage = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Build\V2\InstallationState\Stage::class); - $this->stage = $var; - - return $this; - } - - /** - * Output only. Message of what the user should do next to continue the - * installation. Empty string if the installation is already complete. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Output only. Message of what the user should do next to continue the - * installation. Empty string if the installation is already complete. - * - * Generated from protobuf field string message = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Output only. Link to follow for next action. Empty string if the - * installation is already complete. - * - * Generated from protobuf field string action_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getActionUri() - { - return $this->action_uri; - } - - /** - * Output only. Link to follow for next action. Empty string if the - * installation is already complete. - * - * Generated from protobuf field string action_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setActionUri($var) - { - GPBUtil::checkString($var, True); - $this->action_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/InstallationState/Stage.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/InstallationState/Stage.php deleted file mode 100644 index 710ce522164f..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/InstallationState/Stage.php +++ /dev/null @@ -1,79 +0,0 @@ -google.devtools.cloudbuild.v2.InstallationState.Stage - */ -class Stage -{ - /** - * No stage specified. - * - * Generated from protobuf enum STAGE_UNSPECIFIED = 0; - */ - const STAGE_UNSPECIFIED = 0; - /** - * Only for GitHub Enterprise. An App creation has been requested. - * The user needs to confirm the creation in their GitHub enterprise host. - * - * Generated from protobuf enum PENDING_CREATE_APP = 1; - */ - const PENDING_CREATE_APP = 1; - /** - * User needs to authorize the GitHub (or Enterprise) App via OAuth. - * - * Generated from protobuf enum PENDING_USER_OAUTH = 2; - */ - const PENDING_USER_OAUTH = 2; - /** - * User needs to follow the link to install the GitHub (or Enterprise) App. - * - * Generated from protobuf enum PENDING_INSTALL_APP = 3; - */ - const PENDING_INSTALL_APP = 3; - /** - * Installation process has been completed. - * - * Generated from protobuf enum COMPLETE = 10; - */ - const COMPLETE = 10; - - private static $valueToName = [ - self::STAGE_UNSPECIFIED => 'STAGE_UNSPECIFIED', - self::PENDING_CREATE_APP => 'PENDING_CREATE_APP', - self::PENDING_USER_OAUTH => 'PENDING_USER_OAUTH', - self::PENDING_INSTALL_APP => 'PENDING_INSTALL_APP', - self::COMPLETE => 'COMPLETE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Stage::class, \Google\Cloud\Build\V2\InstallationState_Stage::class); - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListConnectionsRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListConnectionsRequest.php deleted file mode 100644 index d074735f716d..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListConnectionsRequest.php +++ /dev/null @@ -1,154 +0,0 @@ -google.devtools.cloudbuild.v2.ListConnectionsRequest - */ -class ListConnectionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of Connections. - * Format: `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Number of results to return in the list. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page start. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of Connections. - * Format: `projects/*/locations/*`. Please see - * {@see RepositoryManagerClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Build\V2\ListConnectionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of Connections. - * Format: `projects/*/locations/*`. - * @type int $page_size - * Number of results to return in the list. - * @type string $page_token - * Page start. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of Connections. - * Format: `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of Connections. - * 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; - } - - /** - * Number of results to return in the list. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of results to return in the list. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Page start. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page start. - * - * 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/Build/v2/proto/src/Google/Cloud/Build/V2/ListConnectionsResponse.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListConnectionsResponse.php deleted file mode 100644 index 9d9a916d3a00..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListConnectionsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.devtools.cloudbuild.v2.ListConnectionsResponse - */ -class ListConnectionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Connections. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Connection connections = 1; - */ - private $connections; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Build\V2\Connection>|\Google\Protobuf\Internal\RepeatedField $connections - * The list of Connections. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * The list of Connections. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Connection connections = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConnections() - { - return $this->connections; - } - - /** - * The list of Connections. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Connection connections = 1; - * @param array<\Google\Cloud\Build\V2\Connection>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConnections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Build\V2\Connection::class); - $this->connections = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListRepositoriesRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListRepositoriesRequest.php deleted file mode 100644 index b348f630d745..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListRepositoriesRequest.php +++ /dev/null @@ -1,200 +0,0 @@ -google.devtools.cloudbuild.v2.ListRepositoriesRequest - */ -class ListRepositoriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent, which owns this collection of Repositories. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Number of results to return in the list. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Page start. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A filter expression that filters resources listed in the response. - * Expressions must follow API improvement proposal - * [AIP-160](https://google.aip.dev/160). e.g. - * `remote_uri:"https://github.com*"`. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent, which owns this collection of Repositories. - * Format: `projects/*/locations/*/connections/*`. Please see - * {@see RepositoryManagerClient::connectionName()} for help formatting this field. - * - * @return \Google\Cloud\Build\V2\ListRepositoriesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent, which owns this collection of Repositories. - * Format: `projects/*/locations/*/connections/*`. - * @type int $page_size - * Number of results to return in the list. - * @type string $page_token - * Page start. - * @type string $filter - * A filter expression that filters resources listed in the response. - * Expressions must follow API improvement proposal - * [AIP-160](https://google.aip.dev/160). e.g. - * `remote_uri:"https://github.com*"`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent, which owns this collection of Repositories. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent, which owns this collection of Repositories. - * Format: `projects/*/locations/*/connections/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Number of results to return in the list. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Number of results to return in the list. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Page start. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page start. - * - * 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 expression that filters resources listed in the response. - * Expressions must follow API improvement proposal - * [AIP-160](https://google.aip.dev/160). e.g. - * `remote_uri:"https://github.com*"`. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A filter expression that filters resources listed in the response. - * Expressions must follow API improvement proposal - * [AIP-160](https://google.aip.dev/160). e.g. - * `remote_uri:"https://github.com*"`. - * - * 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/Build/v2/proto/src/Google/Cloud/Build/V2/ListRepositoriesResponse.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListRepositoriesResponse.php deleted file mode 100644 index 54490f450841..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ListRepositoriesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.devtools.cloudbuild.v2.ListRepositoriesResponse - */ -class ListRepositoriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Repositories. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Repository repositories = 1; - */ - private $repositories; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Build\V2\Repository>|\Google\Protobuf\Internal\RepeatedField $repositories - * The list of Repositories. - * @type string $next_page_token - * A token identifying a page of results the server should return. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * The list of Repositories. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Repository repositories = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRepositories() - { - return $this->repositories; - } - - /** - * The list of Repositories. - * - * Generated from protobuf field repeated .google.devtools.cloudbuild.v2.Repository repositories = 1; - * @param array<\Google\Cloud\Build\V2\Repository>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRepositories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Build\V2\Repository::class); - $this->repositories = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/OAuthCredential.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/OAuthCredential.php deleted file mode 100644 index 02ae959dbbb1..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/OAuthCredential.php +++ /dev/null @@ -1,106 +0,0 @@ -google.devtools.cloudbuild.v2.OAuthCredential - */ -class OAuthCredential extends \Google\Protobuf\Internal\Message -{ - /** - * A SecretManager resource containing the OAuth token that authorizes - * the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string oauth_token_secret_version = 1 [(.google.api.resource_reference) = { - */ - protected $oauth_token_secret_version = ''; - /** - * Output only. The username associated to this token. - * - * Generated from protobuf field string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $username = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $oauth_token_secret_version - * A SecretManager resource containing the OAuth token that authorizes - * the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`. - * @type string $username - * Output only. The username associated to this token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * A SecretManager resource containing the OAuth token that authorizes - * the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string oauth_token_secret_version = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getOauthTokenSecretVersion() - { - return $this->oauth_token_secret_version; - } - - /** - * A SecretManager resource containing the OAuth token that authorizes - * the Cloud Build connection. Format: `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string oauth_token_secret_version = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setOauthTokenSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->oauth_token_secret_version = $var; - - return $this; - } - - /** - * Output only. The username associated to this token. - * - * Generated from protobuf field string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * Output only. The username associated to this token. - * - * Generated from protobuf field string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/OperationMetadata.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/OperationMetadata.php deleted file mode 100644 index 42a4e11540ab..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.devtools.cloudbuild.v2.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Cloudbuild::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ProcessWebhookRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ProcessWebhookRequest.php deleted file mode 100644 index cf013c817200..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ProcessWebhookRequest.php +++ /dev/null @@ -1,153 +0,0 @@ -google.devtools.cloudbuild.v2.ProcessWebhookRequest - */ -class ProcessWebhookRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Project and location where the webhook will be received. - * Format: `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * HTTP request body. - * - * Generated from protobuf field .google.api.HttpBody body = 2; - */ - protected $body = null; - /** - * Arbitrary additional key to find the maching repository for a webhook event - * if needed. - * - * Generated from protobuf field string webhook_key = 3; - */ - protected $webhook_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Project and location where the webhook will be received. - * Format: `projects/*/locations/*`. - * @type \Google\Api\HttpBody $body - * HTTP request body. - * @type string $webhook_key - * Arbitrary additional key to find the maching repository for a webhook event - * if needed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. Project and location where the webhook will be received. - * 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. Project and location where the webhook will be received. - * 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; - } - - /** - * HTTP request body. - * - * Generated from protobuf field .google.api.HttpBody body = 2; - * @return \Google\Api\HttpBody|null - */ - public function getBody() - { - return $this->body; - } - - public function hasBody() - { - return isset($this->body); - } - - public function clearBody() - { - unset($this->body); - } - - /** - * HTTP request body. - * - * Generated from protobuf field .google.api.HttpBody body = 2; - * @param \Google\Api\HttpBody $var - * @return $this - */ - public function setBody($var) - { - GPBUtil::checkMessage($var, \Google\Api\HttpBody::class); - $this->body = $var; - - return $this; - } - - /** - * Arbitrary additional key to find the maching repository for a webhook event - * if needed. - * - * Generated from protobuf field string webhook_key = 3; - * @return string - */ - public function getWebhookKey() - { - return $this->webhook_key; - } - - /** - * Arbitrary additional key to find the maching repository for a webhook event - * if needed. - * - * Generated from protobuf field string webhook_key = 3; - * @param string $var - * @return $this - */ - public function setWebhookKey($var) - { - GPBUtil::checkString($var, True); - $this->webhook_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/Repository.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/Repository.php deleted file mode 100644 index 6099cdddc399..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/Repository.php +++ /dev/null @@ -1,303 +0,0 @@ -google.devtools.cloudbuild.v2.Repository - */ -class Repository extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Resource name of the repository, in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Required. Git Clone HTTPS URI. - * - * Generated from protobuf field string remote_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $remote_uri = ''; - /** - * Output only. Server assigned timestamp for when the connection was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Server assigned timestamp for when the connection was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Allows clients to store small amounts of arbitrary data. - * - * Generated from protobuf field map annotations = 6; - */ - private $annotations; - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 7; - */ - protected $etag = ''; - /** - * Output only. External ID of the webhook created for the repository. - * - * Generated from protobuf field string webhook_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $webhook_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. Resource name of the repository, in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * @type string $remote_uri - * Required. Git Clone HTTPS URI. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Server assigned timestamp for when the connection was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Server assigned timestamp for when the connection was updated. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Allows clients to store small amounts of arbitrary data. - * @type string $etag - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * @type string $webhook_id - * Output only. External ID of the webhook created for the repository. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. Resource name of the repository, in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. Resource name of the repository, in the format - * `projects/*/locations/*/connections/*/repositories/*`. - * - * 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. Git Clone HTTPS URI. - * - * Generated from protobuf field string remote_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRemoteUri() - { - return $this->remote_uri; - } - - /** - * Required. Git Clone HTTPS URI. - * - * Generated from protobuf field string remote_uri = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRemoteUri($var) - { - GPBUtil::checkString($var, True); - $this->remote_uri = $var; - - return $this; - } - - /** - * Output only. Server assigned timestamp for when the connection was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Server assigned timestamp for when the connection was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Server assigned timestamp for when the connection was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Server assigned timestamp for when the connection was updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Allows clients to store small amounts of arbitrary data. - * - * Generated from protobuf field map annotations = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Allows clients to store small amounts of arbitrary data. - * - * Generated from protobuf field map annotations = 6; - * @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; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 7; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of other - * fields, and may be sent on update and delete requests to ensure the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 7; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. External ID of the webhook created for the repository. - * - * Generated from protobuf field string webhook_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getWebhookId() - { - return $this->webhook_id; - } - - /** - * Output only. External ID of the webhook created for the repository. - * - * Generated from protobuf field string webhook_id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setWebhookId($var) - { - GPBUtil::checkString($var, True); - $this->webhook_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/RunWorkflowCustomOperationMetadata.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/RunWorkflowCustomOperationMetadata.php deleted file mode 100644 index 607954ea33b7..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/RunWorkflowCustomOperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.devtools.cloudbuild.v2.RunWorkflowCustomOperationMetadata - */ -class RunWorkflowCustomOperationMetadata 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. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * 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 = 4 [(.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 = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. ID of the pipeline run created by RunWorkflow. - * - * Generated from protobuf field string pipeline_run_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pipeline_run_id = ''; - - /** - * 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 $verb - * Output only. Name of the verb executed by the operation. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $pipeline_run_id - * Output only. ID of the pipeline run created by RunWorkflow. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Cloudbuild::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. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 3 [(.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 = 3 [(.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. 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 = 4 [(.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 = 4 [(.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 = 5 [(.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 = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 6 [(.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 = 6 [(.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. ID of the pipeline run created by RunWorkflow. - * - * Generated from protobuf field string pipeline_run_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPipelineRunId() - { - return $this->pipeline_run_id; - } - - /** - * Output only. ID of the pipeline run created by RunWorkflow. - * - * Generated from protobuf field string pipeline_run_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPipelineRunId($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_run_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ServiceDirectoryConfig.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ServiceDirectoryConfig.php deleted file mode 100644 index 319cc1be7884..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/ServiceDirectoryConfig.php +++ /dev/null @@ -1,76 +0,0 @@ -google.devtools.cloudbuild.v2.ServiceDirectoryConfig - */ -class ServiceDirectoryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Service Directory service name. - * Format: - * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The Service Directory service name. - * Format: - * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Service Directory service name. - * Format: - * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The Service Directory service name. - * Format: - * projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/UpdateConnectionRequest.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/UpdateConnectionRequest.php deleted file mode 100644 index 9249d61cca33..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/UpdateConnectionRequest.php +++ /dev/null @@ -1,228 +0,0 @@ -google.devtools.cloudbuild.v2.UpdateConnectionRequest - */ -class UpdateConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Connection to update. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.Connection connection = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $connection = null; - /** - * The list of fields to be updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * If set to true, and the connection is not found a new connection - * will be created. In this situation `update_mask` is ignored. - * The creation will succeed only if the input connection has all the - * necessary information (e.g a github_config with both user_oauth_token and - * installation_id properties). - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - /** - * The current etag of the connection. - * If an etag is provided and does not match the current etag of the - * connection, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - */ - protected $etag = ''; - - /** - * @param \Google\Cloud\Build\V2\Connection $connection Required. The Connection to update. - * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. - * - * @return \Google\Cloud\Build\V2\UpdateConnectionRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Build\V2\Connection $connection, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setConnection($connection) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Build\V2\Connection $connection - * Required. The Connection to update. - * @type \Google\Protobuf\FieldMask $update_mask - * The list of fields to be updated. - * @type bool $allow_missing - * If set to true, and the connection is not found a new connection - * will be created. In this situation `update_mask` is ignored. - * The creation will succeed only if the input connection has all the - * necessary information (e.g a github_config with both user_oauth_token and - * installation_id properties). - * @type string $etag - * The current etag of the connection. - * If an etag is provided and does not match the current etag of the - * connection, update will be blocked and an ABORTED error will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Connection to update. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.Connection connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Build\V2\Connection|null - */ - public function getConnection() - { - return $this->connection; - } - - public function hasConnection() - { - return isset($this->connection); - } - - public function clearConnection() - { - unset($this->connection); - } - - /** - * Required. The Connection to update. - * - * Generated from protobuf field .google.devtools.cloudbuild.v2.Connection connection = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Build\V2\Connection $var - * @return $this - */ - public function setConnection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Build\V2\Connection::class); - $this->connection = $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; - } - - /** - * If set to true, and the connection is not found a new connection - * will be created. In this situation `update_mask` is ignored. - * The creation will succeed only if the input connection has all the - * necessary information (e.g a github_config with both user_oauth_token and - * installation_id properties). - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the connection is not found a new connection - * will be created. In this situation `update_mask` is ignored. - * The creation will succeed only if the input connection has all the - * necessary information (e.g a github_config with both user_oauth_token and - * installation_id properties). - * - * 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; - } - - /** - * The current etag of the connection. - * If an etag is provided and does not match the current etag of the - * connection, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the connection. - * If an etag is provided and does not match the current etag of the - * connection, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 4; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/UserCredential.php b/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/UserCredential.php deleted file mode 100644 index c19841970419..000000000000 --- a/owl-bot-staging/Build/v2/proto/src/Google/Cloud/Build/V2/UserCredential.php +++ /dev/null @@ -1,110 +0,0 @@ -google.devtools.cloudbuild.v2.UserCredential - */ -class UserCredential extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A SecretManager resource containing the user token that - * authorizes the Cloud Build connection. Format: - * `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $user_token_secret_version = ''; - /** - * Output only. The username associated to this token. - * - * Generated from protobuf field string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $username = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user_token_secret_version - * Required. A SecretManager resource containing the user token that - * authorizes the Cloud Build connection. Format: - * `projects/*/secrets/*/versions/*`. - * @type string $username - * Output only. The username associated to this token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Cloudbuild\V2\Repositories::initOnce(); - parent::__construct($data); - } - - /** - * Required. A SecretManager resource containing the user token that - * authorizes the Cloud Build connection. Format: - * `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getUserTokenSecretVersion() - { - return $this->user_token_secret_version; - } - - /** - * Required. A SecretManager resource containing the user token that - * authorizes the Cloud Build connection. Format: - * `projects/*/secrets/*/versions/*`. - * - * Generated from protobuf field string user_token_secret_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setUserTokenSecretVersion($var) - { - GPBUtil::checkString($var, True); - $this->user_token_secret_version = $var; - - return $this; - } - - /** - * Output only. The username associated to this token. - * - * Generated from protobuf field string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * Output only. The username associated to this token. - * - * Generated from protobuf field string username = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/batch_create_repositories.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/batch_create_repositories.php deleted file mode 100644 index 9531c479f1f7..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/batch_create_repositories.php +++ /dev/null @@ -1,125 +0,0 @@ -setRemoteUri($requestsRepositoryRemoteUri); - $createRepositoryRequest = (new CreateRepositoryRequest()) - ->setParent($formattedRequestsParent) - ->setRepository($requestsRepository) - ->setRepositoryId($requestsRepositoryId); - $requests = [$createRepositoryRequest,]; - $request = (new BatchCreateRepositoriesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $repositoryManagerClient->batchCreateRepositories($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BatchCreateRepositoriesResponse $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 = RepositoryManagerClient::connectionName( - '[PROJECT]', - '[LOCATION]', - '[CONNECTION]' - ); - $formattedRequestsParent = RepositoryManagerClient::connectionName( - '[PROJECT]', - '[LOCATION]', - '[CONNECTION]' - ); - $requestsRepositoryRemoteUri = '[REMOTE_URI]'; - $requestsRepositoryId = '[REPOSITORY_ID]'; - - batch_create_repositories_sample( - $formattedParent, - $formattedRequestsParent, - $requestsRepositoryRemoteUri, - $requestsRepositoryId - ); -} -// [END cloudbuild_v2_generated_RepositoryManager_BatchCreateRepositories_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/create_connection.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/create_connection.php deleted file mode 100644 index 7d1f8dccfa37..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/create_connection.php +++ /dev/null @@ -1,92 +0,0 @@ -setParent($formattedParent) - ->setConnection($connection) - ->setConnectionId($connectionId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $repositoryManagerClient->createConnection($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Connection $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 = RepositoryManagerClient::locationName('[PROJECT]', '[LOCATION]'); - $connectionId = '[CONNECTION_ID]'; - - create_connection_sample($formattedParent, $connectionId); -} -// [END cloudbuild_v2_generated_RepositoryManager_CreateConnection_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/create_repository.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/create_repository.php deleted file mode 100644 index e401e4ecccb1..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/create_repository.php +++ /dev/null @@ -1,103 +0,0 @@ -setRemoteUri($repositoryRemoteUri); - $request = (new CreateRepositoryRequest()) - ->setParent($formattedParent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $repositoryManagerClient->createRepository($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Repository $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 = RepositoryManagerClient::connectionName( - '[PROJECT]', - '[LOCATION]', - '[CONNECTION]' - ); - $repositoryRemoteUri = '[REMOTE_URI]'; - $repositoryId = '[REPOSITORY_ID]'; - - create_repository_sample($formattedParent, $repositoryRemoteUri, $repositoryId); -} -// [END cloudbuild_v2_generated_RepositoryManager_CreateRepository_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/delete_connection.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/delete_connection.php deleted file mode 100644 index fbb101000d2e..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/delete_connection.php +++ /dev/null @@ -1,81 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $repositoryManagerClient->deleteConnection($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 = RepositoryManagerClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - - delete_connection_sample($formattedName); -} -// [END cloudbuild_v2_generated_RepositoryManager_DeleteConnection_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/delete_repository.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/delete_repository.php deleted file mode 100644 index c44174837c77..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/delete_repository.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $repositoryManagerClient->deleteRepository($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 = RepositoryManagerClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[CONNECTION]', - '[REPOSITORY]' - ); - - delete_repository_sample($formattedName); -} -// [END cloudbuild_v2_generated_RepositoryManager_DeleteRepository_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_git_refs.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_git_refs.php deleted file mode 100644 index 072474c1b312..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_git_refs.php +++ /dev/null @@ -1,77 +0,0 @@ -setRepository($formattedRepository); - - // Call the API and handle any network failures. - try { - /** @var FetchGitRefsResponse $response */ - $response = $repositoryManagerClient->fetchGitRefs($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedRepository = RepositoryManagerClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[CONNECTION]', - '[REPOSITORY]' - ); - - fetch_git_refs_sample($formattedRepository); -} -// [END cloudbuild_v2_generated_RepositoryManager_FetchGitRefs_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_linkable_repositories.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_linkable_repositories.php deleted file mode 100644 index 2241d968cfc8..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_linkable_repositories.php +++ /dev/null @@ -1,82 +0,0 @@ -setConnection($formattedConnection); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $repositoryManagerClient->fetchLinkableRepositories($request); - - /** @var Repository $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 -{ - $formattedConnection = RepositoryManagerClient::connectionName( - '[PROJECT]', - '[LOCATION]', - '[CONNECTION]' - ); - - fetch_linkable_repositories_sample($formattedConnection); -} -// [END cloudbuild_v2_generated_RepositoryManager_FetchLinkableRepositories_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_read_token.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_read_token.php deleted file mode 100644 index 6f26196146e4..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_read_token.php +++ /dev/null @@ -1,77 +0,0 @@ -setRepository($formattedRepository); - - // Call the API and handle any network failures. - try { - /** @var FetchReadTokenResponse $response */ - $response = $repositoryManagerClient->fetchReadToken($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedRepository = RepositoryManagerClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[CONNECTION]', - '[REPOSITORY]' - ); - - fetch_read_token_sample($formattedRepository); -} -// [END cloudbuild_v2_generated_RepositoryManager_FetchReadToken_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_read_write_token.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_read_write_token.php deleted file mode 100644 index c3e5f48bbc68..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/fetch_read_write_token.php +++ /dev/null @@ -1,77 +0,0 @@ -setRepository($formattedRepository); - - // Call the API and handle any network failures. - try { - /** @var FetchReadWriteTokenResponse $response */ - $response = $repositoryManagerClient->fetchReadWriteToken($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedRepository = RepositoryManagerClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[CONNECTION]', - '[REPOSITORY]' - ); - - fetch_read_write_token_sample($formattedRepository); -} -// [END cloudbuild_v2_generated_RepositoryManager_FetchReadWriteToken_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_connection.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_connection.php deleted file mode 100644 index fbe22f7cf926..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_connection.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Connection $response */ - $response = $repositoryManagerClient->getConnection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RepositoryManagerClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - - get_connection_sample($formattedName); -} -// [END cloudbuild_v2_generated_RepositoryManager_GetConnection_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_iam_policy.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_iam_policy.php deleted file mode 100644 index 525f3bd90f6b..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $repositoryManagerClient->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 cloudbuild_v2_generated_RepositoryManager_GetIamPolicy_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_repository.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_repository.php deleted file mode 100644 index 80af31103802..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/get_repository.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Repository $response */ - $response = $repositoryManagerClient->getRepository($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = RepositoryManagerClient::repositoryName( - '[PROJECT]', - '[LOCATION]', - '[CONNECTION]', - '[REPOSITORY]' - ); - - get_repository_sample($formattedName); -} -// [END cloudbuild_v2_generated_RepositoryManager_GetRepository_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/list_connections.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/list_connections.php deleted file mode 100644 index 28e27a8f2f7e..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/list_connections.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $repositoryManagerClient->listConnections($request); - - /** @var Connection $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = RepositoryManagerClient::locationName('[PROJECT]', '[LOCATION]'); - - list_connections_sample($formattedParent); -} -// [END cloudbuild_v2_generated_RepositoryManager_ListConnections_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/list_repositories.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/list_repositories.php deleted file mode 100644 index 3d116a78a84f..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/list_repositories.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $repositoryManagerClient->listRepositories($request); - - /** @var Repository $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 = RepositoryManagerClient::connectionName( - '[PROJECT]', - '[LOCATION]', - '[CONNECTION]' - ); - - list_repositories_sample($formattedParent); -} -// [END cloudbuild_v2_generated_RepositoryManager_ListRepositories_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/set_iam_policy.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/set_iam_policy.php deleted file mode 100644 index 56a87df21f8b..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $repositoryManagerClient->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 cloudbuild_v2_generated_RepositoryManager_SetIamPolicy_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/test_iam_permissions.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/test_iam_permissions.php deleted file mode 100644 index 7d68efcbfc1f..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $repositoryManagerClient->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 cloudbuild_v2_generated_RepositoryManager_TestIamPermissions_sync] diff --git a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/update_connection.php b/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/update_connection.php deleted file mode 100644 index f87b1295aa5f..000000000000 --- a/owl-bot-staging/Build/v2/samples/V2/RepositoryManagerClient/update_connection.php +++ /dev/null @@ -1,71 +0,0 @@ -setConnection($connection); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $repositoryManagerClient->updateConnection($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Connection $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 cloudbuild_v2_generated_RepositoryManager_UpdateConnection_sync] diff --git a/owl-bot-staging/Build/v2/src/V2/Client/RepositoryManagerClient.php b/owl-bot-staging/Build/v2/src/V2/Client/RepositoryManagerClient.php deleted file mode 100644 index 585651520b94..000000000000 --- a/owl-bot-staging/Build/v2/src/V2/Client/RepositoryManagerClient.php +++ /dev/null @@ -1,845 +0,0 @@ - batchCreateRepositoriesAsync(BatchCreateRepositoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConnectionAsync(CreateConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRepositoryAsync(CreateRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConnectionAsync(DeleteConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRepositoryAsync(DeleteRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchGitRefsAsync(FetchGitRefsRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchLinkableRepositoriesAsync(FetchLinkableRepositoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchReadTokenAsync(FetchReadTokenRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchReadWriteTokenAsync(FetchReadWriteTokenRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConnectionAsync(GetConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRepositoryAsync(GetRepositoryRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRepositoriesAsync(ListRepositoriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConnectionAsync(UpdateConnectionRequest $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 RepositoryManagerClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.devtools.cloudbuild.v2.RepositoryManager'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'cloudbuild.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'cloudbuild.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/repository_manager_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/repository_manager_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/repository_manager_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/repository_manager_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 connection - * resource. - * - * @param string $project - * @param string $location - * @param string $connection - * - * @return string The formatted connection resource. - */ - public static function connectionName(string $project, string $location, string $connection): string - { - return self::getPathTemplate('connection')->render([ - 'project' => $project, - 'location' => $location, - 'connection' => $connection, - ]); - } - - /** - * 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 repository - * resource. - * - * @param string $project - * @param string $location - * @param string $connection - * @param string $repository - * - * @return string The formatted repository resource. - */ - public static function repositoryName(string $project, string $location, string $connection, string $repository): string - { - return self::getPathTemplate('repository')->render([ - 'project' => $project, - 'location' => $location, - 'connection' => $connection, - 'repository' => $repository, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * secret_version resource. - * - * @param string $project - * @param string $secret - * @param string $version - * - * @return string The formatted secret_version resource. - */ - public static function secretVersionName(string $project, string $secret, string $version): string - { - return self::getPathTemplate('secretVersion')->render([ - 'project' => $project, - 'secret' => $secret, - 'version' => $version, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a service - * resource. - * - * @param string $project - * @param string $location - * @param string $namespace - * @param string $service - * - * @return string The formatted service resource. - */ - public static function serviceName(string $project, string $location, string $namespace, string $service): string - { - return self::getPathTemplate('service')->render([ - 'project' => $project, - 'location' => $location, - 'namespace' => $namespace, - 'service' => $service, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - connection: projects/{project}/locations/{location}/connections/{connection} - * - location: projects/{project}/locations/{location} - * - repository: projects/{project}/locations/{location}/connections/{connection}/repositories/{repository} - * - secretVersion: projects/{project}/secrets/{secret}/versions/{version} - * - service: projects/{project}/locations/{location}/namespaces/{namespace}/services/{service} - * - * 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 'cloudbuild.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 multiple repositories inside a connection. - * - * The async variant is - * {@see RepositoryManagerClient::batchCreateRepositoriesAsync()} . - * - * @example samples/V2/RepositoryManagerClient/batch_create_repositories.php - * - * @param BatchCreateRepositoriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 batchCreateRepositories(BatchCreateRepositoriesRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('BatchCreateRepositories', $request, $callOptions)->wait(); - } - - /** - * Creates a Connection. - * - * The async variant is {@see RepositoryManagerClient::createConnectionAsync()} . - * - * @example samples/V2/RepositoryManagerClient/create_connection.php - * - * @param CreateConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createConnection(CreateConnectionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateConnection', $request, $callOptions)->wait(); - } - - /** - * Creates a Repository. - * - * The async variant is {@see RepositoryManagerClient::createRepositoryAsync()} . - * - * @example samples/V2/RepositoryManagerClient/create_repository.php - * - * @param CreateRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createRepository(CreateRepositoryRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateRepository', $request, $callOptions)->wait(); - } - - /** - * Deletes a single connection. - * - * The async variant is {@see RepositoryManagerClient::deleteConnectionAsync()} . - * - * @example samples/V2/RepositoryManagerClient/delete_connection.php - * - * @param DeleteConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteConnection(DeleteConnectionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteConnection', $request, $callOptions)->wait(); - } - - /** - * Deletes a single repository. - * - * The async variant is {@see RepositoryManagerClient::deleteRepositoryAsync()} . - * - * @example samples/V2/RepositoryManagerClient/delete_repository.php - * - * @param DeleteRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteRepository(DeleteRepositoryRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteRepository', $request, $callOptions)->wait(); - } - - /** - * Fetch the list of branches or tags for a given repository. - * - * The async variant is {@see RepositoryManagerClient::fetchGitRefsAsync()} . - * - * @example samples/V2/RepositoryManagerClient/fetch_git_refs.php - * - * @param FetchGitRefsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchGitRefsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchGitRefs(FetchGitRefsRequest $request, array $callOptions = []): FetchGitRefsResponse - { - return $this->startApiCall('FetchGitRefs', $request, $callOptions)->wait(); - } - - /** - * FetchLinkableRepositories get repositories from SCM that are - * accessible and could be added to the connection. - * - * The async variant is - * {@see RepositoryManagerClient::fetchLinkableRepositoriesAsync()} . - * - * @example samples/V2/RepositoryManagerClient/fetch_linkable_repositories.php - * - * @param FetchLinkableRepositoriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 fetchLinkableRepositories(FetchLinkableRepositoriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('FetchLinkableRepositories', $request, $callOptions); - } - - /** - * Fetches read token of a given repository. - * - * The async variant is {@see RepositoryManagerClient::fetchReadTokenAsync()} . - * - * @example samples/V2/RepositoryManagerClient/fetch_read_token.php - * - * @param FetchReadTokenRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchReadTokenResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchReadToken(FetchReadTokenRequest $request, array $callOptions = []): FetchReadTokenResponse - { - return $this->startApiCall('FetchReadToken', $request, $callOptions)->wait(); - } - - /** - * Fetches read/write token of a given repository. - * - * The async variant is {@see RepositoryManagerClient::fetchReadWriteTokenAsync()} - * . - * - * @example samples/V2/RepositoryManagerClient/fetch_read_write_token.php - * - * @param FetchReadWriteTokenRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchReadWriteTokenResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchReadWriteToken(FetchReadWriteTokenRequest $request, array $callOptions = []): FetchReadWriteTokenResponse - { - return $this->startApiCall('FetchReadWriteToken', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single connection. - * - * The async variant is {@see RepositoryManagerClient::getConnectionAsync()} . - * - * @example samples/V2/RepositoryManagerClient/get_connection.php - * - * @param GetConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Connection - * - * @throws ApiException Thrown if the API call fails. - */ - public function getConnection(GetConnectionRequest $request, array $callOptions = []): Connection - { - return $this->startApiCall('GetConnection', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single repository. - * - * The async variant is {@see RepositoryManagerClient::getRepositoryAsync()} . - * - * @example samples/V2/RepositoryManagerClient/get_repository.php - * - * @param GetRepositoryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Repository - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRepository(GetRepositoryRequest $request, array $callOptions = []): Repository - { - return $this->startApiCall('GetRepository', $request, $callOptions)->wait(); - } - - /** - * Lists Connections in a given project and location. - * - * The async variant is {@see RepositoryManagerClient::listConnectionsAsync()} . - * - * @example samples/V2/RepositoryManagerClient/list_connections.php - * - * @param ListConnectionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listConnections(ListConnectionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConnections', $request, $callOptions); - } - - /** - * Lists Repositories in a given connection. - * - * The async variant is {@see RepositoryManagerClient::listRepositoriesAsync()} . - * - * @example samples/V2/RepositoryManagerClient/list_repositories.php - * - * @param ListRepositoriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listRepositories(ListRepositoriesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRepositories', $request, $callOptions); - } - - /** - * Updates a single connection. - * - * The async variant is {@see RepositoryManagerClient::updateConnectionAsync()} . - * - * @example samples/V2/RepositoryManagerClient/update_connection.php - * - * @param UpdateConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateConnection(UpdateConnectionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateConnection', $request, $callOptions)->wait(); - } - - /** - * 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 RepositoryManagerClient::getIamPolicyAsync()} . - * - * @example samples/V2/RepositoryManagerClient/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 RepositoryManagerClient::setIamPolicyAsync()} . - * - * @example samples/V2/RepositoryManagerClient/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 RepositoryManagerClient::testIamPermissionsAsync()} . - * - * @example samples/V2/RepositoryManagerClient/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/Build/v2/src/V2/gapic_metadata.json b/owl-bot-staging/Build/v2/src/V2/gapic_metadata.json deleted file mode 100644 index d497e1288b7b..000000000000 --- a/owl-bot-staging/Build/v2/src/V2/gapic_metadata.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.devtools.cloudbuild.v2", - "libraryPackage": "Google\\Cloud\\Build\\V2", - "services": { - "RepositoryManager": { - "clients": { - "grpc": { - "libraryClient": "RepositoryManagerGapicClient", - "rpcs": { - "BatchCreateRepositories": { - "methods": [ - "batchCreateRepositories" - ] - }, - "CreateConnection": { - "methods": [ - "createConnection" - ] - }, - "CreateRepository": { - "methods": [ - "createRepository" - ] - }, - "DeleteConnection": { - "methods": [ - "deleteConnection" - ] - }, - "DeleteRepository": { - "methods": [ - "deleteRepository" - ] - }, - "FetchGitRefs": { - "methods": [ - "fetchGitRefs" - ] - }, - "FetchLinkableRepositories": { - "methods": [ - "fetchLinkableRepositories" - ] - }, - "FetchReadToken": { - "methods": [ - "fetchReadToken" - ] - }, - "FetchReadWriteToken": { - "methods": [ - "fetchReadWriteToken" - ] - }, - "GetConnection": { - "methods": [ - "getConnection" - ] - }, - "GetRepository": { - "methods": [ - "getRepository" - ] - }, - "ListConnections": { - "methods": [ - "listConnections" - ] - }, - "ListRepositories": { - "methods": [ - "listRepositories" - ] - }, - "UpdateConnection": { - "methods": [ - "updateConnection" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Build/v2/src/V2/resources/repository_manager_client_config.json b/owl-bot-staging/Build/v2/src/V2/resources/repository_manager_client_config.json deleted file mode 100644 index 14f4cf17db1b..000000000000 --- a/owl-bot-staging/Build/v2/src/V2/resources/repository_manager_client_config.json +++ /dev/null @@ -1,129 +0,0 @@ -{ - "interfaces": { - "google.devtools.cloudbuild.v2.RepositoryManager": { - "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": { - "BatchCreateRepositories": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteRepository": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "FetchGitRefs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchLinkableRepositories": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "FetchReadToken": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "FetchReadWriteToken": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConnection": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRepository": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConnections": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListRepositories": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateConnection": { - "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_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Build/v2/src/V2/resources/repository_manager_descriptor_config.php b/owl-bot-staging/Build/v2/src/V2/resources/repository_manager_descriptor_config.php deleted file mode 100644 index 558f82a811e0..000000000000 --- a/owl-bot-staging/Build/v2/src/V2/resources/repository_manager_descriptor_config.php +++ /dev/null @@ -1,309 +0,0 @@ - [ - 'google.devtools.cloudbuild.v2.RepositoryManager' => [ - 'BatchCreateRepositories' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Build\V2\BatchCreateRepositoriesResponse', - 'metadataReturnType' => '\Google\Cloud\Build\V2\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateConnection' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Build\V2\Connection', - 'metadataReturnType' => '\Google\Cloud\Build\V2\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRepository' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Build\V2\Repository', - 'metadataReturnType' => '\Google\Cloud\Build\V2\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConnection' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Build\V2\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRepository' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Build\V2\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateConnection' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Build\V2\Connection', - 'metadataReturnType' => '\Google\Cloud\Build\V2\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'connection.name', - 'fieldAccessors' => [ - 'getConnection', - 'getName', - ], - ], - ], - ], - 'FetchGitRefs' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Build\V2\FetchGitRefsResponse', - 'headerParams' => [ - [ - 'keyName' => 'repository', - 'fieldAccessors' => [ - 'getRepository', - ], - ], - ], - ], - 'FetchLinkableRepositories' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRepositories', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Build\V2\FetchLinkableRepositoriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'connection', - 'fieldAccessors' => [ - 'getConnection', - ], - ], - ], - ], - 'FetchReadToken' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Build\V2\FetchReadTokenResponse', - 'headerParams' => [ - [ - 'keyName' => 'repository', - 'fieldAccessors' => [ - 'getRepository', - ], - ], - ], - ], - 'FetchReadWriteToken' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Build\V2\FetchReadWriteTokenResponse', - 'headerParams' => [ - [ - 'keyName' => 'repository', - 'fieldAccessors' => [ - 'getRepository', - ], - ], - ], - ], - 'GetConnection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Build\V2\Connection', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRepository' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Build\V2\Repository', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListConnections' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConnections', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Build\V2\ListConnectionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRepositories' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRepositories', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Build\V2\ListRepositoriesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - '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' => [ - 'connection' => 'projects/{project}/locations/{location}/connections/{connection}', - 'location' => 'projects/{project}/locations/{location}', - 'repository' => 'projects/{project}/locations/{location}/connections/{connection}/repositories/{repository}', - 'secretVersion' => 'projects/{project}/secrets/{secret}/versions/{version}', - 'service' => 'projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Build/v2/src/V2/resources/repository_manager_rest_client_config.php b/owl-bot-staging/Build/v2/src/V2/resources/repository_manager_rest_client_config.php deleted file mode 100644 index 16a789bd7973..000000000000 --- a/owl-bot-staging/Build/v2/src/V2/resources/repository_manager_rest_client_config.php +++ /dev/null @@ -1,258 +0,0 @@ - [ - 'google.devtools.cloudbuild.v2.RepositoryManager' => [ - 'BatchCreateRepositories' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*/connections/*}/repositories:batchCreate', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateConnection' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections', - 'body' => 'connection', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'connection_id', - ], - ], - 'CreateRepository' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*/connections/*}/repositories', - 'body' => 'repository', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'repository_id', - ], - ], - 'DeleteConnection' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRepository' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*/repositories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FetchGitRefs' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{repository=projects/*/locations/*/connections/*/repositories/*}:fetchGitRefs', - 'placeholders' => [ - 'repository' => [ - 'getters' => [ - 'getRepository', - ], - ], - ], - ], - 'FetchLinkableRepositories' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{connection=projects/*/locations/*/connections/*}:fetchLinkableRepositories', - 'placeholders' => [ - 'connection' => [ - 'getters' => [ - 'getConnection', - ], - ], - ], - ], - 'FetchReadToken' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{repository=projects/*/locations/*/connections/*/repositories/*}:accessReadToken', - 'body' => '*', - 'placeholders' => [ - 'repository' => [ - 'getters' => [ - 'getRepository', - ], - ], - ], - ], - 'FetchReadWriteToken' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{repository=projects/*/locations/*/connections/*/repositories/*}:accessReadWriteToken', - 'body' => '*', - 'placeholders' => [ - 'repository' => [ - 'getters' => [ - 'getRepository', - ], - ], - ], - ], - 'GetConnection' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRepository' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*/repositories/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListConnections' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRepositories' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*/connections/*}/repositories', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateConnection' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{connection.name=projects/*/locations/*/connections/*}', - 'body' => 'connection', - 'placeholders' => [ - 'connection.name' => [ - 'getters' => [ - 'getConnection', - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{resource=projects/*/locations/*/connections/*}:getIamPolicy', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/locations/*/connections/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{resource=projects/*/locations/*/connections/*}:testIamPermissions', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Build/v2/tests/Unit/V2/Client/RepositoryManagerClientTest.php b/owl-bot-staging/Build/v2/tests/Unit/V2/Client/RepositoryManagerClientTest.php deleted file mode 100644 index dfc318fe92a0..000000000000 --- a/owl-bot-staging/Build/v2/tests/Unit/V2/Client/RepositoryManagerClientTest.php +++ /dev/null @@ -1,1697 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return RepositoryManagerClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new RepositoryManagerClient($options); - } - - /** @test */ - public function batchCreateRepositoriesTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchCreateRepositoriesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchCreateRepositoriesResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchCreateRepositoriesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $requests = []; - $request = (new BatchCreateRepositoriesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateRepositories($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.devtools.cloudbuild.v2.RepositoryManager/BatchCreateRepositories', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchCreateRepositoriesTest'); - $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 batchCreateRepositoriesExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchCreateRepositoriesTest'); - $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->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $requests = []; - $request = (new BatchCreateRepositoriesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateRepositories($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchCreateRepositoriesTest'); - 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 createConnectionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createConnectionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $disabled = true; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new Connection(); - $expectedResponse->setName($name); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createConnectionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $connection = new Connection(); - $connectionId = 'connectionId-513204708'; - $request = (new CreateConnectionRequest()) - ->setParent($formattedParent) - ->setConnection($connection) - ->setConnectionId($connectionId); - $response = $gapicClient->createConnection($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.devtools.cloudbuild.v2.RepositoryManager/CreateConnection', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getConnection(); - $this->assertProtobufEquals($connection, $actualValue); - $actualValue = $actualApiRequestObject->getConnectionId(); - $this->assertProtobufEquals($connectionId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createConnectionTest'); - $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 createConnectionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createConnectionTest'); - $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]'); - $connection = new Connection(); - $connectionId = 'connectionId-513204708'; - $request = (new CreateConnectionRequest()) - ->setParent($formattedParent) - ->setConnection($connection) - ->setConnectionId($connectionId); - $response = $gapicClient->createConnection($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createConnectionTest'); - 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 createRepositoryTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRepositoryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $remoteUri = 'remoteUri1041652211'; - $etag = 'etag3123477'; - $webhookId = 'webhookId311874531'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name); - $expectedResponse->setRemoteUri($remoteUri); - $expectedResponse->setEtag($etag); - $expectedResponse->setWebhookId($webhookId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createRepositoryTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $repository = new Repository(); - $repositoryRemoteUri = 'repositoryRemoteUri792690460'; - $repository->setRemoteUri($repositoryRemoteUri); - $repositoryId = 'repositoryId1101683248'; - $request = (new CreateRepositoryRequest()) - ->setParent($formattedParent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - $response = $gapicClient->createRepository($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.devtools.cloudbuild.v2.RepositoryManager/CreateRepository', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRepository(); - $this->assertProtobufEquals($repository, $actualValue); - $actualValue = $actualApiRequestObject->getRepositoryId(); - $this->assertProtobufEquals($repositoryId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRepositoryTest'); - $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 createRepositoryExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRepositoryTest'); - $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->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $repository = new Repository(); - $repositoryRemoteUri = 'repositoryRemoteUri792690460'; - $repository->setRemoteUri($repositoryRemoteUri); - $repositoryId = 'repositoryId1101683248'; - $request = (new CreateRepositoryRequest()) - ->setParent($formattedParent) - ->setRepository($repository) - ->setRepositoryId($repositoryId); - $response = $gapicClient->createRepository($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRepositoryTest'); - 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 deleteConnectionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteConnectionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteConnectionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new DeleteConnectionRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteConnection($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.devtools.cloudbuild.v2.RepositoryManager/DeleteConnection', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteConnectionTest'); - $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 deleteConnectionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteConnectionTest'); - $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->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new DeleteConnectionRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteConnection($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteConnectionTest'); - 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 deleteRepositoryTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteRepositoryTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteRepositoryTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[CONNECTION]', '[REPOSITORY]'); - $request = (new DeleteRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteRepository($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.devtools.cloudbuild.v2.RepositoryManager/DeleteRepository', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteRepositoryTest'); - $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 deleteRepositoryExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteRepositoryTest'); - $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->repositoryName('[PROJECT]', '[LOCATION]', '[CONNECTION]', '[REPOSITORY]'); - $request = (new DeleteRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteRepository($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteRepositoryTest'); - 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 fetchGitRefsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new FetchGitRefsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedRepository = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[CONNECTION]', '[REPOSITORY]'); - $request = (new FetchGitRefsRequest()) - ->setRepository($formattedRepository); - $response = $gapicClient->fetchGitRefs($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.cloudbuild.v2.RepositoryManager/FetchGitRefs', $actualFuncCall); - $actualValue = $actualRequestObject->getRepository(); - $this->assertProtobufEquals($formattedRepository, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchGitRefsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedRepository = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[CONNECTION]', '[REPOSITORY]'); - $request = (new FetchGitRefsRequest()) - ->setRepository($formattedRepository); - try { - $gapicClient->fetchGitRefs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchLinkableRepositoriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $repositoriesElement = new Repository(); - $repositories = [ - $repositoriesElement, - ]; - $expectedResponse = new FetchLinkableRepositoriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRepositories($repositories); - $transport->addResponse($expectedResponse); - // Mock request - $formattedConnection = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new FetchLinkableRepositoriesRequest()) - ->setConnection($formattedConnection); - $response = $gapicClient->fetchLinkableRepositories($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRepositories()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.cloudbuild.v2.RepositoryManager/FetchLinkableRepositories', $actualFuncCall); - $actualValue = $actualRequestObject->getConnection(); - $this->assertProtobufEquals($formattedConnection, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchLinkableRepositoriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedConnection = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new FetchLinkableRepositoriesRequest()) - ->setConnection($formattedConnection); - try { - $gapicClient->fetchLinkableRepositories($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchReadTokenTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $token = 'token110541305'; - $expectedResponse = new FetchReadTokenResponse(); - $expectedResponse->setToken($token); - $transport->addResponse($expectedResponse); - // Mock request - $formattedRepository = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[CONNECTION]', '[REPOSITORY]'); - $request = (new FetchReadTokenRequest()) - ->setRepository($formattedRepository); - $response = $gapicClient->fetchReadToken($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.cloudbuild.v2.RepositoryManager/FetchReadToken', $actualFuncCall); - $actualValue = $actualRequestObject->getRepository(); - $this->assertProtobufEquals($formattedRepository, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchReadTokenExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedRepository = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[CONNECTION]', '[REPOSITORY]'); - $request = (new FetchReadTokenRequest()) - ->setRepository($formattedRepository); - try { - $gapicClient->fetchReadToken($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchReadWriteTokenTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $token = 'token110541305'; - $expectedResponse = new FetchReadWriteTokenResponse(); - $expectedResponse->setToken($token); - $transport->addResponse($expectedResponse); - // Mock request - $formattedRepository = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[CONNECTION]', '[REPOSITORY]'); - $request = (new FetchReadWriteTokenRequest()) - ->setRepository($formattedRepository); - $response = $gapicClient->fetchReadWriteToken($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.cloudbuild.v2.RepositoryManager/FetchReadWriteToken', $actualFuncCall); - $actualValue = $actualRequestObject->getRepository(); - $this->assertProtobufEquals($formattedRepository, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchReadWriteTokenExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedRepository = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[CONNECTION]', '[REPOSITORY]'); - $request = (new FetchReadWriteTokenRequest()) - ->setRepository($formattedRepository); - try { - $gapicClient->fetchReadWriteToken($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConnectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $disabled = true; - $reconciling = false; - $etag = 'etag3123477'; - $expectedResponse = new Connection(); - $expectedResponse->setName($name2); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new GetConnectionRequest()) - ->setName($formattedName); - $response = $gapicClient->getConnection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.cloudbuild.v2.RepositoryManager/GetConnection', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConnectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new GetConnectionRequest()) - ->setName($formattedName); - try { - $gapicClient->getConnection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRepositoryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $remoteUri = 'remoteUri1041652211'; - $etag = 'etag3123477'; - $webhookId = 'webhookId311874531'; - $expectedResponse = new Repository(); - $expectedResponse->setName($name2); - $expectedResponse->setRemoteUri($remoteUri); - $expectedResponse->setEtag($etag); - $expectedResponse->setWebhookId($webhookId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[CONNECTION]', '[REPOSITORY]'); - $request = (new GetRepositoryRequest()) - ->setName($formattedName); - $response = $gapicClient->getRepository($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.cloudbuild.v2.RepositoryManager/GetRepository', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRepositoryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->repositoryName('[PROJECT]', '[LOCATION]', '[CONNECTION]', '[REPOSITORY]'); - $request = (new GetRepositoryRequest()) - ->setName($formattedName); - try { - $gapicClient->getRepository($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $connectionsElement = new Connection(); - $connections = [ - $connectionsElement, - ]; - $expectedResponse = new ListConnectionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConnections($connections); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListConnectionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConnections($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConnections()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.cloudbuild.v2.RepositoryManager/ListConnections', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListConnectionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listConnections($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRepositoriesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $repositoriesElement = new Repository(); - $repositories = [ - $repositoriesElement, - ]; - $expectedResponse = new ListRepositoriesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRepositories($repositories); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new ListRepositoriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRepositories($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRepositories()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.cloudbuild.v2.RepositoryManager/ListRepositories', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRepositoriesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new ListRepositoriesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRepositories($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConnectionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateConnectionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $disabled = true; - $reconciling = false; - $etag2 = 'etag2-1293302904'; - $expectedResponse = new Connection(); - $expectedResponse->setName($name); - $expectedResponse->setDisabled($disabled); - $expectedResponse->setReconciling($reconciling); - $expectedResponse->setEtag($etag2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateConnectionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $connection = new Connection(); - $request = (new UpdateConnectionRequest()) - ->setConnection($connection); - $response = $gapicClient->updateConnection($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.devtools.cloudbuild.v2.RepositoryManager/UpdateConnection', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getConnection(); - $this->assertProtobufEquals($connection, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateConnectionTest'); - $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 updateConnectionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateConnectionTest'); - $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 - $connection = new Connection(); - $request = (new UpdateConnectionRequest()) - ->setConnection($connection); - $response = $gapicClient->updateConnection($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateConnectionTest'); - 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 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 batchCreateRepositoriesAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchCreateRepositoriesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchCreateRepositoriesResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchCreateRepositoriesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $requests = []; - $request = (new BatchCreateRepositoriesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateRepositoriesAsync($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.devtools.cloudbuild.v2.RepositoryManager/BatchCreateRepositories', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchCreateRepositoriesTest'); - $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/Container/v1/proto/src/GPBMetadata/Google/Container/V1/ClusterService.php b/owl-bot-staging/Container/v1/proto/src/GPBMetadata/Google/Container/V1/ClusterService.php deleted file mode 100644 index 8801f61a05bb02d1592b7b804691ce736ba2ff8a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 59093 zcmchAd2n1udfyJf189&S_`qWb9s(aJiR4m%2;J0brJ2DH7!d?UGXS*Way=f*48U0e z7--&r5?5BTw%7LBj*s>2jbm?B;`oen*-0Eb6(<$vaN;W4@gFHw%1*_uinCRYlT;3u z<3IBIzOVaT({BKfT&rrAnD@HB_x0D^Uw?Oh;`Ob&Tk692Ok=aru67#r@s$VTox6?k zt#+%^s*H&!*4lbw zvew${RGWY{dH>pEZGGG8G};xf(Z1iTH6|FUQk&I{hPPF%HO6O(*;|cHwO;L1@60fO zJ2?a3&hoWam8z{*J#RcGfXV_#eW1qi-`4iZdb2j}b*dfwbFt}Fnw!l|v%22=90u~* z_-b|CYXC%d+tuyOTBq6C9H$Noo3+NJ%i{u*+FsmhVc@Tg8;puX3((jY*!{<-M;SA}o$wW2%FleVsTXdhUia7O4Q%I2{>q|t_O$w)f6=cl?|LIUqtbN3 z-}4jquZ^A5{i|C|?0;HbvhBy72)$UPHB?#Ai%2&(6>8AdD@DILr(ZDx!B(8C>*b)| zpN_w8(1gc6?04>%Sxtieo}N1W{LZC*dHxcVLQIyMmMBez(xgc}or6-Ck>KRo5C`x*srxrk>vwj9Jr5hLr99Pnp#0$G(_K zjs0bHB=*udua20nR6H=`sSS)fb!mUltEYax}Hsq^kokz<)iAkznD@--)?T!TkmL%7qyRy~7v1^EXO&z9pwNz4T8!?wBS>z)@rTo z%}#m{s0})=tAPzI^{U1GE3NmdQe9mo+3i7kl%Za- zLWKxrI%ITv2W0W?(uvxr(_-&bA<-HPkM$r+S$8VvJ{r~6)zNi2y()~bChu{EbJ2=Z z?9g&PsfNuC)xA$}Z~K}c`bPQ9DRp$E)#_AuVcgsBD#XiA0>q&6yc${~UZdfjVz^IO zv6?|UJ)#A5s#?EKWWl=8n|if@6C31Dk1>p^Ru~!G>y~u7q5C)!YX92(&1Nlqwg&>s z&30$Ix;|gX(Khn7TAlPbnh!u0a2WqOgd?acOlL2BfkD}6#N*J-iC&)biW*w2dYy{b zs@-dJ(ieN+aRcqj+>Du`GpCLi@v5R(#*@7MpR>|{z9)2?z~Wjz(nZftPK~}Nhh=2V-FdnPNxDu*2sWpMiEZBBXfP*R!S8zptxF8d zKF@Q+{N~ZE?A5c>Nh4NKZe#0iV*|VmybtU zGuMBHp(HXQUJJKGDp!h3S3<}avG+g9G8oBO^RwV>=gsm|wb+{ot^3(NURSXPb-(q~lK-i$@+GN z2giM3=grUYY0Z+~0I!4Ws5)ASgUUXk&T5IYVg=y-{R1Lv&o??G)L>VVo(QaJKnm-W zq~LaSbFIMwFz=gv4#cJ4xd?uz)hIn`Zry*rQft=R73O-70_nUwua4bb&nX(8NC)9fAfM73Ur>8}OjoSYzLL|7uAst4(i#B95+1*?ee z+ch9;@pB>2gnb;ch>mtGJb(=BBb0LPJgvqE98Vihb7i~Jgy~XN*9a()5@ztbDV0v5 ztFx(2cc68xR~l57e?J)p4^wB1A+vjRiou<|f*O%oc+Vc3Hr1XyRmRGCb#oI=WGPpLVS9l1*$3ZCbI*bGNGR zd)pA|u*S{nKr0_kP@i$cnZ`y{Vq_hC&dJ;j zs{?EuB3l@Q2lsZ;NMHz>U#OJw<$P&5vj}So3@M}PNM`<>$iqG-t&V8}QZDkQ-~FLJ zHPR)&-Bd?ty%_bc36(@Fgj06n$K*e@5}5Ig!R~a3Hida$#wv^WmKuP4g7tJg!>{iB z8xso}gcB#-%WA-X2O=yK^QFwD2)_L6wO=YZOh=ZFb$^lr?pvV;AX$5iY&->Ns9`CWNqifaqo|L*! zYqUGf)n<)ORkHqIV_}cgTN~KW2E#r+cUB%5!--t*v5fiFG=B;M#Su65%YABmr$%H7 zU46H{DJyKy`3EWW)EHge@vj`1JhC2JP zv6s~O9h<>QtMtIO+f808gIRFc?$NowoKl0dYsAdcLkxCaPzOZhXZAikW!KSsSQ8>I zgM}ZEzhK^UL<)`_onV~cF6G>8etKyxkL`hm#ZvwT&e-ttK5ROL2l-Fsb4!c)k$(3R zVzp${Js2j8NlSRh4kj&#^lbAK<-rMTh|=3`O{39Chl!BVu}2-m{d`IdN0kuRMU4ql zK5rMQqMaTEh0~z9NWQGS8e1oQe9--)lv1}~IccEw`Od)li1!hIF~4}Q`8<#Cm6dfqnF+iuWwrVO~hGoTJZmcjuoyVHR&=WeI7 z1v3e(v@6whXcHuGQ0t*7yErt9_H$^SHLYRG86$rBIXV;8Srr0@ZF#WL7~v(!Xg=$A zgM@{tGo73_)iJV4wjl~Oyh^?5-Cb!_F>m4mvl}_cE-4+RO?#eUSWL7;3EapVV)#Az zDu$-)!1P)xatBSU*P!mLx3(cpZu@5jS>A`HF4$QuH7;#$2HnBUD>axWeT(lvkM7f$ zC2Fg?-&7}Se0mW2n=oXwNDpQM64~~LrtC&M>5c!FF7nf<(^&$wmAq8gHdtnCzpZ)A zN*zZptJn-$RLU2upG*6zW@3QJ#LkRx?$XzH>Z<$H}Rcgau>jpl+HTdR4MRqzZ8hT=A` zbJv-gcLTlR$lZXU5I*L{>h^l&E_i^<68RB^5)L7X3!vt+8No>mZ@1MGTUA&y*WoEj zpr5!O?EdLuxNjWCSvA_OKByQG(;z9X1N+V|RUa6UF@&Z2q&nKo6GqekR+RYog!f!k z>BQ~c-5M(QsAWSt_LjEY+THTJ8jkI$xTxs9qMp*CrH*2fQ)Ono1?Cu*Lc63)_mBG2 zv1nhtyv7sEI!qSkP#4t6nBk|fS>I|w7ZlZx8=X@pHu#9^vK|pr9K?|_vZc*NesAJ% zgW3J*6bzNlIdw#$u%OCo=xmfS?@y^iTMc-3;T+(TlUSQRuIlQv{`MMEA|~1k7qhD; zQIaH)lSha-KOG-JC1ejEHphpyJFQO9L60p=5`C*ZLxC3NOp8w{d8t|DCW&8MdaO;l z{|!=2F3O|37L8L>PUvt1V`P<^NIskpiV+1l5uBBcHml$7tC9FK$5rR%7BbV7Y-TPq zpMxB^_)ak%-0*}tZE2JL)MCCgpP7RcYHv`O*A4n$5IQbv68|4L4&o$ppHt&Ia`&!I z6Y6v?mfh9YQv# z+EOHtHH`T)aYvO9+~ixYJuoRU*uG{xaeITF$N>yH@tmt7ENB)*;61};jOmG}rVZiO z)Wt4V(b$ARyaop#WC7EKIGkAi$6io_!Pg`<1R)C#gxL`@9waR^7?)NOTs2-HDW(Tv zSxm{3mEGV&X0^G-TDA5d1JR{>GQN~jha-oX^BS}kGQHP*3$a}kiS&Z~M7o5(K&yGc zeO3+lFJbp7mKK%^(>CL9E;CoiEx;1^2Qc+zo11X{nFYdTZ`jkKb{6L0MRlY>COV0d z2!+1AWL+H=xD$E5KZU@#4K*BnLVPa2oS9oS*$eFAA9EvGptwdWv!!kmgQZp2v|Uz2#5c$O}zGX^wHM(x=Z$3}4U!&i9Lhhl9; z=ROG@Ck-(FTiUNBAykMVi(;zZ@_Ft+YxTbp?@!tXoAWz}FN(h;2NZ8vqBsNqXo`pp zB5F^;nACxoFK0FB1H)5x;|kbg?H(J$q1@pEFB+D^r#y-N!wJe=p?LpA5eT{aj_xuM ztnD1X$HId(K~@Y6|HZJ+kivAdc=lwJgpp<(iX%pcchs4x?>-A$mcE5H4TwWi6V{Cy z@xYYG)2R;!0X?bQdSkV^z20HCJXPI}GKv5aN16Mjadl9ipA>Ktm})3)4KXtuvX6Zw zOqdq5&KEF2ClsMa`(!^a=$F+HFEOlTiZ2t*-X3a17BPLC(pEu`k``^NIR1DK4Ncj5 z21glfS|cmy#jAa|@bZLCd-IM(Y2wA3V!}d*9<5#C3SB!~_RP!bFy;z|8Y3}?j(}+__#i61x3`Mm>+Up8{Xz2qK`r~u+g=e60*%y*SGFg zIiPRADRc)biO1Eh-|P9eMk;|c>lE_{;{nzhyw9Wz(N5;DvUNT}D^;AK9G;gnW1*uK z@qn86+6ts2_w4b2k<--4t7FX34M7Y9iPuYTyjf0%6?Hze)$t)PzHyakN4GEtyTQzIk|Wx52%E|n z^>pxF0=e{JfQVt*QwXP-GQF=)^Duf&nQU$6raEmHlJBGi5beQDpX*7Fn7`LqRA=DK zin^vQg>$L(g2I6$B{Q!}~V8{|Nm@tdexgLa8_S@(*WhAFVu1ke)C_tKYmWcF2IobklhJS@l~Z3I8lh-!DM(1F*} z5)WuM;FhFqPMXq4{D@}A<1jwJprEPyamK+u5EIc{(0w$05etZfrMqDdfS1lO9J{CL z7Fvg_{vP=4iCPPBr4k3odXGj&f&uN5okJIK*HMpPvXPc19#YJ*8P+vMCt3evXB$etNJV9#zwkNXLS!@{oi7B0HKhQhH_(Q&d-^ecn>Mi-;O45)rVdLNCRW*QBfzsoQiHKBo`=UP zJbX!9*y68f10@CzzS@MJfCv9>@BvJWIeXLX;4wrUEs#JzNPBoO0Ci&2rYv-VUN1w* zhswiYWM29{3q$r;d7&a!k~D^1F-Yebl4}vU^La8E3?=9lbc}H`7_9r6_4GHgeL?19 zMmbDy62>a}kn+;sEa2=rpSTxEWz!;KdlL2dYF9M(7X*l%6-Mk-P6ph^H!qp}^)0=S zh+Cr^a;(ux=7A7l445wpm_)WAgCQE}U3ysULypZ_`a7xPpmPP059U$ z-X!b<$%_*=s0jk(Px{8)EpRr9tU@!=0=^`@?d+mVL0DkmMd_mvc}Jb2Z?rKpuni%d z$nXRISpGf%njq0i-y(I*Ya_ccq9KafNY5`L_7CH&Annpie~$pPPyEf7y)0U0iUo}z zrVVU{1!6kHWS~FT3q;;;u0hPI_eJ!xi7t5cAd?NgCGp^jB7G ziji5!%R(6CE9&YFouggZFel;S*VLr8B?qaAW)avwoSjt9?9?UlIrqQrQ^&1q&!MAA z8whGuPT?EOUi`DndH97zVy{)T7Ei1M*~uG|xhfqLlycPQ)at}y5OE-8fL(UIt`2cm zat2agPW0Pl-?BP``6k078PX_?64{q)o3v$U8;T(z`^=wZuBb~KOM#5Bt`U%?(ZUXd z0zg8R^C@*c4ixfLAgeND3K}2WE96h8;p!TKvDd_0jlq%uakn%EUSPnX!vZGadm&Yc zLwDF_u~)nR8PN@`Ew92e0nS5F4uKNJkdHE|d!wcMkNXfml)!wa)jl@Z)6N-A$azob zJ3*#;*=(PIoa=u82|NgLN92xi64{dzlAs39!TT7_*vrc4ev0Ix0rMr^_=6IoJ){PG z4BVI0KEjg1;Vr4-QJ(=gXMSEB2z}XuYCk9O!+$!`bs)o$B)o<9nhw@r@411z89jEAE#V_=MH0XNR~P2EsE)sZwr!4}`+8kAWuHpCgjaQI(+n<`8<-6qA$Y8 z_;bj|SvT?Ak5bApQg%o%eNi1UCMZs_lkw zEMt?!6-oX^@F2@~l0A=xL7_8#O#no+j+n6-4T5Z%3>X{?vT~q@$OwCg?jp+=IPMSj z3E`rTB9*t#Bp!tD4(frF#sl!?u zmvlrbr2rcg)LY~wk=kTz1RSJ;eKBUOA+*)Na_ok9aXQ(z8pLq!6tlxG1&ceu;~)he?2FsxabW*dm>6(l zwX2$0BKK4aJ2hGJQVPOOi~@C}6}#+r(|dsZLYj?fhqbp^g_a_=)ib;j?fSev^2%rq zX%yyFB*yzQ8+R)_!GLzv6Rgq-shY^uEJ}Dc9ST(iwV}w3Mo_!&hnP!eekb+n`Tq6A(gS6Xv^i)&8#0-}W zl&}d{?)($Q=6ayK{KRc*aXoxmT`-8!eub3`E+-0-=a5g|0`xkAwJ#fRfuLW+trj{B z%pTTL^9IASp9WFEBs3?X6JCSKFc`al(q(up2P>v&{7^Q*t|? zpMlkQUuq~K_Qa>(Cm68329gGt*WC(5WBYtIKv)}M%vv(`)$|PD4iEI95$2_5shd~^zg|6Mx_}5FwcLEeA47r1uy+$KLa@yjVt$@FAP&O4IBMR93*V3{ zB`HE7B>XO_E2ek!c-CCNL<&?`6CwA@(A3VFNFk6bVdZGNhk!@62?-M=XG&5|!i+Qz zY|n_(VJkg3S_a`1_a(Rh-Pq1W&@} z7@D1jblELJJcRA3WJZWt@V|lK*?EZ7pnwVo{$XL%W~3O!%T#>GaI?LX=o~N42`!yz z%^Jx@29&&aIP6RgC(RuwW7gj&I{4);;d=wK>>Ge|amlPNoD$-rtN0p-bTFr`_VC#S z7~|BJkQt3nK2Xr^MVvf6y?b4AQwX#e;$(==X|(-nLEkF6w0)X^M^u-6ri=4#AV{xi zNCX)p{cQwrK>Qr5>N!K6U{e#J3=i_<(+yoE5gJ=_(hgov8pt9MsW-NMf)L<>!-Z0VrD7}FSE2f%?#7TXJ z&|*LJUkcPE>=28;jJ=gfngBLP++Q|(fWUr6oi}KO?4+@+ryZYmfhw?nMx1A}2MK&c zs=@$chNJJ2)nk`%i6uuYM?m(fLDs$=V&K1fZ{QJ8ljI*Veo;I7vAau9RLo#&@hqjk zw-<7yxXWpF0OZV4^uK`_6F`huA<_S)Q7>sF`=q)Mhh|||wvWblZSi)@+$BUMDzs_$P%T2V3cr;AF|u((B(fIKuuR1Yitcb zoNOp~S-P6oBI@JEzr3M_CD)Rot2nxxOq)q@JU)Cbf+AqA`w>87F-%h6f}WzJ8k7#y zA-gr#CGuDvb_WJY27wO8iG)s(g;7VFgEF0J8)eibsESR80x%q=L$)N{0W^kShN7<= z)+1Sb91k z7INBWvJ0g}_U604)~_q$Q0=GgR6?qgT*_w_Q37smsSKYDf(7twI*;U-;8`C%TPkuS zK;>43+x26?A2!eCQGvOP*a0*v<%^j@$p^Pzx=x2baezE;`m@v%IXDY*BM0fJ{&4Vg z0M_z!IlqW{8oD76n9t1QZ^5fGG6;X)(ah2!Rrul03L**xmK}Z^MQ~`WZ-B<92;f{M zo1ZI>9O7qSF!W5uRzcUky^JyW1!wfSwA5u+O4?LIr*gk_aT7YD5Qw3e%>{kSTRg^ATNk;*8n6;0GdQQy7|t zPrQeGpa+n#58IP?Y}}eUI)l>O!jATi0+7`x5VACQLDporyI`` zj--%>%Rk)u{QV_PFG~_kI0zh@h_6F2+KLpjuv^iMzK9LLeMD114CTo7)>^xY0ce}A zB(Wv!NkhMhCFxZbLopQ-lH%VKZ?YS^(4=2{=qUHF`)28Li_noYbVF!8_JpPTv9p1_@s&+q~D!Vr-4e~5qj*{AlW12ozk8leW*qd z659M!3Q}*Q10CMaKz)3ac`cp zLJ0LusG=YukVG^*zVDw_!!d7^W%;m{?*0;L6w&hWOXWR2Eb{6=mG5cewUTsIj_uPuFp(?N{K08+f%tAPQQWLf~0U!+MGo54!Ub<6zYwy=O_w6R@Qx>UkmhQ8fxl99DO|zC{^JTz)XeRis_@7G#N#dQ)+bR zKxni@lG*!!qRa6I`mtp~@F)|~*thla@uL`7lcvhs(7&6}2uEG5nT#i=hB=&Yb5XSKgh?BQk;x3(XrgRnfG{~M1JjSioHB@F7blEPs12>AA8WAg zS5m0s#kLJ2!0dgZlPn7;lC){GX|413E)*dQIN&>S+I=HX6ps1$QA}3&&FU2#?h5ZS z2s{MKNFq`&TA7f)q#W!#^P$H#8M__nPxPy!S=`n(gZsWVal}&SnCDcG8L6`-P#y=B zinggZi+>&5(3Cw@pbHS$sX6zeBtXRD4I|v^>ZHF`aJNzQUd7z>$o9LTsZ(YnLfhb5 zStrcRpd7I?hEmSQt-!%5Mpmkw8iLjusOSZ28?u&Z>-FKY{yYA-8pjjWjjY(K0>?$=e zOwb^b;)JNPR!_l3O*(pr0yM<^wyG_-;45YT5i^xt8>a6>4ImLWP#s^I+p zPbu@-mIc0QB;tM~r5SVe8hQ*Tcw-Emw10#cOg|2RcoO?vMn(IoUW+Pybf)Y<>2qFE zO5z!)B7&{~WVcoja+04xP03neD=$I}D9LNpb)5uf`L%pURg=%KU3r)&GoSpRvDAH% zf_3V?&AdqU1NLlQ1Rx|t>*9Kvi%=PX9RVR1T6ziFfQ4yDZ!-4VN^G1xaKv8-qBr>- zT-rcv>7p38L6qgN8a1f2K+-KTK4gng0|wp|I0`B#9ZwfkMhqqIGEBRHH;YcF8;?F= z8_C#zPpKnuTP@7Wv}(L6{KFpAW zR%P8qf+H*e;f{TApHjh;A?@Hu=<7V| z#QBosG&2xbxDmSCpjn^rv7ujMKi#hmN1mYC&wf;)@`RYf2?yJbfG3Isg9_3yzBXn? zl`iR`rc**nTa$ing4%fug#E{L(jCd~kMr2L!A0x^FBeGM&hS%_D*jnY?H7!orxs^3 z<#<6@_Rg}475U($MJ{%T^f-30!VO%RDdqE2=@4GlJ}j`&9JF3e4XK?xk;Yo{oI_~#L?#L+bu23%^`~BX2qa$aO@Yb`r{nn4Sj8m zh|>0pQ~bG#b(T9}U~Q!u9|+%TA>i}@?-XsIrCU!~#tBtYbT9XGhQmmZTewxs#*D;VgX`N5M2~47RYZ?R?k;>LLQnEOj66c_AB=rQjU~U0UT_5e7SvyT)pwHI8{kiOfoBKcU+3-Z z{uZwM2wpnxsI%6gp};+HUUPZ6-N#|WSg&$WZ6XrBBuAGYkM3(WgbUdF#uf@0Qxz$R zYLdzB(Ke!jDs7w>R_nWG1Qi89@I?ar(H{0Ffb+)kq-PRg*5 zGRv>rD$LV8P!fnzhMDxNI)!%f7;pGg@L%`g60T9pawC7SUZ_GcyCpX?g$U4*HI6V~ zegC_gQzz_ug2H)1rzz2yqJjo|4V1U1u!4V?QfHtQn=>U~n12zPI z*#4{HY%v2VLqGkC7y^PNHgV7(%7Kcml5oP>MI5^cb&eyGVJ0^i>J!5tY3wu1z$t9y z9GMiTxka$-Xi!*A3 zM6nv=XDIX?N~n=oH4d4QviSGd^hI$DWXNEv5=S?1Gz7CEs)gyN#rs;2wqsH3)KG$r z+$6{sbiF`r(}MZmzgW6rZjt8@Vq)}xPe5uQInSx5@KGrPWik+85Qh&MG8b27l}%Mg z!6C|R`51-rUsiXX4vIMS?B>p@!_iFy2N?K+lz?S2Fb^Y17u0NSY;W)cllXoRdOSa% zdF^-qRi7F)vq-DSZ2Y)NLEZqG7-j<@qb5IxWgzsN0JFs)vNKTfik86usLB@g?^02{I|orm0^R9TpN@wG%mgs@+S#%GHeJ6a6_$+W0MJffeJ$M7rW z9wM)j^@sQ{2*}k)ne9rLFRm%(ci!D9>wKEE((*~n*DWrUrL{0svHg8UouhB)Tiuvd zuY>PnrcBf-(KpFZI#XPd8{L>+>y8>c)r#VBN(4WOXBHLeD!o7JelxZ+z(-J~nGqwju3)p%0fPB@-Dk7B2%mea7}c3u`#x zF5Mo`Xw)*D%Tij8mx%jWo`}c`D$_+Ho-P%ZaXAeBM^zn!Dx{$FOKy4>m@oM_sd`;2@%qt)CJRIdhH6ly(?Etb75}mQT7c% zK{H6yxRqbbz>=E5oY9k;p(lOr&!*H#(jO&NRQwo^kIlUv_~*p5p#^5UXdgks#**Pv z}WpD6Bp zEV@6_r;gw_K|TvujIO!-s@hkB@~Lee_FU{(pNSkgusBQ7n67y(9QTqMu2nY?^-9&~ z87>J^!&4)MYfxSmb$9<-O6{XRx?;#^xu9-p?&iW0490N5ou=hN7mXM2CX>r8EX^-g zB%=vx1R2b!%Ueqeiy2%6oXh8_u4+FtPR>2bzEd%GZzGe6tn_mWOVgE`x5|~9d0bG$ zHCYdmttLm^iv{99BZKa@DgUM@;m63M@~;p=X;?FUaYnkOuR-DP%I zDHtFJrwLvO*U6!yFv)zXb+=HR9E1&NB{yE+hUIy(Mj!1iQ!~UfV~=d^DpONbW2U5t zr92H4m>Qn4XHzGYr94W z@1@ie+Js{GbwE|UTi;cuMW<@O0qCJ1IAUy2kpPy2PSd~YZN{*rTG$}3VG1CVf0p#2 ziA8{ubN&+CVE91^mx~44m2dp?+DMACwtHZgJ*!Te633Q#%s!#cLeWkx>yZ7px@`LI zI0p=^7vD*ZZeWS`Gf{i)I=q7V-Vb8Rvzht%{9H@`qI_2UA|(4j zA2v_Huk$5{g!2%RM*2AmG}H&8)BJP>k;wbpk5h(00t1L!3Q&fY0zDBAx>=Z(MPQ_n zATW(j0QWyaa_MTSZJ20_h~90z)&?Q>41D&zdmgTCXli2>9N}1+95Boo>mDK&w#d2y zQ-gT9!B}v(urNVtO}GIE!aL8XClL(VY2Bl^16>HZx~{V}!_6hs6RJ{ez1rLezd6AE zbl7K+C5QY_{tom$N;CmGIga7ISzefbyRkww+mi^K&WjQ(usd%p1J`?_i-{(PV>^g_p4`#!=@;f;XcNz)WTPLuvA zwU297i{UtJ-Q+;molon_wgt zv6g5(>a}I!VyWC@tF}#nSE9h;mJvNOSRP?NuvjPBYA^r?0V--`g8WsOXUG3yK}r!r znmeb)GSkzAMJPL&xeBV~-zdx=$^5OQLJ2}!A4z+ZD3G5Pr~N`P(h`{h@2d+vr%bPa zH}vK+A>VejrU#+O(CBS%Y@phttYG)YQpm!Ogf%}}+_F0taKJ9&q3m-Bg~2F^0;*mq zKeIHKDT%5Fu7-;@r6K`cPCQTI?mpV9$E-IGb+Nar>Qo`Ieq&ebr_`ve0Ag3W|J$bq z13?WplNrqhLY`JG5<(yRUcs%Z+2G?^`wbLWRDioB4Lcl>7FsZgj=DQ-l_d>rQV$IT6)7W3$YS_(W z>OuUX7YCj(=EsZ}WF9HlNe@=I3*zcZw1-ho94V^Rv(We<^h+Ofrgp$Ssvhkm4w^4Y^{` zgXA=BREWF|U>`)}Q|x8vOJr8G_9RoADfrS)rntmbVjkGn4M~3{3~7Hiq);n?bbxPh ziL5q6Qk|jXC0t;Ls8m#%)tX|GtVK02;9y4OP%T;^+I5TWOr&sno-!&9qxcaEhHUQ| zbUW&7!e{iEd0h1E)zw_ z#!EyIAHt2Gd{;QX(?fmJ4{(<)YL|a{f6tT!TJs|eBUy|vrY_ARHIa^91b`M`lto~u zHa~%d!@F&s!CIZCvlt61efrlPfZR0hEfHHhD!RW{&k zsMDYa0R8JJ7tYkG$L%bFIc9U-F`rYwYABXfh$$S>2`XQ?BG(@h5gRx-<(0%~i4+i+`e zr%<6VdDKUzVL6Y(jP8BOF3oWmxo+R@UQ|bUb|OVkx+e7ZaXRa;GR6^EXqL!~;VFAu ztRIjjp&YDe;(S8rj+FD$jO}H0%zqS)JeK*{Nm16;xwKalMEt51u+az-o4#p7ae5xW4Bz0D`T|B62y-Ae zDYzr4)r^x@XQjHjifB8{2nHztZ$)$sX12_tt$hhF|JKR(xx14aX$ewHTbdf&_tEF6o#6 zc>P8MzTt#8LOUFI@^o+aZ=|52 z_&2wZnI=UUKVkkLsSC9e`{`#nH=Cbcn#0e1Bx%8Pv`G0dFtdxar7u>znJZSx<=JV} zJ%sc|ztD0%pCdcc$bfrAoh(%!Xy1W9C_2=;7K{7C2%rcG!D!0OCeDrhR0#u!&cT8@ zC4tLaEC?dY-3H_@J>9Y#?G81GudX8wQ+Lv+-BnLj>-QRj` zksKKff>cd{upo9!0U%!@E_7iR?T9DqWd=;S93m~_0cV*a(brKae}ili!c*UWa0k}NKBS*%7_ z>&WoN5Ak4M_J}%c+%5cJ_Zc-7EVJ+uu&*@O0!)-(bWLWcfpP)8f%Jic`cLw#FC%&<)3xD4p(?CV-O7BbvN&5>SeltF z!o%O^egq{WOrz*FDJQck`vOh`72;O^<yV`45dy<8~cQrW{~fFaW& zL_U;JrLwiTnOh@Ah~Xvii!RX*i7RsFGv4SJ7SUoT$YGr?s-j%V>LJ8~os#IOxYQd8eCe;OXLQZ}^asl3+ zRTx7V14ToDw)l8Gr82!8(O*`o?pO^qe|mTqmJuiECB^ zO1!fPn4nMyo;J6D*ec1);qVAlo;LmrOPB<>n(wzy5fg+6Y3@Aj!yU6IGS_wSgMAl- zSAvVwuA{!u3m%5fH0}~c!Hn>Yymsljs~3kok^zr%HaK@e_W2Gs;IdGRNQD9_qE!mF za12y(8A!DwDHq|qU7v{-8n}WayOT+wR9DnfxD}3OXwp|Q*gFYk@4x^ao?4%Qzwk17M&mGvU<|T1<9SdY=AY68H<_= z1aSQTkPpt@@=^&>LI0IEpy<#YOH2`nsn`n0_qUJ%Cp@P5dC{EcFP{04zAN*vS>qYi0s?QIxCNsi_36=8ixt@^&HzgIxDec>;fk2-$@BNjP3 z^kdJlTWrEjbhO7ZkJMK57KFS;kf_<-2c<)CUU7-A%{{0_*e_z$PI(h%v ztVhdi#^k zC-ykR$q#}rf9U-06x`wA!t;)O#v*OZsCTIR$KyVkFz$~s!!nJA5Ip=fcTY2XJ$2>w z^X^_J8NHlu@58+iT(QMWwSC-?HoG17&ttyNCyX2OeRZ2Z{846zW?BE@;djPl_`95a z8h&Q%krn{a;#>Q0Z$_lty_0Z_QKZpssqs@O9@|$^V=wdW-QD0ODZrwL*ah0sG|;Mh z=gy-n^$@@h2sT1FTI-mN4<}_hh!Q^w8y}@k=ueaB(X9cu&P1^8);~l>5>i$o%1TkX8?l$XalxABn6QC8FHF(RGcH*a0O624zD$dt4oe z7g%9*)7{eV_dvgAdeCpf#~~o$NhV?U8>ZrSrQGX#rDA|R5pqseyGF{xaqgdt38!-8 z$eIigBU=6~O2Ua&^mdXo4_n>uv7HXFe+LR)3Q&w6-d7R$2DwA)@*ia!CSK$r)9qVQ z?u&b+o0KUhn$5boM_PP>57FzV`>04R7Pc0c5@fk>lijYh-%Ne655&6IgIKE!)o+7NmwV7DT08io z%&2ThE`)BJd`z(~?v-M4*vWt%$I22+iCq5+q9m~@zgl~OC>d$9TY~+t9F^buFx=v4tcx(eFzV^zE$k#-4{e`GF6E1ZC&Dan{C)&?lU= zu~vo#CydDxT2#)b?Z12B!yh^%6#s7`LjcYB zD(XdIu1O{{MeGv@5^H4$V!saMBB5c>4wCxm_*==~m;I3FmKO z!($ks455S#A8llYYTxkjwtBdqw70z{Yz~>ElrZPZ(Cvwl7&XpI;K-3S22H!> z8*8eu{JU7TJ?%PS0mL-@fuST3WvX-xCFQ(G5LjacLKhV~;maXl>}1bgY(n zrQC97cRVir%@N&R*J~P0jULVQ@Ae_+%U%aD0sDm32K$}1${#!|WBIw1n|bJwBg%qH zJs)@AO?b!b{_L$q_?A8$=A7u{FO1Y|k zGJAO#gJ3WSqSfwYa-U5_&hT}gB!K38MXK_Ii@YVs<5#;cf}_>$@k^ms9TRd)jp7 zU@AmtwdgK960NLI9YlVUiP>;ws$-nAqN1&KOQ^pioabj!F6-#KTrDBl6&^AVYA6t+ z6|>@g=255+f*X~Ii4W^0)w`&d4`Y@|9)O&1L{Hqz)* z=1@PBa$noi;=(v17!y%T?yW~5D$P$Erh`yjx!)48jbN#;QAkdNlk5jV&V8imZi)FP zAZAZLPypB`sP+SOyR(*0io~`WsXB5WkQJTZCSI6zq!wkh9 z=H0WS9#D}7^ro{HbpqD1;4iGR%7J9n0^ zeYNk5biIC^U*jM1`ucUe&b-k(1=9qV1kTeBCpn1|5BT2?znZyoM?Im#du!D=`EpeX zt#Dq^B3~Ge?*g0r!2F5$C~l8twJMu%03YVSOH4h~zwQE0Wg1#H8xNMHaHsRR-F^tc zwWTJm1DyPT3M`Os93MB(===OPm4665*I$XeHeRw1R}SFYoz`google.container.v1.AcceleratorConfig - */ -class AcceleratorConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The number of the accelerator cards exposed to an instance. - * - * Generated from protobuf field int64 accelerator_count = 1; - */ - protected $accelerator_count = 0; - /** - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * - * Generated from protobuf field string accelerator_type = 2; - */ - protected $accelerator_type = ''; - /** - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * - * Generated from protobuf field string gpu_partition_size = 3; - */ - protected $gpu_partition_size = ''; - /** - * The configuration for GPU sharing options. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - */ - protected $gpu_sharing_config = null; - /** - * The configuration for auto installation of GPU driver. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - */ - protected $gpu_driver_installation_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $accelerator_count - * The number of the accelerator cards exposed to an instance. - * @type string $accelerator_type - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * @type string $gpu_partition_size - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * @type \Google\Cloud\Container\V1\GPUSharingConfig $gpu_sharing_config - * The configuration for GPU sharing options. - * @type \Google\Cloud\Container\V1\GPUDriverInstallationConfig $gpu_driver_installation_config - * The configuration for auto installation of GPU driver. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The number of the accelerator cards exposed to an instance. - * - * Generated from protobuf field int64 accelerator_count = 1; - * @return int|string - */ - public function getAcceleratorCount() - { - return $this->accelerator_count; - } - - /** - * The number of the accelerator cards exposed to an instance. - * - * Generated from protobuf field int64 accelerator_count = 1; - * @param int|string $var - * @return $this - */ - public function setAcceleratorCount($var) - { - GPBUtil::checkInt64($var); - $this->accelerator_count = $var; - - return $this; - } - - /** - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * - * Generated from protobuf field string accelerator_type = 2; - * @return string - */ - public function getAcceleratorType() - { - return $this->accelerator_type; - } - - /** - * The accelerator type resource name. List of supported accelerators - * [here](https://cloud.google.com/compute/docs/gpus) - * - * Generated from protobuf field string accelerator_type = 2; - * @param string $var - * @return $this - */ - public function setAcceleratorType($var) - { - GPBUtil::checkString($var, True); - $this->accelerator_type = $var; - - return $this; - } - - /** - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * - * Generated from protobuf field string gpu_partition_size = 3; - * @return string - */ - public function getGpuPartitionSize() - { - return $this->gpu_partition_size; - } - - /** - * Size of partitions to create on the GPU. Valid values are described in the - * NVIDIA [mig user - * guide](https://docs.nvidia.com/datacenter/tesla/mig-user-guide/#partitioning). - * - * Generated from protobuf field string gpu_partition_size = 3; - * @param string $var - * @return $this - */ - public function setGpuPartitionSize($var) - { - GPBUtil::checkString($var, True); - $this->gpu_partition_size = $var; - - return $this; - } - - /** - * The configuration for GPU sharing options. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * @return \Google\Cloud\Container\V1\GPUSharingConfig|null - */ - public function getGpuSharingConfig() - { - return $this->gpu_sharing_config; - } - - public function hasGpuSharingConfig() - { - return isset($this->gpu_sharing_config); - } - - public function clearGpuSharingConfig() - { - unset($this->gpu_sharing_config); - } - - /** - * The configuration for GPU sharing options. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig gpu_sharing_config = 5; - * @param \Google\Cloud\Container\V1\GPUSharingConfig $var - * @return $this - */ - public function setGpuSharingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GPUSharingConfig::class); - $this->gpu_sharing_config = $var; - - return $this; - } - - /** - * The configuration for auto installation of GPU driver. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * @return \Google\Cloud\Container\V1\GPUDriverInstallationConfig|null - */ - public function getGpuDriverInstallationConfig() - { - return $this->gpu_driver_installation_config; - } - - public function hasGpuDriverInstallationConfig() - { - return isset($this->gpu_driver_installation_config); - } - - public function clearGpuDriverInstallationConfig() - { - unset($this->gpu_driver_installation_config); - } - - /** - * The configuration for auto installation of GPU driver. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig gpu_driver_installation_config = 6; - * @param \Google\Cloud\Container\V1\GPUDriverInstallationConfig $var - * @return $this - */ - public function setGpuDriverInstallationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GPUDriverInstallationConfig::class); - $this->gpu_driver_installation_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php deleted file mode 100644 index 25fbd076ebbf..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalNodeNetworkConfig.php +++ /dev/null @@ -1,102 +0,0 @@ -google.container.v1.AdditionalNodeNetworkConfig - */ -class AdditionalNodeNetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the VPC where the additional interface belongs - * - * Generated from protobuf field string network = 1; - */ - protected $network = ''; - /** - * Name of the subnetwork where the additional interface belongs - * - * Generated from protobuf field string subnetwork = 2; - */ - protected $subnetwork = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network - * Name of the VPC where the additional interface belongs - * @type string $subnetwork - * Name of the subnetwork where the additional interface belongs - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Name of the VPC where the additional interface belongs - * - * Generated from protobuf field string network = 1; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Name of the VPC where the additional interface belongs - * - * 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; - } - - /** - * Name of the subnetwork where the additional interface belongs - * - * Generated from protobuf field string subnetwork = 2; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Name of the subnetwork where the additional interface belongs - * - * Generated from protobuf field string subnetwork = 2; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php deleted file mode 100644 index 0181aaf9ed25..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodNetworkConfig.php +++ /dev/null @@ -1,150 +0,0 @@ -google.container.v1.AdditionalPodNetworkConfig - */ -class AdditionalPodNetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the subnetwork where the additional pod network belongs. - * - * Generated from protobuf field string subnetwork = 1; - */ - protected $subnetwork = ''; - /** - * The name of the secondary range on the subnet which provides IP address for - * this pod range. - * - * Generated from protobuf field string secondary_pod_range = 2; - */ - protected $secondary_pod_range = ''; - /** - * The maximum number of pods per node which use this pod network. - * - * Generated from protobuf field optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - */ - protected $max_pods_per_node = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subnetwork - * Name of the subnetwork where the additional pod network belongs. - * @type string $secondary_pod_range - * The name of the secondary range on the subnet which provides IP address for - * this pod range. - * @type \Google\Cloud\Container\V1\MaxPodsConstraint $max_pods_per_node - * The maximum number of pods per node which use this pod network. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Name of the subnetwork where the additional pod network belongs. - * - * Generated from protobuf field string subnetwork = 1; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Name of the subnetwork where the additional pod network belongs. - * - * Generated from protobuf field string subnetwork = 1; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * The name of the secondary range on the subnet which provides IP address for - * this pod range. - * - * Generated from protobuf field string secondary_pod_range = 2; - * @return string - */ - public function getSecondaryPodRange() - { - return $this->secondary_pod_range; - } - - /** - * The name of the secondary range on the subnet which provides IP address for - * this pod range. - * - * Generated from protobuf field string secondary_pod_range = 2; - * @param string $var - * @return $this - */ - public function setSecondaryPodRange($var) - { - GPBUtil::checkString($var, True); - $this->secondary_pod_range = $var; - - return $this; - } - - /** - * The maximum number of pods per node which use this pod network. - * - * Generated from protobuf field optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null - */ - public function getMaxPodsPerNode() - { - return $this->max_pods_per_node; - } - - public function hasMaxPodsPerNode() - { - return isset($this->max_pods_per_node); - } - - public function clearMaxPodsPerNode() - { - unset($this->max_pods_per_node); - } - - /** - * The maximum number of pods per node which use this pod network. - * - * Generated from protobuf field optional .google.container.v1.MaxPodsConstraint max_pods_per_node = 3; - * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var - * @return $this - */ - public function setMaxPodsPerNode($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); - $this->max_pods_per_node = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php deleted file mode 100644 index 46e173791086..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdditionalPodRangesConfig.php +++ /dev/null @@ -1,102 +0,0 @@ -google.container.v1.AdditionalPodRangesConfig - */ -class AdditionalPodRangesConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Name for pod secondary ipv4 range which has the actual range defined ahead. - * - * Generated from protobuf field repeated string pod_range_names = 1; - */ - private $pod_range_names; - /** - * Output only. Information for additional pod range. - * - * Generated from protobuf field repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $pod_range_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $pod_range_names - * Name for pod secondary ipv4 range which has the actual range defined ahead. - * @type array<\Google\Cloud\Container\V1\RangeInfo>|\Google\Protobuf\Internal\RepeatedField $pod_range_info - * Output only. Information for additional pod range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Name for pod secondary ipv4 range which has the actual range defined ahead. - * - * Generated from protobuf field repeated string pod_range_names = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPodRangeNames() - { - return $this->pod_range_names; - } - - /** - * Name for pod secondary ipv4 range which has the actual range defined ahead. - * - * Generated from protobuf field repeated string pod_range_names = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPodRangeNames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->pod_range_names = $arr; - - return $this; - } - - /** - * Output only. Information for additional pod range. - * - * Generated from protobuf field repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPodRangeInfo() - { - return $this->pod_range_info; - } - - /** - * Output only. Information for additional pod range. - * - * Generated from protobuf field repeated .google.container.v1.RangeInfo pod_range_info = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Container\V1\RangeInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPodRangeInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\RangeInfo::class); - $this->pod_range_info = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php deleted file mode 100644 index 164a22cbaac0..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AddonsConfig.php +++ /dev/null @@ -1,701 +0,0 @@ -google.container.v1.AddonsConfig - */ -class AddonsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * - * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - */ - protected $http_load_balancing = null; - /** - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - */ - protected $horizontal_pod_autoscaling = null; - /** - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * - * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @deprecated - */ - protected $kubernetes_dashboard = null; - /** - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - */ - protected $network_policy_config = null; - /** - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; - */ - protected $cloud_run_config = null; - /** - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * - * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; - */ - protected $dns_cache_config = null; - /** - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * - * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - */ - protected $config_connector_config = null; - /** - * Configuration for the Compute Engine Persistent Disk CSI driver. - * - * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - */ - protected $gce_persistent_disk_csi_driver_config = null; - /** - * Configuration for the GCP Filestore CSI driver. - * - * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - */ - protected $gcp_filestore_csi_driver_config = null; - /** - * Configuration for the Backup for GKE agent addon. - * - * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - */ - protected $gke_backup_agent_config = null; - /** - * Configuration for the Cloud Storage Fuse CSI driver. - * - * Generated from protobuf field .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - */ - protected $gcs_fuse_csi_driver_config = null; - /** - * Optional. Configuration for the StatefulHA add-on. - * - * Generated from protobuf field .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $stateful_ha_config = null; - /** - * Configuration for the Cloud Storage Parallelstore CSI driver. - * - * Generated from protobuf field .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; - */ - protected $parallelstore_csi_driver_config = null; - /** - * Optional. Configuration for Ray Operator addon. - * - * Generated from protobuf field .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ray_operator_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\HttpLoadBalancing $http_load_balancing - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * @type \Google\Cloud\Container\V1\HorizontalPodAutoscaling $horizontal_pod_autoscaling - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * @type \Google\Cloud\Container\V1\KubernetesDashboard $kubernetes_dashboard - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * @type \Google\Cloud\Container\V1\NetworkPolicyConfig $network_policy_config - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * @type \Google\Cloud\Container\V1\CloudRunConfig $cloud_run_config - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * @type \Google\Cloud\Container\V1\DnsCacheConfig $dns_cache_config - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * @type \Google\Cloud\Container\V1\ConfigConnectorConfig $config_connector_config - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * @type \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig $gce_persistent_disk_csi_driver_config - * Configuration for the Compute Engine Persistent Disk CSI driver. - * @type \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig $gcp_filestore_csi_driver_config - * Configuration for the GCP Filestore CSI driver. - * @type \Google\Cloud\Container\V1\GkeBackupAgentConfig $gke_backup_agent_config - * Configuration for the Backup for GKE agent addon. - * @type \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig $gcs_fuse_csi_driver_config - * Configuration for the Cloud Storage Fuse CSI driver. - * @type \Google\Cloud\Container\V1\StatefulHAConfig $stateful_ha_config - * Optional. Configuration for the StatefulHA add-on. - * @type \Google\Cloud\Container\V1\ParallelstoreCsiDriverConfig $parallelstore_csi_driver_config - * Configuration for the Cloud Storage Parallelstore CSI driver. - * @type \Google\Cloud\Container\V1\RayOperatorConfig $ray_operator_config - * Optional. Configuration for Ray Operator addon. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * - * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * @return \Google\Cloud\Container\V1\HttpLoadBalancing|null - */ - public function getHttpLoadBalancing() - { - return $this->http_load_balancing; - } - - public function hasHttpLoadBalancing() - { - return isset($this->http_load_balancing); - } - - public function clearHttpLoadBalancing() - { - unset($this->http_load_balancing); - } - - /** - * Configuration for the HTTP (L7) load balancing controller addon, which - * makes it easy to set up HTTP load balancers for services in a cluster. - * - * Generated from protobuf field .google.container.v1.HttpLoadBalancing http_load_balancing = 1; - * @param \Google\Cloud\Container\V1\HttpLoadBalancing $var - * @return $this - */ - public function setHttpLoadBalancing($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\HttpLoadBalancing::class); - $this->http_load_balancing = $var; - - return $this; - } - - /** - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @return \Google\Cloud\Container\V1\HorizontalPodAutoscaling|null - */ - public function getHorizontalPodAutoscaling() - { - return $this->horizontal_pod_autoscaling; - } - - public function hasHorizontalPodAutoscaling() - { - return isset($this->horizontal_pod_autoscaling); - } - - public function clearHorizontalPodAutoscaling() - { - unset($this->horizontal_pod_autoscaling); - } - - /** - * Configuration for the horizontal pod autoscaling feature, which - * increases or decreases the number of replica pods a replication controller - * has based on the resource usage of the existing pods. - * - * Generated from protobuf field .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; - * @param \Google\Cloud\Container\V1\HorizontalPodAutoscaling $var - * @return $this - */ - public function setHorizontalPodAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\HorizontalPodAutoscaling::class); - $this->horizontal_pod_autoscaling = $var; - - return $this; - } - - /** - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * - * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @return \Google\Cloud\Container\V1\KubernetesDashboard|null - * @deprecated - */ - public function getKubernetesDashboard() - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - return $this->kubernetes_dashboard; - } - - public function hasKubernetesDashboard() - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - return isset($this->kubernetes_dashboard); - } - - public function clearKubernetesDashboard() - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - unset($this->kubernetes_dashboard); - } - - /** - * Configuration for the Kubernetes Dashboard. - * This addon is deprecated, and will be disabled in 1.15. It is recommended - * to use the Cloud Console to manage and monitor your Kubernetes clusters, - * workloads and applications. For more information, see: - * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards - * - * Generated from protobuf field .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; - * @param \Google\Cloud\Container\V1\KubernetesDashboard $var - * @return $this - * @deprecated - */ - public function setKubernetesDashboard($var) - { - @trigger_error('kubernetes_dashboard is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\KubernetesDashboard::class); - $this->kubernetes_dashboard = $var; - - return $this; - } - - /** - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * @return \Google\Cloud\Container\V1\NetworkPolicyConfig|null - */ - public function getNetworkPolicyConfig() - { - return $this->network_policy_config; - } - - public function hasNetworkPolicyConfig() - { - return isset($this->network_policy_config); - } - - public function clearNetworkPolicyConfig() - { - unset($this->network_policy_config); - } - - /** - * Configuration for NetworkPolicy. This only tracks whether the addon - * is enabled or not on the Master, it does not track whether network policy - * is enabled for the nodes. - * - * Generated from protobuf field .google.container.v1.NetworkPolicyConfig network_policy_config = 4; - * @param \Google\Cloud\Container\V1\NetworkPolicyConfig $var - * @return $this - */ - public function setNetworkPolicyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicyConfig::class); - $this->network_policy_config = $var; - - return $this; - } - - /** - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; - * @return \Google\Cloud\Container\V1\CloudRunConfig|null - */ - public function getCloudRunConfig() - { - return $this->cloud_run_config; - } - - public function hasCloudRunConfig() - { - return isset($this->cloud_run_config); - } - - public function clearCloudRunConfig() - { - unset($this->cloud_run_config); - } - - /** - * Configuration for the Cloud Run addon, which allows the user to use a - * managed Knative service. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig cloud_run_config = 7; - * @param \Google\Cloud\Container\V1\CloudRunConfig $var - * @return $this - */ - public function setCloudRunConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CloudRunConfig::class); - $this->cloud_run_config = $var; - - return $this; - } - - /** - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * - * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * @return \Google\Cloud\Container\V1\DnsCacheConfig|null - */ - public function getDnsCacheConfig() - { - return $this->dns_cache_config; - } - - public function hasDnsCacheConfig() - { - return isset($this->dns_cache_config); - } - - public function clearDnsCacheConfig() - { - unset($this->dns_cache_config); - } - - /** - * Configuration for NodeLocalDNS, a dns cache running on cluster nodes - * - * Generated from protobuf field .google.container.v1.DnsCacheConfig dns_cache_config = 8; - * @param \Google\Cloud\Container\V1\DnsCacheConfig $var - * @return $this - */ - public function setDnsCacheConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DnsCacheConfig::class); - $this->dns_cache_config = $var; - - return $this; - } - - /** - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * - * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * @return \Google\Cloud\Container\V1\ConfigConnectorConfig|null - */ - public function getConfigConnectorConfig() - { - return $this->config_connector_config; - } - - public function hasConfigConnectorConfig() - { - return isset($this->config_connector_config); - } - - public function clearConfigConnectorConfig() - { - unset($this->config_connector_config); - } - - /** - * Configuration for the ConfigConnector add-on, a Kubernetes - * extension to manage hosted GCP services through the Kubernetes API - * - * Generated from protobuf field .google.container.v1.ConfigConnectorConfig config_connector_config = 10; - * @param \Google\Cloud\Container\V1\ConfigConnectorConfig $var - * @return $this - */ - public function setConfigConnectorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfigConnectorConfig::class); - $this->config_connector_config = $var; - - return $this; - } - - /** - * Configuration for the Compute Engine Persistent Disk CSI driver. - * - * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @return \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig|null - */ - public function getGcePersistentDiskCsiDriverConfig() - { - return $this->gce_persistent_disk_csi_driver_config; - } - - public function hasGcePersistentDiskCsiDriverConfig() - { - return isset($this->gce_persistent_disk_csi_driver_config); - } - - public function clearGcePersistentDiskCsiDriverConfig() - { - unset($this->gce_persistent_disk_csi_driver_config); - } - - /** - * Configuration for the Compute Engine Persistent Disk CSI driver. - * - * Generated from protobuf field .google.container.v1.GcePersistentDiskCsiDriverConfig gce_persistent_disk_csi_driver_config = 11; - * @param \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig $var - * @return $this - */ - public function setGcePersistentDiskCsiDriverConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcePersistentDiskCsiDriverConfig::class); - $this->gce_persistent_disk_csi_driver_config = $var; - - return $this; - } - - /** - * Configuration for the GCP Filestore CSI driver. - * - * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @return \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig|null - */ - public function getGcpFilestoreCsiDriverConfig() - { - return $this->gcp_filestore_csi_driver_config; - } - - public function hasGcpFilestoreCsiDriverConfig() - { - return isset($this->gcp_filestore_csi_driver_config); - } - - public function clearGcpFilestoreCsiDriverConfig() - { - unset($this->gcp_filestore_csi_driver_config); - } - - /** - * Configuration for the GCP Filestore CSI driver. - * - * Generated from protobuf field .google.container.v1.GcpFilestoreCsiDriverConfig gcp_filestore_csi_driver_config = 14; - * @param \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig $var - * @return $this - */ - public function setGcpFilestoreCsiDriverConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcpFilestoreCsiDriverConfig::class); - $this->gcp_filestore_csi_driver_config = $var; - - return $this; - } - - /** - * Configuration for the Backup for GKE agent addon. - * - * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * @return \Google\Cloud\Container\V1\GkeBackupAgentConfig|null - */ - public function getGkeBackupAgentConfig() - { - return $this->gke_backup_agent_config; - } - - public function hasGkeBackupAgentConfig() - { - return isset($this->gke_backup_agent_config); - } - - public function clearGkeBackupAgentConfig() - { - unset($this->gke_backup_agent_config); - } - - /** - * Configuration for the Backup for GKE agent addon. - * - * Generated from protobuf field .google.container.v1.GkeBackupAgentConfig gke_backup_agent_config = 16; - * @param \Google\Cloud\Container\V1\GkeBackupAgentConfig $var - * @return $this - */ - public function setGkeBackupAgentConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GkeBackupAgentConfig::class); - $this->gke_backup_agent_config = $var; - - return $this; - } - - /** - * Configuration for the Cloud Storage Fuse CSI driver. - * - * Generated from protobuf field .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * @return \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig|null - */ - public function getGcsFuseCsiDriverConfig() - { - return $this->gcs_fuse_csi_driver_config; - } - - public function hasGcsFuseCsiDriverConfig() - { - return isset($this->gcs_fuse_csi_driver_config); - } - - public function clearGcsFuseCsiDriverConfig() - { - unset($this->gcs_fuse_csi_driver_config); - } - - /** - * Configuration for the Cloud Storage Fuse CSI driver. - * - * Generated from protobuf field .google.container.v1.GcsFuseCsiDriverConfig gcs_fuse_csi_driver_config = 17; - * @param \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig $var - * @return $this - */ - public function setGcsFuseCsiDriverConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcsFuseCsiDriverConfig::class); - $this->gcs_fuse_csi_driver_config = $var; - - return $this; - } - - /** - * Optional. Configuration for the StatefulHA add-on. - * - * Generated from protobuf field .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Container\V1\StatefulHAConfig|null - */ - public function getStatefulHaConfig() - { - return $this->stateful_ha_config; - } - - public function hasStatefulHaConfig() - { - return isset($this->stateful_ha_config); - } - - public function clearStatefulHaConfig() - { - unset($this->stateful_ha_config); - } - - /** - * Optional. Configuration for the StatefulHA add-on. - * - * Generated from protobuf field .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Container\V1\StatefulHAConfig $var - * @return $this - */ - public function setStatefulHaConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\StatefulHAConfig::class); - $this->stateful_ha_config = $var; - - return $this; - } - - /** - * Configuration for the Cloud Storage Parallelstore CSI driver. - * - * Generated from protobuf field .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; - * @return \Google\Cloud\Container\V1\ParallelstoreCsiDriverConfig|null - */ - public function getParallelstoreCsiDriverConfig() - { - return $this->parallelstore_csi_driver_config; - } - - public function hasParallelstoreCsiDriverConfig() - { - return isset($this->parallelstore_csi_driver_config); - } - - public function clearParallelstoreCsiDriverConfig() - { - unset($this->parallelstore_csi_driver_config); - } - - /** - * Configuration for the Cloud Storage Parallelstore CSI driver. - * - * Generated from protobuf field .google.container.v1.ParallelstoreCsiDriverConfig parallelstore_csi_driver_config = 19; - * @param \Google\Cloud\Container\V1\ParallelstoreCsiDriverConfig $var - * @return $this - */ - public function setParallelstoreCsiDriverConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ParallelstoreCsiDriverConfig::class); - $this->parallelstore_csi_driver_config = $var; - - return $this; - } - - /** - * Optional. Configuration for Ray Operator addon. - * - * Generated from protobuf field .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Container\V1\RayOperatorConfig|null - */ - public function getRayOperatorConfig() - { - return $this->ray_operator_config; - } - - public function hasRayOperatorConfig() - { - return isset($this->ray_operator_config); - } - - public function clearRayOperatorConfig() - { - unset($this->ray_operator_config); - } - - /** - * Optional. Configuration for Ray Operator addon. - * - * Generated from protobuf field .google.container.v1.RayOperatorConfig ray_operator_config = 21 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Container\V1\RayOperatorConfig $var - * @return $this - */ - public function setRayOperatorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\RayOperatorConfig::class); - $this->ray_operator_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php deleted file mode 100644 index 4008b7155ec3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig.php +++ /dev/null @@ -1,146 +0,0 @@ -google.container.v1.AdvancedDatapathObservabilityConfig - */ -class AdvancedDatapathObservabilityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Expose flow metrics on nodes - * - * Generated from protobuf field bool enable_metrics = 1; - */ - protected $enable_metrics = false; - /** - * Method used to make Relay available - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - */ - protected $relay_mode = 0; - /** - * Enable Relay component - * - * Generated from protobuf field optional bool enable_relay = 3; - */ - protected $enable_relay = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_metrics - * Expose flow metrics on nodes - * @type int $relay_mode - * Method used to make Relay available - * @type bool $enable_relay - * Enable Relay component - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Expose flow metrics on nodes - * - * Generated from protobuf field bool enable_metrics = 1; - * @return bool - */ - public function getEnableMetrics() - { - return $this->enable_metrics; - } - - /** - * Expose flow metrics on nodes - * - * Generated from protobuf field bool enable_metrics = 1; - * @param bool $var - * @return $this - */ - public function setEnableMetrics($var) - { - GPBUtil::checkBool($var); - $this->enable_metrics = $var; - - return $this; - } - - /** - * Method used to make Relay available - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * @return int - */ - public function getRelayMode() - { - return $this->relay_mode; - } - - /** - * Method used to make Relay available - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode relay_mode = 2; - * @param int $var - * @return $this - */ - public function setRelayMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig\RelayMode::class); - $this->relay_mode = $var; - - return $this; - } - - /** - * Enable Relay component - * - * Generated from protobuf field optional bool enable_relay = 3; - * @return bool - */ - public function getEnableRelay() - { - return isset($this->enable_relay) ? $this->enable_relay : false; - } - - public function hasEnableRelay() - { - return isset($this->enable_relay); - } - - public function clearEnableRelay() - { - unset($this->enable_relay); - } - - /** - * Enable Relay component - * - * Generated from protobuf field optional bool enable_relay = 3; - * @param bool $var - * @return $this - */ - public function setEnableRelay($var) - { - GPBUtil::checkBool($var); - $this->enable_relay = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php deleted file mode 100644 index 827f5dffa365..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedDatapathObservabilityConfig/RelayMode.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.AdvancedDatapathObservabilityConfig.RelayMode - */ -class RelayMode -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum RELAY_MODE_UNSPECIFIED = 0; - */ - const RELAY_MODE_UNSPECIFIED = 0; - /** - * disabled - * - * Generated from protobuf enum DISABLED = 1; - */ - const DISABLED = 1; - /** - * exposed via internal load balancer - * - * Generated from protobuf enum INTERNAL_VPC_LB = 3; - */ - const INTERNAL_VPC_LB = 3; - /** - * exposed via external load balancer - * - * Generated from protobuf enum EXTERNAL_LB = 4; - */ - const EXTERNAL_LB = 4; - - private static $valueToName = [ - self::RELAY_MODE_UNSPECIFIED => 'RELAY_MODE_UNSPECIFIED', - self::DISABLED => 'DISABLED', - self::INTERNAL_VPC_LB => 'INTERNAL_VPC_LB', - self::EXTERNAL_LB => 'EXTERNAL_LB', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RelayMode::class, \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig_RelayMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php deleted file mode 100644 index cb27012cf63e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AdvancedMachineFeatures.php +++ /dev/null @@ -1,129 +0,0 @@ -google.container.v1.AdvancedMachineFeatures - */ -class AdvancedMachineFeatures extends \Google\Protobuf\Internal\Message -{ - /** - * The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number of threads - * supported per core by the underlying processor is assumed. - * - * Generated from protobuf field optional int64 threads_per_core = 1; - */ - protected $threads_per_core = null; - /** - * Whether or not to enable nested virtualization (defaults to false). - * - * Generated from protobuf field optional bool enable_nested_virtualization = 2; - */ - protected $enable_nested_virtualization = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $threads_per_core - * The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number of threads - * supported per core by the underlying processor is assumed. - * @type bool $enable_nested_virtualization - * Whether or not to enable nested virtualization (defaults to false). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number of threads - * supported per core by the underlying processor is assumed. - * - * Generated from protobuf field optional int64 threads_per_core = 1; - * @return int|string - */ - public function getThreadsPerCore() - { - return isset($this->threads_per_core) ? $this->threads_per_core : 0; - } - - public function hasThreadsPerCore() - { - return isset($this->threads_per_core); - } - - public function clearThreadsPerCore() - { - unset($this->threads_per_core); - } - - /** - * The number of threads per physical core. To disable simultaneous - * multithreading (SMT) set this to 1. If unset, the maximum number of threads - * supported per core by the underlying processor is assumed. - * - * Generated from protobuf field optional int64 threads_per_core = 1; - * @param int|string $var - * @return $this - */ - public function setThreadsPerCore($var) - { - GPBUtil::checkInt64($var); - $this->threads_per_core = $var; - - return $this; - } - - /** - * Whether or not to enable nested virtualization (defaults to false). - * - * Generated from protobuf field optional bool enable_nested_virtualization = 2; - * @return bool - */ - public function getEnableNestedVirtualization() - { - return isset($this->enable_nested_virtualization) ? $this->enable_nested_virtualization : false; - } - - public function hasEnableNestedVirtualization() - { - return isset($this->enable_nested_virtualization); - } - - public function clearEnableNestedVirtualization() - { - unset($this->enable_nested_virtualization); - } - - /** - * Whether or not to enable nested virtualization (defaults to false). - * - * Generated from protobuf field optional bool enable_nested_virtualization = 2; - * @param bool $var - * @return $this - */ - public function setEnableNestedVirtualization($var) - { - GPBUtil::checkBool($var); - $this->enable_nested_virtualization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php deleted file mode 100644 index 2c82ec7e4c2a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AuthenticatorGroupsConfig.php +++ /dev/null @@ -1,109 +0,0 @@ -google.container.v1.AuthenticatorGroupsConfig - */ -class AuthenticatorGroupsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether this cluster should return group membership lookups - * during authentication using a group of security groups. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * The name of the security group-of-groups to be used. Only relevant - * if enabled = true. - * - * Generated from protobuf field string security_group = 2; - */ - protected $security_group = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether this cluster should return group membership lookups - * during authentication using a group of security groups. - * @type string $security_group - * The name of the security group-of-groups to be used. Only relevant - * if enabled = true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether this cluster should return group membership lookups - * during authentication using a group of security groups. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether this cluster should return group membership lookups - * during authentication using a group of security groups. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * The name of the security group-of-groups to be used. Only relevant - * if enabled = true. - * - * Generated from protobuf field string security_group = 2; - * @return string - */ - public function getSecurityGroup() - { - return $this->security_group; - } - - /** - * The name of the security group-of-groups to be used. Only relevant - * if enabled = true. - * - * Generated from protobuf field string security_group = 2; - * @param string $var - * @return $this - */ - public function setSecurityGroup($var) - { - GPBUtil::checkString($var, True); - $this->security_group = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php deleted file mode 100644 index 6cb000ee3e76..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoUpgradeOptions.php +++ /dev/null @@ -1,114 +0,0 @@ -google.container.v1.AutoUpgradeOptions - */ -class AutoUpgradeOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. This field is set when upgrades are about to commence - * with the approximate start time for the upgrades, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $auto_upgrade_start_time = ''; - /** - * Output only. This field is set when upgrades are about to commence - * with the description of the upgrade. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $auto_upgrade_start_time - * Output only. This field is set when upgrades are about to commence - * with the approximate start time for the upgrades, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type string $description - * Output only. This field is set when upgrades are about to commence - * with the description of the upgrade. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. This field is set when upgrades are about to commence - * with the approximate start time for the upgrades, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAutoUpgradeStartTime() - { - return $this->auto_upgrade_start_time; - } - - /** - * Output only. This field is set when upgrades are about to commence - * with the approximate start time for the upgrades, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string auto_upgrade_start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAutoUpgradeStartTime($var) - { - GPBUtil::checkString($var, True); - $this->auto_upgrade_start_time = $var; - - return $this; - } - - /** - * Output only. This field is set when upgrades are about to commence - * with the description of the upgrade. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. This field is set when upgrades are about to commence - * with the description of the upgrade. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php deleted file mode 100644 index 238b7e88db99..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Autopilot.php +++ /dev/null @@ -1,111 +0,0 @@ -google.container.v1.Autopilot - */ -class Autopilot extends \Google\Protobuf\Internal\Message -{ - /** - * Enable Autopilot - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Workload policy configuration for Autopilot. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - */ - protected $workload_policy_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable Autopilot - * @type \Google\Cloud\Container\V1\WorkloadPolicyConfig $workload_policy_config - * Workload policy configuration for Autopilot. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable Autopilot - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable Autopilot - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Workload policy configuration for Autopilot. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - * @return \Google\Cloud\Container\V1\WorkloadPolicyConfig|null - */ - public function getWorkloadPolicyConfig() - { - return $this->workload_policy_config; - } - - public function hasWorkloadPolicyConfig() - { - return isset($this->workload_policy_config); - } - - public function clearWorkloadPolicyConfig() - { - unset($this->workload_policy_config); - } - - /** - * Workload policy configuration for Autopilot. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig workload_policy_config = 2; - * @param \Google\Cloud\Container\V1\WorkloadPolicyConfig $var - * @return $this - */ - public function setWorkloadPolicyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadPolicyConfig::class); - $this->workload_policy_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php deleted file mode 100644 index 59fced6edbf7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue.php +++ /dev/null @@ -1,248 +0,0 @@ -google.container.v1.AutopilotCompatibilityIssue - */ -class AutopilotCompatibilityIssue extends \Google\Protobuf\Internal\Message -{ - /** - * The last time when this issue was observed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_observation = 1; - */ - protected $last_observation = null; - /** - * The constraint type of the issue. - * - * Generated from protobuf field string constraint_type = 2; - */ - protected $constraint_type = ''; - /** - * The incompatibility type of this issue. - * - * Generated from protobuf field .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - */ - protected $incompatibility_type = 0; - /** - * The name of the resources which are subject to this issue. - * - * Generated from protobuf field repeated string subjects = 4; - */ - private $subjects; - /** - * A URL to a public documnetation, which addresses resolving this issue. - * - * Generated from protobuf field string documentation_url = 5; - */ - protected $documentation_url = ''; - /** - * The description of the issue. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $last_observation - * The last time when this issue was observed. - * @type string $constraint_type - * The constraint type of the issue. - * @type int $incompatibility_type - * The incompatibility type of this issue. - * @type array|\Google\Protobuf\Internal\RepeatedField $subjects - * The name of the resources which are subject to this issue. - * @type string $documentation_url - * A URL to a public documnetation, which addresses resolving this issue. - * @type string $description - * The description of the issue. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The last time when this issue was observed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_observation = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastObservation() - { - return $this->last_observation; - } - - public function hasLastObservation() - { - return isset($this->last_observation); - } - - public function clearLastObservation() - { - unset($this->last_observation); - } - - /** - * The last time when this issue was observed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_observation = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastObservation($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_observation = $var; - - return $this; - } - - /** - * The constraint type of the issue. - * - * Generated from protobuf field string constraint_type = 2; - * @return string - */ - public function getConstraintType() - { - return $this->constraint_type; - } - - /** - * The constraint type of the issue. - * - * Generated from protobuf field string constraint_type = 2; - * @param string $var - * @return $this - */ - public function setConstraintType($var) - { - GPBUtil::checkString($var, True); - $this->constraint_type = $var; - - return $this; - } - - /** - * The incompatibility type of this issue. - * - * Generated from protobuf field .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * @return int - */ - public function getIncompatibilityType() - { - return $this->incompatibility_type; - } - - /** - * The incompatibility type of this issue. - * - * Generated from protobuf field .google.container.v1.AutopilotCompatibilityIssue.IssueType incompatibility_type = 3; - * @param int $var - * @return $this - */ - public function setIncompatibilityType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\AutopilotCompatibilityIssue\IssueType::class); - $this->incompatibility_type = $var; - - return $this; - } - - /** - * The name of the resources which are subject to this issue. - * - * Generated from protobuf field repeated string subjects = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubjects() - { - return $this->subjects; - } - - /** - * The name of the resources which are subject to this issue. - * - * Generated from protobuf field repeated string subjects = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubjects($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->subjects = $arr; - - return $this; - } - - /** - * A URL to a public documnetation, which addresses resolving this issue. - * - * Generated from protobuf field string documentation_url = 5; - * @return string - */ - public function getDocumentationUrl() - { - return $this->documentation_url; - } - - /** - * A URL to a public documnetation, which addresses resolving this issue. - * - * Generated from protobuf field string documentation_url = 5; - * @param string $var - * @return $this - */ - public function setDocumentationUrl($var) - { - GPBUtil::checkString($var, True); - $this->documentation_url = $var; - - return $this; - } - - /** - * The description of the issue. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the issue. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php deleted file mode 100644 index 7ab458adac79..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutopilotCompatibilityIssue/IssueType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.container.v1.AutopilotCompatibilityIssue.IssueType - */ -class IssueType -{ - /** - * Default value, should not be used. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Indicates that the issue is a known incompatibility between the - * cluster and Autopilot mode. - * - * Generated from protobuf enum INCOMPATIBILITY = 1; - */ - const INCOMPATIBILITY = 1; - /** - * Indicates the issue is an incompatibility if customers take no further - * action to resolve. - * - * Generated from protobuf enum ADDITIONAL_CONFIG_REQUIRED = 2; - */ - const ADDITIONAL_CONFIG_REQUIRED = 2; - /** - * Indicates the issue is not an incompatibility, but depending on the - * workloads business logic, there is a potential that they won't work on - * Autopilot. - * - * Generated from protobuf enum PASSED_WITH_OPTIONAL_CONFIG = 3; - */ - const PASSED_WITH_OPTIONAL_CONFIG = 3; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::INCOMPATIBILITY => 'INCOMPATIBILITY', - self::ADDITIONAL_CONFIG_REQUIRED => 'ADDITIONAL_CONFIG_REQUIRED', - self::PASSED_WITH_OPTIONAL_CONFIG => 'PASSED_WITH_OPTIONAL_CONFIG', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IssueType::class, \Google\Cloud\Container\V1\AutopilotCompatibilityIssue_IssueType::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php deleted file mode 100644 index 8028b6f87ae5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/AutoprovisioningNodePoolDefaults.php +++ /dev/null @@ -1,537 +0,0 @@ -google.container.v1.AutoprovisioningNodePoolDefaults - */ -class AutoprovisioningNodePoolDefaults extends \Google\Protobuf\Internal\Message -{ - /** - * Scopes that are used by NAP when creating node pools. - * - * Generated from protobuf field repeated string oauth_scopes = 1; - */ - private $oauth_scopes; - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * - * Generated from protobuf field string service_account = 2; - */ - protected $service_account = ''; - /** - * Specifies the upgrade settings for NAP created node pools - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - */ - protected $upgrade_settings = null; - /** - * Specifies the node management options for NAP created node-pools. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 4; - */ - protected $management = null; - /** - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; - * @deprecated - */ - protected $min_cpu_platform = ''; - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 6; - */ - protected $disk_size_gb = 0; - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 7; - */ - protected $disk_type = ''; - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - */ - protected $shielded_instance_config = null; - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 9; - */ - protected $boot_disk_kms_key = ''; - /** - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 10; - */ - protected $image_type = ''; - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 13; - */ - protected $insecure_kubelet_readonly_port_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes - * Scopes that are used by NAP when creating node pools. - * @type string $service_account - * The Google Cloud Platform Service Account to be used by the node VMs. - * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings - * Specifies the upgrade settings for NAP created node pools - * @type \Google\Cloud\Container\V1\NodeManagement $management - * Specifies the node management options for NAP created node-pools. - * @type string $min_cpu_platform - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * @type int $disk_size_gb - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * @type string $disk_type - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * @type \Google\Cloud\Container\V1\ShieldedInstanceConfig $shielded_instance_config - * Shielded Instance options. - * @type string $boot_disk_kms_key - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * @type string $image_type - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * @type bool $insecure_kubelet_readonly_port_enabled - * Enable or disable Kubelet read only port. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Scopes that are used by NAP when creating node pools. - * - * Generated from protobuf field repeated string oauth_scopes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOauthScopes() - { - return $this->oauth_scopes; - } - - /** - * Scopes that are used by NAP when creating node pools. - * - * Generated from protobuf field repeated string oauth_scopes = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOauthScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->oauth_scopes = $arr; - - return $this; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * - * Generated from protobuf field string service_account = 2; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * - * Generated from protobuf field string service_account = 2; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Specifies the upgrade settings for NAP created node pools - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null - */ - public function getUpgradeSettings() - { - return $this->upgrade_settings; - } - - public function hasUpgradeSettings() - { - return isset($this->upgrade_settings); - } - - public function clearUpgradeSettings() - { - unset($this->upgrade_settings); - } - - /** - * Specifies the upgrade settings for NAP created node pools - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 3; - * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var - * @return $this - */ - public function setUpgradeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); - $this->upgrade_settings = $var; - - return $this; - } - - /** - * Specifies the node management options for NAP created node-pools. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 4; - * @return \Google\Cloud\Container\V1\NodeManagement|null - */ - public function getManagement() - { - return $this->management; - } - - public function hasManagement() - { - return isset($this->management); - } - - public function clearManagement() - { - unset($this->management); - } - - /** - * Specifies the node management options for NAP created node-pools. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 4; - * @param \Google\Cloud\Container\V1\NodeManagement $var - * @return $this - */ - public function setManagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); - $this->management = $var; - - return $this; - } - - /** - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; - * @return string - * @deprecated - */ - public function getMinCpuPlatform() - { - @trigger_error('min_cpu_platform is deprecated.', E_USER_DEPRECATED); - return $this->min_cpu_platform; - } - - /** - * Deprecated. Minimum CPU platform to be used for NAP created node pools. - * The instance may be scheduled on the specified or newer CPU platform. - * Applicable values are the friendly names of CPU platforms, such as - * minCpuPlatform: Intel Haswell or - * minCpuPlatform: Intel Sandy Bridge. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform). - * This field is deprecated, min_cpu_platform should be specified using - * `cloud.google.com/requested-min-cpu-platform` label selector on the pod. - * To unset the min cpu platform field pass "automatic" - * as field value. - * - * Generated from protobuf field string min_cpu_platform = 5 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setMinCpuPlatform($var) - { - @trigger_error('min_cpu_platform is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->min_cpu_platform = $var; - - return $this; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 6; - * @return int - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 6; - * @param int $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt32($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 7; - * @return string - */ - public function getDiskType() - { - return $this->disk_type; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 7; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * @return \Google\Cloud\Container\V1\ShieldedInstanceConfig|null - */ - public function getShieldedInstanceConfig() - { - return $this->shielded_instance_config; - } - - public function hasShieldedInstanceConfig() - { - return isset($this->shielded_instance_config); - } - - public function clearShieldedInstanceConfig() - { - unset($this->shielded_instance_config); - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 8; - * @param \Google\Cloud\Container\V1\ShieldedInstanceConfig $var - * @return $this - */ - public function setShieldedInstanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedInstanceConfig::class); - $this->shielded_instance_config = $var; - - return $this; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 9; - * @return string - */ - public function getBootDiskKmsKey() - { - return $this->boot_disk_kms_key; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 9; - * @param string $var - * @return $this - */ - public function setBootDiskKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->boot_disk_kms_key = $var; - - return $this; - } - - /** - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 10; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * The image type to use for NAP created node. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 10; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 13; - * @return bool - */ - public function getInsecureKubeletReadonlyPortEnabled() - { - return isset($this->insecure_kubelet_readonly_port_enabled) ? $this->insecure_kubelet_readonly_port_enabled : false; - } - - public function hasInsecureKubeletReadonlyPortEnabled() - { - return isset($this->insecure_kubelet_readonly_port_enabled); - } - - public function clearInsecureKubeletReadonlyPortEnabled() - { - unset($this->insecure_kubelet_readonly_port_enabled); - } - - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 13; - * @param bool $var - * @return $this - */ - public function setInsecureKubeletReadonlyPortEnabled($var) - { - GPBUtil::checkBool($var); - $this->insecure_kubelet_readonly_port_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php deleted file mode 100644 index a9a398e1599e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BestEffortProvisioning.php +++ /dev/null @@ -1,117 +0,0 @@ -google.container.v1.BestEffortProvisioning - */ -class BestEffortProvisioning extends \Google\Protobuf\Internal\Message -{ - /** - * When this is enabled, cluster/node pool creations will ignore non-fatal - * errors like stockout to best provision as many nodes as possible right now - * and eventually bring up all target number of nodes - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Minimum number of nodes to be provisioned to be considered as succeeded, - * and the rest of nodes will be provisioned gradually and eventually when - * stockout issue has been resolved. - * - * Generated from protobuf field int32 min_provision_nodes = 2; - */ - protected $min_provision_nodes = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * When this is enabled, cluster/node pool creations will ignore non-fatal - * errors like stockout to best provision as many nodes as possible right now - * and eventually bring up all target number of nodes - * @type int $min_provision_nodes - * Minimum number of nodes to be provisioned to be considered as succeeded, - * and the rest of nodes will be provisioned gradually and eventually when - * stockout issue has been resolved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * When this is enabled, cluster/node pool creations will ignore non-fatal - * errors like stockout to best provision as many nodes as possible right now - * and eventually bring up all target number of nodes - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * When this is enabled, cluster/node pool creations will ignore non-fatal - * errors like stockout to best provision as many nodes as possible right now - * and eventually bring up all target number of nodes - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Minimum number of nodes to be provisioned to be considered as succeeded, - * and the rest of nodes will be provisioned gradually and eventually when - * stockout issue has been resolved. - * - * Generated from protobuf field int32 min_provision_nodes = 2; - * @return int - */ - public function getMinProvisionNodes() - { - return $this->min_provision_nodes; - } - - /** - * Minimum number of nodes to be provisioned to be considered as succeeded, - * and the rest of nodes will be provisioned gradually and eventually when - * stockout issue has been resolved. - * - * Generated from protobuf field int32 min_provision_nodes = 2; - * @param int $var - * @return $this - */ - public function setMinProvisionNodes($var) - { - GPBUtil::checkInt32($var); - $this->min_provision_nodes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php deleted file mode 100644 index d97177fdd9b4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization.php +++ /dev/null @@ -1,118 +0,0 @@ -google.container.v1.BinaryAuthorization - */ -class BinaryAuthorization extends \Google\Protobuf\Internal\Message -{ - /** - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * - * Generated from protobuf field bool enabled = 1 [deprecated = true]; - * @deprecated - */ - protected $enabled = false; - /** - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - */ - protected $evaluation_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * @type int $evaluation_mode - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * - * Generated from protobuf field bool enabled = 1 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getEnabled() - { - @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); - return $this->enabled; - } - - /** - * This field is deprecated. Leave this unset and instead configure - * BinaryAuthorization using evaluation_mode. If evaluation_mode is set to - * anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. - * - * Generated from protobuf field bool enabled = 1 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setEnabled($var) - { - @trigger_error('enabled is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * @return int - */ - public function getEvaluationMode() - { - return $this->evaluation_mode; - } - - /** - * Mode of operation for binauthz policy evaluation. If unspecified, defaults - * to DISABLED. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization.EvaluationMode evaluation_mode = 2; - * @param int $var - * @return $this - */ - public function setEvaluationMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\BinaryAuthorization\EvaluationMode::class); - $this->evaluation_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php deleted file mode 100644 index 425ec404c0bf..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BinaryAuthorization/EvaluationMode.php +++ /dev/null @@ -1,66 +0,0 @@ -google.container.v1.BinaryAuthorization.EvaluationMode - */ -class EvaluationMode -{ - /** - * Default value - * - * Generated from protobuf enum EVALUATION_MODE_UNSPECIFIED = 0; - */ - const EVALUATION_MODE_UNSPECIFIED = 0; - /** - * Disable BinaryAuthorization - * - * Generated from protobuf enum DISABLED = 1; - */ - const DISABLED = 1; - /** - * Enforce Kubernetes admission requests with BinaryAuthorization using the - * project's singleton policy. This is equivalent to setting the - * enabled boolean to true. - * - * Generated from protobuf enum PROJECT_SINGLETON_POLICY_ENFORCE = 2; - */ - const PROJECT_SINGLETON_POLICY_ENFORCE = 2; - - private static $valueToName = [ - self::EVALUATION_MODE_UNSPECIFIED => 'EVALUATION_MODE_UNSPECIFIED', - self::DISABLED => 'DISABLED', - self::PROJECT_SINGLETON_POLICY_ENFORCE => 'PROJECT_SINGLETON_POLICY_ENFORCE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EvaluationMode::class, \Google\Cloud\Container\V1\BinaryAuthorization_EvaluationMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php deleted file mode 100644 index e139c636a105..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings.php +++ /dev/null @@ -1,123 +0,0 @@ -google.container.v1.BlueGreenSettings - */ -class BlueGreenSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * - * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; - */ - protected $node_pool_soak_duration = null; - protected $rollout_policy; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy $standard_rollout_policy - * Standard policy for the blue-green upgrade. - * @type \Google\Protobuf\Duration $node_pool_soak_duration - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Standard policy for the blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * @return \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy|null - */ - public function getStandardRolloutPolicy() - { - return $this->readOneof(1); - } - - public function hasStandardRolloutPolicy() - { - return $this->hasOneof(1); - } - - /** - * Standard policy for the blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.BlueGreenSettings.StandardRolloutPolicy standard_rollout_policy = 1; - * @param \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy $var - * @return $this - */ - public function setStandardRolloutPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BlueGreenSettings\StandardRolloutPolicy::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * - * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getNodePoolSoakDuration() - { - return $this->node_pool_soak_duration; - } - - public function hasNodePoolSoakDuration() - { - return isset($this->node_pool_soak_duration); - } - - public function clearNodePoolSoakDuration() - { - unset($this->node_pool_soak_duration); - } - - /** - * Time needed after draining entire blue pool. After this period, blue pool - * will be cleaned up. - * - * Generated from protobuf field optional .google.protobuf.Duration node_pool_soak_duration = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setNodePoolSoakDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->node_pool_soak_duration = $var; - - return $this; - } - - /** - * @return string - */ - public function getRolloutPolicy() - { - return $this->whichOneof("rollout_policy"); - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php deleted file mode 100644 index 8008e05364d2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/BlueGreenSettings/StandardRolloutPolicy.php +++ /dev/null @@ -1,158 +0,0 @@ -google.container.v1.BlueGreenSettings.StandardRolloutPolicy - */ -class StandardRolloutPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Soak time after each batch gets drained. Default to zero. - * - * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; - */ - protected $batch_soak_duration = null; - protected $update_batch_size; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $batch_percentage - * Percentage of the blue pool nodes to drain in a batch. - * The range of this field should be (0.0, 1.0]. - * @type int $batch_node_count - * Number of blue nodes to drain in a batch. - * @type \Google\Protobuf\Duration $batch_soak_duration - * Soak time after each batch gets drained. Default to zero. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Percentage of the blue pool nodes to drain in a batch. - * The range of this field should be (0.0, 1.0]. - * - * Generated from protobuf field float batch_percentage = 1; - * @return float - */ - public function getBatchPercentage() - { - return $this->readOneof(1); - } - - public function hasBatchPercentage() - { - return $this->hasOneof(1); - } - - /** - * Percentage of the blue pool nodes to drain in a batch. - * The range of this field should be (0.0, 1.0]. - * - * Generated from protobuf field float batch_percentage = 1; - * @param float $var - * @return $this - */ - public function setBatchPercentage($var) - { - GPBUtil::checkFloat($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Number of blue nodes to drain in a batch. - * - * Generated from protobuf field int32 batch_node_count = 2; - * @return int - */ - public function getBatchNodeCount() - { - return $this->readOneof(2); - } - - public function hasBatchNodeCount() - { - return $this->hasOneof(2); - } - - /** - * Number of blue nodes to drain in a batch. - * - * Generated from protobuf field int32 batch_node_count = 2; - * @param int $var - * @return $this - */ - public function setBatchNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Soak time after each batch gets drained. Default to zero. - * - * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getBatchSoakDuration() - { - return $this->batch_soak_duration; - } - - public function hasBatchSoakDuration() - { - return isset($this->batch_soak_duration); - } - - public function clearBatchSoakDuration() - { - unset($this->batch_soak_duration); - } - - /** - * Soak time after each batch gets drained. Default to zero. - * - * Generated from protobuf field optional .google.protobuf.Duration batch_soak_duration = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setBatchSoakDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->batch_soak_duration = $var; - - return $this; - } - - /** - * @return string - */ - public function getUpdateBatchSize() - { - return $this->whichOneof("update_batch_size"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StandardRolloutPolicy::class, \Google\Cloud\Container\V1\BlueGreenSettings_StandardRolloutPolicy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php deleted file mode 100644 index b0240be146af..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CancelOperationRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.CancelOperationRequest - */ -class CancelOperationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @deprecated - */ - protected $operation_id = ''; - /** - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * @param string $operationId Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\CancelOperationRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $operationId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setOperationId($operationId); - } - - /** - * @param string $name The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * @return \Google\Cloud\Container\V1\CancelOperationRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * @type string $operation_id - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getOperationId() - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - return $this->operation_id; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setOperationId($var) - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->operation_id = $var; - - return $this; - } - - /** - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, operation id) of the operation to cancel. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php deleted file mode 100644 index 700b298b2a29..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityRequest.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.CheckAutopilotCompatibilityRequest - */ -class CheckAutopilotCompatibilityRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php deleted file mode 100644 index 18b56a4a8a04..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CheckAutopilotCompatibilityResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.container.v1.CheckAutopilotCompatibilityResponse - */ -class CheckAutopilotCompatibilityResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of issues for the given operation. - * - * Generated from protobuf field repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - */ - private $issues; - /** - * The summary of the autopilot compatibility response. - * - * Generated from protobuf field string summary = 2; - */ - protected $summary = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\AutopilotCompatibilityIssue>|\Google\Protobuf\Internal\RepeatedField $issues - * The list of issues for the given operation. - * @type string $summary - * The summary of the autopilot compatibility response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The list of issues for the given operation. - * - * Generated from protobuf field repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIssues() - { - return $this->issues; - } - - /** - * The list of issues for the given operation. - * - * Generated from protobuf field repeated .google.container.v1.AutopilotCompatibilityIssue issues = 1; - * @param array<\Google\Cloud\Container\V1\AutopilotCompatibilityIssue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIssues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AutopilotCompatibilityIssue::class); - $this->issues = $arr; - - return $this; - } - - /** - * The summary of the autopilot compatibility response. - * - * Generated from protobuf field string summary = 2; - * @return string - */ - public function getSummary() - { - return $this->summary; - } - - /** - * The summary of the autopilot compatibility response. - * - * Generated from protobuf field string summary = 2; - * @param string $var - * @return $this - */ - public function setSummary($var) - { - GPBUtil::checkString($var, True); - $this->summary = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php deleted file mode 100644 index 5ea0c28d3441..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClientCertificateConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ClientCertificateConfig - */ -class ClientCertificateConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Issue a client certificate. - * - * Generated from protobuf field bool issue_client_certificate = 1; - */ - protected $issue_client_certificate = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $issue_client_certificate - * Issue a client certificate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Issue a client certificate. - * - * Generated from protobuf field bool issue_client_certificate = 1; - * @return bool - */ - public function getIssueClientCertificate() - { - return $this->issue_client_certificate; - } - - /** - * Issue a client certificate. - * - * Generated from protobuf field bool issue_client_certificate = 1; - * @param bool $var - * @return $this - */ - public function setIssueClientCertificate($var) - { - GPBUtil::checkBool($var); - $this->issue_client_certificate = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php deleted file mode 100644 index 2ad11c8938e1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig.php +++ /dev/null @@ -1,101 +0,0 @@ -google.container.v1.CloudRunConfig - */ -class CloudRunConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Cloud Run addon is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - /** - * Which load balancer type is installed for Cloud Run. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - */ - protected $load_balancer_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether Cloud Run addon is enabled for this cluster. - * @type int $load_balancer_type - * Which load balancer type is installed for Cloud Run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Cloud Run addon is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether Cloud Run addon is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - - /** - * Which load balancer type is installed for Cloud Run. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @return int - */ - public function getLoadBalancerType() - { - return $this->load_balancer_type; - } - - /** - * Which load balancer type is installed for Cloud Run. - * - * Generated from protobuf field .google.container.v1.CloudRunConfig.LoadBalancerType load_balancer_type = 3; - * @param int $var - * @return $this - */ - public function setLoadBalancerType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\CloudRunConfig\LoadBalancerType::class); - $this->load_balancer_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php deleted file mode 100644 index 03aa3ae7995e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CloudRunConfig/LoadBalancerType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.CloudRunConfig.LoadBalancerType - */ -class LoadBalancerType -{ - /** - * Load balancer type for Cloud Run is unspecified. - * - * Generated from protobuf enum LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - */ - const LOAD_BALANCER_TYPE_UNSPECIFIED = 0; - /** - * Install external load balancer for Cloud Run. - * - * Generated from protobuf enum LOAD_BALANCER_TYPE_EXTERNAL = 1; - */ - const LOAD_BALANCER_TYPE_EXTERNAL = 1; - /** - * Install internal load balancer for Cloud Run. - * - * Generated from protobuf enum LOAD_BALANCER_TYPE_INTERNAL = 2; - */ - const LOAD_BALANCER_TYPE_INTERNAL = 2; - - private static $valueToName = [ - self::LOAD_BALANCER_TYPE_UNSPECIFIED => 'LOAD_BALANCER_TYPE_UNSPECIFIED', - self::LOAD_BALANCER_TYPE_EXTERNAL => 'LOAD_BALANCER_TYPE_EXTERNAL', - self::LOAD_BALANCER_TYPE_INTERNAL => 'LOAD_BALANCER_TYPE_INTERNAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LoadBalancerType::class, \Google\Cloud\Container\V1\CloudRunConfig_LoadBalancerType::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php deleted file mode 100644 index ef01339406ed..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster.php +++ /dev/null @@ -1,3495 +0,0 @@ -google.container.v1.Cluster - */ -class Cluster extends \Google\Protobuf\Internal\Message -{ - /** - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * An optional description of this cluster. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * - * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; - * @deprecated - */ - protected $initial_node_count = 0; - /** - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * - * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * @deprecated - */ - protected $node_config = null; - /** - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * - * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; - */ - protected $master_auth = null; - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 6; - */ - protected $logging_service = ''; - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 7; - */ - protected $monitoring_service = ''; - /** - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * - * Generated from protobuf field string network = 8; - */ - protected $network = ''; - /** - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * - * Generated from protobuf field string cluster_ipv4_cidr = 9; - */ - protected $cluster_ipv4_cidr = ''; - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; - */ - protected $addons_config = null; - /** - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * - * Generated from protobuf field string subnetwork = 11; - */ - protected $subnetwork = ''; - /** - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; - */ - private $node_pools; - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - */ - private $locations; - /** - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * - * Generated from protobuf field bool enable_kubernetes_alpha = 14; - */ - protected $enable_kubernetes_alpha = false; - /** - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 15; - */ - private $resource_labels; - /** - * The fingerprint of the set of labels for this cluster. - * - * Generated from protobuf field string label_fingerprint = 16; - */ - protected $label_fingerprint = ''; - /** - * Configuration for the legacy ABAC authorization mode. - * - * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; - */ - protected $legacy_abac = null; - /** - * Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; - */ - protected $network_policy = null; - /** - * Configuration for cluster IP allocation. - * - * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - */ - protected $ip_allocation_policy = null; - /** - * The configuration options for master authorized networks feature. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config] - * instead. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; - * @deprecated - */ - protected $master_authorized_networks_config = null; - /** - * Configure the maintenance policy for this cluster. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; - */ - protected $maintenance_policy = null; - /** - * Configuration for Binary Authorization. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; - */ - protected $binary_authorization = null; - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; - */ - protected $autoscaling = null; - /** - * Configuration for cluster networking. - * - * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; - */ - protected $network_config = null; - /** - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - */ - protected $default_max_pods_constraint = null; - /** - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - */ - protected $resource_usage_export_config = null; - /** - * Configuration controlling RBAC group membership information. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - */ - protected $authenticator_groups_config = null; - /** - * Configuration for private cluster. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - */ - protected $private_cluster_config = null; - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; - */ - protected $database_encryption = null; - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - */ - protected $vertical_pod_autoscaling = null; - /** - * Shielded Nodes configuration. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; - */ - protected $shielded_nodes = null; - /** - * Release channel configuration. If left unspecified on cluster creation and - * a version is specified, the cluster is enrolled in the most mature release - * channel where the version is available (first checking STABLE, then - * REGULAR, and finally RAPID). Otherwise, if no release channel - * configuration and no version is specified, the cluster is enrolled in the - * REGULAR channel with its default version. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 41; - */ - protected $release_channel = null; - /** - * Configuration for the use of Kubernetes Service Accounts in GCP IAM - * policies. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - */ - protected $workload_identity_config = null; - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates mesh_certificates = 67; - */ - protected $mesh_certificates = null; - /** - * Configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; - */ - protected $cost_management_config = null; - /** - * Notification configuration of the cluster. - * - * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; - */ - protected $notification_config = null; - /** - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; - */ - protected $confidential_nodes = null; - /** - * Configuration for Identity Service component. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; - */ - protected $identity_service_config = null; - /** - * Output only. Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $self_link = ''; - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $zone = ''; - /** - * Output only. The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * - * Generated from protobuf field string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint = ''; - /** - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * - * Generated from protobuf field string initial_cluster_version = 103; - */ - protected $initial_cluster_version = ''; - /** - * Output only. The current software version of the master endpoint. - * - * Generated from protobuf field string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_master_version = ''; - /** - * Output only. Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * - * Generated from protobuf field string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $current_node_version = ''; - /** - * Output only. The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = ''; - /** - * Output only. The current status of this cluster. - * - * Generated from protobuf field .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = 0; - /** - * Output only. Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * - * Generated from protobuf field string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $status_message = ''; - /** - * Output only. The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * - * Generated from protobuf field int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $node_ipv4_cidr_size = 0; - /** - * Output only. The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * - * Generated from protobuf field string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $services_ipv4_cidr = ''; - /** - * Output only. Deprecated. Use node_pools.instance_group_urls. - * - * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - private $instance_group_urls; - /** - * Output only. The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * - * Generated from protobuf field int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $current_node_count = 0; - /** - * Output only. The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expire_time = ''; - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $location = ''; - /** - * Enable the ability to use Cloud TPUs in this cluster. - * - * Generated from protobuf field bool enable_tpu = 115; - */ - protected $enable_tpu = false; - /** - * Output only. The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $tpu_ipv4_cidr_block = ''; - /** - * Which conditions caused the current cluster state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; - */ - private $conditions; - /** - * Autopilot configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; - */ - protected $autopilot = null; - /** - * Output only. Unique id for the cluster. - * - * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $id = ''; - /** - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * - * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - */ - protected $node_pool_defaults = null; - /** - * Logging configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; - */ - protected $logging_config = null; - /** - * Monitoring configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; - */ - protected $monitoring_config = null; - /** - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - */ - protected $node_pool_auto_config = null; - /** - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 139; - */ - protected $etag = ''; - /** - * Fleet information for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet fleet = 140; - */ - protected $fleet = null; - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig security_posture_config = 145; - */ - protected $security_posture_config = null; - /** - * Configuration for all cluster's control plane endpoints. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; - */ - protected $control_plane_endpoints_config = null; - /** - * Beta APIs Config - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - */ - protected $enable_k8s_beta_apis = null; - /** - * GKE Enterprise Configuration. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig enterprise_config = 149; - */ - protected $enterprise_config = null; - /** - * Secret CSI driver configuration. - * - * Generated from protobuf field .google.container.v1.SecretManagerConfig secret_manager_config = 150; - */ - protected $secret_manager_config = null; - /** - * Enable/Disable Compliance Posture features for the cluster. - * - * Generated from protobuf field .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; - */ - protected $compliance_posture_config = null; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = null; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzi = null; - /** - * The Custom keys configuration for the cluster. - * - * Generated from protobuf field optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; - */ - protected $user_managed_keys_config = null; - /** - * RBACBindingConfig allows user to restrict ClusterRoleBindings an - * RoleBindings that can be created. - * - * Generated from protobuf field optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; - */ - protected $rbac_binding_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * @type string $description - * An optional description of this cluster. - * @type int $initial_node_count - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * @type \Google\Cloud\Container\V1\NodeConfig $node_config - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * @type \Google\Cloud\Container\V1\MasterAuth $master_auth - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * @type string $logging_service - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @type string $monitoring_service - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @type string $network - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * @type string $cluster_ipv4_cidr - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * @type \Google\Cloud\Container\V1\AddonsConfig $addons_config - * Configurations for the various addons available to run in the cluster. - * @type string $subnetwork - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * @type array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $node_pools - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * @type bool $enable_kubernetes_alpha - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * @type string $label_fingerprint - * The fingerprint of the set of labels for this cluster. - * @type \Google\Cloud\Container\V1\LegacyAbac $legacy_abac - * Configuration for the legacy ABAC authorization mode. - * @type \Google\Cloud\Container\V1\NetworkPolicy $network_policy - * Configuration options for the NetworkPolicy feature. - * @type \Google\Cloud\Container\V1\IPAllocationPolicy $ip_allocation_policy - * Configuration for cluster IP allocation. - * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $master_authorized_networks_config - * The configuration options for master authorized networks feature. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config] - * instead. - * @type \Google\Cloud\Container\V1\MaintenancePolicy $maintenance_policy - * Configure the maintenance policy for this cluster. - * @type \Google\Cloud\Container\V1\BinaryAuthorization $binary_authorization - * Configuration for Binary Authorization. - * @type \Google\Cloud\Container\V1\ClusterAutoscaling $autoscaling - * Cluster-level autoscaling configuration. - * @type \Google\Cloud\Container\V1\NetworkConfig $network_config - * Configuration for cluster networking. - * @type \Google\Cloud\Container\V1\MaxPodsConstraint $default_max_pods_constraint - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig $resource_usage_export_config - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * @type \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $authenticator_groups_config - * Configuration controlling RBAC group membership information. - * @type \Google\Cloud\Container\V1\PrivateClusterConfig $private_cluster_config - * Configuration for private cluster. - * @type \Google\Cloud\Container\V1\DatabaseEncryption $database_encryption - * Configuration of etcd encryption. - * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $vertical_pod_autoscaling - * Cluster-level Vertical Pod Autoscaling configuration. - * @type \Google\Cloud\Container\V1\ShieldedNodes $shielded_nodes - * Shielded Nodes configuration. - * @type \Google\Cloud\Container\V1\ReleaseChannel $release_channel - * Release channel configuration. If left unspecified on cluster creation and - * a version is specified, the cluster is enrolled in the most mature release - * channel where the version is available (first checking STABLE, then - * REGULAR, and finally RAPID). Otherwise, if no release channel - * configuration and no version is specified, the cluster is enrolled in the - * REGULAR channel with its default version. - * @type \Google\Cloud\Container\V1\WorkloadIdentityConfig $workload_identity_config - * Configuration for the use of Kubernetes Service Accounts in GCP IAM - * policies. - * @type \Google\Cloud\Container\V1\MeshCertificates $mesh_certificates - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * @type \Google\Cloud\Container\V1\CostManagementConfig $cost_management_config - * Configuration for the fine-grained cost management feature. - * @type \Google\Cloud\Container\V1\NotificationConfig $notification_config - * Notification configuration of the cluster. - * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * @type \Google\Cloud\Container\V1\IdentityServiceConfig $identity_service_config - * Configuration for Identity Service component. - * @type string $self_link - * Output only. Server-defined URL for the resource. - * @type string $zone - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * @type string $endpoint - * Output only. The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * @type string $initial_cluster_version - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * @type string $current_master_version - * Output only. The current software version of the master endpoint. - * @type string $current_node_version - * Output only. Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * @type string $create_time - * Output only. The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type int $status - * Output only. The current status of this cluster. - * @type string $status_message - * Output only. Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * @type int $node_ipv4_cidr_size - * Output only. The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * @type string $services_ipv4_cidr - * Output only. The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * @type array|\Google\Protobuf\Internal\RepeatedField $instance_group_urls - * Output only. Deprecated. Use node_pools.instance_group_urls. - * @type int $current_node_count - * Output only. The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * @type string $expire_time - * Output only. The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type string $location - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * @type bool $enable_tpu - * Enable the ability to use Cloud TPUs in this cluster. - * @type string $tpu_ipv4_cidr_block - * Output only. The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $conditions - * Which conditions caused the current cluster state. - * @type \Google\Cloud\Container\V1\Autopilot $autopilot - * Autopilot configuration for the cluster. - * @type string $id - * Output only. Unique id for the cluster. - * @type \Google\Cloud\Container\V1\NodePoolDefaults $node_pool_defaults - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * @type \Google\Cloud\Container\V1\LoggingConfig $logging_config - * Logging configuration for the cluster. - * @type \Google\Cloud\Container\V1\MonitoringConfig $monitoring_config - * Monitoring configuration for the cluster. - * @type \Google\Cloud\Container\V1\NodePoolAutoConfig $node_pool_auto_config - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * @type string $etag - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * @type \Google\Cloud\Container\V1\Fleet $fleet - * Fleet information for the cluster. - * @type \Google\Cloud\Container\V1\SecurityPostureConfig $security_posture_config - * Enable/Disable Security Posture API features for the cluster. - * @type \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig $control_plane_endpoints_config - * Configuration for all cluster's control plane endpoints. - * @type \Google\Cloud\Container\V1\K8sBetaAPIConfig $enable_k8s_beta_apis - * Beta APIs Config - * @type \Google\Cloud\Container\V1\EnterpriseConfig $enterprise_config - * GKE Enterprise Configuration. - * @type \Google\Cloud\Container\V1\SecretManagerConfig $secret_manager_config - * Secret CSI driver configuration. - * @type \Google\Cloud\Container\V1\CompliancePostureConfig $compliance_posture_config - * Enable/Disable Compliance Posture features for the cluster. - * @type bool $satisfies_pzs - * Output only. Reserved for future use. - * @type bool $satisfies_pzi - * Output only. Reserved for future use. - * @type \Google\Cloud\Container\V1\UserManagedKeysConfig $user_managed_keys_config - * The Custom keys configuration for the cluster. - * @type \Google\Cloud\Container\V1\RBACBindingConfig $rbac_binding_config - * RBACBindingConfig allows user to restrict ClusterRoleBindings an - * RoleBindings that can be created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of this cluster. The name must be unique within this project - * and location (e.g. zone or region), and can be up to 40 characters with - * the following restrictions: - * * Lowercase letters, numbers, and hyphens only. - * * Must start with a letter. - * * Must end with a number or a letter. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * An optional description of this cluster. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * An optional description of this cluster. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * - * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; - * @return int - * @deprecated - */ - public function getInitialNodeCount() - { - @trigger_error('initial_node_count is deprecated.', E_USER_DEPRECATED); - return $this->initial_node_count; - } - - /** - * The number of nodes to create in this cluster. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "node_config") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * This field is deprecated, use node_pool.initial_node_count instead. - * - * Generated from protobuf field int32 initial_node_count = 3 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setInitialNodeCount($var) - { - @trigger_error('initial_node_count is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->initial_node_count = $var; - - return $this; - } - - /** - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * - * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * @return \Google\Cloud\Container\V1\NodeConfig|null - * @deprecated - */ - public function getNodeConfig() - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - return $this->node_config; - } - - public function hasNodeConfig() - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - return isset($this->node_config); - } - - public function clearNodeConfig() - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - unset($this->node_config); - } - - /** - * Parameters used in creating the cluster's nodes. - * For requests, this field should only be used in lieu of a - * "node_pool" object, since this configuration (along with the - * "initial_node_count") will be used to create a "NodePool" object with an - * auto-generated name. Do not use this and a node_pool at the same time. - * For responses, this field will be populated with the node configuration of - * the first node pool. (For configuration of each node pool, see - * `node_pool.config`) - * If unspecified, the defaults are used. - * This field is deprecated, use node_pool.config instead. - * - * Generated from protobuf field .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; - * @param \Google\Cloud\Container\V1\NodeConfig $var - * @return $this - * @deprecated - */ - public function setNodeConfig($var) - { - @trigger_error('node_config is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfig::class); - $this->node_config = $var; - - return $this; - } - - /** - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * - * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; - * @return \Google\Cloud\Container\V1\MasterAuth|null - */ - public function getMasterAuth() - { - return $this->master_auth; - } - - public function hasMasterAuth() - { - return isset($this->master_auth); - } - - public function clearMasterAuth() - { - unset($this->master_auth); - } - - /** - * The authentication information for accessing the master endpoint. - * If unspecified, the defaults are used: - * For clusters before v1.12, if master_auth is unspecified, `username` will - * be set to "admin", a random password will be generated, and a client - * certificate will be issued. - * - * Generated from protobuf field .google.container.v1.MasterAuth master_auth = 5; - * @param \Google\Cloud\Container\V1\MasterAuth $var - * @return $this - */ - public function setMasterAuth($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuth::class); - $this->master_auth = $var; - - return $this; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 6; - * @return string - */ - public function getLoggingService() - { - return $this->logging_service; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 6; - * @param string $var - * @return $this - */ - public function setLoggingService($var) - { - GPBUtil::checkString($var, True); - $this->logging_service = $var; - - return $this; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 7; - * @return string - */ - public function getMonitoringService() - { - return $this->monitoring_service; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 7; - * @param string $var - * @return $this - */ - public function setMonitoringService($var) - { - GPBUtil::checkString($var, True); - $this->monitoring_service = $var; - - return $this; - } - - /** - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * - * Generated from protobuf field string network = 8; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * The name of the Google Compute Engine - * [network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. If left unspecified, the `default` - * network will be used. - * - * Generated from protobuf field string network = 8; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * - * Generated from protobuf field string cluster_ipv4_cidr = 9; - * @return string - */ - public function getClusterIpv4Cidr() - { - return $this->cluster_ipv4_cidr; - } - - /** - * The IP address range of the container pods in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`). Leave blank to have - * one automatically chosen or specify a `/14` block in `10.0.0.0/8`. - * - * Generated from protobuf field string cluster_ipv4_cidr = 9; - * @param string $var - * @return $this - */ - public function setClusterIpv4Cidr($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ipv4_cidr = $var; - - return $this; - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; - * @return \Google\Cloud\Container\V1\AddonsConfig|null - */ - public function getAddonsConfig() - { - return $this->addons_config; - } - - public function hasAddonsConfig() - { - return isset($this->addons_config); - } - - public function clearAddonsConfig() - { - unset($this->addons_config); - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 10; - * @param \Google\Cloud\Container\V1\AddonsConfig $var - * @return $this - */ - public function setAddonsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); - $this->addons_config = $var; - - return $this; - } - - /** - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * - * Generated from protobuf field string subnetwork = 11; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * The name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/subnetworks) to which - * the cluster is connected. - * - * Generated from protobuf field string subnetwork = 11; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodePools() - { - return $this->node_pools; - } - - /** - * The node pools associated with this cluster. - * This field should not be set if "node_config" or "initial_node_count" are - * specified. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 12; - * @param array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodePool::class); - $this->node_pools = $arr; - - return $this; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This field provides a default value if - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * are not specified during node pool creation. - * Warning: changing cluster locations will update the - * [NodePool.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools#NodePool.FIELDS.locations) - * of all node pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * - * Generated from protobuf field bool enable_kubernetes_alpha = 14; - * @return bool - */ - public function getEnableKubernetesAlpha() - { - return $this->enable_kubernetes_alpha; - } - - /** - * Kubernetes alpha features are enabled on this cluster. This includes alpha - * API groups (e.g. v1alpha1) and features that may not be production ready in - * the kubernetes version of the master and nodes. - * The cluster has no SLA for uptime and master/node upgrades are disabled. - * Alpha enabled clusters are automatically deleted thirty days after - * creation. - * - * Generated from protobuf field bool enable_kubernetes_alpha = 14; - * @param bool $var - * @return $this - */ - public function setEnableKubernetesAlpha($var) - { - GPBUtil::checkBool($var); - $this->enable_kubernetes_alpha = $var; - - return $this; - } - - /** - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 15; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * The resource labels for the cluster to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 15; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * The fingerprint of the set of labels for this cluster. - * - * Generated from protobuf field string label_fingerprint = 16; - * @return string - */ - public function getLabelFingerprint() - { - return $this->label_fingerprint; - } - - /** - * The fingerprint of the set of labels for this cluster. - * - * Generated from protobuf field string label_fingerprint = 16; - * @param string $var - * @return $this - */ - public function setLabelFingerprint($var) - { - GPBUtil::checkString($var, True); - $this->label_fingerprint = $var; - - return $this; - } - - /** - * Configuration for the legacy ABAC authorization mode. - * - * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; - * @return \Google\Cloud\Container\V1\LegacyAbac|null - */ - public function getLegacyAbac() - { - return $this->legacy_abac; - } - - public function hasLegacyAbac() - { - return isset($this->legacy_abac); - } - - public function clearLegacyAbac() - { - unset($this->legacy_abac); - } - - /** - * Configuration for the legacy ABAC authorization mode. - * - * Generated from protobuf field .google.container.v1.LegacyAbac legacy_abac = 18; - * @param \Google\Cloud\Container\V1\LegacyAbac $var - * @return $this - */ - public function setLegacyAbac($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LegacyAbac::class); - $this->legacy_abac = $var; - - return $this; - } - - /** - * Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; - * @return \Google\Cloud\Container\V1\NetworkPolicy|null - */ - public function getNetworkPolicy() - { - return $this->network_policy; - } - - public function hasNetworkPolicy() - { - return isset($this->network_policy); - } - - public function clearNetworkPolicy() - { - unset($this->network_policy); - } - - /** - * Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 19; - * @param \Google\Cloud\Container\V1\NetworkPolicy $var - * @return $this - */ - public function setNetworkPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class); - $this->network_policy = $var; - - return $this; - } - - /** - * Configuration for cluster IP allocation. - * - * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * @return \Google\Cloud\Container\V1\IPAllocationPolicy|null - */ - public function getIpAllocationPolicy() - { - return $this->ip_allocation_policy; - } - - public function hasIpAllocationPolicy() - { - return isset($this->ip_allocation_policy); - } - - public function clearIpAllocationPolicy() - { - unset($this->ip_allocation_policy); - } - - /** - * Configuration for cluster IP allocation. - * - * Generated from protobuf field .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; - * @param \Google\Cloud\Container\V1\IPAllocationPolicy $var - * @return $this - */ - public function setIpAllocationPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IPAllocationPolicy::class); - $this->ip_allocation_policy = $var; - - return $this; - } - - /** - * The configuration options for master authorized networks feature. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config] - * instead. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; - * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null - * @deprecated - */ - public function getMasterAuthorizedNetworksConfig() - { - @trigger_error('master_authorized_networks_config is deprecated.', E_USER_DEPRECATED); - return $this->master_authorized_networks_config; - } - - public function hasMasterAuthorizedNetworksConfig() - { - @trigger_error('master_authorized_networks_config is deprecated.', E_USER_DEPRECATED); - return isset($this->master_authorized_networks_config); - } - - public function clearMasterAuthorizedNetworksConfig() - { - @trigger_error('master_authorized_networks_config is deprecated.', E_USER_DEPRECATED); - unset($this->master_authorized_networks_config); - } - - /** - * The configuration options for master authorized networks feature. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.authorized_networks_config] - * instead. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22 [deprecated = true]; - * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var - * @return $this - * @deprecated - */ - public function setMasterAuthorizedNetworksConfig($var) - { - @trigger_error('master_authorized_networks_config is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); - $this->master_authorized_networks_config = $var; - - return $this; - } - - /** - * Configure the maintenance policy for this cluster. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * @return \Google\Cloud\Container\V1\MaintenancePolicy|null - */ - public function getMaintenancePolicy() - { - return $this->maintenance_policy; - } - - public function hasMaintenancePolicy() - { - return isset($this->maintenance_policy); - } - - public function clearMaintenancePolicy() - { - unset($this->maintenance_policy); - } - - /** - * Configure the maintenance policy for this cluster. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 23; - * @param \Google\Cloud\Container\V1\MaintenancePolicy $var - * @return $this - */ - public function setMaintenancePolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenancePolicy::class); - $this->maintenance_policy = $var; - - return $this; - } - - /** - * Configuration for Binary Authorization. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; - * @return \Google\Cloud\Container\V1\BinaryAuthorization|null - */ - public function getBinaryAuthorization() - { - return $this->binary_authorization; - } - - public function hasBinaryAuthorization() - { - return isset($this->binary_authorization); - } - - public function clearBinaryAuthorization() - { - unset($this->binary_authorization); - } - - /** - * Configuration for Binary Authorization. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization binary_authorization = 24; - * @param \Google\Cloud\Container\V1\BinaryAuthorization $var - * @return $this - */ - public function setBinaryAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BinaryAuthorization::class); - $this->binary_authorization = $var; - - return $this; - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; - * @return \Google\Cloud\Container\V1\ClusterAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling autoscaling = 26; - * @param \Google\Cloud\Container\V1\ClusterAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * Configuration for cluster networking. - * - * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; - * @return \Google\Cloud\Container\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); - } - - /** - * Configuration for cluster networking. - * - * Generated from protobuf field .google.container.v1.NetworkConfig network_config = 27; - * @param \Google\Cloud\Container\V1\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null - */ - public function getDefaultMaxPodsConstraint() - { - return $this->default_max_pods_constraint; - } - - public function hasDefaultMaxPodsConstraint() - { - return isset($this->default_max_pods_constraint); - } - - public function clearDefaultMaxPodsConstraint() - { - unset($this->default_max_pods_constraint); - } - - /** - * The default constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool of this cluster. Only honored - * if cluster created with IP Alias support. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; - * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var - * @return $this - */ - public function setDefaultMaxPodsConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); - $this->default_max_pods_constraint = $var; - - return $this; - } - - /** - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig|null - */ - public function getResourceUsageExportConfig() - { - return $this->resource_usage_export_config; - } - - public function hasResourceUsageExportConfig() - { - return isset($this->resource_usage_export_config); - } - - public function clearResourceUsageExportConfig() - { - unset($this->resource_usage_export_config); - } - - /** - * Configuration for exporting resource usages. Resource usage export is - * disabled when this config is unspecified. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; - * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig $var - * @return $this - */ - public function setResourceUsageExportConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig::class); - $this->resource_usage_export_config = $var; - - return $this; - } - - /** - * Configuration controlling RBAC group membership information. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @return \Google\Cloud\Container\V1\AuthenticatorGroupsConfig|null - */ - public function getAuthenticatorGroupsConfig() - { - return $this->authenticator_groups_config; - } - - public function hasAuthenticatorGroupsConfig() - { - return isset($this->authenticator_groups_config); - } - - public function clearAuthenticatorGroupsConfig() - { - unset($this->authenticator_groups_config); - } - - /** - * Configuration controlling RBAC group membership information. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; - * @param \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $var - * @return $this - */ - public function setAuthenticatorGroupsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AuthenticatorGroupsConfig::class); - $this->authenticator_groups_config = $var; - - return $this; - } - - /** - * Configuration for private cluster. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null - */ - public function getPrivateClusterConfig() - { - return $this->private_cluster_config; - } - - public function hasPrivateClusterConfig() - { - return isset($this->private_cluster_config); - } - - public function clearPrivateClusterConfig() - { - unset($this->private_cluster_config); - } - - /** - * Configuration for private cluster. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig private_cluster_config = 37; - * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var - * @return $this - */ - public function setPrivateClusterConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterConfig::class); - $this->private_cluster_config = $var; - - return $this; - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; - * @return \Google\Cloud\Container\V1\DatabaseEncryption|null - */ - public function getDatabaseEncryption() - { - return $this->database_encryption; - } - - public function hasDatabaseEncryption() - { - return isset($this->database_encryption); - } - - public function clearDatabaseEncryption() - { - unset($this->database_encryption); - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption database_encryption = 38; - * @param \Google\Cloud\Container\V1\DatabaseEncryption $var - * @return $this - */ - public function setDatabaseEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DatabaseEncryption::class); - $this->database_encryption = $var; - - return $this; - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @return \Google\Cloud\Container\V1\VerticalPodAutoscaling|null - */ - public function getVerticalPodAutoscaling() - { - return $this->vertical_pod_autoscaling; - } - - public function hasVerticalPodAutoscaling() - { - return isset($this->vertical_pod_autoscaling); - } - - public function clearVerticalPodAutoscaling() - { - unset($this->vertical_pod_autoscaling); - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; - * @param \Google\Cloud\Container\V1\VerticalPodAutoscaling $var - * @return $this - */ - public function setVerticalPodAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VerticalPodAutoscaling::class); - $this->vertical_pod_autoscaling = $var; - - return $this; - } - - /** - * Shielded Nodes configuration. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; - * @return \Google\Cloud\Container\V1\ShieldedNodes|null - */ - public function getShieldedNodes() - { - return $this->shielded_nodes; - } - - public function hasShieldedNodes() - { - return isset($this->shielded_nodes); - } - - public function clearShieldedNodes() - { - unset($this->shielded_nodes); - } - - /** - * Shielded Nodes configuration. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes shielded_nodes = 40; - * @param \Google\Cloud\Container\V1\ShieldedNodes $var - * @return $this - */ - public function setShieldedNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedNodes::class); - $this->shielded_nodes = $var; - - return $this; - } - - /** - * Release channel configuration. If left unspecified on cluster creation and - * a version is specified, the cluster is enrolled in the most mature release - * channel where the version is available (first checking STABLE, then - * REGULAR, and finally RAPID). Otherwise, if no release channel - * configuration and no version is specified, the cluster is enrolled in the - * REGULAR channel with its default version. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 41; - * @return \Google\Cloud\Container\V1\ReleaseChannel|null - */ - public function getReleaseChannel() - { - return $this->release_channel; - } - - public function hasReleaseChannel() - { - return isset($this->release_channel); - } - - public function clearReleaseChannel() - { - unset($this->release_channel); - } - - /** - * Release channel configuration. If left unspecified on cluster creation and - * a version is specified, the cluster is enrolled in the most mature release - * channel where the version is available (first checking STABLE, then - * REGULAR, and finally RAPID). Otherwise, if no release channel - * configuration and no version is specified, the cluster is enrolled in the - * REGULAR channel with its default version. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 41; - * @param \Google\Cloud\Container\V1\ReleaseChannel $var - * @return $this - */ - public function setReleaseChannel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); - $this->release_channel = $var; - - return $this; - } - - /** - * Configuration for the use of Kubernetes Service Accounts in GCP IAM - * policies. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * @return \Google\Cloud\Container\V1\WorkloadIdentityConfig|null - */ - public function getWorkloadIdentityConfig() - { - return $this->workload_identity_config; - } - - public function hasWorkloadIdentityConfig() - { - return isset($this->workload_identity_config); - } - - public function clearWorkloadIdentityConfig() - { - unset($this->workload_identity_config); - } - - /** - * Configuration for the use of Kubernetes Service Accounts in GCP IAM - * policies. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig workload_identity_config = 43; - * @param \Google\Cloud\Container\V1\WorkloadIdentityConfig $var - * @return $this - */ - public function setWorkloadIdentityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadIdentityConfig::class); - $this->workload_identity_config = $var; - - return $this; - } - - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates mesh_certificates = 67; - * @return \Google\Cloud\Container\V1\MeshCertificates|null - */ - public function getMeshCertificates() - { - return $this->mesh_certificates; - } - - public function hasMeshCertificates() - { - return isset($this->mesh_certificates); - } - - public function clearMeshCertificates() - { - unset($this->mesh_certificates); - } - - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates mesh_certificates = 67; - * @param \Google\Cloud\Container\V1\MeshCertificates $var - * @return $this - */ - public function setMeshCertificates($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MeshCertificates::class); - $this->mesh_certificates = $var; - - return $this; - } - - /** - * Configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; - * @return \Google\Cloud\Container\V1\CostManagementConfig|null - */ - public function getCostManagementConfig() - { - return $this->cost_management_config; - } - - public function hasCostManagementConfig() - { - return isset($this->cost_management_config); - } - - public function clearCostManagementConfig() - { - unset($this->cost_management_config); - } - - /** - * Configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig cost_management_config = 45; - * @param \Google\Cloud\Container\V1\CostManagementConfig $var - * @return $this - */ - public function setCostManagementConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CostManagementConfig::class); - $this->cost_management_config = $var; - - return $this; - } - - /** - * Notification configuration of the cluster. - * - * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; - * @return \Google\Cloud\Container\V1\NotificationConfig|null - */ - public function getNotificationConfig() - { - return $this->notification_config; - } - - public function hasNotificationConfig() - { - return isset($this->notification_config); - } - - public function clearNotificationConfig() - { - unset($this->notification_config); - } - - /** - * Notification configuration of the cluster. - * - * Generated from protobuf field .google.container.v1.NotificationConfig notification_config = 49; - * @param \Google\Cloud\Container\V1\NotificationConfig $var - * @return $this - */ - public function setNotificationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig::class); - $this->notification_config = $var; - - return $this; - } - - /** - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * @return \Google\Cloud\Container\V1\ConfidentialNodes|null - */ - public function getConfidentialNodes() - { - return $this->confidential_nodes; - } - - public function hasConfidentialNodes() - { - return isset($this->confidential_nodes); - } - - public function clearConfidentialNodes() - { - unset($this->confidential_nodes); - } - - /** - * Configuration of Confidential Nodes. - * All the nodes in the cluster will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 50; - * @param \Google\Cloud\Container\V1\ConfidentialNodes $var - * @return $this - */ - public function setConfidentialNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); - $this->confidential_nodes = $var; - - return $this; - } - - /** - * Configuration for Identity Service component. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * @return \Google\Cloud\Container\V1\IdentityServiceConfig|null - */ - public function getIdentityServiceConfig() - { - return $this->identity_service_config; - } - - public function hasIdentityServiceConfig() - { - return isset($this->identity_service_config); - } - - public function clearIdentityServiceConfig() - { - unset($this->identity_service_config); - } - - /** - * Configuration for Identity Service component. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig identity_service_config = 54; - * @param \Google\Cloud\Container\V1\IdentityServiceConfig $var - * @return $this - */ - public function setIdentityServiceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IdentityServiceConfig::class); - $this->identity_service_config = $var; - - return $this; - } - - /** - * Output only. Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSelfLink() - { - return $this->self_link; - } - - /** - * Output only. Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSelfLink($var) - { - GPBUtil::checkString($var, True); - $this->self_link = $var; - - return $this; - } - - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 101 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Output only. The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * - * Generated from protobuf field string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * Output only. The IP address of this cluster's master endpoint. - * The endpoint can be accessed from the internet at - * `https://username:password@endpoint/`. - * See the `masterAuth` property of this resource for username and - * password information. - * - * Generated from protobuf field string endpoint = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * - * Generated from protobuf field string initial_cluster_version = 103; - * @return string - */ - public function getInitialClusterVersion() - { - return $this->initial_cluster_version; - } - - /** - * The initial Kubernetes version for this cluster. Valid versions are those - * found in validMasterVersions returned by getServerConfig. The version can - * be upgraded over time; such upgrades are reflected in - * currentMasterVersion and currentNodeVersion. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "","-": picks the default Kubernetes version - * - * Generated from protobuf field string initial_cluster_version = 103; - * @param string $var - * @return $this - */ - public function setInitialClusterVersion($var) - { - GPBUtil::checkString($var, True); - $this->initial_cluster_version = $var; - - return $this; - } - - /** - * Output only. The current software version of the master endpoint. - * - * Generated from protobuf field string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCurrentMasterVersion() - { - return $this->current_master_version; - } - - /** - * Output only. The current software version of the master endpoint. - * - * Generated from protobuf field string current_master_version = 104 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCurrentMasterVersion($var) - { - GPBUtil::checkString($var, True); - $this->current_master_version = $var; - - return $this; - } - - /** - * Output only. Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * - * Generated from protobuf field string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - * @deprecated - */ - public function getCurrentNodeVersion() - { - @trigger_error('current_node_version is deprecated.', E_USER_DEPRECATED); - return $this->current_node_version; - } - - /** - * Output only. Deprecated, use - * [NodePools.version](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters.nodePools) - * instead. The current version of the node software components. If they are - * currently at multiple versions because they're in the process of being - * upgraded, this reflects the minimum version of all nodes. - * - * Generated from protobuf field string current_node_version = 105 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - * @deprecated - */ - public function setCurrentNodeVersion($var) - { - @trigger_error('current_node_version is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->current_node_version = $var; - - return $this; - } - - /** - * Output only. The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getCreateTime() - { - return $this->create_time; - } - - /** - * Output only. The time the cluster was created, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string create_time = 106 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkString($var, True); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The current status of this cluster. - * - * Generated from protobuf field .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Output only. The current status of this cluster. - * - * Generated from protobuf field .google.container.v1.Cluster.Status status = 107 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Cluster\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Output only. Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * - * Generated from protobuf field string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - * @deprecated - */ - public function getStatusMessage() - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - return $this->status_message; - } - - /** - * Output only. Deprecated. Use conditions instead. - * Additional information about the current status of this - * cluster, if available. - * - * Generated from protobuf field string status_message = 108 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - * @deprecated - */ - public function setStatusMessage($var) - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * - * Generated from protobuf field int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getNodeIpv4CidrSize() - { - return $this->node_ipv4_cidr_size; - } - - /** - * Output only. The size of the address space on each node for hosting - * containers. This is provisioned from within the `container_ipv4_cidr` - * range. This field will only be set when cluster is in route-based network - * mode. - * - * Generated from protobuf field int32 node_ipv4_cidr_size = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setNodeIpv4CidrSize($var) - { - GPBUtil::checkInt32($var); - $this->node_ipv4_cidr_size = $var; - - return $this; - } - - /** - * Output only. The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * - * Generated from protobuf field string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServicesIpv4Cidr() - { - return $this->services_ipv4_cidr; - } - - /** - * Output only. The IP address range of the Kubernetes services in - * this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). Service addresses are - * typically put in the last `/16` from the container CIDR. - * - * Generated from protobuf field string services_ipv4_cidr = 110 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServicesIpv4Cidr($var) - { - GPBUtil::checkString($var, True); - $this->services_ipv4_cidr = $var; - - return $this; - } - - /** - * Output only. Deprecated. Use node_pools.instance_group_urls. - * - * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getInstanceGroupUrls() - { - @trigger_error('instance_group_urls is deprecated.', E_USER_DEPRECATED); - return $this->instance_group_urls; - } - - /** - * Output only. Deprecated. Use node_pools.instance_group_urls. - * - * Generated from protobuf field repeated string instance_group_urls = 111 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setInstanceGroupUrls($var) - { - @trigger_error('instance_group_urls is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->instance_group_urls = $arr; - - return $this; - } - - /** - * Output only. The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * - * Generated from protobuf field int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - * @deprecated - */ - public function getCurrentNodeCount() - { - @trigger_error('current_node_count is deprecated.', E_USER_DEPRECATED); - return $this->current_node_count; - } - - /** - * Output only. The number of nodes currently in the cluster. Deprecated. - * Call Kubernetes API directly to retrieve node information. - * - * Generated from protobuf field int32 current_node_count = 112 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - * @deprecated - */ - public function setCurrentNodeCount($var) - { - @trigger_error('current_node_count is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->current_node_count = $var; - - return $this; - } - - /** - * Output only. The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getExpireTime() - { - return $this->expire_time; - } - - /** - * Output only. The time the cluster will be automatically - * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string expire_time = 113 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkString($var, True); - $this->expire_time = $var; - - return $this; - } - - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 114 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Enable the ability to use Cloud TPUs in this cluster. - * - * Generated from protobuf field bool enable_tpu = 115; - * @return bool - */ - public function getEnableTpu() - { - return $this->enable_tpu; - } - - /** - * Enable the ability to use Cloud TPUs in this cluster. - * - * Generated from protobuf field bool enable_tpu = 115; - * @param bool $var - * @return $this - */ - public function setEnableTpu($var) - { - GPBUtil::checkBool($var); - $this->enable_tpu = $var; - - return $this; - } - - /** - * Output only. The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTpuIpv4CidrBlock() - { - return $this->tpu_ipv4_cidr_block; - } - - /** - * Output only. The IP address range of the Cloud TPUs in this cluster, in - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `1.2.3.4/29`). - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 116 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTpuIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->tpu_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Which conditions caused the current cluster state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Which conditions caused the current cluster state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 118; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->conditions = $arr; - - return $this; - } - - /** - * Autopilot configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; - * @return \Google\Cloud\Container\V1\Autopilot|null - */ - public function getAutopilot() - { - return $this->autopilot; - } - - public function hasAutopilot() - { - return isset($this->autopilot); - } - - public function clearAutopilot() - { - unset($this->autopilot); - } - - /** - * Autopilot configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Autopilot autopilot = 128; - * @param \Google\Cloud\Container\V1\Autopilot $var - * @return $this - */ - public function setAutopilot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Autopilot::class); - $this->autopilot = $var; - - return $this; - } - - /** - * Output only. Unique id for the cluster. - * - * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Output only. Unique id for the cluster. - * - * Generated from protobuf field string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * - * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * @return \Google\Cloud\Container\V1\NodePoolDefaults|null - */ - public function getNodePoolDefaults() - { - return $this->node_pool_defaults; - } - - public function hasNodePoolDefaults() - { - return isset($this->node_pool_defaults); - } - - public function clearNodePoolDefaults() - { - unset($this->node_pool_defaults); - } - - /** - * Default NodePool settings for the entire cluster. These settings are - * overridden if specified on the specific NodePool object. - * - * Generated from protobuf field optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131; - * @param \Google\Cloud\Container\V1\NodePoolDefaults $var - * @return $this - */ - public function setNodePoolDefaults($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolDefaults::class); - $this->node_pool_defaults = $var; - - return $this; - } - - /** - * Logging configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; - * @return \Google\Cloud\Container\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.LoggingConfig logging_config = 132; - * @param \Google\Cloud\Container\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Monitoring configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; - * @return \Google\Cloud\Container\V1\MonitoringConfig|null - */ - public function getMonitoringConfig() - { - return $this->monitoring_config; - } - - public function hasMonitoringConfig() - { - return isset($this->monitoring_config); - } - - public function clearMonitoringConfig() - { - unset($this->monitoring_config); - } - - /** - * Monitoring configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig monitoring_config = 133; - * @param \Google\Cloud\Container\V1\MonitoringConfig $var - * @return $this - */ - public function setMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringConfig::class); - $this->monitoring_config = $var; - - return $this; - } - - /** - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * @return \Google\Cloud\Container\V1\NodePoolAutoConfig|null - */ - public function getNodePoolAutoConfig() - { - return $this->node_pool_auto_config; - } - - public function hasNodePoolAutoConfig() - { - return isset($this->node_pool_auto_config); - } - - public function clearNodePoolAutoConfig() - { - unset($this->node_pool_auto_config); - } - - /** - * Node pool configs that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136; - * @param \Google\Cloud\Container\V1\NodePoolAutoConfig $var - * @return $this - */ - public function setNodePoolAutoConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoConfig::class); - $this->node_pool_auto_config = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 139; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of cluster - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 139; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Fleet information for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet fleet = 140; - * @return \Google\Cloud\Container\V1\Fleet|null - */ - public function getFleet() - { - return $this->fleet; - } - - public function hasFleet() - { - return isset($this->fleet); - } - - public function clearFleet() - { - unset($this->fleet); - } - - /** - * Fleet information for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet fleet = 140; - * @param \Google\Cloud\Container\V1\Fleet $var - * @return $this - */ - public function setFleet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Fleet::class); - $this->fleet = $var; - - return $this; - } - - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig security_posture_config = 145; - * @return \Google\Cloud\Container\V1\SecurityPostureConfig|null - */ - public function getSecurityPostureConfig() - { - return $this->security_posture_config; - } - - public function hasSecurityPostureConfig() - { - return isset($this->security_posture_config); - } - - public function clearSecurityPostureConfig() - { - unset($this->security_posture_config); - } - - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig security_posture_config = 145; - * @param \Google\Cloud\Container\V1\SecurityPostureConfig $var - * @return $this - */ - public function setSecurityPostureConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecurityPostureConfig::class); - $this->security_posture_config = $var; - - return $this; - } - - /** - * Configuration for all cluster's control plane endpoints. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; - * @return \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig|null - */ - public function getControlPlaneEndpointsConfig() - { - return $this->control_plane_endpoints_config; - } - - public function hasControlPlaneEndpointsConfig() - { - return isset($this->control_plane_endpoints_config); - } - - public function clearControlPlaneEndpointsConfig() - { - unset($this->control_plane_endpoints_config); - } - - /** - * Configuration for all cluster's control plane endpoints. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig control_plane_endpoints_config = 146; - * @param \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig $var - * @return $this - */ - public function setControlPlaneEndpointsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig::class); - $this->control_plane_endpoints_config = $var; - - return $this; - } - - /** - * Beta APIs Config - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * @return \Google\Cloud\Container\V1\K8sBetaAPIConfig|null - */ - public function getEnableK8SBetaApis() - { - return $this->enable_k8s_beta_apis; - } - - public function hasEnableK8SBetaApis() - { - return isset($this->enable_k8s_beta_apis); - } - - public function clearEnableK8SBetaApis() - { - unset($this->enable_k8s_beta_apis); - } - - /** - * Beta APIs Config - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143; - * @param \Google\Cloud\Container\V1\K8sBetaAPIConfig $var - * @return $this - */ - public function setEnableK8SBetaApis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\K8sBetaAPIConfig::class); - $this->enable_k8s_beta_apis = $var; - - return $this; - } - - /** - * GKE Enterprise Configuration. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig enterprise_config = 149; - * @return \Google\Cloud\Container\V1\EnterpriseConfig|null - */ - public function getEnterpriseConfig() - { - return $this->enterprise_config; - } - - public function hasEnterpriseConfig() - { - return isset($this->enterprise_config); - } - - public function clearEnterpriseConfig() - { - unset($this->enterprise_config); - } - - /** - * GKE Enterprise Configuration. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig enterprise_config = 149; - * @param \Google\Cloud\Container\V1\EnterpriseConfig $var - * @return $this - */ - public function setEnterpriseConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\EnterpriseConfig::class); - $this->enterprise_config = $var; - - return $this; - } - - /** - * Secret CSI driver configuration. - * - * Generated from protobuf field .google.container.v1.SecretManagerConfig secret_manager_config = 150; - * @return \Google\Cloud\Container\V1\SecretManagerConfig|null - */ - public function getSecretManagerConfig() - { - return $this->secret_manager_config; - } - - public function hasSecretManagerConfig() - { - return isset($this->secret_manager_config); - } - - public function clearSecretManagerConfig() - { - unset($this->secret_manager_config); - } - - /** - * Secret CSI driver configuration. - * - * Generated from protobuf field .google.container.v1.SecretManagerConfig secret_manager_config = 150; - * @param \Google\Cloud\Container\V1\SecretManagerConfig $var - * @return $this - */ - public function setSecretManagerConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecretManagerConfig::class); - $this->secret_manager_config = $var; - - return $this; - } - - /** - * Enable/Disable Compliance Posture features for the cluster. - * - * Generated from protobuf field .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; - * @return \Google\Cloud\Container\V1\CompliancePostureConfig|null - */ - public function getCompliancePostureConfig() - { - return $this->compliance_posture_config; - } - - public function hasCompliancePostureConfig() - { - return isset($this->compliance_posture_config); - } - - public function clearCompliancePostureConfig() - { - unset($this->compliance_posture_config); - } - - /** - * Enable/Disable Compliance Posture features for the cluster. - * - * Generated from protobuf field .google.container.v1.CompliancePostureConfig compliance_posture_config = 151; - * @param \Google\Cloud\Container\V1\CompliancePostureConfig $var - * @return $this - */ - public function setCompliancePostureConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CompliancePostureConfig::class); - $this->compliance_posture_config = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzs() - { - return isset($this->satisfies_pzs) ? $this->satisfies_pzs : false; - } - - public function hasSatisfiesPzs() - { - return isset($this->satisfies_pzs); - } - - public function clearSatisfiesPzs() - { - unset($this->satisfies_pzs); - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzs = 152 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzi() - { - return isset($this->satisfies_pzi) ? $this->satisfies_pzi : false; - } - - public function hasSatisfiesPzi() - { - return isset($this->satisfies_pzi); - } - - public function clearSatisfiesPzi() - { - unset($this->satisfies_pzi); - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field optional bool satisfies_pzi = 153 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzi($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzi = $var; - - return $this; - } - - /** - * The Custom keys configuration for the cluster. - * - * Generated from protobuf field optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; - * @return \Google\Cloud\Container\V1\UserManagedKeysConfig|null - */ - public function getUserManagedKeysConfig() - { - return $this->user_managed_keys_config; - } - - public function hasUserManagedKeysConfig() - { - return isset($this->user_managed_keys_config); - } - - public function clearUserManagedKeysConfig() - { - unset($this->user_managed_keys_config); - } - - /** - * The Custom keys configuration for the cluster. - * - * Generated from protobuf field optional .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 154; - * @param \Google\Cloud\Container\V1\UserManagedKeysConfig $var - * @return $this - */ - public function setUserManagedKeysConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\UserManagedKeysConfig::class); - $this->user_managed_keys_config = $var; - - return $this; - } - - /** - * RBACBindingConfig allows user to restrict ClusterRoleBindings an - * RoleBindings that can be created. - * - * Generated from protobuf field optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; - * @return \Google\Cloud\Container\V1\RBACBindingConfig|null - */ - public function getRbacBindingConfig() - { - return $this->rbac_binding_config; - } - - public function hasRbacBindingConfig() - { - return isset($this->rbac_binding_config); - } - - public function clearRbacBindingConfig() - { - unset($this->rbac_binding_config); - } - - /** - * RBACBindingConfig allows user to restrict ClusterRoleBindings an - * RoleBindings that can be created. - * - * Generated from protobuf field optional .google.container.v1.RBACBindingConfig rbac_binding_config = 156; - * @param \Google\Cloud\Container\V1\RBACBindingConfig $var - * @return $this - */ - public function setRbacBindingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\RBACBindingConfig::class); - $this->rbac_binding_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php deleted file mode 100644 index c9b3957604fb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Cluster/Status.php +++ /dev/null @@ -1,97 +0,0 @@ -google.container.v1.Cluster.Status - */ -class Status -{ - /** - * Not set. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the cluster is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the cluster has been created and is fully - * usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RECONCILING state indicates that some work is actively being done on - * the cluster, such as upgrading the master or node software. Details can - * be found in the `statusMessage` field. - * - * Generated from protobuf enum RECONCILING = 3; - */ - const RECONCILING = 3; - /** - * The STOPPING state indicates the cluster is being deleted. - * - * Generated from protobuf enum STOPPING = 4; - */ - const STOPPING = 4; - /** - * The ERROR state indicates the cluster is unusable. It will be - * automatically deleted. Details can be found in the `statusMessage` field. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - /** - * The DEGRADED state indicates the cluster requires user action to restore - * full functionality. Details can be found in the `statusMessage` field. - * - * Generated from protobuf enum DEGRADED = 6; - */ - const DEGRADED = 6; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - self::DEGRADED => 'DEGRADED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\Cluster_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php deleted file mode 100644 index 5ca6c015c80b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling.php +++ /dev/null @@ -1,232 +0,0 @@ -google.container.v1.ClusterAutoscaling - */ -class ClusterAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Enables automatic node pool creation and deletion. - * - * Generated from protobuf field bool enable_node_autoprovisioning = 1; - */ - protected $enable_node_autoprovisioning = false; - /** - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * - * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; - */ - private $resource_limits; - /** - * Defines autoscaling behaviour. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - */ - protected $autoscaling_profile = 0; - /** - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * - * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - */ - protected $autoprovisioning_node_pool_defaults = null; - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * - * Generated from protobuf field repeated string autoprovisioning_locations = 5; - */ - private $autoprovisioning_locations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_node_autoprovisioning - * Enables automatic node pool creation and deletion. - * @type array<\Google\Cloud\Container\V1\ResourceLimit>|\Google\Protobuf\Internal\RepeatedField $resource_limits - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * @type int $autoscaling_profile - * Defines autoscaling behaviour. - * @type \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults $autoprovisioning_node_pool_defaults - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * @type array|\Google\Protobuf\Internal\RepeatedField $autoprovisioning_locations - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enables automatic node pool creation and deletion. - * - * Generated from protobuf field bool enable_node_autoprovisioning = 1; - * @return bool - */ - public function getEnableNodeAutoprovisioning() - { - return $this->enable_node_autoprovisioning; - } - - /** - * Enables automatic node pool creation and deletion. - * - * Generated from protobuf field bool enable_node_autoprovisioning = 1; - * @param bool $var - * @return $this - */ - public function setEnableNodeAutoprovisioning($var) - { - GPBUtil::checkBool($var); - $this->enable_node_autoprovisioning = $var; - - return $this; - } - - /** - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * - * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceLimits() - { - return $this->resource_limits; - } - - /** - * Contains global constraints regarding minimum and maximum - * amount of resources in the cluster. - * - * Generated from protobuf field repeated .google.container.v1.ResourceLimit resource_limits = 2; - * @param array<\Google\Cloud\Container\V1\ResourceLimit>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceLimits($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ResourceLimit::class); - $this->resource_limits = $arr; - - return $this; - } - - /** - * Defines autoscaling behaviour. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @return int - */ - public function getAutoscalingProfile() - { - return $this->autoscaling_profile; - } - - /** - * Defines autoscaling behaviour. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling.AutoscalingProfile autoscaling_profile = 3; - * @param int $var - * @return $this - */ - public function setAutoscalingProfile($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ClusterAutoscaling\AutoscalingProfile::class); - $this->autoscaling_profile = $var; - - return $this; - } - - /** - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * - * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @return \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults|null - */ - public function getAutoprovisioningNodePoolDefaults() - { - return $this->autoprovisioning_node_pool_defaults; - } - - public function hasAutoprovisioningNodePoolDefaults() - { - return isset($this->autoprovisioning_node_pool_defaults); - } - - public function clearAutoprovisioningNodePoolDefaults() - { - unset($this->autoprovisioning_node_pool_defaults); - } - - /** - * AutoprovisioningNodePoolDefaults contains defaults for a node pool - * created by NAP. - * - * Generated from protobuf field .google.container.v1.AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; - * @param \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults $var - * @return $this - */ - public function setAutoprovisioningNodePoolDefaults($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AutoprovisioningNodePoolDefaults::class); - $this->autoprovisioning_node_pool_defaults = $var; - - return $this; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * - * Generated from protobuf field repeated string autoprovisioning_locations = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAutoprovisioningLocations() - { - return $this->autoprovisioning_locations; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes can be created by NAP. - * - * Generated from protobuf field repeated string autoprovisioning_locations = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAutoprovisioningLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->autoprovisioning_locations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php deleted file mode 100644 index c749df9997d7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterAutoscaling/AutoscalingProfile.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.ClusterAutoscaling.AutoscalingProfile - */ -class AutoscalingProfile -{ - /** - * No change to autoscaling configuration. - * - * Generated from protobuf enum PROFILE_UNSPECIFIED = 0; - */ - const PROFILE_UNSPECIFIED = 0; - /** - * Prioritize optimizing utilization of resources. - * - * Generated from protobuf enum OPTIMIZE_UTILIZATION = 1; - */ - const OPTIMIZE_UTILIZATION = 1; - /** - * Use default (balanced) autoscaling configuration. - * - * Generated from protobuf enum BALANCED = 2; - */ - const BALANCED = 2; - - private static $valueToName = [ - self::PROFILE_UNSPECIFIED => 'PROFILE_UNSPECIFIED', - self::OPTIMIZE_UTILIZATION => 'OPTIMIZE_UTILIZATION', - self::BALANCED => 'BALANCED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AutoscalingProfile::class, \Google\Cloud\Container\V1\ClusterAutoscaling_AutoscalingProfile::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php deleted file mode 100644 index 6ce484dcd5c3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ClusterUpdate.php +++ /dev/null @@ -1,2974 +0,0 @@ -google.container.v1.ClusterUpdate - */ -class ClusterUpdate extends \Google\Protobuf\Internal\Message -{ - /** - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string desired_node_version = 4; - */ - protected $desired_node_version = ''; - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_monitoring_service = 5; - */ - protected $desired_monitoring_service = ''; - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; - */ - protected $desired_addons_config = null; - /** - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * - * Generated from protobuf field string desired_node_pool_id = 7; - */ - protected $desired_node_pool_id = ''; - /** - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * - * Generated from protobuf field string desired_image_type = 8; - */ - protected $desired_image_type = ''; - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - */ - protected $desired_database_encryption = null; - /** - * Configuration for Workload Identity. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - */ - protected $desired_workload_identity_config = null; - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - */ - protected $desired_mesh_certificates = null; - /** - * Configuration for Shielded Nodes. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - */ - protected $desired_shielded_nodes = null; - /** - * The desired configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - */ - protected $desired_cost_management_config = null; - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; - */ - protected $desired_dns_config = null; - /** - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - */ - protected $desired_node_pool_autoscaling = null; - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string desired_locations = 10; - */ - private $desired_locations; - /** - * The desired configuration options for master authorized networks feature. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config - * instead. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; - * @deprecated - */ - protected $desired_master_authorized_networks_config = null; - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - */ - protected $desired_cluster_autoscaling = null; - /** - * The desired configuration options for the Binary Authorization feature. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - */ - protected $desired_binary_authorization = null; - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_logging_service = 19; - */ - protected $desired_logging_service = ''; - /** - * The desired configuration for exporting resource usage. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - */ - protected $desired_resource_usage_export_config = null; - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - */ - protected $desired_vertical_pod_autoscaling = null; - /** - * The desired private cluster configuration. master_global_access_config is - * the only field that can be changed via this field. - * See also - * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] - * for modifying other fields within - * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.global_access - * instead. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; - * @deprecated - */ - protected $desired_private_cluster_config = null; - /** - * The desired config of Intra-node visibility. - * - * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - */ - protected $desired_intra_node_visibility_config = null; - /** - * The desired status of whether to disable default sNAT for this cluster. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - */ - protected $desired_default_snat_status = null; - /** - * The desired release channel configuration. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; - */ - protected $desired_release_channel = null; - /** - * The desired L4 Internal Load Balancer Subsetting configuration. - * - * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - */ - protected $desired_l4ilb_subsetting_config = null; - /** - * The desired datapath provider for the cluster. - * - * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; - */ - protected $desired_datapath_provider = 0; - /** - * The desired state of IPv6 connectivity to Google Services. - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - */ - protected $desired_private_ipv6_google_access = 0; - /** - * The desired notification configuration. - * - * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; - */ - protected $desired_notification_config = null; - /** - * The desired authenticator groups config for the cluster. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - */ - protected $desired_authenticator_groups_config = null; - /** - * The desired logging configuration. - * - * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; - */ - protected $desired_logging_config = null; - /** - * The desired monitoring configuration. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - */ - protected $desired_monitoring_config = null; - /** - * The desired Identity Service component configuration. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - */ - protected $desired_identity_service_config = null; - /** - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - */ - protected $desired_service_external_ips_config = null; - /** - * Enable/Disable private endpoint for the cluster's master. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint - * instead. Note that the value of enable_public_endpoint is reversed: if - * enable_private_endpoint is false, then enable_public_endpoint will be true. - * - * Generated from protobuf field optional bool desired_enable_private_endpoint = 71 [deprecated = true]; - * @deprecated - */ - protected $desired_enable_private_endpoint = null; - /** - * Override the default setting of whether future created - * nodes have private IP addresses only, namely - * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] - * - * Generated from protobuf field optional bool desired_default_enable_private_nodes = 72; - */ - protected $desired_default_enable_private_nodes = null; - /** - * [Control plane - * endpoints][google.container.v1.Cluster.control_plane_endpoints_config] - * configuration. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; - */ - protected $desired_control_plane_endpoints_config = null; - /** - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string desired_master_version = 100; - */ - protected $desired_master_version = ''; - /** - * The desired GCFS config for the cluster - * - * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; - */ - protected $desired_gcfs_config = null; - /** - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - */ - protected $desired_node_pool_auto_config_network_tags = null; - /** - * The desired config of Gateway API on this cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - */ - protected $desired_gateway_api_config = null; - /** - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 115; - */ - protected $etag = ''; - /** - * The desired node pool logging configuration defaults for the cluster. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - */ - protected $desired_node_pool_logging_config = null; - /** - * The desired fleet configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet desired_fleet = 117; - */ - protected $desired_fleet = null; - /** - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * - * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; - */ - protected $desired_stack_type = 0; - /** - * The additional pod ranges to be added to the cluster. These pod ranges - * can be used by node pools to allocate pod IPs. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - */ - protected $additional_pod_ranges_config = null; - /** - * The additional pod ranges that are to be removed from the cluster. - * The pod ranges specified here must have been specified earlier in the - * 'additional_pod_ranges_config' argument. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - */ - protected $removed_additional_pod_ranges_config = null; - /** - * Kubernetes open source beta apis enabled on the cluster. Only beta apis - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - */ - protected $enable_k8s_beta_apis = null; - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - */ - protected $desired_security_posture_config = null; - /** - * The desired network performance config. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - */ - protected $desired_network_performance_config = null; - /** - * Enable/Disable FQDN Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_fqdn_network_policy = 126; - */ - protected $desired_enable_fqdn_network_policy = null; - /** - * The desired workload policy configuration for the autopilot cluster. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - */ - protected $desired_autopilot_workload_policy_config = null; - /** - * Desired Beta APIs to be enabled for cluster. - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - */ - protected $desired_k8s_beta_apis = null; - /** - * The desired containerd config for the cluster. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig desired_containerd_config = 134; - */ - protected $desired_containerd_config = null; - /** - * Enable/Disable Multi-Networking for the cluster - * - * Generated from protobuf field optional bool desired_enable_multi_networking = 135; - */ - protected $desired_enable_multi_networking = null; - /** - * The desired resource manager tags that apply to all auto-provisioned node - * pools in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - */ - protected $desired_node_pool_auto_config_resource_manager_tags = null; - /** - * Specify the details of in-transit encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - */ - protected $desired_in_transit_encryption_config = null; - /** - * Enable/Disable Cilium Clusterwide Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_cilium_clusterwide_network_policy = 138; - */ - protected $desired_enable_cilium_clusterwide_network_policy = null; - /** - * Enable/Disable Secret Manager Config. - * - * Generated from protobuf field optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; - */ - protected $desired_secret_manager_config = null; - /** - * Enable/Disable Compliance Posture features for the cluster. - * - * Generated from protobuf field optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; - */ - protected $desired_compliance_posture_config = null; - /** - * The desired node kubelet config for the cluster. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; - */ - protected $desired_node_kubelet_config = null; - /** - * The desired node kubelet config for all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; - */ - protected $desired_node_pool_auto_config_kubelet_config = null; - /** - * The Custom keys configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; - */ - protected $user_managed_keys_config = null; - /** - * RBACBindingConfig allows user to restrict ClusterRoleBindings an - * RoleBindings that can be created. - * - * Generated from protobuf field optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; - */ - protected $desired_rbac_binding_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $desired_node_version - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * @type string $desired_monitoring_service - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @type \Google\Cloud\Container\V1\AddonsConfig $desired_addons_config - * Configurations for the various addons available to run in the cluster. - * @type string $desired_node_pool_id - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * @type string $desired_image_type - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * @type \Google\Cloud\Container\V1\DatabaseEncryption $desired_database_encryption - * Configuration of etcd encryption. - * @type \Google\Cloud\Container\V1\WorkloadIdentityConfig $desired_workload_identity_config - * Configuration for Workload Identity. - * @type \Google\Cloud\Container\V1\MeshCertificates $desired_mesh_certificates - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * @type \Google\Cloud\Container\V1\ShieldedNodes $desired_shielded_nodes - * Configuration for Shielded Nodes. - * @type \Google\Cloud\Container\V1\CostManagementConfig $desired_cost_management_config - * The desired configuration for the fine-grained cost management feature. - * @type \Google\Cloud\Container\V1\DNSConfig $desired_dns_config - * DNSConfig contains clusterDNS config for this cluster. - * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $desired_node_pool_autoscaling - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * @type array|\Google\Protobuf\Internal\RepeatedField $desired_locations - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $desired_master_authorized_networks_config - * The desired configuration options for master authorized networks feature. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config - * instead. - * @type \Google\Cloud\Container\V1\ClusterAutoscaling $desired_cluster_autoscaling - * Cluster-level autoscaling configuration. - * @type \Google\Cloud\Container\V1\BinaryAuthorization $desired_binary_authorization - * The desired configuration options for the Binary Authorization feature. - * @type string $desired_logging_service - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig $desired_resource_usage_export_config - * The desired configuration for exporting resource usage. - * @type \Google\Cloud\Container\V1\VerticalPodAutoscaling $desired_vertical_pod_autoscaling - * Cluster-level Vertical Pod Autoscaling configuration. - * @type \Google\Cloud\Container\V1\PrivateClusterConfig $desired_private_cluster_config - * The desired private cluster configuration. master_global_access_config is - * the only field that can be changed via this field. - * See also - * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] - * for modifying other fields within - * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.global_access - * instead. - * @type \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $desired_intra_node_visibility_config - * The desired config of Intra-node visibility. - * @type \Google\Cloud\Container\V1\DefaultSnatStatus $desired_default_snat_status - * The desired status of whether to disable default sNAT for this cluster. - * @type \Google\Cloud\Container\V1\ReleaseChannel $desired_release_channel - * The desired release channel configuration. - * @type \Google\Cloud\Container\V1\ILBSubsettingConfig $desired_l4ilb_subsetting_config - * The desired L4 Internal Load Balancer Subsetting configuration. - * @type int $desired_datapath_provider - * The desired datapath provider for the cluster. - * @type int $desired_private_ipv6_google_access - * The desired state of IPv6 connectivity to Google Services. - * @type \Google\Cloud\Container\V1\NotificationConfig $desired_notification_config - * The desired notification configuration. - * @type \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $desired_authenticator_groups_config - * The desired authenticator groups config for the cluster. - * @type \Google\Cloud\Container\V1\LoggingConfig $desired_logging_config - * The desired logging configuration. - * @type \Google\Cloud\Container\V1\MonitoringConfig $desired_monitoring_config - * The desired monitoring configuration. - * @type \Google\Cloud\Container\V1\IdentityServiceConfig $desired_identity_service_config - * The desired Identity Service component configuration. - * @type \Google\Cloud\Container\V1\ServiceExternalIPsConfig $desired_service_external_ips_config - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * @type bool $desired_enable_private_endpoint - * Enable/Disable private endpoint for the cluster's master. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint - * instead. Note that the value of enable_public_endpoint is reversed: if - * enable_private_endpoint is false, then enable_public_endpoint will be true. - * @type bool $desired_default_enable_private_nodes - * Override the default setting of whether future created - * nodes have private IP addresses only, namely - * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] - * @type \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig $desired_control_plane_endpoints_config - * [Control plane - * endpoints][google.container.v1.Cluster.control_plane_endpoints_config] - * configuration. - * @type string $desired_master_version - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * @type \Google\Cloud\Container\V1\GcfsConfig $desired_gcfs_config - * The desired GCFS config for the cluster - * @type \Google\Cloud\Container\V1\NetworkTags $desired_node_pool_auto_config_network_tags - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * @type \Google\Cloud\Container\V1\GatewayAPIConfig $desired_gateway_api_config - * The desired config of Gateway API on this cluster. - * @type string $etag - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $desired_node_pool_logging_config - * The desired node pool logging configuration defaults for the cluster. - * @type \Google\Cloud\Container\V1\Fleet $desired_fleet - * The desired fleet configuration for the cluster. - * @type int $desired_stack_type - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * @type \Google\Cloud\Container\V1\AdditionalPodRangesConfig $additional_pod_ranges_config - * The additional pod ranges to be added to the cluster. These pod ranges - * can be used by node pools to allocate pod IPs. - * @type \Google\Cloud\Container\V1\AdditionalPodRangesConfig $removed_additional_pod_ranges_config - * The additional pod ranges that are to be removed from the cluster. - * The pod ranges specified here must have been specified earlier in the - * 'additional_pod_ranges_config' argument. - * @type \Google\Cloud\Container\V1\K8sBetaAPIConfig $enable_k8s_beta_apis - * Kubernetes open source beta apis enabled on the cluster. Only beta apis - * @type \Google\Cloud\Container\V1\SecurityPostureConfig $desired_security_posture_config - * Enable/Disable Security Posture API features for the cluster. - * @type \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $desired_network_performance_config - * The desired network performance config. - * @type bool $desired_enable_fqdn_network_policy - * Enable/Disable FQDN Network Policy for the cluster. - * @type \Google\Cloud\Container\V1\WorkloadPolicyConfig $desired_autopilot_workload_policy_config - * The desired workload policy configuration for the autopilot cluster. - * @type \Google\Cloud\Container\V1\K8sBetaAPIConfig $desired_k8s_beta_apis - * Desired Beta APIs to be enabled for cluster. - * @type \Google\Cloud\Container\V1\ContainerdConfig $desired_containerd_config - * The desired containerd config for the cluster. - * @type bool $desired_enable_multi_networking - * Enable/Disable Multi-Networking for the cluster - * @type \Google\Cloud\Container\V1\ResourceManagerTags $desired_node_pool_auto_config_resource_manager_tags - * The desired resource manager tags that apply to all auto-provisioned node - * pools in autopilot clusters and node auto-provisioning enabled clusters. - * @type int $desired_in_transit_encryption_config - * Specify the details of in-transit encryption. - * @type bool $desired_enable_cilium_clusterwide_network_policy - * Enable/Disable Cilium Clusterwide Network Policy for the cluster. - * @type \Google\Cloud\Container\V1\SecretManagerConfig $desired_secret_manager_config - * Enable/Disable Secret Manager Config. - * @type \Google\Cloud\Container\V1\CompliancePostureConfig $desired_compliance_posture_config - * Enable/Disable Compliance Posture features for the cluster. - * @type \Google\Cloud\Container\V1\NodeKubeletConfig $desired_node_kubelet_config - * The desired node kubelet config for the cluster. - * @type \Google\Cloud\Container\V1\NodeKubeletConfig $desired_node_pool_auto_config_kubelet_config - * The desired node kubelet config for all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * @type \Google\Cloud\Container\V1\UserManagedKeysConfig $user_managed_keys_config - * The Custom keys configuration for the cluster. - * @type \Google\Cloud\Container\V1\RBACBindingConfig $desired_rbac_binding_config - * RBACBindingConfig allows user to restrict ClusterRoleBindings an - * RoleBindings that can be created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string desired_node_version = 4; - * @return string - */ - public function getDesiredNodeVersion() - { - return $this->desired_node_version; - } - - /** - * The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string desired_node_version = 4; - * @param string $var - * @return $this - */ - public function setDesiredNodeVersion($var) - { - GPBUtil::checkString($var, True); - $this->desired_node_version = $var; - - return $this; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_monitoring_service = 5; - * @return string - */ - public function getDesiredMonitoringService() - { - return $this->desired_monitoring_service; - } - - /** - * The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_monitoring_service = 5; - * @param string $var - * @return $this - */ - public function setDesiredMonitoringService($var) - { - GPBUtil::checkString($var, True); - $this->desired_monitoring_service = $var; - - return $this; - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; - * @return \Google\Cloud\Container\V1\AddonsConfig|null - */ - public function getDesiredAddonsConfig() - { - return $this->desired_addons_config; - } - - public function hasDesiredAddonsConfig() - { - return isset($this->desired_addons_config); - } - - public function clearDesiredAddonsConfig() - { - unset($this->desired_addons_config); - } - - /** - * Configurations for the various addons available to run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig desired_addons_config = 6; - * @param \Google\Cloud\Container\V1\AddonsConfig $var - * @return $this - */ - public function setDesiredAddonsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); - $this->desired_addons_config = $var; - - return $this; - } - - /** - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * - * Generated from protobuf field string desired_node_pool_id = 7; - * @return string - */ - public function getDesiredNodePoolId() - { - return $this->desired_node_pool_id; - } - - /** - * The node pool to be upgraded. This field is mandatory if - * "desired_node_version", "desired_image_family" or - * "desired_node_pool_autoscaling" is specified and there is more than one - * node pool on the cluster. - * - * Generated from protobuf field string desired_node_pool_id = 7; - * @param string $var - * @return $this - */ - public function setDesiredNodePoolId($var) - { - GPBUtil::checkString($var, True); - $this->desired_node_pool_id = $var; - - return $this; - } - - /** - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * - * Generated from protobuf field string desired_image_type = 8; - * @return string - */ - public function getDesiredImageType() - { - return $this->desired_image_type; - } - - /** - * The desired image type for the node pool. - * NOTE: Set the "desired_node_pool" field as well. - * - * Generated from protobuf field string desired_image_type = 8; - * @param string $var - * @return $this - */ - public function setDesiredImageType($var) - { - GPBUtil::checkString($var, True); - $this->desired_image_type = $var; - - return $this; - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * @return \Google\Cloud\Container\V1\DatabaseEncryption|null - */ - public function getDesiredDatabaseEncryption() - { - return $this->desired_database_encryption; - } - - public function hasDesiredDatabaseEncryption() - { - return isset($this->desired_database_encryption); - } - - public function clearDesiredDatabaseEncryption() - { - unset($this->desired_database_encryption); - } - - /** - * Configuration of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption desired_database_encryption = 46; - * @param \Google\Cloud\Container\V1\DatabaseEncryption $var - * @return $this - */ - public function setDesiredDatabaseEncryption($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DatabaseEncryption::class); - $this->desired_database_encryption = $var; - - return $this; - } - - /** - * Configuration for Workload Identity. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @return \Google\Cloud\Container\V1\WorkloadIdentityConfig|null - */ - public function getDesiredWorkloadIdentityConfig() - { - return $this->desired_workload_identity_config; - } - - public function hasDesiredWorkloadIdentityConfig() - { - return isset($this->desired_workload_identity_config); - } - - public function clearDesiredWorkloadIdentityConfig() - { - unset($this->desired_workload_identity_config); - } - - /** - * Configuration for Workload Identity. - * - * Generated from protobuf field .google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47; - * @param \Google\Cloud\Container\V1\WorkloadIdentityConfig $var - * @return $this - */ - public function setDesiredWorkloadIdentityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadIdentityConfig::class); - $this->desired_workload_identity_config = $var; - - return $this; - } - - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * @return \Google\Cloud\Container\V1\MeshCertificates|null - */ - public function getDesiredMeshCertificates() - { - return $this->desired_mesh_certificates; - } - - public function hasDesiredMeshCertificates() - { - return isset($this->desired_mesh_certificates); - } - - public function clearDesiredMeshCertificates() - { - unset($this->desired_mesh_certificates); - } - - /** - * Configuration for issuance of mTLS keys and certificates to Kubernetes - * pods. - * - * Generated from protobuf field .google.container.v1.MeshCertificates desired_mesh_certificates = 67; - * @param \Google\Cloud\Container\V1\MeshCertificates $var - * @return $this - */ - public function setDesiredMeshCertificates($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MeshCertificates::class); - $this->desired_mesh_certificates = $var; - - return $this; - } - - /** - * Configuration for Shielded Nodes. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * @return \Google\Cloud\Container\V1\ShieldedNodes|null - */ - public function getDesiredShieldedNodes() - { - return $this->desired_shielded_nodes; - } - - public function hasDesiredShieldedNodes() - { - return isset($this->desired_shielded_nodes); - } - - public function clearDesiredShieldedNodes() - { - unset($this->desired_shielded_nodes); - } - - /** - * Configuration for Shielded Nodes. - * - * Generated from protobuf field .google.container.v1.ShieldedNodes desired_shielded_nodes = 48; - * @param \Google\Cloud\Container\V1\ShieldedNodes $var - * @return $this - */ - public function setDesiredShieldedNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedNodes::class); - $this->desired_shielded_nodes = $var; - - return $this; - } - - /** - * The desired configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * @return \Google\Cloud\Container\V1\CostManagementConfig|null - */ - public function getDesiredCostManagementConfig() - { - return $this->desired_cost_management_config; - } - - public function hasDesiredCostManagementConfig() - { - return isset($this->desired_cost_management_config); - } - - public function clearDesiredCostManagementConfig() - { - unset($this->desired_cost_management_config); - } - - /** - * The desired configuration for the fine-grained cost management feature. - * - * Generated from protobuf field .google.container.v1.CostManagementConfig desired_cost_management_config = 49; - * @param \Google\Cloud\Container\V1\CostManagementConfig $var - * @return $this - */ - public function setDesiredCostManagementConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CostManagementConfig::class); - $this->desired_cost_management_config = $var; - - return $this; - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; - * @return \Google\Cloud\Container\V1\DNSConfig|null - */ - public function getDesiredDnsConfig() - { - return $this->desired_dns_config; - } - - public function hasDesiredDnsConfig() - { - return isset($this->desired_dns_config); - } - - public function clearDesiredDnsConfig() - { - unset($this->desired_dns_config); - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig desired_dns_config = 53; - * @param \Google\Cloud\Container\V1\DNSConfig $var - * @return $this - */ - public function setDesiredDnsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DNSConfig::class); - $this->desired_dns_config = $var; - - return $this; - } - - /** - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null - */ - public function getDesiredNodePoolAutoscaling() - { - return $this->desired_node_pool_autoscaling; - } - - public function hasDesiredNodePoolAutoscaling() - { - return isset($this->desired_node_pool_autoscaling); - } - - public function clearDesiredNodePoolAutoscaling() - { - unset($this->desired_node_pool_autoscaling); - } - - /** - * Autoscaler configuration for the node pool specified in - * desired_node_pool_id. If there is only one pool in the - * cluster and desired_node_pool_id is not provided then - * the change applies to that single node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; - * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var - * @return $this - */ - public function setDesiredNodePoolAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); - $this->desired_node_pool_autoscaling = $var; - - return $this; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string desired_locations = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDesiredLocations() - { - return $this->desired_locations; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. - * This list must always include the cluster's primary zone. - * Warning: changing cluster locations will update the locations of all node - * pools and will result in nodes being added and/or removed. - * - * Generated from protobuf field repeated string desired_locations = 10; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDesiredLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->desired_locations = $arr; - - return $this; - } - - /** - * The desired configuration options for master authorized networks feature. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config - * instead. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; - * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null - * @deprecated - */ - public function getDesiredMasterAuthorizedNetworksConfig() - { - @trigger_error('desired_master_authorized_networks_config is deprecated.', E_USER_DEPRECATED); - return $this->desired_master_authorized_networks_config; - } - - public function hasDesiredMasterAuthorizedNetworksConfig() - { - @trigger_error('desired_master_authorized_networks_config is deprecated.', E_USER_DEPRECATED); - return isset($this->desired_master_authorized_networks_config); - } - - public function clearDesiredMasterAuthorizedNetworksConfig() - { - @trigger_error('desired_master_authorized_networks_config is deprecated.', E_USER_DEPRECATED); - unset($this->desired_master_authorized_networks_config); - } - - /** - * The desired configuration options for master authorized networks feature. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.authorized_networks_config - * instead. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12 [deprecated = true]; - * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var - * @return $this - * @deprecated - */ - public function setDesiredMasterAuthorizedNetworksConfig($var) - { - @trigger_error('desired_master_authorized_networks_config is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); - $this->desired_master_authorized_networks_config = $var; - - return $this; - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @return \Google\Cloud\Container\V1\ClusterAutoscaling|null - */ - public function getDesiredClusterAutoscaling() - { - return $this->desired_cluster_autoscaling; - } - - public function hasDesiredClusterAutoscaling() - { - return isset($this->desired_cluster_autoscaling); - } - - public function clearDesiredClusterAutoscaling() - { - unset($this->desired_cluster_autoscaling); - } - - /** - * Cluster-level autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; - * @param \Google\Cloud\Container\V1\ClusterAutoscaling $var - * @return $this - */ - public function setDesiredClusterAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterAutoscaling::class); - $this->desired_cluster_autoscaling = $var; - - return $this; - } - - /** - * The desired configuration options for the Binary Authorization feature. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * @return \Google\Cloud\Container\V1\BinaryAuthorization|null - */ - public function getDesiredBinaryAuthorization() - { - return $this->desired_binary_authorization; - } - - public function hasDesiredBinaryAuthorization() - { - return isset($this->desired_binary_authorization); - } - - public function clearDesiredBinaryAuthorization() - { - unset($this->desired_binary_authorization); - } - - /** - * The desired configuration options for the Binary Authorization feature. - * - * Generated from protobuf field .google.container.v1.BinaryAuthorization desired_binary_authorization = 16; - * @param \Google\Cloud\Container\V1\BinaryAuthorization $var - * @return $this - */ - public function setDesiredBinaryAuthorization($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BinaryAuthorization::class); - $this->desired_binary_authorization = $var; - - return $this; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_logging_service = 19; - * @return string - */ - public function getDesiredLoggingService() - { - return $this->desired_logging_service; - } - - /** - * The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string desired_logging_service = 19; - * @param string $var - * @return $this - */ - public function setDesiredLoggingService($var) - { - GPBUtil::checkString($var, True); - $this->desired_logging_service = $var; - - return $this; - } - - /** - * The desired configuration for exporting resource usage. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig|null - */ - public function getDesiredResourceUsageExportConfig() - { - return $this->desired_resource_usage_export_config; - } - - public function hasDesiredResourceUsageExportConfig() - { - return isset($this->desired_resource_usage_export_config); - } - - public function clearDesiredResourceUsageExportConfig() - { - unset($this->desired_resource_usage_export_config); - } - - /** - * The desired configuration for exporting resource usage. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21; - * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig $var - * @return $this - */ - public function setDesiredResourceUsageExportConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig::class); - $this->desired_resource_usage_export_config = $var; - - return $this; - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @return \Google\Cloud\Container\V1\VerticalPodAutoscaling|null - */ - public function getDesiredVerticalPodAutoscaling() - { - return $this->desired_vertical_pod_autoscaling; - } - - public function hasDesiredVerticalPodAutoscaling() - { - return isset($this->desired_vertical_pod_autoscaling); - } - - public function clearDesiredVerticalPodAutoscaling() - { - unset($this->desired_vertical_pod_autoscaling); - } - - /** - * Cluster-level Vertical Pod Autoscaling configuration. - * - * Generated from protobuf field .google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; - * @param \Google\Cloud\Container\V1\VerticalPodAutoscaling $var - * @return $this - */ - public function setDesiredVerticalPodAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VerticalPodAutoscaling::class); - $this->desired_vertical_pod_autoscaling = $var; - - return $this; - } - - /** - * The desired private cluster configuration. master_global_access_config is - * the only field that can be changed via this field. - * See also - * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] - * for modifying other fields within - * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.global_access - * instead. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; - * @return \Google\Cloud\Container\V1\PrivateClusterConfig|null - * @deprecated - */ - public function getDesiredPrivateClusterConfig() - { - @trigger_error('desired_private_cluster_config is deprecated.', E_USER_DEPRECATED); - return $this->desired_private_cluster_config; - } - - public function hasDesiredPrivateClusterConfig() - { - @trigger_error('desired_private_cluster_config is deprecated.', E_USER_DEPRECATED); - return isset($this->desired_private_cluster_config); - } - - public function clearDesiredPrivateClusterConfig() - { - @trigger_error('desired_private_cluster_config is deprecated.', E_USER_DEPRECATED); - unset($this->desired_private_cluster_config); - } - - /** - * The desired private cluster configuration. master_global_access_config is - * the only field that can be changed via this field. - * See also - * [ClusterUpdate.desired_enable_private_endpoint][google.container.v1.ClusterUpdate.desired_enable_private_endpoint] - * for modifying other fields within - * [PrivateClusterConfig][google.container.v1.PrivateClusterConfig]. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.global_access - * instead. - * - * Generated from protobuf field .google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25 [deprecated = true]; - * @param \Google\Cloud\Container\V1\PrivateClusterConfig $var - * @return $this - * @deprecated - */ - public function setDesiredPrivateClusterConfig($var) - { - @trigger_error('desired_private_cluster_config is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterConfig::class); - $this->desired_private_cluster_config = $var; - - return $this; - } - - /** - * The desired config of Intra-node visibility. - * - * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @return \Google\Cloud\Container\V1\IntraNodeVisibilityConfig|null - */ - public function getDesiredIntraNodeVisibilityConfig() - { - return $this->desired_intra_node_visibility_config; - } - - public function hasDesiredIntraNodeVisibilityConfig() - { - return isset($this->desired_intra_node_visibility_config); - } - - public function clearDesiredIntraNodeVisibilityConfig() - { - unset($this->desired_intra_node_visibility_config); - } - - /** - * The desired config of Intra-node visibility. - * - * Generated from protobuf field .google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; - * @param \Google\Cloud\Container\V1\IntraNodeVisibilityConfig $var - * @return $this - */ - public function setDesiredIntraNodeVisibilityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IntraNodeVisibilityConfig::class); - $this->desired_intra_node_visibility_config = $var; - - return $this; - } - - /** - * The desired status of whether to disable default sNAT for this cluster. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * @return \Google\Cloud\Container\V1\DefaultSnatStatus|null - */ - public function getDesiredDefaultSnatStatus() - { - return $this->desired_default_snat_status; - } - - public function hasDesiredDefaultSnatStatus() - { - return isset($this->desired_default_snat_status); - } - - public function clearDesiredDefaultSnatStatus() - { - unset($this->desired_default_snat_status); - } - - /** - * The desired status of whether to disable default sNAT for this cluster. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus desired_default_snat_status = 28; - * @param \Google\Cloud\Container\V1\DefaultSnatStatus $var - * @return $this - */ - public function setDesiredDefaultSnatStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DefaultSnatStatus::class); - $this->desired_default_snat_status = $var; - - return $this; - } - - /** - * The desired release channel configuration. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; - * @return \Google\Cloud\Container\V1\ReleaseChannel|null - */ - public function getDesiredReleaseChannel() - { - return $this->desired_release_channel; - } - - public function hasDesiredReleaseChannel() - { - return isset($this->desired_release_channel); - } - - public function clearDesiredReleaseChannel() - { - unset($this->desired_release_channel); - } - - /** - * The desired release channel configuration. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel desired_release_channel = 31; - * @param \Google\Cloud\Container\V1\ReleaseChannel $var - * @return $this - */ - public function setDesiredReleaseChannel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); - $this->desired_release_channel = $var; - - return $this; - } - - /** - * The desired L4 Internal Load Balancer Subsetting configuration. - * - * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * @return \Google\Cloud\Container\V1\ILBSubsettingConfig|null - */ - public function getDesiredL4IlbSubsettingConfig() - { - return $this->desired_l4ilb_subsetting_config; - } - - public function hasDesiredL4IlbSubsettingConfig() - { - return isset($this->desired_l4ilb_subsetting_config); - } - - public function clearDesiredL4IlbSubsettingConfig() - { - unset($this->desired_l4ilb_subsetting_config); - } - - /** - * The desired L4 Internal Load Balancer Subsetting configuration. - * - * Generated from protobuf field .google.container.v1.ILBSubsettingConfig desired_l4ilb_subsetting_config = 39; - * @param \Google\Cloud\Container\V1\ILBSubsettingConfig $var - * @return $this - */ - public function setDesiredL4IlbSubsettingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ILBSubsettingConfig::class); - $this->desired_l4ilb_subsetting_config = $var; - - return $this; - } - - /** - * The desired datapath provider for the cluster. - * - * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @return int - */ - public function getDesiredDatapathProvider() - { - return $this->desired_datapath_provider; - } - - /** - * The desired datapath provider for the cluster. - * - * Generated from protobuf field .google.container.v1.DatapathProvider desired_datapath_provider = 50; - * @param int $var - * @return $this - */ - public function setDesiredDatapathProvider($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatapathProvider::class); - $this->desired_datapath_provider = $var; - - return $this; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @return int - */ - public function getDesiredPrivateIpv6GoogleAccess() - { - return $this->desired_private_ipv6_google_access; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess desired_private_ipv6_google_access = 51; - * @param int $var - * @return $this - */ - public function setDesiredPrivateIpv6GoogleAccess($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\PrivateIPv6GoogleAccess::class); - $this->desired_private_ipv6_google_access = $var; - - return $this; - } - - /** - * The desired notification configuration. - * - * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; - * @return \Google\Cloud\Container\V1\NotificationConfig|null - */ - public function getDesiredNotificationConfig() - { - return $this->desired_notification_config; - } - - public function hasDesiredNotificationConfig() - { - return isset($this->desired_notification_config); - } - - public function clearDesiredNotificationConfig() - { - unset($this->desired_notification_config); - } - - /** - * The desired notification configuration. - * - * Generated from protobuf field .google.container.v1.NotificationConfig desired_notification_config = 55; - * @param \Google\Cloud\Container\V1\NotificationConfig $var - * @return $this - */ - public function setDesiredNotificationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig::class); - $this->desired_notification_config = $var; - - return $this; - } - - /** - * The desired authenticator groups config for the cluster. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * @return \Google\Cloud\Container\V1\AuthenticatorGroupsConfig|null - */ - public function getDesiredAuthenticatorGroupsConfig() - { - return $this->desired_authenticator_groups_config; - } - - public function hasDesiredAuthenticatorGroupsConfig() - { - return isset($this->desired_authenticator_groups_config); - } - - public function clearDesiredAuthenticatorGroupsConfig() - { - unset($this->desired_authenticator_groups_config); - } - - /** - * The desired authenticator groups config for the cluster. - * - * Generated from protobuf field .google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63; - * @param \Google\Cloud\Container\V1\AuthenticatorGroupsConfig $var - * @return $this - */ - public function setDesiredAuthenticatorGroupsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AuthenticatorGroupsConfig::class); - $this->desired_authenticator_groups_config = $var; - - return $this; - } - - /** - * The desired logging configuration. - * - * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; - * @return \Google\Cloud\Container\V1\LoggingConfig|null - */ - public function getDesiredLoggingConfig() - { - return $this->desired_logging_config; - } - - public function hasDesiredLoggingConfig() - { - return isset($this->desired_logging_config); - } - - public function clearDesiredLoggingConfig() - { - unset($this->desired_logging_config); - } - - /** - * The desired logging configuration. - * - * Generated from protobuf field .google.container.v1.LoggingConfig desired_logging_config = 64; - * @param \Google\Cloud\Container\V1\LoggingConfig $var - * @return $this - */ - public function setDesiredLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingConfig::class); - $this->desired_logging_config = $var; - - return $this; - } - - /** - * The desired monitoring configuration. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * @return \Google\Cloud\Container\V1\MonitoringConfig|null - */ - public function getDesiredMonitoringConfig() - { - return $this->desired_monitoring_config; - } - - public function hasDesiredMonitoringConfig() - { - return isset($this->desired_monitoring_config); - } - - public function clearDesiredMonitoringConfig() - { - unset($this->desired_monitoring_config); - } - - /** - * The desired monitoring configuration. - * - * Generated from protobuf field .google.container.v1.MonitoringConfig desired_monitoring_config = 65; - * @param \Google\Cloud\Container\V1\MonitoringConfig $var - * @return $this - */ - public function setDesiredMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringConfig::class); - $this->desired_monitoring_config = $var; - - return $this; - } - - /** - * The desired Identity Service component configuration. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * @return \Google\Cloud\Container\V1\IdentityServiceConfig|null - */ - public function getDesiredIdentityServiceConfig() - { - return $this->desired_identity_service_config; - } - - public function hasDesiredIdentityServiceConfig() - { - return isset($this->desired_identity_service_config); - } - - public function clearDesiredIdentityServiceConfig() - { - unset($this->desired_identity_service_config); - } - - /** - * The desired Identity Service component configuration. - * - * Generated from protobuf field .google.container.v1.IdentityServiceConfig desired_identity_service_config = 66; - * @param \Google\Cloud\Container\V1\IdentityServiceConfig $var - * @return $this - */ - public function setDesiredIdentityServiceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\IdentityServiceConfig::class); - $this->desired_identity_service_config = $var; - - return $this; - } - - /** - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * @return \Google\Cloud\Container\V1\ServiceExternalIPsConfig|null - */ - public function getDesiredServiceExternalIpsConfig() - { - return $this->desired_service_external_ips_config; - } - - public function hasDesiredServiceExternalIpsConfig() - { - return isset($this->desired_service_external_ips_config); - } - - public function clearDesiredServiceExternalIpsConfig() - { - unset($this->desired_service_external_ips_config); - } - - /** - * ServiceExternalIPsConfig specifies the config for the use of Services with - * ExternalIPs field. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig desired_service_external_ips_config = 60; - * @param \Google\Cloud\Container\V1\ServiceExternalIPsConfig $var - * @return $this - */ - public function setDesiredServiceExternalIpsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ServiceExternalIPsConfig::class); - $this->desired_service_external_ips_config = $var; - - return $this; - } - - /** - * Enable/Disable private endpoint for the cluster's master. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint - * instead. Note that the value of enable_public_endpoint is reversed: if - * enable_private_endpoint is false, then enable_public_endpoint will be true. - * - * Generated from protobuf field optional bool desired_enable_private_endpoint = 71 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getDesiredEnablePrivateEndpoint() - { - @trigger_error('desired_enable_private_endpoint is deprecated.', E_USER_DEPRECATED); - return isset($this->desired_enable_private_endpoint) ? $this->desired_enable_private_endpoint : false; - } - - public function hasDesiredEnablePrivateEndpoint() - { - @trigger_error('desired_enable_private_endpoint is deprecated.', E_USER_DEPRECATED); - return isset($this->desired_enable_private_endpoint); - } - - public function clearDesiredEnablePrivateEndpoint() - { - @trigger_error('desired_enable_private_endpoint is deprecated.', E_USER_DEPRECATED); - unset($this->desired_enable_private_endpoint); - } - - /** - * Enable/Disable private endpoint for the cluster's master. - * Deprecated: Use - * desired_control_plane_endpoints_config.ip_endpoints_config.enable_public_endpoint - * instead. Note that the value of enable_public_endpoint is reversed: if - * enable_private_endpoint is false, then enable_public_endpoint will be true. - * - * Generated from protobuf field optional bool desired_enable_private_endpoint = 71 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setDesiredEnablePrivateEndpoint($var) - { - @trigger_error('desired_enable_private_endpoint is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->desired_enable_private_endpoint = $var; - - return $this; - } - - /** - * Override the default setting of whether future created - * nodes have private IP addresses only, namely - * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] - * - * Generated from protobuf field optional bool desired_default_enable_private_nodes = 72; - * @return bool - */ - public function getDesiredDefaultEnablePrivateNodes() - { - return isset($this->desired_default_enable_private_nodes) ? $this->desired_default_enable_private_nodes : false; - } - - public function hasDesiredDefaultEnablePrivateNodes() - { - return isset($this->desired_default_enable_private_nodes); - } - - public function clearDesiredDefaultEnablePrivateNodes() - { - unset($this->desired_default_enable_private_nodes); - } - - /** - * Override the default setting of whether future created - * nodes have private IP addresses only, namely - * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] - * - * Generated from protobuf field optional bool desired_default_enable_private_nodes = 72; - * @param bool $var - * @return $this - */ - public function setDesiredDefaultEnablePrivateNodes($var) - { - GPBUtil::checkBool($var); - $this->desired_default_enable_private_nodes = $var; - - return $this; - } - - /** - * [Control plane - * endpoints][google.container.v1.Cluster.control_plane_endpoints_config] - * configuration. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; - * @return \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig|null - */ - public function getDesiredControlPlaneEndpointsConfig() - { - return $this->desired_control_plane_endpoints_config; - } - - public function hasDesiredControlPlaneEndpointsConfig() - { - return isset($this->desired_control_plane_endpoints_config); - } - - public function clearDesiredControlPlaneEndpointsConfig() - { - unset($this->desired_control_plane_endpoints_config); - } - - /** - * [Control plane - * endpoints][google.container.v1.Cluster.control_plane_endpoints_config] - * configuration. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig desired_control_plane_endpoints_config = 73; - * @param \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig $var - * @return $this - */ - public function setDesiredControlPlaneEndpointsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig::class); - $this->desired_control_plane_endpoints_config = $var; - - return $this; - } - - /** - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string desired_master_version = 100; - * @return string - */ - public function getDesiredMasterVersion() - { - return $this->desired_master_version; - } - - /** - * The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by - * Kubernetes Engine or version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string desired_master_version = 100; - * @param string $var - * @return $this - */ - public function setDesiredMasterVersion($var) - { - GPBUtil::checkString($var, True); - $this->desired_master_version = $var; - - return $this; - } - - /** - * The desired GCFS config for the cluster - * - * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getDesiredGcfsConfig() - { - return $this->desired_gcfs_config; - } - - public function hasDesiredGcfsConfig() - { - return isset($this->desired_gcfs_config); - } - - public function clearDesiredGcfsConfig() - { - unset($this->desired_gcfs_config); - } - - /** - * The desired GCFS config for the cluster - * - * Generated from protobuf field .google.container.v1.GcfsConfig desired_gcfs_config = 109; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setDesiredGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->desired_gcfs_config = $var; - - return $this; - } - - /** - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * @return \Google\Cloud\Container\V1\NetworkTags|null - */ - public function getDesiredNodePoolAutoConfigNetworkTags() - { - return $this->desired_node_pool_auto_config_network_tags; - } - - public function hasDesiredNodePoolAutoConfigNetworkTags() - { - return isset($this->desired_node_pool_auto_config_network_tags); - } - - public function clearDesiredNodePoolAutoConfigNetworkTags() - { - unset($this->desired_node_pool_auto_config_network_tags); - } - - /** - * The desired network tags that apply to all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NetworkTags desired_node_pool_auto_config_network_tags = 110; - * @param \Google\Cloud\Container\V1\NetworkTags $var - * @return $this - */ - public function setDesiredNodePoolAutoConfigNetworkTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); - $this->desired_node_pool_auto_config_network_tags = $var; - - return $this; - } - - /** - * The desired config of Gateway API on this cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * @return \Google\Cloud\Container\V1\GatewayAPIConfig|null - */ - public function getDesiredGatewayApiConfig() - { - return $this->desired_gateway_api_config; - } - - public function hasDesiredGatewayApiConfig() - { - return isset($this->desired_gateway_api_config); - } - - public function clearDesiredGatewayApiConfig() - { - unset($this->desired_gateway_api_config); - } - - /** - * The desired config of Gateway API on this cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig desired_gateway_api_config = 114; - * @param \Google\Cloud\Container\V1\GatewayAPIConfig $var - * @return $this - */ - public function setDesiredGatewayApiConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GatewayAPIConfig::class); - $this->desired_gateway_api_config = $var; - - return $this; - } - - /** - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 115; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the cluster. - * If an etag is provided and does not match the current etag of the cluster, - * update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 115; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * The desired node pool logging configuration defaults for the cluster. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getDesiredNodePoolLoggingConfig() - { - return $this->desired_node_pool_logging_config; - } - - public function hasDesiredNodePoolLoggingConfig() - { - return isset($this->desired_node_pool_logging_config); - } - - public function clearDesiredNodePoolLoggingConfig() - { - unset($this->desired_node_pool_logging_config); - } - - /** - * The desired node pool logging configuration defaults for the cluster. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig desired_node_pool_logging_config = 116; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setDesiredNodePoolLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->desired_node_pool_logging_config = $var; - - return $this; - } - - /** - * The desired fleet configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet desired_fleet = 117; - * @return \Google\Cloud\Container\V1\Fleet|null - */ - public function getDesiredFleet() - { - return $this->desired_fleet; - } - - public function hasDesiredFleet() - { - return isset($this->desired_fleet); - } - - public function clearDesiredFleet() - { - unset($this->desired_fleet); - } - - /** - * The desired fleet configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.Fleet desired_fleet = 117; - * @param \Google\Cloud\Container\V1\Fleet $var - * @return $this - */ - public function setDesiredFleet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Fleet::class); - $this->desired_fleet = $var; - - return $this; - } - - /** - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * - * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; - * @return int - */ - public function getDesiredStackType() - { - return $this->desired_stack_type; - } - - /** - * The desired stack type of the cluster. - * If a stack type is provided and does not match the current stack type of - * the cluster, update will attempt to change the stack type to the new type. - * - * Generated from protobuf field .google.container.v1.StackType desired_stack_type = 119; - * @param int $var - * @return $this - */ - public function setDesiredStackType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StackType::class); - $this->desired_stack_type = $var; - - return $this; - } - - /** - * The additional pod ranges to be added to the cluster. These pod ranges - * can be used by node pools to allocate pod IPs. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * @return \Google\Cloud\Container\V1\AdditionalPodRangesConfig|null - */ - public function getAdditionalPodRangesConfig() - { - return $this->additional_pod_ranges_config; - } - - public function hasAdditionalPodRangesConfig() - { - return isset($this->additional_pod_ranges_config); - } - - public function clearAdditionalPodRangesConfig() - { - unset($this->additional_pod_ranges_config); - } - - /** - * The additional pod ranges to be added to the cluster. These pod ranges - * can be used by node pools to allocate pod IPs. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 120; - * @param \Google\Cloud\Container\V1\AdditionalPodRangesConfig $var - * @return $this - */ - public function setAdditionalPodRangesConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdditionalPodRangesConfig::class); - $this->additional_pod_ranges_config = $var; - - return $this; - } - - /** - * The additional pod ranges that are to be removed from the cluster. - * The pod ranges specified here must have been specified earlier in the - * 'additional_pod_ranges_config' argument. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * @return \Google\Cloud\Container\V1\AdditionalPodRangesConfig|null - */ - public function getRemovedAdditionalPodRangesConfig() - { - return $this->removed_additional_pod_ranges_config; - } - - public function hasRemovedAdditionalPodRangesConfig() - { - return isset($this->removed_additional_pod_ranges_config); - } - - public function clearRemovedAdditionalPodRangesConfig() - { - unset($this->removed_additional_pod_ranges_config); - } - - /** - * The additional pod ranges that are to be removed from the cluster. - * The pod ranges specified here must have been specified earlier in the - * 'additional_pod_ranges_config' argument. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121; - * @param \Google\Cloud\Container\V1\AdditionalPodRangesConfig $var - * @return $this - */ - public function setRemovedAdditionalPodRangesConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdditionalPodRangesConfig::class); - $this->removed_additional_pod_ranges_config = $var; - - return $this; - } - - /** - * Kubernetes open source beta apis enabled on the cluster. Only beta apis - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * @return \Google\Cloud\Container\V1\K8sBetaAPIConfig|null - */ - public function getEnableK8SBetaApis() - { - return $this->enable_k8s_beta_apis; - } - - public function hasEnableK8SBetaApis() - { - return isset($this->enable_k8s_beta_apis); - } - - public function clearEnableK8SBetaApis() - { - unset($this->enable_k8s_beta_apis); - } - - /** - * Kubernetes open source beta apis enabled on the cluster. Only beta apis - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 122; - * @param \Google\Cloud\Container\V1\K8sBetaAPIConfig $var - * @return $this - */ - public function setEnableK8SBetaApis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\K8sBetaAPIConfig::class); - $this->enable_k8s_beta_apis = $var; - - return $this; - } - - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * @return \Google\Cloud\Container\V1\SecurityPostureConfig|null - */ - public function getDesiredSecurityPostureConfig() - { - return $this->desired_security_posture_config; - } - - public function hasDesiredSecurityPostureConfig() - { - return isset($this->desired_security_posture_config); - } - - public function clearDesiredSecurityPostureConfig() - { - unset($this->desired_security_posture_config); - } - - /** - * Enable/Disable Security Posture API features for the cluster. - * - * Generated from protobuf field .google.container.v1.SecurityPostureConfig desired_security_posture_config = 124; - * @param \Google\Cloud\Container\V1\SecurityPostureConfig $var - * @return $this - */ - public function setDesiredSecurityPostureConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecurityPostureConfig::class); - $this->desired_security_posture_config = $var; - - return $this; - } - - /** - * The desired network performance config. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * @return \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig|null - */ - public function getDesiredNetworkPerformanceConfig() - { - return $this->desired_network_performance_config; - } - - public function hasDesiredNetworkPerformanceConfig() - { - return isset($this->desired_network_performance_config); - } - - public function clearDesiredNetworkPerformanceConfig() - { - unset($this->desired_network_performance_config); - } - - /** - * The desired network performance config. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig desired_network_performance_config = 125; - * @param \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $var - * @return $this - */ - public function setDesiredNetworkPerformanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig::class); - $this->desired_network_performance_config = $var; - - return $this; - } - - /** - * Enable/Disable FQDN Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_fqdn_network_policy = 126; - * @return bool - */ - public function getDesiredEnableFqdnNetworkPolicy() - { - return isset($this->desired_enable_fqdn_network_policy) ? $this->desired_enable_fqdn_network_policy : false; - } - - public function hasDesiredEnableFqdnNetworkPolicy() - { - return isset($this->desired_enable_fqdn_network_policy); - } - - public function clearDesiredEnableFqdnNetworkPolicy() - { - unset($this->desired_enable_fqdn_network_policy); - } - - /** - * Enable/Disable FQDN Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_fqdn_network_policy = 126; - * @param bool $var - * @return $this - */ - public function setDesiredEnableFqdnNetworkPolicy($var) - { - GPBUtil::checkBool($var); - $this->desired_enable_fqdn_network_policy = $var; - - return $this; - } - - /** - * The desired workload policy configuration for the autopilot cluster. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * @return \Google\Cloud\Container\V1\WorkloadPolicyConfig|null - */ - public function getDesiredAutopilotWorkloadPolicyConfig() - { - return $this->desired_autopilot_workload_policy_config; - } - - public function hasDesiredAutopilotWorkloadPolicyConfig() - { - return isset($this->desired_autopilot_workload_policy_config); - } - - public function clearDesiredAutopilotWorkloadPolicyConfig() - { - unset($this->desired_autopilot_workload_policy_config); - } - - /** - * The desired workload policy configuration for the autopilot cluster. - * - * Generated from protobuf field .google.container.v1.WorkloadPolicyConfig desired_autopilot_workload_policy_config = 128; - * @param \Google\Cloud\Container\V1\WorkloadPolicyConfig $var - * @return $this - */ - public function setDesiredAutopilotWorkloadPolicyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadPolicyConfig::class); - $this->desired_autopilot_workload_policy_config = $var; - - return $this; - } - - /** - * Desired Beta APIs to be enabled for cluster. - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * @return \Google\Cloud\Container\V1\K8sBetaAPIConfig|null - */ - public function getDesiredK8SBetaApis() - { - return $this->desired_k8s_beta_apis; - } - - public function hasDesiredK8SBetaApis() - { - return isset($this->desired_k8s_beta_apis); - } - - public function clearDesiredK8SBetaApis() - { - unset($this->desired_k8s_beta_apis); - } - - /** - * Desired Beta APIs to be enabled for cluster. - * - * Generated from protobuf field .google.container.v1.K8sBetaAPIConfig desired_k8s_beta_apis = 131; - * @param \Google\Cloud\Container\V1\K8sBetaAPIConfig $var - * @return $this - */ - public function setDesiredK8SBetaApis($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\K8sBetaAPIConfig::class); - $this->desired_k8s_beta_apis = $var; - - return $this; - } - - /** - * The desired containerd config for the cluster. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig desired_containerd_config = 134; - * @return \Google\Cloud\Container\V1\ContainerdConfig|null - */ - public function getDesiredContainerdConfig() - { - return $this->desired_containerd_config; - } - - public function hasDesiredContainerdConfig() - { - return isset($this->desired_containerd_config); - } - - public function clearDesiredContainerdConfig() - { - unset($this->desired_containerd_config); - } - - /** - * The desired containerd config for the cluster. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig desired_containerd_config = 134; - * @param \Google\Cloud\Container\V1\ContainerdConfig $var - * @return $this - */ - public function setDesiredContainerdConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig::class); - $this->desired_containerd_config = $var; - - return $this; - } - - /** - * Enable/Disable Multi-Networking for the cluster - * - * Generated from protobuf field optional bool desired_enable_multi_networking = 135; - * @return bool - */ - public function getDesiredEnableMultiNetworking() - { - return isset($this->desired_enable_multi_networking) ? $this->desired_enable_multi_networking : false; - } - - public function hasDesiredEnableMultiNetworking() - { - return isset($this->desired_enable_multi_networking); - } - - public function clearDesiredEnableMultiNetworking() - { - unset($this->desired_enable_multi_networking); - } - - /** - * Enable/Disable Multi-Networking for the cluster - * - * Generated from protobuf field optional bool desired_enable_multi_networking = 135; - * @param bool $var - * @return $this - */ - public function setDesiredEnableMultiNetworking($var) - { - GPBUtil::checkBool($var); - $this->desired_enable_multi_networking = $var; - - return $this; - } - - /** - * The desired resource manager tags that apply to all auto-provisioned node - * pools in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * @return \Google\Cloud\Container\V1\ResourceManagerTags|null - */ - public function getDesiredNodePoolAutoConfigResourceManagerTags() - { - return $this->desired_node_pool_auto_config_resource_manager_tags; - } - - public function hasDesiredNodePoolAutoConfigResourceManagerTags() - { - return isset($this->desired_node_pool_auto_config_resource_manager_tags); - } - - public function clearDesiredNodePoolAutoConfigResourceManagerTags() - { - unset($this->desired_node_pool_auto_config_resource_manager_tags); - } - - /** - * The desired resource manager tags that apply to all auto-provisioned node - * pools in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags desired_node_pool_auto_config_resource_manager_tags = 136; - * @param \Google\Cloud\Container\V1\ResourceManagerTags $var - * @return $this - */ - public function setDesiredNodePoolAutoConfigResourceManagerTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); - $this->desired_node_pool_auto_config_resource_manager_tags = $var; - - return $this; - } - - /** - * Specify the details of in-transit encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * @return int - */ - public function getDesiredInTransitEncryptionConfig() - { - return isset($this->desired_in_transit_encryption_config) ? $this->desired_in_transit_encryption_config : 0; - } - - public function hasDesiredInTransitEncryptionConfig() - { - return isset($this->desired_in_transit_encryption_config); - } - - public function clearDesiredInTransitEncryptionConfig() - { - unset($this->desired_in_transit_encryption_config); - } - - /** - * Specify the details of in-transit encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig desired_in_transit_encryption_config = 137; - * @param int $var - * @return $this - */ - public function setDesiredInTransitEncryptionConfig($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\InTransitEncryptionConfig::class); - $this->desired_in_transit_encryption_config = $var; - - return $this; - } - - /** - * Enable/Disable Cilium Clusterwide Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_cilium_clusterwide_network_policy = 138; - * @return bool - */ - public function getDesiredEnableCiliumClusterwideNetworkPolicy() - { - return isset($this->desired_enable_cilium_clusterwide_network_policy) ? $this->desired_enable_cilium_clusterwide_network_policy : false; - } - - public function hasDesiredEnableCiliumClusterwideNetworkPolicy() - { - return isset($this->desired_enable_cilium_clusterwide_network_policy); - } - - public function clearDesiredEnableCiliumClusterwideNetworkPolicy() - { - unset($this->desired_enable_cilium_clusterwide_network_policy); - } - - /** - * Enable/Disable Cilium Clusterwide Network Policy for the cluster. - * - * Generated from protobuf field optional bool desired_enable_cilium_clusterwide_network_policy = 138; - * @param bool $var - * @return $this - */ - public function setDesiredEnableCiliumClusterwideNetworkPolicy($var) - { - GPBUtil::checkBool($var); - $this->desired_enable_cilium_clusterwide_network_policy = $var; - - return $this; - } - - /** - * Enable/Disable Secret Manager Config. - * - * Generated from protobuf field optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; - * @return \Google\Cloud\Container\V1\SecretManagerConfig|null - */ - public function getDesiredSecretManagerConfig() - { - return $this->desired_secret_manager_config; - } - - public function hasDesiredSecretManagerConfig() - { - return isset($this->desired_secret_manager_config); - } - - public function clearDesiredSecretManagerConfig() - { - unset($this->desired_secret_manager_config); - } - - /** - * Enable/Disable Secret Manager Config. - * - * Generated from protobuf field optional .google.container.v1.SecretManagerConfig desired_secret_manager_config = 139; - * @param \Google\Cloud\Container\V1\SecretManagerConfig $var - * @return $this - */ - public function setDesiredSecretManagerConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecretManagerConfig::class); - $this->desired_secret_manager_config = $var; - - return $this; - } - - /** - * Enable/Disable Compliance Posture features for the cluster. - * - * Generated from protobuf field optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; - * @return \Google\Cloud\Container\V1\CompliancePostureConfig|null - */ - public function getDesiredCompliancePostureConfig() - { - return $this->desired_compliance_posture_config; - } - - public function hasDesiredCompliancePostureConfig() - { - return isset($this->desired_compliance_posture_config); - } - - public function clearDesiredCompliancePostureConfig() - { - unset($this->desired_compliance_posture_config); - } - - /** - * Enable/Disable Compliance Posture features for the cluster. - * - * Generated from protobuf field optional .google.container.v1.CompliancePostureConfig desired_compliance_posture_config = 140; - * @param \Google\Cloud\Container\V1\CompliancePostureConfig $var - * @return $this - */ - public function setDesiredCompliancePostureConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\CompliancePostureConfig::class); - $this->desired_compliance_posture_config = $var; - - return $this; - } - - /** - * The desired node kubelet config for the cluster. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; - * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null - */ - public function getDesiredNodeKubeletConfig() - { - return $this->desired_node_kubelet_config; - } - - public function hasDesiredNodeKubeletConfig() - { - return isset($this->desired_node_kubelet_config); - } - - public function clearDesiredNodeKubeletConfig() - { - unset($this->desired_node_kubelet_config); - } - - /** - * The desired node kubelet config for the cluster. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_kubelet_config = 141; - * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var - * @return $this - */ - public function setDesiredNodeKubeletConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); - $this->desired_node_kubelet_config = $var; - - return $this; - } - - /** - * The desired node kubelet config for all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; - * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null - */ - public function getDesiredNodePoolAutoConfigKubeletConfig() - { - return $this->desired_node_pool_auto_config_kubelet_config; - } - - public function hasDesiredNodePoolAutoConfigKubeletConfig() - { - return isset($this->desired_node_pool_auto_config_kubelet_config); - } - - public function clearDesiredNodePoolAutoConfigKubeletConfig() - { - unset($this->desired_node_pool_auto_config_kubelet_config); - } - - /** - * The desired node kubelet config for all auto-provisioned node pools - * in autopilot clusters and node auto-provisioning enabled clusters. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig desired_node_pool_auto_config_kubelet_config = 142; - * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var - * @return $this - */ - public function setDesiredNodePoolAutoConfigKubeletConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); - $this->desired_node_pool_auto_config_kubelet_config = $var; - - return $this; - } - - /** - * The Custom keys configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; - * @return \Google\Cloud\Container\V1\UserManagedKeysConfig|null - */ - public function getUserManagedKeysConfig() - { - return $this->user_managed_keys_config; - } - - public function hasUserManagedKeysConfig() - { - return isset($this->user_managed_keys_config); - } - - public function clearUserManagedKeysConfig() - { - unset($this->user_managed_keys_config); - } - - /** - * The Custom keys configuration for the cluster. - * - * Generated from protobuf field .google.container.v1.UserManagedKeysConfig user_managed_keys_config = 143; - * @param \Google\Cloud\Container\V1\UserManagedKeysConfig $var - * @return $this - */ - public function setUserManagedKeysConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\UserManagedKeysConfig::class); - $this->user_managed_keys_config = $var; - - return $this; - } - - /** - * RBACBindingConfig allows user to restrict ClusterRoleBindings an - * RoleBindings that can be created. - * - * Generated from protobuf field optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; - * @return \Google\Cloud\Container\V1\RBACBindingConfig|null - */ - public function getDesiredRbacBindingConfig() - { - return $this->desired_rbac_binding_config; - } - - public function hasDesiredRbacBindingConfig() - { - return isset($this->desired_rbac_binding_config); - } - - public function clearDesiredRbacBindingConfig() - { - unset($this->desired_rbac_binding_config); - } - - /** - * RBACBindingConfig allows user to restrict ClusterRoleBindings an - * RoleBindings that can be created. - * - * Generated from protobuf field optional .google.container.v1.RBACBindingConfig desired_rbac_binding_config = 144; - * @param \Google\Cloud\Container\V1\RBACBindingConfig $var - * @return $this - */ - public function setDesiredRbacBindingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\RBACBindingConfig::class); - $this->desired_rbac_binding_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php deleted file mode 100644 index 92481f5c6a36..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteIPRotationRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.CompleteIPRotationRequest - */ -class CompleteIPRotationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\CompleteIPRotationRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId); - } - - /** - * @param string $name The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * @return \Google\Cloud\Container\V1\CompleteIPRotationRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to complete IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php deleted file mode 100644 index b14c8d08063e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompleteNodePoolUpgradeRequest.php +++ /dev/null @@ -1,76 +0,0 @@ -google.container.v1.CompleteNodePoolUpgradeRequest - */ -class CompleteNodePoolUpgradeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * complete upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig.php deleted file mode 100644 index f0ba2f3a20b9..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig.php +++ /dev/null @@ -1,112 +0,0 @@ -google.container.v1.CompliancePostureConfig - */ -class CompliancePostureConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Defines the enablement mode for Compliance Posture. - * - * Generated from protobuf field optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; - */ - protected $mode = null; - /** - * List of enabled compliance standards. - * - * Generated from protobuf field repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; - */ - private $compliance_standards; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $mode - * Defines the enablement mode for Compliance Posture. - * @type array<\Google\Cloud\Container\V1\CompliancePostureConfig\ComplianceStandard>|\Google\Protobuf\Internal\RepeatedField $compliance_standards - * List of enabled compliance standards. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Defines the enablement mode for Compliance Posture. - * - * Generated from protobuf field optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; - * @return int - */ - public function getMode() - { - return isset($this->mode) ? $this->mode : 0; - } - - public function hasMode() - { - return isset($this->mode); - } - - public function clearMode() - { - unset($this->mode); - } - - /** - * Defines the enablement mode for Compliance Posture. - * - * Generated from protobuf field optional .google.container.v1.CompliancePostureConfig.Mode mode = 1; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\CompliancePostureConfig\Mode::class); - $this->mode = $var; - - return $this; - } - - /** - * List of enabled compliance standards. - * - * Generated from protobuf field repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComplianceStandards() - { - return $this->compliance_standards; - } - - /** - * List of enabled compliance standards. - * - * Generated from protobuf field repeated .google.container.v1.CompliancePostureConfig.ComplianceStandard compliance_standards = 2; - * @param array<\Google\Cloud\Container\V1\CompliancePostureConfig\ComplianceStandard>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComplianceStandards($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\CompliancePostureConfig\ComplianceStandard::class); - $this->compliance_standards = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig/ComplianceStandard.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig/ComplianceStandard.php deleted file mode 100644 index ef73fdbe73b3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig/ComplianceStandard.php +++ /dev/null @@ -1,80 +0,0 @@ -google.container.v1.CompliancePostureConfig.ComplianceStandard - */ -class ComplianceStandard extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the compliance standard. - * - * Generated from protobuf field optional string standard = 1; - */ - protected $standard = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $standard - * Name of the compliance standard. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Name of the compliance standard. - * - * Generated from protobuf field optional string standard = 1; - * @return string - */ - public function getStandard() - { - return isset($this->standard) ? $this->standard : ''; - } - - public function hasStandard() - { - return isset($this->standard); - } - - public function clearStandard() - { - unset($this->standard); - } - - /** - * Name of the compliance standard. - * - * Generated from protobuf field optional string standard = 1; - * @param string $var - * @return $this - */ - public function setStandard($var) - { - GPBUtil::checkString($var, True); - $this->standard = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ComplianceStandard::class, \Google\Cloud\Container\V1\CompliancePostureConfig_ComplianceStandard::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig/Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig/Mode.php deleted file mode 100644 index b6d6426ca537..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CompliancePostureConfig/Mode.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.CompliancePostureConfig.Mode - */ -class Mode -{ - /** - * Default value not specified. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * Disables Compliance Posture features on the cluster. - * - * Generated from protobuf enum DISABLED = 1; - */ - const DISABLED = 1; - /** - * Enables Compliance Posture features on the cluster. - * - * Generated from protobuf enum ENABLED = 2; - */ - const ENABLED = 2; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::DISABLED => 'DISABLED', - self::ENABLED => 'ENABLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Container\V1\CompliancePostureConfig_Mode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php deleted file mode 100644 index a7d3cd2c9116..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfidentialNodes.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ConfidentialNodes - */ -class ConfidentialNodes extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Confidential Nodes feature is enabled. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Confidential Nodes feature is enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Confidential Nodes feature is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Confidential Nodes feature is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php deleted file mode 100644 index 936f2cdd1d89..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ConfigConnectorConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ConfigConnectorConfig - */ -class ConfigConnectorConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Cloud Connector is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Cloud Connector is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Cloud Connector is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Cloud Connector is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig.php deleted file mode 100644 index 59bc55964c12..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig.php +++ /dev/null @@ -1,81 +0,0 @@ -google.container.v1.ContainerdConfig - */ -class ContainerdConfig extends \Google\Protobuf\Internal\Message -{ - /** - * PrivateRegistryAccessConfig is used to configure access configuration - * for private container registries. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; - */ - protected $private_registry_access_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig $private_registry_access_config - * PrivateRegistryAccessConfig is used to configure access configuration - * for private container registries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * PrivateRegistryAccessConfig is used to configure access configuration - * for private container registries. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; - * @return \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig|null - */ - public function getPrivateRegistryAccessConfig() - { - return $this->private_registry_access_config; - } - - public function hasPrivateRegistryAccessConfig() - { - return isset($this->private_registry_access_config); - } - - public function clearPrivateRegistryAccessConfig() - { - unset($this->private_registry_access_config); - } - - /** - * PrivateRegistryAccessConfig is used to configure access configuration - * for private container registries. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig private_registry_access_config = 1; - * @param \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig $var - * @return $this - */ - public function setPrivateRegistryAccessConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig::class); - $this->private_registry_access_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig.php deleted file mode 100644 index e7d6d95958cf..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig.php +++ /dev/null @@ -1,105 +0,0 @@ -google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig - */ -class PrivateRegistryAccessConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Private registry access is enabled. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Private registry access configuration. - * - * Generated from protobuf field repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; - */ - private $certificate_authority_domain_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Private registry access is enabled. - * @type array<\Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig>|\Google\Protobuf\Internal\RepeatedField $certificate_authority_domain_config - * Private registry access configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Private registry access is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Private registry access is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Private registry access configuration. - * - * Generated from protobuf field repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCertificateAuthorityDomainConfig() - { - return $this->certificate_authority_domain_config; - } - - /** - * Private registry access configuration. - * - * Generated from protobuf field repeated .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig certificate_authority_domain_config = 2; - * @param array<\Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCertificateAuthorityDomainConfig($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig::class); - $this->certificate_authority_domain_config = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PrivateRegistryAccessConfig::class, \Google\Cloud\Container\V1\ContainerdConfig_PrivateRegistryAccessConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig.php deleted file mode 100644 index 9e22533515ee..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig.php +++ /dev/null @@ -1,133 +0,0 @@ -google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig - */ -class CertificateAuthorityDomainConfig extends \Google\Protobuf\Internal\Message -{ - /** - * List of fully qualified domain names (FQDN). - * Specifying port is supported. - * Wilcards are NOT supported. - * Examples: - * - my.customdomain.com - * - 10.0.1.2:5000 - * - * Generated from protobuf field repeated string fqdns = 1; - */ - private $fqdns; - protected $certificate_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $fqdns - * List of fully qualified domain names (FQDN). - * Specifying port is supported. - * Wilcards are NOT supported. - * Examples: - * - my.customdomain.com - * - 10.0.1.2:5000 - * @type \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig\GCPSecretManagerCertificateConfig $gcp_secret_manager_certificate_config - * Google Secret Manager (GCP) certificate configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * List of fully qualified domain names (FQDN). - * Specifying port is supported. - * Wilcards are NOT supported. - * Examples: - * - my.customdomain.com - * - 10.0.1.2:5000 - * - * Generated from protobuf field repeated string fqdns = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFqdns() - { - return $this->fqdns; - } - - /** - * List of fully qualified domain names (FQDN). - * Specifying port is supported. - * Wilcards are NOT supported. - * Examples: - * - my.customdomain.com - * - 10.0.1.2:5000 - * - * Generated from protobuf field repeated string fqdns = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFqdns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->fqdns = $arr; - - return $this; - } - - /** - * Google Secret Manager (GCP) certificate configuration. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; - * @return \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig\GCPSecretManagerCertificateConfig|null - */ - public function getGcpSecretManagerCertificateConfig() - { - return $this->readOneof(2); - } - - public function hasGcpSecretManagerCertificateConfig() - { - return $this->hasOneof(2); - } - - /** - * Google Secret Manager (GCP) certificate configuration. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig gcp_secret_manager_certificate_config = 2; - * @param \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig\GCPSecretManagerCertificateConfig $var - * @return $this - */ - public function setGcpSecretManagerCertificateConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig\PrivateRegistryAccessConfig\CertificateAuthorityDomainConfig\GCPSecretManagerCertificateConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getCertificateConfig() - { - return $this->whichOneof("certificate_config"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CertificateAuthorityDomainConfig::class, \Google\Cloud\Container\V1\ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig/GCPSecretManagerCertificateConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig/GCPSecretManagerCertificateConfig.php deleted file mode 100644 index 2b2f3553644d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ContainerdConfig/PrivateRegistryAccessConfig/CertificateAuthorityDomainConfig/GCPSecretManagerCertificateConfig.php +++ /dev/null @@ -1,79 +0,0 @@ -google.container.v1.ContainerdConfig.PrivateRegistryAccessConfig.CertificateAuthorityDomainConfig.GCPSecretManagerCertificateConfig - */ -class GCPSecretManagerCertificateConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Secret URI, in the form - * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". - * Version can be fixed (e.g. "2") or "latest" - * - * Generated from protobuf field string secret_uri = 1; - */ - protected $secret_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $secret_uri - * Secret URI, in the form - * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". - * Version can be fixed (e.g. "2") or "latest" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Secret URI, in the form - * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". - * Version can be fixed (e.g. "2") or "latest" - * - * Generated from protobuf field string secret_uri = 1; - * @return string - */ - public function getSecretUri() - { - return $this->secret_uri; - } - - /** - * Secret URI, in the form - * "projects/$PROJECT_ID/secrets/$SECRET_NAME/versions/$VERSION". - * Version can be fixed (e.g. "2") or "latest" - * - * Generated from protobuf field string secret_uri = 1; - * @param string $var - * @return $this - */ - public function setSecretUri($var) - { - GPBUtil::checkString($var, True); - $this->secret_uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GCPSecretManagerCertificateConfig::class, \Google\Cloud\Container\V1\ContainerdConfig_PrivateRegistryAccessConfig_CertificateAuthorityDomainConfig_GCPSecretManagerCertificateConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig.php deleted file mode 100644 index fccd4802d779..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig.php +++ /dev/null @@ -1,121 +0,0 @@ -google.container.v1.ControlPlaneEndpointsConfig - */ -class ControlPlaneEndpointsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * DNS endpoint configuration. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; - */ - protected $dns_endpoint_config = null; - /** - * IP endpoints configuration. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; - */ - protected $ip_endpoints_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\DNSEndpointConfig $dns_endpoint_config - * DNS endpoint configuration. - * @type \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\IPEndpointsConfig $ip_endpoints_config - * IP endpoints configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * DNS endpoint configuration. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; - * @return \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\DNSEndpointConfig|null - */ - public function getDnsEndpointConfig() - { - return $this->dns_endpoint_config; - } - - public function hasDnsEndpointConfig() - { - return isset($this->dns_endpoint_config); - } - - public function clearDnsEndpointConfig() - { - unset($this->dns_endpoint_config); - } - - /** - * DNS endpoint configuration. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig dns_endpoint_config = 1; - * @param \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\DNSEndpointConfig $var - * @return $this - */ - public function setDnsEndpointConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\DNSEndpointConfig::class); - $this->dns_endpoint_config = $var; - - return $this; - } - - /** - * IP endpoints configuration. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; - * @return \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\IPEndpointsConfig|null - */ - public function getIpEndpointsConfig() - { - return $this->ip_endpoints_config; - } - - public function hasIpEndpointsConfig() - { - return isset($this->ip_endpoints_config); - } - - public function clearIpEndpointsConfig() - { - unset($this->ip_endpoints_config); - } - - /** - * IP endpoints configuration. - * - * Generated from protobuf field .google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig ip_endpoints_config = 3; - * @param \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\IPEndpointsConfig $var - * @return $this - */ - public function setIpEndpointsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig\IPEndpointsConfig::class); - $this->ip_endpoints_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig/DNSEndpointConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig/DNSEndpointConfig.php deleted file mode 100644 index 99407cb6700d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig/DNSEndpointConfig.php +++ /dev/null @@ -1,134 +0,0 @@ -google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig - */ -class DNSEndpointConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The cluster's DNS endpoint configuration. - * A DNS format address. This is accessible from the public internet. - * Ex: uid.us-central1.gke.goog. - * Always present, but the behavior may change according to the value of - * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic]. - * - * Generated from protobuf field string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint = ''; - /** - * Controls whether user traffic is allowed over this endpoint. Note that - * GCP-managed services may still use the endpoint even if this is false. - * - * Generated from protobuf field optional bool allow_external_traffic = 3; - */ - protected $allow_external_traffic = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $endpoint - * Output only. The cluster's DNS endpoint configuration. - * A DNS format address. This is accessible from the public internet. - * Ex: uid.us-central1.gke.goog. - * Always present, but the behavior may change according to the value of - * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic]. - * @type bool $allow_external_traffic - * Controls whether user traffic is allowed over this endpoint. Note that - * GCP-managed services may still use the endpoint even if this is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The cluster's DNS endpoint configuration. - * A DNS format address. This is accessible from the public internet. - * Ex: uid.us-central1.gke.goog. - * Always present, but the behavior may change according to the value of - * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic]. - * - * Generated from protobuf field string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpoint() - { - return $this->endpoint; - } - - /** - * Output only. The cluster's DNS endpoint configuration. - * A DNS format address. This is accessible from the public internet. - * Ex: uid.us-central1.gke.goog. - * Always present, but the behavior may change according to the value of - * [DNSEndpointConfig.allow_external_traffic][google.container.v1.ControlPlaneEndpointsConfig.DNSEndpointConfig.allow_external_traffic]. - * - * Generated from protobuf field string endpoint = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->endpoint = $var; - - return $this; - } - - /** - * Controls whether user traffic is allowed over this endpoint. Note that - * GCP-managed services may still use the endpoint even if this is false. - * - * Generated from protobuf field optional bool allow_external_traffic = 3; - * @return bool - */ - public function getAllowExternalTraffic() - { - return isset($this->allow_external_traffic) ? $this->allow_external_traffic : false; - } - - public function hasAllowExternalTraffic() - { - return isset($this->allow_external_traffic); - } - - public function clearAllowExternalTraffic() - { - unset($this->allow_external_traffic); - } - - /** - * Controls whether user traffic is allowed over this endpoint. Note that - * GCP-managed services may still use the endpoint even if this is false. - * - * Generated from protobuf field optional bool allow_external_traffic = 3; - * @param bool $var - * @return $this - */ - public function setAllowExternalTraffic($var) - { - GPBUtil::checkBool($var); - $this->allow_external_traffic = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DNSEndpointConfig::class, \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig_DNSEndpointConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig/IPEndpointsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig/IPEndpointsConfig.php deleted file mode 100644 index df37ffb0508e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ControlPlaneEndpointsConfig/IPEndpointsConfig.php +++ /dev/null @@ -1,382 +0,0 @@ -google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig - */ -class IPEndpointsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Controls whether to allow direct IP access. - * - * Generated from protobuf field optional bool enabled = 1; - */ - protected $enabled = null; - /** - * Controls whether the control plane allows access through a public IP. - * It is invalid to specify both - * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same - * time. - * - * Generated from protobuf field optional bool enable_public_endpoint = 2; - */ - protected $enable_public_endpoint = null; - /** - * Controls whether the control plane's private endpoint is accessible from - * sources in other regions. - * It is invalid to specify both - * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled] - * and this field at the same time. - * - * Generated from protobuf field optional bool global_access = 3; - */ - protected $global_access = null; - /** - * Configuration of authorized networks. If enabled, restricts access to the - * control plane based on source IP. - * It is invalid to specify both - * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same - * time. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; - */ - protected $authorized_networks_config = null; - /** - * Output only. The external IP address of this cluster's control plane. - * Only populated if enabled. - * - * Generated from protobuf field string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $public_endpoint = ''; - /** - * Output only. The internal IP address of this cluster's control plane. - * Only populated if enabled. - * - * Generated from protobuf field string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $private_endpoint = ''; - /** - * Subnet to provision the master's private endpoint during cluster - * creation. Specified in projects/*/regions/*/subnetworks/* format. It is - * invalid to specify both - * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the - * same time. - * - * Generated from protobuf field string private_endpoint_subnetwork = 7; - */ - protected $private_endpoint_subnetwork = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Controls whether to allow direct IP access. - * @type bool $enable_public_endpoint - * Controls whether the control plane allows access through a public IP. - * It is invalid to specify both - * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same - * time. - * @type bool $global_access - * Controls whether the control plane's private endpoint is accessible from - * sources in other regions. - * It is invalid to specify both - * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled] - * and this field at the same time. - * @type \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $authorized_networks_config - * Configuration of authorized networks. If enabled, restricts access to the - * control plane based on source IP. - * It is invalid to specify both - * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same - * time. - * @type string $public_endpoint - * Output only. The external IP address of this cluster's control plane. - * Only populated if enabled. - * @type string $private_endpoint - * Output only. The internal IP address of this cluster's control plane. - * Only populated if enabled. - * @type string $private_endpoint_subnetwork - * Subnet to provision the master's private endpoint during cluster - * creation. Specified in projects/*/regions/*/subnetworks/* format. It is - * invalid to specify both - * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the - * same time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Controls whether to allow direct IP access. - * - * Generated from protobuf field optional bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return isset($this->enabled) ? $this->enabled : false; - } - - public function hasEnabled() - { - return isset($this->enabled); - } - - public function clearEnabled() - { - unset($this->enabled); - } - - /** - * Controls whether to allow direct IP access. - * - * Generated from protobuf field optional bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Controls whether the control plane allows access through a public IP. - * It is invalid to specify both - * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same - * time. - * - * Generated from protobuf field optional bool enable_public_endpoint = 2; - * @return bool - */ - public function getEnablePublicEndpoint() - { - return isset($this->enable_public_endpoint) ? $this->enable_public_endpoint : false; - } - - public function hasEnablePublicEndpoint() - { - return isset($this->enable_public_endpoint); - } - - public function clearEnablePublicEndpoint() - { - unset($this->enable_public_endpoint); - } - - /** - * Controls whether the control plane allows access through a public IP. - * It is invalid to specify both - * [PrivateClusterConfig.enablePrivateEndpoint][] and this field at the same - * time. - * - * Generated from protobuf field optional bool enable_public_endpoint = 2; - * @param bool $var - * @return $this - */ - public function setEnablePublicEndpoint($var) - { - GPBUtil::checkBool($var); - $this->enable_public_endpoint = $var; - - return $this; - } - - /** - * Controls whether the control plane's private endpoint is accessible from - * sources in other regions. - * It is invalid to specify both - * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled] - * and this field at the same time. - * - * Generated from protobuf field optional bool global_access = 3; - * @return bool - */ - public function getGlobalAccess() - { - return isset($this->global_access) ? $this->global_access : false; - } - - public function hasGlobalAccess() - { - return isset($this->global_access); - } - - public function clearGlobalAccess() - { - unset($this->global_access); - } - - /** - * Controls whether the control plane's private endpoint is accessible from - * sources in other regions. - * It is invalid to specify both - * [PrivateClusterMasterGlobalAccessConfig.enabled][google.container.v1.PrivateClusterMasterGlobalAccessConfig.enabled] - * and this field at the same time. - * - * Generated from protobuf field optional bool global_access = 3; - * @param bool $var - * @return $this - */ - public function setGlobalAccess($var) - { - GPBUtil::checkBool($var); - $this->global_access = $var; - - return $this; - } - - /** - * Configuration of authorized networks. If enabled, restricts access to the - * control plane based on source IP. - * It is invalid to specify both - * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same - * time. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; - * @return \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig|null - */ - public function getAuthorizedNetworksConfig() - { - return $this->authorized_networks_config; - } - - public function hasAuthorizedNetworksConfig() - { - return isset($this->authorized_networks_config); - } - - public function clearAuthorizedNetworksConfig() - { - unset($this->authorized_networks_config); - } - - /** - * Configuration of authorized networks. If enabled, restricts access to the - * control plane based on source IP. - * It is invalid to specify both - * [Cluster.masterAuthorizedNetworksConfig][] and this field at the same - * time. - * - * Generated from protobuf field .google.container.v1.MasterAuthorizedNetworksConfig authorized_networks_config = 4; - * @param \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig $var - * @return $this - */ - public function setAuthorizedNetworksConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig::class); - $this->authorized_networks_config = $var; - - return $this; - } - - /** - * Output only. The external IP address of this cluster's control plane. - * Only populated if enabled. - * - * Generated from protobuf field string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPublicEndpoint() - { - return $this->public_endpoint; - } - - /** - * Output only. The external IP address of this cluster's control plane. - * Only populated if enabled. - * - * Generated from protobuf field string public_endpoint = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPublicEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->public_endpoint = $var; - - return $this; - } - - /** - * Output only. The internal IP address of this cluster's control plane. - * Only populated if enabled. - * - * Generated from protobuf field string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPrivateEndpoint() - { - return $this->private_endpoint; - } - - /** - * Output only. The internal IP address of this cluster's control plane. - * Only populated if enabled. - * - * Generated from protobuf field string private_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPrivateEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->private_endpoint = $var; - - return $this; - } - - /** - * Subnet to provision the master's private endpoint during cluster - * creation. Specified in projects/*/regions/*/subnetworks/* format. It is - * invalid to specify both - * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the - * same time. - * - * Generated from protobuf field string private_endpoint_subnetwork = 7; - * @return string - */ - public function getPrivateEndpointSubnetwork() - { - return $this->private_endpoint_subnetwork; - } - - /** - * Subnet to provision the master's private endpoint during cluster - * creation. Specified in projects/*/regions/*/subnetworks/* format. It is - * invalid to specify both - * [PrivateClusterConfig.privateEndpointSubnetwork][] and this field at the - * same time. - * - * Generated from protobuf field string private_endpoint_subnetwork = 7; - * @param string $var - * @return $this - */ - public function setPrivateEndpointSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->private_endpoint_subnetwork = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IPEndpointsConfig::class, \Google\Cloud\Container\V1\ControlPlaneEndpointsConfig_IPEndpointsConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php deleted file mode 100644 index 5b896434bf8e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CostManagementConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.CostManagementConfig - */ -class CostManagementConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the feature is enabled or not. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the feature is enabled or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the feature is enabled or not. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the feature is enabled or not. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php deleted file mode 100644 index 727d5bd02ea5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateClusterRequest.php +++ /dev/null @@ -1,257 +0,0 @@ -google.container.v1.CreateClusterRequest - */ -class CreateClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = null; - /** - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 5; - */ - protected $parent = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @param \Google\Cloud\Container\V1\Cluster $cluster Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * @return \Google\Cloud\Container\V1\CreateClusterRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, \Google\Cloud\Container\V1\Cluster $cluster): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setCluster($cluster); - } - - /** - * @param string $parent The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * @param \Google\Cloud\Container\V1\Cluster $cluster Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * @return \Google\Cloud\Container\V1\CreateClusterRequest - * - * @experimental - */ - public static function buildFromParentCluster(string $parent, \Google\Cloud\Container\V1\Cluster $cluster): self - { - return (new self()) - ->setParent($parent) - ->setCluster($cluster); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type \Google\Cloud\Container\V1\Cluster $cluster - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * @type string $parent - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\Cluster|null - */ - public function getCluster() - { - return $this->cluster; - } - - public function hasCluster() - { - return isset($this->cluster); - } - - public function clearCluster() - { - unset($this->cluster); - } - - /** - * Required. A [cluster - * resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters) - * - * Generated from protobuf field .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\Cluster $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\Cluster::class); - $this->cluster = $var; - - return $this; - } - - /** - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 5; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project and location) where the cluster will be created. - * Specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 5; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php deleted file mode 100644 index 2c4595bd0f7b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/CreateNodePoolRequest.php +++ /dev/null @@ -1,302 +0,0 @@ -google.container.v1.CreateNodePoolRequest - */ -class CreateNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The node pool to create. - * - * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $node_pool = null; - /** - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 6; - */ - protected $parent = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @param \Google\Cloud\Container\V1\NodePool $nodePool Required. The node pool to create. - * - * @return \Google\Cloud\Container\V1\CreateNodePoolRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\NodePool $nodePool): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setNodePool($nodePool); - } - - /** - * @param string $parent The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * @param \Google\Cloud\Container\V1\NodePool $nodePool Required. The node pool to create. - * - * @return \Google\Cloud\Container\V1\CreateNodePoolRequest - * - * @experimental - */ - public static function buildFromParentNodePool(string $parent, \Google\Cloud\Container\V1\NodePool $nodePool): self - { - return (new self()) - ->setParent($parent) - ->setNodePool($nodePool); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @type \Google\Cloud\Container\V1\NodePool $node_pool - * Required. The node pool to create. - * @type string $parent - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The node pool to create. - * - * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NodePool|null - */ - public function getNodePool() - { - return $this->node_pool; - } - - public function hasNodePool() - { - return isset($this->node_pool); - } - - public function clearNodePool() - { - unset($this->node_pool); - } - - /** - * Required. The node pool to create. - * - * Generated from protobuf field .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NodePool $var - * @return $this - */ - public function setNodePool($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool::class); - $this->node_pool = $var; - - return $this; - } - - /** - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 6; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project, location, cluster name) where the node pool will be - * created. Specified in the format - * `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 6; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php deleted file mode 100644 index 3917953af1f4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig.php +++ /dev/null @@ -1,169 +0,0 @@ -google.container.v1.DNSConfig - */ -class DNSConfig extends \Google\Protobuf\Internal\Message -{ - /** - * cluster_dns indicates which in-cluster DNS provider should be used. - * - * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; - */ - protected $cluster_dns = 0; - /** - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * - * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - */ - protected $cluster_dns_scope = 0; - /** - * cluster_dns_domain is the suffix used for all cluster service records. - * - * Generated from protobuf field string cluster_dns_domain = 3; - */ - protected $cluster_dns_domain = ''; - /** - * Optional. The domain used in Additive VPC scope. - * - * Generated from protobuf field string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $additive_vpc_scope_dns_domain = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cluster_dns - * cluster_dns indicates which in-cluster DNS provider should be used. - * @type int $cluster_dns_scope - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * @type string $cluster_dns_domain - * cluster_dns_domain is the suffix used for all cluster service records. - * @type string $additive_vpc_scope_dns_domain - * Optional. The domain used in Additive VPC scope. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * cluster_dns indicates which in-cluster DNS provider should be used. - * - * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @return int - */ - public function getClusterDns() - { - return $this->cluster_dns; - } - - /** - * cluster_dns indicates which in-cluster DNS provider should be used. - * - * Generated from protobuf field .google.container.v1.DNSConfig.Provider cluster_dns = 1; - * @param int $var - * @return $this - */ - public function setClusterDns($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DNSConfig\Provider::class); - $this->cluster_dns = $var; - - return $this; - } - - /** - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * - * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @return int - */ - public function getClusterDnsScope() - { - return $this->cluster_dns_scope; - } - - /** - * cluster_dns_scope indicates the scope of access to cluster DNS records. - * - * Generated from protobuf field .google.container.v1.DNSConfig.DNSScope cluster_dns_scope = 2; - * @param int $var - * @return $this - */ - public function setClusterDnsScope($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DNSConfig\DNSScope::class); - $this->cluster_dns_scope = $var; - - return $this; - } - - /** - * cluster_dns_domain is the suffix used for all cluster service records. - * - * Generated from protobuf field string cluster_dns_domain = 3; - * @return string - */ - public function getClusterDnsDomain() - { - return $this->cluster_dns_domain; - } - - /** - * cluster_dns_domain is the suffix used for all cluster service records. - * - * Generated from protobuf field string cluster_dns_domain = 3; - * @param string $var - * @return $this - */ - public function setClusterDnsDomain($var) - { - GPBUtil::checkString($var, True); - $this->cluster_dns_domain = $var; - - return $this; - } - - /** - * Optional. The domain used in Additive VPC scope. - * - * Generated from protobuf field string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAdditiveVpcScopeDnsDomain() - { - return $this->additive_vpc_scope_dns_domain; - } - - /** - * Optional. The domain used in Additive VPC scope. - * - * Generated from protobuf field string additive_vpc_scope_dns_domain = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAdditiveVpcScopeDnsDomain($var) - { - GPBUtil::checkString($var, True); - $this->additive_vpc_scope_dns_domain = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php deleted file mode 100644 index deaedc169384..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/DNSScope.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.DNSConfig.DNSScope - */ -class DNSScope -{ - /** - * Default value, will be inferred as cluster scope. - * - * Generated from protobuf enum DNS_SCOPE_UNSPECIFIED = 0; - */ - const DNS_SCOPE_UNSPECIFIED = 0; - /** - * DNS records are accessible from within the cluster. - * - * Generated from protobuf enum CLUSTER_SCOPE = 1; - */ - const CLUSTER_SCOPE = 1; - /** - * DNS records are accessible from within the VPC. - * - * Generated from protobuf enum VPC_SCOPE = 2; - */ - const VPC_SCOPE = 2; - - private static $valueToName = [ - self::DNS_SCOPE_UNSPECIFIED => 'DNS_SCOPE_UNSPECIFIED', - self::CLUSTER_SCOPE => 'CLUSTER_SCOPE', - self::VPC_SCOPE => 'VPC_SCOPE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DNSScope::class, \Google\Cloud\Container\V1\DNSConfig_DNSScope::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php deleted file mode 100644 index b6da4189a40e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DNSConfig/Provider.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.DNSConfig.Provider - */ -class Provider -{ - /** - * Default value - * - * Generated from protobuf enum PROVIDER_UNSPECIFIED = 0; - */ - const PROVIDER_UNSPECIFIED = 0; - /** - * Use GKE default DNS provider(kube-dns) for DNS resolution. - * - * Generated from protobuf enum PLATFORM_DEFAULT = 1; - */ - const PLATFORM_DEFAULT = 1; - /** - * Use CloudDNS for DNS resolution. - * - * Generated from protobuf enum CLOUD_DNS = 2; - */ - const CLOUD_DNS = 2; - /** - * Use KubeDNS for DNS resolution. - * - * Generated from protobuf enum KUBE_DNS = 3; - */ - const KUBE_DNS = 3; - - private static $valueToName = [ - self::PROVIDER_UNSPECIFIED => 'PROVIDER_UNSPECIFIED', - self::PLATFORM_DEFAULT => 'PLATFORM_DEFAULT', - self::CLOUD_DNS => 'CLOUD_DNS', - self::KUBE_DNS => 'KUBE_DNS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Provider::class, \Google\Cloud\Container\V1\DNSConfig_Provider::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php deleted file mode 100644 index 0ad5d723457e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DailyMaintenanceWindow.php +++ /dev/null @@ -1,121 +0,0 @@ -google.container.v1.DailyMaintenanceWindow - */ -class DailyMaintenanceWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Time within the maintenance window to start the maintenance operations. - * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. - * - * Generated from protobuf field string start_time = 2; - */ - protected $start_time = ''; - /** - * Output only. Duration of the time window, automatically chosen to be - * smallest possible in the given scenario. - * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "PTnHnMnS". - * - * Generated from protobuf field string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $duration = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start_time - * Time within the maintenance window to start the maintenance operations. - * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. - * @type string $duration - * Output only. Duration of the time window, automatically chosen to be - * smallest possible in the given scenario. - * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "PTnHnMnS". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Time within the maintenance window to start the maintenance operations. - * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. - * - * Generated from protobuf field string start_time = 2; - * @return string - */ - public function getStartTime() - { - return $this->start_time; - } - - /** - * Time within the maintenance window to start the maintenance operations. - * Time format should be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. - * - * Generated from protobuf field string start_time = 2; - * @param string $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkString($var, True); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. Duration of the time window, automatically chosen to be - * smallest possible in the given scenario. - * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "PTnHnMnS". - * - * Generated from protobuf field string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDuration() - { - return $this->duration; - } - - /** - * Output only. Duration of the time window, automatically chosen to be - * smallest possible in the given scenario. - * Duration will be in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) - * format "PTnHnMnS". - * - * Generated from protobuf field string duration = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDuration($var) - { - GPBUtil::checkString($var, True); - $this->duration = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php deleted file mode 100644 index 28de62926feb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption.php +++ /dev/null @@ -1,229 +0,0 @@ -google.container.v1.DatabaseEncryption - */ -class DatabaseEncryption extends \Google\Protobuf\Internal\Message -{ - /** - * Name of CloudKMS key to use for the encryption of secrets in etcd. - * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - * - * Generated from protobuf field string key_name = 1; - */ - protected $key_name = ''; - /** - * The desired state of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; - */ - protected $state = 0; - /** - * Output only. The current state of etcd encryption. - * - * Generated from protobuf field optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $current_state = null; - /** - * Output only. Keys in use by the cluster for decrypting - * existing objects, in addition to the key in `key_name`. - * Each item is a CloudKMS key resource. - * - * Generated from protobuf field repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $decryption_keys; - /** - * Output only. Records errors seen during DatabaseEncryption update - * operations. - * - * Generated from protobuf field repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $last_operation_errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_name - * Name of CloudKMS key to use for the encryption of secrets in etcd. - * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - * @type int $state - * The desired state of etcd encryption. - * @type int $current_state - * Output only. The current state of etcd encryption. - * @type array|\Google\Protobuf\Internal\RepeatedField $decryption_keys - * Output only. Keys in use by the cluster for decrypting - * existing objects, in addition to the key in `key_name`. - * Each item is a CloudKMS key resource. - * @type array<\Google\Cloud\Container\V1\DatabaseEncryption\OperationError>|\Google\Protobuf\Internal\RepeatedField $last_operation_errors - * Output only. Records errors seen during DatabaseEncryption update - * operations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Name of CloudKMS key to use for the encryption of secrets in etcd. - * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - * - * Generated from protobuf field string key_name = 1; - * @return string - */ - public function getKeyName() - { - return $this->key_name; - } - - /** - * Name of CloudKMS key to use for the encryption of secrets in etcd. - * Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key - * - * Generated from protobuf field string key_name = 1; - * @param string $var - * @return $this - */ - public function setKeyName($var) - { - GPBUtil::checkString($var, True); - $this->key_name = $var; - - return $this; - } - - /** - * The desired state of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The desired state of etcd encryption. - * - * Generated from protobuf field .google.container.v1.DatabaseEncryption.State state = 2; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatabaseEncryption\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The current state of etcd encryption. - * - * Generated from protobuf field optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getCurrentState() - { - return isset($this->current_state) ? $this->current_state : 0; - } - - public function hasCurrentState() - { - return isset($this->current_state); - } - - public function clearCurrentState() - { - unset($this->current_state); - } - - /** - * Output only. The current state of etcd encryption. - * - * Generated from protobuf field optional .google.container.v1.DatabaseEncryption.CurrentState current_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setCurrentState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatabaseEncryption\CurrentState::class); - $this->current_state = $var; - - return $this; - } - - /** - * Output only. Keys in use by the cluster for decrypting - * existing objects, in addition to the key in `key_name`. - * Each item is a CloudKMS key resource. - * - * Generated from protobuf field repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDecryptionKeys() - { - return $this->decryption_keys; - } - - /** - * Output only. Keys in use by the cluster for decrypting - * existing objects, in addition to the key in `key_name`. - * Each item is a CloudKMS key resource. - * - * Generated from protobuf field repeated string decryption_keys = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDecryptionKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->decryption_keys = $arr; - - return $this; - } - - /** - * Output only. Records errors seen during DatabaseEncryption update - * operations. - * - * Generated from protobuf field repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLastOperationErrors() - { - return $this->last_operation_errors; - } - - /** - * Output only. Records errors seen during DatabaseEncryption update - * operations. - * - * Generated from protobuf field repeated .google.container.v1.DatabaseEncryption.OperationError last_operation_errors = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Container\V1\DatabaseEncryption\OperationError>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLastOperationErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\DatabaseEncryption\OperationError::class); - $this->last_operation_errors = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php deleted file mode 100644 index 56936b10a1c3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/CurrentState.php +++ /dev/null @@ -1,95 +0,0 @@ -google.container.v1.DatabaseEncryption.CurrentState - */ -class CurrentState -{ - /** - * Should never be set - * - * Generated from protobuf enum CURRENT_STATE_UNSPECIFIED = 0; - */ - const CURRENT_STATE_UNSPECIFIED = 0; - /** - * Secrets in etcd are encrypted. - * - * Generated from protobuf enum CURRENT_STATE_ENCRYPTED = 7; - */ - const CURRENT_STATE_ENCRYPTED = 7; - /** - * Secrets in etcd are stored in plain text (at etcd level) - this is - * unrelated to Compute Engine level full disk encryption. - * - * Generated from protobuf enum CURRENT_STATE_DECRYPTED = 2; - */ - const CURRENT_STATE_DECRYPTED = 2; - /** - * Encryption (or re-encryption with a different CloudKMS key) - * of Secrets is in progress. - * - * Generated from protobuf enum CURRENT_STATE_ENCRYPTION_PENDING = 3; - */ - const CURRENT_STATE_ENCRYPTION_PENDING = 3; - /** - * Encryption (or re-encryption with a different CloudKMS key) of Secrets in - * etcd encountered an error. - * - * Generated from protobuf enum CURRENT_STATE_ENCRYPTION_ERROR = 4; - */ - const CURRENT_STATE_ENCRYPTION_ERROR = 4; - /** - * De-crypting Secrets to plain text in etcd is in progress. - * - * Generated from protobuf enum CURRENT_STATE_DECRYPTION_PENDING = 5; - */ - const CURRENT_STATE_DECRYPTION_PENDING = 5; - /** - * De-crypting Secrets to plain text in etcd encountered an error. - * - * Generated from protobuf enum CURRENT_STATE_DECRYPTION_ERROR = 6; - */ - const CURRENT_STATE_DECRYPTION_ERROR = 6; - - private static $valueToName = [ - self::CURRENT_STATE_UNSPECIFIED => 'CURRENT_STATE_UNSPECIFIED', - self::CURRENT_STATE_ENCRYPTED => 'CURRENT_STATE_ENCRYPTED', - self::CURRENT_STATE_DECRYPTED => 'CURRENT_STATE_DECRYPTED', - self::CURRENT_STATE_ENCRYPTION_PENDING => 'CURRENT_STATE_ENCRYPTION_PENDING', - self::CURRENT_STATE_ENCRYPTION_ERROR => 'CURRENT_STATE_ENCRYPTION_ERROR', - self::CURRENT_STATE_DECRYPTION_PENDING => 'CURRENT_STATE_DECRYPTION_PENDING', - self::CURRENT_STATE_DECRYPTION_ERROR => 'CURRENT_STATE_DECRYPTION_ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CurrentState::class, \Google\Cloud\Container\V1\DatabaseEncryption_CurrentState::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php deleted file mode 100644 index 1b513765d51b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/OperationError.php +++ /dev/null @@ -1,149 +0,0 @@ -google.container.v1.DatabaseEncryption.OperationError - */ -class OperationError extends \Google\Protobuf\Internal\Message -{ - /** - * CloudKMS key resource that had the error. - * - * Generated from protobuf field string key_name = 1; - */ - protected $key_name = ''; - /** - * Description of the error seen during the operation. - * - * Generated from protobuf field string error_message = 2; - */ - protected $error_message = ''; - /** - * Time when the CloudKMS error was seen. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - */ - protected $timestamp = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_name - * CloudKMS key resource that had the error. - * @type string $error_message - * Description of the error seen during the operation. - * @type \Google\Protobuf\Timestamp $timestamp - * Time when the CloudKMS error was seen. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * CloudKMS key resource that had the error. - * - * Generated from protobuf field string key_name = 1; - * @return string - */ - public function getKeyName() - { - return $this->key_name; - } - - /** - * CloudKMS key resource that had the error. - * - * Generated from protobuf field string key_name = 1; - * @param string $var - * @return $this - */ - public function setKeyName($var) - { - GPBUtil::checkString($var, True); - $this->key_name = $var; - - return $this; - } - - /** - * Description of the error seen during the operation. - * - * Generated from protobuf field string error_message = 2; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * Description of the error seen during the operation. - * - * 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; - } - - /** - * Time when the CloudKMS error was seen. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * Time when the CloudKMS error was seen. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OperationError::class, \Google\Cloud\Container\V1\DatabaseEncryption_OperationError::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php deleted file mode 100644 index 98e8b9929762..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatabaseEncryption/State.php +++ /dev/null @@ -1,65 +0,0 @@ -google.container.v1.DatabaseEncryption.State - */ -class State -{ - /** - * Should never be set - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Secrets in etcd are encrypted. - * - * Generated from protobuf enum ENCRYPTED = 1; - */ - const ENCRYPTED = 1; - /** - * Secrets in etcd are stored in plain text (at etcd level) - this is - * unrelated to Compute Engine level full disk encryption. - * - * Generated from protobuf enum DECRYPTED = 2; - */ - const DECRYPTED = 2; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::ENCRYPTED => 'ENCRYPTED', - self::DECRYPTED => 'DECRYPTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Container\V1\DatabaseEncryption_State::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php deleted file mode 100644 index b346731a33e4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DatapathProvider.php +++ /dev/null @@ -1,65 +0,0 @@ -google.container.v1.DatapathProvider - */ -class DatapathProvider -{ - /** - * Default value. - * - * Generated from protobuf enum DATAPATH_PROVIDER_UNSPECIFIED = 0; - */ - const DATAPATH_PROVIDER_UNSPECIFIED = 0; - /** - * Use the IPTables implementation based on kube-proxy. - * - * Generated from protobuf enum LEGACY_DATAPATH = 1; - */ - const LEGACY_DATAPATH = 1; - /** - * Use the eBPF based GKE Dataplane V2 with additional features. See the [GKE - * Dataplane V2 - * documentation](https://cloud.google.com/kubernetes-engine/docs/how-to/dataplane-v2) - * for more. - * - * Generated from protobuf enum ADVANCED_DATAPATH = 2; - */ - const ADVANCED_DATAPATH = 2; - - private static $valueToName = [ - self::DATAPATH_PROVIDER_UNSPECIFIED => 'DATAPATH_PROVIDER_UNSPECIFIED', - self::LEGACY_DATAPATH => 'LEGACY_DATAPATH', - self::ADVANCED_DATAPATH => 'ADVANCED_DATAPATH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php deleted file mode 100644 index b7bfa31d2eae..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DefaultSnatStatus.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.DefaultSnatStatus - */ -class DefaultSnatStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Disables cluster default sNAT rules. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Disables cluster default sNAT rules. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Disables cluster default sNAT rules. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Disables cluster default sNAT rules. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php deleted file mode 100644 index 5fbd5929f476..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteClusterRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.DeleteClusterRequest - */ -class DeleteClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\DeleteClusterRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * @return \Google\Cloud\Container\V1\DeleteClusterRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to delete. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php deleted file mode 100644 index 8da8944d2389..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DeleteNodePoolRequest.php +++ /dev/null @@ -1,300 +0,0 @@ -google.container.v1.DeleteNodePoolRequest - */ -class DeleteNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param string $nodePoolId Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\DeleteNodePoolRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $nodePoolId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setNodePoolId($nodePoolId); - } - - /** - * @param string $name The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * @return \Google\Cloud\Container\V1\DeleteNodePoolRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to delete. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * delete. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php deleted file mode 100644 index d97751e491df..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/DnsCacheConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.DnsCacheConfig - */ -class DnsCacheConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether NodeLocal DNSCache is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether NodeLocal DNSCache is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether NodeLocal DNSCache is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether NodeLocal DNSCache is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php deleted file mode 100644 index 8f53cca0b529..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.EnterpriseConfig - */ -class EnterpriseConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. cluster_tier indicates the effective tier of the cluster. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_tier = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cluster_tier - * Output only. cluster_tier indicates the effective tier of the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. cluster_tier indicates the effective tier of the cluster. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getClusterTier() - { - return $this->cluster_tier; - } - - /** - * Output only. cluster_tier indicates the effective tier of the cluster. - * - * Generated from protobuf field .google.container.v1.EnterpriseConfig.ClusterTier cluster_tier = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setClusterTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\EnterpriseConfig\ClusterTier::class); - $this->cluster_tier = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php deleted file mode 100644 index b5705813e917..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EnterpriseConfig/ClusterTier.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.EnterpriseConfig.ClusterTier - */ -class ClusterTier -{ - /** - * CLUSTER_TIER_UNSPECIFIED is when cluster_tier is not set. - * - * Generated from protobuf enum CLUSTER_TIER_UNSPECIFIED = 0; - */ - const CLUSTER_TIER_UNSPECIFIED = 0; - /** - * STANDARD indicates a standard GKE cluster. - * - * Generated from protobuf enum STANDARD = 1; - */ - const STANDARD = 1; - /** - * ENTERPRISE indicates a GKE Enterprise cluster. - * - * Generated from protobuf enum ENTERPRISE = 2; - */ - const ENTERPRISE = 2; - - private static $valueToName = [ - self::CLUSTER_TIER_UNSPECIFIED => 'CLUSTER_TIER_UNSPECIFIED', - self::STANDARD => 'STANDARD', - self::ENTERPRISE => 'ENTERPRISE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ClusterTier::class, \Google\Cloud\Container\V1\EnterpriseConfig_ClusterTier::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php deleted file mode 100644 index 9e7a7edbb66f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/EphemeralStorageLocalSsdConfig.php +++ /dev/null @@ -1,132 +0,0 @@ -google.container.v1.EphemeralStorageLocalSsdConfig - */ -class EphemeralStorageLocalSsdConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. The - * limit for this value is dependent upon the maximum number of disk - * available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - */ - protected $local_ssd_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $local_ssd_count - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. The - * limit for this value is dependent upon the maximum number of disk - * available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. The - * limit for this value is dependent upon the maximum number of disk - * available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - * @return int - */ - public function getLocalSsdCount() - { - return $this->local_ssd_count; - } - - /** - * Number of local SSDs to use to back ephemeral storage. Uses NVMe - * interfaces. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. The - * limit for this value is dependent upon the maximum number of disk - * available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - * @param int $var - * @return $this - */ - public function setLocalSsdCount($var) - { - GPBUtil::checkInt32($var); - $this->local_ssd_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php deleted file mode 100644 index 18d90d015cd3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/FastSocket.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.FastSocket - */ -class FastSocket extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Fast Socket features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Fast Socket features are enabled in the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Fast Socket features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Fast Socket features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php deleted file mode 100644 index 897bbf18e825..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Fleet.php +++ /dev/null @@ -1,155 +0,0 @@ -google.container.v1.Fleet - */ -class Fleet extends \Google\Protobuf\Internal\Message -{ - /** - * The Fleet host project(project ID or project number) where this cluster - * will be registered to. This field cannot be changed after the cluster has - * been registered. - * - * Generated from protobuf field string project = 1; - */ - protected $project = ''; - /** - * Output only. The full resource name of the registered fleet membership of - * the cluster, in the format - * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. - * - * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $membership = ''; - /** - * Output only. Whether the cluster has been registered through the fleet - * API. - * - * Generated from protobuf field bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pre_registered = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project - * The Fleet host project(project ID or project number) where this cluster - * will be registered to. This field cannot be changed after the cluster has - * been registered. - * @type string $membership - * Output only. The full resource name of the registered fleet membership of - * the cluster, in the format - * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. - * @type bool $pre_registered - * Output only. Whether the cluster has been registered through the fleet - * API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Fleet host project(project ID or project number) where this cluster - * will be registered to. This field cannot be changed after the cluster has - * been registered. - * - * Generated from protobuf field string project = 1; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * The Fleet host project(project ID or project number) where this cluster - * will be registered to. This field cannot be changed after the cluster has - * been registered. - * - * Generated from protobuf field string project = 1; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Output only. The full resource name of the registered fleet membership of - * the cluster, in the format - * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. - * - * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getMembership() - { - return $this->membership; - } - - /** - * Output only. The full resource name of the registered fleet membership of - * the cluster, in the format - * `//gkehub.googleapis.com/projects/*/locations/*/memberships/*`. - * - * Generated from protobuf field string membership = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setMembership($var) - { - GPBUtil::checkString($var, True); - $this->membership = $var; - - return $this; - } - - /** - * Output only. Whether the cluster has been registered through the fleet - * API. - * - * Generated from protobuf field bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getPreRegistered() - { - return $this->pre_registered; - } - - /** - * Output only. Whether the cluster has been registered through the fleet - * API. - * - * Generated from protobuf field bool pre_registered = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setPreRegistered($var) - { - GPBUtil::checkBool($var); - $this->pre_registered = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php deleted file mode 100644 index 5893eba5ed8e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.GPUDriverInstallationConfig - */ -class GPUDriverInstallationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Mode for how the GPU driver is installed. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - */ - protected $gpu_driver_version = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $gpu_driver_version - * Mode for how the GPU driver is installed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Mode for how the GPU driver is installed. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * @return int - */ - public function getGpuDriverVersion() - { - return isset($this->gpu_driver_version) ? $this->gpu_driver_version : 0; - } - - public function hasGpuDriverVersion() - { - return isset($this->gpu_driver_version); - } - - public function clearGpuDriverVersion() - { - unset($this->gpu_driver_version); - } - - /** - * Mode for how the GPU driver is installed. - * - * Generated from protobuf field optional .google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion gpu_driver_version = 1; - * @param int $var - * @return $this - */ - public function setGpuDriverVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GPUDriverInstallationConfig\GPUDriverVersion::class); - $this->gpu_driver_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php deleted file mode 100644 index 2f3d3e8af1cb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUDriverInstallationConfig/GPUDriverVersion.php +++ /dev/null @@ -1,75 +0,0 @@ -google.container.v1.GPUDriverInstallationConfig.GPUDriverVersion - */ -class GPUDriverVersion -{ - /** - * Default value is to not install any GPU driver. - * - * Generated from protobuf enum GPU_DRIVER_VERSION_UNSPECIFIED = 0; - */ - const GPU_DRIVER_VERSION_UNSPECIFIED = 0; - /** - * Disable GPU driver auto installation and needs manual installation - * - * Generated from protobuf enum INSTALLATION_DISABLED = 1; - */ - const INSTALLATION_DISABLED = 1; - /** - * "Default" GPU driver in COS and Ubuntu. - * - * Generated from protobuf enum DEFAULT = 2; - */ - const PBDEFAULT = 2; - /** - * "Latest" GPU driver in COS. - * - * Generated from protobuf enum LATEST = 3; - */ - const LATEST = 3; - - private static $valueToName = [ - self::GPU_DRIVER_VERSION_UNSPECIFIED => 'GPU_DRIVER_VERSION_UNSPECIFIED', - self::INSTALLATION_DISABLED => 'INSTALLATION_DISABLED', - self::PBDEFAULT => 'DEFAULT', - self::LATEST => 'LATEST', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has 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(GPUDriverVersion::class, \Google\Cloud\Container\V1\GPUDriverInstallationConfig_GPUDriverVersion::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php deleted file mode 100644 index 2badc2e49622..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig.php +++ /dev/null @@ -1,112 +0,0 @@ -google.container.v1.GPUSharingConfig - */ -class GPUSharingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The max number of containers that can share a physical GPU. - * - * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; - */ - protected $max_shared_clients_per_gpu = 0; - /** - * The type of GPU sharing strategy to enable on the GPU node. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - */ - protected $gpu_sharing_strategy = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $max_shared_clients_per_gpu - * The max number of containers that can share a physical GPU. - * @type int $gpu_sharing_strategy - * The type of GPU sharing strategy to enable on the GPU node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The max number of containers that can share a physical GPU. - * - * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; - * @return int|string - */ - public function getMaxSharedClientsPerGpu() - { - return $this->max_shared_clients_per_gpu; - } - - /** - * The max number of containers that can share a physical GPU. - * - * Generated from protobuf field int64 max_shared_clients_per_gpu = 1; - * @param int|string $var - * @return $this - */ - public function setMaxSharedClientsPerGpu($var) - { - GPBUtil::checkInt64($var); - $this->max_shared_clients_per_gpu = $var; - - return $this; - } - - /** - * The type of GPU sharing strategy to enable on the GPU node. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * @return int - */ - public function getGpuSharingStrategy() - { - return isset($this->gpu_sharing_strategy) ? $this->gpu_sharing_strategy : 0; - } - - public function hasGpuSharingStrategy() - { - return isset($this->gpu_sharing_strategy); - } - - public function clearGpuSharingStrategy() - { - unset($this->gpu_sharing_strategy); - } - - /** - * The type of GPU sharing strategy to enable on the GPU node. - * - * Generated from protobuf field optional .google.container.v1.GPUSharingConfig.GPUSharingStrategy gpu_sharing_strategy = 2; - * @param int $var - * @return $this - */ - public function setGpuSharingStrategy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GPUSharingConfig\GPUSharingStrategy::class); - $this->gpu_sharing_strategy = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php deleted file mode 100644 index 5f02af567fdb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GPUSharingConfig/GPUSharingStrategy.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.GPUSharingConfig.GPUSharingStrategy - */ -class GPUSharingStrategy -{ - /** - * Default value. - * - * Generated from protobuf enum GPU_SHARING_STRATEGY_UNSPECIFIED = 0; - */ - const GPU_SHARING_STRATEGY_UNSPECIFIED = 0; - /** - * GPUs are time-shared between containers. - * - * Generated from protobuf enum TIME_SHARING = 1; - */ - const TIME_SHARING = 1; - /** - * GPUs are shared between containers with NVIDIA MPS. - * - * Generated from protobuf enum MPS = 2; - */ - const MPS = 2; - - private static $valueToName = [ - self::GPU_SHARING_STRATEGY_UNSPECIFIED => 'GPU_SHARING_STRATEGY_UNSPECIFIED', - self::TIME_SHARING => 'TIME_SHARING', - self::MPS => 'MPS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GPUSharingStrategy::class, \Google\Cloud\Container\V1\GPUSharingConfig_GPUSharingStrategy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php deleted file mode 100644 index 4dce79867c91..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GatewayAPIConfig - */ -class GatewayAPIConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Gateway API release channel to use for Gateway API. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; - */ - protected $channel = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $channel - * The Gateway API release channel to use for Gateway API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Gateway API release channel to use for Gateway API. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * @return int - */ - public function getChannel() - { - return $this->channel; - } - - /** - * The Gateway API release channel to use for Gateway API. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig.Channel channel = 1; - * @param int $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\GatewayAPIConfig\Channel::class); - $this->channel = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php deleted file mode 100644 index 76dd2a6fc393..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GatewayAPIConfig/Channel.php +++ /dev/null @@ -1,73 +0,0 @@ -google.container.v1.GatewayAPIConfig.Channel - */ -class Channel -{ - /** - * Default value. - * - * Generated from protobuf enum CHANNEL_UNSPECIFIED = 0; - */ - const CHANNEL_UNSPECIFIED = 0; - /** - * Gateway API support is disabled - * - * Generated from protobuf enum CHANNEL_DISABLED = 1; - */ - const CHANNEL_DISABLED = 1; - /** - * Deprecated: use CHANNEL_STANDARD instead. - * Gateway API support is enabled, experimental CRDs are installed - * - * Generated from protobuf enum CHANNEL_EXPERIMENTAL = 3 [deprecated = true]; - */ - const CHANNEL_EXPERIMENTAL = 3; - /** - * Gateway API support is enabled, standard CRDs are installed - * - * Generated from protobuf enum CHANNEL_STANDARD = 4; - */ - const CHANNEL_STANDARD = 4; - - private static $valueToName = [ - self::CHANNEL_UNSPECIFIED => 'CHANNEL_UNSPECIFIED', - self::CHANNEL_DISABLED => 'CHANNEL_DISABLED', - self::CHANNEL_EXPERIMENTAL => 'CHANNEL_EXPERIMENTAL', - self::CHANNEL_STANDARD => 'CHANNEL_STANDARD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Channel::class, \Google\Cloud\Container\V1\GatewayAPIConfig_Channel::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php deleted file mode 100644 index 79388de90a25..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcePersistentDiskCsiDriverConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GcePersistentDiskCsiDriverConfig - */ -class GcePersistentDiskCsiDriverConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Compute Engine PD CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Compute Engine PD CSI driver is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Compute Engine PD CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Compute Engine PD CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php deleted file mode 100644 index 3f110ac4b85a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcfsConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.GcfsConfig - */ -class GcfsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether to use GCFS. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether to use GCFS. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether to use GCFS. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether to use GCFS. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php deleted file mode 100644 index c100bb46cc57..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcpFilestoreCsiDriverConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GcpFilestoreCsiDriverConfig - */ -class GcpFilestoreCsiDriverConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the GCP Filestore CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the GCP Filestore CSI driver is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the GCP Filestore CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the GCP Filestore CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php deleted file mode 100644 index 18c4664f0894..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GcsFuseCsiDriverConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GcsFuseCsiDriverConfig - */ -class GcsFuseCsiDriverConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Cloud Storage Fuse CSI driver is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php deleted file mode 100644 index 35eef236164e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetClusterRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.GetClusterRequest - */ -class GetClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\GetClusterRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * @return \Google\Cloud\Container\V1\GetClusterRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to retrieve. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to retrieve. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php deleted file mode 100644 index 51b7332269ce..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysRequest.php +++ /dev/null @@ -1,74 +0,0 @@ -google.container.v1.GetJSONWebKeysRequest - */ -class GetJSONWebKeysRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The cluster (project, location, cluster name) to get keys for. Specified in - * the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php deleted file mode 100644 index e87ea71c60c3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetJSONWebKeysResponse.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.GetJSONWebKeysResponse - */ -class GetJSONWebKeysResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The public component of the keys used by the cluster to sign token - * requests. - * - * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; - */ - private $keys; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\Jwk>|\Google\Protobuf\Internal\RepeatedField $keys - * The public component of the keys used by the cluster to sign token - * requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The public component of the keys used by the cluster to sign token - * requests. - * - * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeys() - { - return $this->keys; - } - - /** - * The public component of the keys used by the cluster to sign token - * requests. - * - * Generated from protobuf field repeated .google.container.v1.Jwk keys = 1; - * @param array<\Google\Cloud\Container\V1\Jwk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Jwk::class); - $this->keys = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php deleted file mode 100644 index 3a6cd8bd5255..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetNodePoolRequest.php +++ /dev/null @@ -1,300 +0,0 @@ -google.container.v1.GetNodePoolRequest - */ -class GetNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param string $nodePoolId Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\GetNodePoolRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $nodePoolId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setNodePoolId($nodePoolId); - } - - /** - * @param string $name The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * @return \Google\Cloud\Container\V1\GetNodePoolRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to - * get. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php deleted file mode 100644 index 91eed5acb736..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigRequest.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.GetOpenIDConfigRequest - */ -class GetOpenIDConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The cluster (project, location, cluster name) to get the discovery document - * for. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php deleted file mode 100644 index 99ed8727e6b6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOpenIDConfigResponse.php +++ /dev/null @@ -1,272 +0,0 @@ -google.container.v1.GetOpenIDConfigResponse - */ -class GetOpenIDConfigResponse extends \Google\Protobuf\Internal\Message -{ - /** - * OIDC Issuer. - * - * Generated from protobuf field string issuer = 1; - */ - protected $issuer = ''; - /** - * JSON Web Key uri. - * - * Generated from protobuf field string jwks_uri = 2; - */ - protected $jwks_uri = ''; - /** - * Supported response types. - * - * Generated from protobuf field repeated string response_types_supported = 3; - */ - private $response_types_supported; - /** - * Supported subject types. - * - * Generated from protobuf field repeated string subject_types_supported = 4; - */ - private $subject_types_supported; - /** - * supported ID Token signing Algorithms. - * - * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; - */ - private $id_token_signing_alg_values_supported; - /** - * Supported claims. - * - * Generated from protobuf field repeated string claims_supported = 6; - */ - private $claims_supported; - /** - * Supported grant types. - * - * Generated from protobuf field repeated string grant_types = 7; - */ - private $grant_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $issuer - * OIDC Issuer. - * @type string $jwks_uri - * JSON Web Key uri. - * @type array|\Google\Protobuf\Internal\RepeatedField $response_types_supported - * Supported response types. - * @type array|\Google\Protobuf\Internal\RepeatedField $subject_types_supported - * Supported subject types. - * @type array|\Google\Protobuf\Internal\RepeatedField $id_token_signing_alg_values_supported - * supported ID Token signing Algorithms. - * @type array|\Google\Protobuf\Internal\RepeatedField $claims_supported - * Supported claims. - * @type array|\Google\Protobuf\Internal\RepeatedField $grant_types - * Supported grant types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * OIDC Issuer. - * - * Generated from protobuf field string issuer = 1; - * @return string - */ - public function getIssuer() - { - return $this->issuer; - } - - /** - * OIDC Issuer. - * - * Generated from protobuf field string issuer = 1; - * @param string $var - * @return $this - */ - public function setIssuer($var) - { - GPBUtil::checkString($var, True); - $this->issuer = $var; - - return $this; - } - - /** - * JSON Web Key uri. - * - * Generated from protobuf field string jwks_uri = 2; - * @return string - */ - public function getJwksUri() - { - return $this->jwks_uri; - } - - /** - * JSON Web Key uri. - * - * Generated from protobuf field string jwks_uri = 2; - * @param string $var - * @return $this - */ - public function setJwksUri($var) - { - GPBUtil::checkString($var, True); - $this->jwks_uri = $var; - - return $this; - } - - /** - * Supported response types. - * - * Generated from protobuf field repeated string response_types_supported = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResponseTypesSupported() - { - return $this->response_types_supported; - } - - /** - * Supported response types. - * - * Generated from protobuf field repeated string response_types_supported = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResponseTypesSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->response_types_supported = $arr; - - return $this; - } - - /** - * Supported subject types. - * - * Generated from protobuf field repeated string subject_types_supported = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubjectTypesSupported() - { - return $this->subject_types_supported; - } - - /** - * Supported subject types. - * - * Generated from protobuf field repeated string subject_types_supported = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubjectTypesSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->subject_types_supported = $arr; - - return $this; - } - - /** - * supported ID Token signing Algorithms. - * - * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIdTokenSigningAlgValuesSupported() - { - return $this->id_token_signing_alg_values_supported; - } - - /** - * supported ID Token signing Algorithms. - * - * Generated from protobuf field repeated string id_token_signing_alg_values_supported = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIdTokenSigningAlgValuesSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->id_token_signing_alg_values_supported = $arr; - - return $this; - } - - /** - * Supported claims. - * - * Generated from protobuf field repeated string claims_supported = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getClaimsSupported() - { - return $this->claims_supported; - } - - /** - * Supported claims. - * - * Generated from protobuf field repeated string claims_supported = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setClaimsSupported($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->claims_supported = $arr; - - return $this; - } - - /** - * Supported grant types. - * - * Generated from protobuf field repeated string grant_types = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGrantTypes() - { - return $this->grant_types; - } - - /** - * Supported grant types. - * - * Generated from protobuf field repeated string grant_types = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGrantTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->grant_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php deleted file mode 100644 index c07ae9a9dd77..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetOperationRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.GetOperationRequest - */ -class GetOperationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @deprecated - */ - protected $operation_id = ''; - /** - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $operationId Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\GetOperationRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $operationId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setOperationId($operationId); - } - - /** - * @param string $name The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * @return \Google\Cloud\Container\V1\GetOperationRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $operation_id - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getOperationId() - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - return $this->operation_id; - } - - /** - * Deprecated. The server-assigned `name` of the operation. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string operation_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setOperationId($var) - { - @trigger_error('operation_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->operation_id = $var; - - return $this; - } - - /** - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, operation id) of the operation to get. - * Specified in the format `projects/*/locations/*/operations/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php deleted file mode 100644 index f8c09b1b122c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GetServerConfigRequest.php +++ /dev/null @@ -1,203 +0,0 @@ -google.container.v1.GetServerConfigRequest - */ -class GetServerConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string name = 4; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * @return \Google\Cloud\Container\V1\GetServerConfigRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone); - } - - /** - * @param string $name The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * @return \Google\Cloud\Container\V1\GetServerConfigRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * @type string $name - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string name = 4; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project and location) of the server config to get, - * specified in the format `projects/*/locations/*`. - * - * Generated from protobuf field string name = 4; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php deleted file mode 100644 index de7ae1b5392b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/GkeBackupAgentConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.GkeBackupAgentConfig - */ -class GkeBackupAgentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Backup for GKE agent is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Backup for GKE agent is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Backup for GKE agent is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Backup for GKE agent is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php deleted file mode 100644 index 0e904a7e225a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HorizontalPodAutoscaling.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.HorizontalPodAutoscaling - */ -class HorizontalPodAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. - * When enabled, it ensures that metrics are collected into Stackdriver - * Monitoring. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php deleted file mode 100644 index abe2b7c900b2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/HttpLoadBalancing.php +++ /dev/null @@ -1,76 +0,0 @@ -google.container.v1.HttpLoadBalancing - */ -class HttpLoadBalancing extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether the HTTP Load Balancing controller is enabled in the cluster. - * When enabled, it runs a small pod in the cluster that manages the load - * balancers. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php deleted file mode 100644 index 64b0d8c63670..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ILBSubsettingConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ILBSubsettingConfig - */ -class ILBSubsettingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enables l4 ILB subsetting for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enables l4 ILB subsetting for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enables l4 ILB subsetting for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enables l4 ILB subsetting for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php deleted file mode 100644 index 6c748fd8f4d3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPAllocationPolicy.php +++ /dev/null @@ -1,1036 +0,0 @@ -google.container.v1.IPAllocationPolicy - */ -class IPAllocationPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_ip_aliases = 1; - */ - protected $use_ip_aliases = false; - /** - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * - * Generated from protobuf field bool create_subnetwork = 2; - */ - protected $create_subnetwork = false; - /** - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * - * Generated from protobuf field string subnetwork_name = 3; - */ - protected $subnetwork_name = ''; - /** - * This field is deprecated, use cluster_ipv4_cidr_block. - * - * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; - * @deprecated - */ - protected $cluster_ipv4_cidr = ''; - /** - * This field is deprecated, use node_ipv4_cidr_block. - * - * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; - * @deprecated - */ - protected $node_ipv4_cidr = ''; - /** - * This field is deprecated, use services_ipv4_cidr_block. - * - * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; - * @deprecated - */ - protected $services_ipv4_cidr = ''; - /** - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string cluster_secondary_range_name = 7; - */ - protected $cluster_secondary_range_name = ''; - /** - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string services_secondary_range_name = 8; - */ - protected $services_secondary_range_name = ''; - /** - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string cluster_ipv4_cidr_block = 9; - */ - protected $cluster_ipv4_cidr_block = ''; - /** - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string node_ipv4_cidr_block = 10; - */ - protected $node_ipv4_cidr_block = ''; - /** - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string services_ipv4_cidr_block = 11; - */ - protected $services_ipv4_cidr_block = ''; - /** - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 13; - */ - protected $tpu_ipv4_cidr_block = ''; - /** - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_routes = 15; - */ - protected $use_routes = false; - /** - * The IP stack type of the cluster - * - * Generated from protobuf field .google.container.v1.StackType stack_type = 16; - */ - protected $stack_type = 0; - /** - * The ipv6 access type (internal or external) when create_subnetwork is true - * - * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; - */ - protected $ipv6_access_type = 0; - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the cluster. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is doubled and then rounded off to next power of 2 to - * get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - */ - protected $pod_cidr_overprovision_config = null; - /** - * Output only. The subnet's IPv6 CIDR block used by nodes and pods. - * - * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $subnet_ipv6_cidr_block = ''; - /** - * Output only. The services IPv6 CIDR block for the cluster. - * - * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $services_ipv6_cidr_block = ''; - /** - * Output only. The additional pod ranges that are added to the cluster. - * These pod ranges can be used by new node pools to allocate pod IPs - * automatically. Once the range is removed it will not show up in - * IPAllocationPolicy. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $additional_pod_ranges_config = null; - /** - * Output only. The utilization of the cluster default IPv4 range for the - * pod. The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $default_pod_ipv4_range_utilization = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $use_ip_aliases - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * @type bool $create_subnetwork - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * @type string $subnetwork_name - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * @type string $cluster_ipv4_cidr - * This field is deprecated, use cluster_ipv4_cidr_block. - * @type string $node_ipv4_cidr - * This field is deprecated, use node_ipv4_cidr_block. - * @type string $services_ipv4_cidr - * This field is deprecated, use services_ipv4_cidr_block. - * @type string $cluster_secondary_range_name - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * @type string $services_secondary_range_name - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * @type string $cluster_ipv4_cidr_block - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type string $node_ipv4_cidr_block - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type string $services_ipv4_cidr_block - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type string $tpu_ipv4_cidr_block - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * @type bool $use_routes - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * @type int $stack_type - * The IP stack type of the cluster - * @type int $ipv6_access_type - * The ipv6 access type (internal or external) when create_subnetwork is true - * @type \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $pod_cidr_overprovision_config - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the cluster. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is doubled and then rounded off to next power of 2 to - * get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * @type string $subnet_ipv6_cidr_block - * Output only. The subnet's IPv6 CIDR block used by nodes and pods. - * @type string $services_ipv6_cidr_block - * Output only. The services IPv6 CIDR block for the cluster. - * @type \Google\Cloud\Container\V1\AdditionalPodRangesConfig $additional_pod_ranges_config - * Output only. The additional pod ranges that are added to the cluster. - * These pod ranges can be used by new node pools to allocate pod IPs - * automatically. Once the range is removed it will not show up in - * IPAllocationPolicy. - * @type float $default_pod_ipv4_range_utilization - * Output only. The utilization of the cluster default IPv4 range for the - * pod. The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_ip_aliases = 1; - * @return bool - */ - public function getUseIpAliases() - { - return $this->use_ip_aliases; - } - - /** - * Whether alias IPs will be used for pod IPs in the cluster. - * This is used in conjunction with use_routes. It cannot - * be true if use_routes is true. If both use_ip_aliases and use_routes are - * false, then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_ip_aliases = 1; - * @param bool $var - * @return $this - */ - public function setUseIpAliases($var) - { - GPBUtil::checkBool($var); - $this->use_ip_aliases = $var; - - return $this; - } - - /** - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * - * Generated from protobuf field bool create_subnetwork = 2; - * @return bool - */ - public function getCreateSubnetwork() - { - return $this->create_subnetwork; - } - - /** - * Whether a new subnetwork will be created automatically for the cluster. - * This field is only applicable when `use_ip_aliases` is true. - * - * Generated from protobuf field bool create_subnetwork = 2; - * @param bool $var - * @return $this - */ - public function setCreateSubnetwork($var) - { - GPBUtil::checkBool($var); - $this->create_subnetwork = $var; - - return $this; - } - - /** - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * - * Generated from protobuf field string subnetwork_name = 3; - * @return string - */ - public function getSubnetworkName() - { - return $this->subnetwork_name; - } - - /** - * A custom subnetwork name to be used if `create_subnetwork` is true. If - * this field is empty, then an automatic name will be chosen for the new - * subnetwork. - * - * Generated from protobuf field string subnetwork_name = 3; - * @param string $var - * @return $this - */ - public function setSubnetworkName($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork_name = $var; - - return $this; - } - - /** - * This field is deprecated, use cluster_ipv4_cidr_block. - * - * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterIpv4Cidr() - { - @trigger_error('cluster_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - return $this->cluster_ipv4_cidr; - } - - /** - * This field is deprecated, use cluster_ipv4_cidr_block. - * - * Generated from protobuf field string cluster_ipv4_cidr = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterIpv4Cidr($var) - { - @trigger_error('cluster_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_ipv4_cidr = $var; - - return $this; - } - - /** - * This field is deprecated, use node_ipv4_cidr_block. - * - * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodeIpv4Cidr() - { - @trigger_error('node_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - return $this->node_ipv4_cidr; - } - - /** - * This field is deprecated, use node_ipv4_cidr_block. - * - * Generated from protobuf field string node_ipv4_cidr = 5 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodeIpv4Cidr($var) - { - @trigger_error('node_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_ipv4_cidr = $var; - - return $this; - } - - /** - * This field is deprecated, use services_ipv4_cidr_block. - * - * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; - * @return string - * @deprecated - */ - public function getServicesIpv4Cidr() - { - @trigger_error('services_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - return $this->services_ipv4_cidr; - } - - /** - * This field is deprecated, use services_ipv4_cidr_block. - * - * Generated from protobuf field string services_ipv4_cidr = 6 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setServicesIpv4Cidr($var) - { - @trigger_error('services_ipv4_cidr is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->services_ipv4_cidr = $var; - - return $this; - } - - /** - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string cluster_secondary_range_name = 7; - * @return string - */ - public function getClusterSecondaryRangeName() - { - return $this->cluster_secondary_range_name; - } - - /** - * The name of the secondary range to be used for the cluster CIDR - * block. The secondary range will be used for pod IP - * addresses. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string cluster_secondary_range_name = 7; - * @param string $var - * @return $this - */ - public function setClusterSecondaryRangeName($var) - { - GPBUtil::checkString($var, True); - $this->cluster_secondary_range_name = $var; - - return $this; - } - - /** - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string services_secondary_range_name = 8; - * @return string - */ - public function getServicesSecondaryRangeName() - { - return $this->services_secondary_range_name; - } - - /** - * The name of the secondary range to be used as for the services - * CIDR block. The secondary range will be used for service - * ClusterIPs. This must be an existing secondary range associated - * with the cluster subnetwork. - * This field is only applicable with use_ip_aliases is true and - * create_subnetwork is false. - * - * Generated from protobuf field string services_secondary_range_name = 8; - * @param string $var - * @return $this - */ - public function setServicesSecondaryRangeName($var) - { - GPBUtil::checkString($var, True); - $this->services_secondary_range_name = $var; - - return $this; - } - - /** - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string cluster_ipv4_cidr_block = 9; - * @return string - */ - public function getClusterIpv4CidrBlock() - { - return $this->cluster_ipv4_cidr_block; - } - - /** - * The IP address range for the cluster pod IPs. If this field is set, then - * `cluster.cluster_ipv4_cidr` must be left blank. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string cluster_ipv4_cidr_block = 9; - * @param string $var - * @return $this - */ - public function setClusterIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ipv4_cidr_block = $var; - - return $this; - } - - /** - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string node_ipv4_cidr_block = 10; - * @return string - */ - public function getNodeIpv4CidrBlock() - { - return $this->node_ipv4_cidr_block; - } - - /** - * The IP address range of the instance IPs in this cluster. - * This is applicable only if `create_subnetwork` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string node_ipv4_cidr_block = 10; - * @param string $var - * @return $this - */ - public function setNodeIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->node_ipv4_cidr_block = $var; - - return $this; - } - - /** - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string services_ipv4_cidr_block = 11; - * @return string - */ - public function getServicesIpv4CidrBlock() - { - return $this->services_ipv4_cidr_block; - } - - /** - * The IP address range of the services IPs in this cluster. If blank, a range - * will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string services_ipv4_cidr_block = 11; - * @param string $var - * @return $this - */ - public function setServicesIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->services_ipv4_cidr_block = $var; - - return $this; - } - - /** - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 13; - * @return string - */ - public function getTpuIpv4CidrBlock() - { - return $this->tpu_ipv4_cidr_block; - } - - /** - * The IP address range of the Cloud TPUs in this cluster. If unspecified, a - * range will be automatically chosen with the default size. - * This field is only applicable when `use_ip_aliases` is true. - * If unspecified, the range will use the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) from the RFC-1918 private networks (e.g. - * `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range - * to use. - * - * Generated from protobuf field string tpu_ipv4_cidr_block = 13; - * @param string $var - * @return $this - */ - public function setTpuIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->tpu_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_routes = 15; - * @return bool - */ - public function getUseRoutes() - { - return $this->use_routes; - } - - /** - * Whether routes will be used for pod IPs in the cluster. - * This is used in conjunction with use_ip_aliases. It cannot be true if - * use_ip_aliases is true. If both use_ip_aliases and use_routes are false, - * then the server picks the default IP allocation mode - * - * Generated from protobuf field bool use_routes = 15; - * @param bool $var - * @return $this - */ - public function setUseRoutes($var) - { - GPBUtil::checkBool($var); - $this->use_routes = $var; - - return $this; - } - - /** - * The IP stack type of the cluster - * - * Generated from protobuf field .google.container.v1.StackType stack_type = 16; - * @return int - */ - public function getStackType() - { - return $this->stack_type; - } - - /** - * The IP stack type of the cluster - * - * Generated from protobuf field .google.container.v1.StackType stack_type = 16; - * @param int $var - * @return $this - */ - public function setStackType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StackType::class); - $this->stack_type = $var; - - return $this; - } - - /** - * The ipv6 access type (internal or external) when create_subnetwork is true - * - * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * @return int - */ - public function getIpv6AccessType() - { - return $this->ipv6_access_type; - } - - /** - * The ipv6 access type (internal or external) when create_subnetwork is true - * - * Generated from protobuf field .google.container.v1.IPv6AccessType ipv6_access_type = 17; - * @param int $var - * @return $this - */ - public function setIpv6AccessType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\IPv6AccessType::class); - $this->ipv6_access_type = $var; - - return $this; - } - - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the cluster. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is doubled and then rounded off to next power of 2 to - * get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * @return \Google\Cloud\Container\V1\PodCIDROverprovisionConfig|null - */ - public function getPodCidrOverprovisionConfig() - { - return $this->pod_cidr_overprovision_config; - } - - public function hasPodCidrOverprovisionConfig() - { - return isset($this->pod_cidr_overprovision_config); - } - - public function clearPodCidrOverprovisionConfig() - { - unset($this->pod_cidr_overprovision_config); - } - - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the cluster. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is doubled and then rounded off to next power of 2 to - * get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21; - * @param \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $var - * @return $this - */ - public function setPodCidrOverprovisionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PodCIDROverprovisionConfig::class); - $this->pod_cidr_overprovision_config = $var; - - return $this; - } - - /** - * Output only. The subnet's IPv6 CIDR block used by nodes and pods. - * - * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSubnetIpv6CidrBlock() - { - return $this->subnet_ipv6_cidr_block; - } - - /** - * Output only. The subnet's IPv6 CIDR block used by nodes and pods. - * - * Generated from protobuf field string subnet_ipv6_cidr_block = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSubnetIpv6CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->subnet_ipv6_cidr_block = $var; - - return $this; - } - - /** - * Output only. The services IPv6 CIDR block for the cluster. - * - * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getServicesIpv6CidrBlock() - { - return $this->services_ipv6_cidr_block; - } - - /** - * Output only. The services IPv6 CIDR block for the cluster. - * - * Generated from protobuf field string services_ipv6_cidr_block = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setServicesIpv6CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->services_ipv6_cidr_block = $var; - - return $this; - } - - /** - * Output only. The additional pod ranges that are added to the cluster. - * These pod ranges can be used by new node pools to allocate pod IPs - * automatically. Once the range is removed it will not show up in - * IPAllocationPolicy. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Container\V1\AdditionalPodRangesConfig|null - */ - public function getAdditionalPodRangesConfig() - { - return $this->additional_pod_ranges_config; - } - - public function hasAdditionalPodRangesConfig() - { - return isset($this->additional_pod_ranges_config); - } - - public function clearAdditionalPodRangesConfig() - { - unset($this->additional_pod_ranges_config); - } - - /** - * Output only. The additional pod ranges that are added to the cluster. - * These pod ranges can be used by new node pools to allocate pod IPs - * automatically. Once the range is removed it will not show up in - * IPAllocationPolicy. - * - * Generated from protobuf field .google.container.v1.AdditionalPodRangesConfig additional_pod_ranges_config = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Container\V1\AdditionalPodRangesConfig $var - * @return $this - */ - public function setAdditionalPodRangesConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdditionalPodRangesConfig::class); - $this->additional_pod_ranges_config = $var; - - return $this; - } - - /** - * Output only. The utilization of the cluster default IPv4 range for the - * pod. The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getDefaultPodIpv4RangeUtilization() - { - return $this->default_pod_ipv4_range_utilization; - } - - /** - * Output only. The utilization of the cluster default IPv4 range for the - * pod. The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double default_pod_ipv4_range_utilization = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setDefaultPodIpv4RangeUtilization($var) - { - GPBUtil::checkDouble($var); - $this->default_pod_ipv4_range_utilization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php deleted file mode 100644 index 1b4be8e42d32..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IPv6AccessType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.container.v1.IPv6AccessType - */ -class IPv6AccessType -{ - /** - * Default value, will be defaulted as type external. - * - * Generated from protobuf enum IPV6_ACCESS_TYPE_UNSPECIFIED = 0; - */ - const IPV6_ACCESS_TYPE_UNSPECIFIED = 0; - /** - * Access type internal (all v6 addresses are internal IPs) - * - * Generated from protobuf enum INTERNAL = 1; - */ - const INTERNAL = 1; - /** - * Access type external (all v6 addresses are external IPs) - * - * Generated from protobuf enum EXTERNAL = 2; - */ - const EXTERNAL = 2; - - private static $valueToName = [ - self::IPV6_ACCESS_TYPE_UNSPECIFIED => 'IPV6_ACCESS_TYPE_UNSPECIFIED', - self::INTERNAL => 'INTERNAL', - self::EXTERNAL => 'EXTERNAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php deleted file mode 100644 index 61767b760f86..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IdentityServiceConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.IdentityServiceConfig - */ -class IdentityServiceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether to enable the Identity Service component - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether to enable the Identity Service component - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether to enable the Identity Service component - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether to enable the Identity Service component - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php deleted file mode 100644 index 67f6b5c4264a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/InTransitEncryptionConfig.php +++ /dev/null @@ -1,62 +0,0 @@ -google.container.v1.InTransitEncryptionConfig - */ -class InTransitEncryptionConfig -{ - /** - * Unspecified, will be inferred as default - - * IN_TRANSIT_ENCRYPTION_UNSPECIFIED. - * - * Generated from protobuf enum IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; - */ - const IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED = 0; - /** - * In-transit encryption is disabled. - * - * Generated from protobuf enum IN_TRANSIT_ENCRYPTION_DISABLED = 1; - */ - const IN_TRANSIT_ENCRYPTION_DISABLED = 1; - /** - * Data in-transit is encrypted using inter-node transparent encryption. - * - * Generated from protobuf enum IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; - */ - const IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT = 2; - - private static $valueToName = [ - self::IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED => 'IN_TRANSIT_ENCRYPTION_CONFIG_UNSPECIFIED', - self::IN_TRANSIT_ENCRYPTION_DISABLED => 'IN_TRANSIT_ENCRYPTION_DISABLED', - self::IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT => 'IN_TRANSIT_ENCRYPTION_INTER_NODE_TRANSPARENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php deleted file mode 100644 index 944edc0cbbde..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/IntraNodeVisibilityConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.IntraNodeVisibilityConfig - */ -class IntraNodeVisibilityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enables intra node visibility for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enables intra node visibility for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enables intra node visibility for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enables intra node visibility for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php deleted file mode 100644 index b35d6423015b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Jwk.php +++ /dev/null @@ -1,339 +0,0 @@ -google.container.v1.Jwk - */ -class Jwk extends \Google\Protobuf\Internal\Message -{ - /** - * Key Type. - * - * Generated from protobuf field string kty = 1; - */ - protected $kty = ''; - /** - * Algorithm. - * - * Generated from protobuf field string alg = 2; - */ - protected $alg = ''; - /** - * Permitted uses for the public keys. - * - * Generated from protobuf field string use = 3; - */ - protected $use = ''; - /** - * Key ID. - * - * Generated from protobuf field string kid = 4; - */ - protected $kid = ''; - /** - * Used for RSA keys. - * - * Generated from protobuf field string n = 5; - */ - protected $n = ''; - /** - * Used for RSA keys. - * - * Generated from protobuf field string e = 6; - */ - protected $e = ''; - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string x = 7; - */ - protected $x = ''; - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string y = 8; - */ - protected $y = ''; - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string crv = 9; - */ - protected $crv = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kty - * Key Type. - * @type string $alg - * Algorithm. - * @type string $use - * Permitted uses for the public keys. - * @type string $kid - * Key ID. - * @type string $n - * Used for RSA keys. - * @type string $e - * Used for RSA keys. - * @type string $x - * Used for ECDSA keys. - * @type string $y - * Used for ECDSA keys. - * @type string $crv - * Used for ECDSA keys. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Key Type. - * - * Generated from protobuf field string kty = 1; - * @return string - */ - public function getKty() - { - return $this->kty; - } - - /** - * Key Type. - * - * Generated from protobuf field string kty = 1; - * @param string $var - * @return $this - */ - public function setKty($var) - { - GPBUtil::checkString($var, True); - $this->kty = $var; - - return $this; - } - - /** - * Algorithm. - * - * Generated from protobuf field string alg = 2; - * @return string - */ - public function getAlg() - { - return $this->alg; - } - - /** - * Algorithm. - * - * Generated from protobuf field string alg = 2; - * @param string $var - * @return $this - */ - public function setAlg($var) - { - GPBUtil::checkString($var, True); - $this->alg = $var; - - return $this; - } - - /** - * Permitted uses for the public keys. - * - * Generated from protobuf field string use = 3; - * @return string - */ - public function getUse() - { - return $this->use; - } - - /** - * Permitted uses for the public keys. - * - * Generated from protobuf field string use = 3; - * @param string $var - * @return $this - */ - public function setUse($var) - { - GPBUtil::checkString($var, True); - $this->use = $var; - - return $this; - } - - /** - * Key ID. - * - * Generated from protobuf field string kid = 4; - * @return string - */ - public function getKid() - { - return $this->kid; - } - - /** - * Key ID. - * - * Generated from protobuf field string kid = 4; - * @param string $var - * @return $this - */ - public function setKid($var) - { - GPBUtil::checkString($var, True); - $this->kid = $var; - - return $this; - } - - /** - * Used for RSA keys. - * - * Generated from protobuf field string n = 5; - * @return string - */ - public function getN() - { - return $this->n; - } - - /** - * Used for RSA keys. - * - * Generated from protobuf field string n = 5; - * @param string $var - * @return $this - */ - public function setN($var) - { - GPBUtil::checkString($var, True); - $this->n = $var; - - return $this; - } - - /** - * Used for RSA keys. - * - * Generated from protobuf field string e = 6; - * @return string - */ - public function getE() - { - return $this->e; - } - - /** - * Used for RSA keys. - * - * Generated from protobuf field string e = 6; - * @param string $var - * @return $this - */ - public function setE($var) - { - GPBUtil::checkString($var, True); - $this->e = $var; - - return $this; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string x = 7; - * @return string - */ - public function getX() - { - return $this->x; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string x = 7; - * @param string $var - * @return $this - */ - public function setX($var) - { - GPBUtil::checkString($var, True); - $this->x = $var; - - return $this; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string y = 8; - * @return string - */ - public function getY() - { - return $this->y; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string y = 8; - * @param string $var - * @return $this - */ - public function setY($var) - { - GPBUtil::checkString($var, True); - $this->y = $var; - - return $this; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string crv = 9; - * @return string - */ - public function getCrv() - { - return $this->crv; - } - - /** - * Used for ECDSA keys. - * - * Generated from protobuf field string crv = 9; - * @param string $var - * @return $this - */ - public function setCrv($var) - { - GPBUtil::checkString($var, True); - $this->crv = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php deleted file mode 100644 index f3873962eab7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/K8sBetaAPIConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.K8sBetaAPIConfig - */ -class K8sBetaAPIConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enabled k8s beta APIs. - * - * Generated from protobuf field repeated string enabled_apis = 1; - */ - private $enabled_apis; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enabled_apis - * Enabled k8s beta APIs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enabled k8s beta APIs. - * - * Generated from protobuf field repeated string enabled_apis = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnabledApis() - { - return $this->enabled_apis; - } - - /** - * Enabled k8s beta APIs. - * - * Generated from protobuf field repeated string enabled_apis = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnabledApis($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->enabled_apis = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php deleted file mode 100644 index 62ffe2fdca29..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/KubernetesDashboard.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.KubernetesDashboard - */ -class KubernetesDashboard extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Kubernetes Dashboard is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether the Kubernetes Dashboard is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Kubernetes Dashboard is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether the Kubernetes Dashboard is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php deleted file mode 100644 index 703bd19cfb95..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LegacyAbac.php +++ /dev/null @@ -1,80 +0,0 @@ -google.container.v1.LegacyAbac - */ -class LegacyAbac extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the ABAC authorizer is enabled for this cluster. When enabled, - * identities in the system, including service accounts, nodes, and - * controllers, will have statically granted permissions beyond those - * provided by the RBAC configuration or IAM. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the ABAC authorizer is enabled for this cluster. When enabled, - * identities in the system, including service accounts, nodes, and - * controllers, will have statically granted permissions beyond those - * provided by the RBAC configuration or IAM. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the ABAC authorizer is enabled for this cluster. When enabled, - * identities in the system, including service accounts, nodes, and - * controllers, will have statically granted permissions beyond those - * provided by the RBAC configuration or IAM. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the ABAC authorizer is enabled for this cluster. When enabled, - * identities in the system, including service accounts, nodes, and - * controllers, will have statically granted permissions beyond those - * provided by the RBAC configuration or IAM. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php deleted file mode 100644 index 225a457d7f61..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig.php +++ /dev/null @@ -1,197 +0,0 @@ -google.container.v1.LinuxNodeConfig - */ -class LinuxNodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * - * Generated from protobuf field map sysctls = 1; - */ - private $sysctls; - /** - * cgroup_mode specifies the cgroup mode to be used on the node. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - */ - protected $cgroup_mode = 0; - /** - * Optional. Amounts for 2M and 1G hugepages - * - * Generated from protobuf field optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $hugepages = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $sysctls - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * @type int $cgroup_mode - * cgroup_mode specifies the cgroup mode to be used on the node. - * @type \Google\Cloud\Container\V1\LinuxNodeConfig\HugepagesConfig $hugepages - * Optional. Amounts for 2M and 1G hugepages - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * - * Generated from protobuf field map sysctls = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getSysctls() - { - return $this->sysctls; - } - - /** - * The Linux kernel parameters to be applied to the nodes and all pods running - * on the nodes. - * The following parameters are supported. - * net.core.busy_poll - * net.core.busy_read - * net.core.netdev_max_backlog - * net.core.rmem_max - * net.core.wmem_default - * net.core.wmem_max - * net.core.optmem_max - * net.core.somaxconn - * net.ipv4.tcp_rmem - * net.ipv4.tcp_wmem - * net.ipv4.tcp_tw_reuse - * - * Generated from protobuf field map sysctls = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setSysctls($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->sysctls = $arr; - - return $this; - } - - /** - * cgroup_mode specifies the cgroup mode to be used on the node. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * @return int - */ - public function getCgroupMode() - { - return $this->cgroup_mode; - } - - /** - * cgroup_mode specifies the cgroup mode to be used on the node. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig.CgroupMode cgroup_mode = 2; - * @param int $var - * @return $this - */ - public function setCgroupMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LinuxNodeConfig\CgroupMode::class); - $this->cgroup_mode = $var; - - return $this; - } - - /** - * Optional. Amounts for 2M and 1G hugepages - * - * Generated from protobuf field optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Container\V1\LinuxNodeConfig\HugepagesConfig|null - */ - public function getHugepages() - { - return $this->hugepages; - } - - public function hasHugepages() - { - return isset($this->hugepages); - } - - public function clearHugepages() - { - unset($this->hugepages); - } - - /** - * Optional. Amounts for 2M and 1G hugepages - * - * Generated from protobuf field optional .google.container.v1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Container\V1\LinuxNodeConfig\HugepagesConfig $var - * @return $this - */ - public function setHugepages($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig\HugepagesConfig::class); - $this->hugepages = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php deleted file mode 100644 index 677f044abfac..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/CgroupMode.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.LinuxNodeConfig.CgroupMode - */ -class CgroupMode -{ - /** - * CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used. - * The default for the GKE node OS image will be used. - * - * Generated from protobuf enum CGROUP_MODE_UNSPECIFIED = 0; - */ - const CGROUP_MODE_UNSPECIFIED = 0; - /** - * CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration on - * the node image. - * - * Generated from protobuf enum CGROUP_MODE_V1 = 1; - */ - const CGROUP_MODE_V1 = 1; - /** - * CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration on - * the node image. - * - * Generated from protobuf enum CGROUP_MODE_V2 = 2; - */ - const CGROUP_MODE_V2 = 2; - - private static $valueToName = [ - self::CGROUP_MODE_UNSPECIFIED => 'CGROUP_MODE_UNSPECIFIED', - self::CGROUP_MODE_V1 => 'CGROUP_MODE_V1', - self::CGROUP_MODE_V2 => 'CGROUP_MODE_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(CgroupMode::class, \Google\Cloud\Container\V1\LinuxNodeConfig_CgroupMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/HugepagesConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/HugepagesConfig.php deleted file mode 100644 index a0040584dc23..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LinuxNodeConfig/HugepagesConfig.php +++ /dev/null @@ -1,124 +0,0 @@ -google.container.v1.LinuxNodeConfig.HugepagesConfig - */ -class HugepagesConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Amount of 2M hugepages - * - * Generated from protobuf field optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $hugepage_size2m = null; - /** - * Optional. Amount of 1G hugepages - * - * Generated from protobuf field optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $hugepage_size1g = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $hugepage_size2m - * Optional. Amount of 2M hugepages - * @type int $hugepage_size1g - * Optional. Amount of 1G hugepages - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Amount of 2M hugepages - * - * Generated from protobuf field optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getHugepageSize2M() - { - return isset($this->hugepage_size2m) ? $this->hugepage_size2m : 0; - } - - public function hasHugepageSize2M() - { - return isset($this->hugepage_size2m); - } - - public function clearHugepageSize2M() - { - unset($this->hugepage_size2m); - } - - /** - * Optional. Amount of 2M hugepages - * - * Generated from protobuf field optional int32 hugepage_size2m = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setHugepageSize2M($var) - { - GPBUtil::checkInt32($var); - $this->hugepage_size2m = $var; - - return $this; - } - - /** - * Optional. Amount of 1G hugepages - * - * Generated from protobuf field optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getHugepageSize1G() - { - return isset($this->hugepage_size1g) ? $this->hugepage_size1g : 0; - } - - public function hasHugepageSize1G() - { - return isset($this->hugepage_size1g); - } - - public function clearHugepageSize1G() - { - unset($this->hugepage_size1g); - } - - /** - * Optional. Amount of 1G hugepages - * - * Generated from protobuf field optional int32 hugepage_size1g = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setHugepageSize1G($var) - { - GPBUtil::checkInt32($var); - $this->hugepage_size1g = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(HugepagesConfig::class, \Google\Cloud\Container\V1\LinuxNodeConfig_HugepagesConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php deleted file mode 100644 index c106b440f234..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersRequest.php +++ /dev/null @@ -1,208 +0,0 @@ -google.container.v1.ListClustersRequest - */ -class ListClustersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * @return \Google\Cloud\Container\V1\ListClustersRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone); - } - - /** - * @param string $parent The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * @return \Google\Cloud\Container\V1\ListClustersRequest - * - * @experimental - */ - public static function buildFromParent(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * @type string $parent - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides, or "-" for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project and location) where the clusters will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php deleted file mode 100644 index 4d8a2365a5c0..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListClustersResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.container.v1.ListClustersResponse - */ -class ListClustersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of clusters in the project in the specified zone, or - * across all ones. - * - * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; - */ - private $clusters; - /** - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - */ - private $missing_zones; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $clusters - * A list of clusters in the project in the specified zone, or - * across all ones. - * @type array|\Google\Protobuf\Internal\RepeatedField $missing_zones - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of clusters in the project in the specified zone, or - * across all ones. - * - * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getClusters() - { - return $this->clusters; - } - - /** - * A list of clusters in the project in the specified zone, or - * across all ones. - * - * Generated from protobuf field repeated .google.container.v1.Cluster clusters = 1; - * @param array<\Google\Cloud\Container\V1\Cluster>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setClusters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Cluster::class); - $this->clusters = $arr; - - return $this; - } - - /** - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMissingZones() - { - return $this->missing_zones; - } - - /** - * If any zones are listed here, the list of clusters returned - * may be missing those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMissingZones($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->missing_zones = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php deleted file mode 100644 index 28cf9ef5990a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.container.v1.ListNodePoolsRequest - */ -class ListNodePoolsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 5; - */ - protected $parent = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * @return \Google\Cloud\Container\V1\ListNodePoolsRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId); - } - - /** - * @param string $parent The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * @return \Google\Cloud\Container\V1\ListNodePoolsRequest - * - * @experimental - */ - public static function buildFromParent(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * @type string $parent - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the parent - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 5; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project, location, cluster name) where the node pools will be - * listed. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string parent = 5; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php deleted file mode 100644 index abf30ec49198..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListNodePoolsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ListNodePoolsResponse - */ -class ListNodePoolsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of node pools for a cluster. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; - */ - private $node_pools; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $node_pools - * A list of node pools for a cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of node pools for a cluster. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodePools() - { - return $this->node_pools; - } - - /** - * A list of node pools for a cluster. - * - * Generated from protobuf field repeated .google.container.v1.NodePool node_pools = 1; - * @param array<\Google\Cloud\Container\V1\NodePool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodePool::class); - $this->node_pools = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php deleted file mode 100644 index 461d0d27a66c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsRequest.php +++ /dev/null @@ -1,208 +0,0 @@ -google.container.v1.ListOperationsRequest - */ -class ListOperationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * @return \Google\Cloud\Container\V1\ListOperationsRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone); - } - - /** - * @param string $parent The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * @return \Google\Cloud\Container\V1\ListOperationsRequest - * - * @experimental - */ - public static function buildFromParent(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * @type string $parent - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the parent field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) to return - * operations for, or `-` for all zones. This field has been deprecated and - * replaced by the parent field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent (project and location) where the operations will be listed. - * Specified in the format `projects/*/locations/*`. - * Location "-" matches all zones and all regions. - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php deleted file mode 100644 index 82eb8e28098f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListOperationsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.container.v1.ListOperationsResponse - */ -class ListOperationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of operations in the project in the specified zone. - * - * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; - */ - private $operations; - /** - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - */ - private $missing_zones; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $operations - * A list of operations in the project in the specified zone. - * @type array|\Google\Protobuf\Internal\RepeatedField $missing_zones - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of operations in the project in the specified zone. - * - * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOperations() - { - return $this->operations; - } - - /** - * A list of operations in the project in the specified zone. - * - * Generated from protobuf field repeated .google.container.v1.Operation operations = 1; - * @param array<\Google\Cloud\Container\V1\Operation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOperations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\Operation::class); - $this->operations = $arr; - - return $this; - } - - /** - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMissingZones() - { - return $this->missing_zones; - } - - /** - * If any zones are listed here, the list of operations returned - * may be missing the operations from those zones. - * - * Generated from protobuf field repeated string missing_zones = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMissingZones($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->missing_zones = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php deleted file mode 100644 index bae700cc3b00..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksRequest.php +++ /dev/null @@ -1,202 +0,0 @@ -google.container.v1.ListUsableSubnetworksRequest - */ -class ListUsableSubnetworksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * - * Generated from protobuf field string parent = 1; - */ - protected $parent = ''; - /** - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * @type string $filter - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * @type int $page_size - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * @type string $page_token - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * - * Generated from protobuf field string parent = 1; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent project where subnetworks are usable. - * Specified in the format `projects/*`. - * - * Generated from protobuf field string parent = 1; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filtering currently only supports equality on the networkProjectId and must - * be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` - * is the project which owns the listed subnetworks. This defaults to the - * parent project ID. - * - * 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; - } - - /** - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The max number of results per page that should be returned. If the number - * of available results is larger than `page_size`, a `next_page_token` is - * returned which can be used to get the next page of results in subsequent - * requests. Acceptable values are 0 to 500, inclusive. (Default: 500) - * - * 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; - } - - /** - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Specifies a page token to use. Set this to the nextPageToken returned by - * previous list requests to get the next page of results. - * - * Generated from protobuf field string page_token = 4; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php deleted file mode 100644 index 73913d380a2a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ListUsableSubnetworksResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -google.container.v1.ListUsableSubnetworksResponse - */ -class ListUsableSubnetworksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of usable subnetworks in the specified network project. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - */ - private $subnetworks; - /** - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more 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\Container\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $subnetworks - * A list of usable subnetworks in the specified network project. - * @type string $next_page_token - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A list of usable subnetworks in the specified network project. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubnetworks() - { - return $this->subnetworks; - } - - /** - * A list of usable subnetworks in the specified network project. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetwork subnetworks = 1; - * @param array<\Google\Cloud\Container\V1\UsableSubnetwork>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubnetworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\UsableSubnetwork::class); - $this->subnetworks = $arr; - - return $this; - } - - /** - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * This token allows you to get the next page of results for list requests. - * If the number of results is larger than `page_size`, use the - * `next_page_token` as a value for the query parameter `page_token` in the - * next request. The value will become empty when there are no more 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/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php deleted file mode 100644 index 66503b19b89a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LocalNvmeSsdBlockConfig.php +++ /dev/null @@ -1,124 +0,0 @@ -google.container.v1.LocalNvmeSsdBlockConfig - */ -class LocalNvmeSsdBlockConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Number of local NVMe SSDs to use. The limit for this value is dependent - * upon the maximum number of disk available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - */ - protected $local_ssd_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $local_ssd_count - * Number of local NVMe SSDs to use. The limit for this value is dependent - * upon the maximum number of disk available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Number of local NVMe SSDs to use. The limit for this value is dependent - * upon the maximum number of disk available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - * @return int - */ - public function getLocalSsdCount() - { - return $this->local_ssd_count; - } - - /** - * Number of local NVMe SSDs to use. The limit for this value is dependent - * upon the maximum number of disk available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * A zero (or unset) value has different meanings depending on machine type - * being used: - * 1. For pre-Gen3 machines, which support flexible numbers of local ssds, - * zero (or unset) means to disable using local SSDs as ephemeral storage. - * 2. For Gen3 machines which dictate a specific number of local ssds, zero - * (or unset) means to use the default number of local ssds that goes with - * that machine type. For example, for a c3-standard-8-lssd machine, 2 local - * ssds would be provisioned. For c3-standard-8 (which doesn't support local - * ssds), 0 will be provisioned. See - * https://cloud.google.com/compute/docs/disks/local-ssd#choose_number_local_ssds - * for more info. - * - * Generated from protobuf field int32 local_ssd_count = 1; - * @param int $var - * @return $this - */ - public function setLocalSsdCount($var) - { - GPBUtil::checkInt32($var); - $this->local_ssd_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php deleted file mode 100644 index 30537335ecb7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.LoggingComponentConfig - */ -class LoggingComponentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Select components to collect logs. An empty set would disable all logging. - * - * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - */ - private $enable_components; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components - * Select components to collect logs. An empty set would disable all logging. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Select components to collect logs. An empty set would disable all logging. - * - * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnableComponents() - { - return $this->enable_components; - } - - /** - * Select components to collect logs. An empty set would disable all logging. - * - * Generated from protobuf field repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnableComponents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\LoggingComponentConfig\Component::class); - $this->enable_components = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php deleted file mode 100644 index fa6cfd1dcf47..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingComponentConfig/Component.php +++ /dev/null @@ -1,99 +0,0 @@ -google.container.v1.LoggingComponentConfig.Component - */ -class Component -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; - */ - const COMPONENT_UNSPECIFIED = 0; - /** - * system components - * - * Generated from protobuf enum SYSTEM_COMPONENTS = 1; - */ - const SYSTEM_COMPONENTS = 1; - /** - * workloads - * - * Generated from protobuf enum WORKLOADS = 2; - */ - const WORKLOADS = 2; - /** - * kube-apiserver - * - * Generated from protobuf enum APISERVER = 3; - */ - const APISERVER = 3; - /** - * kube-scheduler - * - * Generated from protobuf enum SCHEDULER = 4; - */ - const SCHEDULER = 4; - /** - * kube-controller-manager - * - * Generated from protobuf enum CONTROLLER_MANAGER = 5; - */ - const CONTROLLER_MANAGER = 5; - /** - * kcp-sshd - * - * Generated from protobuf enum KCP_SSHD = 7; - */ - const KCP_SSHD = 7; - /** - * kcp connection logs - * - * Generated from protobuf enum KCP_CONNECTION = 8; - */ - const KCP_CONNECTION = 8; - - private static $valueToName = [ - self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', - self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', - self::WORKLOADS => 'WORKLOADS', - self::APISERVER => 'APISERVER', - self::SCHEDULER => 'SCHEDULER', - self::CONTROLLER_MANAGER => 'CONTROLLER_MANAGER', - self::KCP_SSHD => 'KCP_SSHD', - self::KCP_CONNECTION => 'KCP_CONNECTION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Component::class, \Google\Cloud\Container\V1\LoggingComponentConfig_Component::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php deleted file mode 100644 index 19c906a114cc..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.LoggingConfig - */ -class LoggingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Logging components configuration - * - * Generated from protobuf field .google.container.v1.LoggingComponentConfig component_config = 1; - */ - protected $component_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\LoggingComponentConfig $component_config - * Logging components configuration - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Logging components configuration - * - * Generated from protobuf field .google.container.v1.LoggingComponentConfig component_config = 1; - * @return \Google\Cloud\Container\V1\LoggingComponentConfig|null - */ - public function getComponentConfig() - { - return $this->component_config; - } - - public function hasComponentConfig() - { - return isset($this->component_config); - } - - public function clearComponentConfig() - { - unset($this->component_config); - } - - /** - * Logging components configuration - * - * Generated from protobuf field .google.container.v1.LoggingComponentConfig component_config = 1; - * @param \Google\Cloud\Container\V1\LoggingComponentConfig $var - * @return $this - */ - public function setComponentConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingComponentConfig::class); - $this->component_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php deleted file mode 100644 index 1121954e01e5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.LoggingVariantConfig - */ -class LoggingVariantConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Logging variant deployed on nodes. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; - */ - protected $variant = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $variant - * Logging variant deployed on nodes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Logging variant deployed on nodes. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * @return int - */ - public function getVariant() - { - return $this->variant; - } - - /** - * Logging variant deployed on nodes. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig.Variant variant = 1; - * @param int $var - * @return $this - */ - public function setVariant($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\LoggingVariantConfig\Variant::class); - $this->variant = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php deleted file mode 100644 index dbff8651edd2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/LoggingVariantConfig/Variant.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.LoggingVariantConfig.Variant - */ -class Variant -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum VARIANT_UNSPECIFIED = 0; - */ - const VARIANT_UNSPECIFIED = 0; - /** - * default logging variant. - * - * Generated from protobuf enum DEFAULT = 1; - */ - const PBDEFAULT = 1; - /** - * maximum logging throughput variant. - * - * Generated from protobuf enum MAX_THROUGHPUT = 2; - */ - const MAX_THROUGHPUT = 2; - - private static $valueToName = [ - self::VARIANT_UNSPECIFIED => 'VARIANT_UNSPECIFIED', - self::PBDEFAULT => 'DEFAULT', - self::MAX_THROUGHPUT => 'MAX_THROUGHPUT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has 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(Variant::class, \Google\Cloud\Container\V1\LoggingVariantConfig_Variant::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php deleted file mode 100644 index 8c5ebd1447bd..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.MaintenanceExclusionOptions - */ -class MaintenanceExclusionOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Scope specifies the upgrade scope which upgrades are blocked by the - * exclusion. - * - * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - */ - protected $scope = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $scope - * Scope specifies the upgrade scope which upgrades are blocked by the - * exclusion. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Scope specifies the upgrade scope which upgrades are blocked by the - * exclusion. - * - * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @return int - */ - public function getScope() - { - return $this->scope; - } - - /** - * Scope specifies the upgrade scope which upgrades are blocked by the - * exclusion. - * - * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions.Scope scope = 1; - * @param int $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\MaintenanceExclusionOptions\Scope::class); - $this->scope = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php deleted file mode 100644 index c7d1639c5828..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceExclusionOptions/Scope.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.MaintenanceExclusionOptions.Scope - */ -class Scope -{ - /** - * NO_UPGRADES excludes all upgrades, including patch upgrades and minor - * upgrades across control planes and nodes. This is the default exclusion - * behavior. - * - * Generated from protobuf enum NO_UPGRADES = 0; - */ - const NO_UPGRADES = 0; - /** - * NO_MINOR_UPGRADES excludes all minor upgrades for the cluster, only - * patches are allowed. - * - * Generated from protobuf enum NO_MINOR_UPGRADES = 1; - */ - const NO_MINOR_UPGRADES = 1; - /** - * NO_MINOR_OR_NODE_UPGRADES excludes all minor upgrades for the cluster, - * and also exclude all node pool upgrades. Only control - * plane patches are allowed. - * - * Generated from protobuf enum NO_MINOR_OR_NODE_UPGRADES = 2; - */ - const NO_MINOR_OR_NODE_UPGRADES = 2; - - private static $valueToName = [ - self::NO_UPGRADES => 'NO_UPGRADES', - self::NO_MINOR_UPGRADES => 'NO_MINOR_UPGRADES', - self::NO_MINOR_OR_NODE_UPGRADES => 'NO_MINOR_OR_NODE_UPGRADES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Scope::class, \Google\Cloud\Container\V1\MaintenanceExclusionOptions_Scope::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php deleted file mode 100644 index b804aa0d803b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenancePolicy.php +++ /dev/null @@ -1,127 +0,0 @@ -google.container.v1.MaintenancePolicy - */ -class MaintenancePolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the maintenance window in which maintenance may be performed. - * - * Generated from protobuf field .google.container.v1.MaintenanceWindow window = 1; - */ - protected $window = null; - /** - * A hash identifying the version of this policy, so that updates to fields of - * the policy won't accidentally undo intermediate changes (and so that users - * of the API unaware of some fields won't accidentally remove other fields). - * Make a `get()` request to the cluster to get the current - * resource version and include it with requests to set the policy. - * - * Generated from protobuf field string resource_version = 3; - */ - protected $resource_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\MaintenanceWindow $window - * Specifies the maintenance window in which maintenance may be performed. - * @type string $resource_version - * A hash identifying the version of this policy, so that updates to fields of - * the policy won't accidentally undo intermediate changes (and so that users - * of the API unaware of some fields won't accidentally remove other fields). - * Make a `get()` request to the cluster to get the current - * resource version and include it with requests to set the policy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the maintenance window in which maintenance may be performed. - * - * Generated from protobuf field .google.container.v1.MaintenanceWindow window = 1; - * @return \Google\Cloud\Container\V1\MaintenanceWindow|null - */ - public function getWindow() - { - return $this->window; - } - - public function hasWindow() - { - return isset($this->window); - } - - public function clearWindow() - { - unset($this->window); - } - - /** - * Specifies the maintenance window in which maintenance may be performed. - * - * Generated from protobuf field .google.container.v1.MaintenanceWindow window = 1; - * @param \Google\Cloud\Container\V1\MaintenanceWindow $var - * @return $this - */ - public function setWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenanceWindow::class); - $this->window = $var; - - return $this; - } - - /** - * A hash identifying the version of this policy, so that updates to fields of - * the policy won't accidentally undo intermediate changes (and so that users - * of the API unaware of some fields won't accidentally remove other fields). - * Make a `get()` request to the cluster to get the current - * resource version and include it with requests to set the policy. - * - * Generated from protobuf field string resource_version = 3; - * @return string - */ - public function getResourceVersion() - { - return $this->resource_version; - } - - /** - * A hash identifying the version of this policy, so that updates to fields of - * the policy won't accidentally undo intermediate changes (and so that users - * of the API unaware of some fields won't accidentally remove other fields). - * Make a `get()` request to the cluster to get the current - * resource version and include it with requests to set the policy. - * - * Generated from protobuf field string resource_version = 3; - * @param string $var - * @return $this - */ - public function setResourceVersion($var) - { - GPBUtil::checkString($var, True); - $this->resource_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php deleted file mode 100644 index 6d7de92a2b52..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaintenanceWindow.php +++ /dev/null @@ -1,152 +0,0 @@ -google.container.v1.MaintenanceWindow - */ -class MaintenanceWindow extends \Google\Protobuf\Internal\Message -{ - /** - * Exceptions to maintenance window. Non-emergency maintenance should not - * occur in these windows. - * - * Generated from protobuf field map maintenance_exclusions = 4; - */ - private $maintenance_exclusions; - protected $policy; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\DailyMaintenanceWindow $daily_maintenance_window - * DailyMaintenanceWindow specifies a daily maintenance operation window. - * @type \Google\Cloud\Container\V1\RecurringTimeWindow $recurring_window - * RecurringWindow specifies some number of recurring time periods for - * maintenance to occur. The time windows may be overlapping. If no - * maintenance windows are set, maintenance can occur at any time. - * @type array|\Google\Protobuf\Internal\MapField $maintenance_exclusions - * Exceptions to maintenance window. Non-emergency maintenance should not - * occur in these windows. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * DailyMaintenanceWindow specifies a daily maintenance operation window. - * - * Generated from protobuf field .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * @return \Google\Cloud\Container\V1\DailyMaintenanceWindow|null - */ - public function getDailyMaintenanceWindow() - { - return $this->readOneof(2); - } - - public function hasDailyMaintenanceWindow() - { - return $this->hasOneof(2); - } - - /** - * DailyMaintenanceWindow specifies a daily maintenance operation window. - * - * Generated from protobuf field .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; - * @param \Google\Cloud\Container\V1\DailyMaintenanceWindow $var - * @return $this - */ - public function setDailyMaintenanceWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DailyMaintenanceWindow::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * RecurringWindow specifies some number of recurring time periods for - * maintenance to occur. The time windows may be overlapping. If no - * maintenance windows are set, maintenance can occur at any time. - * - * Generated from protobuf field .google.container.v1.RecurringTimeWindow recurring_window = 3; - * @return \Google\Cloud\Container\V1\RecurringTimeWindow|null - */ - public function getRecurringWindow() - { - return $this->readOneof(3); - } - - public function hasRecurringWindow() - { - return $this->hasOneof(3); - } - - /** - * RecurringWindow specifies some number of recurring time periods for - * maintenance to occur. The time windows may be overlapping. If no - * maintenance windows are set, maintenance can occur at any time. - * - * Generated from protobuf field .google.container.v1.RecurringTimeWindow recurring_window = 3; - * @param \Google\Cloud\Container\V1\RecurringTimeWindow $var - * @return $this - */ - public function setRecurringWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\RecurringTimeWindow::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Exceptions to maintenance window. Non-emergency maintenance should not - * occur in these windows. - * - * Generated from protobuf field map maintenance_exclusions = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMaintenanceExclusions() - { - return $this->maintenance_exclusions; - } - - /** - * Exceptions to maintenance window. Non-emergency maintenance should not - * occur in these windows. - * - * Generated from protobuf field map maintenance_exclusions = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMaintenanceExclusions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\TimeWindow::class); - $this->maintenance_exclusions = $arr; - - return $this; - } - - /** - * @return string - */ - public function getPolicy() - { - return $this->whichOneof("policy"); - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php deleted file mode 100644 index f4876f921559..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ManagedPrometheusConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ManagedPrometheusConfig - */ -class ManagedPrometheusConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable Managed Collection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable Managed Collection. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php deleted file mode 100644 index 86f08f6ce5dd..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuth.php +++ /dev/null @@ -1,335 +0,0 @@ -google.container.v1.MasterAuth - */ -class MasterAuth extends \Google\Protobuf\Internal\Message -{ - /** - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string username = 1 [deprecated = true]; - * @deprecated - */ - protected $username = ''; - /** - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string password = 2 [deprecated = true]; - * @deprecated - */ - protected $password = ''; - /** - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * - * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - */ - protected $client_certificate_config = null; - /** - * Output only. Base64-encoded public certificate that is the root of - * trust for the cluster. - * - * Generated from protobuf field string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $cluster_ca_certificate = ''; - /** - * Output only. Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. Issued only if - * client_certificate_config is set. - * - * Generated from protobuf field string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $client_certificate = ''; - /** - * Output only. Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * - * Generated from protobuf field string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $client_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * @type string $password - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * @type \Google\Cloud\Container\V1\ClientCertificateConfig $client_certificate_config - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * @type string $cluster_ca_certificate - * Output only. Base64-encoded public certificate that is the root of - * trust for the cluster. - * @type string $client_certificate - * Output only. Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. Issued only if - * client_certificate_config is set. - * @type string $client_key - * Output only. Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string username = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getUsername() - { - @trigger_error('username is deprecated.', E_USER_DEPRECATED); - return $this->username; - } - - /** - * The username to use for HTTP basic authentication to the master endpoint. - * For clusters v1.6.0 and later, basic authentication can be disabled by - * leaving username unspecified (or setting it to the empty string). - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string username = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setUsername($var) - { - @trigger_error('username is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - - /** - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string password = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getPassword() - { - @trigger_error('password is deprecated.', E_USER_DEPRECATED); - return $this->password; - } - - /** - * The password to use for HTTP basic authentication to the master endpoint. - * Because the master endpoint is open to the Internet, you should create a - * strong password. If a password is provided for cluster creation, username - * must be non-empty. - * Warning: basic authentication is deprecated, and will be removed in GKE - * control plane versions 1.19 and newer. For a list of recommended - * authentication methods, see: - * https://cloud.google.com/kubernetes-engine/docs/how-to/api-server-authentication - * - * Generated from protobuf field string password = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setPassword($var) - { - @trigger_error('password is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->password = $var; - - return $this; - } - - /** - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * - * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * @return \Google\Cloud\Container\V1\ClientCertificateConfig|null - */ - public function getClientCertificateConfig() - { - return $this->client_certificate_config; - } - - public function hasClientCertificateConfig() - { - return isset($this->client_certificate_config); - } - - public function clearClientCertificateConfig() - { - unset($this->client_certificate_config); - } - - /** - * Configuration for client certificate authentication on the cluster. For - * clusters before v1.12, if no configuration is specified, a client - * certificate is issued. - * - * Generated from protobuf field .google.container.v1.ClientCertificateConfig client_certificate_config = 3; - * @param \Google\Cloud\Container\V1\ClientCertificateConfig $var - * @return $this - */ - public function setClientCertificateConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClientCertificateConfig::class); - $this->client_certificate_config = $var; - - return $this; - } - - /** - * Output only. Base64-encoded public certificate that is the root of - * trust for the cluster. - * - * Generated from protobuf field string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getClusterCaCertificate() - { - return $this->cluster_ca_certificate; - } - - /** - * Output only. Base64-encoded public certificate that is the root of - * trust for the cluster. - * - * Generated from protobuf field string cluster_ca_certificate = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setClusterCaCertificate($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ca_certificate = $var; - - return $this; - } - - /** - * Output only. Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. Issued only if - * client_certificate_config is set. - * - * Generated from protobuf field string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getClientCertificate() - { - return $this->client_certificate; - } - - /** - * Output only. Base64-encoded public certificate used by clients to - * authenticate to the cluster endpoint. Issued only if - * client_certificate_config is set. - * - * Generated from protobuf field string client_certificate = 101 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setClientCertificate($var) - { - GPBUtil::checkString($var, True); - $this->client_certificate = $var; - - return $this; - } - - /** - * Output only. Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * - * Generated from protobuf field string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getClientKey() - { - return $this->client_key; - } - - /** - * Output only. Base64-encoded private key used by clients to authenticate - * to the cluster endpoint. - * - * Generated from protobuf field string client_key = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setClientKey($var) - { - GPBUtil::checkString($var, True); - $this->client_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php deleted file mode 100644 index f136b3f0d8b6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig.php +++ /dev/null @@ -1,196 +0,0 @@ -google.container.v1.MasterAuthorizedNetworksConfig - */ -class MasterAuthorizedNetworksConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether or not master authorized networks is enabled. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * - * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - */ - private $cidr_blocks; - /** - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * - * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; - */ - protected $gcp_public_cidrs_access_enabled = null; - /** - * Whether master authorized networks is enforced on private endpoint or not. - * - * Generated from protobuf field optional bool private_endpoint_enforcement_enabled = 5; - */ - protected $private_endpoint_enforcement_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether or not master authorized networks is enabled. - * @type array<\Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock>|\Google\Protobuf\Internal\RepeatedField $cidr_blocks - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * @type bool $gcp_public_cidrs_access_enabled - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * @type bool $private_endpoint_enforcement_enabled - * Whether master authorized networks is enforced on private endpoint or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether or not master authorized networks is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether or not master authorized networks is enabled. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * - * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCidrBlocks() - { - return $this->cidr_blocks; - } - - /** - * cidr_blocks define up to 50 external networks that could access - * Kubernetes master through HTTPS. - * - * Generated from protobuf field repeated .google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock cidr_blocks = 2; - * @param array<\Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCidrBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig\CidrBlock::class); - $this->cidr_blocks = $arr; - - return $this; - } - - /** - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * - * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; - * @return bool - */ - public function getGcpPublicCidrsAccessEnabled() - { - return isset($this->gcp_public_cidrs_access_enabled) ? $this->gcp_public_cidrs_access_enabled : false; - } - - public function hasGcpPublicCidrsAccessEnabled() - { - return isset($this->gcp_public_cidrs_access_enabled); - } - - public function clearGcpPublicCidrsAccessEnabled() - { - unset($this->gcp_public_cidrs_access_enabled); - } - - /** - * Whether master is accessbile via Google Compute Engine Public IP addresses. - * - * Generated from protobuf field optional bool gcp_public_cidrs_access_enabled = 3; - * @param bool $var - * @return $this - */ - public function setGcpPublicCidrsAccessEnabled($var) - { - GPBUtil::checkBool($var); - $this->gcp_public_cidrs_access_enabled = $var; - - return $this; - } - - /** - * Whether master authorized networks is enforced on private endpoint or not. - * - * Generated from protobuf field optional bool private_endpoint_enforcement_enabled = 5; - * @return bool - */ - public function getPrivateEndpointEnforcementEnabled() - { - return isset($this->private_endpoint_enforcement_enabled) ? $this->private_endpoint_enforcement_enabled : false; - } - - public function hasPrivateEndpointEnforcementEnabled() - { - return isset($this->private_endpoint_enforcement_enabled); - } - - public function clearPrivateEndpointEnforcementEnabled() - { - unset($this->private_endpoint_enforcement_enabled); - } - - /** - * Whether master authorized networks is enforced on private endpoint or not. - * - * Generated from protobuf field optional bool private_endpoint_enforcement_enabled = 5; - * @param bool $var - * @return $this - */ - public function setPrivateEndpointEnforcementEnabled($var) - { - GPBUtil::checkBool($var); - $this->private_endpoint_enforcement_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php deleted file mode 100644 index 8ab57c26dfce..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MasterAuthorizedNetworksConfig/CidrBlock.php +++ /dev/null @@ -1,104 +0,0 @@ -google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock - */ -class CidrBlock extends \Google\Protobuf\Internal\Message -{ - /** - * display_name is an optional field for users to identify CIDR blocks. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * cidr_block must be specified in CIDR notation. - * - * Generated from protobuf field string cidr_block = 2; - */ - protected $cidr_block = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * display_name is an optional field for users to identify CIDR blocks. - * @type string $cidr_block - * cidr_block must be specified in CIDR notation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * display_name is an optional field for users to identify CIDR blocks. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * display_name is an optional field for users to identify CIDR blocks. - * - * 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; - } - - /** - * cidr_block must be specified in CIDR notation. - * - * Generated from protobuf field string cidr_block = 2; - * @return string - */ - public function getCidrBlock() - { - return $this->cidr_block; - } - - /** - * cidr_block must be specified in CIDR notation. - * - * Generated from protobuf field string cidr_block = 2; - * @param string $var - * @return $this - */ - public function setCidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->cidr_block = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CidrBlock::class, \Google\Cloud\Container\V1\MasterAuthorizedNetworksConfig_CidrBlock::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php deleted file mode 100644 index b085ff78a2c2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MaxPodsConstraint.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.MaxPodsConstraint - */ -class MaxPodsConstraint extends \Google\Protobuf\Internal\Message -{ - /** - * Constraint enforced on the max num of pods per node. - * - * Generated from protobuf field int64 max_pods_per_node = 1; - */ - protected $max_pods_per_node = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $max_pods_per_node - * Constraint enforced on the max num of pods per node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Constraint enforced on the max num of pods per node. - * - * Generated from protobuf field int64 max_pods_per_node = 1; - * @return int|string - */ - public function getMaxPodsPerNode() - { - return $this->max_pods_per_node; - } - - /** - * Constraint enforced on the max num of pods per node. - * - * Generated from protobuf field int64 max_pods_per_node = 1; - * @param int|string $var - * @return $this - */ - public function setMaxPodsPerNode($var) - { - GPBUtil::checkInt64($var); - $this->max_pods_per_node = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php deleted file mode 100644 index ba761de84ac4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MeshCertificates.php +++ /dev/null @@ -1,140 +0,0 @@ -google.container.v1.MeshCertificates - */ -class MeshCertificates extends \Google\Protobuf\Internal\Message -{ - /** - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * - * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; - */ - protected $enable_certificates = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\BoolValue $enable_certificates - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * - * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; - * @return \Google\Protobuf\BoolValue|null - */ - public function getEnableCertificates() - { - return $this->enable_certificates; - } - - public function hasEnableCertificates() - { - return isset($this->enable_certificates); - } - - public function clearEnableCertificates() - { - unset($this->enable_certificates); - } - - /** - * Returns the unboxed value from getEnableCertificates() - - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * - * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; - * @return bool|null - */ - public function getEnableCertificatesUnwrapped() - { - return $this->readWrapperValue("enable_certificates"); - } - - /** - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * - * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setEnableCertificates($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->enable_certificates = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * enable_certificates controls issuance of workload mTLS certificates. - * If set, the GKE Workload Identity Certificates controller and node agent - * will be deployed in the cluster, which can then be configured by creating a - * WorkloadCertificateConfig Custom Resource. - * Requires Workload Identity - * ([workload_pool][google.container.v1.WorkloadIdentityConfig.workload_pool] - * must be non-empty). - * - * Generated from protobuf field .google.protobuf.BoolValue enable_certificates = 1; - * @param bool|null $var - * @return $this - */ - public function setEnableCertificatesUnwrapped($var) - { - $this->writeWrapperValue("enable_certificates", $var); - return $this;} - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php deleted file mode 100644 index 38e5ca512685..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.MonitoringComponentConfig - */ -class MonitoringComponentConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Select components to collect metrics. An empty set would disable all - * monitoring. - * - * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - */ - private $enable_components; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enable_components - * Select components to collect metrics. An empty set would disable all - * monitoring. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Select components to collect metrics. An empty set would disable all - * monitoring. - * - * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnableComponents() - { - return $this->enable_components; - } - - /** - * Select components to collect metrics. An empty set would disable all - * monitoring. - * - * Generated from protobuf field repeated .google.container.v1.MonitoringComponentConfig.Component enable_components = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnableComponents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\MonitoringComponentConfig\Component::class); - $this->enable_components = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php deleted file mode 100644 index b8ec68744ffb..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringComponentConfig/Component.php +++ /dev/null @@ -1,141 +0,0 @@ -google.container.v1.MonitoringComponentConfig.Component - */ -class Component -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum COMPONENT_UNSPECIFIED = 0; - */ - const COMPONENT_UNSPECIFIED = 0; - /** - * system components - * - * Generated from protobuf enum SYSTEM_COMPONENTS = 1; - */ - const SYSTEM_COMPONENTS = 1; - /** - * kube-apiserver - * - * Generated from protobuf enum APISERVER = 3; - */ - const APISERVER = 3; - /** - * kube-scheduler - * - * Generated from protobuf enum SCHEDULER = 4; - */ - const SCHEDULER = 4; - /** - * kube-controller-manager - * - * Generated from protobuf enum CONTROLLER_MANAGER = 5; - */ - const CONTROLLER_MANAGER = 5; - /** - * Storage - * - * Generated from protobuf enum STORAGE = 7; - */ - const STORAGE = 7; - /** - * Horizontal Pod Autoscaling - * - * Generated from protobuf enum HPA = 8; - */ - const HPA = 8; - /** - * Pod - * - * Generated from protobuf enum POD = 9; - */ - const POD = 9; - /** - * DaemonSet - * - * Generated from protobuf enum DAEMONSET = 10; - */ - const DAEMONSET = 10; - /** - * Deployment - * - * Generated from protobuf enum DEPLOYMENT = 11; - */ - const DEPLOYMENT = 11; - /** - * Statefulset - * - * Generated from protobuf enum STATEFULSET = 12; - */ - const STATEFULSET = 12; - /** - * CADVISOR - * - * Generated from protobuf enum CADVISOR = 13; - */ - const CADVISOR = 13; - /** - * KUBELET - * - * Generated from protobuf enum KUBELET = 14; - */ - const KUBELET = 14; - /** - * NVIDIA Data Center GPU Manager (DCGM) - * - * Generated from protobuf enum DCGM = 15; - */ - const DCGM = 15; - - private static $valueToName = [ - self::COMPONENT_UNSPECIFIED => 'COMPONENT_UNSPECIFIED', - self::SYSTEM_COMPONENTS => 'SYSTEM_COMPONENTS', - self::APISERVER => 'APISERVER', - self::SCHEDULER => 'SCHEDULER', - self::CONTROLLER_MANAGER => 'CONTROLLER_MANAGER', - self::STORAGE => 'STORAGE', - self::HPA => 'HPA', - self::POD => 'POD', - self::DAEMONSET => 'DAEMONSET', - self::DEPLOYMENT => 'DEPLOYMENT', - self::STATEFULSET => 'STATEFULSET', - self::CADVISOR => 'CADVISOR', - self::KUBELET => 'KUBELET', - self::DCGM => 'DCGM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Component::class, \Google\Cloud\Container\V1\MonitoringComponentConfig_Component::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php deleted file mode 100644 index 114215b5d699..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/MonitoringConfig.php +++ /dev/null @@ -1,169 +0,0 @@ -google.container.v1.MonitoringConfig - */ -class MonitoringConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Monitoring components configuration - * - * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; - */ - protected $component_config = null; - /** - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * - * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - */ - protected $managed_prometheus_config = null; - /** - * Configuration of Advanced Datapath Observability features. - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - */ - protected $advanced_datapath_observability_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\MonitoringComponentConfig $component_config - * Monitoring components configuration - * @type \Google\Cloud\Container\V1\ManagedPrometheusConfig $managed_prometheus_config - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * @type \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig $advanced_datapath_observability_config - * Configuration of Advanced Datapath Observability features. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Monitoring components configuration - * - * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; - * @return \Google\Cloud\Container\V1\MonitoringComponentConfig|null - */ - public function getComponentConfig() - { - return $this->component_config; - } - - public function hasComponentConfig() - { - return isset($this->component_config); - } - - public function clearComponentConfig() - { - unset($this->component_config); - } - - /** - * Monitoring components configuration - * - * Generated from protobuf field .google.container.v1.MonitoringComponentConfig component_config = 1; - * @param \Google\Cloud\Container\V1\MonitoringComponentConfig $var - * @return $this - */ - public function setComponentConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MonitoringComponentConfig::class); - $this->component_config = $var; - - return $this; - } - - /** - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * - * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @return \Google\Cloud\Container\V1\ManagedPrometheusConfig|null - */ - public function getManagedPrometheusConfig() - { - return $this->managed_prometheus_config; - } - - public function hasManagedPrometheusConfig() - { - return isset($this->managed_prometheus_config); - } - - public function clearManagedPrometheusConfig() - { - unset($this->managed_prometheus_config); - } - - /** - * Enable Google Cloud Managed Service for Prometheus - * in the cluster. - * - * Generated from protobuf field .google.container.v1.ManagedPrometheusConfig managed_prometheus_config = 2; - * @param \Google\Cloud\Container\V1\ManagedPrometheusConfig $var - * @return $this - */ - public function setManagedPrometheusConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ManagedPrometheusConfig::class); - $this->managed_prometheus_config = $var; - - return $this; - } - - /** - * Configuration of Advanced Datapath Observability features. - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * @return \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig|null - */ - public function getAdvancedDatapathObservabilityConfig() - { - return $this->advanced_datapath_observability_config; - } - - public function hasAdvancedDatapathObservabilityConfig() - { - return isset($this->advanced_datapath_observability_config); - } - - public function clearAdvancedDatapathObservabilityConfig() - { - unset($this->advanced_datapath_observability_config); - } - - /** - * Configuration of Advanced Datapath Observability features. - * - * Generated from protobuf field .google.container.v1.AdvancedDatapathObservabilityConfig advanced_datapath_observability_config = 3; - * @param \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig $var - * @return $this - */ - public function setAdvancedDatapathObservabilityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdvancedDatapathObservabilityConfig::class); - $this->advanced_datapath_observability_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php deleted file mode 100644 index 033e3ca44126..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig.php +++ /dev/null @@ -1,747 +0,0 @@ -google.container.v1.NetworkConfig - */ -class NetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $network = ''; - /** - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $subnetwork = ''; - /** - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * - * Generated from protobuf field bool enable_intra_node_visibility = 5; - */ - protected $enable_intra_node_visibility = false; - /** - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; - */ - protected $default_snat_status = null; - /** - * Whether L4ILB Subsetting is enabled for this cluster. - * - * Generated from protobuf field bool enable_l4ilb_subsetting = 10; - */ - protected $enable_l4ilb_subsetting = false; - /** - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * - * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; - */ - protected $datapath_provider = 0; - /** - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - */ - protected $private_ipv6_google_access = 0; - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; - */ - protected $dns_config = null; - /** - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - */ - protected $service_external_ips_config = null; - /** - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - */ - protected $gateway_api_config = null; - /** - * Whether multi-networking is enabled for this cluster. - * - * Generated from protobuf field bool enable_multi_networking = 17; - */ - protected $enable_multi_networking = false; - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - */ - protected $network_performance_config = null; - /** - * Whether FQDN Network Policy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_fqdn_network_policy = 19; - */ - protected $enable_fqdn_network_policy = null; - /** - * Specify the details of in-transit encryption. - * Now named inter-node transparent encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - */ - protected $in_transit_encryption_config = null; - /** - * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_cilium_clusterwide_network_policy = 21; - */ - protected $enable_cilium_clusterwide_network_policy = null; - /** - * Controls whether by default nodes have private IP addresses only. - * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][] - * and this field at the same time. - * To update the default setting, use - * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes] - * - * Generated from protobuf field optional bool default_enable_private_nodes = 22; - */ - protected $default_enable_private_nodes = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * @type string $subnetwork - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * @type bool $enable_intra_node_visibility - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * @type \Google\Cloud\Container\V1\DefaultSnatStatus $default_snat_status - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * @type bool $enable_l4ilb_subsetting - * Whether L4ILB Subsetting is enabled for this cluster. - * @type int $datapath_provider - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * @type int $private_ipv6_google_access - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * @type \Google\Cloud\Container\V1\DNSConfig $dns_config - * DNSConfig contains clusterDNS config for this cluster. - * @type \Google\Cloud\Container\V1\ServiceExternalIPsConfig $service_external_ips_config - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * @type \Google\Cloud\Container\V1\GatewayAPIConfig $gateway_api_config - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * @type bool $enable_multi_networking - * Whether multi-networking is enabled for this cluster. - * @type \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $network_performance_config - * Network bandwidth tier configuration. - * @type bool $enable_fqdn_network_policy - * Whether FQDN Network Policy is enabled on this cluster. - * @type int $in_transit_encryption_config - * Specify the details of in-transit encryption. - * Now named inter-node transparent encryption. - * @type bool $enable_cilium_clusterwide_network_policy - * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. - * @type bool $default_enable_private_nodes - * Controls whether by default nodes have private IP addresses only. - * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][] - * and this field at the same time. - * To update the default setting, use - * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Output only. The relative name of the Google Compute Engine - * [network][google.container.v1.NetworkConfig.network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks) - * to which the cluster is connected. Example: - * projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Output only. The relative name of the Google Compute Engine - * [subnetwork](https://cloud.google.com/compute/docs/vpc) to which the - * cluster is connected. Example: - * projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * - * Generated from protobuf field bool enable_intra_node_visibility = 5; - * @return bool - */ - public function getEnableIntraNodeVisibility() - { - return $this->enable_intra_node_visibility; - } - - /** - * Whether Intra-node visibility is enabled for this cluster. - * This makes same node pod to pod traffic visible for VPC network. - * - * Generated from protobuf field bool enable_intra_node_visibility = 5; - * @param bool $var - * @return $this - */ - public function setEnableIntraNodeVisibility($var) - { - GPBUtil::checkBool($var); - $this->enable_intra_node_visibility = $var; - - return $this; - } - - /** - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * @return \Google\Cloud\Container\V1\DefaultSnatStatus|null - */ - public function getDefaultSnatStatus() - { - return $this->default_snat_status; - } - - public function hasDefaultSnatStatus() - { - return isset($this->default_snat_status); - } - - public function clearDefaultSnatStatus() - { - unset($this->default_snat_status); - } - - /** - * Whether the cluster disables default in-node sNAT rules. In-node sNAT rules - * will be disabled when default_snat_status is disabled. When disabled is set - * to false, default IP masquerade rules will be applied to the nodes to - * prevent sNAT on cluster internal traffic. - * - * Generated from protobuf field .google.container.v1.DefaultSnatStatus default_snat_status = 7; - * @param \Google\Cloud\Container\V1\DefaultSnatStatus $var - * @return $this - */ - public function setDefaultSnatStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DefaultSnatStatus::class); - $this->default_snat_status = $var; - - return $this; - } - - /** - * Whether L4ILB Subsetting is enabled for this cluster. - * - * Generated from protobuf field bool enable_l4ilb_subsetting = 10; - * @return bool - */ - public function getEnableL4IlbSubsetting() - { - return $this->enable_l4ilb_subsetting; - } - - /** - * Whether L4ILB Subsetting is enabled for this cluster. - * - * Generated from protobuf field bool enable_l4ilb_subsetting = 10; - * @param bool $var - * @return $this - */ - public function setEnableL4IlbSubsetting($var) - { - GPBUtil::checkBool($var); - $this->enable_l4ilb_subsetting = $var; - - return $this; - } - - /** - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * - * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; - * @return int - */ - public function getDatapathProvider() - { - return $this->datapath_provider; - } - - /** - * The desired datapath provider for this cluster. By default, uses the - * IPTables-based kube-proxy implementation. - * - * Generated from protobuf field .google.container.v1.DatapathProvider datapath_provider = 11; - * @param int $var - * @return $this - */ - public function setDatapathProvider($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\DatapathProvider::class); - $this->datapath_provider = $var; - - return $this; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @return int - */ - public function getPrivateIpv6GoogleAccess() - { - return $this->private_ipv6_google_access; - } - - /** - * The desired state of IPv6 connectivity to Google Services. - * By default, no private IPv6 access to or from Google Services (all access - * will be via IPv4) - * - * Generated from protobuf field .google.container.v1.PrivateIPv6GoogleAccess private_ipv6_google_access = 12; - * @param int $var - * @return $this - */ - public function setPrivateIpv6GoogleAccess($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\PrivateIPv6GoogleAccess::class); - $this->private_ipv6_google_access = $var; - - return $this; - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; - * @return \Google\Cloud\Container\V1\DNSConfig|null - */ - public function getDnsConfig() - { - return $this->dns_config; - } - - public function hasDnsConfig() - { - return isset($this->dns_config); - } - - public function clearDnsConfig() - { - unset($this->dns_config); - } - - /** - * DNSConfig contains clusterDNS config for this cluster. - * - * Generated from protobuf field .google.container.v1.DNSConfig dns_config = 13; - * @param \Google\Cloud\Container\V1\DNSConfig $var - * @return $this - */ - public function setDnsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\DNSConfig::class); - $this->dns_config = $var; - - return $this; - } - - /** - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * @return \Google\Cloud\Container\V1\ServiceExternalIPsConfig|null - */ - public function getServiceExternalIpsConfig() - { - return $this->service_external_ips_config; - } - - public function hasServiceExternalIpsConfig() - { - return isset($this->service_external_ips_config); - } - - public function clearServiceExternalIpsConfig() - { - unset($this->service_external_ips_config); - } - - /** - * ServiceExternalIPsConfig specifies if services with externalIPs field are - * blocked or not. - * - * Generated from protobuf field .google.container.v1.ServiceExternalIPsConfig service_external_ips_config = 15; - * @param \Google\Cloud\Container\V1\ServiceExternalIPsConfig $var - * @return $this - */ - public function setServiceExternalIpsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ServiceExternalIPsConfig::class); - $this->service_external_ips_config = $var; - - return $this; - } - - /** - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * @return \Google\Cloud\Container\V1\GatewayAPIConfig|null - */ - public function getGatewayApiConfig() - { - return $this->gateway_api_config; - } - - public function hasGatewayApiConfig() - { - return isset($this->gateway_api_config); - } - - public function clearGatewayApiConfig() - { - unset($this->gateway_api_config); - } - - /** - * GatewayAPIConfig contains the desired config of Gateway API on this - * cluster. - * - * Generated from protobuf field .google.container.v1.GatewayAPIConfig gateway_api_config = 16; - * @param \Google\Cloud\Container\V1\GatewayAPIConfig $var - * @return $this - */ - public function setGatewayApiConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GatewayAPIConfig::class); - $this->gateway_api_config = $var; - - return $this; - } - - /** - * Whether multi-networking is enabled for this cluster. - * - * Generated from protobuf field bool enable_multi_networking = 17; - * @return bool - */ - public function getEnableMultiNetworking() - { - return $this->enable_multi_networking; - } - - /** - * Whether multi-networking is enabled for this cluster. - * - * Generated from protobuf field bool enable_multi_networking = 17; - * @param bool $var - * @return $this - */ - public function setEnableMultiNetworking($var) - { - GPBUtil::checkBool($var); - $this->enable_multi_networking = $var; - - return $this; - } - - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * @return \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig|null - */ - public function getNetworkPerformanceConfig() - { - return $this->network_performance_config; - } - - public function hasNetworkPerformanceConfig() - { - return isset($this->network_performance_config); - } - - public function clearNetworkPerformanceConfig() - { - unset($this->network_performance_config); - } - - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig network_performance_config = 18; - * @param \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig $var - * @return $this - */ - public function setNetworkPerformanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig::class); - $this->network_performance_config = $var; - - return $this; - } - - /** - * Whether FQDN Network Policy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_fqdn_network_policy = 19; - * @return bool - */ - public function getEnableFqdnNetworkPolicy() - { - return isset($this->enable_fqdn_network_policy) ? $this->enable_fqdn_network_policy : false; - } - - public function hasEnableFqdnNetworkPolicy() - { - return isset($this->enable_fqdn_network_policy); - } - - public function clearEnableFqdnNetworkPolicy() - { - unset($this->enable_fqdn_network_policy); - } - - /** - * Whether FQDN Network Policy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_fqdn_network_policy = 19; - * @param bool $var - * @return $this - */ - public function setEnableFqdnNetworkPolicy($var) - { - GPBUtil::checkBool($var); - $this->enable_fqdn_network_policy = $var; - - return $this; - } - - /** - * Specify the details of in-transit encryption. - * Now named inter-node transparent encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * @return int - */ - public function getInTransitEncryptionConfig() - { - return isset($this->in_transit_encryption_config) ? $this->in_transit_encryption_config : 0; - } - - public function hasInTransitEncryptionConfig() - { - return isset($this->in_transit_encryption_config); - } - - public function clearInTransitEncryptionConfig() - { - unset($this->in_transit_encryption_config); - } - - /** - * Specify the details of in-transit encryption. - * Now named inter-node transparent encryption. - * - * Generated from protobuf field optional .google.container.v1.InTransitEncryptionConfig in_transit_encryption_config = 20; - * @param int $var - * @return $this - */ - public function setInTransitEncryptionConfig($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\InTransitEncryptionConfig::class); - $this->in_transit_encryption_config = $var; - - return $this; - } - - /** - * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_cilium_clusterwide_network_policy = 21; - * @return bool - */ - public function getEnableCiliumClusterwideNetworkPolicy() - { - return isset($this->enable_cilium_clusterwide_network_policy) ? $this->enable_cilium_clusterwide_network_policy : false; - } - - public function hasEnableCiliumClusterwideNetworkPolicy() - { - return isset($this->enable_cilium_clusterwide_network_policy); - } - - public function clearEnableCiliumClusterwideNetworkPolicy() - { - unset($this->enable_cilium_clusterwide_network_policy); - } - - /** - * Whether CiliumClusterwideNetworkPolicy is enabled on this cluster. - * - * Generated from protobuf field optional bool enable_cilium_clusterwide_network_policy = 21; - * @param bool $var - * @return $this - */ - public function setEnableCiliumClusterwideNetworkPolicy($var) - { - GPBUtil::checkBool($var); - $this->enable_cilium_clusterwide_network_policy = $var; - - return $this; - } - - /** - * Controls whether by default nodes have private IP addresses only. - * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][] - * and this field at the same time. - * To update the default setting, use - * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes] - * - * Generated from protobuf field optional bool default_enable_private_nodes = 22; - * @return bool - */ - public function getDefaultEnablePrivateNodes() - { - return isset($this->default_enable_private_nodes) ? $this->default_enable_private_nodes : false; - } - - public function hasDefaultEnablePrivateNodes() - { - return isset($this->default_enable_private_nodes); - } - - public function clearDefaultEnablePrivateNodes() - { - unset($this->default_enable_private_nodes); - } - - /** - * Controls whether by default nodes have private IP addresses only. - * It is invalid to specify both [PrivateClusterConfig.enablePrivateNodes][] - * and this field at the same time. - * To update the default setting, use - * [ClusterUpdate.desired_default_enable_private_nodes][google.container.v1.ClusterUpdate.desired_default_enable_private_nodes] - * - * Generated from protobuf field optional bool default_enable_private_nodes = 22; - * @param bool $var - * @return $this - */ - public function setDefaultEnablePrivateNodes($var) - { - GPBUtil::checkBool($var); - $this->default_enable_private_nodes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php deleted file mode 100644 index c43c6d2f0e3b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig.php +++ /dev/null @@ -1,80 +0,0 @@ -google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig - */ -class ClusterNetworkPerformanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the total network bandwidth tier for NodePools in the cluster. - * - * Generated from protobuf field optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - */ - protected $total_egress_bandwidth_tier = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_egress_bandwidth_tier - * Specifies the total network bandwidth tier for NodePools in the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the total network bandwidth tier for NodePools in the cluster. - * - * Generated from protobuf field optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * @return int - */ - public function getTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier) ? $this->total_egress_bandwidth_tier : 0; - } - - public function hasTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier); - } - - public function clearTotalEgressBandwidthTier() - { - unset($this->total_egress_bandwidth_tier); - } - - /** - * Specifies the total network bandwidth tier for NodePools in the cluster. - * - * Generated from protobuf field optional .google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * @param int $var - * @return $this - */ - public function setTotalEgressBandwidthTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NetworkConfig\ClusterNetworkPerformanceConfig\Tier::class); - $this->total_egress_bandwidth_tier = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ClusterNetworkPerformanceConfig::class, \Google\Cloud\Container\V1\NetworkConfig_ClusterNetworkPerformanceConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php deleted file mode 100644 index 9f221983b15b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkConfig/ClusterNetworkPerformanceConfig/Tier.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.NetworkConfig.ClusterNetworkPerformanceConfig.Tier - */ -class Tier -{ - /** - * Default value - * - * Generated from protobuf enum TIER_UNSPECIFIED = 0; - */ - const TIER_UNSPECIFIED = 0; - /** - * Higher bandwidth, actual values based on VM size. - * - * Generated from protobuf enum TIER_1 = 1; - */ - const TIER_1 = 1; - - private static $valueToName = [ - self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', - self::TIER_1 => 'TIER_1', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Tier::class, \Google\Cloud\Container\V1\NetworkConfig_ClusterNetworkPerformanceConfig_Tier::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php deleted file mode 100644 index b883a5302a12..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy.php +++ /dev/null @@ -1,102 +0,0 @@ -google.container.v1.NetworkPolicy - */ -class NetworkPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * The selected network policy provider. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1; - */ - protected $provider = 0; - /** - * Whether network policy is enabled on the cluster. - * - * Generated from protobuf field bool enabled = 2; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $provider - * The selected network policy provider. - * @type bool $enabled - * Whether network policy is enabled on the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The selected network policy provider. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1; - * @return int - */ - public function getProvider() - { - return $this->provider; - } - - /** - * The selected network policy provider. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy.Provider provider = 1; - * @param int $var - * @return $this - */ - public function setProvider($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NetworkPolicy\Provider::class); - $this->provider = $var; - - return $this; - } - - /** - * Whether network policy is enabled on the cluster. - * - * Generated from protobuf field bool enabled = 2; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether network policy is enabled on the cluster. - * - * Generated from protobuf field bool enabled = 2; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php deleted file mode 100644 index ec0b75a7993d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicy/Provider.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.NetworkPolicy.Provider - */ -class Provider -{ - /** - * Not set - * - * Generated from protobuf enum PROVIDER_UNSPECIFIED = 0; - */ - const PROVIDER_UNSPECIFIED = 0; - /** - * Tigera (Calico Felix). - * - * Generated from protobuf enum CALICO = 1; - */ - const CALICO = 1; - - private static $valueToName = [ - self::PROVIDER_UNSPECIFIED => 'PROVIDER_UNSPECIFIED', - self::CALICO => 'CALICO', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Provider::class, \Google\Cloud\Container\V1\NetworkPolicy_Provider::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php deleted file mode 100644 index 23e9c2000fc8..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkPolicyConfig.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.NetworkPolicyConfig - */ -class NetworkPolicyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether NetworkPolicy is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - */ - protected $disabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disabled - * Whether NetworkPolicy is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether NetworkPolicy is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @return bool - */ - public function getDisabled() - { - return $this->disabled; - } - - /** - * Whether NetworkPolicy is enabled for this cluster. - * - * Generated from protobuf field bool disabled = 1; - * @param bool $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkBool($var); - $this->disabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php deleted file mode 100644 index 7e34a1b2eda3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NetworkTags.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.NetworkTags - */ -class NetworkTags extends \Google\Protobuf\Internal\Message -{ - /** - * List of network tags. - * - * Generated from protobuf field repeated string tags = 1; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $tags - * List of network tags. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * List of network tags. - * - * Generated from protobuf field repeated string tags = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * List of network tags. - * - * Generated from protobuf field repeated string tags = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php deleted file mode 100644 index 57436b5cb6c3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig.php +++ /dev/null @@ -1,1993 +0,0 @@ -google.container.v1.NodeConfig - */ -class NodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * - * Generated from protobuf field string machine_type = 1; - */ - protected $machine_type = ''; - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 2; - */ - protected $disk_size_gb = 0; - /** - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - */ - private $oauth_scopes; - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * - * Generated from protobuf field string service_account = 9; - */ - protected $service_account = ''; - /** - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * - * Generated from protobuf field map metadata = 4; - */ - private $metadata; - /** - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 5; - */ - protected $image_type = ''; - /** - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * - * Generated from protobuf field map labels = 6; - */ - private $labels; - /** - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * - * Generated from protobuf field int32 local_ssd_count = 7; - */ - protected $local_ssd_count = 0; - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field repeated string tags = 8; - */ - private $tags; - /** - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * - * Generated from protobuf field bool preemptible = 10; - */ - protected $preemptible = false; - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; - */ - private $accelerators; - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 12; - */ - protected $disk_type = ''; - /** - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * - * Generated from protobuf field string min_cpu_platform = 13; - */ - protected $min_cpu_platform = ''; - /** - * The workload metadata configuration for this node. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - protected $workload_metadata_config = null; - /** - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; - */ - private $taints; - /** - * Sandbox configuration for this node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; - */ - protected $sandbox_config = null; - /** - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * - * Generated from protobuf field string node_group = 18; - */ - protected $node_group = ''; - /** - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; - */ - protected $reservation_affinity = null; - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - */ - protected $shielded_instance_config = null; - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; - */ - protected $linux_node_config = null; - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; - */ - protected $kubelet_config = null; - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 23; - */ - protected $boot_disk_kms_key = ''; - /** - * Google Container File System (image streaming) configs. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; - */ - protected $gcfs_config = null; - /** - * Advanced features for the Compute Engine VM. - * - * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - */ - protected $advanced_machine_features = null; - /** - * Enable or disable gvnic in the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - */ - protected $gvnic = null; - /** - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * - * Generated from protobuf field bool spot = 32; - */ - protected $spot = false; - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; - */ - protected $confidential_nodes = null; - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; - */ - protected $fast_socket = null; - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 37; - */ - private $resource_labels; - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; - */ - protected $logging_config = null; - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; - */ - protected $windows_node_config = null; - /** - * Parameters for using raw-block Local NVMe SSDs. - * - * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - */ - protected $local_nvme_ssd_block_config = null; - /** - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * - * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - */ - protected $ephemeral_storage_local_ssd_config = null; - /** - * Parameters for node pools to be backed by shared sole tenant node groups. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - */ - protected $sole_tenant_config = null; - /** - * Parameters for containerd customization. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 43; - */ - protected $containerd_config = null; - /** - * A map of resource manager tag keys and values to be attached to the nodes. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - */ - protected $resource_manager_tags = null; - /** - * Optional. Reserved for future use. - * - * Generated from protobuf field bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $enable_confidential_storage = false; - /** - * List of secondary boot disks attached to the nodes. - * - * Generated from protobuf field repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; - */ - private $secondary_boot_disks; - /** - * List of Storage Pools where boot disks are provisioned. - * - * Generated from protobuf field repeated string storage_pools = 49; - */ - private $storage_pools; - /** - * Secondary boot disk update strategy. - * - * Generated from protobuf field optional .google.container.v1.SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; - */ - protected $secondary_boot_disk_update_strategy = null; - /** - * Output only. effective_cgroup_mode is the cgroup mode actually used by the - * node pool. It is determined by the cgroup mode specified in the - * LinuxNodeConfig or the default cgroup mode based on the cluster creation - * version. - * - * Generated from protobuf field .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $effective_cgroup_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $machine_type - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * @type int $disk_size_gb - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * @type string $service_account - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * @type string $image_type - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * @type array|\Google\Protobuf\Internal\MapField $labels - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * @type int $local_ssd_count - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * @type array|\Google\Protobuf\Internal\RepeatedField $tags - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * @type bool $preemptible - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * @type array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $accelerators - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * @type string $disk_type - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * @type string $min_cpu_platform - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * @type \Google\Cloud\Container\V1\WorkloadMetadataConfig $workload_metadata_config - * The workload metadata configuration for this node. - * @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * @type \Google\Cloud\Container\V1\SandboxConfig $sandbox_config - * Sandbox configuration for this node. - * @type string $node_group - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * @type \Google\Cloud\Container\V1\ReservationAffinity $reservation_affinity - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * @type \Google\Cloud\Container\V1\ShieldedInstanceConfig $shielded_instance_config - * Shielded Instance options. - * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config - * Parameters that can be configured on Linux nodes. - * @type \Google\Cloud\Container\V1\NodeKubeletConfig $kubelet_config - * Node kubelet configs. - * @type string $boot_disk_kms_key - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config - * Google Container File System (image streaming) configs. - * @type \Google\Cloud\Container\V1\AdvancedMachineFeatures $advanced_machine_features - * Advanced features for the Compute Engine VM. - * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic - * Enable or disable gvnic in the node pool. - * @type bool $spot - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * @type \Google\Cloud\Container\V1\FastSocket $fast_socket - * Enable or disable NCCL fast socket for the node pool. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config - * Logging configuration. - * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config - * Parameters that can be configured on Windows nodes. - * @type \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig $local_nvme_ssd_block_config - * Parameters for using raw-block Local NVMe SSDs. - * @type \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig $ephemeral_storage_local_ssd_config - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * @type \Google\Cloud\Container\V1\SoleTenantConfig $sole_tenant_config - * Parameters for node pools to be backed by shared sole tenant node groups. - * @type \Google\Cloud\Container\V1\ContainerdConfig $containerd_config - * Parameters for containerd customization. - * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags - * A map of resource manager tag keys and values to be attached to the nodes. - * @type bool $enable_confidential_storage - * Optional. Reserved for future use. - * @type array<\Google\Cloud\Container\V1\SecondaryBootDisk>|\Google\Protobuf\Internal\RepeatedField $secondary_boot_disks - * List of secondary boot disks attached to the nodes. - * @type array|\Google\Protobuf\Internal\RepeatedField $storage_pools - * List of Storage Pools where boot disks are provisioned. - * @type \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy $secondary_boot_disk_update_strategy - * Secondary boot disk update strategy. - * @type int $effective_cgroup_mode - * Output only. effective_cgroup_mode is the cgroup mode actually used by the - * node pool. It is determined by the cgroup mode specified in the - * LinuxNodeConfig or the default cgroup mode based on the cluster creation - * version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * - * Generated from protobuf field string machine_type = 1; - * @return string - */ - public function getMachineType() - { - return $this->machine_type; - } - - /** - * The name of a Google Compute Engine [machine - * type](https://cloud.google.com/compute/docs/machine-types) - * If unspecified, the default machine type is `e2-medium`. - * - * Generated from protobuf field string machine_type = 1; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 2; - * @return int - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Size of the disk attached to each node, specified in GB. - * The smallest allowed disk size is 10GB. - * If unspecified, the default disk size is 100GB. - * - * Generated from protobuf field int32 disk_size_gb = 2; - * @param int $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt32($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOauthScopes() - { - return $this->oauth_scopes; - } - - /** - * The set of Google API scopes to be made available on all of the - * node VMs under the "default" service account. - * The following scopes are recommended, but not required, and by default are - * not included: - * * `https://www.googleapis.com/auth/compute` is required for mounting - * persistent storage on your nodes. - * * `https://www.googleapis.com/auth/devstorage.read_only` is required for - * communicating with **gcr.io** - * (the [Google Container - * Registry](https://cloud.google.com/container-registry/)). - * If unspecified, no scopes are added, unless Cloud Logging or Cloud - * Monitoring are enabled, in which case their required scopes will be added. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOauthScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->oauth_scopes = $arr; - - return $this; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * - * Generated from protobuf field string service_account = 9; - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * The Google Cloud Platform Service Account to be used by the node VMs. - * Specify the email address of the Service Account; otherwise, if no Service - * Account is specified, the "default" service account is used. - * - * Generated from protobuf field string service_account = 9; - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * - * Generated from protobuf field map metadata = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * The metadata key/value pairs assigned to instances in the cluster. - * Keys must conform to the regexp `[a-zA-Z0-9-_]+` and be less than 128 bytes - * in length. These are reflected as part of a URL in the metadata server. - * Additionally, to avoid ambiguity, keys must not conflict with any other - * metadata keys for the project or be one of the reserved keys: - * - "cluster-location" - * - "cluster-name" - * - "cluster-uid" - * - "configure-sh" - * - "containerd-configure-sh" - * - "enable-os-login" - * - "gci-ensure-gke-docker" - * - "gci-metrics-enabled" - * - "gci-update-strategy" - * - "instance-template" - * - "kube-env" - * - "startup-script" - * - "user-data" - * - "disable-address-manager" - * - "windows-startup-script-ps1" - * - "common-psm1" - * - "k8s-node-setup-psm1" - * - "install-ssh-psm1" - * - "user-profile-psm1" - * Values are free-form strings, and only have meaning as interpreted by - * the image running in the instance. The only restriction placed on them is - * that each value's size must be less than or equal to 32 KB. - * The total size of all keys and values must be less than 512 KB. - * - * 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 image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 5; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * The image type to use for this node. Note that for a given image type, - * the latest version of it will be used. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 5; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * - * Generated from protobuf field map labels = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The map of Kubernetes labels (key/value pairs) to be applied to each node. - * These will added in addition to any default label(s) that - * Kubernetes may apply to the node. - * In case of conflict in label keys, the applied set may differ depending on - * the Kubernetes version -- it's best to assume the behavior is undefined - * and conflicts should be avoided. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ - * - * 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; - } - - /** - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * - * Generated from protobuf field int32 local_ssd_count = 7; - * @return int - */ - public function getLocalSsdCount() - { - return $this->local_ssd_count; - } - - /** - * The number of local SSD disks to be attached to the node. - * The limit for this value is dependent upon the maximum number of - * disks available on a machine per zone. See: - * https://cloud.google.com/compute/docs/disks/local-ssd - * for more information. - * - * Generated from protobuf field int32 local_ssd_count = 7; - * @param int $var - * @return $this - */ - public function setLocalSsdCount($var) - { - GPBUtil::checkInt32($var); - $this->local_ssd_count = $var; - - return $this; - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field repeated string tags = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTags() - { - return $this->tags; - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster or node pool creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field repeated string tags = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * - * Generated from protobuf field bool preemptible = 10; - * @return bool - */ - public function getPreemptible() - { - return $this->preemptible; - } - - /** - * Whether the nodes are created as preemptible VM instances. See: - * https://cloud.google.com/compute/docs/instances/preemptible for more - * information about preemptible VM instances. - * - * Generated from protobuf field bool preemptible = 10; - * @param bool $var - * @return $this - */ - public function setPreemptible($var) - { - GPBUtil::checkBool($var); - $this->preemptible = $var; - - return $this; - } - - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccelerators() - { - return $this->accelerators; - } - - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 11; - * @param array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccelerators($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AcceleratorConfig::class); - $this->accelerators = $arr; - - return $this; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 12; - * @return string - */ - public function getDiskType() - { - return $this->disk_type; - } - - /** - * Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') - * If unspecified, the default disk type is 'pd-standard' - * - * Generated from protobuf field string disk_type = 12; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * - * Generated from protobuf field string min_cpu_platform = 13; - * @return string - */ - public function getMinCpuPlatform() - { - return $this->min_cpu_platform; - } - - /** - * Minimum CPU platform to be used by this instance. The instance may be - * scheduled on the specified or newer CPU platform. Applicable values are the - * friendly names of CPU platforms, such as - * `minCpuPlatform: "Intel Haswell"` or - * `minCpuPlatform: "Intel Sandy Bridge"`. For more - * information, read [how to specify min CPU - * platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) - * - * Generated from protobuf field string min_cpu_platform = 13; - * @param string $var - * @return $this - */ - public function setMinCpuPlatform($var) - { - GPBUtil::checkString($var, True); - $this->min_cpu_platform = $var; - - return $this; - } - - /** - * The workload metadata configuration for this node. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return \Google\Cloud\Container\V1\WorkloadMetadataConfig|null - */ - public function getWorkloadMetadataConfig() - { - return $this->workload_metadata_config; - } - - public function hasWorkloadMetadataConfig() - { - return isset($this->workload_metadata_config); - } - - public function clearWorkloadMetadataConfig() - { - unset($this->workload_metadata_config); - } - - /** - * The workload metadata configuration for this node. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @param \Google\Cloud\Container\V1\WorkloadMetadataConfig $var - * @return $this - */ - public function setWorkloadMetadataConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig::class); - $this->workload_metadata_config = $var; - - return $this; - } - - /** - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaints() - { - return $this->taints; - } - - /** - * List of kubernetes taints to be applied to each node. - * For more information, including usage and the valid values, see: - * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 15; - * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class); - $this->taints = $arr; - - return $this; - } - - /** - * Sandbox configuration for this node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; - * @return \Google\Cloud\Container\V1\SandboxConfig|null - */ - public function getSandboxConfig() - { - return $this->sandbox_config; - } - - public function hasSandboxConfig() - { - return isset($this->sandbox_config); - } - - public function clearSandboxConfig() - { - unset($this->sandbox_config); - } - - /** - * Sandbox configuration for this node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig sandbox_config = 17; - * @param \Google\Cloud\Container\V1\SandboxConfig $var - * @return $this - */ - public function setSandboxConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SandboxConfig::class); - $this->sandbox_config = $var; - - return $this; - } - - /** - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * - * Generated from protobuf field string node_group = 18; - * @return string - */ - public function getNodeGroup() - { - return $this->node_group; - } - - /** - * Setting this field will assign instances of this - * pool to run on the specified node group. This is useful for running - * workloads on [sole tenant - * nodes](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes). - * - * Generated from protobuf field string node_group = 18; - * @param string $var - * @return $this - */ - public function setNodeGroup($var) - { - GPBUtil::checkString($var, True); - $this->node_group = $var; - - return $this; - } - - /** - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; - * @return \Google\Cloud\Container\V1\ReservationAffinity|null - */ - public function getReservationAffinity() - { - return $this->reservation_affinity; - } - - public function hasReservationAffinity() - { - return isset($this->reservation_affinity); - } - - public function clearReservationAffinity() - { - unset($this->reservation_affinity); - } - - /** - * The optional reservation affinity. Setting this field will apply - * the specified [Zonal Compute - * Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources) - * to this node pool. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity reservation_affinity = 19; - * @param \Google\Cloud\Container\V1\ReservationAffinity $var - * @return $this - */ - public function setReservationAffinity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReservationAffinity::class); - $this->reservation_affinity = $var; - - return $this; - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * @return \Google\Cloud\Container\V1\ShieldedInstanceConfig|null - */ - public function getShieldedInstanceConfig() - { - return $this->shielded_instance_config; - } - - public function hasShieldedInstanceConfig() - { - return isset($this->shielded_instance_config); - } - - public function clearShieldedInstanceConfig() - { - unset($this->shielded_instance_config); - } - - /** - * Shielded Instance options. - * - * Generated from protobuf field .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; - * @param \Google\Cloud\Container\V1\ShieldedInstanceConfig $var - * @return $this - */ - public function setShieldedInstanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ShieldedInstanceConfig::class); - $this->shielded_instance_config = $var; - - return $this; - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null - */ - public function getLinuxNodeConfig() - { - return $this->linux_node_config; - } - - public function hasLinuxNodeConfig() - { - return isset($this->linux_node_config); - } - - public function clearLinuxNodeConfig() - { - unset($this->linux_node_config); - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 21; - * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var - * @return $this - */ - public function setLinuxNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class); - $this->linux_node_config = $var; - - return $this; - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null - */ - public function getKubeletConfig() - { - return $this->kubelet_config; - } - - public function hasKubeletConfig() - { - return isset($this->kubelet_config); - } - - public function clearKubeletConfig() - { - unset($this->kubelet_config); - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 22; - * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var - * @return $this - */ - public function setKubeletConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); - $this->kubelet_config = $var; - - return $this; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 23; - * @return string - */ - public function getBootDiskKmsKey() - { - return $this->boot_disk_kms_key; - } - - /** - * The Customer Managed Encryption Key used to encrypt the boot disk attached - * to each node in the node pool. This should be of the form - * projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. - * For more information about protecting resources with Cloud KMS Keys please - * see: - * https://cloud.google.com/compute/docs/disks/customer-managed-encryption - * - * Generated from protobuf field string boot_disk_kms_key = 23; - * @param string $var - * @return $this - */ - public function setBootDiskKmsKey($var) - { - GPBUtil::checkString($var, True); - $this->boot_disk_kms_key = $var; - - return $this; - } - - /** - * Google Container File System (image streaming) configs. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getGcfsConfig() - { - return $this->gcfs_config; - } - - public function hasGcfsConfig() - { - return isset($this->gcfs_config); - } - - public function clearGcfsConfig() - { - unset($this->gcfs_config); - } - - /** - * Google Container File System (image streaming) configs. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 25; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->gcfs_config = $var; - - return $this; - } - - /** - * Advanced features for the Compute Engine VM. - * - * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * @return \Google\Cloud\Container\V1\AdvancedMachineFeatures|null - */ - public function getAdvancedMachineFeatures() - { - return $this->advanced_machine_features; - } - - public function hasAdvancedMachineFeatures() - { - return isset($this->advanced_machine_features); - } - - public function clearAdvancedMachineFeatures() - { - unset($this->advanced_machine_features); - } - - /** - * Advanced features for the Compute Engine VM. - * - * Generated from protobuf field .google.container.v1.AdvancedMachineFeatures advanced_machine_features = 26; - * @param \Google\Cloud\Container\V1\AdvancedMachineFeatures $var - * @return $this - */ - public function setAdvancedMachineFeatures($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AdvancedMachineFeatures::class); - $this->advanced_machine_features = $var; - - return $this; - } - - /** - * Enable or disable gvnic in the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @return \Google\Cloud\Container\V1\VirtualNIC|null - */ - public function getGvnic() - { - return $this->gvnic; - } - - public function hasGvnic() - { - return isset($this->gvnic); - } - - public function clearGvnic() - { - unset($this->gvnic); - } - - /** - * Enable or disable gvnic in the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @param \Google\Cloud\Container\V1\VirtualNIC $var - * @return $this - */ - public function setGvnic($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VirtualNIC::class); - $this->gvnic = $var; - - return $this; - } - - /** - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * - * Generated from protobuf field bool spot = 32; - * @return bool - */ - public function getSpot() - { - return $this->spot; - } - - /** - * Spot flag for enabling Spot VM, which is a rebrand of - * the existing preemptible flag. - * - * Generated from protobuf field bool spot = 32; - * @param bool $var - * @return $this - */ - public function setSpot($var) - { - GPBUtil::checkBool($var); - $this->spot = $var; - - return $this; - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * @return \Google\Cloud\Container\V1\ConfidentialNodes|null - */ - public function getConfidentialNodes() - { - return $this->confidential_nodes; - } - - public function hasConfidentialNodes() - { - return isset($this->confidential_nodes); - } - - public function clearConfidentialNodes() - { - unset($this->confidential_nodes); - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 35; - * @param \Google\Cloud\Container\V1\ConfidentialNodes $var - * @return $this - */ - public function setConfidentialNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); - $this->confidential_nodes = $var; - - return $this; - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; - * @return \Google\Cloud\Container\V1\FastSocket|null - */ - public function getFastSocket() - { - return $this->fast_socket; - } - - public function hasFastSocket() - { - return isset($this->fast_socket); - } - - public function clearFastSocket() - { - unset($this->fast_socket); - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field optional .google.container.v1.FastSocket fast_socket = 36; - * @param \Google\Cloud\Container\V1\FastSocket $var - * @return $this - */ - public function setFastSocket($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\FastSocket::class); - $this->fast_socket = $var; - - return $this; - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 37; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field map resource_labels = 37; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 38; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * @return \Google\Cloud\Container\V1\WindowsNodeConfig|null - */ - public function getWindowsNodeConfig() - { - return $this->windows_node_config; - } - - public function hasWindowsNodeConfig() - { - return isset($this->windows_node_config); - } - - public function clearWindowsNodeConfig() - { - unset($this->windows_node_config); - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 39; - * @param \Google\Cloud\Container\V1\WindowsNodeConfig $var - * @return $this - */ - public function setWindowsNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WindowsNodeConfig::class); - $this->windows_node_config = $var; - - return $this; - } - - /** - * Parameters for using raw-block Local NVMe SSDs. - * - * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * @return \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig|null - */ - public function getLocalNvmeSsdBlockConfig() - { - return $this->local_nvme_ssd_block_config; - } - - public function hasLocalNvmeSsdBlockConfig() - { - return isset($this->local_nvme_ssd_block_config); - } - - public function clearLocalNvmeSsdBlockConfig() - { - unset($this->local_nvme_ssd_block_config); - } - - /** - * Parameters for using raw-block Local NVMe SSDs. - * - * Generated from protobuf field .google.container.v1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40; - * @param \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig $var - * @return $this - */ - public function setLocalNvmeSsdBlockConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LocalNvmeSsdBlockConfig::class); - $this->local_nvme_ssd_block_config = $var; - - return $this; - } - - /** - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * - * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * @return \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig|null - */ - public function getEphemeralStorageLocalSsdConfig() - { - return $this->ephemeral_storage_local_ssd_config; - } - - public function hasEphemeralStorageLocalSsdConfig() - { - return isset($this->ephemeral_storage_local_ssd_config); - } - - public function clearEphemeralStorageLocalSsdConfig() - { - unset($this->ephemeral_storage_local_ssd_config); - } - - /** - * Parameters for the node ephemeral storage using Local SSDs. - * If unspecified, ephemeral storage is backed by the boot disk. - * - * Generated from protobuf field .google.container.v1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41; - * @param \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig $var - * @return $this - */ - public function setEphemeralStorageLocalSsdConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\EphemeralStorageLocalSsdConfig::class); - $this->ephemeral_storage_local_ssd_config = $var; - - return $this; - } - - /** - * Parameters for node pools to be backed by shared sole tenant node groups. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - * @return \Google\Cloud\Container\V1\SoleTenantConfig|null - */ - public function getSoleTenantConfig() - { - return $this->sole_tenant_config; - } - - public function hasSoleTenantConfig() - { - return isset($this->sole_tenant_config); - } - - public function clearSoleTenantConfig() - { - unset($this->sole_tenant_config); - } - - /** - * Parameters for node pools to be backed by shared sole tenant node groups. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig sole_tenant_config = 42; - * @param \Google\Cloud\Container\V1\SoleTenantConfig $var - * @return $this - */ - public function setSoleTenantConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SoleTenantConfig::class); - $this->sole_tenant_config = $var; - - return $this; - } - - /** - * Parameters for containerd customization. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 43; - * @return \Google\Cloud\Container\V1\ContainerdConfig|null - */ - public function getContainerdConfig() - { - return $this->containerd_config; - } - - public function hasContainerdConfig() - { - return isset($this->containerd_config); - } - - public function clearContainerdConfig() - { - unset($this->containerd_config); - } - - /** - * Parameters for containerd customization. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 43; - * @param \Google\Cloud\Container\V1\ContainerdConfig $var - * @return $this - */ - public function setContainerdConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig::class); - $this->containerd_config = $var; - - return $this; - } - - /** - * A map of resource manager tag keys and values to be attached to the nodes. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - * @return \Google\Cloud\Container\V1\ResourceManagerTags|null - */ - public function getResourceManagerTags() - { - return $this->resource_manager_tags; - } - - public function hasResourceManagerTags() - { - return isset($this->resource_manager_tags); - } - - public function clearResourceManagerTags() - { - unset($this->resource_manager_tags); - } - - /** - * A map of resource manager tag keys and values to be attached to the nodes. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 45; - * @param \Google\Cloud\Container\V1\ResourceManagerTags $var - * @return $this - */ - public function setResourceManagerTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); - $this->resource_manager_tags = $var; - - return $this; - } - - /** - * Optional. Reserved for future use. - * - * Generated from protobuf field bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getEnableConfidentialStorage() - { - return $this->enable_confidential_storage; - } - - /** - * Optional. Reserved for future use. - * - * Generated from protobuf field bool enable_confidential_storage = 46 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setEnableConfidentialStorage($var) - { - GPBUtil::checkBool($var); - $this->enable_confidential_storage = $var; - - return $this; - } - - /** - * List of secondary boot disks attached to the nodes. - * - * Generated from protobuf field repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondaryBootDisks() - { - return $this->secondary_boot_disks; - } - - /** - * List of secondary boot disks attached to the nodes. - * - * Generated from protobuf field repeated .google.container.v1.SecondaryBootDisk secondary_boot_disks = 48; - * @param array<\Google\Cloud\Container\V1\SecondaryBootDisk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondaryBootDisks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\SecondaryBootDisk::class); - $this->secondary_boot_disks = $arr; - - return $this; - } - - /** - * List of Storage Pools where boot disks are provisioned. - * - * Generated from protobuf field repeated string storage_pools = 49; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStoragePools() - { - return $this->storage_pools; - } - - /** - * List of Storage Pools where boot disks are provisioned. - * - * Generated from protobuf field repeated string storage_pools = 49; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStoragePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->storage_pools = $arr; - - return $this; - } - - /** - * Secondary boot disk update strategy. - * - * Generated from protobuf field optional .google.container.v1.SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; - * @return \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy|null - */ - public function getSecondaryBootDiskUpdateStrategy() - { - return $this->secondary_boot_disk_update_strategy; - } - - public function hasSecondaryBootDiskUpdateStrategy() - { - return isset($this->secondary_boot_disk_update_strategy); - } - - public function clearSecondaryBootDiskUpdateStrategy() - { - unset($this->secondary_boot_disk_update_strategy); - } - - /** - * Secondary boot disk update strategy. - * - * Generated from protobuf field optional .google.container.v1.SecondaryBootDiskUpdateStrategy secondary_boot_disk_update_strategy = 50; - * @param \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy $var - * @return $this - */ - public function setSecondaryBootDiskUpdateStrategy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\SecondaryBootDiskUpdateStrategy::class); - $this->secondary_boot_disk_update_strategy = $var; - - return $this; - } - - /** - * Output only. effective_cgroup_mode is the cgroup mode actually used by the - * node pool. It is determined by the cgroup mode specified in the - * LinuxNodeConfig or the default cgroup mode based on the cluster creation - * version. - * - * Generated from protobuf field .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getEffectiveCgroupMode() - { - return $this->effective_cgroup_mode; - } - - /** - * Output only. effective_cgroup_mode is the cgroup mode actually used by the - * node pool. It is determined by the cgroup mode specified in the - * LinuxNodeConfig or the default cgroup mode based on the cluster creation - * version. - * - * Generated from protobuf field .google.container.v1.NodeConfig.EffectiveCgroupMode effective_cgroup_mode = 55 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setEffectiveCgroupMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodeConfig\EffectiveCgroupMode::class); - $this->effective_cgroup_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig/EffectiveCgroupMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig/EffectiveCgroupMode.php deleted file mode 100644 index a7cf5f5982cf..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfig/EffectiveCgroupMode.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.NodeConfig.EffectiveCgroupMode - */ -class EffectiveCgroupMode -{ - /** - * EFFECTIVE_CGROUP_MODE_UNSPECIFIED means the cgroup configuration for the - * node pool is unspecified, i.e. the node pool is a Windows node pool. - * - * Generated from protobuf enum EFFECTIVE_CGROUP_MODE_UNSPECIFIED = 0; - */ - const EFFECTIVE_CGROUP_MODE_UNSPECIFIED = 0; - /** - * CGROUP_MODE_V1 means the node pool is configured to use cgroupv1 for the - * cgroup configuration. - * - * Generated from protobuf enum EFFECTIVE_CGROUP_MODE_V1 = 1; - */ - const EFFECTIVE_CGROUP_MODE_V1 = 1; - /** - * CGROUP_MODE_V2 means the node pool is configured to use cgroupv2 for the - * cgroup configuration. - * - * Generated from protobuf enum EFFECTIVE_CGROUP_MODE_V2 = 2; - */ - const EFFECTIVE_CGROUP_MODE_V2 = 2; - - private static $valueToName = [ - self::EFFECTIVE_CGROUP_MODE_UNSPECIFIED => 'EFFECTIVE_CGROUP_MODE_UNSPECIFIED', - self::EFFECTIVE_CGROUP_MODE_V1 => 'EFFECTIVE_CGROUP_MODE_V1', - self::EFFECTIVE_CGROUP_MODE_V2 => 'EFFECTIVE_CGROUP_MODE_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(EffectiveCgroupMode::class, \Google\Cloud\Container\V1\NodeConfig_EffectiveCgroupMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php deleted file mode 100644 index 8dc657393e70..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeConfigDefaults.php +++ /dev/null @@ -1,213 +0,0 @@ -google.container.v1.NodeConfigDefaults - */ -class NodeConfigDefaults extends \Google\Protobuf\Internal\Message -{ - /** - * GCFS (Google Container File System, also known as Riptide) options. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; - */ - protected $gcfs_config = null; - /** - * Logging configuration for node pools. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; - */ - protected $logging_config = null; - /** - * Parameters for containerd customization. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 4; - */ - protected $containerd_config = null; - /** - * NodeKubeletConfig controls the defaults for new node-pools. - * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; - */ - protected $node_kubelet_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config - * GCFS (Google Container File System, also known as Riptide) options. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config - * Logging configuration for node pools. - * @type \Google\Cloud\Container\V1\ContainerdConfig $containerd_config - * Parameters for containerd customization. - * @type \Google\Cloud\Container\V1\NodeKubeletConfig $node_kubelet_config - * NodeKubeletConfig controls the defaults for new node-pools. - * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * GCFS (Google Container File System, also known as Riptide) options. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getGcfsConfig() - { - return $this->gcfs_config; - } - - public function hasGcfsConfig() - { - return isset($this->gcfs_config); - } - - public function clearGcfsConfig() - { - unset($this->gcfs_config); - } - - /** - * GCFS (Google Container File System, also known as Riptide) options. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 1; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->gcfs_config = $var; - - return $this; - } - - /** - * Logging configuration for node pools. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration for node pools. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 3; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Parameters for containerd customization. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 4; - * @return \Google\Cloud\Container\V1\ContainerdConfig|null - */ - public function getContainerdConfig() - { - return $this->containerd_config; - } - - public function hasContainerdConfig() - { - return isset($this->containerd_config); - } - - public function clearContainerdConfig() - { - unset($this->containerd_config); - } - - /** - * Parameters for containerd customization. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 4; - * @param \Google\Cloud\Container\V1\ContainerdConfig $var - * @return $this - */ - public function setContainerdConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig::class); - $this->containerd_config = $var; - - return $this; - } - - /** - * NodeKubeletConfig controls the defaults for new node-pools. - * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; - * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null - */ - public function getNodeKubeletConfig() - { - return $this->node_kubelet_config; - } - - public function hasNodeKubeletConfig() - { - return isset($this->node_kubelet_config); - } - - public function clearNodeKubeletConfig() - { - unset($this->node_kubelet_config); - } - - /** - * NodeKubeletConfig controls the defaults for new node-pools. - * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 6; - * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var - * @return $this - */ - public function setNodeKubeletConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); - $this->node_kubelet_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php deleted file mode 100644 index a6d7d3efb3a3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeKubeletConfig.php +++ /dev/null @@ -1,348 +0,0 @@ -google.container.v1.NodeKubeletConfig - */ -class NodeKubeletConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * - * Generated from protobuf field string cpu_manager_policy = 1; - */ - protected $cpu_manager_policy = ''; - /** - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - */ - protected $cpu_cfs_quota = null; - /** - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * - * Generated from protobuf field string cpu_cfs_quota_period = 3; - */ - protected $cpu_cfs_quota_period = ''; - /** - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * - * Generated from protobuf field int64 pod_pids_limit = 4; - */ - protected $pod_pids_limit = 0; - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 7; - */ - protected $insecure_kubelet_readonly_port_enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cpu_manager_policy - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * @type \Google\Protobuf\BoolValue $cpu_cfs_quota - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * @type string $cpu_cfs_quota_period - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * @type int|string $pod_pids_limit - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * @type bool $insecure_kubelet_readonly_port_enabled - * Enable or disable Kubelet read only port. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * - * Generated from protobuf field string cpu_manager_policy = 1; - * @return string - */ - public function getCpuManagerPolicy() - { - return $this->cpu_manager_policy; - } - - /** - * Control the CPU management policy on the node. - * See - * https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/ - * The following values are allowed. - * * "none": the default, which represents the existing scheduling behavior. - * * "static": allows pods with certain resource characteristics to be granted - * increased CPU affinity and exclusivity on the node. - * The default value is 'none' if unspecified. - * - * Generated from protobuf field string cpu_manager_policy = 1; - * @param string $var - * @return $this - */ - public function setCpuManagerPolicy($var) - { - GPBUtil::checkString($var, True); - $this->cpu_manager_policy = $var; - - return $this; - } - - /** - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return \Google\Protobuf\BoolValue|null - */ - public function getCpuCfsQuota() - { - return $this->cpu_cfs_quota; - } - - public function hasCpuCfsQuota() - { - return isset($this->cpu_cfs_quota); - } - - public function clearCpuCfsQuota() - { - unset($this->cpu_cfs_quota); - } - - /** - * Returns the unboxed value from getCpuCfsQuota() - - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @return bool|null - */ - public function getCpuCfsQuotaUnwrapped() - { - return $this->readWrapperValue("cpu_cfs_quota"); - } - - /** - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @param \Google\Protobuf\BoolValue $var - * @return $this - */ - public function setCpuCfsQuota($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\BoolValue::class); - $this->cpu_cfs_quota = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\BoolValue object. - - * Enable CPU CFS quota enforcement for containers that specify CPU limits. - * This option is enabled by default which makes kubelet use CFS quota - * (https://www.kernel.org/doc/Documentation/scheduler/sched-bwc.txt) to - * enforce container CPU limits. Otherwise, CPU limits will not be enforced at - * all. - * Disable this option to mitigate CPU throttling problems while still having - * your pods to be in Guaranteed QoS class by specifying the CPU limits. - * The default value is 'true' if unspecified. - * - * Generated from protobuf field .google.protobuf.BoolValue cpu_cfs_quota = 2; - * @param bool|null $var - * @return $this - */ - public function setCpuCfsQuotaUnwrapped($var) - { - $this->writeWrapperValue("cpu_cfs_quota", $var); - return $this;} - - /** - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * - * Generated from protobuf field string cpu_cfs_quota_period = 3; - * @return string - */ - public function getCpuCfsQuotaPeriod() - { - return $this->cpu_cfs_quota_period; - } - - /** - * Set the CPU CFS quota period value 'cpu.cfs_period_us'. - * The string must be a sequence of decimal numbers, each with optional - * fraction and a unit suffix, such as "300ms". - * Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". - * The value must be a positive duration. - * - * Generated from protobuf field string cpu_cfs_quota_period = 3; - * @param string $var - * @return $this - */ - public function setCpuCfsQuotaPeriod($var) - { - GPBUtil::checkString($var, True); - $this->cpu_cfs_quota_period = $var; - - return $this; - } - - /** - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * - * Generated from protobuf field int64 pod_pids_limit = 4; - * @return int|string - */ - public function getPodPidsLimit() - { - return $this->pod_pids_limit; - } - - /** - * Set the Pod PID limits. See - * https://kubernetes.io/docs/concepts/policy/pid-limiting/#pod-pid-limits - * Controls the maximum number of processes allowed to run in a pod. The value - * must be greater than or equal to 1024 and less than 4194304. - * - * Generated from protobuf field int64 pod_pids_limit = 4; - * @param int|string $var - * @return $this - */ - public function setPodPidsLimit($var) - { - GPBUtil::checkInt64($var); - $this->pod_pids_limit = $var; - - return $this; - } - - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 7; - * @return bool - */ - public function getInsecureKubeletReadonlyPortEnabled() - { - return isset($this->insecure_kubelet_readonly_port_enabled) ? $this->insecure_kubelet_readonly_port_enabled : false; - } - - public function hasInsecureKubeletReadonlyPortEnabled() - { - return isset($this->insecure_kubelet_readonly_port_enabled); - } - - public function clearInsecureKubeletReadonlyPortEnabled() - { - unset($this->insecure_kubelet_readonly_port_enabled); - } - - /** - * Enable or disable Kubelet read only port. - * - * Generated from protobuf field optional bool insecure_kubelet_readonly_port_enabled = 7; - * @param bool $var - * @return $this - */ - public function setInsecureKubeletReadonlyPortEnabled($var) - { - GPBUtil::checkBool($var); - $this->insecure_kubelet_readonly_port_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php deleted file mode 100644 index c358a5fd2b22..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeLabels.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.NodeLabels - */ -class NodeLabels extends \Google\Protobuf\Internal\Message -{ - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $labels - * Map of node label keys and node label values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php deleted file mode 100644 index a915f86917fc..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeManagement.php +++ /dev/null @@ -1,166 +0,0 @@ -google.container.v1.NodeManagement - */ -class NodeManagement extends \Google\Protobuf\Internal\Message -{ - /** - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * - * Generated from protobuf field bool auto_upgrade = 1; - */ - protected $auto_upgrade = false; - /** - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * - * Generated from protobuf field bool auto_repair = 2; - */ - protected $auto_repair = false; - /** - * Specifies the Auto Upgrade knobs for the node pool. - * - * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - */ - protected $upgrade_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $auto_upgrade - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * @type bool $auto_repair - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * @type \Google\Cloud\Container\V1\AutoUpgradeOptions $upgrade_options - * Specifies the Auto Upgrade knobs for the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * - * Generated from protobuf field bool auto_upgrade = 1; - * @return bool - */ - public function getAutoUpgrade() - { - return $this->auto_upgrade; - } - - /** - * A flag that specifies whether node auto-upgrade is enabled for the node - * pool. If enabled, node auto-upgrade helps keep the nodes in your node pool - * up to date with the latest release version of Kubernetes. - * - * Generated from protobuf field bool auto_upgrade = 1; - * @param bool $var - * @return $this - */ - public function setAutoUpgrade($var) - { - GPBUtil::checkBool($var); - $this->auto_upgrade = $var; - - return $this; - } - - /** - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * - * Generated from protobuf field bool auto_repair = 2; - * @return bool - */ - public function getAutoRepair() - { - return $this->auto_repair; - } - - /** - * A flag that specifies whether the node auto-repair is enabled for the node - * pool. If enabled, the nodes in this node pool will be monitored and, if - * they fail health checks too many times, an automatic repair action will be - * triggered. - * - * Generated from protobuf field bool auto_repair = 2; - * @param bool $var - * @return $this - */ - public function setAutoRepair($var) - { - GPBUtil::checkBool($var); - $this->auto_repair = $var; - - return $this; - } - - /** - * Specifies the Auto Upgrade knobs for the node pool. - * - * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * @return \Google\Cloud\Container\V1\AutoUpgradeOptions|null - */ - public function getUpgradeOptions() - { - return $this->upgrade_options; - } - - public function hasUpgradeOptions() - { - return isset($this->upgrade_options); - } - - public function clearUpgradeOptions() - { - unset($this->upgrade_options); - } - - /** - * Specifies the Auto Upgrade knobs for the node pool. - * - * Generated from protobuf field .google.container.v1.AutoUpgradeOptions upgrade_options = 10; - * @param \Google\Cloud\Container\V1\AutoUpgradeOptions $var - * @return $this - */ - public function setUpgradeOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AutoUpgradeOptions::class); - $this->upgrade_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php deleted file mode 100644 index b038dcc5e28d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig.php +++ /dev/null @@ -1,513 +0,0 @@ -google.container.v1.NodeNetworkConfig - */ -class NodeNetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $create_pod_range = false; - /** - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_range = 5; - */ - protected $pod_range = ''; - /** - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_ipv4_cidr_block = 6; - */ - protected $pod_ipv4_cidr_block = ''; - /** - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [Cluster.NetworkConfig.default_enable_private_nodes][] - * - * Generated from protobuf field optional bool enable_private_nodes = 9; - */ - protected $enable_private_nodes = null; - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - */ - protected $network_performance_config = null; - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the nodepool. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is rounded off to next power of 2 and we then double - * that to get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - */ - protected $pod_cidr_overprovision_config = null; - /** - * We specify the additional node networks for this node pool using this list. - * Each node network corresponds to an additional interface - * - * Generated from protobuf field repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - */ - private $additional_node_network_configs; - /** - * We specify the additional pod networks for this node pool using this list. - * Each pod network corresponds to an additional alias IP range for the node - * - * Generated from protobuf field repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - */ - private $additional_pod_network_configs; - /** - * Output only. The utilization of the IPv4 range for the pod. - * The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pod_ipv4_range_utilization = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $create_pod_range - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * @type string $pod_range - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * @type string $pod_ipv4_cidr_block - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * @type bool $enable_private_nodes - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [Cluster.NetworkConfig.default_enable_private_nodes][] - * @type \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig $network_performance_config - * Network bandwidth tier configuration. - * @type \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $pod_cidr_overprovision_config - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the nodepool. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is rounded off to next power of 2 and we then double - * that to get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * @type array<\Google\Cloud\Container\V1\AdditionalNodeNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $additional_node_network_configs - * We specify the additional node networks for this node pool using this list. - * Each node network corresponds to an additional interface - * @type array<\Google\Cloud\Container\V1\AdditionalPodNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $additional_pod_network_configs - * We specify the additional pod networks for this node pool using this list. - * Each pod network corresponds to an additional alias IP range for the node - * @type float $pod_ipv4_range_utilization - * Output only. The utilization of the IPv4 range for the pod. - * The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return bool - */ - public function getCreatePodRange() - { - return $this->create_pod_range; - } - - /** - * Input only. Whether to create a new range for pod IPs in this node pool. - * Defaults are provided for `pod_range` and `pod_ipv4_cidr_block` if they - * are not specified. - * If neither `create_pod_range` or `pod_range` are specified, the - * cluster-level default (`ip_allocation_policy.cluster_ipv4_cidr_block`) is - * used. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field bool create_pod_range = 4 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setCreatePodRange($var) - { - GPBUtil::checkBool($var); - $this->create_pod_range = $var; - - return $this; - } - - /** - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_range = 5; - * @return string - */ - public function getPodRange() - { - return $this->pod_range; - } - - /** - * The ID of the secondary range for pod IPs. - * If `create_pod_range` is true, this ID is used for the new range. - * If `create_pod_range` is false, uses an existing secondary range with this - * ID. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_range = 5; - * @param string $var - * @return $this - */ - public function setPodRange($var) - { - GPBUtil::checkString($var, True); - $this->pod_range = $var; - - return $this; - } - - /** - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_ipv4_cidr_block = 6; - * @return string - */ - public function getPodIpv4CidrBlock() - { - return $this->pod_ipv4_cidr_block; - } - - /** - * The IP address range for pod IPs in this node pool. - * Only applicable if `create_pod_range` is true. - * Set to blank to have a range chosen with the default size. - * Set to /netmask (e.g. `/14`) to have a range chosen with a specific - * netmask. - * Set to a - * [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) - * notation (e.g. `10.96.0.0/14`) to pick a specific range to use. - * Only applicable if `ip_allocation_policy.use_ip_aliases` is true. - * This field cannot be changed after the node pool has been created. - * - * Generated from protobuf field string pod_ipv4_cidr_block = 6; - * @param string $var - * @return $this - */ - public function setPodIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->pod_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [Cluster.NetworkConfig.default_enable_private_nodes][] - * - * Generated from protobuf field optional bool enable_private_nodes = 9; - * @return bool - */ - public function getEnablePrivateNodes() - { - return isset($this->enable_private_nodes) ? $this->enable_private_nodes : false; - } - - public function hasEnablePrivateNodes() - { - return isset($this->enable_private_nodes); - } - - public function clearEnablePrivateNodes() - { - unset($this->enable_private_nodes); - } - - /** - * Whether nodes have internal IP addresses only. - * If enable_private_nodes is not specified, then the value is derived from - * [Cluster.NetworkConfig.default_enable_private_nodes][] - * - * Generated from protobuf field optional bool enable_private_nodes = 9; - * @param bool $var - * @return $this - */ - public function setEnablePrivateNodes($var) - { - GPBUtil::checkBool($var); - $this->enable_private_nodes = $var; - - return $this; - } - - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * @return \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig|null - */ - public function getNetworkPerformanceConfig() - { - return $this->network_performance_config; - } - - public function hasNetworkPerformanceConfig() - { - return isset($this->network_performance_config); - } - - public function clearNetworkPerformanceConfig() - { - unset($this->network_performance_config); - } - - /** - * Network bandwidth tier configuration. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig network_performance_config = 11; - * @param \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig $var - * @return $this - */ - public function setNetworkPerformanceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig::class); - $this->network_performance_config = $var; - - return $this; - } - - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the nodepool. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is rounded off to next power of 2 and we then double - * that to get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * @return \Google\Cloud\Container\V1\PodCIDROverprovisionConfig|null - */ - public function getPodCidrOverprovisionConfig() - { - return $this->pod_cidr_overprovision_config; - } - - public function hasPodCidrOverprovisionConfig() - { - return isset($this->pod_cidr_overprovision_config); - } - - public function clearPodCidrOverprovisionConfig() - { - unset($this->pod_cidr_overprovision_config); - } - - /** - * [PRIVATE FIELD] - * Pod CIDR size overprovisioning config for the nodepool. - * Pod CIDR size per node depends on max_pods_per_node. By default, the value - * of max_pods_per_node is rounded off to next power of 2 and we then double - * that to get the size of pod CIDR block per node. - * Example: max_pods_per_node of 30 would result in 64 IPs (/26). - * This config can disable the doubling of IPs (we still round off to next - * power of 2) - * Example: max_pods_per_node of 30 will result in 32 IPs (/27) when - * overprovisioning is disabled. - * - * Generated from protobuf field .google.container.v1.PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13; - * @param \Google\Cloud\Container\V1\PodCIDROverprovisionConfig $var - * @return $this - */ - public function setPodCidrOverprovisionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PodCIDROverprovisionConfig::class); - $this->pod_cidr_overprovision_config = $var; - - return $this; - } - - /** - * We specify the additional node networks for this node pool using this list. - * Each node network corresponds to an additional interface - * - * Generated from protobuf field repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalNodeNetworkConfigs() - { - return $this->additional_node_network_configs; - } - - /** - * We specify the additional node networks for this node pool using this list. - * Each node network corresponds to an additional interface - * - * Generated from protobuf field repeated .google.container.v1.AdditionalNodeNetworkConfig additional_node_network_configs = 14; - * @param array<\Google\Cloud\Container\V1\AdditionalNodeNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalNodeNetworkConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AdditionalNodeNetworkConfig::class); - $this->additional_node_network_configs = $arr; - - return $this; - } - - /** - * We specify the additional pod networks for this node pool using this list. - * Each pod network corresponds to an additional alias IP range for the node - * - * Generated from protobuf field repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalPodNetworkConfigs() - { - return $this->additional_pod_network_configs; - } - - /** - * We specify the additional pod networks for this node pool using this list. - * Each pod network corresponds to an additional alias IP range for the node - * - * Generated from protobuf field repeated .google.container.v1.AdditionalPodNetworkConfig additional_pod_network_configs = 15; - * @param array<\Google\Cloud\Container\V1\AdditionalPodNetworkConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalPodNetworkConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AdditionalPodNetworkConfig::class); - $this->additional_pod_network_configs = $arr; - - return $this; - } - - /** - * Output only. The utilization of the IPv4 range for the pod. - * The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getPodIpv4RangeUtilization() - { - return $this->pod_ipv4_range_utilization; - } - - /** - * Output only. The utilization of the IPv4 range for the pod. - * The ratio is Usage/[Total number of IPs in the secondary range], - * Usage=numNodes*numZones*podIPsPerNode. - * - * Generated from protobuf field double pod_ipv4_range_utilization = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setPodIpv4RangeUtilization($var) - { - GPBUtil::checkDouble($var); - $this->pod_ipv4_range_utilization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php deleted file mode 100644 index 171177950b7c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig.php +++ /dev/null @@ -1,80 +0,0 @@ -google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig - */ -class NetworkPerformanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies the total network bandwidth tier for the NodePool. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - */ - protected $total_egress_bandwidth_tier = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $total_egress_bandwidth_tier - * Specifies the total network bandwidth tier for the NodePool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Specifies the total network bandwidth tier for the NodePool. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * @return int - */ - public function getTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier) ? $this->total_egress_bandwidth_tier : 0; - } - - public function hasTotalEgressBandwidthTier() - { - return isset($this->total_egress_bandwidth_tier); - } - - public function clearTotalEgressBandwidthTier() - { - unset($this->total_egress_bandwidth_tier); - } - - /** - * Specifies the total network bandwidth tier for the NodePool. - * - * Generated from protobuf field optional .google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier total_egress_bandwidth_tier = 1; - * @param int $var - * @return $this - */ - public function setTotalEgressBandwidthTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodeNetworkConfig\NetworkPerformanceConfig\Tier::class); - $this->total_egress_bandwidth_tier = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NetworkPerformanceConfig::class, \Google\Cloud\Container\V1\NodeNetworkConfig_NetworkPerformanceConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php deleted file mode 100644 index 7101c3334fff..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeNetworkConfig/NetworkPerformanceConfig/Tier.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.NodeNetworkConfig.NetworkPerformanceConfig.Tier - */ -class Tier -{ - /** - * Default value - * - * Generated from protobuf enum TIER_UNSPECIFIED = 0; - */ - const TIER_UNSPECIFIED = 0; - /** - * Higher bandwidth, actual values based on VM size. - * - * Generated from protobuf enum TIER_1 = 1; - */ - const TIER_1 = 1; - - private static $valueToName = [ - self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', - self::TIER_1 => 'TIER_1', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Tier::class, \Google\Cloud\Container\V1\NodeNetworkConfig_NetworkPerformanceConfig_Tier::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php deleted file mode 100644 index 3a56131850e2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool.php +++ /dev/null @@ -1,953 +0,0 @@ -google.container.v1.NodePool - */ -class NodePool extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the node pool. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The node configuration of the pool. - * - * Generated from protobuf field .google.container.v1.NodeConfig config = 2; - */ - protected $config = null; - /** - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * - * Generated from protobuf field int32 initial_node_count = 3; - */ - protected $initial_node_count = 0; - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - */ - private $locations; - /** - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; - */ - protected $network_config = null; - /** - * Output only. Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $self_link = ''; - /** - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * - * Generated from protobuf field string version = 101; - */ - protected $version = ''; - /** - * Output only. The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * - * Generated from protobuf field repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $instance_group_urls; - /** - * Output only. The status of the nodes in this pool instance. - * - * Generated from protobuf field .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = 0; - /** - * Output only. Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * - * Generated from protobuf field string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $status_message = ''; - /** - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; - */ - protected $autoscaling = null; - /** - * NodeManagement configuration for this NodePool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5; - */ - protected $management = null; - /** - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - */ - protected $max_pods_constraint = null; - /** - * Which conditions caused the current node pool state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; - */ - private $conditions; - /** - * Output only. The pod CIDR block size per node in this node pool. - * - * Generated from protobuf field int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pod_ipv4_cidr_size = 0; - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - */ - protected $upgrade_settings = null; - /** - * Specifies the node placement policy. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - */ - protected $placement_policy = null; - /** - * Output only. Update info contains relevant information during a node - * pool update. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_info = null; - /** - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 110; - */ - protected $etag = ''; - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - */ - protected $queued_provisioning = null; - /** - * Enable best effort provisioning for nodes - * - * Generated from protobuf field .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - */ - protected $best_effort_provisioning = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the node pool. - * @type \Google\Cloud\Container\V1\NodeConfig $config - * The node configuration of the pool. - * @type int $initial_node_count - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * @type \Google\Cloud\Container\V1\NodeNetworkConfig $network_config - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * @type string $self_link - * Output only. Server-defined URL for the resource. - * @type string $version - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * @type array|\Google\Protobuf\Internal\RepeatedField $instance_group_urls - * Output only. The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * @type int $status - * Output only. The status of the nodes in this pool instance. - * @type string $status_message - * Output only. Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $autoscaling - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * @type \Google\Cloud\Container\V1\NodeManagement $management - * NodeManagement configuration for this NodePool. - * @type \Google\Cloud\Container\V1\MaxPodsConstraint $max_pods_constraint - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $conditions - * Which conditions caused the current node pool state. - * @type int $pod_ipv4_cidr_size - * Output only. The pod CIDR block size per node in this node pool. - * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings - * Upgrade settings control disruption and speed of the upgrade. - * @type \Google\Cloud\Container\V1\NodePool\PlacementPolicy $placement_policy - * Specifies the node placement policy. - * @type \Google\Cloud\Container\V1\NodePool\UpdateInfo $update_info - * Output only. Update info contains relevant information during a node - * pool update. - * @type string $etag - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * @type \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $queued_provisioning - * Specifies the configuration of queued provisioning. - * @type \Google\Cloud\Container\V1\BestEffortProvisioning $best_effort_provisioning - * Enable best effort provisioning for nodes - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name of the node pool. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the node pool. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The node configuration of the pool. - * - * Generated from protobuf field .google.container.v1.NodeConfig config = 2; - * @return \Google\Cloud\Container\V1\NodeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * The node configuration of the pool. - * - * Generated from protobuf field .google.container.v1.NodeConfig config = 2; - * @param \Google\Cloud\Container\V1\NodeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * - * Generated from protobuf field int32 initial_node_count = 3; - * @return int - */ - public function getInitialNodeCount() - { - return $this->initial_node_count; - } - - /** - * The initial node count for the pool. You must ensure that your - * Compute Engine [resource quota](https://cloud.google.com/compute/quotas) - * is sufficient for this number of instances. You must also have available - * firewall and routes quota. - * - * Generated from protobuf field int32 initial_node_count = 3; - * @param int $var - * @return $this - */ - public function setInitialNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->initial_node_count = $var; - - return $this; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * The list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * NodePool's nodes should be located. - * If this value is unspecified during node pool creation, the - * [Cluster.Locations](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters#Cluster.FIELDS.locations) - * value will be used, instead. - * Warning: changing node pool locations will result in nodes being added - * and/or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; - * @return \Google\Cloud\Container\V1\NodeNetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * Networking configuration for this NodePool. If specified, it overrides the - * cluster-level defaults. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig network_config = 14; - * @param \Google\Cloud\Container\V1\NodeNetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * Output only. Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSelfLink() - { - return $this->self_link; - } - - /** - * Output only. Server-defined URL for the resource. - * - * Generated from protobuf field string self_link = 100 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSelfLink($var) - { - GPBUtil::checkString($var, True); - $this->self_link = $var; - - return $this; - } - - /** - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * - * Generated from protobuf field string version = 101; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of Kubernetes running on this NodePool's nodes. If unspecified, - * it defaults as described - * [here](https://cloud.google.com/kubernetes-engine/versioning#specifying_node_version). - * - * Generated from protobuf field string version = 101; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Output only. The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * - * Generated from protobuf field repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInstanceGroupUrls() - { - return $this->instance_group_urls; - } - - /** - * Output only. The resource URLs of the [managed instance - * groups](https://cloud.google.com/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with this node pool. - * During the node pool blue-green upgrade operation, the URLs contain both - * blue and green resources. - * - * Generated from protobuf field repeated string instance_group_urls = 102 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInstanceGroupUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->instance_group_urls = $arr; - - return $this; - } - - /** - * Output only. The status of the nodes in this pool instance. - * - * Generated from protobuf field .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Output only. The status of the nodes in this pool instance. - * - * Generated from protobuf field .google.container.v1.NodePool.Status status = 103 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Output only. Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * - * Generated from protobuf field string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - * @deprecated - */ - public function getStatusMessage() - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - return $this->status_message; - } - - /** - * Output only. Deprecated. Use conditions instead. - * Additional information about the current status of this - * node pool instance, if available. - * - * Generated from protobuf field string status_message = 104 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - * @deprecated - */ - public function setStatusMessage($var) - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Autoscaler configuration for this NodePool. Autoscaler is enabled - * only if a valid configuration is present. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 4; - * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * NodeManagement configuration for this NodePool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5; - * @return \Google\Cloud\Container\V1\NodeManagement|null - */ - public function getManagement() - { - return $this->management; - } - - public function hasManagement() - { - return isset($this->management); - } - - public function clearManagement() - { - unset($this->management); - } - - /** - * NodeManagement configuration for this NodePool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5; - * @param \Google\Cloud\Container\V1\NodeManagement $var - * @return $this - */ - public function setManagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); - $this->management = $var; - - return $this; - } - - /** - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * @return \Google\Cloud\Container\V1\MaxPodsConstraint|null - */ - public function getMaxPodsConstraint() - { - return $this->max_pods_constraint; - } - - public function hasMaxPodsConstraint() - { - return isset($this->max_pods_constraint); - } - - public function clearMaxPodsConstraint() - { - unset($this->max_pods_constraint); - } - - /** - * The constraint on the maximum number of pods that can be run - * simultaneously on a node in the node pool. - * - * Generated from protobuf field .google.container.v1.MaxPodsConstraint max_pods_constraint = 6; - * @param \Google\Cloud\Container\V1\MaxPodsConstraint $var - * @return $this - */ - public function setMaxPodsConstraint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaxPodsConstraint::class); - $this->max_pods_constraint = $var; - - return $this; - } - - /** - * Which conditions caused the current node pool state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Which conditions caused the current node pool state. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition conditions = 105; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->conditions = $arr; - - return $this; - } - - /** - * Output only. The pod CIDR block size per node in this node pool. - * - * Generated from protobuf field int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getPodIpv4CidrSize() - { - return $this->pod_ipv4_cidr_size; - } - - /** - * Output only. The pod CIDR block size per node in this node pool. - * - * Generated from protobuf field int32 pod_ipv4_cidr_size = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setPodIpv4CidrSize($var) - { - GPBUtil::checkInt32($var); - $this->pod_ipv4_cidr_size = $var; - - return $this; - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null - */ - public function getUpgradeSettings() - { - return $this->upgrade_settings; - } - - public function hasUpgradeSettings() - { - return isset($this->upgrade_settings); - } - - public function clearUpgradeSettings() - { - unset($this->upgrade_settings); - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 107; - * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var - * @return $this - */ - public function setUpgradeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); - $this->upgrade_settings = $var; - - return $this; - } - - /** - * Specifies the node placement policy. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * @return \Google\Cloud\Container\V1\NodePool\PlacementPolicy|null - */ - public function getPlacementPolicy() - { - return $this->placement_policy; - } - - public function hasPlacementPolicy() - { - return isset($this->placement_policy); - } - - public function clearPlacementPolicy() - { - unset($this->placement_policy); - } - - /** - * Specifies the node placement policy. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy placement_policy = 108; - * @param \Google\Cloud\Container\V1\NodePool\PlacementPolicy $var - * @return $this - */ - public function setPlacementPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\PlacementPolicy::class); - $this->placement_policy = $var; - - return $this; - } - - /** - * Output only. Update info contains relevant information during a node - * pool update. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Container\V1\NodePool\UpdateInfo|null - */ - public function getUpdateInfo() - { - return $this->update_info; - } - - public function hasUpdateInfo() - { - return isset($this->update_info); - } - - public function clearUpdateInfo() - { - unset($this->update_info); - } - - /** - * Output only. Update info contains relevant information during a node - * pool update. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo update_info = 109 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Container\V1\NodePool\UpdateInfo $var - * @return $this - */ - public function setUpdateInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo::class); - $this->update_info = $var; - - return $this; - } - - /** - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 110; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * This checksum is computed by the server based on the value of node pool - * fields, and may be sent on update requests to ensure the client has an - * up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 110; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - * @return \Google\Cloud\Container\V1\NodePool\QueuedProvisioning|null - */ - public function getQueuedProvisioning() - { - return $this->queued_provisioning; - } - - public function hasQueuedProvisioning() - { - return isset($this->queued_provisioning); - } - - public function clearQueuedProvisioning() - { - unset($this->queued_provisioning); - } - - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 112; - * @param \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $var - * @return $this - */ - public function setQueuedProvisioning($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\QueuedProvisioning::class); - $this->queued_provisioning = $var; - - return $this; - } - - /** - * Enable best effort provisioning for nodes - * - * Generated from protobuf field .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - * @return \Google\Cloud\Container\V1\BestEffortProvisioning|null - */ - public function getBestEffortProvisioning() - { - return $this->best_effort_provisioning; - } - - public function hasBestEffortProvisioning() - { - return isset($this->best_effort_provisioning); - } - - public function clearBestEffortProvisioning() - { - unset($this->best_effort_provisioning); - } - - /** - * Enable best effort provisioning for nodes - * - * Generated from protobuf field .google.container.v1.BestEffortProvisioning best_effort_provisioning = 113; - * @param \Google\Cloud\Container\V1\BestEffortProvisioning $var - * @return $this - */ - public function setBestEffortProvisioning($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BestEffortProvisioning::class); - $this->best_effort_provisioning = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php deleted file mode 100644 index 66b18a002b4d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy.php +++ /dev/null @@ -1,150 +0,0 @@ -google.container.v1.NodePool.PlacementPolicy - */ -class PlacementPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * The type of placement. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - */ - protected $type = 0; - /** - * Optional. TPU placement topology for pod slice node pool. - * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies - * - * Generated from protobuf field string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $tpu_topology = ''; - /** - * If set, refers to the name of a custom resource policy supplied by the - * user. The resource policy must be in the same project and region as the - * node pool. If not found, InvalidArgument error is returned. - * - * Generated from protobuf field string policy_name = 3; - */ - protected $policy_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The type of placement. - * @type string $tpu_topology - * Optional. TPU placement topology for pod slice node pool. - * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies - * @type string $policy_name - * If set, refers to the name of a custom resource policy supplied by the - * user. The resource policy must be in the same project and region as the - * node pool. If not found, InvalidArgument error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The type of placement. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of placement. - * - * Generated from protobuf field .google.container.v1.NodePool.PlacementPolicy.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\PlacementPolicy\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Optional. TPU placement topology for pod slice node pool. - * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies - * - * Generated from protobuf field string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTpuTopology() - { - return $this->tpu_topology; - } - - /** - * Optional. TPU placement topology for pod slice node pool. - * https://cloud.google.com/tpu/docs/types-topologies#tpu_topologies - * - * Generated from protobuf field string tpu_topology = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTpuTopology($var) - { - GPBUtil::checkString($var, True); - $this->tpu_topology = $var; - - return $this; - } - - /** - * If set, refers to the name of a custom resource policy supplied by the - * user. The resource policy must be in the same project and region as the - * node pool. If not found, InvalidArgument error is returned. - * - * Generated from protobuf field string policy_name = 3; - * @return string - */ - public function getPolicyName() - { - return $this->policy_name; - } - - /** - * If set, refers to the name of a custom resource policy supplied by the - * user. The resource policy must be in the same project and region as the - * node pool. If not found, InvalidArgument error is returned. - * - * Generated from protobuf field string policy_name = 3; - * @param string $var - * @return $this - */ - public function setPolicyName($var) - { - GPBUtil::checkString($var, True); - $this->policy_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PlacementPolicy::class, \Google\Cloud\Container\V1\NodePool_PlacementPolicy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php deleted file mode 100644 index feb385c477d5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/PlacementPolicy/Type.php +++ /dev/null @@ -1,59 +0,0 @@ -google.container.v1.NodePool.PlacementPolicy.Type - */ -class Type -{ - /** - * TYPE_UNSPECIFIED specifies no requirements on nodes - * placement. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * COMPACT specifies node placement in the same availability domain to - * ensure low communication latency. - * - * Generated from protobuf enum COMPACT = 1; - */ - const COMPACT = 1; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::COMPACT => 'COMPACT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Container\V1\NodePool_PlacementPolicy_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php deleted file mode 100644 index f2d189abac0b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/QueuedProvisioning.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.NodePool.QueuedProvisioning - */ -class QueuedProvisioning extends \Google\Protobuf\Internal\Message -{ - /** - * Denotes that this nodepool is QRM specific, meaning nodes can be only - * obtained through queuing via the Cluster Autoscaler ProvisioningRequest - * API. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Denotes that this nodepool is QRM specific, meaning nodes can be only - * obtained through queuing via the Cluster Autoscaler ProvisioningRequest - * API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Denotes that this nodepool is QRM specific, meaning nodes can be only - * obtained through queuing via the Cluster Autoscaler ProvisioningRequest - * API. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Denotes that this nodepool is QRM specific, meaning nodes can be only - * obtained through queuing via the Cluster Autoscaler ProvisioningRequest - * API. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueuedProvisioning::class, \Google\Cloud\Container\V1\NodePool_QueuedProvisioning::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php deleted file mode 100644 index 76d3391edf7d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/Status.php +++ /dev/null @@ -1,99 +0,0 @@ -google.container.v1.NodePool.Status - */ -class Status -{ - /** - * Not set. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The PROVISIONING state indicates the node pool is being created. - * - * Generated from protobuf enum PROVISIONING = 1; - */ - const PROVISIONING = 1; - /** - * The RUNNING state indicates the node pool has been created - * and is fully usable. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The RUNNING_WITH_ERROR state indicates the node pool has been created - * and is partially usable. Some error state has occurred and some - * functionality may be impaired. Customer may need to reissue a request - * or trigger a new update. - * - * Generated from protobuf enum RUNNING_WITH_ERROR = 3; - */ - const RUNNING_WITH_ERROR = 3; - /** - * The RECONCILING state indicates that some work is actively being done on - * the node pool, such as upgrading node software. Details can - * be found in the `statusMessage` field. - * - * Generated from protobuf enum RECONCILING = 4; - */ - const RECONCILING = 4; - /** - * The STOPPING state indicates the node pool is being deleted. - * - * Generated from protobuf enum STOPPING = 5; - */ - const STOPPING = 5; - /** - * The ERROR state indicates the node pool may be unusable. Details - * can be found in the `statusMessage` field. - * - * Generated from protobuf enum ERROR = 6; - */ - const ERROR = 6; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::PROVISIONING => 'PROVISIONING', - self::RUNNING => 'RUNNING', - self::RUNNING_WITH_ERROR => 'RUNNING_WITH_ERROR', - self::RECONCILING => 'RECONCILING', - self::STOPPING => 'STOPPING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\NodePool_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php deleted file mode 100644 index 051fb577f24d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo.php +++ /dev/null @@ -1,81 +0,0 @@ -google.container.v1.NodePool.UpdateInfo - */ -class UpdateInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Information of a blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - */ - protected $blue_green_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo $blue_green_info - * Information of a blue-green upgrade. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Information of a blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * @return \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo|null - */ - public function getBlueGreenInfo() - { - return $this->blue_green_info; - } - - public function hasBlueGreenInfo() - { - return isset($this->blue_green_info); - } - - public function clearBlueGreenInfo() - { - unset($this->blue_green_info); - } - - /** - * Information of a blue-green upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo blue_green_info = 1; - * @param \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo $var - * @return $this - */ - public function setBlueGreenInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo::class); - $this->blue_green_info = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UpdateInfo::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php deleted file mode 100644 index 5a4d73eb77af..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo.php +++ /dev/null @@ -1,226 +0,0 @@ -google.container.v1.NodePool.UpdateInfo.BlueGreenInfo - */ -class BlueGreenInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Current blue-green upgrade phase. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - */ - protected $phase = 0; - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * - * Generated from protobuf field repeated string blue_instance_group_urls = 2; - */ - private $blue_instance_group_urls; - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * - * Generated from protobuf field repeated string green_instance_group_urls = 3; - */ - private $green_instance_group_urls; - /** - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string blue_pool_deletion_start_time = 4; - */ - protected $blue_pool_deletion_start_time = ''; - /** - * Version of green pool. - * - * Generated from protobuf field string green_pool_version = 5; - */ - protected $green_pool_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $phase - * Current blue-green upgrade phase. - * @type array|\Google\Protobuf\Internal\RepeatedField $blue_instance_group_urls - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * @type array|\Google\Protobuf\Internal\RepeatedField $green_instance_group_urls - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * @type string $blue_pool_deletion_start_time - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type string $green_pool_version - * Version of green pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Current blue-green upgrade phase. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * @return int - */ - public function getPhase() - { - return $this->phase; - } - - /** - * Current blue-green upgrade phase. - * - * Generated from protobuf field .google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase phase = 1; - * @param int $var - * @return $this - */ - public function setPhase($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePool\UpdateInfo\BlueGreenInfo\Phase::class); - $this->phase = $var; - - return $this; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * - * Generated from protobuf field repeated string blue_instance_group_urls = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlueInstanceGroupUrls() - { - return $this->blue_instance_group_urls; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with blue pool. - * - * Generated from protobuf field repeated string blue_instance_group_urls = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlueInstanceGroupUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->blue_instance_group_urls = $arr; - - return $this; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * - * Generated from protobuf field repeated string green_instance_group_urls = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGreenInstanceGroupUrls() - { - return $this->green_instance_group_urls; - } - - /** - * The resource URLs of the [managed instance groups] - * (/compute/docs/instance-groups/creating-groups-of-managed-instances) - * associated with green pool. - * - * Generated from protobuf field repeated string green_instance_group_urls = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGreenInstanceGroupUrls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->green_instance_group_urls = $arr; - - return $this; - } - - /** - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string blue_pool_deletion_start_time = 4; - * @return string - */ - public function getBluePoolDeletionStartTime() - { - return $this->blue_pool_deletion_start_time; - } - - /** - * Time to start deleting blue pool to complete blue-green upgrade, - * in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string blue_pool_deletion_start_time = 4; - * @param string $var - * @return $this - */ - public function setBluePoolDeletionStartTime($var) - { - GPBUtil::checkString($var, True); - $this->blue_pool_deletion_start_time = $var; - - return $this; - } - - /** - * Version of green pool. - * - * Generated from protobuf field string green_pool_version = 5; - * @return string - */ - public function getGreenPoolVersion() - { - return $this->green_pool_version; - } - - /** - * Version of green pool. - * - * Generated from protobuf field string green_pool_version = 5; - * @param string $var - * @return $this - */ - public function setGreenPoolVersion($var) - { - GPBUtil::checkString($var, True); - $this->green_pool_version = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BlueGreenInfo::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo_BlueGreenInfo::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php deleted file mode 100644 index f47b3342f3ef..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpdateInfo/BlueGreenInfo/Phase.php +++ /dev/null @@ -1,99 +0,0 @@ -google.container.v1.NodePool.UpdateInfo.BlueGreenInfo.Phase - */ -class Phase -{ - /** - * Unspecified phase. - * - * Generated from protobuf enum PHASE_UNSPECIFIED = 0; - */ - const PHASE_UNSPECIFIED = 0; - /** - * blue-green upgrade has been initiated. - * - * Generated from protobuf enum UPDATE_STARTED = 1; - */ - const UPDATE_STARTED = 1; - /** - * Start creating green pool nodes. - * - * Generated from protobuf enum CREATING_GREEN_POOL = 2; - */ - const CREATING_GREEN_POOL = 2; - /** - * Start cordoning blue pool nodes. - * - * Generated from protobuf enum CORDONING_BLUE_POOL = 3; - */ - const CORDONING_BLUE_POOL = 3; - /** - * Start draining blue pool nodes. - * - * Generated from protobuf enum DRAINING_BLUE_POOL = 4; - */ - const DRAINING_BLUE_POOL = 4; - /** - * Start soaking time after draining entire blue pool. - * - * Generated from protobuf enum NODE_POOL_SOAKING = 5; - */ - const NODE_POOL_SOAKING = 5; - /** - * Start deleting blue nodes. - * - * Generated from protobuf enum DELETING_BLUE_POOL = 6; - */ - const DELETING_BLUE_POOL = 6; - /** - * Rollback has been initiated. - * - * Generated from protobuf enum ROLLBACK_STARTED = 7; - */ - const ROLLBACK_STARTED = 7; - - private static $valueToName = [ - self::PHASE_UNSPECIFIED => 'PHASE_UNSPECIFIED', - self::UPDATE_STARTED => 'UPDATE_STARTED', - self::CREATING_GREEN_POOL => 'CREATING_GREEN_POOL', - self::CORDONING_BLUE_POOL => 'CORDONING_BLUE_POOL', - self::DRAINING_BLUE_POOL => 'DRAINING_BLUE_POOL', - self::NODE_POOL_SOAKING => 'NODE_POOL_SOAKING', - self::DELETING_BLUE_POOL => 'DELETING_BLUE_POOL', - self::ROLLBACK_STARTED => 'ROLLBACK_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(Phase::class, \Google\Cloud\Container\V1\NodePool_UpdateInfo_BlueGreenInfo_Phase::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php deleted file mode 100644 index 7fea002183a1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePool/UpgradeSettings.php +++ /dev/null @@ -1,241 +0,0 @@ -google.container.v1.NodePool.UpgradeSettings - */ -class UpgradeSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * - * Generated from protobuf field int32 max_surge = 1; - */ - protected $max_surge = 0; - /** - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * - * Generated from protobuf field int32 max_unavailable = 2; - */ - protected $max_unavailable = 0; - /** - * Update strategy of the node pool. - * - * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - */ - protected $strategy = null; - /** - * Settings for blue-green upgrade strategy. - * - * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - */ - protected $blue_green_settings = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $max_surge - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * @type int $max_unavailable - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * @type int $strategy - * Update strategy of the node pool. - * @type \Google\Cloud\Container\V1\BlueGreenSettings $blue_green_settings - * Settings for blue-green upgrade strategy. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * - * Generated from protobuf field int32 max_surge = 1; - * @return int - */ - public function getMaxSurge() - { - return $this->max_surge; - } - - /** - * The maximum number of nodes that can be created beyond the current size - * of the node pool during the upgrade process. - * - * Generated from protobuf field int32 max_surge = 1; - * @param int $var - * @return $this - */ - public function setMaxSurge($var) - { - GPBUtil::checkInt32($var); - $this->max_surge = $var; - - return $this; - } - - /** - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * - * Generated from protobuf field int32 max_unavailable = 2; - * @return int - */ - public function getMaxUnavailable() - { - return $this->max_unavailable; - } - - /** - * The maximum number of nodes that can be simultaneously unavailable during - * the upgrade process. A node is considered available if its status is - * Ready. - * - * Generated from protobuf field int32 max_unavailable = 2; - * @param int $var - * @return $this - */ - public function setMaxUnavailable($var) - { - GPBUtil::checkInt32($var); - $this->max_unavailable = $var; - - return $this; - } - - /** - * Update strategy of the node pool. - * - * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * @return int - */ - public function getStrategy() - { - return isset($this->strategy) ? $this->strategy : 0; - } - - public function hasStrategy() - { - return isset($this->strategy); - } - - public function clearStrategy() - { - unset($this->strategy); - } - - /** - * Update strategy of the node pool. - * - * Generated from protobuf field optional .google.container.v1.NodePoolUpdateStrategy strategy = 3; - * @param int $var - * @return $this - */ - public function setStrategy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePoolUpdateStrategy::class); - $this->strategy = $var; - - return $this; - } - - /** - * Settings for blue-green upgrade strategy. - * - * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * @return \Google\Cloud\Container\V1\BlueGreenSettings|null - */ - public function getBlueGreenSettings() - { - return $this->blue_green_settings; - } - - public function hasBlueGreenSettings() - { - return isset($this->blue_green_settings); - } - - public function clearBlueGreenSettings() - { - unset($this->blue_green_settings); - } - - /** - * Settings for blue-green upgrade strategy. - * - * Generated from protobuf field optional .google.container.v1.BlueGreenSettings blue_green_settings = 4; - * @param \Google\Cloud\Container\V1\BlueGreenSettings $var - * @return $this - */ - public function setBlueGreenSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\BlueGreenSettings::class); - $this->blue_green_settings = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UpgradeSettings::class, \Google\Cloud\Container\V1\NodePool_UpgradeSettings::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php deleted file mode 100644 index 8c5b50bb7d9d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoConfig.php +++ /dev/null @@ -1,186 +0,0 @@ -google.container.v1.NodePoolAutoConfig - */ -class NodePoolAutoConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; - */ - protected $network_tags = null; - /** - * Resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - */ - protected $resource_manager_tags = null; - /** - * NodeKubeletConfig controls the defaults for autoprovisioned node-pools. - * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; - */ - protected $node_kubelet_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NetworkTags $network_tags - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags - * Resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * @type \Google\Cloud\Container\V1\NodeKubeletConfig $node_kubelet_config - * NodeKubeletConfig controls the defaults for autoprovisioned node-pools. - * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; - * @return \Google\Cloud\Container\V1\NetworkTags|null - */ - public function getNetworkTags() - { - return $this->network_tags; - } - - public function hasNetworkTags() - { - return isset($this->network_tags); - } - - public function clearNetworkTags() - { - unset($this->network_tags); - } - - /** - * The list of instance tags applied to all nodes. Tags are used to identify - * valid sources or targets for network firewalls and are specified by - * the client during cluster creation. Each tag within the list - * must comply with RFC1035. - * - * Generated from protobuf field .google.container.v1.NetworkTags network_tags = 1; - * @param \Google\Cloud\Container\V1\NetworkTags $var - * @return $this - */ - public function setNetworkTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); - $this->network_tags = $var; - - return $this; - } - - /** - * Resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - * @return \Google\Cloud\Container\V1\ResourceManagerTags|null - */ - public function getResourceManagerTags() - { - return $this->resource_manager_tags; - } - - public function hasResourceManagerTags() - { - return isset($this->resource_manager_tags); - } - - public function clearResourceManagerTags() - { - unset($this->resource_manager_tags); - } - - /** - * Resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 2; - * @param \Google\Cloud\Container\V1\ResourceManagerTags $var - * @return $this - */ - public function setResourceManagerTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); - $this->resource_manager_tags = $var; - - return $this; - } - - /** - * NodeKubeletConfig controls the defaults for autoprovisioned node-pools. - * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; - * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null - */ - public function getNodeKubeletConfig() - { - return $this->node_kubelet_config; - } - - public function hasNodeKubeletConfig() - { - return isset($this->node_kubelet_config); - } - - public function clearNodeKubeletConfig() - { - unset($this->node_kubelet_config); - } - - /** - * NodeKubeletConfig controls the defaults for autoprovisioned node-pools. - * Currently only `insecure_kubelet_readonly_port_enabled` can be set here. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig node_kubelet_config = 3; - * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var - * @return $this - */ - public function setNodeKubeletConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); - $this->node_kubelet_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php deleted file mode 100644 index 6f5f3887bcfe..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling.php +++ /dev/null @@ -1,304 +0,0 @@ -google.container.v1.NodePoolAutoscaling - */ -class NodePoolAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Is autoscaling enabled for this node pool. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * - * Generated from protobuf field int32 min_node_count = 2; - */ - protected $min_node_count = 0; - /** - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * - * Generated from protobuf field int32 max_node_count = 3; - */ - protected $max_node_count = 0; - /** - * Can this node pool be deleted automatically. - * - * Generated from protobuf field bool autoprovisioned = 4; - */ - protected $autoprovisioned = false; - /** - * Location policy used when scaling up a nodepool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - */ - protected $location_policy = 0; - /** - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_min_node_count = 6; - */ - protected $total_min_node_count = 0; - /** - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_max_node_count = 7; - */ - protected $total_max_node_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Is autoscaling enabled for this node pool. - * @type int $min_node_count - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * @type int $max_node_count - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * @type bool $autoprovisioned - * Can this node pool be deleted automatically. - * @type int $location_policy - * Location policy used when scaling up a nodepool. - * @type int $total_min_node_count - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * @type int $total_max_node_count - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Is autoscaling enabled for this node pool. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Is autoscaling enabled for this node pool. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * - * Generated from protobuf field int32 min_node_count = 2; - * @return int - */ - public function getMinNodeCount() - { - return $this->min_node_count; - } - - /** - * Minimum number of nodes for one location in the NodePool. Must be >= 1 and - * <= max_node_count. - * - * Generated from protobuf field int32 min_node_count = 2; - * @param int $var - * @return $this - */ - public function setMinNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->min_node_count = $var; - - return $this; - } - - /** - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * - * Generated from protobuf field int32 max_node_count = 3; - * @return int - */ - public function getMaxNodeCount() - { - return $this->max_node_count; - } - - /** - * Maximum number of nodes for one location in the NodePool. Must be >= - * min_node_count. There has to be enough quota to scale up the cluster. - * - * Generated from protobuf field int32 max_node_count = 3; - * @param int $var - * @return $this - */ - public function setMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->max_node_count = $var; - - return $this; - } - - /** - * Can this node pool be deleted automatically. - * - * Generated from protobuf field bool autoprovisioned = 4; - * @return bool - */ - public function getAutoprovisioned() - { - return $this->autoprovisioned; - } - - /** - * Can this node pool be deleted automatically. - * - * Generated from protobuf field bool autoprovisioned = 4; - * @param bool $var - * @return $this - */ - public function setAutoprovisioned($var) - { - GPBUtil::checkBool($var); - $this->autoprovisioned = $var; - - return $this; - } - - /** - * Location policy used when scaling up a nodepool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * @return int - */ - public function getLocationPolicy() - { - return $this->location_policy; - } - - /** - * Location policy used when scaling up a nodepool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling.LocationPolicy location_policy = 5; - * @param int $var - * @return $this - */ - public function setLocationPolicy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodePoolAutoscaling\LocationPolicy::class); - $this->location_policy = $var; - - return $this; - } - - /** - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_min_node_count = 6; - * @return int - */ - public function getTotalMinNodeCount() - { - return $this->total_min_node_count; - } - - /** - * Minimum number of nodes in the node pool. Must be greater than 1 less than - * total_max_node_count. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_min_node_count = 6; - * @param int $var - * @return $this - */ - public function setTotalMinNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->total_min_node_count = $var; - - return $this; - } - - /** - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_max_node_count = 7; - * @return int - */ - public function getTotalMaxNodeCount() - { - return $this->total_max_node_count; - } - - /** - * Maximum number of nodes in the node pool. Must be greater than - * total_min_node_count. There has to be enough quota to scale up the cluster. - * The total_*_node_count fields are mutually exclusive with the *_node_count - * fields. - * - * Generated from protobuf field int32 total_max_node_count = 7; - * @param int $var - * @return $this - */ - public function setTotalMaxNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->total_max_node_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php deleted file mode 100644 index 1a3cea48b398..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolAutoscaling/LocationPolicy.php +++ /dev/null @@ -1,66 +0,0 @@ -google.container.v1.NodePoolAutoscaling.LocationPolicy - */ -class LocationPolicy -{ - /** - * Not set. - * - * Generated from protobuf enum LOCATION_POLICY_UNSPECIFIED = 0; - */ - const LOCATION_POLICY_UNSPECIFIED = 0; - /** - * BALANCED is a best effort policy that aims to balance the sizes of - * different zones. - * - * Generated from protobuf enum BALANCED = 1; - */ - const BALANCED = 1; - /** - * ANY policy picks zones that have the highest capacity available. - * - * Generated from protobuf enum ANY = 2; - */ - const ANY = 2; - - private static $valueToName = [ - self::LOCATION_POLICY_UNSPECIFIED => 'LOCATION_POLICY_UNSPECIFIED', - self::BALANCED => 'BALANCED', - self::ANY => 'ANY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LocationPolicy::class, \Google\Cloud\Container\V1\NodePoolAutoscaling_LocationPolicy::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php deleted file mode 100644 index 2dc7616a949f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolDefaults.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.NodePoolDefaults - */ -class NodePoolDefaults extends \Google\Protobuf\Internal\Message -{ - /** - * Subset of NodeConfig message that has defaults. - * - * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - */ - protected $node_config_defaults = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NodeConfigDefaults $node_config_defaults - * Subset of NodeConfig message that has defaults. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Subset of NodeConfig message that has defaults. - * - * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @return \Google\Cloud\Container\V1\NodeConfigDefaults|null - */ - public function getNodeConfigDefaults() - { - return $this->node_config_defaults; - } - - public function hasNodeConfigDefaults() - { - return isset($this->node_config_defaults); - } - - public function clearNodeConfigDefaults() - { - unset($this->node_config_defaults); - } - - /** - * Subset of NodeConfig message that has defaults. - * - * Generated from protobuf field .google.container.v1.NodeConfigDefaults node_config_defaults = 1; - * @param \Google\Cloud\Container\V1\NodeConfigDefaults $var - * @return $this - */ - public function setNodeConfigDefaults($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeConfigDefaults::class); - $this->node_config_defaults = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php deleted file mode 100644 index 3b1a6d619f08..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolLoggingConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.NodePoolLoggingConfig - */ -class NodePoolLoggingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Logging variant configuration. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; - */ - protected $variant_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\LoggingVariantConfig $variant_config - * Logging variant configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Logging variant configuration. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; - * @return \Google\Cloud\Container\V1\LoggingVariantConfig|null - */ - public function getVariantConfig() - { - return $this->variant_config; - } - - public function hasVariantConfig() - { - return isset($this->variant_config); - } - - public function clearVariantConfig() - { - unset($this->variant_config); - } - - /** - * Logging variant configuration. - * - * Generated from protobuf field .google.container.v1.LoggingVariantConfig variant_config = 1; - * @param \Google\Cloud\Container\V1\LoggingVariantConfig $var - * @return $this - */ - public function setVariantConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LoggingVariantConfig::class); - $this->variant_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php deleted file mode 100644 index 0879bfb66d87..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodePoolUpdateStrategy.php +++ /dev/null @@ -1,63 +0,0 @@ -google.container.v1.NodePoolUpdateStrategy - */ -class NodePoolUpdateStrategy -{ - /** - * Default value if unset. GKE internally defaults the update strategy to - * SURGE for unspecified strategies. - * - * Generated from protobuf enum NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; - */ - const NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED = 0; - /** - * blue-green upgrade. - * - * Generated from protobuf enum BLUE_GREEN = 2; - */ - const BLUE_GREEN = 2; - /** - * SURGE is the traditional way of upgrade a node pool. - * max_surge and max_unavailable determines the level of upgrade parallelism. - * - * Generated from protobuf enum SURGE = 3; - */ - const SURGE = 3; - - private static $valueToName = [ - self::NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED => 'NODE_POOL_UPDATE_STRATEGY_UNSPECIFIED', - self::BLUE_GREEN => 'BLUE_GREEN', - self::SURGE => 'SURGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php deleted file mode 100644 index f89a2a0a6096..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint.php +++ /dev/null @@ -1,139 +0,0 @@ -google.container.v1.NodeTaint - */ -class NodeTaint extends \Google\Protobuf\Internal\Message -{ - /** - * Key for taint. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * Value for taint. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * Effect for taint. - * - * Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3; - */ - protected $effect = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Key for taint. - * @type string $value - * Value for taint. - * @type int $effect - * Effect for taint. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Key for taint. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Key for taint. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Value for taint. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Value for taint. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Effect for taint. - * - * Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3; - * @return int - */ - public function getEffect() - { - return $this->effect; - } - - /** - * Effect for taint. - * - * Generated from protobuf field .google.container.v1.NodeTaint.Effect effect = 3; - * @param int $var - * @return $this - */ - public function setEffect($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\NodeTaint\Effect::class); - $this->effect = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php deleted file mode 100644 index c6436f7b1826..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaint/Effect.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.NodeTaint.Effect - */ -class Effect -{ - /** - * Not set - * - * Generated from protobuf enum EFFECT_UNSPECIFIED = 0; - */ - const EFFECT_UNSPECIFIED = 0; - /** - * NoSchedule - * - * Generated from protobuf enum NO_SCHEDULE = 1; - */ - const NO_SCHEDULE = 1; - /** - * PreferNoSchedule - * - * Generated from protobuf enum PREFER_NO_SCHEDULE = 2; - */ - const PREFER_NO_SCHEDULE = 2; - /** - * NoExecute - * - * Generated from protobuf enum NO_EXECUTE = 3; - */ - const NO_EXECUTE = 3; - - private static $valueToName = [ - self::EFFECT_UNSPECIFIED => 'EFFECT_UNSPECIFIED', - self::NO_SCHEDULE => 'NO_SCHEDULE', - self::PREFER_NO_SCHEDULE => 'PREFER_NO_SCHEDULE', - self::NO_EXECUTE => 'NO_EXECUTE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Effect::class, \Google\Cloud\Container\V1\NodeTaint_Effect::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php deleted file mode 100644 index fe6166f0dc3b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NodeTaints.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.NodeTaints - */ -class NodeTaints extends \Google\Protobuf\Internal\Message -{ - /** - * List of node taints. - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; - */ - private $taints; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $taints - * List of node taints. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * List of node taints. - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTaints() - { - return $this->taints; - } - - /** - * List of node taints. - * - * Generated from protobuf field repeated .google.container.v1.NodeTaint taints = 1; - * @param array<\Google\Cloud\Container\V1\NodeTaint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTaints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\NodeTaint::class); - $this->taints = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php deleted file mode 100644 index e478d70b2638..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.NotificationConfig - */ -class NotificationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Notification config for Pub/Sub. - * - * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; - */ - protected $pubsub = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\NotificationConfig\PubSub $pubsub - * Notification config for Pub/Sub. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Notification config for Pub/Sub. - * - * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @return \Google\Cloud\Container\V1\NotificationConfig\PubSub|null - */ - public function getPubsub() - { - return $this->pubsub; - } - - public function hasPubsub() - { - return isset($this->pubsub); - } - - public function clearPubsub() - { - unset($this->pubsub); - } - - /** - * Notification config for Pub/Sub. - * - * Generated from protobuf field .google.container.v1.NotificationConfig.PubSub pubsub = 1; - * @param \Google\Cloud\Container\V1\NotificationConfig\PubSub $var - * @return $this - */ - public function setPubsub($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig\PubSub::class); - $this->pubsub = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php deleted file mode 100644 index 7489b2c7e292..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/EventType.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.NotificationConfig.EventType - */ -class EventType -{ - /** - * Not set, will be ignored. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * Corresponds with UpgradeAvailableEvent. - * - * Generated from protobuf enum UPGRADE_AVAILABLE_EVENT = 1; - */ - const UPGRADE_AVAILABLE_EVENT = 1; - /** - * Corresponds with UpgradeEvent. - * - * Generated from protobuf enum UPGRADE_EVENT = 2; - */ - const UPGRADE_EVENT = 2; - /** - * Corresponds with SecurityBulletinEvent. - * - * Generated from protobuf enum SECURITY_BULLETIN_EVENT = 3; - */ - const SECURITY_BULLETIN_EVENT = 3; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::UPGRADE_AVAILABLE_EVENT => 'UPGRADE_AVAILABLE_EVENT', - self::UPGRADE_EVENT => 'UPGRADE_EVENT', - self::SECURITY_BULLETIN_EVENT => 'SECURITY_BULLETIN_EVENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EventType::class, \Google\Cloud\Container\V1\NotificationConfig_EventType::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php deleted file mode 100644 index cdeb11220ad9..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/Filter.php +++ /dev/null @@ -1,73 +0,0 @@ -google.container.v1.NotificationConfig.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - /** - * Event types to allowlist. - * - * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - */ - private $event_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $event_type - * Event types to allowlist. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Event types to allowlist. - * - * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Event types to allowlist. - * - * Generated from protobuf field repeated .google.container.v1.NotificationConfig.EventType event_type = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Container\V1\NotificationConfig\EventType::class); - $this->event_type = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Filter::class, \Google\Cloud\Container\V1\NotificationConfig_Filter::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php deleted file mode 100644 index 21ded6c6c98a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/NotificationConfig/PubSub.php +++ /dev/null @@ -1,160 +0,0 @@ -google.container.v1.NotificationConfig.PubSub - */ -class PubSub extends \Google\Protobuf\Internal\Message -{ - /** - * Enable notifications for Pub/Sub. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * - * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { - */ - protected $topic = ''; - /** - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * - * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; - */ - protected $filter = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable notifications for Pub/Sub. - * @type string $topic - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * @type \Google\Cloud\Container\V1\NotificationConfig\Filter $filter - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable notifications for Pub/Sub. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable notifications for Pub/Sub. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * - * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * The desired Pub/Sub topic to which notifications will be - * sent by GKE. Format is `projects/{project}/topics/{topic}`. - * - * Generated from protobuf field string topic = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTopic($var) - { - GPBUtil::checkString($var, True); - $this->topic = $var; - - return $this; - } - - /** - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * - * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; - * @return \Google\Cloud\Container\V1\NotificationConfig\Filter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Allows filtering to one or more specific event types. If no filter is - * specified, or if a filter is specified with no event types, all event - * types will be sent - * - * Generated from protobuf field .google.container.v1.NotificationConfig.Filter filter = 3; - * @param \Google\Cloud\Container\V1\NotificationConfig\Filter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NotificationConfig\Filter::class); - $this->filter = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PubSub::class, \Google\Cloud\Container\V1\NotificationConfig_PubSub::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php deleted file mode 100644 index cff586f490fe..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation.php +++ /dev/null @@ -1,672 +0,0 @@ -google.container.v1.Operation - */ -class Operation extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The server-assigned ID for the operation. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation is taking place. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $zone = ''; - /** - * Output only. The operation type. - * - * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $operation_type = 0; - /** - * Output only. The current status of the operation. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status = 0; - /** - * Output only. Detailed operation progress, if available. - * - * Generated from protobuf field string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $detail = ''; - /** - * Output only. If an error has occurred, a textual description of the error. - * Deprecated. Use the field error instead. - * - * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $status_message = ''; - /** - * Output only. Server-defined URI for the operation. Example: - * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. - * - * Generated from protobuf field string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $self_link = ''; - /** - * Output only. Server-defined URI for the target of the operation. The format - * of this is a URI to the resource being modified (such as a cluster, node - * pool, or node). For node pool repairs, there may be multiple nodes being - * repaired, but only one will be the target. - * Examples: - * - - * ## - * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` - * ## - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` - * - * Generated from protobuf field string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target_link = ''; - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $location = ''; - /** - * Output only. The time the operation started, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = ''; - /** - * Output only. The time the operation completed, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = ''; - /** - * Output only. Progress information for an operation. - * - * Generated from protobuf field .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $progress = null; - /** - * Which conditions caused the current cluster state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * @deprecated - */ - private $cluster_conditions; - /** - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * @deprecated - */ - private $nodepool_conditions; - /** - * The error result of the operation in case of failure. - * - * Generated from protobuf field .google.rpc.Status error = 15; - */ - protected $error = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The server-assigned ID for the operation. - * @type string $zone - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation is taking place. This field is deprecated, use location instead. - * @type int $operation_type - * Output only. The operation type. - * @type int $status - * Output only. The current status of the operation. - * @type string $detail - * Output only. Detailed operation progress, if available. - * @type string $status_message - * Output only. If an error has occurred, a textual description of the error. - * Deprecated. Use the field error instead. - * @type string $self_link - * Output only. Server-defined URI for the operation. Example: - * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. - * @type string $target_link - * Output only. Server-defined URI for the target of the operation. The format - * of this is a URI to the resource being modified (such as a cluster, node - * pool, or node). For node pool repairs, there may be multiple nodes being - * repaired, but only one will be the target. - * Examples: - * - - * ## - * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` - * ## - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` - * @type string $location - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * @type string $start_time - * Output only. The time the operation started, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type string $end_time - * Output only. The time the operation completed, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * @type \Google\Cloud\Container\V1\OperationProgress $progress - * Output only. Progress information for an operation. - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $cluster_conditions - * Which conditions caused the current cluster state. - * Deprecated. Use field error instead. - * @type array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $nodepool_conditions - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * @type \Google\Rpc\Status $error - * The error result of the operation in case of failure. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The server-assigned ID for the operation. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The server-assigned ID for the operation. - * - * 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 name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation is taking place. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * operation is taking place. This field is deprecated, use location instead. - * - * Generated from protobuf field string zone = 2 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Output only. The operation type. - * - * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getOperationType() - { - return $this->operation_type; - } - - /** - * Output only. The operation type. - * - * Generated from protobuf field .google.container.v1.Operation.Type operation_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setOperationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Type::class); - $this->operation_type = $var; - - return $this; - } - - /** - * Output only. The current status of the operation. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Output only. The current status of the operation. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Output only. Detailed operation progress, if available. - * - * Generated from protobuf field string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDetail() - { - return $this->detail; - } - - /** - * Output only. Detailed operation progress, if available. - * - * Generated from protobuf field string detail = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDetail($var) - { - GPBUtil::checkString($var, True); - $this->detail = $var; - - return $this; - } - - /** - * Output only. If an error has occurred, a textual description of the error. - * Deprecated. Use the field error instead. - * - * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - * @deprecated - */ - public function getStatusMessage() - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - return $this->status_message; - } - - /** - * Output only. If an error has occurred, a textual description of the error. - * Deprecated. Use the field error instead. - * - * Generated from protobuf field string status_message = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - * @deprecated - */ - public function setStatusMessage($var) - { - @trigger_error('status_message is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Server-defined URI for the operation. Example: - * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. - * - * Generated from protobuf field string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSelfLink() - { - return $this->self_link; - } - - /** - * Output only. Server-defined URI for the operation. Example: - * `https://container.googleapis.com/v1alpha1/projects/123/locations/us-central1/operations/operation-123`. - * - * Generated from protobuf field string self_link = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSelfLink($var) - { - GPBUtil::checkString($var, True); - $this->self_link = $var; - - return $this; - } - - /** - * Output only. Server-defined URI for the target of the operation. The format - * of this is a URI to the resource being modified (such as a cluster, node - * pool, or node). For node pool repairs, there may be multiple nodes being - * repaired, but only one will be the target. - * Examples: - * - - * ## - * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` - * ## - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` - * - * Generated from protobuf field string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTargetLink() - { - return $this->target_link; - } - - /** - * Output only. Server-defined URI for the target of the operation. The format - * of this is a URI to the resource being modified (such as a cluster, node - * pool, or node). For node pool repairs, there may be multiple nodes being - * repaired, but only one will be the target. - * Examples: - * - - * ## - * `https://container.googleapis.com/v1/projects/123/locations/us-central1/clusters/my-cluster` - * ## - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np` - * `https://container.googleapis.com/v1/projects/123/zones/us-central1-c/clusters/my-cluster/nodePools/my-np/node/my-node` - * - * Generated from protobuf field string target_link = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTargetLink($var) - { - GPBUtil::checkString($var, True); - $this->target_link = $var; - - return $this; - } - - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Output only. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * or - * [region](https://cloud.google.com/compute/docs/regions-zones/regions-zones#available) - * in which the cluster resides. - * - * Generated from protobuf field string location = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Output only. The time the operation started, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStartTime() - { - return $this->start_time; - } - - /** - * Output only. The time the operation started, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string start_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkString($var, True); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. The time the operation completed, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndTime() - { - return $this->end_time; - } - - /** - * Output only. The time the operation completed, in - * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. - * - * Generated from protobuf field string end_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkString($var, True); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Progress information for an operation. - * - * Generated from protobuf field .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Container\V1\OperationProgress|null - */ - public function getProgress() - { - return $this->progress; - } - - public function hasProgress() - { - return isset($this->progress); - } - - public function clearProgress() - { - unset($this->progress); - } - - /** - * Output only. Progress information for an operation. - * - * Generated from protobuf field .google.container.v1.OperationProgress progress = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Container\V1\OperationProgress $var - * @return $this - */ - public function setProgress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\OperationProgress::class); - $this->progress = $var; - - return $this; - } - - /** - * Which conditions caused the current cluster state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getClusterConditions() - { - @trigger_error('cluster_conditions is deprecated.', E_USER_DEPRECATED); - return $this->cluster_conditions; - } - - /** - * Which conditions caused the current cluster state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition cluster_conditions = 13 [deprecated = true]; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setClusterConditions($var) - { - @trigger_error('cluster_conditions is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->cluster_conditions = $arr; - - return $this; - } - - /** - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getNodepoolConditions() - { - @trigger_error('nodepool_conditions is deprecated.', E_USER_DEPRECATED); - return $this->nodepool_conditions; - } - - /** - * Which conditions caused the current node pool state. - * Deprecated. Use field error instead. - * - * Generated from protobuf field repeated .google.container.v1.StatusCondition nodepool_conditions = 14 [deprecated = true]; - * @param array<\Google\Cloud\Container\V1\StatusCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setNodepoolConditions($var) - { - @trigger_error('nodepool_conditions is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\StatusCondition::class); - $this->nodepool_conditions = $arr; - - return $this; - } - - /** - * The error result of the operation in case of failure. - * - * Generated from protobuf field .google.rpc.Status error = 15; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->error; - } - - public function hasError() - { - return isset($this->error); - } - - public function clearError() - { - unset($this->error); - } - - /** - * The error result of the operation in case of failure. - * - * Generated from protobuf field .google.rpc.Status error = 15; - * @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/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php deleted file mode 100644 index 49c8585d1851..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Status.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.Operation.Status - */ -class Status -{ - /** - * Not set. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The operation has been created. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The operation is currently running. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The operation is done, either cancelled or completed. - * - * Generated from protobuf enum DONE = 3; - */ - const DONE = 3; - /** - * The operation is aborting. - * - * Generated from protobuf enum ABORTING = 4; - */ - const ABORTING = 4; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::PENDING => 'PENDING', - self::RUNNING => 'RUNNING', - self::DONE => 'DONE', - self::ABORTING => 'ABORTING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\Operation_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php deleted file mode 100644 index 59d8003dacf6..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/Operation/Type.php +++ /dev/null @@ -1,234 +0,0 @@ -google.container.v1.Operation.Type - */ -class Type -{ - /** - * Not set. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * The cluster is being created. The cluster should be assumed to be - * unusable until the operation finishes. - * In the event of the operation failing, the cluster will enter the [ERROR - * state][Cluster.Status.ERROR] and eventually be deleted. - * - * Generated from protobuf enum CREATE_CLUSTER = 1; - */ - const CREATE_CLUSTER = 1; - /** - * The cluster is being deleted. The cluster should be assumed to be - * unusable as soon as this operation starts. - * In the event of the operation failing, the cluster will enter the [ERROR - * state][Cluster.Status.ERROR] and the deletion will be automatically - * retried until completed. - * - * Generated from protobuf enum DELETE_CLUSTER = 2; - */ - const DELETE_CLUSTER = 2; - /** - * The [cluster - * version][google.container.v1.ClusterUpdate.desired_master_version] is - * being updated. Note that this includes "upgrades" to the same version, - * which are simply a recreation. This also includes - * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#upgrading_automatically). - * For more details, see [documentation on cluster - * upgrades](https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-upgrades#cluster_upgrades). - * - * Generated from protobuf enum UPGRADE_MASTER = 3; - */ - const UPGRADE_MASTER = 3; - /** - * A node pool is being updated. Despite calling this an "upgrade", this - * includes most forms of updates to node pools. This also includes - * [auto-upgrades](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-upgrades). - * This operation sets the - * [progress][google.container.v1.Operation.progress] field and may be - * [canceled][google.container.v1.ClusterManager.CancelOperation]. - * The upgrade strategy depends on [node pool - * configuration](https://cloud.google.com/kubernetes-engine/docs/concepts/node-pool-upgrade-strategies). - * The nodes are generally still usable during this operation. - * - * Generated from protobuf enum UPGRADE_NODES = 4; - */ - const UPGRADE_NODES = 4; - /** - * A problem has been detected with the control plane and is being repaired. - * This operation type is initiated by GKE. For more details, see - * [documentation on - * repairs](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs). - * - * Generated from protobuf enum REPAIR_CLUSTER = 5; - */ - const REPAIR_CLUSTER = 5; - /** - * The cluster is being updated. This is a broad category of operations and - * includes operations that only change metadata as well as those that must - * recreate the entire cluster. If the control plane must be recreated, this - * will cause temporary downtime for zonal clusters. - * Some features require recreating the nodes as well. Those will be - * recreated as separate operations and the update may not be completely - * functional until the node pools recreations finish. Node recreations will - * generally follow [maintenance - * policies](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions). - * Some GKE-initiated operations use this type. This includes certain types - * of auto-upgrades and incident mitigations. - * - * Generated from protobuf enum UPDATE_CLUSTER = 6; - */ - const UPDATE_CLUSTER = 6; - /** - * A node pool is being created. The node pool should be assumed to be - * unusable until this operation finishes. In the event of an error, the - * node pool may be partially created. - * If enabled, [node - * autoprovisioning](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-provisioning) - * may have automatically initiated such operations. - * - * Generated from protobuf enum CREATE_NODE_POOL = 7; - */ - const CREATE_NODE_POOL = 7; - /** - * The node pool is being deleted. The node pool should be assumed to be - * unusable as soon as this operation starts. - * - * Generated from protobuf enum DELETE_NODE_POOL = 8; - */ - const DELETE_NODE_POOL = 8; - /** - * The node pool's [manamagent][google.container.v1.NodePool.management] - * field is being updated. These operations only update metadata and may be - * concurrent with most other operations. - * - * Generated from protobuf enum SET_NODE_POOL_MANAGEMENT = 9; - */ - const SET_NODE_POOL_MANAGEMENT = 9; - /** - * A problem has been detected with nodes and [they are being - * repaired](https://cloud.google.com/kubernetes-engine/docs/how-to/node-auto-repair). - * This operation type is initiated by GKE, typically automatically. This - * operation may be concurrent with other operations and there may be - * multiple repairs occurring on the same node pool. - * - * Generated from protobuf enum AUTO_REPAIR_NODES = 10; - */ - const AUTO_REPAIR_NODES = 10; - /** - * Unused. Automatic node upgrade uses - * [UPGRADE_NODES][google.container.v1.Operation.Type.UPGRADE_NODES]. - * - * Generated from protobuf enum AUTO_UPGRADE_NODES = 11 [deprecated = true]; - */ - const AUTO_UPGRADE_NODES = 11; - /** - * Unused. Updating labels uses - * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. - * - * Generated from protobuf enum SET_LABELS = 12 [deprecated = true]; - */ - const SET_LABELS = 12; - /** - * Unused. Updating master auth uses - * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. - * - * Generated from protobuf enum SET_MASTER_AUTH = 13 [deprecated = true]; - */ - const SET_MASTER_AUTH = 13; - /** - * The node pool is being resized. With the exception of resizing to or from - * size zero, the node pool is generally usable during this operation. - * - * Generated from protobuf enum SET_NODE_POOL_SIZE = 14; - */ - const SET_NODE_POOL_SIZE = 14; - /** - * Unused. Updating network policy uses - * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. - * - * Generated from protobuf enum SET_NETWORK_POLICY = 15 [deprecated = true]; - */ - const SET_NETWORK_POLICY = 15; - /** - * Unused. Updating maintenance policy uses - * [UPDATE_CLUSTER][google.container.v1.Operation.Type.UPDATE_CLUSTER]. - * - * Generated from protobuf enum SET_MAINTENANCE_POLICY = 16 [deprecated = true]; - */ - const SET_MAINTENANCE_POLICY = 16; - /** - * The control plane is being resized. This operation type is initiated by - * GKE. These operations are often performed preemptively to ensure that the - * control plane has sufficient resources and is not typically an indication - * of issues. For more details, see - * [documentation on - * resizes](https://cloud.google.com/kubernetes-engine/docs/concepts/maintenance-windows-and-exclusions#repairs). - * - * Generated from protobuf enum RESIZE_CLUSTER = 18; - */ - const RESIZE_CLUSTER = 18; - /** - * Fleet features of GKE Enterprise are being upgraded. The cluster should - * be assumed to be blocked for other upgrades until the operation finishes. - * - * Generated from protobuf enum FLEET_FEATURE_UPGRADE = 19; - */ - const FLEET_FEATURE_UPGRADE = 19; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::CREATE_CLUSTER => 'CREATE_CLUSTER', - self::DELETE_CLUSTER => 'DELETE_CLUSTER', - self::UPGRADE_MASTER => 'UPGRADE_MASTER', - self::UPGRADE_NODES => 'UPGRADE_NODES', - self::REPAIR_CLUSTER => 'REPAIR_CLUSTER', - self::UPDATE_CLUSTER => 'UPDATE_CLUSTER', - self::CREATE_NODE_POOL => 'CREATE_NODE_POOL', - self::DELETE_NODE_POOL => 'DELETE_NODE_POOL', - self::SET_NODE_POOL_MANAGEMENT => 'SET_NODE_POOL_MANAGEMENT', - self::AUTO_REPAIR_NODES => 'AUTO_REPAIR_NODES', - self::AUTO_UPGRADE_NODES => 'AUTO_UPGRADE_NODES', - self::SET_LABELS => 'SET_LABELS', - self::SET_MASTER_AUTH => 'SET_MASTER_AUTH', - self::SET_NODE_POOL_SIZE => 'SET_NODE_POOL_SIZE', - self::SET_NETWORK_POLICY => 'SET_NETWORK_POLICY', - self::SET_MAINTENANCE_POLICY => 'SET_MAINTENANCE_POLICY', - self::RESIZE_CLUSTER => 'RESIZE_CLUSTER', - self::FLEET_FEATURE_UPGRADE => 'FLEET_FEATURE_UPGRADE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Container\V1\Operation_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php deleted file mode 100644 index 533975905024..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress.php +++ /dev/null @@ -1,197 +0,0 @@ -google.container.v1.OperationProgress - */ -class OperationProgress extends \Google\Protobuf\Internal\Message -{ - /** - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Status of an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 2; - */ - protected $status = 0; - /** - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; - */ - private $metrics; - /** - * Substages of an operation or a stage. - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; - */ - private $stages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * @type int $status - * Status of an operation stage. - * Unset for single-stage operations. - * @type array<\Google\Cloud\Container\V1\OperationProgress\Metric>|\Google\Protobuf\Internal\RepeatedField $metrics - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * @type array<\Google\Cloud\Container\V1\OperationProgress>|\Google\Protobuf\Internal\RepeatedField $stages - * Substages of an operation or a stage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * A non-parameterized string describing an operation stage. - * Unset for single-stage operations. - * - * 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; - } - - /** - * Status of an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 2; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Status of an operation stage. - * Unset for single-stage operations. - * - * Generated from protobuf field .google.container.v1.Operation.Status status = 2; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\Operation\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Progress metric bundle, for example: - * metrics: [{name: "nodes done", int_value: 15}, - * {name: "nodes total", int_value: 32}] - * or - * metrics: [{name: "progress", double_value: 0.56}, - * {name: "progress scale", double_value: 1.0}] - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress.Metric metrics = 3; - * @param array<\Google\Cloud\Container\V1\OperationProgress\Metric>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\OperationProgress\Metric::class); - $this->metrics = $arr; - - return $this; - } - - /** - * Substages of an operation or a stage. - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStages() - { - return $this->stages; - } - - /** - * Substages of an operation or a stage. - * - * Generated from protobuf field repeated .google.container.v1.OperationProgress stages = 4; - * @param array<\Google\Cloud\Container\V1\OperationProgress>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\OperationProgress::class); - $this->stages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php deleted file mode 100644 index 6c134eae0fd1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/OperationProgress/Metric.php +++ /dev/null @@ -1,178 +0,0 @@ -google.container.v1.OperationProgress.Metric - */ -class Metric extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Metric name, e.g., "nodes total", "percent done". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Metric name, e.g., "nodes total", "percent done". - * @type int|string $int_value - * For metrics with integer value. - * @type float $double_value - * For metrics with floating point value. - * @type string $string_value - * For metrics with custom values (ratios, visual progress, etc.). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Metric name, e.g., "nodes total", "percent done". - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Metric name, e.g., "nodes total", "percent done". - * - * 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; - } - - /** - * For metrics with integer value. - * - * 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); - } - - /** - * For metrics with integer value. - * - * 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; - } - - /** - * For metrics with floating point 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); - } - - /** - * For metrics with floating point 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; - } - - /** - * For metrics with custom values (ratios, visual progress, etc.). - * - * Generated from protobuf field string string_value = 4; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(4); - } - - public function hasStringValue() - { - return $this->hasOneof(4); - } - - /** - * For metrics with custom values (ratios, visual progress, etc.). - * - * 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; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Metric::class, \Google\Cloud\Container\V1\OperationProgress_Metric::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ParallelstoreCsiDriverConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ParallelstoreCsiDriverConfig.php deleted file mode 100644 index b793bd25dcb2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ParallelstoreCsiDriverConfig.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.ParallelstoreCsiDriverConfig - */ -class ParallelstoreCsiDriverConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Cloud Storage Parallelstore CSI driver is enabled for this - * cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Cloud Storage Parallelstore CSI driver is enabled for this - * cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Cloud Storage Parallelstore CSI driver is enabled for this - * cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Cloud Storage Parallelstore CSI driver is enabled for this - * cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php deleted file mode 100644 index d5f56d4b2ade..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PodCIDROverprovisionConfig.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.PodCIDROverprovisionConfig - */ -class PodCIDROverprovisionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Pod CIDR overprovisioning is disabled. - * Note: Pod CIDR overprovisioning is enabled by default. - * - * Generated from protobuf field bool disable = 1; - */ - protected $disable = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disable - * Whether Pod CIDR overprovisioning is disabled. - * Note: Pod CIDR overprovisioning is enabled by default. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Pod CIDR overprovisioning is disabled. - * Note: Pod CIDR overprovisioning is enabled by default. - * - * Generated from protobuf field bool disable = 1; - * @return bool - */ - public function getDisable() - { - return $this->disable; - } - - /** - * Whether Pod CIDR overprovisioning is disabled. - * Note: Pod CIDR overprovisioning is enabled by default. - * - * Generated from protobuf field bool disable = 1; - * @param bool $var - * @return $this - */ - public function setDisable($var) - { - GPBUtil::checkBool($var); - $this->disable = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php deleted file mode 100644 index a6c52fc08e08..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterConfig.php +++ /dev/null @@ -1,447 +0,0 @@ -google.container.v1.PrivateClusterConfig - */ -class PrivateClusterConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * Deprecated: Use - * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] - * instead. - * - * Generated from protobuf field bool enable_private_nodes = 1 [deprecated = true]; - * @deprecated - */ - protected $enable_private_nodes = false; - /** - * Whether the master's internal IP address is used as the cluster endpoint. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint] - * instead. Note that the value of enable_public_endpoint is reversed: if - * enable_private_endpoint is false, then enable_public_endpoint will be true. - * - * Generated from protobuf field bool enable_private_endpoint = 2 [deprecated = true]; - * @deprecated - */ - protected $enable_private_endpoint = false; - /** - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * - * Generated from protobuf field string master_ipv4_cidr_block = 3; - */ - protected $master_ipv4_cidr_block = ''; - /** - * Output only. The internal IP address of this cluster's master endpoint. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint] - * instead. - * - * Generated from protobuf field string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $private_endpoint = ''; - /** - * Output only. The external IP address of this cluster's master endpoint. - * Deprecated:Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint] - * instead. - * - * Generated from protobuf field string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @deprecated - */ - protected $public_endpoint = ''; - /** - * Output only. The peering name in the customer VPC used by this cluster. - * - * Generated from protobuf field string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $peering_name = ''; - /** - * Controls master global access settings. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][] - * instead. - * - * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; - * @deprecated - */ - protected $master_global_access_config = null; - /** - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork] - * instead. - * - * Generated from protobuf field string private_endpoint_subnetwork = 10 [deprecated = true]; - * @deprecated - */ - protected $private_endpoint_subnetwork = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_private_nodes - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * Deprecated: Use - * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] - * instead. - * @type bool $enable_private_endpoint - * Whether the master's internal IP address is used as the cluster endpoint. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint] - * instead. Note that the value of enable_public_endpoint is reversed: if - * enable_private_endpoint is false, then enable_public_endpoint will be true. - * @type string $master_ipv4_cidr_block - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * @type string $private_endpoint - * Output only. The internal IP address of this cluster's master endpoint. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint] - * instead. - * @type string $public_endpoint - * Output only. The external IP address of this cluster's master endpoint. - * Deprecated:Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint] - * instead. - * @type string $peering_name - * Output only. The peering name in the customer VPC used by this cluster. - * @type \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig $master_global_access_config - * Controls master global access settings. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][] - * instead. - * @type string $private_endpoint_subnetwork - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork] - * instead. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * Deprecated: Use - * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] - * instead. - * - * Generated from protobuf field bool enable_private_nodes = 1 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getEnablePrivateNodes() - { - @trigger_error('enable_private_nodes is deprecated.', E_USER_DEPRECATED); - return $this->enable_private_nodes; - } - - /** - * Whether nodes have internal IP addresses only. If enabled, all nodes are - * given only RFC 1918 private addresses and communicate with the master via - * private networking. - * Deprecated: Use - * [NetworkConfig.default_enable_private_nodes][google.container.v1.NetworkConfig.default_enable_private_nodes] - * instead. - * - * Generated from protobuf field bool enable_private_nodes = 1 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setEnablePrivateNodes($var) - { - @trigger_error('enable_private_nodes is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->enable_private_nodes = $var; - - return $this; - } - - /** - * Whether the master's internal IP address is used as the cluster endpoint. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint] - * instead. Note that the value of enable_public_endpoint is reversed: if - * enable_private_endpoint is false, then enable_public_endpoint will be true. - * - * Generated from protobuf field bool enable_private_endpoint = 2 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getEnablePrivateEndpoint() - { - @trigger_error('enable_private_endpoint is deprecated.', E_USER_DEPRECATED); - return $this->enable_private_endpoint; - } - - /** - * Whether the master's internal IP address is used as the cluster endpoint. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_public_endpoint] - * instead. Note that the value of enable_public_endpoint is reversed: if - * enable_private_endpoint is false, then enable_public_endpoint will be true. - * - * Generated from protobuf field bool enable_private_endpoint = 2 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setEnablePrivateEndpoint($var) - { - @trigger_error('enable_private_endpoint is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->enable_private_endpoint = $var; - - return $this; - } - - /** - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * - * Generated from protobuf field string master_ipv4_cidr_block = 3; - * @return string - */ - public function getMasterIpv4CidrBlock() - { - return $this->master_ipv4_cidr_block; - } - - /** - * The IP range in CIDR notation to use for the hosted master network. This - * range will be used for assigning internal IP addresses to the master or - * set of masters, as well as the ILB VIP. This range must not overlap with - * any other ranges in use within the cluster's network. - * - * Generated from protobuf field string master_ipv4_cidr_block = 3; - * @param string $var - * @return $this - */ - public function setMasterIpv4CidrBlock($var) - { - GPBUtil::checkString($var, True); - $this->master_ipv4_cidr_block = $var; - - return $this; - } - - /** - * Output only. The internal IP address of this cluster's master endpoint. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint] - * instead. - * - * Generated from protobuf field string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - * @deprecated - */ - public function getPrivateEndpoint() - { - @trigger_error('private_endpoint is deprecated.', E_USER_DEPRECATED); - return $this->private_endpoint; - } - - /** - * Output only. The internal IP address of this cluster's master endpoint. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint] - * instead. - * - * Generated from protobuf field string private_endpoint = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - * @deprecated - */ - public function setPrivateEndpoint($var) - { - @trigger_error('private_endpoint is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->private_endpoint = $var; - - return $this; - } - - /** - * Output only. The external IP address of this cluster's master endpoint. - * Deprecated:Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint] - * instead. - * - * Generated from protobuf field string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - * @deprecated - */ - public function getPublicEndpoint() - { - @trigger_error('public_endpoint is deprecated.', E_USER_DEPRECATED); - return $this->public_endpoint; - } - - /** - * Output only. The external IP address of this cluster's master endpoint. - * Deprecated:Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.public_endpoint] - * instead. - * - * Generated from protobuf field string public_endpoint = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - * @deprecated - */ - public function setPublicEndpoint($var) - { - @trigger_error('public_endpoint is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->public_endpoint = $var; - - return $this; - } - - /** - * Output only. The peering name in the customer VPC used by this cluster. - * - * Generated from protobuf field string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPeeringName() - { - return $this->peering_name; - } - - /** - * Output only. The peering name in the customer VPC used by this cluster. - * - * Generated from protobuf field string peering_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPeeringName($var) - { - GPBUtil::checkString($var, True); - $this->peering_name = $var; - - return $this; - } - - /** - * Controls master global access settings. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][] - * instead. - * - * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; - * @return \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig|null - * @deprecated - */ - public function getMasterGlobalAccessConfig() - { - @trigger_error('master_global_access_config is deprecated.', E_USER_DEPRECATED); - return $this->master_global_access_config; - } - - public function hasMasterGlobalAccessConfig() - { - @trigger_error('master_global_access_config is deprecated.', E_USER_DEPRECATED); - return isset($this->master_global_access_config); - } - - public function clearMasterGlobalAccessConfig() - { - @trigger_error('master_global_access_config is deprecated.', E_USER_DEPRECATED); - unset($this->master_global_access_config); - } - - /** - * Controls master global access settings. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.enable_global_access][] - * instead. - * - * Generated from protobuf field .google.container.v1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8 [deprecated = true]; - * @param \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig $var - * @return $this - * @deprecated - */ - public function setMasterGlobalAccessConfig($var) - { - @trigger_error('master_global_access_config is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\PrivateClusterMasterGlobalAccessConfig::class); - $this->master_global_access_config = $var; - - return $this; - } - - /** - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork] - * instead. - * - * Generated from protobuf field string private_endpoint_subnetwork = 10 [deprecated = true]; - * @return string - * @deprecated - */ - public function getPrivateEndpointSubnetwork() - { - @trigger_error('private_endpoint_subnetwork is deprecated.', E_USER_DEPRECATED); - return $this->private_endpoint_subnetwork; - } - - /** - * Subnet to provision the master's private endpoint during cluster creation. - * Specified in projects/*/regions/*/subnetworks/* format. - * Deprecated: Use - * [ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork][google.container.v1.ControlPlaneEndpointsConfig.IPEndpointsConfig.private_endpoint_subnetwork] - * instead. - * - * Generated from protobuf field string private_endpoint_subnetwork = 10 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setPrivateEndpointSubnetwork($var) - { - @trigger_error('private_endpoint_subnetwork is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->private_endpoint_subnetwork = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php deleted file mode 100644 index 0bfb60386807..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateClusterMasterGlobalAccessConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.PrivateClusterMasterGlobalAccessConfig - */ -class PrivateClusterMasterGlobalAccessConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whenever master is accessible globally or not. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whenever master is accessible globally or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whenever master is accessible globally or not. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whenever master is accessible globally or not. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php deleted file mode 100644 index fae45c6c2353..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/PrivateIPv6GoogleAccess.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.PrivateIPv6GoogleAccess - */ -class PrivateIPv6GoogleAccess -{ - /** - * Default value. Same as DISABLED - * - * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - */ - const PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED = 0; - /** - * No private access to or from Google Services - * - * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - */ - const PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED = 1; - /** - * Enables private IPv6 access to Google Services from GKE - * - * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - */ - const PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE = 2; - /** - * Enables private IPv6 access to and from Google Services - * - * Generated from protobuf enum PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - */ - const PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL = 3; - - private static $valueToName = [ - self::PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED => 'PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED', - self::PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED => 'PRIVATE_IPV6_GOOGLE_ACCESS_DISABLED', - self::PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE => 'PRIVATE_IPV6_GOOGLE_ACCESS_TO_GOOGLE', - self::PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL => 'PRIVATE_IPV6_GOOGLE_ACCESS_BIDIRECTIONAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Container/v1/proto/src/Google/Cloud/Container/V1/RBACBindingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RBACBindingConfig.php deleted file mode 100644 index 27a645f8e165..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RBACBindingConfig.php +++ /dev/null @@ -1,130 +0,0 @@ -google.container.v1.RBACBindingConfig - */ -class RBACBindingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Setting this to true will allow any ClusterRoleBinding and RoleBinding - * with subjets system:anonymous or system:unauthenticated. - * - * Generated from protobuf field optional bool enable_insecure_binding_system_unauthenticated = 1; - */ - protected $enable_insecure_binding_system_unauthenticated = null; - /** - * Setting this to true will allow any ClusterRoleBinding and RoleBinding - * with subjects system:authenticated. - * - * Generated from protobuf field optional bool enable_insecure_binding_system_authenticated = 2; - */ - protected $enable_insecure_binding_system_authenticated = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_insecure_binding_system_unauthenticated - * Setting this to true will allow any ClusterRoleBinding and RoleBinding - * with subjets system:anonymous or system:unauthenticated. - * @type bool $enable_insecure_binding_system_authenticated - * Setting this to true will allow any ClusterRoleBinding and RoleBinding - * with subjects system:authenticated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Setting this to true will allow any ClusterRoleBinding and RoleBinding - * with subjets system:anonymous or system:unauthenticated. - * - * Generated from protobuf field optional bool enable_insecure_binding_system_unauthenticated = 1; - * @return bool - */ - public function getEnableInsecureBindingSystemUnauthenticated() - { - return isset($this->enable_insecure_binding_system_unauthenticated) ? $this->enable_insecure_binding_system_unauthenticated : false; - } - - public function hasEnableInsecureBindingSystemUnauthenticated() - { - return isset($this->enable_insecure_binding_system_unauthenticated); - } - - public function clearEnableInsecureBindingSystemUnauthenticated() - { - unset($this->enable_insecure_binding_system_unauthenticated); - } - - /** - * Setting this to true will allow any ClusterRoleBinding and RoleBinding - * with subjets system:anonymous or system:unauthenticated. - * - * Generated from protobuf field optional bool enable_insecure_binding_system_unauthenticated = 1; - * @param bool $var - * @return $this - */ - public function setEnableInsecureBindingSystemUnauthenticated($var) - { - GPBUtil::checkBool($var); - $this->enable_insecure_binding_system_unauthenticated = $var; - - return $this; - } - - /** - * Setting this to true will allow any ClusterRoleBinding and RoleBinding - * with subjects system:authenticated. - * - * Generated from protobuf field optional bool enable_insecure_binding_system_authenticated = 2; - * @return bool - */ - public function getEnableInsecureBindingSystemAuthenticated() - { - return isset($this->enable_insecure_binding_system_authenticated) ? $this->enable_insecure_binding_system_authenticated : false; - } - - public function hasEnableInsecureBindingSystemAuthenticated() - { - return isset($this->enable_insecure_binding_system_authenticated); - } - - public function clearEnableInsecureBindingSystemAuthenticated() - { - unset($this->enable_insecure_binding_system_authenticated); - } - - /** - * Setting this to true will allow any ClusterRoleBinding and RoleBinding - * with subjects system:authenticated. - * - * Generated from protobuf field optional bool enable_insecure_binding_system_authenticated = 2; - * @param bool $var - * @return $this - */ - public function setEnableInsecureBindingSystemAuthenticated($var) - { - GPBUtil::checkBool($var); - $this->enable_insecure_binding_system_authenticated = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php deleted file mode 100644 index 617d4fac6de9..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RangeInfo.php +++ /dev/null @@ -1,101 +0,0 @@ -google.container.v1.RangeInfo - */ -class RangeInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of a range. - * - * Generated from protobuf field string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $range_name = ''; - /** - * Output only. The utilization of the range. - * - * Generated from protobuf field double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $utilization = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $range_name - * Output only. Name of a range. - * @type float $utilization - * Output only. The utilization of the range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of a range. - * - * Generated from protobuf field string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRangeName() - { - return $this->range_name; - } - - /** - * Output only. Name of a range. - * - * Generated from protobuf field string range_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRangeName($var) - { - GPBUtil::checkString($var, True); - $this->range_name = $var; - - return $this; - } - - /** - * Output only. The utilization of the range. - * - * Generated from protobuf field double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getUtilization() - { - return $this->utilization; - } - - /** - * Output only. The utilization of the range. - * - * Generated from protobuf field double utilization = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setUtilization($var) - { - GPBUtil::checkDouble($var); - $this->utilization = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayClusterLoggingConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayClusterLoggingConfig.php deleted file mode 100644 index 74629f0e7650..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayClusterLoggingConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.RayClusterLoggingConfig - */ -class RayClusterLoggingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enable log collection for Ray clusters. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable log collection for Ray clusters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable log collection for Ray clusters. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable log collection for Ray clusters. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayClusterMonitoringConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayClusterMonitoringConfig.php deleted file mode 100644 index f0ab6469df36..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayClusterMonitoringConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.RayClusterMonitoringConfig - */ -class RayClusterMonitoringConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enable metrics collection for Ray clusters. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable metrics collection for Ray clusters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable metrics collection for Ray clusters. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enable metrics collection for Ray clusters. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayOperatorConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayOperatorConfig.php deleted file mode 100644 index 598a562b9009..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RayOperatorConfig.php +++ /dev/null @@ -1,155 +0,0 @@ -google.container.v1.RayOperatorConfig - */ -class RayOperatorConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Ray Operator addon is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - /** - * Optional. Logging configuration for Ray clusters. - * - * Generated from protobuf field .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ray_cluster_logging_config = null; - /** - * Optional. Monitoring configuration for Ray clusters. - * - * Generated from protobuf field .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ray_cluster_monitoring_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Ray Operator addon is enabled for this cluster. - * @type \Google\Cloud\Container\V1\RayClusterLoggingConfig $ray_cluster_logging_config - * Optional. Logging configuration for Ray clusters. - * @type \Google\Cloud\Container\V1\RayClusterMonitoringConfig $ray_cluster_monitoring_config - * Optional. Monitoring configuration for Ray clusters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Ray Operator addon is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Ray Operator addon is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * Optional. Logging configuration for Ray clusters. - * - * Generated from protobuf field .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Container\V1\RayClusterLoggingConfig|null - */ - public function getRayClusterLoggingConfig() - { - return $this->ray_cluster_logging_config; - } - - public function hasRayClusterLoggingConfig() - { - return isset($this->ray_cluster_logging_config); - } - - public function clearRayClusterLoggingConfig() - { - unset($this->ray_cluster_logging_config); - } - - /** - * Optional. Logging configuration for Ray clusters. - * - * Generated from protobuf field .google.container.v1.RayClusterLoggingConfig ray_cluster_logging_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Container\V1\RayClusterLoggingConfig $var - * @return $this - */ - public function setRayClusterLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\RayClusterLoggingConfig::class); - $this->ray_cluster_logging_config = $var; - - return $this; - } - - /** - * Optional. Monitoring configuration for Ray clusters. - * - * Generated from protobuf field .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Container\V1\RayClusterMonitoringConfig|null - */ - public function getRayClusterMonitoringConfig() - { - return $this->ray_cluster_monitoring_config; - } - - public function hasRayClusterMonitoringConfig() - { - return isset($this->ray_cluster_monitoring_config); - } - - public function clearRayClusterMonitoringConfig() - { - unset($this->ray_cluster_monitoring_config); - } - - /** - * Optional. Monitoring configuration for Ray clusters. - * - * Generated from protobuf field .google.container.v1.RayClusterMonitoringConfig ray_cluster_monitoring_config = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Container\V1\RayClusterMonitoringConfig $var - * @return $this - */ - public function setRayClusterMonitoringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\RayClusterMonitoringConfig::class); - $this->ray_cluster_monitoring_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php deleted file mode 100644 index d048032ea79c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RecurringTimeWindow.php +++ /dev/null @@ -1,211 +0,0 @@ -google.container.v1.RecurringTimeWindow - */ -class RecurringTimeWindow extends \Google\Protobuf\Internal\Message -{ - /** - * The window of the first recurrence. - * - * Generated from protobuf field .google.container.v1.TimeWindow window = 1; - */ - protected $window = null; - /** - * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how - * this window reccurs. They go on for the span of time between the start and - * end time. - * For example, to have something repeat every weekday, you'd use: - * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` - * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * `FREQ=DAILY` - * For the first weekend of every month: - * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` - * This specifies how frequently the window starts. Eg, if you wanted to have - * a 9-5 UTC-4 window every weekday, you'd use something like: - * ``` - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * ``` - * Windows can span multiple days. Eg, to make the window encompass every - * weekend from midnight Saturday till the last minute of Sunday UTC: - * ``` - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * ``` - * Note the start and end time's specific dates are largely arbitrary except - * to specify duration of the window and when it first starts. - * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. - * - * Generated from protobuf field string recurrence = 2; - */ - protected $recurrence = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\TimeWindow $window - * The window of the first recurrence. - * @type string $recurrence - * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how - * this window reccurs. They go on for the span of time between the start and - * end time. - * For example, to have something repeat every weekday, you'd use: - * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` - * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * `FREQ=DAILY` - * For the first weekend of every month: - * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` - * This specifies how frequently the window starts. Eg, if you wanted to have - * a 9-5 UTC-4 window every weekday, you'd use something like: - * ``` - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * ``` - * Windows can span multiple days. Eg, to make the window encompass every - * weekend from midnight Saturday till the last minute of Sunday UTC: - * ``` - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * ``` - * Note the start and end time's specific dates are largely arbitrary except - * to specify duration of the window and when it first starts. - * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The window of the first recurrence. - * - * Generated from protobuf field .google.container.v1.TimeWindow window = 1; - * @return \Google\Cloud\Container\V1\TimeWindow|null - */ - public function getWindow() - { - return $this->window; - } - - public function hasWindow() - { - return isset($this->window); - } - - public function clearWindow() - { - unset($this->window); - } - - /** - * The window of the first recurrence. - * - * Generated from protobuf field .google.container.v1.TimeWindow window = 1; - * @param \Google\Cloud\Container\V1\TimeWindow $var - * @return $this - */ - public function setWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\TimeWindow::class); - $this->window = $var; - - return $this; - } - - /** - * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how - * this window reccurs. They go on for the span of time between the start and - * end time. - * For example, to have something repeat every weekday, you'd use: - * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` - * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * `FREQ=DAILY` - * For the first weekend of every month: - * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` - * This specifies how frequently the window starts. Eg, if you wanted to have - * a 9-5 UTC-4 window every weekday, you'd use something like: - * ``` - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * ``` - * Windows can span multiple days. Eg, to make the window encompass every - * weekend from midnight Saturday till the last minute of Sunday UTC: - * ``` - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * ``` - * Note the start and end time's specific dates are largely arbitrary except - * to specify duration of the window and when it first starts. - * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. - * - * Generated from protobuf field string recurrence = 2; - * @return string - */ - public function getRecurrence() - { - return $this->recurrence; - } - - /** - * An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how - * this window reccurs. They go on for the span of time between the start and - * end time. - * For example, to have something repeat every weekday, you'd use: - * `FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR` - * To repeat some window daily (equivalent to the DailyMaintenanceWindow): - * `FREQ=DAILY` - * For the first weekend of every month: - * `FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU` - * This specifies how frequently the window starts. Eg, if you wanted to have - * a 9-5 UTC-4 window every weekday, you'd use something like: - * ``` - * start time = 2019-01-01T09:00:00-0400 - * end time = 2019-01-01T17:00:00-0400 - * recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR - * ``` - * Windows can span multiple days. Eg, to make the window encompass every - * weekend from midnight Saturday till the last minute of Sunday UTC: - * ``` - * start time = 2019-01-05T00:00:00Z - * end time = 2019-01-07T23:59:00Z - * recurrence = FREQ=WEEKLY;BYDAY=SA - * ``` - * Note the start and end time's specific dates are largely arbitrary except - * to specify duration of the window and when it first starts. - * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. - * - * Generated from protobuf field string recurrence = 2; - * @param string $var - * @return $this - */ - public function setRecurrence($var) - { - GPBUtil::checkString($var, True); - $this->recurrence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php deleted file mode 100644 index 9b9b1b38c11b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.ReleaseChannel - */ -class ReleaseChannel extends \Google\Protobuf\Internal\Message -{ - /** - * channel specifies which release channel the cluster is subscribed to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - */ - protected $channel = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $channel - * channel specifies which release channel the cluster is subscribed to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * channel specifies which release channel the cluster is subscribed to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return int - */ - public function getChannel() - { - return $this->channel; - } - - /** - * channel specifies which release channel the cluster is subscribed to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - * @param int $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReleaseChannel\Channel::class); - $this->channel = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php deleted file mode 100644 index 843d2b75ad75..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReleaseChannel/Channel.php +++ /dev/null @@ -1,86 +0,0 @@ -google.container.v1.ReleaseChannel.Channel - */ -class Channel -{ - /** - * No channel specified. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * RAPID channel is offered on an early access basis for customers who want - * to test new releases. - * WARNING: Versions available in the RAPID Channel may be subject to - * unresolved issues with no known workaround and are not subject to any - * SLAs. - * - * Generated from protobuf enum RAPID = 1; - */ - const RAPID = 1; - /** - * Clusters subscribed to REGULAR receive versions that are considered GA - * quality. REGULAR is intended for production users who want to take - * advantage of new features. - * - * Generated from protobuf enum REGULAR = 2; - */ - const REGULAR = 2; - /** - * Clusters subscribed to STABLE receive versions that are known to be - * stable and reliable in production. - * - * Generated from protobuf enum STABLE = 3; - */ - const STABLE = 3; - /** - * Clusters subscribed to EXTENDED receive extended support and availability - * for versions which are known to be stable and reliable in production. - * - * Generated from protobuf enum EXTENDED = 4; - */ - const EXTENDED = 4; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::RAPID => 'RAPID', - self::REGULAR => 'REGULAR', - self::STABLE => 'STABLE', - self::EXTENDED => 'EXTENDED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Channel::class, \Google\Cloud\Container\V1\ReleaseChannel_Channel::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php deleted file mode 100644 index 4ab66cc2346b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity.php +++ /dev/null @@ -1,149 +0,0 @@ -google.container.v1.ReservationAffinity - */ -class ReservationAffinity extends \Google\Protobuf\Internal\Message -{ - /** - * Corresponds to the type of reservation consumption. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - */ - protected $consume_reservation_type = 0; - /** - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * - * Generated from protobuf field string key = 2; - */ - protected $key = ''; - /** - * Corresponds to the label value(s) of reservation resource(s). - * - * Generated from protobuf field repeated string values = 3; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $consume_reservation_type - * Corresponds to the type of reservation consumption. - * @type string $key - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Corresponds to the label value(s) of reservation resource(s). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Corresponds to the type of reservation consumption. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @return int - */ - public function getConsumeReservationType() - { - return $this->consume_reservation_type; - } - - /** - * Corresponds to the type of reservation consumption. - * - * Generated from protobuf field .google.container.v1.ReservationAffinity.Type consume_reservation_type = 1; - * @param int $var - * @return $this - */ - public function setConsumeReservationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReservationAffinity\Type::class); - $this->consume_reservation_type = $var; - - return $this; - } - - /** - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * - * Generated from protobuf field string key = 2; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Corresponds to the label key of a reservation resource. To target a - * SPECIFIC_RESERVATION by name, specify - * "compute.googleapis.com/reservation-name" as the key and specify the name - * of your reservation as its value. - * - * Generated from protobuf field string key = 2; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Corresponds to the label value(s) of reservation resource(s). - * - * Generated from protobuf field repeated string values = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Corresponds to the label value(s) of reservation resource(s). - * - * Generated from protobuf field repeated string values = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php deleted file mode 100644 index 3c29ed5934e3..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ReservationAffinity/Type.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.ReservationAffinity.Type - */ -class Type -{ - /** - * Default value. This should not be used. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Do not consume from any reserved capacity. - * - * Generated from protobuf enum NO_RESERVATION = 1; - */ - const NO_RESERVATION = 1; - /** - * Consume any reservation available. - * - * Generated from protobuf enum ANY_RESERVATION = 2; - */ - const ANY_RESERVATION = 2; - /** - * Must consume from a specific reservation. Must specify key value fields - * for specifying the reservations. - * - * Generated from protobuf enum SPECIFIC_RESERVATION = 3; - */ - const SPECIFIC_RESERVATION = 3; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::NO_RESERVATION => 'NO_RESERVATION', - self::ANY_RESERVATION => 'ANY_RESERVATION', - self::SPECIFIC_RESERVATION => 'SPECIFIC_RESERVATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\Container\V1\ReservationAffinity_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php deleted file mode 100644 index b7898abdd523..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLabels.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.ResourceLabels - */ -class ResourceLabels extends \Google\Protobuf\Internal\Message -{ - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $labels - * Map of node label keys and node label values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Map of node label keys and node label values. - * - * Generated from protobuf field map labels = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php deleted file mode 100644 index 9b37f1e58826..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceLimit.php +++ /dev/null @@ -1,136 +0,0 @@ -google.container.v1.ResourceLimit - */ -class ResourceLimit extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name "cpu", "memory" or gpu-specific string. - * - * Generated from protobuf field string resource_type = 1; - */ - protected $resource_type = ''; - /** - * Minimum amount of the resource in the cluster. - * - * Generated from protobuf field int64 minimum = 2; - */ - protected $minimum = 0; - /** - * Maximum amount of the resource in the cluster. - * - * Generated from protobuf field int64 maximum = 3; - */ - protected $maximum = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_type - * Resource name "cpu", "memory" or gpu-specific string. - * @type int|string $minimum - * Minimum amount of the resource in the cluster. - * @type int|string $maximum - * Maximum amount of the resource in the cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Resource name "cpu", "memory" or gpu-specific string. - * - * Generated from protobuf field string resource_type = 1; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Resource name "cpu", "memory" or gpu-specific string. - * - * Generated from protobuf field string resource_type = 1; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - - /** - * Minimum amount of the resource in the cluster. - * - * Generated from protobuf field int64 minimum = 2; - * @return int|string - */ - public function getMinimum() - { - return $this->minimum; - } - - /** - * Minimum amount of the resource in the cluster. - * - * Generated from protobuf field int64 minimum = 2; - * @param int|string $var - * @return $this - */ - public function setMinimum($var) - { - GPBUtil::checkInt64($var); - $this->minimum = $var; - - return $this; - } - - /** - * Maximum amount of the resource in the cluster. - * - * Generated from protobuf field int64 maximum = 3; - * @return int|string - */ - public function getMaximum() - { - return $this->maximum; - } - - /** - * Maximum amount of the resource in the cluster. - * - * Generated from protobuf field int64 maximum = 3; - * @param int|string $var - * @return $this - */ - public function setMaximum($var) - { - GPBUtil::checkInt64($var); - $this->maximum = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php deleted file mode 100644 index 8ca1fb9c68a7..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceManagerTags.php +++ /dev/null @@ -1,84 +0,0 @@ -google.container.v1.ResourceManagerTags - */ -class ResourceManagerTags extends \Google\Protobuf\Internal\Message -{ - /** - * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) - * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` - * 2. `{org_id}/{tag_key_name}={tag_value_name}` - * 3. `{project_id}/{tag_key_name}={tag_value_name}` - * - * Generated from protobuf field map tags = 1; - */ - private $tags; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $tags - * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) - * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` - * 2. `{org_id}/{tag_key_name}={tag_value_name}` - * 3. `{project_id}/{tag_key_name}={tag_value_name}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) - * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` - * 2. `{org_id}/{tag_key_name}={tag_value_name}` - * 3. `{project_id}/{tag_key_name}={tag_value_name}` - * - * Generated from protobuf field map tags = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * TagKeyValue must be in one of the following formats ([KEY]=[VALUE]) - * 1. `tagKeys/{tag_key_id}=tagValues/{tag_value_id}` - * 2. `{org_id}/{tag_key_name}={tag_value_name}` - * 3. `{project_id}/{tag_key_name}={tag_value_name}` - * - * Generated from protobuf field map tags = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php deleted file mode 100644 index b29b99b6d250..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig.php +++ /dev/null @@ -1,159 +0,0 @@ -google.container.v1.ResourceUsageExportConfig - */ -class ResourceUsageExportConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Configuration to use BigQuery as usage export destination. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - */ - protected $bigquery_destination = null; - /** - * Whether to enable network egress metering for this cluster. If enabled, a - * daemonset will be created in the cluster to meter network egress traffic. - * - * Generated from protobuf field bool enable_network_egress_metering = 2; - */ - protected $enable_network_egress_metering = false; - /** - * Configuration to enable resource consumption metering. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - */ - protected $consumption_metering_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination $bigquery_destination - * Configuration to use BigQuery as usage export destination. - * @type bool $enable_network_egress_metering - * Whether to enable network egress metering for this cluster. If enabled, a - * daemonset will be created in the cluster to meter network egress traffic. - * @type \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig $consumption_metering_config - * Configuration to enable resource consumption metering. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Configuration to use BigQuery as usage export destination. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination|null - */ - public function getBigqueryDestination() - { - return $this->bigquery_destination; - } - - public function hasBigqueryDestination() - { - return isset($this->bigquery_destination); - } - - public function clearBigqueryDestination() - { - unset($this->bigquery_destination); - } - - /** - * Configuration to use BigQuery as usage export destination. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.BigQueryDestination bigquery_destination = 1; - * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination $var - * @return $this - */ - public function setBigqueryDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig\BigQueryDestination::class); - $this->bigquery_destination = $var; - - return $this; - } - - /** - * Whether to enable network egress metering for this cluster. If enabled, a - * daemonset will be created in the cluster to meter network egress traffic. - * - * Generated from protobuf field bool enable_network_egress_metering = 2; - * @return bool - */ - public function getEnableNetworkEgressMetering() - { - return $this->enable_network_egress_metering; - } - - /** - * Whether to enable network egress metering for this cluster. If enabled, a - * daemonset will be created in the cluster to meter network egress traffic. - * - * Generated from protobuf field bool enable_network_egress_metering = 2; - * @param bool $var - * @return $this - */ - public function setEnableNetworkEgressMetering($var) - { - GPBUtil::checkBool($var); - $this->enable_network_egress_metering = $var; - - return $this; - } - - /** - * Configuration to enable resource consumption metering. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * @return \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig|null - */ - public function getConsumptionMeteringConfig() - { - return $this->consumption_metering_config; - } - - public function hasConsumptionMeteringConfig() - { - return isset($this->consumption_metering_config); - } - - public function clearConsumptionMeteringConfig() - { - unset($this->consumption_metering_config); - } - - /** - * Configuration to enable resource consumption metering. - * - * Generated from protobuf field .google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig consumption_metering_config = 3; - * @param \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig $var - * @return $this - */ - public function setConsumptionMeteringConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceUsageExportConfig\ConsumptionMeteringConfig::class); - $this->consumption_metering_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php deleted file mode 100644 index 8ab2f49d58dd..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/BigQueryDestination.php +++ /dev/null @@ -1,70 +0,0 @@ -google.container.v1.ResourceUsageExportConfig.BigQueryDestination - */ -class BigQueryDestination extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of a BigQuery Dataset. - * - * Generated from protobuf field string dataset_id = 1; - */ - protected $dataset_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dataset_id - * The ID of a BigQuery Dataset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The ID of a BigQuery Dataset. - * - * Generated from protobuf field string dataset_id = 1; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * The ID of a BigQuery Dataset. - * - * Generated from protobuf field string dataset_id = 1; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BigQueryDestination::class, \Google\Cloud\Container\V1\ResourceUsageExportConfig_BigQueryDestination::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php deleted file mode 100644 index 9f574500466f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ResourceUsageExportConfig/ConsumptionMeteringConfig.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig - */ -class ConsumptionMeteringConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether to enable consumption metering for this cluster. If enabled, a - * second BigQuery table will be created to hold resource consumption - * records. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether to enable consumption metering for this cluster. If enabled, a - * second BigQuery table will be created to hold resource consumption - * records. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether to enable consumption metering for this cluster. If enabled, a - * second BigQuery table will be created to hold resource consumption - * records. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether to enable consumption metering for this cluster. If enabled, a - * second BigQuery table will be created to hold resource consumption - * records. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConsumptionMeteringConfig::class, \Google\Cloud\Container\V1\ResourceUsageExportConfig_ConsumptionMeteringConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php deleted file mode 100644 index abae3fefbdc5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/RollbackNodePoolUpgradeRequest.php +++ /dev/null @@ -1,340 +0,0 @@ -google.container.v1.RollbackNodePoolUpgradeRequest - */ -class RollbackNodePoolUpgradeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - /** - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * - * Generated from protobuf field bool respect_pdb = 7; - */ - protected $respect_pdb = false; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * @param string $nodePoolId Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\RollbackNodePoolUpgradeRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $nodePoolId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setNodePoolId($nodePoolId); - } - - /** - * @param string $name The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * @return \Google\Cloud\Container\V1\RollbackNodePoolUpgradeRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * @type bool $respect_pdb - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to rollback. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node poll to - * rollback upgrade. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * - * Generated from protobuf field bool respect_pdb = 7; - * @return bool - */ - public function getRespectPdb() - { - return $this->respect_pdb; - } - - /** - * Option for rollback to ignore the PodDisruptionBudget. - * Default value is false. - * - * Generated from protobuf field bool respect_pdb = 7; - * @param bool $var - * @return $this - */ - public function setRespectPdb($var) - { - GPBUtil::checkBool($var); - $this->respect_pdb = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php deleted file mode 100644 index edad92dc8d78..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.SandboxConfig - */ -class SandboxConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Type of the sandbox to use for the node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Type of the sandbox to use for the node. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Type of the sandbox to use for the node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of the sandbox to use for the node. - * - * Generated from protobuf field .google.container.v1.SandboxConfig.Type type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SandboxConfig\Type::class); - $this->type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php deleted file mode 100644 index 824af0ee6238..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SandboxConfig/Type.php +++ /dev/null @@ -1,57 +0,0 @@ -google.container.v1.SandboxConfig.Type - */ -class Type -{ - /** - * Default value. This should not be used. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Run sandbox using gvisor. - * - * Generated from protobuf enum GVISOR = 1; - */ - const GVISOR = 1; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::GVISOR => 'GVISOR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Container\V1\SandboxConfig_Type::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php deleted file mode 100644 index 39efd4ea402a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk.php +++ /dev/null @@ -1,102 +0,0 @@ -google.container.v1.SecondaryBootDisk - */ -class SecondaryBootDisk extends \Google\Protobuf\Internal\Message -{ - /** - * Disk mode (container image cache, etc.) - * - * Generated from protobuf field .google.container.v1.SecondaryBootDisk.Mode mode = 1; - */ - protected $mode = 0; - /** - * Fully-qualified resource ID for an existing disk image. - * - * Generated from protobuf field string disk_image = 2; - */ - protected $disk_image = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $mode - * Disk mode (container image cache, etc.) - * @type string $disk_image - * Fully-qualified resource ID for an existing disk image. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Disk mode (container image cache, etc.) - * - * Generated from protobuf field .google.container.v1.SecondaryBootDisk.Mode mode = 1; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * Disk mode (container image cache, etc.) - * - * Generated from protobuf field .google.container.v1.SecondaryBootDisk.Mode mode = 1; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SecondaryBootDisk\Mode::class); - $this->mode = $var; - - return $this; - } - - /** - * Fully-qualified resource ID for an existing disk image. - * - * Generated from protobuf field string disk_image = 2; - * @return string - */ - public function getDiskImage() - { - return $this->disk_image; - } - - /** - * Fully-qualified resource ID for an existing disk image. - * - * Generated from protobuf field string disk_image = 2; - * @param string $var - * @return $this - */ - public function setDiskImage($var) - { - GPBUtil::checkString($var, True); - $this->disk_image = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php deleted file mode 100644 index 86e73c36a945..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDisk/Mode.php +++ /dev/null @@ -1,59 +0,0 @@ -google.container.v1.SecondaryBootDisk.Mode - */ -class Mode -{ - /** - * MODE_UNSPECIFIED is when mode is not set. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * CONTAINER_IMAGE_CACHE is for using the secondary boot disk as - * a container image cache. - * - * Generated from protobuf enum CONTAINER_IMAGE_CACHE = 1; - */ - const CONTAINER_IMAGE_CACHE = 1; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::CONTAINER_IMAGE_CACHE => 'CONTAINER_IMAGE_CACHE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Container\V1\SecondaryBootDisk_Mode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php deleted file mode 100644 index 0bd62853b10d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecondaryBootDiskUpdateStrategy.php +++ /dev/null @@ -1,34 +0,0 @@ -google.container.v1.SecondaryBootDiskUpdateStrategy - */ -class SecondaryBootDiskUpdateStrategy extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecretManagerConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecretManagerConfig.php deleted file mode 100644 index 413ae666b79b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecretManagerConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.container.v1.SecretManagerConfig - */ -class SecretManagerConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Enable/Disable Secret Manager Config. - * - * Generated from protobuf field optional bool enabled = 1; - */ - protected $enabled = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enable/Disable Secret Manager Config. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enable/Disable Secret Manager Config. - * - * Generated from protobuf field optional bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return isset($this->enabled) ? $this->enabled : false; - } - - public function hasEnabled() - { - return isset($this->enabled); - } - - public function clearEnabled() - { - unset($this->enabled); - } - - /** - * Enable/Disable Secret Manager Config. - * - * Generated from protobuf field optional bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php deleted file mode 100644 index b20c6257342d..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityBulletinEvent.php +++ /dev/null @@ -1,406 +0,0 @@ -google.container.v1.SecurityBulletinEvent - */ -class SecurityBulletinEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The resource type (node/control plane) that has the vulnerability. Multiple - * notifications (1 notification per resource type) will be sent for a - * vulnerability that affects > 1 resource type. - * - * Generated from protobuf field string resource_type_affected = 1; - */ - protected $resource_type_affected = ''; - /** - * The ID of the bulletin corresponding to the vulnerability. - * - * Generated from protobuf field string bulletin_id = 2; - */ - protected $bulletin_id = ''; - /** - * The CVEs associated with this bulletin. - * - * Generated from protobuf field repeated string cve_ids = 3; - */ - private $cve_ids; - /** - * The severity of this bulletin as it relates to GKE. - * - * Generated from protobuf field string severity = 4; - */ - protected $severity = ''; - /** - * The URI link to the bulletin on the website for more information. - * - * Generated from protobuf field string bulletin_uri = 5; - */ - protected $bulletin_uri = ''; - /** - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * - * Generated from protobuf field string brief_description = 6; - */ - protected $brief_description = ''; - /** - * The GKE minor versions affected by this vulnerability. - * - * Generated from protobuf field repeated string affected_supported_minors = 7; - */ - private $affected_supported_minors; - /** - * The GKE versions where this vulnerability is patched. - * - * Generated from protobuf field repeated string patched_versions = 8; - */ - private $patched_versions; - /** - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * - * Generated from protobuf field string suggested_upgrade_target = 9; - */ - protected $suggested_upgrade_target = ''; - /** - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * - * Generated from protobuf field bool manual_steps_required = 10; - */ - protected $manual_steps_required = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_type_affected - * The resource type (node/control plane) that has the vulnerability. Multiple - * notifications (1 notification per resource type) will be sent for a - * vulnerability that affects > 1 resource type. - * @type string $bulletin_id - * The ID of the bulletin corresponding to the vulnerability. - * @type array|\Google\Protobuf\Internal\RepeatedField $cve_ids - * The CVEs associated with this bulletin. - * @type string $severity - * The severity of this bulletin as it relates to GKE. - * @type string $bulletin_uri - * The URI link to the bulletin on the website for more information. - * @type string $brief_description - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * @type array|\Google\Protobuf\Internal\RepeatedField $affected_supported_minors - * The GKE minor versions affected by this vulnerability. - * @type array|\Google\Protobuf\Internal\RepeatedField $patched_versions - * The GKE versions where this vulnerability is patched. - * @type string $suggested_upgrade_target - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * @type bool $manual_steps_required - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The resource type (node/control plane) that has the vulnerability. Multiple - * notifications (1 notification per resource type) will be sent for a - * vulnerability that affects > 1 resource type. - * - * Generated from protobuf field string resource_type_affected = 1; - * @return string - */ - public function getResourceTypeAffected() - { - return $this->resource_type_affected; - } - - /** - * The resource type (node/control plane) that has the vulnerability. Multiple - * notifications (1 notification per resource type) will be sent for a - * vulnerability that affects > 1 resource type. - * - * Generated from protobuf field string resource_type_affected = 1; - * @param string $var - * @return $this - */ - public function setResourceTypeAffected($var) - { - GPBUtil::checkString($var, True); - $this->resource_type_affected = $var; - - return $this; - } - - /** - * The ID of the bulletin corresponding to the vulnerability. - * - * Generated from protobuf field string bulletin_id = 2; - * @return string - */ - public function getBulletinId() - { - return $this->bulletin_id; - } - - /** - * The ID of the bulletin corresponding to the vulnerability. - * - * Generated from protobuf field string bulletin_id = 2; - * @param string $var - * @return $this - */ - public function setBulletinId($var) - { - GPBUtil::checkString($var, True); - $this->bulletin_id = $var; - - return $this; - } - - /** - * The CVEs associated with this bulletin. - * - * Generated from protobuf field repeated string cve_ids = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCveIds() - { - return $this->cve_ids; - } - - /** - * The CVEs associated with this bulletin. - * - * Generated from protobuf field repeated string cve_ids = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCveIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->cve_ids = $arr; - - return $this; - } - - /** - * The severity of this bulletin as it relates to GKE. - * - * Generated from protobuf field string severity = 4; - * @return string - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * The severity of this bulletin as it relates to GKE. - * - * Generated from protobuf field string severity = 4; - * @param string $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkString($var, True); - $this->severity = $var; - - return $this; - } - - /** - * The URI link to the bulletin on the website for more information. - * - * Generated from protobuf field string bulletin_uri = 5; - * @return string - */ - public function getBulletinUri() - { - return $this->bulletin_uri; - } - - /** - * The URI link to the bulletin on the website for more information. - * - * Generated from protobuf field string bulletin_uri = 5; - * @param string $var - * @return $this - */ - public function setBulletinUri($var) - { - GPBUtil::checkString($var, True); - $this->bulletin_uri = $var; - - return $this; - } - - /** - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * - * Generated from protobuf field string brief_description = 6; - * @return string - */ - public function getBriefDescription() - { - return $this->brief_description; - } - - /** - * A brief description of the bulletin. See the bulletin pointed to by the - * bulletin_uri field for an expanded description. - * - * Generated from protobuf field string brief_description = 6; - * @param string $var - * @return $this - */ - public function setBriefDescription($var) - { - GPBUtil::checkString($var, True); - $this->brief_description = $var; - - return $this; - } - - /** - * The GKE minor versions affected by this vulnerability. - * - * Generated from protobuf field repeated string affected_supported_minors = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAffectedSupportedMinors() - { - return $this->affected_supported_minors; - } - - /** - * The GKE minor versions affected by this vulnerability. - * - * Generated from protobuf field repeated string affected_supported_minors = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAffectedSupportedMinors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->affected_supported_minors = $arr; - - return $this; - } - - /** - * The GKE versions where this vulnerability is patched. - * - * Generated from protobuf field repeated string patched_versions = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPatchedVersions() - { - return $this->patched_versions; - } - - /** - * The GKE versions where this vulnerability is patched. - * - * Generated from protobuf field repeated string patched_versions = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPatchedVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->patched_versions = $arr; - - return $this; - } - - /** - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * - * Generated from protobuf field string suggested_upgrade_target = 9; - * @return string - */ - public function getSuggestedUpgradeTarget() - { - return $this->suggested_upgrade_target; - } - - /** - * This represents a version selected from the patched_versions field that - * the cluster receiving this notification should most likely want to upgrade - * to based on its current version. Note that if this notification is being - * received by a given cluster, it means that this version is currently - * available as an upgrade target in that cluster's location. - * - * Generated from protobuf field string suggested_upgrade_target = 9; - * @param string $var - * @return $this - */ - public function setSuggestedUpgradeTarget($var) - { - GPBUtil::checkString($var, True); - $this->suggested_upgrade_target = $var; - - return $this; - } - - /** - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * - * Generated from protobuf field bool manual_steps_required = 10; - * @return bool - */ - public function getManualStepsRequired() - { - return $this->manual_steps_required; - } - - /** - * If this field is specified, it means there are manual steps that the user - * must take to make their clusters safe. - * - * Generated from protobuf field bool manual_steps_required = 10; - * @param bool $var - * @return $this - */ - public function setManualStepsRequired($var) - { - GPBUtil::checkBool($var); - $this->manual_steps_required = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php deleted file mode 100644 index 794357bdce1b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig.php +++ /dev/null @@ -1,122 +0,0 @@ -google.container.v1.SecurityPostureConfig - */ -class SecurityPostureConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Sets which mode to use for Security Posture features. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - */ - protected $mode = null; - /** - * Sets which mode to use for vulnerability scanning. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - */ - protected $vulnerability_mode = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $mode - * Sets which mode to use for Security Posture features. - * @type int $vulnerability_mode - * Sets which mode to use for vulnerability scanning. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Sets which mode to use for Security Posture features. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * @return int - */ - public function getMode() - { - return isset($this->mode) ? $this->mode : 0; - } - - public function hasMode() - { - return isset($this->mode); - } - - public function clearMode() - { - unset($this->mode); - } - - /** - * Sets which mode to use for Security Posture features. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.Mode mode = 1; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SecurityPostureConfig\Mode::class); - $this->mode = $var; - - return $this; - } - - /** - * Sets which mode to use for vulnerability scanning. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * @return int - */ - public function getVulnerabilityMode() - { - return isset($this->vulnerability_mode) ? $this->vulnerability_mode : 0; - } - - public function hasVulnerabilityMode() - { - return isset($this->vulnerability_mode); - } - - public function clearVulnerabilityMode() - { - unset($this->vulnerability_mode); - } - - /** - * Sets which mode to use for vulnerability scanning. - * - * Generated from protobuf field optional .google.container.v1.SecurityPostureConfig.VulnerabilityMode vulnerability_mode = 2; - * @param int $var - * @return $this - */ - public function setVulnerabilityMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SecurityPostureConfig\VulnerabilityMode::class); - $this->vulnerability_mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php deleted file mode 100644 index ee855449d84f..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/Mode.php +++ /dev/null @@ -1,71 +0,0 @@ -google.container.v1.SecurityPostureConfig.Mode - */ -class Mode -{ - /** - * Default value not specified. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * Disables Security Posture features on the cluster. - * - * Generated from protobuf enum DISABLED = 1; - */ - const DISABLED = 1; - /** - * Applies Security Posture features on the cluster. - * - * Generated from protobuf enum BASIC = 2; - */ - const BASIC = 2; - /** - * Applies the Security Posture off cluster Enterprise level features. - * - * Generated from protobuf enum ENTERPRISE = 3; - */ - const ENTERPRISE = 3; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::DISABLED => 'DISABLED', - self::BASIC => 'BASIC', - self::ENTERPRISE => 'ENTERPRISE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Container\V1\SecurityPostureConfig_Mode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php deleted file mode 100644 index 63b7ef9e06e2..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SecurityPostureConfig/VulnerabilityMode.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.SecurityPostureConfig.VulnerabilityMode - */ -class VulnerabilityMode -{ - /** - * Default value not specified. - * - * Generated from protobuf enum VULNERABILITY_MODE_UNSPECIFIED = 0; - */ - const VULNERABILITY_MODE_UNSPECIFIED = 0; - /** - * Disables vulnerability scanning on the cluster. - * - * Generated from protobuf enum VULNERABILITY_DISABLED = 1; - */ - const VULNERABILITY_DISABLED = 1; - /** - * Applies basic vulnerability scanning on the cluster. - * - * Generated from protobuf enum VULNERABILITY_BASIC = 2; - */ - const VULNERABILITY_BASIC = 2; - /** - * Applies the Security Posture's vulnerability on cluster Enterprise level - * features. - * - * Generated from protobuf enum VULNERABILITY_ENTERPRISE = 3; - */ - const VULNERABILITY_ENTERPRISE = 3; - - private static $valueToName = [ - self::VULNERABILITY_MODE_UNSPECIFIED => 'VULNERABILITY_MODE_UNSPECIFIED', - self::VULNERABILITY_DISABLED => 'VULNERABILITY_DISABLED', - self::VULNERABILITY_BASIC => 'VULNERABILITY_BASIC', - self::VULNERABILITY_ENTERPRISE => 'VULNERABILITY_ENTERPRISE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VulnerabilityMode::class, \Google\Cloud\Container\V1\SecurityPostureConfig_VulnerabilityMode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php deleted file mode 100644 index 939a53c55648..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig.php +++ /dev/null @@ -1,237 +0,0 @@ -google.container.v1.ServerConfig - */ -class ServerConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Version of Kubernetes the service deploys by default. - * - * Generated from protobuf field string default_cluster_version = 1; - */ - protected $default_cluster_version = ''; - /** - * List of valid node upgrade target versions, in descending order. - * - * Generated from protobuf field repeated string valid_node_versions = 3; - */ - private $valid_node_versions; - /** - * Default image type. - * - * Generated from protobuf field string default_image_type = 4; - */ - protected $default_image_type = ''; - /** - * List of valid image types. - * - * Generated from protobuf field repeated string valid_image_types = 5; - */ - private $valid_image_types; - /** - * List of valid master versions, in descending order. - * - * Generated from protobuf field repeated string valid_master_versions = 6; - */ - private $valid_master_versions; - /** - * List of release channel configurations. - * - * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - */ - private $channels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $default_cluster_version - * Version of Kubernetes the service deploys by default. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_node_versions - * List of valid node upgrade target versions, in descending order. - * @type string $default_image_type - * Default image type. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_image_types - * List of valid image types. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_master_versions - * List of valid master versions, in descending order. - * @type array<\Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig>|\Google\Protobuf\Internal\RepeatedField $channels - * List of release channel configurations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Version of Kubernetes the service deploys by default. - * - * Generated from protobuf field string default_cluster_version = 1; - * @return string - */ - public function getDefaultClusterVersion() - { - return $this->default_cluster_version; - } - - /** - * Version of Kubernetes the service deploys by default. - * - * Generated from protobuf field string default_cluster_version = 1; - * @param string $var - * @return $this - */ - public function setDefaultClusterVersion($var) - { - GPBUtil::checkString($var, True); - $this->default_cluster_version = $var; - - return $this; - } - - /** - * List of valid node upgrade target versions, in descending order. - * - * Generated from protobuf field repeated string valid_node_versions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidNodeVersions() - { - return $this->valid_node_versions; - } - - /** - * List of valid node upgrade target versions, in descending order. - * - * Generated from protobuf field repeated string valid_node_versions = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidNodeVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_node_versions = $arr; - - return $this; - } - - /** - * Default image type. - * - * Generated from protobuf field string default_image_type = 4; - * @return string - */ - public function getDefaultImageType() - { - return $this->default_image_type; - } - - /** - * Default image type. - * - * Generated from protobuf field string default_image_type = 4; - * @param string $var - * @return $this - */ - public function setDefaultImageType($var) - { - GPBUtil::checkString($var, True); - $this->default_image_type = $var; - - return $this; - } - - /** - * List of valid image types. - * - * Generated from protobuf field repeated string valid_image_types = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidImageTypes() - { - return $this->valid_image_types; - } - - /** - * List of valid image types. - * - * Generated from protobuf field repeated string valid_image_types = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidImageTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_image_types = $arr; - - return $this; - } - - /** - * List of valid master versions, in descending order. - * - * Generated from protobuf field repeated string valid_master_versions = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidMasterVersions() - { - return $this->valid_master_versions; - } - - /** - * List of valid master versions, in descending order. - * - * Generated from protobuf field repeated string valid_master_versions = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidMasterVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_master_versions = $arr; - - return $this; - } - - /** - * List of release channel configurations. - * - * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChannels() - { - return $this->channels; - } - - /** - * List of release channel configurations. - * - * Generated from protobuf field repeated .google.container.v1.ServerConfig.ReleaseChannelConfig channels = 9; - * @param array<\Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChannels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\ServerConfig\ReleaseChannelConfig::class); - $this->channels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php deleted file mode 100644 index a4241fd276b0..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServerConfig/ReleaseChannelConfig.php +++ /dev/null @@ -1,172 +0,0 @@ -google.container.v1.ServerConfig.ReleaseChannelConfig - */ -class ReleaseChannelConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The release channel this configuration applies to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - */ - protected $channel = 0; - /** - * The default version for newly created clusters on the channel. - * - * Generated from protobuf field string default_version = 2; - */ - protected $default_version = ''; - /** - * List of valid versions for the channel. - * - * Generated from protobuf field repeated string valid_versions = 4; - */ - private $valid_versions; - /** - * The auto upgrade target version for clusters on the channel. - * - * Generated from protobuf field string upgrade_target_version = 5; - */ - protected $upgrade_target_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $channel - * The release channel this configuration applies to. - * @type string $default_version - * The default version for newly created clusters on the channel. - * @type array|\Google\Protobuf\Internal\RepeatedField $valid_versions - * List of valid versions for the channel. - * @type string $upgrade_target_version - * The auto upgrade target version for clusters on the channel. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The release channel this configuration applies to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - * @return int - */ - public function getChannel() - { - return $this->channel; - } - - /** - * The release channel this configuration applies to. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel.Channel channel = 1; - * @param int $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\ReleaseChannel\Channel::class); - $this->channel = $var; - - return $this; - } - - /** - * The default version for newly created clusters on the channel. - * - * Generated from protobuf field string default_version = 2; - * @return string - */ - public function getDefaultVersion() - { - return $this->default_version; - } - - /** - * The default version for newly created clusters on the channel. - * - * Generated from protobuf field string default_version = 2; - * @param string $var - * @return $this - */ - public function setDefaultVersion($var) - { - GPBUtil::checkString($var, True); - $this->default_version = $var; - - return $this; - } - - /** - * List of valid versions for the channel. - * - * Generated from protobuf field repeated string valid_versions = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValidVersions() - { - return $this->valid_versions; - } - - /** - * List of valid versions for the channel. - * - * Generated from protobuf field repeated string valid_versions = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValidVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->valid_versions = $arr; - - return $this; - } - - /** - * The auto upgrade target version for clusters on the channel. - * - * Generated from protobuf field string upgrade_target_version = 5; - * @return string - */ - public function getUpgradeTargetVersion() - { - return $this->upgrade_target_version; - } - - /** - * The auto upgrade target version for clusters on the channel. - * - * Generated from protobuf field string upgrade_target_version = 5; - * @param string $var - * @return $this - */ - public function setUpgradeTargetVersion($var) - { - GPBUtil::checkString($var, True); - $this->upgrade_target_version = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReleaseChannelConfig::class, \Google\Cloud\Container\V1\ServerConfig_ReleaseChannelConfig::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php deleted file mode 100644 index df111e30817a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ServiceExternalIPsConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ServiceExternalIPsConfig - */ -class ServiceExternalIPsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Services with ExternalIPs field are allowed or not. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Services with ExternalIPs field are allowed or not. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Services with ExternalIPs field are allowed or not. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Services with ExternalIPs field are allowed or not. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php deleted file mode 100644 index a2cc02f69958..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetAddonsConfigRequest.php +++ /dev/null @@ -1,303 +0,0 @@ -google.container.v1.SetAddonsConfigRequest - */ -class SetAddonsConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The desired configurations for the various addons available to - * run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $addons_config = null; - /** - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param \Google\Cloud\Container\V1\AddonsConfig $addonsConfig Required. The desired configurations for the various addons available to - * run in the cluster. - * - * @return \Google\Cloud\Container\V1\SetAddonsConfigRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\AddonsConfig $addonsConfig): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setAddonsConfig($addonsConfig); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param \Google\Cloud\Container\V1\AddonsConfig $addonsConfig Required. The desired configurations for the various addons available to - * run in the cluster. - * - * @return \Google\Cloud\Container\V1\SetAddonsConfigRequest - * - * @experimental - */ - public static function buildFromNameAddonsConfig(string $name, \Google\Cloud\Container\V1\AddonsConfig $addonsConfig): self - { - return (new self()) - ->setName($name) - ->setAddonsConfig($addonsConfig); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\AddonsConfig $addons_config - * Required. The desired configurations for the various addons available to - * run in the cluster. - * @type string $name - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The desired configurations for the various addons available to - * run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\AddonsConfig|null - */ - public function getAddonsConfig() - { - return $this->addons_config; - } - - public function hasAddonsConfig() - { - return isset($this->addons_config); - } - - public function clearAddonsConfig() - { - unset($this->addons_config); - } - - /** - * Required. The desired configurations for the various addons available to - * run in the cluster. - * - * Generated from protobuf field .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\AddonsConfig $var - * @return $this - */ - public function setAddonsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\AddonsConfig::class); - $this->addons_config = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set addons. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php deleted file mode 100644 index 32b166e06b98..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLabelsRequest.php +++ /dev/null @@ -1,302 +0,0 @@ -google.container.v1.SetLabelsRequest - */ -class SetLabelsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The labels to set for that cluster. - * - * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $resource_labels; - /** - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * - * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $label_fingerprint = ''; - /** - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * Required. The labels to set for that cluster. - * @type string $label_fingerprint - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * @type string $name - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The labels to set for that cluster. - * - * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * Required. The labels to set for that cluster. - * - * Generated from protobuf field map resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * - * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLabelFingerprint() - { - return $this->label_fingerprint; - } - - /** - * Required. The fingerprint of the previous set of labels for this resource, - * used to detect conflicts. The fingerprint is initially generated by - * Kubernetes Engine and changes after every request to modify or update - * labels. You must always provide an up-to-date fingerprint hash when - * updating or changing labels. Make a `get()` request to the - * resource to get the latest fingerprint. - * - * Generated from protobuf field string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLabelFingerprint($var) - { - GPBUtil::checkString($var, True); - $this->label_fingerprint = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set labels. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php deleted file mode 100644 index 386080c473d9..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLegacyAbacRequest.php +++ /dev/null @@ -1,288 +0,0 @@ -google.container.v1.SetLegacyAbacRequest - */ -class SetLegacyAbacRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. Whether ABAC authorization will be enabled in the cluster. - * - * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enabled = false; - /** - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @param bool $enabled Required. Whether ABAC authorization will be enabled in the cluster. - * - * @return \Google\Cloud\Container\V1\SetLegacyAbacRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, bool $enabled): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setEnabled($enabled); - } - - /** - * @param string $name The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * @param bool $enabled Required. Whether ABAC authorization will be enabled in the cluster. - * - * @return \Google\Cloud\Container\V1\SetLegacyAbacRequest - * - * @experimental - */ - public static function buildFromNameEnabled(string $name, bool $enabled): self - { - return (new self()) - ->setName($name) - ->setEnabled($enabled); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type bool $enabled - * Required. Whether ABAC authorization will be enabled in the cluster. - * @type string $name - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. Whether ABAC authorization will be enabled in the cluster. - * - * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Required. Whether ABAC authorization will be enabled in the cluster. - * - * Generated from protobuf field bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set legacy - * abac. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php deleted file mode 100644 index 822fdfb7e552..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLocationsRequest.php +++ /dev/null @@ -1,319 +0,0 @@ -google.container.v1.SetLocationsRequest - */ -class SetLocationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * - * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - private $locations; - /** - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param string[] $locations Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * - * This list must always include the cluster's primary zone. - * - * @return \Google\Cloud\Container\V1\SetLocationsRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, array $locations): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setLocations($locations); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param string[] $locations Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * - * This list must always include the cluster's primary zone. - * - * @return \Google\Cloud\Container\V1\SetLocationsRequest - * - * @experimental - */ - public static function buildFromNameLocations(string $name, array $locations): self - { - return (new self()) - ->setName($name) - ->setLocations($locations); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * @type string $name - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * - * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * Required. The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster's nodes should be located. Changing the locations a cluster is in - * will result in nodes being either created or removed from the cluster, - * depending on whether locations are being added or removed. - * This list must always include the cluster's primary zone. - * - * Generated from protobuf field repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set locations. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php deleted file mode 100644 index 66954003cb55..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetLoggingServiceRequest.php +++ /dev/null @@ -1,339 +0,0 @@ -google.container.v1.SetLoggingServiceRequest - */ -class SetLoggingServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $logging_service = ''; - /** - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param string $loggingService Required. The logging service the cluster should use to write logs. - * Currently available options: - * - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * @return \Google\Cloud\Container\V1\SetLoggingServiceRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $loggingService): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setLoggingService($loggingService); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param string $loggingService Required. The logging service the cluster should use to write logs. - * Currently available options: - * - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * @return \Google\Cloud\Container\V1\SetLoggingServiceRequest - * - * @experimental - */ - public static function buildFromNameLoggingService(string $name, string $loggingService): self - { - return (new self()) - ->setName($name) - ->setLoggingService($loggingService); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $logging_service - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * @type string $name - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLoggingService() - { - return $this->logging_service; - } - - /** - * Required. The logging service the cluster should use to write logs. - * Currently available options: - * * `logging.googleapis.com/kubernetes` - The Cloud Logging - * service with a Kubernetes-native resource model - * * `logging.googleapis.com` - The legacy Cloud Logging service (no longer - * available as of GKE 1.15). - * * `none` - no logs will be exported from the cluster. - * If left as an empty string,`logging.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `logging.googleapis.com` for earlier versions. - * - * Generated from protobuf field string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLoggingService($var) - { - GPBUtil::checkString($var, True); - $this->logging_service = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set logging. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php deleted file mode 100644 index b7820cb27913..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMaintenancePolicyRequest.php +++ /dev/null @@ -1,278 +0,0 @@ -google.container.v1.SetMaintenancePolicyRequest - */ -class SetMaintenancePolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $zone = ''; - /** - * Required. The name of the cluster to update. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster_id = ''; - /** - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $maintenance_policy = null; - /** - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * @param string $projectId Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * @param string $zone Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * @param string $clusterId Required. The name of the cluster to update. - * @param \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * @return \Google\Cloud\Container\V1\SetMaintenancePolicyRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMaintenancePolicy($maintenancePolicy); - } - - /** - * @param string $name The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * @return \Google\Cloud\Container\V1\SetMaintenancePolicyRequest - * - * @experimental - */ - public static function buildFromNameMaintenancePolicy(string $name, \Google\Cloud\Container\V1\MaintenancePolicy $maintenancePolicy): self - { - return (new self()) - ->setName($name) - ->setMaintenancePolicy($maintenancePolicy); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * @type string $zone - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * @type string $cluster_id - * Required. The name of the cluster to update. - * @type \Google\Cloud\Container\V1\MaintenancePolicy $maintenance_policy - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * @type string $name - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * Required. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. - * - * Generated from protobuf field string zone = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Required. The name of the cluster to update. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClusterId() - { - return $this->cluster_id; - } - - /** - * Required. The name of the cluster to update. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\MaintenancePolicy|null - */ - public function getMaintenancePolicy() - { - return $this->maintenance_policy; - } - - public function hasMaintenancePolicy() - { - return isset($this->maintenance_policy); - } - - public function clearMaintenancePolicy() - { - unset($this->maintenance_policy); - } - - /** - * Required. The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. - * - * Generated from protobuf field .google.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\MaintenancePolicy $var - * @return $this - */ - public function setMaintenancePolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenancePolicy::class); - $this->maintenance_policy = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set - * maintenance policy. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php deleted file mode 100644 index 9f9c4bb4de29..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest.php +++ /dev/null @@ -1,290 +0,0 @@ -google.container.v1.SetMasterAuthRequest - */ -class SetMasterAuthRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The exact form of action to be taken on the master auth. - * - * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $action = 0; - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update = null; - /** - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type int $action - * Required. The exact form of action to be taken on the master auth. - * @type \Google\Cloud\Container\V1\MasterAuth $update - * Required. A description of the update. - * @type string $name - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The exact form of action to be taken on the master auth. - * - * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * Required. The exact form of action to be taken on the master auth. - * - * Generated from protobuf field .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SetMasterAuthRequest\Action::class); - $this->action = $var; - - return $this; - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\MasterAuth|null - */ - public function getUpdate() - { - return $this->update; - } - - public function hasUpdate() - { - return isset($this->update); - } - - public function clearUpdate() - { - unset($this->update); - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\MasterAuth $var - * @return $this - */ - public function setUpdate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MasterAuth::class); - $this->update = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set auth. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php deleted file mode 100644 index f05c2c752248..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMasterAuthRequest/Action.php +++ /dev/null @@ -1,74 +0,0 @@ -google.container.v1.SetMasterAuthRequest.Action - */ -class Action -{ - /** - * Operation is unknown and will error out. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Set the password to a user generated value. - * - * Generated from protobuf enum SET_PASSWORD = 1; - */ - const SET_PASSWORD = 1; - /** - * Generate a new password and set it to that. - * - * Generated from protobuf enum GENERATE_PASSWORD = 2; - */ - const GENERATE_PASSWORD = 2; - /** - * Set the username. If an empty username is provided, basic authentication - * is disabled for the cluster. If a non-empty username is provided, basic - * authentication is enabled, with either a provided password or a generated - * one. - * - * Generated from protobuf enum SET_USERNAME = 3; - */ - const SET_USERNAME = 3; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::SET_PASSWORD => 'SET_PASSWORD', - self::GENERATE_PASSWORD => 'GENERATE_PASSWORD', - self::SET_USERNAME => 'SET_USERNAME', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Container\V1\SetMasterAuthRequest_Action::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php deleted file mode 100644 index c1e9b2480dd4..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetMonitoringServiceRequest.php +++ /dev/null @@ -1,339 +0,0 @@ -google.container.v1.SetMonitoringServiceRequest - */ -class SetMonitoringServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $monitoring_service = ''; - /** - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param string $monitoringService Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * @return \Google\Cloud\Container\V1\SetMonitoringServiceRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $monitoringService): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMonitoringService($monitoringService); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param string $monitoringService Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * @return \Google\Cloud\Container\V1\SetMonitoringServiceRequest - * - * @experimental - */ - public static function buildFromNameMonitoringService(string $name, string $monitoringService): self - { - return (new self()) - ->setName($name) - ->setMonitoringService($monitoringService); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $monitoring_service - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * @type string $name - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMonitoringService() - { - return $this->monitoring_service; - } - - /** - * Required. The monitoring service the cluster should use to write metrics. - * Currently available options: - * * "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring - * service with a Kubernetes-native resource model - * * `monitoring.googleapis.com` - The legacy Cloud Monitoring service (no - * longer available as of GKE 1.15). - * * `none` - No metrics will be exported from the cluster. - * If left as an empty string,`monitoring.googleapis.com/kubernetes` will be - * used for GKE 1.14+ or `monitoring.googleapis.com` for earlier versions. - * - * Generated from protobuf field string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMonitoringService($var) - { - GPBUtil::checkString($var, True); - $this->monitoring_service = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to set monitoring. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php deleted file mode 100644 index 7c35706d9a9b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNetworkPolicyRequest.php +++ /dev/null @@ -1,297 +0,0 @@ -google.container.v1.SetNetworkPolicyRequest - */ -class SetNetworkPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $network_policy = null; - /** - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @param \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy Required. Configuration options for the NetworkPolicy feature. - * - * @return \Google\Cloud\Container\V1\SetNetworkPolicyRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setNetworkPolicy($networkPolicy); - } - - /** - * @param string $name The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * @param \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy Required. Configuration options for the NetworkPolicy feature. - * - * @return \Google\Cloud\Container\V1\SetNetworkPolicyRequest - * - * @experimental - */ - public static function buildFromNameNetworkPolicy(string $name, \Google\Cloud\Container\V1\NetworkPolicy $networkPolicy): self - { - return (new self()) - ->setName($name) - ->setNetworkPolicy($networkPolicy); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\NetworkPolicy $network_policy - * Required. Configuration options for the NetworkPolicy feature. - * @type string $name - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NetworkPolicy|null - */ - public function getNetworkPolicy() - { - return $this->network_policy; - } - - public function hasNetworkPolicy() - { - return isset($this->network_policy); - } - - public function clearNetworkPolicy() - { - unset($this->network_policy); - } - - /** - * Required. Configuration options for the NetworkPolicy feature. - * - * Generated from protobuf field .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NetworkPolicy $var - * @return $this - */ - public function setNetworkPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkPolicy::class); - $this->network_policy = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to set networking - * policy. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php deleted file mode 100644 index a9884dd31f6b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolAutoscalingRequest.php +++ /dev/null @@ -1,303 +0,0 @@ -google.container.v1.SetNodePoolAutoscalingRequest - */ -class SetNodePoolAutoscalingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. Autoscaling configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $autoscaling = null; - /** - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\NodePoolAutoscaling $autoscaling - * Required. Autoscaling configuration for the node pool. - * @type string $name - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. Autoscaling configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NodePoolAutoscaling|null - */ - public function getAutoscaling() - { - return $this->autoscaling; - } - - public function hasAutoscaling() - { - return isset($this->autoscaling); - } - - public function clearAutoscaling() - { - unset($this->autoscaling); - } - - /** - * Required. Autoscaling configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NodePoolAutoscaling $var - * @return $this - */ - public function setAutoscaling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolAutoscaling::class); - $this->autoscaling = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to set - * autoscaler settings. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php deleted file mode 100644 index f1807940a3ff..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolManagementRequest.php +++ /dev/null @@ -1,304 +0,0 @@ -google.container.v1.SetNodePoolManagementRequest - */ -class SetNodePoolManagementRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. NodeManagement configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $management = null; - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\NodeManagement $management - * Required. NodeManagement configuration for the node pool. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. NodeManagement configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\NodeManagement|null - */ - public function getManagement() - { - return $this->management; - } - - public function hasManagement() - { - return isset($this->management); - } - - public function clearManagement() - { - unset($this->management); - } - - /** - * Required. NodeManagement configuration for the node pool. - * - * Generated from protobuf field .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\NodeManagement $var - * @return $this - */ - public function setManagement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeManagement::class); - $this->management = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * management properties. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php deleted file mode 100644 index 56d25d6e8e81..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SetNodePoolSizeRequest.php +++ /dev/null @@ -1,293 +0,0 @@ -google.container.v1.SetNodePoolSizeRequest - */ -class SetNodePoolSizeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. The desired node count for the pool. - * - * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $node_count = 0; - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * @type int $node_count - * Required. The desired node count for the pool. - * @type string $name - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to update. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. The desired node count for the pool. - * - * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getNodeCount() - { - return $this->node_count; - } - - /** - * Required. The desired node count for the pool. - * - * Generated from protobuf field int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setNodeCount($var) - { - GPBUtil::checkInt32($var); - $this->node_count = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool id) of the node pool to set - * size. - * Specified in the format `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php deleted file mode 100644 index c711d0be5048..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedInstanceConfig.php +++ /dev/null @@ -1,129 +0,0 @@ -google.container.v1.ShieldedInstanceConfig - */ -class ShieldedInstanceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * - * Generated from protobuf field bool enable_secure_boot = 1; - */ - protected $enable_secure_boot = false; - /** - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * - * Generated from protobuf field bool enable_integrity_monitoring = 2; - */ - protected $enable_integrity_monitoring = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_secure_boot - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * @type bool $enable_integrity_monitoring - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * - * Generated from protobuf field bool enable_secure_boot = 1; - * @return bool - */ - public function getEnableSecureBoot() - { - return $this->enable_secure_boot; - } - - /** - * Defines whether the instance has Secure Boot enabled. - * Secure Boot helps ensure that the system only runs authentic software by - * verifying the digital signature of all boot components, and halting the - * boot process if signature verification fails. - * - * Generated from protobuf field bool enable_secure_boot = 1; - * @param bool $var - * @return $this - */ - public function setEnableSecureBoot($var) - { - GPBUtil::checkBool($var); - $this->enable_secure_boot = $var; - - return $this; - } - - /** - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * - * Generated from protobuf field bool enable_integrity_monitoring = 2; - * @return bool - */ - public function getEnableIntegrityMonitoring() - { - return $this->enable_integrity_monitoring; - } - - /** - * Defines whether the instance has integrity monitoring enabled. - * Enables monitoring and attestation of the boot integrity of the instance. - * The attestation is performed against the integrity policy baseline. This - * baseline is initially derived from the implicitly trusted boot image when - * the instance is created. - * - * Generated from protobuf field bool enable_integrity_monitoring = 2; - * @param bool $var - * @return $this - */ - public function setEnableIntegrityMonitoring($var) - { - GPBUtil::checkBool($var); - $this->enable_integrity_monitoring = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php deleted file mode 100644 index 09b61f99c881..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/ShieldedNodes.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.ShieldedNodes - */ -class ShieldedNodes extends \Google\Protobuf\Internal\Message -{ - /** - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether Shielded Nodes features are enabled on all nodes in this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php deleted file mode 100644 index 9cf3c4f481ab..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.SoleTenantConfig - */ -class SoleTenantConfig extends \Google\Protobuf\Internal\Message -{ - /** - * NodeAffinities used to match to a shared sole tenant node group. - * - * Generated from protobuf field repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - */ - private $node_affinities; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity>|\Google\Protobuf\Internal\RepeatedField $node_affinities - * NodeAffinities used to match to a shared sole tenant node group. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * NodeAffinities used to match to a shared sole tenant node group. - * - * Generated from protobuf field repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNodeAffinities() - { - return $this->node_affinities; - } - - /** - * NodeAffinities used to match to a shared sole tenant node group. - * - * Generated from protobuf field repeated .google.container.v1.SoleTenantConfig.NodeAffinity node_affinities = 1; - * @param array<\Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNodeAffinities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity::class); - $this->node_affinities = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php deleted file mode 100644 index 4d1fff207a65..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity.php +++ /dev/null @@ -1,140 +0,0 @@ -google.container.v1.SoleTenantConfig.NodeAffinity - */ -class NodeAffinity extends \Google\Protobuf\Internal\Message -{ - /** - * Key for NodeAffinity. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * Operator for NodeAffinity. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - */ - protected $operator = 0; - /** - * Values for NodeAffinity. - * - * Generated from protobuf field repeated string values = 3; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Key for NodeAffinity. - * @type int $operator - * Operator for NodeAffinity. - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * Values for NodeAffinity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Key for NodeAffinity. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Key for NodeAffinity. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Operator for NodeAffinity. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * @return int - */ - public function getOperator() - { - return $this->operator; - } - - /** - * Operator for NodeAffinity. - * - * Generated from protobuf field .google.container.v1.SoleTenantConfig.NodeAffinity.Operator operator = 2; - * @param int $var - * @return $this - */ - public function setOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\SoleTenantConfig\NodeAffinity\Operator::class); - $this->operator = $var; - - return $this; - } - - /** - * Values for NodeAffinity. - * - * Generated from protobuf field repeated string values = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Values for NodeAffinity. - * - * Generated from protobuf field repeated string values = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NodeAffinity::class, \Google\Cloud\Container\V1\SoleTenantConfig_NodeAffinity::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php deleted file mode 100644 index b40318d1e381..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/SoleTenantConfig/NodeAffinity/Operator.php +++ /dev/null @@ -1,65 +0,0 @@ -google.container.v1.SoleTenantConfig.NodeAffinity.Operator - */ -class Operator -{ - /** - * Invalid or unspecified affinity operator. - * - * Generated from protobuf enum OPERATOR_UNSPECIFIED = 0; - */ - const OPERATOR_UNSPECIFIED = 0; - /** - * Affinity operator. - * - * Generated from protobuf enum IN = 1; - */ - const IN = 1; - /** - * Anti-affinity operator. - * - * Generated from protobuf enum NOT_IN = 2; - */ - const NOT_IN = 2; - - private static $valueToName = [ - self::OPERATOR_UNSPECIFIED => 'OPERATOR_UNSPECIFIED', - self::IN => 'IN', - self::NOT_IN => 'NOT_IN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operator::class, \Google\Cloud\Container\V1\SoleTenantConfig_NodeAffinity_Operator::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php deleted file mode 100644 index ce1f1c6c392b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StackType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.container.v1.StackType - */ -class StackType -{ - /** - * Default value, will be defaulted as IPV4 only - * - * Generated from protobuf enum STACK_TYPE_UNSPECIFIED = 0; - */ - const STACK_TYPE_UNSPECIFIED = 0; - /** - * Cluster is IPV4 only - * - * Generated from protobuf enum IPV4 = 1; - */ - const IPV4 = 1; - /** - * Cluster can use both IPv4 and IPv6 - * - * Generated from protobuf enum IPV4_IPV6 = 2; - */ - const IPV4_IPV6 = 2; - - private static $valueToName = [ - self::STACK_TYPE_UNSPECIFIED => 'STACK_TYPE_UNSPECIFIED', - self::IPV4 => 'IPV4', - self::IPV4_IPV6 => 'IPV4_IPV6', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php deleted file mode 100644 index d83526a15815..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StartIPRotationRequest.php +++ /dev/null @@ -1,284 +0,0 @@ -google.container.v1.StartIPRotationRequest - */ -class StartIPRotationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - */ - protected $name = ''; - /** - * Whether to rotate credentials during IP rotation. - * - * Generated from protobuf field bool rotate_credentials = 7; - */ - protected $rotate_credentials = false; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * @return \Google\Cloud\Container\V1\StartIPRotationRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId); - } - - /** - * @param string $name The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * @return \Google\Cloud\Container\V1\StartIPRotationRequest - * - * @experimental - */ - public static function buildFromName(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * @type string $name - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * @type bool $rotate_credentials - * Whether to rotate credentials during IP rotation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster name) of the cluster to start IP - * rotation. Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 6; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Whether to rotate credentials during IP rotation. - * - * Generated from protobuf field bool rotate_credentials = 7; - * @return bool - */ - public function getRotateCredentials() - { - return $this->rotate_credentials; - } - - /** - * Whether to rotate credentials during IP rotation. - * - * Generated from protobuf field bool rotate_credentials = 7; - * @param bool $var - * @return $this - */ - public function setRotateCredentials($var) - { - GPBUtil::checkBool($var); - $this->rotate_credentials = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php deleted file mode 100644 index 6badc67f40b1..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatefulHAConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.StatefulHAConfig - */ -class StatefulHAConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the Stateful HA add-on is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether the Stateful HA add-on is enabled for this cluster. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether the Stateful HA add-on is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether the Stateful HA add-on is enabled for this cluster. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php deleted file mode 100644 index 3214778aea36..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition.php +++ /dev/null @@ -1,145 +0,0 @@ -google.container.v1.StatusCondition - */ -class StatusCondition extends \Google\Protobuf\Internal\Message -{ - /** - * Machine-friendly representation of the condition - * Deprecated. Use canonical_code instead. - * - * Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * @deprecated - */ - protected $code = 0; - /** - * Human-friendly representation of the condition - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - /** - * Canonical code of the condition. - * - * Generated from protobuf field .google.rpc.Code canonical_code = 3; - */ - protected $canonical_code = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $code - * Machine-friendly representation of the condition - * Deprecated. Use canonical_code instead. - * @type string $message - * Human-friendly representation of the condition - * @type int $canonical_code - * Canonical code of the condition. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Machine-friendly representation of the condition - * Deprecated. Use canonical_code instead. - * - * Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * @return int - * @deprecated - */ - public function getCode() - { - @trigger_error('code is deprecated.', E_USER_DEPRECATED); - return $this->code; - } - - /** - * Machine-friendly representation of the condition - * Deprecated. Use canonical_code instead. - * - * Generated from protobuf field .google.container.v1.StatusCondition.Code code = 1 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setCode($var) - { - @trigger_error('code is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\StatusCondition\Code::class); - $this->code = $var; - - return $this; - } - - /** - * Human-friendly representation of the condition - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Human-friendly representation of the condition - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Canonical code of the condition. - * - * Generated from protobuf field .google.rpc.Code canonical_code = 3; - * @return int - */ - public function getCanonicalCode() - { - return $this->canonical_code; - } - - /** - * Canonical code of the condition. - * - * Generated from protobuf field .google.rpc.Code canonical_code = 3; - * @param int $var - * @return $this - */ - public function setCanonicalCode($var) - { - GPBUtil::checkEnum($var, \Google\Rpc\Code::class); - $this->canonical_code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php deleted file mode 100644 index 189901c0228e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/StatusCondition/Code.php +++ /dev/null @@ -1,95 +0,0 @@ -google.container.v1.StatusCondition.Code - */ -class Code -{ - /** - * UNKNOWN indicates a generic condition. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * GCE_STOCKOUT indicates that Google Compute Engine resources are - * temporarily unavailable. - * - * Generated from protobuf enum GCE_STOCKOUT = 1; - */ - const GCE_STOCKOUT = 1; - /** - * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot - * service account. - * - * Generated from protobuf enum GKE_SERVICE_ACCOUNT_DELETED = 2; - */ - const GKE_SERVICE_ACCOUNT_DELETED = 2; - /** - * Google Compute Engine quota was exceeded. - * - * Generated from protobuf enum GCE_QUOTA_EXCEEDED = 3; - */ - const GCE_QUOTA_EXCEEDED = 3; - /** - * Cluster state was manually changed by an SRE due to a system logic error. - * - * Generated from protobuf enum SET_BY_OPERATOR = 4; - */ - const SET_BY_OPERATOR = 4; - /** - * Unable to perform an encrypt operation against the CloudKMS key used for - * etcd level encryption. - * - * Generated from protobuf enum CLOUD_KMS_KEY_ERROR = 7; - */ - const CLOUD_KMS_KEY_ERROR = 7; - /** - * Cluster CA is expiring soon. - * - * Generated from protobuf enum CA_EXPIRING = 9; - */ - const CA_EXPIRING = 9; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::GCE_STOCKOUT => 'GCE_STOCKOUT', - self::GKE_SERVICE_ACCOUNT_DELETED => 'GKE_SERVICE_ACCOUNT_DELETED', - self::GCE_QUOTA_EXCEEDED => 'GCE_QUOTA_EXCEEDED', - self::SET_BY_OPERATOR => 'SET_BY_OPERATOR', - self::CLOUD_KMS_KEY_ERROR => 'CLOUD_KMS_KEY_ERROR', - self::CA_EXPIRING => 'CA_EXPIRING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Code::class, \Google\Cloud\Container\V1\StatusCondition_Code::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php deleted file mode 100644 index ac645e5dd8ea..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/TimeWindow.php +++ /dev/null @@ -1,170 +0,0 @@ -google.container.v1.TimeWindow - */ -class TimeWindow extends \Google\Protobuf\Internal\Message -{ - /** - * The time that the window first starts. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * The time that the window ends. The end time should take place after the - * start time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - protected $options; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Container\V1\MaintenanceExclusionOptions $maintenance_exclusion_options - * MaintenanceExclusionOptions provides maintenance exclusion related - * options. - * @type \Google\Protobuf\Timestamp $start_time - * The time that the window first starts. - * @type \Google\Protobuf\Timestamp $end_time - * The time that the window ends. The end time should take place after the - * start time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * MaintenanceExclusionOptions provides maintenance exclusion related - * options. - * - * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * @return \Google\Cloud\Container\V1\MaintenanceExclusionOptions|null - */ - public function getMaintenanceExclusionOptions() - { - return $this->readOneof(3); - } - - public function hasMaintenanceExclusionOptions() - { - return $this->hasOneof(3); - } - - /** - * MaintenanceExclusionOptions provides maintenance exclusion related - * options. - * - * Generated from protobuf field .google.container.v1.MaintenanceExclusionOptions maintenance_exclusion_options = 3; - * @param \Google\Cloud\Container\V1\MaintenanceExclusionOptions $var - * @return $this - */ - public function setMaintenanceExclusionOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\MaintenanceExclusionOptions::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The time that the window first starts. - * - * 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 time that the window first starts. - * - * 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 time that the window ends. The end time should take place after the - * start time. - * - * 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 that the window ends. The end time should take place after the - * start time. - * - * 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; - } - - /** - * @return string - */ - public function getOptions() - { - return $this->whichOneof("options"); - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php deleted file mode 100644 index 616a4818bea8..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateClusterRequest.php +++ /dev/null @@ -1,297 +0,0 @@ -google.container.v1.UpdateClusterRequest - */ -class UpdateClusterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update = null; - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param \Google\Cloud\Container\V1\ClusterUpdate $update Required. A description of the update. - * - * @return \Google\Cloud\Container\V1\UpdateClusterRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, \Google\Cloud\Container\V1\ClusterUpdate $update): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setUpdate($update); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param \Google\Cloud\Container\V1\ClusterUpdate $update Required. A description of the update. - * - * @return \Google\Cloud\Container\V1\UpdateClusterRequest - * - * @experimental - */ - public static function buildFromNameUpdate(string $name, \Google\Cloud\Container\V1\ClusterUpdate $update): self - { - return (new self()) - ->setName($name) - ->setUpdate($update); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type \Google\Cloud\Container\V1\ClusterUpdate $update - * Required. A description of the update. - * @type string $name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Container\V1\ClusterUpdate|null - */ - public function getUpdate() - { - return $this->update; - } - - public function hasUpdate() - { - return isset($this->update); - } - - public function clearUpdate() - { - unset($this->update); - } - - /** - * Required. A description of the update. - * - * Generated from protobuf field .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Container\V1\ClusterUpdate $var - * @return $this - */ - public function setUpdate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ClusterUpdate::class); - $this->update = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 5; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php deleted file mode 100644 index e8512985f1a5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateMasterRequest.php +++ /dev/null @@ -1,333 +0,0 @@ -google.container.v1.UpdateMasterRequest - */ -class UpdateMasterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $master_version = ''; - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - */ - protected $name = ''; - - /** - * @param string $projectId Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @param string $zone Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @param string $clusterId Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @param string $masterVersion Required. The Kubernetes version to change the master to. - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * @return \Google\Cloud\Container\V1\UpdateMasterRequest - * - * @experimental - */ - public static function build(string $projectId, string $zone, string $clusterId, string $masterVersion): self - { - return (new self()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMasterVersion($masterVersion); - } - - /** - * @param string $name The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * @param string $masterVersion Required. The Kubernetes version to change the master to. - * - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * @return \Google\Cloud\Container\V1\UpdateMasterRequest - * - * @experimental - */ - public static function buildFromNameMasterVersion(string $name, string $masterVersion): self - { - return (new self()) - ->setName($name) - ->setMasterVersion($masterVersion); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $master_version - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * @type string $name - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMasterVersion() - { - return $this->master_version; - } - - /** - * Required. The Kubernetes version to change the master to. - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the default Kubernetes version - * - * Generated from protobuf field string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMasterVersion($var) - { - GPBUtil::checkString($var, True); - $this->master_version = $var; - - return $this; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster) of the cluster to update. - * Specified in the format `projects/*/locations/*/clusters/*`. - * - * Generated from protobuf field string name = 7; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php deleted file mode 100644 index 819f61b0d04a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpdateNodePoolRequest.php +++ /dev/null @@ -1,1517 +0,0 @@ -google.container.v1.UpdateNodePoolRequest - */ -class UpdateNodePoolRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @deprecated - */ - protected $project_id = ''; - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @deprecated - */ - protected $zone = ''; - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @deprecated - */ - protected $cluster_id = ''; - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @deprecated - */ - protected $node_pool_id = ''; - /** - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $node_version = ''; - /** - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $image_type = ''; - /** - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 8; - */ - protected $name = ''; - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * - * Generated from protobuf field repeated string locations = 13; - */ - private $locations; - /** - * The desired workload metadata config for the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - */ - protected $workload_metadata_config = null; - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - */ - protected $upgrade_settings = null; - /** - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * - * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; - */ - protected $tags = null; - /** - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * - * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; - */ - protected $taints = null; - /** - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * - * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; - */ - protected $labels = null; - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; - */ - protected $linux_node_config = null; - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; - */ - protected $kubelet_config = null; - /** - * Node network config. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; - */ - protected $node_network_config = null; - /** - * GCFS config. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; - */ - protected $gcfs_config = null; - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; - */ - protected $confidential_nodes = null; - /** - * Enable or disable gvnic on the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - */ - protected $gvnic = null; - /** - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 30; - */ - protected $etag = ''; - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; - */ - protected $fast_socket = null; - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; - */ - protected $logging_config = null; - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; - */ - protected $resource_labels = null; - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; - */ - protected $windows_node_config = null; - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 35; - */ - private $accelerators; - /** - * Optional. The desired [Google Compute Engine machine - * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the - * node pool. Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified machine type. - * - * Generated from protobuf field string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $machine_type = ''; - /** - * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') for nodes in the node pool. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk type. - * - * Generated from protobuf field string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disk_type = ''; - /** - * Optional. The desired disk size for nodes in the node pool specified in GB. - * The smallest allowed disk size is 10GB. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk size. - * - * Generated from protobuf field int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disk_size_gb = 0; - /** - * Desired resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * Existing tags will be replaced with new values. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - */ - protected $resource_manager_tags = null; - /** - * The desired containerd config for nodes in the node pool. - * Initiates an upgrade operation that recreates the nodes with the new - * config. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 40; - */ - protected $containerd_config = null; - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; - */ - protected $queued_provisioning = null; - /** - * List of Storage Pools where boot disks are provisioned. - * Existing Storage Pools will be replaced with storage-pools. - * - * Generated from protobuf field repeated string storage_pools = 43; - */ - private $storage_pools; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * @type string $zone - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * @type string $cluster_id - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $node_pool_id - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * @type string $node_version - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * @type string $image_type - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * @type string $name - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * @type array|\Google\Protobuf\Internal\RepeatedField $locations - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * @type \Google\Cloud\Container\V1\WorkloadMetadataConfig $workload_metadata_config - * The desired workload metadata config for the node pool. - * @type \Google\Cloud\Container\V1\NodePool\UpgradeSettings $upgrade_settings - * Upgrade settings control disruption and speed of the upgrade. - * @type \Google\Cloud\Container\V1\NetworkTags $tags - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * @type \Google\Cloud\Container\V1\NodeTaints $taints - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * @type \Google\Cloud\Container\V1\NodeLabels $labels - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * @type \Google\Cloud\Container\V1\LinuxNodeConfig $linux_node_config - * Parameters that can be configured on Linux nodes. - * @type \Google\Cloud\Container\V1\NodeKubeletConfig $kubelet_config - * Node kubelet configs. - * @type \Google\Cloud\Container\V1\NodeNetworkConfig $node_network_config - * Node network config. - * @type \Google\Cloud\Container\V1\GcfsConfig $gcfs_config - * GCFS config. - * @type \Google\Cloud\Container\V1\ConfidentialNodes $confidential_nodes - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * @type \Google\Cloud\Container\V1\VirtualNIC $gvnic - * Enable or disable gvnic on the node pool. - * @type string $etag - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * @type \Google\Cloud\Container\V1\FastSocket $fast_socket - * Enable or disable NCCL fast socket for the node pool. - * @type \Google\Cloud\Container\V1\NodePoolLoggingConfig $logging_config - * Logging configuration. - * @type \Google\Cloud\Container\V1\ResourceLabels $resource_labels - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * @type \Google\Cloud\Container\V1\WindowsNodeConfig $windows_node_config - * Parameters that can be configured on Windows nodes. - * @type array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $accelerators - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * @type string $machine_type - * Optional. The desired [Google Compute Engine machine - * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the - * node pool. Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified machine type. - * @type string $disk_type - * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') for nodes in the node pool. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk type. - * @type int|string $disk_size_gb - * Optional. The desired disk size for nodes in the node pool specified in GB. - * The smallest allowed disk size is 10GB. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk size. - * @type \Google\Cloud\Container\V1\ResourceManagerTags $resource_manager_tags - * Desired resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * Existing tags will be replaced with new values. - * @type \Google\Cloud\Container\V1\ContainerdConfig $containerd_config - * The desired containerd config for nodes in the node pool. - * Initiates an upgrade operation that recreates the nodes with the new - * config. - * @type \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $queued_provisioning - * Specifies the configuration of queued provisioning. - * @type array|\Google\Protobuf\Internal\RepeatedField $storage_pools - * List of Storage Pools where boot disks are provisioned. - * Existing Storage Pools will be replaced with storage-pools. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @return string - * @deprecated - */ - public function getProjectId() - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - return $this->project_id; - } - - /** - * Deprecated. The Google Developers Console [project ID or project - * number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string project_id = 1 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setProjectId($var) - { - @trigger_error('project_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @return string - * @deprecated - */ - public function getZone() - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - return $this->zone; - } - - /** - * Deprecated. The name of the Google Compute Engine - * [zone](https://cloud.google.com/compute/docs/zones#available) in which the - * cluster resides. This field has been deprecated and replaced by the name - * field. - * - * Generated from protobuf field string zone = 2 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setZone($var) - { - @trigger_error('zone is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getClusterId() - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - return $this->cluster_id; - } - - /** - * Deprecated. The name of the cluster to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string cluster_id = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setClusterId($var) - { - @trigger_error('cluster_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getNodePoolId() - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - return $this->node_pool_id; - } - - /** - * Deprecated. The name of the node pool to upgrade. - * This field has been deprecated and replaced by the name field. - * - * Generated from protobuf field string node_pool_id = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setNodePoolId($var) - { - @trigger_error('node_pool_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->node_pool_id = $var; - - return $this; - } - - /** - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNodeVersion() - { - return $this->node_version; - } - - /** - * Required. The Kubernetes version to change the nodes to (typically an - * upgrade). - * Users may specify either explicit versions offered by Kubernetes Engine or - * version aliases, which have the following behavior: - * - "latest": picks the highest valid Kubernetes version - * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version - * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version - * - "1.X.Y-gke.N": picks an explicit Kubernetes version - * - "-": picks the Kubernetes master version - * - * Generated from protobuf field string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNodeVersion($var) - { - GPBUtil::checkString($var, True); - $this->node_version = $var; - - return $this; - } - - /** - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getImageType() - { - return $this->image_type; - } - - /** - * Required. The desired image type for the node pool. Please see - * https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for - * available image types. - * - * Generated from protobuf field string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setImageType($var) - { - GPBUtil::checkString($var, True); - $this->image_type = $var; - - return $this; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 8; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name (project, location, cluster, node pool) of the node pool to - * update. Specified in the format - * `projects/*/locations/*/clusters/*/nodePools/*`. - * - * Generated from protobuf field string name = 8; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocations() - { - return $this->locations; - } - - /** - * The desired list of Google Compute Engine - * [zones](https://cloud.google.com/compute/docs/zones#available) in which the - * node pool's nodes should be located. Changing the locations for a node pool - * will result in nodes being either created or removed from the node pool, - * depending on whether locations are being added or removed. - * - * Generated from protobuf field repeated string locations = 13; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->locations = $arr; - - return $this; - } - - /** - * The desired workload metadata config for the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @return \Google\Cloud\Container\V1\WorkloadMetadataConfig|null - */ - public function getWorkloadMetadataConfig() - { - return $this->workload_metadata_config; - } - - public function hasWorkloadMetadataConfig() - { - return isset($this->workload_metadata_config); - } - - public function clearWorkloadMetadataConfig() - { - unset($this->workload_metadata_config); - } - - /** - * The desired workload metadata config for the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig workload_metadata_config = 14; - * @param \Google\Cloud\Container\V1\WorkloadMetadataConfig $var - * @return $this - */ - public function setWorkloadMetadataConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig::class); - $this->workload_metadata_config = $var; - - return $this; - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * @return \Google\Cloud\Container\V1\NodePool\UpgradeSettings|null - */ - public function getUpgradeSettings() - { - return $this->upgrade_settings; - } - - public function hasUpgradeSettings() - { - return isset($this->upgrade_settings); - } - - public function clearUpgradeSettings() - { - unset($this->upgrade_settings); - } - - /** - * Upgrade settings control disruption and speed of the upgrade. - * - * Generated from protobuf field .google.container.v1.NodePool.UpgradeSettings upgrade_settings = 15; - * @param \Google\Cloud\Container\V1\NodePool\UpgradeSettings $var - * @return $this - */ - public function setUpgradeSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\UpgradeSettings::class); - $this->upgrade_settings = $var; - - return $this; - } - - /** - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * - * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; - * @return \Google\Cloud\Container\V1\NetworkTags|null - */ - public function getTags() - { - return $this->tags; - } - - public function hasTags() - { - return isset($this->tags); - } - - public function clearTags() - { - unset($this->tags); - } - - /** - * The desired network tags to be applied to all nodes in the node pool. - * If this field is not present, the tags will not be changed. Otherwise, - * the existing network tags will be *replaced* with the provided tags. - * - * Generated from protobuf field .google.container.v1.NetworkTags tags = 16; - * @param \Google\Cloud\Container\V1\NetworkTags $var - * @return $this - */ - public function setTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NetworkTags::class); - $this->tags = $var; - - return $this; - } - - /** - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * - * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; - * @return \Google\Cloud\Container\V1\NodeTaints|null - */ - public function getTaints() - { - return $this->taints; - } - - public function hasTaints() - { - return isset($this->taints); - } - - public function clearTaints() - { - unset($this->taints); - } - - /** - * The desired node taints to be applied to all nodes in the node pool. - * If this field is not present, the taints will not be changed. Otherwise, - * the existing node taints will be *replaced* with the provided taints. - * - * Generated from protobuf field .google.container.v1.NodeTaints taints = 17; - * @param \Google\Cloud\Container\V1\NodeTaints $var - * @return $this - */ - public function setTaints($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeTaints::class); - $this->taints = $var; - - return $this; - } - - /** - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * - * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; - * @return \Google\Cloud\Container\V1\NodeLabels|null - */ - public function getLabels() - { - return $this->labels; - } - - public function hasLabels() - { - return isset($this->labels); - } - - public function clearLabels() - { - unset($this->labels); - } - - /** - * The desired node labels to be applied to all nodes in the node pool. - * If this field is not present, the labels will not be changed. Otherwise, - * the existing node labels will be *replaced* with the provided labels. - * - * Generated from protobuf field .google.container.v1.NodeLabels labels = 18; - * @param \Google\Cloud\Container\V1\NodeLabels $var - * @return $this - */ - public function setLabels($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeLabels::class); - $this->labels = $var; - - return $this; - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * @return \Google\Cloud\Container\V1\LinuxNodeConfig|null - */ - public function getLinuxNodeConfig() - { - return $this->linux_node_config; - } - - public function hasLinuxNodeConfig() - { - return isset($this->linux_node_config); - } - - public function clearLinuxNodeConfig() - { - unset($this->linux_node_config); - } - - /** - * Parameters that can be configured on Linux nodes. - * - * Generated from protobuf field .google.container.v1.LinuxNodeConfig linux_node_config = 19; - * @param \Google\Cloud\Container\V1\LinuxNodeConfig $var - * @return $this - */ - public function setLinuxNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\LinuxNodeConfig::class); - $this->linux_node_config = $var; - - return $this; - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * @return \Google\Cloud\Container\V1\NodeKubeletConfig|null - */ - public function getKubeletConfig() - { - return $this->kubelet_config; - } - - public function hasKubeletConfig() - { - return isset($this->kubelet_config); - } - - public function clearKubeletConfig() - { - unset($this->kubelet_config); - } - - /** - * Node kubelet configs. - * - * Generated from protobuf field .google.container.v1.NodeKubeletConfig kubelet_config = 20; - * @param \Google\Cloud\Container\V1\NodeKubeletConfig $var - * @return $this - */ - public function setKubeletConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeKubeletConfig::class); - $this->kubelet_config = $var; - - return $this; - } - - /** - * Node network config. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; - * @return \Google\Cloud\Container\V1\NodeNetworkConfig|null - */ - public function getNodeNetworkConfig() - { - return $this->node_network_config; - } - - public function hasNodeNetworkConfig() - { - return isset($this->node_network_config); - } - - public function clearNodeNetworkConfig() - { - unset($this->node_network_config); - } - - /** - * Node network config. - * - * Generated from protobuf field .google.container.v1.NodeNetworkConfig node_network_config = 21; - * @param \Google\Cloud\Container\V1\NodeNetworkConfig $var - * @return $this - */ - public function setNodeNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodeNetworkConfig::class); - $this->node_network_config = $var; - - return $this; - } - - /** - * GCFS config. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; - * @return \Google\Cloud\Container\V1\GcfsConfig|null - */ - public function getGcfsConfig() - { - return $this->gcfs_config; - } - - public function hasGcfsConfig() - { - return isset($this->gcfs_config); - } - - public function clearGcfsConfig() - { - unset($this->gcfs_config); - } - - /** - * GCFS config. - * - * Generated from protobuf field .google.container.v1.GcfsConfig gcfs_config = 22; - * @param \Google\Cloud\Container\V1\GcfsConfig $var - * @return $this - */ - public function setGcfsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\GcfsConfig::class); - $this->gcfs_config = $var; - - return $this; - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * @return \Google\Cloud\Container\V1\ConfidentialNodes|null - */ - public function getConfidentialNodes() - { - return $this->confidential_nodes; - } - - public function hasConfidentialNodes() - { - return isset($this->confidential_nodes); - } - - public function clearConfidentialNodes() - { - unset($this->confidential_nodes); - } - - /** - * Confidential nodes config. - * All the nodes in the node pool will be Confidential VM once enabled. - * - * Generated from protobuf field .google.container.v1.ConfidentialNodes confidential_nodes = 23; - * @param \Google\Cloud\Container\V1\ConfidentialNodes $var - * @return $this - */ - public function setConfidentialNodes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ConfidentialNodes::class); - $this->confidential_nodes = $var; - - return $this; - } - - /** - * Enable or disable gvnic on the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @return \Google\Cloud\Container\V1\VirtualNIC|null - */ - public function getGvnic() - { - return $this->gvnic; - } - - public function hasGvnic() - { - return isset($this->gvnic); - } - - public function clearGvnic() - { - unset($this->gvnic); - } - - /** - * Enable or disable gvnic on the node pool. - * - * Generated from protobuf field .google.container.v1.VirtualNIC gvnic = 29; - * @param \Google\Cloud\Container\V1\VirtualNIC $var - * @return $this - */ - public function setGvnic($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\VirtualNIC::class); - $this->gvnic = $var; - - return $this; - } - - /** - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 30; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * The current etag of the node pool. - * If an etag is provided and does not match the current etag of the node - * pool, update will be blocked and an ABORTED error will be returned. - * - * Generated from protobuf field string etag = 30; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; - * @return \Google\Cloud\Container\V1\FastSocket|null - */ - public function getFastSocket() - { - return $this->fast_socket; - } - - public function hasFastSocket() - { - return isset($this->fast_socket); - } - - public function clearFastSocket() - { - unset($this->fast_socket); - } - - /** - * Enable or disable NCCL fast socket for the node pool. - * - * Generated from protobuf field .google.container.v1.FastSocket fast_socket = 31; - * @param \Google\Cloud\Container\V1\FastSocket $var - * @return $this - */ - public function setFastSocket($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\FastSocket::class); - $this->fast_socket = $var; - - return $this; - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * @return \Google\Cloud\Container\V1\NodePoolLoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Logging configuration. - * - * Generated from protobuf field .google.container.v1.NodePoolLoggingConfig logging_config = 32; - * @param \Google\Cloud\Container\V1\NodePoolLoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePoolLoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; - * @return \Google\Cloud\Container\V1\ResourceLabels|null - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - public function hasResourceLabels() - { - return isset($this->resource_labels); - } - - public function clearResourceLabels() - { - unset($this->resource_labels); - } - - /** - * The resource labels for the node pool to use to annotate any related - * Google Compute Engine resources. - * - * Generated from protobuf field .google.container.v1.ResourceLabels resource_labels = 33; - * @param \Google\Cloud\Container\V1\ResourceLabels $var - * @return $this - */ - public function setResourceLabels($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceLabels::class); - $this->resource_labels = $var; - - return $this; - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * @return \Google\Cloud\Container\V1\WindowsNodeConfig|null - */ - public function getWindowsNodeConfig() - { - return $this->windows_node_config; - } - - public function hasWindowsNodeConfig() - { - return isset($this->windows_node_config); - } - - public function clearWindowsNodeConfig() - { - unset($this->windows_node_config); - } - - /** - * Parameters that can be configured on Windows nodes. - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig windows_node_config = 34; - * @param \Google\Cloud\Container\V1\WindowsNodeConfig $var - * @return $this - */ - public function setWindowsNodeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\WindowsNodeConfig::class); - $this->windows_node_config = $var; - - return $this; - } - - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 35; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAccelerators() - { - return $this->accelerators; - } - - /** - * A list of hardware accelerators to be attached to each node. - * See https://cloud.google.com/compute/docs/gpus for more information about - * support for GPUs. - * - * Generated from protobuf field repeated .google.container.v1.AcceleratorConfig accelerators = 35; - * @param array<\Google\Cloud\Container\V1\AcceleratorConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAccelerators($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\AcceleratorConfig::class); - $this->accelerators = $arr; - - return $this; - } - - /** - * Optional. The desired [Google Compute Engine machine - * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the - * node pool. Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified machine type. - * - * Generated from protobuf field string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMachineType() - { - return $this->machine_type; - } - - /** - * Optional. The desired [Google Compute Engine machine - * type](https://cloud.google.com/compute/docs/machine-types) for nodes in the - * node pool. Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified machine type. - * - * Generated from protobuf field string machine_type = 36 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') for nodes in the node pool. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk type. - * - * Generated from protobuf field string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDiskType() - { - return $this->disk_type; - } - - /** - * Optional. The desired disk type (e.g. 'pd-standard', 'pd-ssd' or - * 'pd-balanced') for nodes in the node pool. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk type. - * - * Generated from protobuf field string disk_type = 37 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Optional. The desired disk size for nodes in the node pool specified in GB. - * The smallest allowed disk size is 10GB. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk size. - * - * Generated from protobuf field int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Optional. The desired disk size for nodes in the node pool specified in GB. - * The smallest allowed disk size is 10GB. - * Initiates an upgrade operation that migrates the nodes in the - * node pool to the specified disk size. - * - * Generated from protobuf field int64 disk_size_gb = 38 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt64($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * Desired resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * Existing tags will be replaced with new values. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - * @return \Google\Cloud\Container\V1\ResourceManagerTags|null - */ - public function getResourceManagerTags() - { - return $this->resource_manager_tags; - } - - public function hasResourceManagerTags() - { - return isset($this->resource_manager_tags); - } - - public function clearResourceManagerTags() - { - unset($this->resource_manager_tags); - } - - /** - * Desired resource manager tag keys and values to be attached to the nodes - * for managing Compute Engine firewalls using Network Firewall Policies. - * Existing tags will be replaced with new values. - * - * Generated from protobuf field .google.container.v1.ResourceManagerTags resource_manager_tags = 39; - * @param \Google\Cloud\Container\V1\ResourceManagerTags $var - * @return $this - */ - public function setResourceManagerTags($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ResourceManagerTags::class); - $this->resource_manager_tags = $var; - - return $this; - } - - /** - * The desired containerd config for nodes in the node pool. - * Initiates an upgrade operation that recreates the nodes with the new - * config. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 40; - * @return \Google\Cloud\Container\V1\ContainerdConfig|null - */ - public function getContainerdConfig() - { - return $this->containerd_config; - } - - public function hasContainerdConfig() - { - return isset($this->containerd_config); - } - - public function clearContainerdConfig() - { - unset($this->containerd_config); - } - - /** - * The desired containerd config for nodes in the node pool. - * Initiates an upgrade operation that recreates the nodes with the new - * config. - * - * Generated from protobuf field .google.container.v1.ContainerdConfig containerd_config = 40; - * @param \Google\Cloud\Container\V1\ContainerdConfig $var - * @return $this - */ - public function setContainerdConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ContainerdConfig::class); - $this->containerd_config = $var; - - return $this; - } - - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; - * @return \Google\Cloud\Container\V1\NodePool\QueuedProvisioning|null - */ - public function getQueuedProvisioning() - { - return $this->queued_provisioning; - } - - public function hasQueuedProvisioning() - { - return isset($this->queued_provisioning); - } - - public function clearQueuedProvisioning() - { - unset($this->queued_provisioning); - } - - /** - * Specifies the configuration of queued provisioning. - * - * Generated from protobuf field .google.container.v1.NodePool.QueuedProvisioning queued_provisioning = 42; - * @param \Google\Cloud\Container\V1\NodePool\QueuedProvisioning $var - * @return $this - */ - public function setQueuedProvisioning($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\NodePool\QueuedProvisioning::class); - $this->queued_provisioning = $var; - - return $this; - } - - /** - * List of Storage Pools where boot disks are provisioned. - * Existing Storage Pools will be replaced with storage-pools. - * - * Generated from protobuf field repeated string storage_pools = 43; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStoragePools() - { - return $this->storage_pools; - } - - /** - * List of Storage Pools where boot disks are provisioned. - * Existing Storage Pools will be replaced with storage-pools. - * - * Generated from protobuf field repeated string storage_pools = 43; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStoragePools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->storage_pools = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php deleted file mode 100644 index fa7673b4da19..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeAvailableEvent.php +++ /dev/null @@ -1,188 +0,0 @@ -google.container.v1.UpgradeAvailableEvent - */ -class UpgradeAvailableEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The release version available for upgrade. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * The resource type of the release version. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; - */ - protected $resource_type = 0; - /** - * The release channel of the version. If empty, it means a non-channel - * release. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; - */ - protected $release_channel = null; - /** - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * - * Generated from protobuf field string resource = 4; - */ - protected $resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The release version available for upgrade. - * @type int $resource_type - * The resource type of the release version. - * @type \Google\Cloud\Container\V1\ReleaseChannel $release_channel - * The release channel of the version. If empty, it means a non-channel - * release. - * @type string $resource - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The release version available for upgrade. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The release version available for upgrade. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * The resource type of the release version. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * The resource type of the release version. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 2; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class); - $this->resource_type = $var; - - return $this; - } - - /** - * The release channel of the version. If empty, it means a non-channel - * release. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; - * @return \Google\Cloud\Container\V1\ReleaseChannel|null - */ - public function getReleaseChannel() - { - return $this->release_channel; - } - - public function hasReleaseChannel() - { - return isset($this->release_channel); - } - - public function clearReleaseChannel() - { - unset($this->release_channel); - } - - /** - * The release channel of the version. If empty, it means a non-channel - * release. - * - * Generated from protobuf field .google.container.v1.ReleaseChannel release_channel = 3; - * @param \Google\Cloud\Container\V1\ReleaseChannel $var - * @return $this - */ - public function setReleaseChannel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Container\V1\ReleaseChannel::class); - $this->release_channel = $var; - - return $this; - } - - /** - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * - * Generated from protobuf field string resource = 4; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Optional relative path to the resource. For example, the relative path of - * the node pool. - * - * Generated from protobuf field string resource = 4; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php deleted file mode 100644 index 373792fc7920..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeEvent.php +++ /dev/null @@ -1,252 +0,0 @@ -google.container.v1.UpgradeEvent - */ -class UpgradeEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The resource type that is upgrading. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; - */ - protected $resource_type = 0; - /** - * The operation associated with this upgrade. - * - * Generated from protobuf field string operation = 2; - */ - protected $operation = ''; - /** - * The time when the operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; - */ - protected $operation_start_time = null; - /** - * The current version before the upgrade. - * - * Generated from protobuf field string current_version = 4; - */ - protected $current_version = ''; - /** - * The target version for the upgrade. - * - * Generated from protobuf field string target_version = 5; - */ - protected $target_version = ''; - /** - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * - * Generated from protobuf field string resource = 6; - */ - protected $resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $resource_type - * The resource type that is upgrading. - * @type string $operation - * The operation associated with this upgrade. - * @type \Google\Protobuf\Timestamp $operation_start_time - * The time when the operation was started. - * @type string $current_version - * The current version before the upgrade. - * @type string $target_version - * The target version for the upgrade. - * @type string $resource - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The resource type that is upgrading. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; - * @return int - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * The resource type that is upgrading. - * - * Generated from protobuf field .google.container.v1.UpgradeResourceType resource_type = 1; - * @param int $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UpgradeResourceType::class); - $this->resource_type = $var; - - return $this; - } - - /** - * The operation associated with this upgrade. - * - * Generated from protobuf field string operation = 2; - * @return string - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The operation associated with this upgrade. - * - * 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; - } - - /** - * The time when the operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getOperationStartTime() - { - return $this->operation_start_time; - } - - public function hasOperationStartTime() - { - return isset($this->operation_start_time); - } - - public function clearOperationStartTime() - { - unset($this->operation_start_time); - } - - /** - * The time when the operation was started. - * - * Generated from protobuf field .google.protobuf.Timestamp operation_start_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setOperationStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->operation_start_time = $var; - - return $this; - } - - /** - * The current version before the upgrade. - * - * Generated from protobuf field string current_version = 4; - * @return string - */ - public function getCurrentVersion() - { - return $this->current_version; - } - - /** - * The current version before the upgrade. - * - * Generated from protobuf field string current_version = 4; - * @param string $var - * @return $this - */ - public function setCurrentVersion($var) - { - GPBUtil::checkString($var, True); - $this->current_version = $var; - - return $this; - } - - /** - * The target version for the upgrade. - * - * Generated from protobuf field string target_version = 5; - * @return string - */ - public function getTargetVersion() - { - return $this->target_version; - } - - /** - * The target version for the upgrade. - * - * Generated from protobuf field string target_version = 5; - * @param string $var - * @return $this - */ - public function setTargetVersion($var) - { - GPBUtil::checkString($var, True); - $this->target_version = $var; - - return $this; - } - - /** - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * - * Generated from protobuf field string resource = 6; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Optional relative path to the resource. For example in node pool upgrades, - * the relative path of the node pool. - * - * Generated from protobuf field string resource = 6; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php deleted file mode 100644 index 53f1f2370b97..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UpgradeResourceType.php +++ /dev/null @@ -1,62 +0,0 @@ -google.container.v1.UpgradeResourceType - */ -class UpgradeResourceType -{ - /** - * Default value. This shouldn't be used. - * - * Generated from protobuf enum UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const UPGRADE_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Master / control plane - * - * Generated from protobuf enum MASTER = 1; - */ - const MASTER = 1; - /** - * Node pool - * - * Generated from protobuf enum NODE_POOL = 2; - */ - const NODE_POOL = 2; - - private static $valueToName = [ - self::UPGRADE_RESOURCE_TYPE_UNSPECIFIED => 'UPGRADE_RESOURCE_TYPE_UNSPECIFIED', - self::MASTER => 'MASTER', - self::NODE_POOL => 'NODE_POOL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php deleted file mode 100644 index 64579e77c1be..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetwork.php +++ /dev/null @@ -1,224 +0,0 @@ -google.container.v1.UsableSubnetwork - */ -class UsableSubnetwork extends \Google\Protobuf\Internal\Message -{ - /** - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 1; - */ - protected $subnetwork = ''; - /** - * Network Name. - * Example: projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 2; - */ - protected $network = ''; - /** - * The range of internal addresses that are owned by this subnetwork. - * - * Generated from protobuf field string ip_cidr_range = 3; - */ - protected $ip_cidr_range = ''; - /** - * Secondary IP ranges. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - */ - private $secondary_ip_ranges; - /** - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * - * Generated from protobuf field string status_message = 5; - */ - protected $status_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subnetwork - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * @type string $network - * Network Name. - * Example: projects/my-project/global/networks/my-network - * @type string $ip_cidr_range - * The range of internal addresses that are owned by this subnetwork. - * @type array<\Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $secondary_ip_ranges - * Secondary IP ranges. - * @type string $status_message - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 1; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Subnetwork Name. - * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet - * - * Generated from protobuf field string subnetwork = 1; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Network Name. - * Example: projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 2; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Network Name. - * Example: projects/my-project/global/networks/my-network - * - * Generated from protobuf field string network = 2; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * The range of internal addresses that are owned by this subnetwork. - * - * Generated from protobuf field string ip_cidr_range = 3; - * @return string - */ - public function getIpCidrRange() - { - return $this->ip_cidr_range; - } - - /** - * The range of internal addresses that are owned by this subnetwork. - * - * Generated from protobuf field string ip_cidr_range = 3; - * @param string $var - * @return $this - */ - public function setIpCidrRange($var) - { - GPBUtil::checkString($var, True); - $this->ip_cidr_range = $var; - - return $this; - } - - /** - * Secondary IP ranges. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSecondaryIpRanges() - { - return $this->secondary_ip_ranges; - } - - /** - * Secondary IP ranges. - * - * Generated from protobuf field repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; - * @param array<\Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSecondaryIpRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange::class); - $this->secondary_ip_ranges = $arr; - - return $this; - } - - /** - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * - * Generated from protobuf field string status_message = 5; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * A human readable status message representing the reasons for cases where - * the caller cannot use the secondary ranges under the subnet. For example if - * the secondary_ip_ranges is empty due to a permission issue, an insufficient - * permission message will be given by status_message. - * - * Generated from protobuf field string status_message = 5; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php deleted file mode 100644 index d66bb1a9839e..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange.php +++ /dev/null @@ -1,139 +0,0 @@ -google.container.v1.UsableSubnetworkSecondaryRange - */ -class UsableSubnetworkSecondaryRange extends \Google\Protobuf\Internal\Message -{ - /** - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * - * Generated from protobuf field string range_name = 1; - */ - protected $range_name = ''; - /** - * The range of IP addresses belonging to this subnetwork secondary range. - * - * Generated from protobuf field string ip_cidr_range = 2; - */ - protected $ip_cidr_range = ''; - /** - * This field is to determine the status of the secondary range programmably. - * - * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - */ - protected $status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $range_name - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * @type string $ip_cidr_range - * The range of IP addresses belonging to this subnetwork secondary range. - * @type int $status - * This field is to determine the status of the secondary range programmably. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * - * Generated from protobuf field string range_name = 1; - * @return string - */ - public function getRangeName() - { - return $this->range_name; - } - - /** - * The name associated with this subnetwork secondary range, used when adding - * an alias IP range to a VM instance. - * - * Generated from protobuf field string range_name = 1; - * @param string $var - * @return $this - */ - public function setRangeName($var) - { - GPBUtil::checkString($var, True); - $this->range_name = $var; - - return $this; - } - - /** - * The range of IP addresses belonging to this subnetwork secondary range. - * - * Generated from protobuf field string ip_cidr_range = 2; - * @return string - */ - public function getIpCidrRange() - { - return $this->ip_cidr_range; - } - - /** - * The range of IP addresses belonging to this subnetwork secondary range. - * - * Generated from protobuf field string ip_cidr_range = 2; - * @param string $var - * @return $this - */ - public function setIpCidrRange($var) - { - GPBUtil::checkString($var, True); - $this->ip_cidr_range = $var; - - return $this; - } - - /** - * This field is to determine the status of the secondary range programmably. - * - * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * This field is to determine the status of the secondary range programmably. - * - * Generated from protobuf field .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange\Status::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php deleted file mode 100644 index 6c4d490a1015..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UsableSubnetworkSecondaryRange/Status.php +++ /dev/null @@ -1,83 +0,0 @@ -google.container.v1.UsableSubnetworkSecondaryRange.Status - */ -class Status -{ - /** - * UNKNOWN is the zero value of the Status enum. It's not a valid status. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * UNUSED denotes that this range is unclaimed by any cluster. - * - * Generated from protobuf enum UNUSED = 1; - */ - const UNUSED = 1; - /** - * IN_USE_SERVICE denotes that this range is claimed by cluster(s) for - * services. User-managed services range can be shared between clusters - * within the same subnetwork. - * - * Generated from protobuf enum IN_USE_SERVICE = 2; - */ - const IN_USE_SERVICE = 2; - /** - * IN_USE_SHAREABLE_POD denotes this range was created by the network admin - * and is currently claimed by a cluster for pods. It can only be used by - * other clusters as a pod range. - * - * Generated from protobuf enum IN_USE_SHAREABLE_POD = 3; - */ - const IN_USE_SHAREABLE_POD = 3; - /** - * IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed - * for pods. It cannot be used for other clusters. - * - * Generated from protobuf enum IN_USE_MANAGED_POD = 4; - */ - const IN_USE_MANAGED_POD = 4; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::UNUSED => 'UNUSED', - self::IN_USE_SERVICE => 'IN_USE_SERVICE', - self::IN_USE_SHAREABLE_POD => 'IN_USE_SHAREABLE_POD', - self::IN_USE_MANAGED_POD => 'IN_USE_MANAGED_POD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Container\V1\UsableSubnetworkSecondaryRange_Status::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UserManagedKeysConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UserManagedKeysConfig.php deleted file mode 100644 index 60c2e5353c30..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/UserManagedKeysConfig.php +++ /dev/null @@ -1,354 +0,0 @@ -google.container.v1.UserManagedKeysConfig - */ -class UserManagedKeysConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Certificate Authority Service caPool to use for the cluster CA in this - * cluster. - * - * Generated from protobuf field string cluster_ca = 10 [(.google.api.resource_reference) = { - */ - protected $cluster_ca = ''; - /** - * Resource path of the Certificate Authority Service caPool to use for the - * etcd API CA in this cluster. - * - * Generated from protobuf field string etcd_api_ca = 11 [(.google.api.resource_reference) = { - */ - protected $etcd_api_ca = ''; - /** - * Resource path of the Certificate Authority Service caPool to use for the - * etcd peer CA in this cluster. - * - * Generated from protobuf field string etcd_peer_ca = 12 [(.google.api.resource_reference) = { - */ - protected $etcd_peer_ca = ''; - /** - * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs - * issued by this cluster. - * Format: - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` - * - * Generated from protobuf field repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { - */ - private $service_account_signing_keys; - /** - * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs - * issued by this cluster. - * Format: - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` - * - * Generated from protobuf field repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { - */ - private $service_account_verification_keys; - /** - * The Certificate Authority Service caPool to use for the aggregation CA in - * this cluster. - * - * Generated from protobuf field string aggregation_ca = 15 [(.google.api.resource_reference) = { - */ - protected $aggregation_ca = ''; - /** - * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control - * plane nodes. - * - * Generated from protobuf field string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { - */ - protected $control_plane_disk_encryption_key = ''; - /** - * Resource path of the Cloud KMS cryptoKey to use for encryption of internal - * etcd backups. - * - * Generated from protobuf field string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { - */ - protected $gkeops_etcd_backup_encryption_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cluster_ca - * The Certificate Authority Service caPool to use for the cluster CA in this - * cluster. - * @type string $etcd_api_ca - * Resource path of the Certificate Authority Service caPool to use for the - * etcd API CA in this cluster. - * @type string $etcd_peer_ca - * Resource path of the Certificate Authority Service caPool to use for the - * etcd peer CA in this cluster. - * @type array|\Google\Protobuf\Internal\RepeatedField $service_account_signing_keys - * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs - * issued by this cluster. - * Format: - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` - * @type array|\Google\Protobuf\Internal\RepeatedField $service_account_verification_keys - * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs - * issued by this cluster. - * Format: - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` - * @type string $aggregation_ca - * The Certificate Authority Service caPool to use for the aggregation CA in - * this cluster. - * @type string $control_plane_disk_encryption_key - * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control - * plane nodes. - * @type string $gkeops_etcd_backup_encryption_key - * Resource path of the Cloud KMS cryptoKey to use for encryption of internal - * etcd backups. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The Certificate Authority Service caPool to use for the cluster CA in this - * cluster. - * - * Generated from protobuf field string cluster_ca = 10 [(.google.api.resource_reference) = { - * @return string - */ - public function getClusterCa() - { - return $this->cluster_ca; - } - - /** - * The Certificate Authority Service caPool to use for the cluster CA in this - * cluster. - * - * Generated from protobuf field string cluster_ca = 10 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setClusterCa($var) - { - GPBUtil::checkString($var, True); - $this->cluster_ca = $var; - - return $this; - } - - /** - * Resource path of the Certificate Authority Service caPool to use for the - * etcd API CA in this cluster. - * - * Generated from protobuf field string etcd_api_ca = 11 [(.google.api.resource_reference) = { - * @return string - */ - public function getEtcdApiCa() - { - return $this->etcd_api_ca; - } - - /** - * Resource path of the Certificate Authority Service caPool to use for the - * etcd API CA in this cluster. - * - * Generated from protobuf field string etcd_api_ca = 11 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEtcdApiCa($var) - { - GPBUtil::checkString($var, True); - $this->etcd_api_ca = $var; - - return $this; - } - - /** - * Resource path of the Certificate Authority Service caPool to use for the - * etcd peer CA in this cluster. - * - * Generated from protobuf field string etcd_peer_ca = 12 [(.google.api.resource_reference) = { - * @return string - */ - public function getEtcdPeerCa() - { - return $this->etcd_peer_ca; - } - - /** - * Resource path of the Certificate Authority Service caPool to use for the - * etcd peer CA in this cluster. - * - * Generated from protobuf field string etcd_peer_ca = 12 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEtcdPeerCa($var) - { - GPBUtil::checkString($var, True); - $this->etcd_peer_ca = $var; - - return $this; - } - - /** - * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs - * issued by this cluster. - * Format: - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` - * - * Generated from protobuf field repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceAccountSigningKeys() - { - return $this->service_account_signing_keys; - } - - /** - * The Cloud KMS cryptoKeyVersions to use for signing service account JWTs - * issued by this cluster. - * Format: - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` - * - * Generated from protobuf field repeated string service_account_signing_keys = 13 [(.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceAccountSigningKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->service_account_signing_keys = $arr; - - return $this; - } - - /** - * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs - * issued by this cluster. - * Format: - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` - * - * Generated from protobuf field repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceAccountVerificationKeys() - { - return $this->service_account_verification_keys; - } - - /** - * The Cloud KMS cryptoKeyVersions to use for verifying service account JWTs - * issued by this cluster. - * Format: - * `projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{cryptoKey}/cryptoKeyVersions/{cryptoKeyVersion}` - * - * Generated from protobuf field repeated string service_account_verification_keys = 14 [(.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceAccountVerificationKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->service_account_verification_keys = $arr; - - return $this; - } - - /** - * The Certificate Authority Service caPool to use for the aggregation CA in - * this cluster. - * - * Generated from protobuf field string aggregation_ca = 15 [(.google.api.resource_reference) = { - * @return string - */ - public function getAggregationCa() - { - return $this->aggregation_ca; - } - - /** - * The Certificate Authority Service caPool to use for the aggregation CA in - * this cluster. - * - * Generated from protobuf field string aggregation_ca = 15 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAggregationCa($var) - { - GPBUtil::checkString($var, True); - $this->aggregation_ca = $var; - - return $this; - } - - /** - * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control - * plane nodes. - * - * Generated from protobuf field string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { - * @return string - */ - public function getControlPlaneDiskEncryptionKey() - { - return $this->control_plane_disk_encryption_key; - } - - /** - * The Cloud KMS cryptoKey to use for Confidential Hyperdisk on the control - * plane nodes. - * - * Generated from protobuf field string control_plane_disk_encryption_key = 16 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setControlPlaneDiskEncryptionKey($var) - { - GPBUtil::checkString($var, True); - $this->control_plane_disk_encryption_key = $var; - - return $this; - } - - /** - * Resource path of the Cloud KMS cryptoKey to use for encryption of internal - * etcd backups. - * - * Generated from protobuf field string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { - * @return string - */ - public function getGkeopsEtcdBackupEncryptionKey() - { - return $this->gkeops_etcd_backup_encryption_key; - } - - /** - * Resource path of the Cloud KMS cryptoKey to use for encryption of internal - * etcd backups. - * - * Generated from protobuf field string gkeops_etcd_backup_encryption_key = 17 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setGkeopsEtcdBackupEncryptionKey($var) - { - GPBUtil::checkString($var, True); - $this->gkeops_etcd_backup_encryption_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php deleted file mode 100644 index 2c29d49c252a..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VerticalPodAutoscaling.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.VerticalPodAutoscaling - */ -class VerticalPodAutoscaling extends \Google\Protobuf\Internal\Message -{ - /** - * Enables vertical pod autoscaling. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Enables vertical pod autoscaling. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Enables vertical pod autoscaling. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Enables vertical pod autoscaling. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php deleted file mode 100644 index bc2237dfd651..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/VirtualNIC.php +++ /dev/null @@ -1,67 +0,0 @@ -google.container.v1.VirtualNIC - */ -class VirtualNIC extends \Google\Protobuf\Internal\Message -{ - /** - * Whether gVNIC features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Whether gVNIC features are enabled in the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Whether gVNIC features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Whether gVNIC features are enabled in the node pool. - * - * Generated from protobuf field bool enabled = 1; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php deleted file mode 100644 index 33744a598dae..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.WindowsNodeConfig - */ -class WindowsNodeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * OSVersion specifies the Windows node config to be used on the node - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - */ - protected $os_version = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $os_version - * OSVersion specifies the Windows node config to be used on the node - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * OSVersion specifies the Windows node config to be used on the node - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * @return int - */ - public function getOsVersion() - { - return $this->os_version; - } - - /** - * OSVersion specifies the Windows node config to be used on the node - * - * Generated from protobuf field .google.container.v1.WindowsNodeConfig.OSVersion os_version = 1; - * @param int $var - * @return $this - */ - public function setOsVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\WindowsNodeConfig\OSVersion::class); - $this->os_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php deleted file mode 100644 index 3e27aee4f517..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WindowsNodeConfig/OSVersion.php +++ /dev/null @@ -1,64 +0,0 @@ -google.container.v1.WindowsNodeConfig.OSVersion - */ -class OSVersion -{ - /** - * When OSVersion is not specified - * - * Generated from protobuf enum OS_VERSION_UNSPECIFIED = 0; - */ - const OS_VERSION_UNSPECIFIED = 0; - /** - * LTSC2019 specifies to use LTSC2019 as the Windows Servercore Base Image - * - * Generated from protobuf enum OS_VERSION_LTSC2019 = 1; - */ - const OS_VERSION_LTSC2019 = 1; - /** - * LTSC2022 specifies to use LTSC2022 as the Windows Servercore Base Image - * - * Generated from protobuf enum OS_VERSION_LTSC2022 = 2; - */ - const OS_VERSION_LTSC2022 = 2; - - private static $valueToName = [ - self::OS_VERSION_UNSPECIFIED => 'OS_VERSION_UNSPECIFIED', - self::OS_VERSION_LTSC2019 => 'OS_VERSION_LTSC2019', - self::OS_VERSION_LTSC2022 => 'OS_VERSION_LTSC2022', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OSVersion::class, \Google\Cloud\Container\V1\WindowsNodeConfig_OSVersion::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php deleted file mode 100644 index be6d013232be..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadIdentityConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.container.v1.WorkloadIdentityConfig - */ -class WorkloadIdentityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The workload pool to attach all Kubernetes service accounts to. - * - * Generated from protobuf field string workload_pool = 2; - */ - protected $workload_pool = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $workload_pool - * The workload pool to attach all Kubernetes service accounts to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * The workload pool to attach all Kubernetes service accounts to. - * - * Generated from protobuf field string workload_pool = 2; - * @return string - */ - public function getWorkloadPool() - { - return $this->workload_pool; - } - - /** - * The workload pool to attach all Kubernetes service accounts to. - * - * Generated from protobuf field string workload_pool = 2; - * @param string $var - * @return $this - */ - public function setWorkloadPool($var) - { - GPBUtil::checkString($var, True); - $this->workload_pool = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php deleted file mode 100644 index 1f0ba80a934b..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig.php +++ /dev/null @@ -1,72 +0,0 @@ -google.container.v1.WorkloadMetadataConfig - */ -class WorkloadMetadataConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Mode is the configuration for how to expose metadata to workloads running - * on the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - */ - protected $mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $mode - * Mode is the configuration for how to expose metadata to workloads running - * on the node pool. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * Mode is the configuration for how to expose metadata to workloads running - * on the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * Mode is the configuration for how to expose metadata to workloads running - * on the node pool. - * - * Generated from protobuf field .google.container.v1.WorkloadMetadataConfig.Mode mode = 2; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Container\V1\WorkloadMetadataConfig\Mode::class); - $this->mode = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php deleted file mode 100644 index 60affd9637f5..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadMetadataConfig/Mode.php +++ /dev/null @@ -1,69 +0,0 @@ -google.container.v1.WorkloadMetadataConfig.Mode - */ -class Mode -{ - /** - * Not set. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * Expose all Compute Engine metadata to pods. - * - * Generated from protobuf enum GCE_METADATA = 1; - */ - const GCE_METADATA = 1; - /** - * Run the GKE Metadata Server on this node. The GKE Metadata Server exposes - * a metadata API to workloads that is compatible with the V1 Compute - * Metadata APIs exposed by the Compute Engine and App Engine Metadata - * Servers. This feature can only be enabled if Workload Identity is enabled - * at the cluster level. - * - * Generated from protobuf enum GKE_METADATA = 2; - */ - const GKE_METADATA = 2; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::GCE_METADATA => 'GCE_METADATA', - self::GKE_METADATA => 'GKE_METADATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Container\V1\WorkloadMetadataConfig_Mode::class); - diff --git a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php b/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php deleted file mode 100644 index d00c35e58b5c..000000000000 --- a/owl-bot-staging/Container/v1/proto/src/Google/Cloud/Container/V1/WorkloadPolicyConfig.php +++ /dev/null @@ -1,78 +0,0 @@ -google.container.v1.WorkloadPolicyConfig - */ -class WorkloadPolicyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * If true, workloads can use NET_ADMIN capability. - * - * Generated from protobuf field optional bool allow_net_admin = 1; - */ - protected $allow_net_admin = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $allow_net_admin - * If true, workloads can use NET_ADMIN capability. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Container\V1\ClusterService::initOnce(); - parent::__construct($data); - } - - /** - * If true, workloads can use NET_ADMIN capability. - * - * Generated from protobuf field optional bool allow_net_admin = 1; - * @return bool - */ - public function getAllowNetAdmin() - { - return isset($this->allow_net_admin) ? $this->allow_net_admin : false; - } - - public function hasAllowNetAdmin() - { - return isset($this->allow_net_admin); - } - - public function clearAllowNetAdmin() - { - unset($this->allow_net_admin); - } - - /** - * If true, workloads can use NET_ADMIN capability. - * - * Generated from protobuf field optional bool allow_net_admin = 1; - * @param bool $var - * @return $this - */ - public function setAllowNetAdmin($var) - { - GPBUtil::checkBool($var); - $this->allow_net_admin = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php deleted file mode 100644 index 3a7332bcc124..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/cancel_operation.php +++ /dev/null @@ -1,55 +0,0 @@ -cancelOperation($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CancelOperation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php deleted file mode 100644 index 929cf42dfc00..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/check_autopilot_compatibility.php +++ /dev/null @@ -1,58 +0,0 @@ -checkAutopilotCompatibility($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CheckAutopilotCompatibility_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php deleted file mode 100644 index daba7a5d92c0..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_ip_rotation.php +++ /dev/null @@ -1,57 +0,0 @@ -completeIPRotation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CompleteIPRotation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php deleted file mode 100644 index 86a24849c686..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php +++ /dev/null @@ -1,56 +0,0 @@ -completeNodePoolUpgrade($request); - printf('Call completed successfully.' . PHP_EOL); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CompleteNodePoolUpgrade_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php deleted file mode 100644 index 792f9fd5de79..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_cluster.php +++ /dev/null @@ -1,73 +0,0 @@ -setCluster($cluster); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->createCluster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CreateCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php deleted file mode 100644 index f957fb2a1e84..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/create_node_pool.php +++ /dev/null @@ -1,60 +0,0 @@ -setNodePool($nodePool); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->createNodePool($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_CreateNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php deleted file mode 100644 index dcee905c5fe1..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_cluster.php +++ /dev/null @@ -1,65 +0,0 @@ -deleteCluster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_DeleteCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php deleted file mode 100644 index 07c57bd330d9..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/delete_node_pool.php +++ /dev/null @@ -1,57 +0,0 @@ -deleteNodePool($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_DeleteNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php deleted file mode 100644 index c25939d2a545..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_cluster.php +++ /dev/null @@ -1,57 +0,0 @@ -getCluster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php deleted file mode 100644 index cc6f61b0264a..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_json_web_keys.php +++ /dev/null @@ -1,58 +0,0 @@ -getJSONWebKeys($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetJSONWebKeys_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php deleted file mode 100644 index 8e8e0c6b20db..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_node_pool.php +++ /dev/null @@ -1,57 +0,0 @@ -getNodePool($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetNodePool_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php deleted file mode 100644 index 97228030f3af..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_operation.php +++ /dev/null @@ -1,57 +0,0 @@ -getOperation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetOperation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php deleted file mode 100644 index 8aee5ac8a1e9..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/get_server_config.php +++ /dev/null @@ -1,57 +0,0 @@ -getServerConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_GetServerConfig_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php deleted file mode 100644 index 744c312fbc0c..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_clusters.php +++ /dev/null @@ -1,58 +0,0 @@ -listClusters($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListClusters_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php deleted file mode 100644 index ef5ce762fec4..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_node_pools.php +++ /dev/null @@ -1,57 +0,0 @@ -listNodePools($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListNodePools_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php deleted file mode 100644 index ec8f892990de..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_operations.php +++ /dev/null @@ -1,57 +0,0 @@ -listOperations($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_ListOperations_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php deleted file mode 100644 index 123676616299..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/list_usable_subnetworks.php +++ /dev/null @@ -1,62 +0,0 @@ -listUsableSubnetworks($request); - - /** @var UsableSubnetwork $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 container_v1_generated_ClusterManager_ListUsableSubnetworks_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php deleted file mode 100644 index 60fd5dfb1524..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php +++ /dev/null @@ -1,58 +0,0 @@ -rollbackNodePoolUpgrade($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_RollbackNodePoolUpgrade_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php deleted file mode 100644 index c2a610e4fdc2..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_addons_config.php +++ /dev/null @@ -1,60 +0,0 @@ -setAddonsConfig($addonsConfig); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setAddonsConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetAddonsConfig_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php deleted file mode 100644 index 64b779df0263..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_labels.php +++ /dev/null @@ -1,77 +0,0 @@ -setResourceLabels($resourceLabels) - ->setLabelFingerprint($labelFingerprint); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setLabels($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $labelFingerprint = '[LABEL_FINGERPRINT]'; - - set_labels_sample($labelFingerprint); -} -// [END container_v1_generated_ClusterManager_SetLabels_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php deleted file mode 100644 index 63f3c3c5be5d..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_legacy_abac.php +++ /dev/null @@ -1,70 +0,0 @@ -setEnabled($enabled); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setLegacyAbac($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $enabled = false; - - set_legacy_abac_sample($enabled); -} -// [END container_v1_generated_ClusterManager_SetLegacyAbac_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php deleted file mode 100644 index 61cc473733c8..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_locations.php +++ /dev/null @@ -1,80 +0,0 @@ -setLocations($locations); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setLocations($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $locationsElement = '[LOCATIONS]'; - - set_locations_sample($locationsElement); -} -// [END container_v1_generated_ClusterManager_SetLocations_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php deleted file mode 100644 index ef16b6e056c0..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_logging_service.php +++ /dev/null @@ -1,80 +0,0 @@ -setLoggingService($loggingService); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setLoggingService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $loggingService = '[LOGGING_SERVICE]'; - - set_logging_service_sample($loggingService); -} -// [END container_v1_generated_ClusterManager_SetLoggingService_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php deleted file mode 100644 index 4900bcc9ceda..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_maintenance_policy.php +++ /dev/null @@ -1,82 +0,0 @@ -setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMaintenancePolicy($maintenancePolicy); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setMaintenancePolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - $zone = '[ZONE]'; - $clusterId = '[CLUSTER_ID]'; - - set_maintenance_policy_sample($projectId, $zone, $clusterId); -} -// [END container_v1_generated_ClusterManager_SetMaintenancePolicy_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php deleted file mode 100644 index 942ffe4b3591..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_master_auth.php +++ /dev/null @@ -1,76 +0,0 @@ -setAction($action) - ->setUpdate($update); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setMasterAuth($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $action = Action::UNKNOWN; - - set_master_auth_sample($action); -} -// [END container_v1_generated_ClusterManager_SetMasterAuth_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php deleted file mode 100644 index 53c5072bc77a..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_monitoring_service.php +++ /dev/null @@ -1,80 +0,0 @@ -setMonitoringService($monitoringService); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setMonitoringService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $monitoringService = '[MONITORING_SERVICE]'; - - set_monitoring_service_sample($monitoringService); -} -// [END container_v1_generated_ClusterManager_SetMonitoringService_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php deleted file mode 100644 index 201e0a8b78e7..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_network_policy.php +++ /dev/null @@ -1,60 +0,0 @@ -setNetworkPolicy($networkPolicy); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setNetworkPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetNetworkPolicy_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php deleted file mode 100644 index 5ddc38f258af..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php +++ /dev/null @@ -1,60 +0,0 @@ -setAutoscaling($autoscaling); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setNodePoolAutoscaling($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetNodePoolAutoscaling_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php deleted file mode 100644 index 6697ec611f96..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_management.php +++ /dev/null @@ -1,60 +0,0 @@ -setManagement($management); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setNodePoolManagement($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_SetNodePoolManagement_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php deleted file mode 100644 index a6f3f5e9913a..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/set_node_pool_size.php +++ /dev/null @@ -1,72 +0,0 @@ -setNodeCount($nodeCount); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->setNodePoolSize($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $nodeCount = 0; - - set_node_pool_size_sample($nodeCount); -} -// [END container_v1_generated_ClusterManager_SetNodePoolSize_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php deleted file mode 100644 index fa35440e6b4a..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/start_ip_rotation.php +++ /dev/null @@ -1,57 +0,0 @@ -startIPRotation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_StartIPRotation_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php deleted file mode 100644 index ba1c330760e7..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_cluster.php +++ /dev/null @@ -1,60 +0,0 @@ -setUpdate($update); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->updateCluster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END container_v1_generated_ClusterManager_UpdateCluster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php deleted file mode 100644 index 7c8e440c0254..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_master.php +++ /dev/null @@ -1,79 +0,0 @@ -setMasterVersion($masterVersion); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->updateMaster($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $masterVersion = '[MASTER_VERSION]'; - - update_master_sample($masterVersion); -} -// [END container_v1_generated_ClusterManager_UpdateMaster_sync] diff --git a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php b/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php deleted file mode 100644 index 99e1618edc1c..000000000000 --- a/owl-bot-staging/Container/v1/samples/V1/ClusterManagerClient/update_node_pool.php +++ /dev/null @@ -1,85 +0,0 @@ -setNodeVersion($nodeVersion) - ->setImageType($imageType); - - // Call the API and handle any network failures. - try { - /** @var Operation $response */ - $response = $clusterManagerClient->updateNodePool($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $nodeVersion = '[NODE_VERSION]'; - $imageType = '[IMAGE_TYPE]'; - - update_node_pool_sample($nodeVersion, $imageType); -} -// [END container_v1_generated_ClusterManager_UpdateNodePool_sync] diff --git a/owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php b/owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php deleted file mode 100644 index ac18b45d1566..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/Client/ClusterManagerClient.php +++ /dev/null @@ -1,1249 +0,0 @@ - cancelOperationAsync(CancelOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface checkAutopilotCompatibilityAsync(CheckAutopilotCompatibilityRequest $request, array $optionalArgs = []) - * @method PromiseInterface completeIPRotationAsync(CompleteIPRotationRequest $request, array $optionalArgs = []) - * @method PromiseInterface completeNodePoolUpgradeAsync(CompleteNodePoolUpgradeRequest $request, array $optionalArgs = []) - * @method PromiseInterface createClusterAsync(CreateClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface createNodePoolAsync(CreateNodePoolRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteClusterAsync(DeleteClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteNodePoolAsync(DeleteNodePoolRequest $request, array $optionalArgs = []) - * @method PromiseInterface getClusterAsync(GetClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJSONWebKeysAsync(GetJSONWebKeysRequest $request, array $optionalArgs = []) - * @method PromiseInterface getNodePoolAsync(GetNodePoolRequest $request, array $optionalArgs = []) - * @method PromiseInterface getOperationAsync(GetOperationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServerConfigAsync(GetServerConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface listClustersAsync(ListClustersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNodePoolsAsync(ListNodePoolsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listOperationsAsync(ListOperationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listUsableSubnetworksAsync(ListUsableSubnetworksRequest $request, array $optionalArgs = []) - * @method PromiseInterface rollbackNodePoolUpgradeAsync(RollbackNodePoolUpgradeRequest $request, array $optionalArgs = []) - * @method PromiseInterface setAddonsConfigAsync(SetAddonsConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface setLabelsAsync(SetLabelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface setLegacyAbacAsync(SetLegacyAbacRequest $request, array $optionalArgs = []) - * @method PromiseInterface setLocationsAsync(SetLocationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface setLoggingServiceAsync(SetLoggingServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface setMaintenancePolicyAsync(SetMaintenancePolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setMasterAuthAsync(SetMasterAuthRequest $request, array $optionalArgs = []) - * @method PromiseInterface setMonitoringServiceAsync(SetMonitoringServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface setNetworkPolicyAsync(SetNetworkPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface setNodePoolAutoscalingAsync(SetNodePoolAutoscalingRequest $request, array $optionalArgs = []) - * @method PromiseInterface setNodePoolManagementAsync(SetNodePoolManagementRequest $request, array $optionalArgs = []) - * @method PromiseInterface setNodePoolSizeAsync(SetNodePoolSizeRequest $request, array $optionalArgs = []) - * @method PromiseInterface startIPRotationAsync(StartIPRotationRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateClusterAsync(UpdateClusterRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMasterAsync(UpdateMasterRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateNodePoolAsync(UpdateNodePoolRequest $request, array $optionalArgs = []) - */ -final class ClusterManagerClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.container.v1.ClusterManager'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'container.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'container.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/cluster_manager_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/cluster_manager_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/cluster_manager_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/cluster_manager_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a ca_pool - * resource. - * - * @param string $project - * @param string $location - * @param string $caPool - * - * @return string The formatted ca_pool resource. - */ - public static function caPoolName(string $project, string $location, string $caPool): string - { - return self::getPathTemplate('caPool')->render([ - 'project' => $project, - 'location' => $location, - 'ca_pool' => $caPool, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * crypto_key_version resource. - * - * @param string $project - * @param string $location - * @param string $keyRing - * @param string $cryptoKey - * @param string $cryptoKeyVersion - * - * @return string The formatted crypto_key_version resource. - */ - public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string - { - return self::getPathTemplate('cryptoKeyVersion')->render([ - 'project' => $project, - 'location' => $location, - 'key_ring' => $keyRing, - 'crypto_key' => $cryptoKey, - 'crypto_key_version' => $cryptoKeyVersion, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a topic - * resource. - * - * @param string $project - * @param string $topic - * - * @return string The formatted topic resource. - */ - public static function topicName(string $project, string $topic): string - { - return self::getPathTemplate('topic')->render([ - 'project' => $project, - 'topic' => $topic, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - caPool: projects/{project}/locations/{location}/caPools/{ca_pool} - * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} - * - topic: projects/{project}/topics/{topic} - * - * 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 'container.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); - } - - /** - * Cancels the specified operation. - * - * The async variant is {@see ClusterManagerClient::cancelOperationAsync()} . - * - * @example samples/V1/ClusterManagerClient/cancel_operation.php - * - * @param CancelOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 cancelOperation(CancelOperationRequest $request, array $callOptions = []): void - { - $this->startApiCall('CancelOperation', $request, $callOptions)->wait(); - } - - /** - * Checks the cluster compatibility with Autopilot mode, and returns a list of - * compatibility issues. - * - * The async variant is - * {@see ClusterManagerClient::checkAutopilotCompatibilityAsync()} . - * - * @example samples/V1/ClusterManagerClient/check_autopilot_compatibility.php - * - * @param CheckAutopilotCompatibilityRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CheckAutopilotCompatibilityResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function checkAutopilotCompatibility(CheckAutopilotCompatibilityRequest $request, array $callOptions = []): CheckAutopilotCompatibilityResponse - { - return $this->startApiCall('CheckAutopilotCompatibility', $request, $callOptions)->wait(); - } - - /** - * Completes master IP rotation. - * - * The async variant is {@see ClusterManagerClient::completeIPRotationAsync()} . - * - * @example samples/V1/ClusterManagerClient/complete_ip_rotation.php - * - * @param CompleteIPRotationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function completeIPRotation(CompleteIPRotationRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('CompleteIPRotation', $request, $callOptions)->wait(); - } - - /** - * CompleteNodePoolUpgrade will signal an on-going node pool upgrade to - * complete. - * - * The async variant is {@see ClusterManagerClient::completeNodePoolUpgradeAsync()} - * . - * - * @example samples/V1/ClusterManagerClient/complete_node_pool_upgrade.php - * - * @param CompleteNodePoolUpgradeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 completeNodePoolUpgrade(CompleteNodePoolUpgradeRequest $request, array $callOptions = []): void - { - $this->startApiCall('CompleteNodePoolUpgrade', $request, $callOptions)->wait(); - } - - /** - * Creates a cluster, consisting of the specified number and type of Google - * Compute Engine instances. - * - * By default, the cluster is created in the project's - * [default - * network](https://cloud.google.com/compute/docs/networks-and-firewalls#networks). - * - * One firewall is added for the cluster. After cluster creation, - * the Kubelet creates routes for each node to allow the containers - * on that node to communicate with all other instances in the - * cluster. - * - * Finally, an entry is added to the project's global metadata indicating - * which CIDR range the cluster is using. - * - * The async variant is {@see ClusterManagerClient::createClusterAsync()} . - * - * @example samples/V1/ClusterManagerClient/create_cluster.php - * - * @param CreateClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function createCluster(CreateClusterRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('CreateCluster', $request, $callOptions)->wait(); - } - - /** - * Creates a node pool for a cluster. - * - * The async variant is {@see ClusterManagerClient::createNodePoolAsync()} . - * - * @example samples/V1/ClusterManagerClient/create_node_pool.php - * - * @param CreateNodePoolRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function createNodePool(CreateNodePoolRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('CreateNodePool', $request, $callOptions)->wait(); - } - - /** - * Deletes the cluster, including the Kubernetes endpoint and all worker - * nodes. - * - * Firewalls and routes that were configured during cluster creation - * are also deleted. - * - * Other Google Compute Engine resources that might be in use by the cluster, - * such as load balancer resources, are not deleted if they weren't present - * when the cluster was initially created. - * - * The async variant is {@see ClusterManagerClient::deleteClusterAsync()} . - * - * @example samples/V1/ClusterManagerClient/delete_cluster.php - * - * @param DeleteClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteCluster(DeleteClusterRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('DeleteCluster', $request, $callOptions)->wait(); - } - - /** - * Deletes a node pool from a cluster. - * - * The async variant is {@see ClusterManagerClient::deleteNodePoolAsync()} . - * - * @example samples/V1/ClusterManagerClient/delete_node_pool.php - * - * @param DeleteNodePoolRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteNodePool(DeleteNodePoolRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('DeleteNodePool', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a specific cluster. - * - * The async variant is {@see ClusterManagerClient::getClusterAsync()} . - * - * @example samples/V1/ClusterManagerClient/get_cluster.php - * - * @param GetClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Cluster - * - * @throws ApiException Thrown if the API call fails. - */ - public function getCluster(GetClusterRequest $request, array $callOptions = []): Cluster - { - return $this->startApiCall('GetCluster', $request, $callOptions)->wait(); - } - - /** - * Gets the public component of the cluster signing keys in - * JSON Web Key format. - * - * The async variant is {@see ClusterManagerClient::getJSONWebKeysAsync()} . - * - * @example samples/V1/ClusterManagerClient/get_json_web_keys.php - * - * @param GetJSONWebKeysRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GetJSONWebKeysResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function getJSONWebKeys(GetJSONWebKeysRequest $request, array $callOptions = []): GetJSONWebKeysResponse - { - return $this->startApiCall('GetJSONWebKeys', $request, $callOptions)->wait(); - } - - /** - * Retrieves the requested node pool. - * - * The async variant is {@see ClusterManagerClient::getNodePoolAsync()} . - * - * @example samples/V1/ClusterManagerClient/get_node_pool.php - * - * @param GetNodePoolRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return NodePool - * - * @throws ApiException Thrown if the API call fails. - */ - public function getNodePool(GetNodePoolRequest $request, array $callOptions = []): NodePool - { - return $this->startApiCall('GetNodePool', $request, $callOptions)->wait(); - } - - /** - * Gets the specified operation. - * - * The async variant is {@see ClusterManagerClient::getOperationAsync()} . - * - * @example samples/V1/ClusterManagerClient/get_operation.php - * - * @param GetOperationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getOperation(GetOperationRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('GetOperation', $request, $callOptions)->wait(); - } - - /** - * Returns configuration info about the Google Kubernetes Engine service. - * - * The async variant is {@see ClusterManagerClient::getServerConfigAsync()} . - * - * @example samples/V1/ClusterManagerClient/get_server_config.php - * - * @param GetServerConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ServerConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getServerConfig(GetServerConfigRequest $request, array $callOptions = []): ServerConfig - { - return $this->startApiCall('GetServerConfig', $request, $callOptions)->wait(); - } - - /** - * Lists all clusters owned by a project in either the specified zone or all - * zones. - * - * The async variant is {@see ClusterManagerClient::listClustersAsync()} . - * - * @example samples/V1/ClusterManagerClient/list_clusters.php - * - * @param ListClustersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListClustersResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listClusters(ListClustersRequest $request, array $callOptions = []): ListClustersResponse - { - return $this->startApiCall('ListClusters', $request, $callOptions)->wait(); - } - - /** - * Lists the node pools for a cluster. - * - * The async variant is {@see ClusterManagerClient::listNodePoolsAsync()} . - * - * @example samples/V1/ClusterManagerClient/list_node_pools.php - * - * @param ListNodePoolsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListNodePoolsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listNodePools(ListNodePoolsRequest $request, array $callOptions = []): ListNodePoolsResponse - { - return $this->startApiCall('ListNodePools', $request, $callOptions)->wait(); - } - - /** - * Lists all operations in a project in a specific zone or all zones. - * - * The async variant is {@see ClusterManagerClient::listOperationsAsync()} . - * - * @example samples/V1/ClusterManagerClient/list_operations.php - * - * @param ListOperationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListOperationsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listOperations(ListOperationsRequest $request, array $callOptions = []): ListOperationsResponse - { - return $this->startApiCall('ListOperations', $request, $callOptions)->wait(); - } - - /** - * Lists subnetworks that are usable for creating clusters in a project. - * - * The async variant is {@see ClusterManagerClient::listUsableSubnetworksAsync()} . - * - * @example samples/V1/ClusterManagerClient/list_usable_subnetworks.php - * - * @param ListUsableSubnetworksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listUsableSubnetworks(ListUsableSubnetworksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListUsableSubnetworks', $request, $callOptions); - } - - /** - * Rolls back a previously Aborted or Failed NodePool upgrade. - * This makes no changes if the last upgrade successfully completed. - * - * The async variant is {@see ClusterManagerClient::rollbackNodePoolUpgradeAsync()} - * . - * - * @example samples/V1/ClusterManagerClient/rollback_node_pool_upgrade.php - * - * @param RollbackNodePoolUpgradeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('RollbackNodePoolUpgrade', $request, $callOptions)->wait(); - } - - /** - * Sets the addons for a specific cluster. - * - * The async variant is {@see ClusterManagerClient::setAddonsConfigAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_addons_config.php - * - * @param SetAddonsConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setAddonsConfig(SetAddonsConfigRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetAddonsConfig', $request, $callOptions)->wait(); - } - - /** - * Sets labels on a cluster. - * - * The async variant is {@see ClusterManagerClient::setLabelsAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_labels.php - * - * @param SetLabelsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setLabels(SetLabelsRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetLabels', $request, $callOptions)->wait(); - } - - /** - * Enables or disables the ABAC authorization mechanism on a cluster. - * - * The async variant is {@see ClusterManagerClient::setLegacyAbacAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_legacy_abac.php - * - * @param SetLegacyAbacRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setLegacyAbac(SetLegacyAbacRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetLegacyAbac', $request, $callOptions)->wait(); - } - - /** - * Sets the locations for a specific cluster. - * Deprecated. Use - * [projects.locations.clusters.update](https://cloud.google.com/kubernetes-engine/docs/reference/rest/v1/projects.locations.clusters/update) - * instead. - * - * The async variant is {@see ClusterManagerClient::setLocationsAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_locations.php - * - * @param SetLocationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - * - * @deprecated This method will be removed in the next major version update. - */ - public function setLocations(SetLocationsRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetLocations', $request, $callOptions)->wait(); - } - - /** - * Sets the logging service for a specific cluster. - * - * The async variant is {@see ClusterManagerClient::setLoggingServiceAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_logging_service.php - * - * @param SetLoggingServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setLoggingService(SetLoggingServiceRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetLoggingService', $request, $callOptions)->wait(); - } - - /** - * Sets the maintenance policy for a cluster. - * - * The async variant is {@see ClusterManagerClient::setMaintenancePolicyAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_maintenance_policy.php - * - * @param SetMaintenancePolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setMaintenancePolicy(SetMaintenancePolicyRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetMaintenancePolicy', $request, $callOptions)->wait(); - } - - /** - * Sets master auth materials. Currently supports changing the admin password - * or a specific cluster, either via password generation or explicitly setting - * the password. - * - * The async variant is {@see ClusterManagerClient::setMasterAuthAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_master_auth.php - * - * @param SetMasterAuthRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setMasterAuth(SetMasterAuthRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetMasterAuth', $request, $callOptions)->wait(); - } - - /** - * Sets the monitoring service for a specific cluster. - * - * The async variant is {@see ClusterManagerClient::setMonitoringServiceAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_monitoring_service.php - * - * @param SetMonitoringServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setMonitoringService(SetMonitoringServiceRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetMonitoringService', $request, $callOptions)->wait(); - } - - /** - * Enables or disables Network Policy for a cluster. - * - * The async variant is {@see ClusterManagerClient::setNetworkPolicyAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_network_policy.php - * - * @param SetNetworkPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setNetworkPolicy(SetNetworkPolicyRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetNetworkPolicy', $request, $callOptions)->wait(); - } - - /** - * Sets the autoscaling settings for the specified node pool. - * - * The async variant is {@see ClusterManagerClient::setNodePoolAutoscalingAsync()} - * . - * - * @example samples/V1/ClusterManagerClient/set_node_pool_autoscaling.php - * - * @param SetNodePoolAutoscalingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setNodePoolAutoscaling(SetNodePoolAutoscalingRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetNodePoolAutoscaling', $request, $callOptions)->wait(); - } - - /** - * Sets the NodeManagement options for a node pool. - * - * The async variant is {@see ClusterManagerClient::setNodePoolManagementAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_node_pool_management.php - * - * @param SetNodePoolManagementRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setNodePoolManagement(SetNodePoolManagementRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetNodePoolManagement', $request, $callOptions)->wait(); - } - - /** - * Sets the size for a specific node pool. The new size will be used for all - * replicas, including future replicas created by modifying - * [NodePool.locations][google.container.v1.NodePool.locations]. - * - * The async variant is {@see ClusterManagerClient::setNodePoolSizeAsync()} . - * - * @example samples/V1/ClusterManagerClient/set_node_pool_size.php - * - * @param SetNodePoolSizeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function setNodePoolSize(SetNodePoolSizeRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('SetNodePoolSize', $request, $callOptions)->wait(); - } - - /** - * Starts master IP rotation. - * - * The async variant is {@see ClusterManagerClient::startIPRotationAsync()} . - * - * @example samples/V1/ClusterManagerClient/start_ip_rotation.php - * - * @param StartIPRotationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function startIPRotation(StartIPRotationRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('StartIPRotation', $request, $callOptions)->wait(); - } - - /** - * Updates the settings of a specific cluster. - * - * The async variant is {@see ClusterManagerClient::updateClusterAsync()} . - * - * @example samples/V1/ClusterManagerClient/update_cluster.php - * - * @param UpdateClusterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateCluster(UpdateClusterRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('UpdateCluster', $request, $callOptions)->wait(); - } - - /** - * Updates the master for a specific cluster. - * - * The async variant is {@see ClusterManagerClient::updateMasterAsync()} . - * - * @example samples/V1/ClusterManagerClient/update_master.php - * - * @param UpdateMasterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateMaster(UpdateMasterRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('UpdateMaster', $request, $callOptions)->wait(); - } - - /** - * Updates the version and/or image type for the specified node pool. - * - * The async variant is {@see ClusterManagerClient::updateNodePoolAsync()} . - * - * @example samples/V1/ClusterManagerClient/update_node_pool.php - * - * @param UpdateNodePoolRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Operation - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateNodePool(UpdateNodePoolRequest $request, array $callOptions = []): Operation - { - return $this->startApiCall('UpdateNodePool', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json deleted file mode 100644 index b40efd84195c..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,188 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.container.v1", - "libraryPackage": "Google\\Cloud\\Container\\V1", - "services": { - "ClusterManager": { - "clients": { - "grpc": { - "libraryClient": "ClusterManagerGapicClient", - "rpcs": { - "CancelOperation": { - "methods": [ - "cancelOperation" - ] - }, - "CheckAutopilotCompatibility": { - "methods": [ - "checkAutopilotCompatibility" - ] - }, - "CompleteIPRotation": { - "methods": [ - "completeIPRotation" - ] - }, - "CompleteNodePoolUpgrade": { - "methods": [ - "completeNodePoolUpgrade" - ] - }, - "CreateCluster": { - "methods": [ - "createCluster" - ] - }, - "CreateNodePool": { - "methods": [ - "createNodePool" - ] - }, - "DeleteCluster": { - "methods": [ - "deleteCluster" - ] - }, - "DeleteNodePool": { - "methods": [ - "deleteNodePool" - ] - }, - "GetCluster": { - "methods": [ - "getCluster" - ] - }, - "GetJSONWebKeys": { - "methods": [ - "getJSONWebKeys" - ] - }, - "GetNodePool": { - "methods": [ - "getNodePool" - ] - }, - "GetOperation": { - "methods": [ - "getOperation" - ] - }, - "GetServerConfig": { - "methods": [ - "getServerConfig" - ] - }, - "ListClusters": { - "methods": [ - "listClusters" - ] - }, - "ListNodePools": { - "methods": [ - "listNodePools" - ] - }, - "ListOperations": { - "methods": [ - "listOperations" - ] - }, - "ListUsableSubnetworks": { - "methods": [ - "listUsableSubnetworks" - ] - }, - "RollbackNodePoolUpgrade": { - "methods": [ - "rollbackNodePoolUpgrade" - ] - }, - "SetAddonsConfig": { - "methods": [ - "setAddonsConfig" - ] - }, - "SetLabels": { - "methods": [ - "setLabels" - ] - }, - "SetLegacyAbac": { - "methods": [ - "setLegacyAbac" - ] - }, - "SetLocations": { - "methods": [ - "setLocations" - ] - }, - "SetLoggingService": { - "methods": [ - "setLoggingService" - ] - }, - "SetMaintenancePolicy": { - "methods": [ - "setMaintenancePolicy" - ] - }, - "SetMasterAuth": { - "methods": [ - "setMasterAuth" - ] - }, - "SetMonitoringService": { - "methods": [ - "setMonitoringService" - ] - }, - "SetNetworkPolicy": { - "methods": [ - "setNetworkPolicy" - ] - }, - "SetNodePoolAutoscaling": { - "methods": [ - "setNodePoolAutoscaling" - ] - }, - "SetNodePoolManagement": { - "methods": [ - "setNodePoolManagement" - ] - }, - "SetNodePoolSize": { - "methods": [ - "setNodePoolSize" - ] - }, - "StartIPRotation": { - "methods": [ - "startIPRotation" - ] - }, - "UpdateCluster": { - "methods": [ - "updateCluster" - ] - }, - "UpdateMaster": { - "methods": [ - "updateMaster" - ] - }, - "UpdateNodePool": { - "methods": [ - "updateNodePool" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json deleted file mode 100644 index 12436c70b15c..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_client_config.json +++ /dev/null @@ -1,215 +0,0 @@ -{ - "interfaces": { - "google.container.v1.ClusterManager": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 20000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 20000, - "total_timeout_millis": 20000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 45000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 45000, - "total_timeout_millis": 45000 - } - }, - "methods": { - "CancelOperation": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CheckAutopilotCompatibility": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CompleteIPRotation": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CompleteNodePoolUpgrade": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateCluster": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateNodePool": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteCluster": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteNodePool": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetCluster": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetJSONWebKeys": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetNodePool": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetOperation": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetServerConfig": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListClusters": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListNodePools": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListOperations": { - "timeout_millis": 20000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListUsableSubnetworks": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RollbackNodePoolUpgrade": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetAddonsConfig": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLabels": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLegacyAbac": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLocations": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetLoggingService": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetMaintenancePolicy": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetMasterAuth": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetMonitoringService": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNetworkPolicy": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNodePoolAutoscaling": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNodePoolManagement": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SetNodePoolSize": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "StartIPRotation": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateCluster": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateMaster": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateNodePool": { - "timeout_millis": 45000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php deleted file mode 100644 index 3d5643144725..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_descriptor_config.php +++ /dev/null @@ -1,1007 +0,0 @@ - [ - 'google.container.v1.ClusterManager' => [ - 'CancelOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'operation_id', - 'fieldAccessors' => [ - 'getOperationId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CheckAutopilotCompatibility' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\CheckAutopilotCompatibilityResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CompleteIPRotation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CompleteNodePoolUpgrade' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateNodePool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteNodePool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Cluster', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetJSONWebKeys' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\GetJSONWebKeysResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetNodePool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\NodePool', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'operation_id', - 'fieldAccessors' => [ - 'getOperationId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetServerConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\ServerConfig', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListClusters' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\ListClustersResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListNodePools' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\ListNodePoolsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListOperations' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\ListOperationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListUsableSubnetworks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSubnetworks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Container\V1\ListUsableSubnetworksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RollbackNodePoolUpgrade' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetAddonsConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetLabels' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetLegacyAbac' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetLocations' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetLoggingService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetMaintenancePolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetMasterAuth' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetMonitoringService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetNetworkPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetNodePoolAutoscaling' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetNodePoolManagement' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'SetNodePoolSize' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'StartIPRotation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateCluster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateMaster' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateNodePool' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Container\V1\Operation', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'zone', - 'fieldAccessors' => [ - 'getZone', - ], - ], - [ - 'keyName' => 'cluster_id', - 'fieldAccessors' => [ - 'getClusterId', - ], - ], - [ - 'keyName' => 'node_pool_id', - 'fieldAccessors' => [ - 'getNodePoolId', - ], - ], - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'caPool' => 'projects/{project}/locations/{location}/caPools/{ca_pool}', - 'cryptoKeyVersion' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}', - 'topic' => 'projects/{project}/topics/{topic}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php b/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php deleted file mode 100644 index 378a10f34ef5..000000000000 --- a/owl-bot-staging/Container/v1/src/V1/resources/cluster_manager_rest_client_config.php +++ /dev/null @@ -1,1091 +0,0 @@ - [ - 'google.container.v1.ClusterManager' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'operation_id' => [ - 'getters' => [ - 'getOperationId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'CheckAutopilotCompatibility' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:checkAutopilotCompatibility', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CompleteIPRotation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:completeIpRotation', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:completeIpRotation', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'CompleteNodePoolUpgrade' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:completeUpgrade', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateCluster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'CreateNodePool' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/nodePools', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'DeleteCluster' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'DeleteNodePool' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetCluster' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetJSONWebKeys' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/jwks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetNodePool' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'operation_id' => [ - 'getters' => [ - 'getOperationId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'GetServerConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/serverConfig', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/serverconfig', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListClusters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/clusters', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListNodePools' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/clusters/*}/nodePools', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/operations', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'ListUsableSubnetworks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*}/aggregated/usableSubnetworks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RollbackNodePoolUpgrade' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}:rollback', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetAddonsConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setAddons', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/addons', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLabels' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setResourceLabels', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/resourceLabels', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLegacyAbac' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLegacyAbac', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/legacyAbac', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLocations' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLocations', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/locations', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetLoggingService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setLogging', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/logging', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetMaintenancePolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMaintenancePolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMaintenancePolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetMasterAuth' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setMasterAuth', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetMonitoringService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setMonitoring', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/monitoring', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNetworkPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:setNetworkPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNodePoolAutoscaling' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/autoscaling', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNodePoolManagement' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setManagement', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setManagement', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'SetNodePoolSize' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setSize', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/setSize', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'StartIPRotation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}:startIpRotation', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'UpdateCluster' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'put', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'UpdateMaster' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*}:updateMaster', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/master', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - 'UpdateNodePool' => [ - 'method' => 'put', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}/update', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'cluster_id' => [ - 'getters' => [ - 'getClusterId', - ], - ], - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - 'node_pool_id' => [ - 'getters' => [ - 'getNodePoolId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'zone' => [ - 'getters' => [ - 'getZone', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php b/owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php deleted file mode 100644 index 2ab90b175f24..000000000000 --- a/owl-bot-staging/Container/v1/tests/Unit/V1/Client/ClusterManagerClientTest.php +++ /dev/null @@ -1,2648 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ClusterManagerClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ClusterManagerClient($options); - } - - /** @test */ - public function cancelOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $request = new CancelOperationRequest(); - $gapicClient->cancelOperation($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CancelOperation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 CancelOperationRequest(); - try { - $gapicClient->cancelOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkAutopilotCompatibilityTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $summary = 'summary-1857640538'; - $expectedResponse = new CheckAutopilotCompatibilityResponse(); - $expectedResponse->setSummary($summary); - $transport->addResponse($expectedResponse); - $request = new CheckAutopilotCompatibilityRequest(); - $response = $gapicClient->checkAutopilotCompatibility($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CheckAutopilotCompatibility', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkAutopilotCompatibilityExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 CheckAutopilotCompatibilityRequest(); - try { - $gapicClient->checkAutopilotCompatibility($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeIPRotationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new CompleteIPRotationRequest(); - $response = $gapicClient->completeIPRotation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CompleteIPRotation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeIPRotationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 CompleteIPRotationRequest(); - try { - $gapicClient->completeIPRotation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeNodePoolUpgradeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $request = new CompleteNodePoolUpgradeRequest(); - $gapicClient->completeNodePoolUpgrade($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CompleteNodePoolUpgrade', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeNodePoolUpgradeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 CompleteNodePoolUpgradeRequest(); - try { - $gapicClient->completeNodePoolUpgrade($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $cluster = new Cluster(); - $request = (new CreateClusterRequest()) - ->setCluster($cluster); - $response = $gapicClient->createCluster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CreateCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getCluster(); - $this->assertProtobufEquals($cluster, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $cluster = new Cluster(); - $request = (new CreateClusterRequest()) - ->setCluster($cluster); - try { - $gapicClient->createCluster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodePool = new NodePool(); - $request = (new CreateNodePoolRequest()) - ->setNodePool($nodePool); - $response = $gapicClient->createNodePool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CreateNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getNodePool(); - $this->assertProtobufEquals($nodePool, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodePool = new NodePool(); - $request = (new CreateNodePoolRequest()) - ->setNodePool($nodePool); - try { - $gapicClient->createNodePool($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new DeleteClusterRequest(); - $response = $gapicClient->deleteCluster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/DeleteCluster', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 DeleteClusterRequest(); - try { - $gapicClient->deleteCluster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new DeleteNodePoolRequest(); - $response = $gapicClient->deleteNodePool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/DeleteNodePool', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 DeleteNodePoolRequest(); - try { - $gapicClient->deleteNodePool($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $initialNodeCount = 1682564205; - $loggingService = 'loggingService-1700501035'; - $monitoringService = 'monitoringService1469270462'; - $network = 'network1843485230'; - $clusterIpv4Cidr = 'clusterIpv4Cidr-141875831'; - $subnetwork = 'subnetwork-1302785042'; - $enableKubernetesAlpha = false; - $labelFingerprint = 'labelFingerprint714995737'; - $selfLink = 'selfLink-1691268851'; - $zone2 = 'zone2-696322977'; - $endpoint = 'endpoint1741102485'; - $initialClusterVersion = 'initialClusterVersion-276373352'; - $currentMasterVersion = 'currentMasterVersion-920953983'; - $currentNodeVersion = 'currentNodeVersion-407476063'; - $createTime = 'createTime-493574096'; - $statusMessage = 'statusMessage-239442758'; - $nodeIpv4CidrSize = 1181176815; - $servicesIpv4Cidr = 'servicesIpv4Cidr1966438125'; - $currentNodeCount = 178977560; - $expireTime = 'expireTime-96179731'; - $location = 'location1901043637'; - $enableTpu = false; - $tpuIpv4CidrBlock = 'tpuIpv4CidrBlock1137906646'; - $id = 'id3355'; - $etag = 'etag3123477'; - $satisfiesPzs = false; - $satisfiesPzi = false; - $expectedResponse = new Cluster(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setInitialNodeCount($initialNodeCount); - $expectedResponse->setLoggingService($loggingService); - $expectedResponse->setMonitoringService($monitoringService); - $expectedResponse->setNetwork($network); - $expectedResponse->setClusterIpv4Cidr($clusterIpv4Cidr); - $expectedResponse->setSubnetwork($subnetwork); - $expectedResponse->setEnableKubernetesAlpha($enableKubernetesAlpha); - $expectedResponse->setLabelFingerprint($labelFingerprint); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setZone($zone2); - $expectedResponse->setEndpoint($endpoint); - $expectedResponse->setInitialClusterVersion($initialClusterVersion); - $expectedResponse->setCurrentMasterVersion($currentMasterVersion); - $expectedResponse->setCurrentNodeVersion($currentNodeVersion); - $expectedResponse->setCreateTime($createTime); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setNodeIpv4CidrSize($nodeIpv4CidrSize); - $expectedResponse->setServicesIpv4Cidr($servicesIpv4Cidr); - $expectedResponse->setCurrentNodeCount($currentNodeCount); - $expectedResponse->setExpireTime($expireTime); - $expectedResponse->setLocation($location); - $expectedResponse->setEnableTpu($enableTpu); - $expectedResponse->setTpuIpv4CidrBlock($tpuIpv4CidrBlock); - $expectedResponse->setId($id); - $expectedResponse->setEtag($etag); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $transport->addResponse($expectedResponse); - $request = new GetClusterRequest(); - $response = $gapicClient->getCluster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetCluster', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new GetClusterRequest(); - try { - $gapicClient->getCluster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJSONWebKeysTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GetJSONWebKeysResponse(); - $transport->addResponse($expectedResponse); - $request = new GetJSONWebKeysRequest(); - $response = $gapicClient->getJSONWebKeys($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetJSONWebKeys', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJSONWebKeysExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetJSONWebKeysRequest(); - try { - $gapicClient->getJSONWebKeys($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $initialNodeCount = 1682564205; - $selfLink = 'selfLink-1691268851'; - $version = 'version351608024'; - $statusMessage = 'statusMessage-239442758'; - $podIpv4CidrSize = 1098768716; - $etag = 'etag3123477'; - $expectedResponse = new NodePool(); - $expectedResponse->setName($name2); - $expectedResponse->setInitialNodeCount($initialNodeCount); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setVersion($version); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setPodIpv4CidrSize($podIpv4CidrSize); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - $request = new GetNodePoolRequest(); - $response = $gapicClient->getNodePool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetNodePool', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetNodePoolRequest(); - try { - $gapicClient->getNodePool($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new \Google\Cloud\Container\V1\GetOperationRequest(); - $response = $gapicClient->getOperation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetOperation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getOperationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 \Google\Cloud\Container\V1\GetOperationRequest(); - try { - $gapicClient->getOperation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServerConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $defaultClusterVersion = 'defaultClusterVersion111003029'; - $defaultImageType = 'defaultImageType-918225828'; - $expectedResponse = new ServerConfig(); - $expectedResponse->setDefaultClusterVersion($defaultClusterVersion); - $expectedResponse->setDefaultImageType($defaultImageType); - $transport->addResponse($expectedResponse); - $request = new GetServerConfigRequest(); - $response = $gapicClient->getServerConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/GetServerConfig', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServerConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetServerConfigRequest(); - try { - $gapicClient->getServerConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListClustersResponse(); - $transport->addResponse($expectedResponse); - $request = new ListClustersRequest(); - $response = $gapicClient->listClusters($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListClusters', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listClustersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - $request = new ListClustersRequest(); - try { - $gapicClient->listClusters($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNodePoolsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListNodePoolsResponse(); - $transport->addResponse($expectedResponse); - $request = new ListNodePoolsRequest(); - $response = $gapicClient->listNodePools($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListNodePools', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNodePoolsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 ListNodePoolsRequest(); - try { - $gapicClient->listNodePools($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListOperationsResponse(); - $transport->addResponse($expectedResponse); - $request = new ListOperationsRequest(); - $response = $gapicClient->listOperations($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListOperations', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listOperationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 ListOperationsRequest(); - try { - $gapicClient->listOperations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listUsableSubnetworksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $subnetworksElement = new UsableSubnetwork(); - $subnetworks = [ - $subnetworksElement, - ]; - $expectedResponse = new ListUsableSubnetworksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSubnetworks($subnetworks); - $transport->addResponse($expectedResponse); - $request = new ListUsableSubnetworksRequest(); - $response = $gapicClient->listUsableSubnetworks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSubnetworks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/ListUsableSubnetworks', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listUsableSubnetworksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 ListUsableSubnetworksRequest(); - try { - $gapicClient->listUsableSubnetworks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackNodePoolUpgradeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new RollbackNodePoolUpgradeRequest(); - $response = $gapicClient->rollbackNodePoolUpgrade($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/RollbackNodePoolUpgrade', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackNodePoolUpgradeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 RollbackNodePoolUpgradeRequest(); - try { - $gapicClient->rollbackNodePoolUpgrade($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAddonsConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $addonsConfig = new AddonsConfig(); - $request = (new SetAddonsConfigRequest()) - ->setAddonsConfig($addonsConfig); - $response = $gapicClient->setAddonsConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetAddonsConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getAddonsConfig(); - $this->assertProtobufEquals($addonsConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setAddonsConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $addonsConfig = new AddonsConfig(); - $request = (new SetAddonsConfigRequest()) - ->setAddonsConfig($addonsConfig); - try { - $gapicClient->setAddonsConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLabelsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $resourceLabelsValue = 'resourceLabelsValue-1244473404'; - $resourceLabels = [ - 'resourceLabelsKey' => $resourceLabelsValue, - ]; - $labelFingerprint = 'labelFingerprint714995737'; - $request = (new SetLabelsRequest()) - ->setResourceLabels($resourceLabels) - ->setLabelFingerprint($labelFingerprint); - $response = $gapicClient->setLabels($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLabels', $actualFuncCall); - $actualValue = $actualRequestObject->getResourceLabels(); - $this->assertProtobufEquals($resourceLabels, $actualValue); - $actualValue = $actualRequestObject->getLabelFingerprint(); - $this->assertProtobufEquals($labelFingerprint, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLabelsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $resourceLabelsValue = 'resourceLabelsValue-1244473404'; - $resourceLabels = [ - 'resourceLabelsKey' => $resourceLabelsValue, - ]; - $labelFingerprint = 'labelFingerprint714995737'; - $request = (new SetLabelsRequest()) - ->setResourceLabels($resourceLabels) - ->setLabelFingerprint($labelFingerprint); - try { - $gapicClient->setLabels($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLegacyAbacTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $enabled = false; - $request = (new SetLegacyAbacRequest()) - ->setEnabled($enabled); - $response = $gapicClient->setLegacyAbac($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLegacyAbac', $actualFuncCall); - $actualValue = $actualRequestObject->getEnabled(); - $this->assertProtobufEquals($enabled, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLegacyAbacExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $enabled = false; - $request = (new SetLegacyAbacRequest()) - ->setEnabled($enabled); - try { - $gapicClient->setLegacyAbac($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLocationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $locations = []; - $request = (new SetLocationsRequest()) - ->setLocations($locations); - $response = $gapicClient->setLocations($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLocations', $actualFuncCall); - $actualValue = $actualRequestObject->getLocations(); - $this->assertProtobufEquals($locations, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLocationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $locations = []; - $request = (new SetLocationsRequest()) - ->setLocations($locations); - try { - $gapicClient->setLocations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLoggingServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $loggingService = 'loggingService-1700501035'; - $request = (new SetLoggingServiceRequest()) - ->setLoggingService($loggingService); - $response = $gapicClient->setLoggingService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetLoggingService', $actualFuncCall); - $actualValue = $actualRequestObject->getLoggingService(); - $this->assertProtobufEquals($loggingService, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setLoggingServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $loggingService = 'loggingService-1700501035'; - $request = (new SetLoggingServiceRequest()) - ->setLoggingService($loggingService); - try { - $gapicClient->setLoggingService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMaintenancePolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $zone = 'zone3744684'; - $clusterId = 'clusterId240280960'; - $maintenancePolicy = new MaintenancePolicy(); - $request = (new SetMaintenancePolicyRequest()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMaintenancePolicy($maintenancePolicy); - $response = $gapicClient->setMaintenancePolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMaintenancePolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getZone(); - $this->assertProtobufEquals($zone, $actualValue); - $actualValue = $actualRequestObject->getClusterId(); - $this->assertProtobufEquals($clusterId, $actualValue); - $actualValue = $actualRequestObject->getMaintenancePolicy(); - $this->assertProtobufEquals($maintenancePolicy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMaintenancePolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $zone = 'zone3744684'; - $clusterId = 'clusterId240280960'; - $maintenancePolicy = new MaintenancePolicy(); - $request = (new SetMaintenancePolicyRequest()) - ->setProjectId($projectId) - ->setZone($zone) - ->setClusterId($clusterId) - ->setMaintenancePolicy($maintenancePolicy); - try { - $gapicClient->setMaintenancePolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMasterAuthTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $action = Action::UNKNOWN; - $update = new MasterAuth(); - $request = (new SetMasterAuthRequest()) - ->setAction($action) - ->setUpdate($update); - $response = $gapicClient->setMasterAuth($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMasterAuth', $actualFuncCall); - $actualValue = $actualRequestObject->getAction(); - $this->assertProtobufEquals($action, $actualValue); - $actualValue = $actualRequestObject->getUpdate(); - $this->assertProtobufEquals($update, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMasterAuthExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $action = Action::UNKNOWN; - $update = new MasterAuth(); - $request = (new SetMasterAuthRequest()) - ->setAction($action) - ->setUpdate($update); - try { - $gapicClient->setMasterAuth($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMonitoringServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $monitoringService = 'monitoringService1469270462'; - $request = (new SetMonitoringServiceRequest()) - ->setMonitoringService($monitoringService); - $response = $gapicClient->setMonitoringService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetMonitoringService', $actualFuncCall); - $actualValue = $actualRequestObject->getMonitoringService(); - $this->assertProtobufEquals($monitoringService, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setMonitoringServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $monitoringService = 'monitoringService1469270462'; - $request = (new SetMonitoringServiceRequest()) - ->setMonitoringService($monitoringService); - try { - $gapicClient->setMonitoringService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNetworkPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $networkPolicy = new NetworkPolicy(); - $request = (new SetNetworkPolicyRequest()) - ->setNetworkPolicy($networkPolicy); - $response = $gapicClient->setNetworkPolicy($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNetworkPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getNetworkPolicy(); - $this->assertProtobufEquals($networkPolicy, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNetworkPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $networkPolicy = new NetworkPolicy(); - $request = (new SetNetworkPolicyRequest()) - ->setNetworkPolicy($networkPolicy); - try { - $gapicClient->setNetworkPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolAutoscalingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $autoscaling = new NodePoolAutoscaling(); - $request = (new SetNodePoolAutoscalingRequest()) - ->setAutoscaling($autoscaling); - $response = $gapicClient->setNodePoolAutoscaling($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolAutoscaling', $actualFuncCall); - $actualValue = $actualRequestObject->getAutoscaling(); - $this->assertProtobufEquals($autoscaling, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolAutoscalingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $autoscaling = new NodePoolAutoscaling(); - $request = (new SetNodePoolAutoscalingRequest()) - ->setAutoscaling($autoscaling); - try { - $gapicClient->setNodePoolAutoscaling($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolManagementTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $management = new NodeManagement(); - $request = (new SetNodePoolManagementRequest()) - ->setManagement($management); - $response = $gapicClient->setNodePoolManagement($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolManagement', $actualFuncCall); - $actualValue = $actualRequestObject->getManagement(); - $this->assertProtobufEquals($management, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolManagementExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $management = new NodeManagement(); - $request = (new SetNodePoolManagementRequest()) - ->setManagement($management); - try { - $gapicClient->setNodePoolManagement($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolSizeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodeCount = 1539922066; - $request = (new SetNodePoolSizeRequest()) - ->setNodeCount($nodeCount); - $response = $gapicClient->setNodePoolSize($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/SetNodePoolSize', $actualFuncCall); - $actualValue = $actualRequestObject->getNodeCount(); - $this->assertProtobufEquals($nodeCount, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setNodePoolSizeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodeCount = 1539922066; - $request = (new SetNodePoolSizeRequest()) - ->setNodeCount($nodeCount); - try { - $gapicClient->setNodePoolSize($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function startIPRotationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - $request = new StartIPRotationRequest(); - $response = $gapicClient->startIPRotation($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/StartIPRotation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function startIPRotationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 StartIPRotationRequest(); - try { - $gapicClient->startIPRotation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateClusterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $update = new ClusterUpdate(); - $request = (new UpdateClusterRequest()) - ->setUpdate($update); - $response = $gapicClient->updateCluster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateCluster', $actualFuncCall); - $actualValue = $actualRequestObject->getUpdate(); - $this->assertProtobufEquals($update, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateClusterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $update = new ClusterUpdate(); - $request = (new UpdateClusterRequest()) - ->setUpdate($update); - try { - $gapicClient->updateCluster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMasterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $masterVersion = 'masterVersion-2139460613'; - $request = (new UpdateMasterRequest()) - ->setMasterVersion($masterVersion); - $response = $gapicClient->updateMaster($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateMaster', $actualFuncCall); - $actualValue = $actualRequestObject->getMasterVersion(); - $this->assertProtobufEquals($masterVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMasterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $masterVersion = 'masterVersion-2139460613'; - $request = (new UpdateMasterRequest()) - ->setMasterVersion($masterVersion); - try { - $gapicClient->updateMaster($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNodePoolTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $zone2 = 'zone2-696322977'; - $detail = 'detail-1335224239'; - $statusMessage = 'statusMessage-239442758'; - $selfLink = 'selfLink-1691268851'; - $targetLink = 'targetLink-2084812312'; - $location = 'location1901043637'; - $startTime = 'startTime-1573145462'; - $endTime = 'endTime1725551537'; - $expectedResponse = new Operation(); - $expectedResponse->setName($name2); - $expectedResponse->setZone($zone2); - $expectedResponse->setDetail($detail); - $expectedResponse->setStatusMessage($statusMessage); - $expectedResponse->setSelfLink($selfLink); - $expectedResponse->setTargetLink($targetLink); - $expectedResponse->setLocation($location); - $expectedResponse->setStartTime($startTime); - $expectedResponse->setEndTime($endTime); - $transport->addResponse($expectedResponse); - // Mock request - $nodeVersion = 'nodeVersion1790136219'; - $imageType = 'imageType-1442758754'; - $request = (new UpdateNodePoolRequest()) - ->setNodeVersion($nodeVersion) - ->setImageType($imageType); - $response = $gapicClient->updateNodePool($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/UpdateNodePool', $actualFuncCall); - $actualValue = $actualRequestObject->getNodeVersion(); - $this->assertProtobufEquals($nodeVersion, $actualValue); - $actualValue = $actualRequestObject->getImageType(); - $this->assertProtobufEquals($imageType, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateNodePoolExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $nodeVersion = 'nodeVersion1790136219'; - $imageType = 'imageType-1442758754'; - $request = (new UpdateNodePoolRequest()) - ->setNodeVersion($nodeVersion) - ->setImageType($imageType); - try { - $gapicClient->updateNodePool($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelOperationAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - $request = new CancelOperationRequest(); - $gapicClient->cancelOperationAsync($request)->wait(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.container.v1.ClusterManager/CancelOperation', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ContainerAnalysis/v1/proto/src/GPBMetadata/Google/Devtools/Containeranalysis/V1/Containeranalysis.php b/owl-bot-staging/ContainerAnalysis/v1/proto/src/GPBMetadata/Google/Devtools/Containeranalysis/V1/Containeranalysis.php deleted file mode 100644 index cf03bf790d5a..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/proto/src/GPBMetadata/Google/Devtools/Containeranalysis/V1/Containeranalysis.php +++ /dev/null @@ -1,50 +0,0 @@ -internalAddGeneratedFile( - ' -Ì -google.devtools.containeranalysis.v1.GetVulnerabilityOccurrencesSummaryRequest - */ -class GetVulnerabilityOccurrencesSummaryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the project to get a vulnerability summary for in the form of - * `projects/[PROJECT_ID]`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The name of the project to get a vulnerability summary for in the form of - * `projects/[PROJECT_ID]`. Please see - * {@see ContainerAnalysisClient::projectName()} for help formatting this field. - * @param string $filter The filter expression. - * - * @return \Google\Cloud\ContainerAnalysis\V1\GetVulnerabilityOccurrencesSummaryRequest - * - * @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 name of the project to get a vulnerability summary for in the form of - * `projects/[PROJECT_ID]`. - * @type string $filter - * The filter expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Containeranalysis\V1\Containeranalysis::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the project to get a vulnerability summary for in the form of - * `projects/[PROJECT_ID]`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the project to get a vulnerability summary for in the form of - * `projects/[PROJECT_ID]`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The filter expression. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The filter expression. - * - * 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/ContainerAnalysis/v1/proto/src/Google/Cloud/ContainerAnalysis/V1/VulnerabilityOccurrencesSummary.php b/owl-bot-staging/ContainerAnalysis/v1/proto/src/Google/Cloud/ContainerAnalysis/V1/VulnerabilityOccurrencesSummary.php deleted file mode 100644 index ababb1350a1b..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/proto/src/Google/Cloud/ContainerAnalysis/V1/VulnerabilityOccurrencesSummary.php +++ /dev/null @@ -1,68 +0,0 @@ -google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary - */ -class VulnerabilityOccurrencesSummary extends \Google\Protobuf\Internal\Message -{ - /** - * A listing by resource of the number of fixable and total vulnerabilities. - * - * Generated from protobuf field repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1; - */ - private $counts; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ContainerAnalysis\V1\VulnerabilityOccurrencesSummary\FixableTotalByDigest>|\Google\Protobuf\Internal\RepeatedField $counts - * A listing by resource of the number of fixable and total vulnerabilities. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Containeranalysis\V1\Containeranalysis::initOnce(); - parent::__construct($data); - } - - /** - * A listing by resource of the number of fixable and total vulnerabilities. - * - * Generated from protobuf field repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCounts() - { - return $this->counts; - } - - /** - * A listing by resource of the number of fixable and total vulnerabilities. - * - * Generated from protobuf field repeated .google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest counts = 1; - * @param array<\Google\Cloud\ContainerAnalysis\V1\VulnerabilityOccurrencesSummary\FixableTotalByDigest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCounts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ContainerAnalysis\V1\VulnerabilityOccurrencesSummary\FixableTotalByDigest::class); - $this->counts = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/ContainerAnalysis/v1/proto/src/Google/Cloud/ContainerAnalysis/V1/VulnerabilityOccurrencesSummary/FixableTotalByDigest.php b/owl-bot-staging/ContainerAnalysis/v1/proto/src/Google/Cloud/ContainerAnalysis/V1/VulnerabilityOccurrencesSummary/FixableTotalByDigest.php deleted file mode 100644 index ff9cca3ae3a3..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/proto/src/Google/Cloud/ContainerAnalysis/V1/VulnerabilityOccurrencesSummary/FixableTotalByDigest.php +++ /dev/null @@ -1,176 +0,0 @@ -google.devtools.containeranalysis.v1.VulnerabilityOccurrencesSummary.FixableTotalByDigest - */ -class FixableTotalByDigest extends \Google\Protobuf\Internal\Message -{ - /** - * The affected resource. - * - * Generated from protobuf field string resource_uri = 1; - */ - protected $resource_uri = ''; - /** - * The severity for this count. SEVERITY_UNSPECIFIED indicates total across - * all severities. - * - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - */ - protected $severity = 0; - /** - * The number of fixable vulnerabilities associated with this resource. - * - * Generated from protobuf field int64 fixable_count = 3; - */ - protected $fixable_count = 0; - /** - * The total number of vulnerabilities associated with this resource. - * - * Generated from protobuf field int64 total_count = 4; - */ - protected $total_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_uri - * The affected resource. - * @type int $severity - * The severity for this count. SEVERITY_UNSPECIFIED indicates total across - * all severities. - * @type int|string $fixable_count - * The number of fixable vulnerabilities associated with this resource. - * @type int|string $total_count - * The total number of vulnerabilities associated with this resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Containeranalysis\V1\Containeranalysis::initOnce(); - parent::__construct($data); - } - - /** - * The affected resource. - * - * Generated from protobuf field string resource_uri = 1; - * @return string - */ - public function getResourceUri() - { - return $this->resource_uri; - } - - /** - * The affected resource. - * - * Generated from protobuf field string resource_uri = 1; - * @param string $var - * @return $this - */ - public function setResourceUri($var) - { - GPBUtil::checkString($var, True); - $this->resource_uri = $var; - - return $this; - } - - /** - * The severity for this count. SEVERITY_UNSPECIFIED indicates total across - * all severities. - * - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - * @return int - */ - public function getSeverity() - { - return $this->severity; - } - - /** - * The severity for this count. SEVERITY_UNSPECIFIED indicates total across - * all severities. - * - * Generated from protobuf field .grafeas.v1.Severity severity = 2; - * @param int $var - * @return $this - */ - public function setSeverity($var) - { - GPBUtil::checkEnum($var, \Grafeas\V1\Severity::class); - $this->severity = $var; - - return $this; - } - - /** - * The number of fixable vulnerabilities associated with this resource. - * - * Generated from protobuf field int64 fixable_count = 3; - * @return int|string - */ - public function getFixableCount() - { - return $this->fixable_count; - } - - /** - * The number of fixable vulnerabilities associated with this resource. - * - * Generated from protobuf field int64 fixable_count = 3; - * @param int|string $var - * @return $this - */ - public function setFixableCount($var) - { - GPBUtil::checkInt64($var); - $this->fixable_count = $var; - - return $this; - } - - /** - * The total number of vulnerabilities associated with this resource. - * - * Generated from protobuf field int64 total_count = 4; - * @return int|string - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * The total number of vulnerabilities associated with this resource. - * - * Generated from protobuf field int64 total_count = 4; - * @param int|string $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkInt64($var); - $this->total_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FixableTotalByDigest::class, \Google\Cloud\ContainerAnalysis\V1\VulnerabilityOccurrencesSummary_FixableTotalByDigest::class); - diff --git a/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/get_iam_policy.php b/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/get_iam_policy.php deleted file mode 100644 index 835569d00fd4..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/get_iam_policy.php +++ /dev/null @@ -1,78 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $containerAnalysisClient->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 containeranalysis_v1_generated_ContainerAnalysis_GetIamPolicy_sync] diff --git a/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/get_vulnerability_occurrences_summary.php b/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/get_vulnerability_occurrences_summary.php deleted file mode 100644 index 3080881bb8e0..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/get_vulnerability_occurrences_summary.php +++ /dev/null @@ -1,72 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var VulnerabilityOccurrencesSummary $response */ - $response = $containerAnalysisClient->getVulnerabilityOccurrencesSummary($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ContainerAnalysisClient::projectName('[PROJECT]'); - - get_vulnerability_occurrences_summary_sample($formattedParent); -} -// [END containeranalysis_v1_generated_ContainerAnalysis_GetVulnerabilityOccurrencesSummary_sync] diff --git a/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/set_iam_policy.php b/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/set_iam_policy.php deleted file mode 100644 index 06d2e7264b99..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/set_iam_policy.php +++ /dev/null @@ -1,80 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $containerAnalysisClient->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 containeranalysis_v1_generated_ContainerAnalysis_SetIamPolicy_sync] diff --git a/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/test_iam_permissions.php b/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/test_iam_permissions.php deleted file mode 100644 index 981bc8d182c2..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/samples/V1/ContainerAnalysisClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $containerAnalysisClient->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 containeranalysis_v1_generated_ContainerAnalysis_TestIamPermissions_sync] diff --git a/owl-bot-staging/ContainerAnalysis/v1/src/V1/Client/ContainerAnalysisClient.php b/owl-bot-staging/ContainerAnalysis/v1/src/V1/Client/ContainerAnalysisClient.php deleted file mode 100644 index 705840cf6f22..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/src/V1/Client/ContainerAnalysisClient.php +++ /dev/null @@ -1,354 +0,0 @@ - getIamPolicyAsync(GetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface getVulnerabilityOccurrencesSummaryAsync(GetVulnerabilityOccurrencesSummaryRequest $request, array $optionalArgs = []) - * @method PromiseInterface setIamPolicyAsync(SetIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface testIamPermissionsAsync(TestIamPermissionsRequest $request, array $optionalArgs = []) - */ -final class ContainerAnalysisClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.devtools.containeranalysis.v1.ContainerAnalysis'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'containeranalysis.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'containeranalysis.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/container_analysis_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/container_analysis_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/container_analysis_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/container_analysis_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - project: projects/{project} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'containeranalysis.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Gets the access control policy for a note or an occurrence resource. - * Requires `containeranalysis.notes.setIamPolicy` or - * `containeranalysis.occurrences.setIamPolicy` permission if the resource is - * a note or occurrence, respectively. - * - * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for - * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for - * occurrences. - * - * The async variant is {@see ContainerAnalysisClient::getIamPolicyAsync()} . - * - * @example samples/V1/ContainerAnalysisClient/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 summary of the number and severity of occurrences. - * - * The async variant is - * {@see ContainerAnalysisClient::getVulnerabilityOccurrencesSummaryAsync()} . - * - * @example samples/V1/ContainerAnalysisClient/get_vulnerability_occurrences_summary.php - * - * @param GetVulnerabilityOccurrencesSummaryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return VulnerabilityOccurrencesSummary - * - * @throws ApiException Thrown if the API call fails. - */ - public function getVulnerabilityOccurrencesSummary(GetVulnerabilityOccurrencesSummaryRequest $request, array $callOptions = []): VulnerabilityOccurrencesSummary - { - return $this->startApiCall('GetVulnerabilityOccurrencesSummary', $request, $callOptions)->wait(); - } - - /** - * Sets the access control policy on the specified note or occurrence. - * Requires `containeranalysis.notes.setIamPolicy` or - * `containeranalysis.occurrences.setIamPolicy` permission if the resource is - * a note or an occurrence, respectively. - * - * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for - * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for - * occurrences. - * - * The async variant is {@see ContainerAnalysisClient::setIamPolicyAsync()} . - * - * @example samples/V1/ContainerAnalysisClient/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 the permissions that a caller has on the specified note or - * occurrence. Requires list permission on the project (for example, - * `containeranalysis.notes.list`). - * - * The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for - * notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for - * occurrences. - * - * The async variant is {@see ContainerAnalysisClient::testIamPermissionsAsync()} . - * - * @example samples/V1/ContainerAnalysisClient/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/ContainerAnalysis/v1/src/V1/gapic_metadata.json b/owl-bot-staging/ContainerAnalysis/v1/src/V1/gapic_metadata.json deleted file mode 100644 index ade34facd3f4..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.devtools.containeranalysis.v1", - "libraryPackage": "Google\\Cloud\\ContainerAnalysis\\V1", - "services": { - "ContainerAnalysis": { - "clients": { - "grpc": { - "libraryClient": "ContainerAnalysisGapicClient", - "rpcs": { - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "GetVulnerabilityOccurrencesSummary": { - "methods": [ - "getVulnerabilityOccurrencesSummary" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_client_config.json b/owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_client_config.json deleted file mode 100644 index 298ab4c839eb..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_client_config.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "interfaces": { - "google.devtools.containeranalysis.v1.ContainerAnalysis": { - "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": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "GetIamPolicy": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetVulnerabilityOccurrencesSummary": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "TestIamPermissions": { - "timeout_millis": 30000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_descriptor_config.php b/owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_descriptor_config.php deleted file mode 100644 index ad6ca1c4b15b..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_descriptor_config.php +++ /dev/null @@ -1,79 +0,0 @@ - [ - 'google.devtools.containeranalysis.v1.ContainerAnalysis' => [ - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'GetVulnerabilityOccurrencesSummary' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ContainerAnalysis\V1\VulnerabilityOccurrencesSummary', - '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', - ], - ], - ], - ], - 'templateMap' => [ - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_rest_client_config.php b/owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_rest_client_config.php deleted file mode 100644 index a21fcda50214..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/src/V1/resources/container_analysis_rest_client_config.php +++ /dev/null @@ -1,97 +0,0 @@ - [ - 'google.devtools.containeranalysis.v1.ContainerAnalysis' => [ - 'GetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/notes/*}:getIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/occurrences/*}:getIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'GetVulnerabilityOccurrencesSummary' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*}/occurrences:vulnerabilitySummary', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/notes/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/occurrences/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/notes/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/occurrences/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ContainerAnalysis/v1/tests/Unit/V1/Client/ContainerAnalysisClientTest.php b/owl-bot-staging/ContainerAnalysis/v1/tests/Unit/V1/Client/ContainerAnalysisClientTest.php deleted file mode 100644 index 12dc177b4b31..000000000000 --- a/owl-bot-staging/ContainerAnalysis/v1/tests/Unit/V1/Client/ContainerAnalysisClientTest.php +++ /dev/null @@ -1,366 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ContainerAnalysisClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ContainerAnalysisClient($options); - } - - /** @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.devtools.containeranalysis.v1.ContainerAnalysis/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 getVulnerabilityOccurrencesSummaryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new VulnerabilityOccurrencesSummary(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new GetVulnerabilityOccurrencesSummaryRequest()) - ->setParent($formattedParent); - $response = $gapicClient->getVulnerabilityOccurrencesSummary($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.containeranalysis.v1.ContainerAnalysis/GetVulnerabilityOccurrencesSummary', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getVulnerabilityOccurrencesSummaryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new GetVulnerabilityOccurrencesSummaryRequest()) - ->setParent($formattedParent); - try { - $gapicClient->getVulnerabilityOccurrencesSummary($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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.devtools.containeranalysis.v1.ContainerAnalysis/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.devtools.containeranalysis.v1.ContainerAnalysis/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 getIamPolicyAsyncTest() - { - $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->getIamPolicyAsync($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.devtools.containeranalysis.v1.ContainerAnalysis/GetIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Environment.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Environment.php deleted file mode 100644 index 74658a83d894291fdf031afbe7dddb6343068371..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4684 zcmbVQOLN=E5f1fOkxe})=mpD?gO$B&S-VS>>DsDX`RTPYaNx0Y zOfBlFKGmh}wd4<|p;QcpEKivG84 zdx53-hHXjAp>An(|CtoVWVTNn8+ZOnic@N^VqhUURm-QYrJ9`z^)%OTeA{iHX|dR+ z{pDc;_Rh^Ik7pmw?)_~ZvI&3*4`I!xBZqi+ z#A=@s$E7{vqnMIX`x)UeJk-pj?RL3A5b*~JKiZk434YKs3LtTR*-xFu0 zS@hh3mB@=8tj80>kw=E~nlP4#i#*nEVey0Q4sjiZOi!FcpKRfAeo7hg zm)w{EQTPrZz{mu%w0v8fdy84kNV;QPw_|G zfIcLS;ZW1C=y-eS`{NW~J%$KLmMg>E)^8<>KoxdjBd(RIX?9@wgpO3h6oF^*9(H>s z{YYFIN)z$40o4P{s!#g1YKmDjTQ0naW8VZ({s_IBk#lS8dyKBa1}sGf;nF@U(-L12 z&pI0ZWLs2R=7XgT2 z`n<3T8678xf9)h-J>n&IY&b}xFe}VC#uL|sm`;p% z8KDZIqq?eTQjI0?1gC5gx&2WX#0HOU&o^ z{1VJxjR*pPQ6$4?YN}R0V9GsUFctVP>Nbi#RYwegQTQN;E$gvYE?nwPetY8$a?Qv|)@BJYKVoM*MgjFfy z>0wUPt&SLX(TklYA0Y-CictCu>>_4~he=|sG~2~X3Uz*L98qf%mJ=NqD-owGqnxHX zYS%EaV?sc)DrJko+r&uK@Puh7Q6bBIh83Txu5N#@@V>+j@tTus zxo{7;+L1$p+q1x2_+mL^cias*41tHD78>#{I65FkwG2~Tej6}qWrP!KC{Slyu0CwL zA?w+dl`VWXb6pFOc_(H^As|y&mpSY z_xQD$E!^D+pz>JMXH1TWkJ9Z0-FS=>TKEfg&XNG_vZ%AEEj&9y1lSo)dse|*p7I}?TNE+2|KK1nv#_#ZvL0U zn5G%qhp_bJ>11IRJIaX0OecpIW_FMHdq}>_!&IVIk$m(j^4EC2 z)8Pi4$-4If6ho@h+>hO6pL|?Vlgu5e#O54UpyUujej3LMEodwUYd&C;!MyoG5CWv252QP9n8Rn`KJVR<>kUi6beN?5>$Mf|5SljAfD| zDW`7X%YfYm48u;l4A^zUdK`A$dMkQbcNnnC4!dmFZPy+4z8{j3Y)W>E6$om5eD8hl z|Brm?(PvK`IUcDm;C?BSa&;%axY&&-ySVdMY|?SMFz)+X|LZRIgO zrqIoGhS@9%%;xr+D-`oSK)b6sj{FcQz^5SNe^#&6)!VY;YA*ioHQiBlLw9wptAB#L zKah8{u0s&65G(a%_4Ey zwr;tmT|>}(ewVnu(&)+c8{%3@PT!HQa~|{g6HGpkUAss6ZCJ*+m{bd<;pFpyOaX~7#MQ1&4EO9f!)9rgj6>Zvje~DSrEX}JvuC>J;NCY% zv4_5jlAm1&AGMCUZ=XYYAF-jM>$=*3b^4{ufo{L63wJ4WI=*+TVccBz?MbbB4gU5X zDB}Z0y3AoRUQlI3P^HC#tY+!iHZv#>vGk2FswA+Q0Bv3igLORH2*|4f&=OIR?Fa*i z=PwOEcbJyN({Bwwbv;#b0Ohkd#4yGsfT-R{MdZl!xP(9Owr8a6s(2Ps;?DS4?<~MP`IxkOG|n)|?wBcH_ucUB8}>=6=#qy~ zMg%DfiMCBp0M2h>EWfBZn^;|}59%|sMGZfTIB{tkF1fa5I6J0&pi&o54>Zftjos87 zGsxXhJY^alY6USLbHtM2+DFnASmeQ@3N_Iy=h>BMkOV6owRPmNv%sFAZ@T2bQg<-0 zom3K8h)efis;jj~*GVlhmadOvX@h}sCXz7YJBq~UKZJ{xZjr8T5Va%94q72~0iPyv zw?Zk`1d>;(5Jy^pS#-8t!p-lbE;8=IY4{dI&)X&3{qitN&2b>=b!v(65gt0|2wrWM zG5~nL?Q$2m#4ty>tPCmcGaYruHV;%U6;aDvX4+YTIS0ea+0lukTAw(nD|kGUz7JQz z4V{44J~ZRGeFAKBI-r&I?^J<{r)CA ziz#iNjj zA^%fw`4U_d2Wm%mFwGpXTq0Pmf#h`dRi|fJCb}ys#_c&w2lKhNLPIXNFN1&9IWmo! zo})ZP35U+41Wa#L9#yIzR+2ABa}cj@)oRtvMyZ&LNO72~Hwqi2WK^05D3)rQrPTs` z6hm1OTa^HILiu|P68&Lz4-%C7et{FYSI@vUCWr;>$f+GL*Dyy$h0rP&p6E~5tq94M zzRRrZ6Nxb*%b_fwlMXpm2^Nux%KgvdWnw&;#-Oji5A!%BU;z27Ofnkb8F@Gy-w}c3 z@xZJ8>!G3yhUFS8vS6Ue!DnHbv2Zh##L0A`{4N3)PRqvV#zA35H^tn}x*{Gf@59pY zQ|ih*+0Ey^cC$faIFTEXxt0GQzo%883cP6A`mT;clf42O1Xb z8l(aVeS%C8!gDjBY97+3posO&O9<3*81$5-@cLHd*@N0l`D+A{Cs@qF#J+CuR(6!m zA0ZIyO?l^gT9-S_8;^%G@g`k`OJ>itdajCtd>313OpDxCXhg)NmtjdaPJ2upKCb+C z5|&O^nAeDNm+NQVlbpKCnIx~lEa!o*5wJK=-RI9|!3<_xY*yGJLV5yoLTW*hhyOPr ziOry86WSx{j*jgtceWX(#2>;1x*IVK+Sdne&2vWKoN}yslzf+xz6Z&GzL1D#lXt%^ zajvLz7ZUw?!}g`;U=`>~CZ3(SW8w_!2eL1yYTA9?B}Ox>;|?xluyJ;=L8b#*Ed2ze zQ=}VvDXRYDrTm(7vk416O=1191kWsm@?{hfeW8xEyRV5HX!f{%ESI{_lv z9hmo~b%8}kz(nqf=RN-1=xtRH=^{W2cUl604t_IudKp`VJ>DF7V$zu|PBqiByJA?w zK95a8IGf?Km1&sVrrowug$Xtuqf`0GF)j_d*iAO|Tf}y;xo1{R`BoZ00P%6pKzr6qdI=Y?|5WUea5koETSm5^>m2mi~c=4gPb`^bh*yheR&C+VnHW zB8_rL=M7~UmQH<0X9&7G@Pd%0;oqW|t89!$lubU)53NUd9=-vwXJ(7Fvx(eGqvXb^ zY~oNS&zXkD>`t~3j;=I@26N`$Qvd8qT|2JyU~ZkbV>q3MDdaSmI?l^Z|Fw(}#ew9O zg(fEFyjkdscQ>PTcJk7nMPXq>cc`?EXPEb33WqYB$Jl~tK9>!(!w_Z$yGTSk)v`HZ zE}Cb~V6K&DDndQUVsk$xVrJ(_Mw%YE<~}j_7&c(RMP|V~ObJ#7hLvfE6*e|-Ou^Zt zQQCZ5uCUo8in)HOu-YhZmy$8%D$K9pEKE8ZV)f<6H*-}Vrk3NpyYF3!BZ96b5H4+}f&=3wi_+qmYnPzwyQs{A?vlDCyUryIQvG1u*igcY7y z2ei#2C#lfq)!#rn3qBCya@`sj)xN-|Ft?rTbegT`gL+b3lZ5X{h*K-hqP4=NTCDPe2$s0T_08&5 zOSr>qtvJhD$|s1{e!KwwGDwdv;27!W>6KFVsTfB+&rwVs7MAW2ebCTalKKk z)!58EaJ;!yso-tMJKh@*DOM}!+gKBm!P#1&ynzHJuqIvzPFD++)zSuiFge6Wt;nKf z3Nxt`z!x_QWp?BAAUHcmDl>z}wNj->`HM>_xEN3ox6&st$mNr*(iW0QND5pH;5SS4 z>el9JNnPD273lTqRxLTZtid!Yk)?Yf>UO#GVV?^7PwQKc9~U-1!gPS&?Kohu%De;%`Um3dl4pEj>4@+fo~H4IYvJOWd^VA*s6YOU{Mb@yi9zVS)-55oIO5g)aU!f`d3Od3RKFrxnam-|Sp8kfi zaGSi5KD$8NHh;oY=G7Z1d;#Qvcrt~1VgSkWsG>0ezb}0~Uwf)ZW4%oJ71pJ~?ygOC zF~4;@4*oyl++pI}mTr#ooV@09Bpu=yHdvIT@U~|N(o^{xp;h_>g3$a6(!V3vrHfaU z5ApqB_rQtt|0@aMwsBYUoEIr(h%`Sa&OncmZ^)^qppJ+ayA+{V4POW&j28VioQ zh@MN%3YWnVrDGc1qp=8d%RpZ!X2=0{Y%5FBJG_6ykZ=P$Brw^DA9xS3| zcg^6F6O`Bc>crEN)w&=2`J3p=>+D;T%qrDIrs&Otq9A?YJ#RJ{Kr{Fz1wTq*pR@cc zDsvL~JOjz+JtFzM0BKFJk^0Ux|DFFW{>4Y%2O>D5;s-3Jd>q0c`9~bba18K2;yWZ9 diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Messages.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Messages.php deleted file mode 100644 index 96be9184b55c8c9e15c5f2c798cdeb8f1356361b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3094 zcmbVOUvJY^6kn2-kyD`I!e|sW@B$kJfjtT@Gb_kRObE~k8KB+GGbT7zSI_BCCH zs!5afJWYGw%ii|3Y1(%fPiWgmm^5jhVGldk|B|Im>6Vw+_nyDM^E=1qqdV@F3m1es zwW+5wIuQCh0^6d3>p9FZ982g2!y)wq!x_1zMLkgvYAvDJ>I!PD(R~+HeJAh?Dhr#A zvuROjpfi1FIos0n>wU`f8`6mSzP?F)F*FHa>v-bo1{Lb<${LDrjb1&}?$u)L-lOXk zu6+x@uyo%S)?zF00tEcILEkbB!Dl+dzl)}?nYPJH-7-JJ99D&)Zuu0I_sR|f+hC?+ z3tXXP8+7@y5ZUCi7hMN)UKNsf+8hRipx3Y&^=#eh)u?ZHrpp|!jiR!=Nm&XWKUuyU zyXEH0p|BjqD9d|-TosrX&`Ixt;87NM_N_2(ZeTZk>g|J;;+j3hwjGXwWBal^&S`97 zmSWX1sm%_rlR~kMVH^KPv1?-GnLcv&cN$`U?Y0>stqcY!uy>Jq%PABbm`m_Af%gx` zIkFVVi3vBwn46{eLegDRGD18emX_X*Er*=N`b&P8bbNb$`j#b`MFQpTG646TeoR^d zkTnOzjF4H*lVzCW(#0&kEv%HpIJCr(n1V!3!!g8*_m0Nsr>vL@^&3EvQ*-1x9@CM- z#W}n?v2rc3Hl3(A4yKVRm4C^=$*7otM+Zr;({7`%Pr*Xs_8Hv?qtBCj0Iu#~KVxtB z7+(%Ex;Zn3J+8!dqFlNI`SgV>K#u!}9KQ$i&vh$E06UYIPXT+xZ_7XApr8cI@eP~- z_NMwAxlPW(DI@SaeAMhX9k|P}e$}MPY$E6|gCsuAJ zp7($|?N^*W=%N*J2NnkL?7(IXE4Hw5Wv0-e*33KEle(hY^IW z=RBi!kz<}GA^^@W4{5iq=eK8f)!Vr>iupliWkM%0?Y2S45K&sx`HXtU@w| zT${Y9DC>=CVIGq_HF^A4=`&Z>Ba*(P0wMxHdUMfrJw2MAe_@(qkTn2wte$H$$=K8WEZEtVKIVQIf(r636s7^4r z=2|)%I^O8&YsGQJ3>ZDEoaj+~;MmsAYZU^YdZs;eL^{$>!Au=J$p@=LeMr1h_=^sIEFz3dlbW6G#t(Ozq=*&$tl#DjUUDyTq2kI2- A+5i9m diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Metrics.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/GPBMetadata/Google/Dataflow/V1Beta3/Metrics.php deleted file mode 100644 index eca9b23570a282f1e1e30888c7eba43c369ab172..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4643 zcmbtYOLN;)6h_YbI8B3E8skzb+?QKYX_5@3qcnhHJDJepgeGa3j%PfweC?=_B_Ulk z4J8}+3G89d3=1|4OJ*20-7o{p@CVqy0{#N$UOntOw$ij&#FFkg_nz;&-#Pbj>wRa( zfeX?qv52ct(va%=65Sz^5r*0$b4SI_oc zov2dFwp%7q8XDD_roE>;nyVA4Ehue5T|@U|-XnmewTb6wI+0d4mOnxZ=1^Vb&ec-r zT)j89%$yeibW`&@2@P2%@B}3MbNsq#=#ob@ia!?(uVz>VH8j)s3=u3zP0jQO`X07z z`j$=&+me{Wx}}r+RVnC`*e!e3)o@tWozax?L5!+;D99y=x<2V1U6Ncveb-v#akCB%;-_jKvI>q-Em)S#SgIPp|#JN*ac++Tms2$?Q48ZogeD7<`31taDP zeElX|dM?F@Gl7{L2~!S*nGG8h%`p_6(-CMi`$pI?S1eAy;&IGj>-pYR8UYIoa^DMZ zI?!vtmG6>91ywIj!Km#TEyKzPl8~PeCt;XnLng)FZo`;vBl^cQGb9b=)AOo4Aac21 z?{YD4E?d;y&&n{_{Vt|qXqW7VVjjlZM6+t1 z-_DFAT3!R-mb&d*G&7oLdjW<#LNjBDMzb*4FmUFLy3g_}lTNh01S2iYZ;{Moq8Z|e z6rLGRv{WGN^QovYePt%NarO{RaaQF%htsQserVUjT6vdz>SMx*NI#PLkm$5#G(rWS z5+B-i_8w?Y2Ef#GX)qR>qV#;iSmHE{o3_sD4xhk@oDa|$TEyVnykZ9(1|mx8@CJ+p z4jx9t#D6J5+MBka_yd_D=yL(+@?)a&c`D($VVK@=(08L@*eAqSVZzZ`q~_s*!U2wO z8rdgm?-Gk^aU%Dl03sH~mP0ury#w@Kh*dhBiM1=0$?9& z267pdpZvh=>6wL0% z+Ipq7xmDOI*S0ISE9>_w)31o<;cRaso>7?D-K}zITIlC}ce_$qtE^6^#B=a^ulMG5 zu~;sb(0548!kOOYmBQK`Y#Z+9S}atG%2cMGXwUb?< zHEhe=KhnYXaF=E^ZJD%jqqzL50A~@wAl{e5W08kj32JW$50*HN$Q(VDmfgAZK*-U( zM?{rVU+g@7n>x43uR7!+qeCu*7anq09iB$*)haircCJM5PJ~~m{F9P`E>xA9sA|-S os)i=@QA~1bFIY}T7{*TXHBnM)Ac-*orlvG$Xm*u^UN#NLsa+=`wXMVj5v^pc*W+Z$dUx5G zC4|ZckdV0ZE8xZj@f&*M5qEJ0hOc}m1FC4S%u&-NVB4BKrQ5Zmkc%%OosNU=&P)jBB^ck8zxlzU-dQ-d6N z-jPG~mL;sVDBLV2;pWF{ z+cJC;A=|MyCkHAGdWH!6{IKaTn{Z(X_`A(`gSkvF%VA#ui!IW&98MwnJhmOWwqTx1 zWI)xm>GE9?=aksnz6Y$gh+0rh3IQURyRM*tYdL0-aywwY@PZmZ4daN4o_um-`ED|; zOvl<}IbNe-oLl4;5kW`?XD1|}A`INkXx%bFxA$aTAXmX>X2EqmseP zWp|7b5}wcOhTIL=6iF>l<9RfzHcLF5j)rwKL%;M{KpQfBb_@n*)^l3IMy*ZjDVzT@ zji%IuFi)Dbk_q4i;7_S78ZZ`TmyE|IB zTGn$w+PI!DPp_Umy)$Ua@$5+0SnB*fnlDm^3i=XrX3@fMPVU12LGyd)wLQjr>*tpd z0P1Hi>zn{ynNcQ_8}2?H=C88<*u$SjeRwWf=Z9h33v$1ZyMNo&_qx zqc`3#KJngZ#GbFbJo4t!%DdNMkAFy`*)vwft0U>2!6~+*)fs{(WPgck{nLxo8g?Dj zE8cqpl|Oudjmy|7vs~<(LvsmVPpsS@spo~o-gz9~G;lj|4cfrp3O}cgh48td>nA5C ziHPc}ZiV6)Zc#66t@@57+FsDPcO@K}%TUnk;xxFJTAu5iUKtQ_8Zfu*X|!W8XZzO_ zdIK1Ys{8g_??9-@uCJCl+=`f}0EpF(ync%dq*a%z#PXY){l_2EZ(Pj~d=N69MomJt56J$(F?qecd;An#1&0jd zBb}bl&sWc0bg6XKSA~qIGhji#sWAZpXFx^hxRmT1w)fCRxpa24duKa!?|gjGR_+@B zuI~szjxred83_J_ao1-q5z>+PYmo_?1xzx>XFp*UEz)y*LDBoVZ7&X7$#_7N!$IKE z#xhATmF;54G3yq|0y#qeC>ctUi@Fed?sKoL;NoSdTQ4 z7%l5skS!vkm=Y2Y!!1OT>xzGEQ#!P}3^VwQlp2!; zfqFVD_dl6Swn1iaCPM~5ufrm13+*6hPr5o;QH@xAT$rIa=GGg6WQc<764;6C-=JR3J z6z7r8LN!qfn|Vp}<||kj88eUW2H1GH1G0lPDkQ3T?xEcH!z59&0S~rfA^G4)>s0QF zdFrb4Vqg1L%zw);o!pfh9YH+_Nav{g%TH<6PPMhwu?;l}Tlr;>Z|~sz%%FH7V|I?E zYEoP4ER6-bTw(_pQ?u&NPiYtP5R z-o)_RJ8ghUmZE9FEEZeRH@Y~fl&Ib;mMm%W8JI#j$5+GCHLRF_m0_+hh1sYYU%;#w z;)D&-*;m7!HUl;I3v|qCrHvC_&V-3(Ds)JjADRsCBX0F4s%uBFyaZ z7@sjOQ*+}Ir0xQ<1xEI{Aog=mI~!ovW8C<1r-2&)c|b`~tLA%H$nw1b=2Mwpibac} z`D>{lLxoP%%^{RRUTLrKDI`dw zC%K9$sb+(aN7+l17gRq6?SD$}7!w%RPVH0{Q3UlibXfYa<@!AKG6(cs?eo#<=Y%ZV z{#0GmIv930Mt}ZMev+(v%`FY13Z#sh>C*Ri_Px{52A$Dbh6%Gv$+1b8PSAw@Xeg1AY11MrQT_sf#d0~MHd^kk zcXlN!fiDHxbAk5KTaQ7H1=?c+6le?N(4uKCJrupPm;M!fGyBCAxs+tLm-=FAcHW!! z`Frop-1(ldXQ20lO`;J~vPeg09|_hT5e!qebXix0w%zR#Q;_w(p{T^n2|~FpY}K1W zrCe=Z0aB{lrc8=LPuF`Y$#*16>Zszj;K^w^*;kO2P-yR9m+KrP9F|K3-qsA!6%NUHKV zXmMBQN-8BlJ-oMTYqF*2n!pI^noL$!1&1fw`@W%r)^`O@pawGp7@<|wEMjVs+A0$& zn~GuSW&^esi#=lb=3^@>tM0LkozfLn92twnAtCPymT8m0(*?mKmThXcx!jDwEB{w( zgt$wFBzf z5j5O?H|{B}w@RIk@0<+?;1%DT%(z$4A3i~?tEUWIyyR@mc`=@IV|>~Dke3W4FLSFp z!M?m2#hL`BbGK%rwtfcoarb!Vn1-BZQDwUyvYTkRCP7^9ZK&j>mnz$kW)KtvucAp{ zl8Fhim1N=VT!a=ma76ZBF*LWXYnG${AnX`K#&c*|=}SGr$rJcCiuc`|%}j8HtC0*n zLA)f#1r(>9eaO_Vo|)vtLL~7{`C%3I;U-$>kgjB_mN;Ov%oHd8ZX|ig5VmG1eKHWP z*>9%NSmvNMeIw4p=dptNpL;tucb%R z^T%zNM3ejE$c+ccivvlu3D1H=apL3H@`nhIFw99*chGXQ82AM0 zHH6|`h0XqW7QH(@?(qUjYIa{d)XjZjQm)E0TkK0O{Y946)A&4^`drrt&(j2c2Q5-! z9w;&qC0W)Xp+wS`6qP4I0xzODCWWZ#GOt8VK;w((d|#6H082#c$RH4M5a#$@bV=%T zpjhirPDS$4ASPs|X3@+nxH5s~(X2)+CL(u!0%L@z-S*ZJoXLw26B~pRRjEx>nn64s zz8@J6<1Lhfis6d33ruUArxW3z&3>PX5CRS^B)K4UlvWH861%JPZ0MmttIT=$k}7-@ zDZ&$O{%QlxG6|&s6ag`_rQ;saBt6D$j-LZga+kSVQhf1SXo+Z2TO}g3Od|CmApj+N zVDQX5Y>4CgDA|RQU{bNCOKK*~1-lg~7_$wO4c^l2$a|z?tH5#-NO16I*n^+QL-(a%FwR?LrLxFref{&GmBin z8<7H*0;-Zn#6;`Z5Pf?@GDKYyb-kat1dQVNJ#?8$2gLcp_E6E%1K3^SB0_9C&8sCT zkl#iItnx8w{x zlZ6i=<6s!VLdAnOZ?Dl7hg#I%#Sq>k)@jT)%2*p{>Odif91l{3k0VtXJ|gEG`55R! zdU4leub}gx9T(8tqe`<>E;UPHeXI5?eJ-TOR}*LpxW5K-V*Ll;!%!o%?TXzE_s z+&r@jLV&?9YeHzSjxHUy%Gs~pegmUIRpSQpR2s+#8C~@C5Dyd`ECf}RP4KKei7ptC z9D`JN>~UMZgRp<3zsfo>|7dqe8P#=UtLX9=moO9h#gEnP#K@77m&I#;glkA&5)V4--(24jw=1QxxVF3gu+mIVz<`iui%+(z&5E}=32MywTQ{n; zN_q++F%@j&YizU$IBwKy<;r$?Cd|=Yodu1~H+I){cGtvay-{6H$MF(ca93b;XMMZc zXjY+-NfdrN8+3AX$GJ(t|A?W*kp&$`Umc9x?v`8T3`&n-yW%`}rz(!zsqDJ-?Ry_BaNX_fP|SG2lfioEbQG%H;EO%Ab0_lXBUg z$GDz9i)BmWTD?epC8&Y|pX`TFmDU z4-Z{sysvq<7TSY16y5IJV9$o^zW4fx+u?E2w#aGs<)D%8u#1lq3D~tFd#uRuyUxN_ zlj!2$HIARie}b;o3G>0vxDe^7;mw|RqwnTM(YQ`-a3?>=R>rw#q?5Y???treMr`cb z|EUMp{v1P>AqJ!TvX=5HFXivPjo9MJ&92UhQ-%>1kOo~N!OM3google.dataflow.v1beta3.AutoscalingAlgorithm - */ -class AutoscalingAlgorithm -{ - /** - * The algorithm is unknown, or unspecified. - * - * Generated from protobuf enum AUTOSCALING_ALGORITHM_UNKNOWN = 0; - */ - const AUTOSCALING_ALGORITHM_UNKNOWN = 0; - /** - * Disable autoscaling. - * - * Generated from protobuf enum AUTOSCALING_ALGORITHM_NONE = 1; - */ - const AUTOSCALING_ALGORITHM_NONE = 1; - /** - * Increase worker count over time to reduce job execution time. - * - * Generated from protobuf enum AUTOSCALING_ALGORITHM_BASIC = 2; - */ - const AUTOSCALING_ALGORITHM_BASIC = 2; - - private static $valueToName = [ - self::AUTOSCALING_ALGORITHM_UNKNOWN => 'AUTOSCALING_ALGORITHM_UNKNOWN', - self::AUTOSCALING_ALGORITHM_NONE => 'AUTOSCALING_ALGORITHM_NONE', - self::AUTOSCALING_ALGORITHM_BASIC => 'AUTOSCALING_ALGORITHM_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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingEvent.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingEvent.php deleted file mode 100644 index dce07d72546b..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingEvent.php +++ /dev/null @@ -1,270 +0,0 @@ -google.dataflow.v1beta3.AutoscalingEvent - */ -class AutoscalingEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The current number of workers the job has. - * - * Generated from protobuf field int64 current_num_workers = 1; - */ - protected $current_num_workers = 0; - /** - * The target number of workers the worker pool wants to resize to use. - * - * Generated from protobuf field int64 target_num_workers = 2; - */ - protected $target_num_workers = 0; - /** - * The type of autoscaling event to report. - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3; - */ - protected $event_type = 0; - /** - * A message describing why the system decided to adjust the current - * number of workers, why it failed, or why the system decided to - * not make any changes to the number of workers. - * - * Generated from protobuf field .google.dataflow.v1beta3.StructuredMessage description = 4; - */ - protected $description = null; - /** - * The time this event was emitted to indicate a new target or current - * num_workers value. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 5; - */ - protected $time = null; - /** - * A short and friendly name for the worker pool this event refers to. - * - * Generated from protobuf field string worker_pool = 7; - */ - protected $worker_pool = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $current_num_workers - * The current number of workers the job has. - * @type int|string $target_num_workers - * The target number of workers the worker pool wants to resize to use. - * @type int $event_type - * The type of autoscaling event to report. - * @type \Google\Cloud\Dataflow\V1beta3\StructuredMessage $description - * A message describing why the system decided to adjust the current - * number of workers, why it failed, or why the system decided to - * not make any changes to the number of workers. - * @type \Google\Protobuf\Timestamp $time - * The time this event was emitted to indicate a new target or current - * num_workers value. - * @type string $worker_pool - * A short and friendly name for the worker pool this event refers to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Messages::initOnce(); - parent::__construct($data); - } - - /** - * The current number of workers the job has. - * - * Generated from protobuf field int64 current_num_workers = 1; - * @return int|string - */ - public function getCurrentNumWorkers() - { - return $this->current_num_workers; - } - - /** - * The current number of workers the job has. - * - * Generated from protobuf field int64 current_num_workers = 1; - * @param int|string $var - * @return $this - */ - public function setCurrentNumWorkers($var) - { - GPBUtil::checkInt64($var); - $this->current_num_workers = $var; - - return $this; - } - - /** - * The target number of workers the worker pool wants to resize to use. - * - * Generated from protobuf field int64 target_num_workers = 2; - * @return int|string - */ - public function getTargetNumWorkers() - { - return $this->target_num_workers; - } - - /** - * The target number of workers the worker pool wants to resize to use. - * - * Generated from protobuf field int64 target_num_workers = 2; - * @param int|string $var - * @return $this - */ - public function setTargetNumWorkers($var) - { - GPBUtil::checkInt64($var); - $this->target_num_workers = $var; - - return $this; - } - - /** - * The type of autoscaling event to report. - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3; - * @return int - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * The type of autoscaling event to report. - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType event_type = 3; - * @param int $var - * @return $this - */ - public function setEventType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\AutoscalingEvent\AutoscalingEventType::class); - $this->event_type = $var; - - return $this; - } - - /** - * A message describing why the system decided to adjust the current - * number of workers, why it failed, or why the system decided to - * not make any changes to the number of workers. - * - * Generated from protobuf field .google.dataflow.v1beta3.StructuredMessage description = 4; - * @return \Google\Cloud\Dataflow\V1beta3\StructuredMessage|null - */ - public function getDescription() - { - return $this->description; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * A message describing why the system decided to adjust the current - * number of workers, why it failed, or why the system decided to - * not make any changes to the number of workers. - * - * Generated from protobuf field .google.dataflow.v1beta3.StructuredMessage description = 4; - * @param \Google\Cloud\Dataflow\V1beta3\StructuredMessage $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\StructuredMessage::class); - $this->description = $var; - - return $this; - } - - /** - * The time this event was emitted to indicate a new target or current - * num_workers value. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * The time this event was emitted to indicate a new target or current - * num_workers value. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * A short and friendly name for the worker pool this event refers to. - * - * Generated from protobuf field string worker_pool = 7; - * @return string - */ - public function getWorkerPool() - { - return $this->worker_pool; - } - - /** - * A short and friendly name for the worker pool this event refers to. - * - * Generated from protobuf field string worker_pool = 7; - * @param string $var - * @return $this - */ - public function setWorkerPool($var) - { - GPBUtil::checkString($var, True); - $this->worker_pool = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingEvent/AutoscalingEventType.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingEvent/AutoscalingEventType.php deleted file mode 100644 index 4a5aa81d5fbb..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingEvent/AutoscalingEventType.php +++ /dev/null @@ -1,88 +0,0 @@ -google.dataflow.v1beta3.AutoscalingEvent.AutoscalingEventType - */ -class AutoscalingEventType -{ - /** - * Default type for the enum. Value should never be returned. - * - * Generated from protobuf enum TYPE_UNKNOWN = 0; - */ - const TYPE_UNKNOWN = 0; - /** - * The TARGET_NUM_WORKERS_CHANGED type should be used when the target - * worker pool size has changed at the start of an actuation. An event - * should always be specified as TARGET_NUM_WORKERS_CHANGED if it reflects - * a change in the target_num_workers. - * - * Generated from protobuf enum TARGET_NUM_WORKERS_CHANGED = 1; - */ - const TARGET_NUM_WORKERS_CHANGED = 1; - /** - * The CURRENT_NUM_WORKERS_CHANGED type should be used when actual worker - * pool size has been changed, but the target_num_workers has not changed. - * - * Generated from protobuf enum CURRENT_NUM_WORKERS_CHANGED = 2; - */ - const CURRENT_NUM_WORKERS_CHANGED = 2; - /** - * The ACTUATION_FAILURE type should be used when we want to report - * an error to the user indicating why the current number of workers - * in the pool could not be changed. - * Displayed in the current status and history widgets. - * - * Generated from protobuf enum ACTUATION_FAILURE = 3; - */ - const ACTUATION_FAILURE = 3; - /** - * Used when we want to report to the user a reason why we are - * not currently adjusting the number of workers. - * Should specify both target_num_workers, current_num_workers and a - * decision_message. - * - * Generated from protobuf enum NO_CHANGE = 4; - */ - const NO_CHANGE = 4; - - private static $valueToName = [ - self::TYPE_UNKNOWN => 'TYPE_UNKNOWN', - self::TARGET_NUM_WORKERS_CHANGED => 'TARGET_NUM_WORKERS_CHANGED', - self::CURRENT_NUM_WORKERS_CHANGED => 'CURRENT_NUM_WORKERS_CHANGED', - self::ACTUATION_FAILURE => 'ACTUATION_FAILURE', - self::NO_CHANGE => 'NO_CHANGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AutoscalingEventType::class, \Google\Cloud\Dataflow\V1beta3\AutoscalingEvent_AutoscalingEventType::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingSettings.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingSettings.php deleted file mode 100644 index 5becc5bd5021..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/AutoscalingSettings.php +++ /dev/null @@ -1,101 +0,0 @@ -google.dataflow.v1beta3.AutoscalingSettings - */ -class AutoscalingSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The algorithm to use for autoscaling. - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingAlgorithm algorithm = 1; - */ - protected $algorithm = 0; - /** - * The maximum number of workers to cap scaling at. - * - * Generated from protobuf field int32 max_num_workers = 2; - */ - protected $max_num_workers = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $algorithm - * The algorithm to use for autoscaling. - * @type int $max_num_workers - * The maximum number of workers to cap scaling at. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Environment::initOnce(); - parent::__construct($data); - } - - /** - * The algorithm to use for autoscaling. - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingAlgorithm algorithm = 1; - * @return int - */ - public function getAlgorithm() - { - return $this->algorithm; - } - - /** - * The algorithm to use for autoscaling. - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingAlgorithm algorithm = 1; - * @param int $var - * @return $this - */ - public function setAlgorithm($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\AutoscalingAlgorithm::class); - $this->algorithm = $var; - - return $this; - } - - /** - * The maximum number of workers to cap scaling at. - * - * Generated from protobuf field int32 max_num_workers = 2; - * @return int - */ - public function getMaxNumWorkers() - { - return $this->max_num_workers; - } - - /** - * The maximum number of workers to cap scaling at. - * - * Generated from protobuf field int32 max_num_workers = 2; - * @param int $var - * @return $this - */ - public function setMaxNumWorkers($var) - { - GPBUtil::checkInt32($var); - $this->max_num_workers = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/BigQueryIODetails.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/BigQueryIODetails.php deleted file mode 100644 index bf20e64e8359..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/BigQueryIODetails.php +++ /dev/null @@ -1,169 +0,0 @@ -google.dataflow.v1beta3.BigQueryIODetails - */ -class BigQueryIODetails extends \Google\Protobuf\Internal\Message -{ - /** - * Table accessed in the connection. - * - * Generated from protobuf field string table = 1; - */ - protected $table = ''; - /** - * Dataset accessed in the connection. - * - * Generated from protobuf field string dataset = 2; - */ - protected $dataset = ''; - /** - * Project accessed in the connection. - * - * Generated from protobuf field string project_id = 3; - */ - protected $project_id = ''; - /** - * Query used to access data in the connection. - * - * Generated from protobuf field string query = 4; - */ - protected $query = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $table - * Table accessed in the connection. - * @type string $dataset - * Dataset accessed in the connection. - * @type string $project_id - * Project accessed in the connection. - * @type string $query - * Query used to access data in the connection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * Table accessed in the connection. - * - * Generated from protobuf field string table = 1; - * @return string - */ - public function getTable() - { - return $this->table; - } - - /** - * Table accessed in the connection. - * - * Generated from protobuf field string table = 1; - * @param string $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkString($var, True); - $this->table = $var; - - return $this; - } - - /** - * Dataset accessed in the connection. - * - * Generated from protobuf field string dataset = 2; - * @return string - */ - public function getDataset() - { - return $this->dataset; - } - - /** - * Dataset accessed in the connection. - * - * Generated from protobuf field string dataset = 2; - * @param string $var - * @return $this - */ - public function setDataset($var) - { - GPBUtil::checkString($var, True); - $this->dataset = $var; - - return $this; - } - - /** - * Project accessed in the connection. - * - * Generated from protobuf field string project_id = 3; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project accessed in the connection. - * - * 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; - } - - /** - * Query used to access data in the connection. - * - * Generated from protobuf field string query = 4; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Query used to access data in the connection. - * - * Generated from protobuf field string query = 4; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/BigTableIODetails.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/BigTableIODetails.php deleted file mode 100644 index 78391624fb5c..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/BigTableIODetails.php +++ /dev/null @@ -1,135 +0,0 @@ -google.dataflow.v1beta3.BigTableIODetails - */ -class BigTableIODetails extends \Google\Protobuf\Internal\Message -{ - /** - * ProjectId accessed in the connection. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * InstanceId accessed in the connection. - * - * Generated from protobuf field string instance_id = 2; - */ - protected $instance_id = ''; - /** - * TableId accessed in the connection. - * - * Generated from protobuf field string table_id = 3; - */ - protected $table_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * ProjectId accessed in the connection. - * @type string $instance_id - * InstanceId accessed in the connection. - * @type string $table_id - * TableId accessed in the connection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * ProjectId accessed in the connection. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * ProjectId accessed in the connection. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * InstanceId accessed in the connection. - * - * Generated from protobuf field string instance_id = 2; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * InstanceId accessed in the connection. - * - * Generated from protobuf field string instance_id = 2; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * TableId accessed in the connection. - * - * Generated from protobuf field string table_id = 3; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * TableId accessed in the connection. - * - * Generated from protobuf field string table_id = 3; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CheckActiveJobsRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CheckActiveJobsRequest.php deleted file mode 100644 index 07188cead57f..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CheckActiveJobsRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.dataflow.v1beta3.CheckActiveJobsRequest - */ -class CheckActiveJobsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The project which owns the jobs. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The project which owns the jobs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The project which owns the jobs. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project which owns the jobs. - * - * Generated from protobuf field string project_id = 1; - * @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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CheckActiveJobsResponse.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CheckActiveJobsResponse.php deleted file mode 100644 index d2d94949d7d7..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CheckActiveJobsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.dataflow.v1beta3.CheckActiveJobsResponse - */ -class CheckActiveJobsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * If True, active jobs exists for project. False otherwise. - * - * Generated from protobuf field bool active_jobs_exist = 1; - */ - protected $active_jobs_exist = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $active_jobs_exist - * If True, active jobs exists for project. False otherwise. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * If True, active jobs exists for project. False otherwise. - * - * Generated from protobuf field bool active_jobs_exist = 1; - * @return bool - */ - public function getActiveJobsExist() - { - return $this->active_jobs_exist; - } - - /** - * If True, active jobs exists for project. False otherwise. - * - * Generated from protobuf field bool active_jobs_exist = 1; - * @param bool $var - * @return $this - */ - public function setActiveJobsExist($var) - { - GPBUtil::checkBool($var); - $this->active_jobs_exist = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ComputationTopology.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ComputationTopology.php deleted file mode 100644 index 42c93a67fc78..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ComputationTopology.php +++ /dev/null @@ -1,237 +0,0 @@ -google.dataflow.v1beta3.ComputationTopology - */ -class ComputationTopology extends \Google\Protobuf\Internal\Message -{ - /** - * The system stage name. - * - * Generated from protobuf field string system_stage_name = 1; - */ - protected $system_stage_name = ''; - /** - * The ID of the computation. - * - * Generated from protobuf field string computation_id = 5; - */ - protected $computation_id = ''; - /** - * The key ranges processed by the computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.KeyRangeLocation key_ranges = 2; - */ - private $key_ranges; - /** - * The inputs to the computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StreamLocation inputs = 3; - */ - private $inputs; - /** - * The outputs from the computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StreamLocation outputs = 4; - */ - private $outputs; - /** - * The state family values. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StateFamilyConfig state_families = 7; - */ - private $state_families; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $system_stage_name - * The system stage name. - * @type string $computation_id - * The ID of the computation. - * @type array<\Google\Cloud\Dataflow\V1beta3\KeyRangeLocation>|\Google\Protobuf\Internal\RepeatedField $key_ranges - * The key ranges processed by the computation. - * @type array<\Google\Cloud\Dataflow\V1beta3\StreamLocation>|\Google\Protobuf\Internal\RepeatedField $inputs - * The inputs to the computation. - * @type array<\Google\Cloud\Dataflow\V1beta3\StreamLocation>|\Google\Protobuf\Internal\RepeatedField $outputs - * The outputs from the computation. - * @type array<\Google\Cloud\Dataflow\V1beta3\StateFamilyConfig>|\Google\Protobuf\Internal\RepeatedField $state_families - * The state family values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * The system stage name. - * - * Generated from protobuf field string system_stage_name = 1; - * @return string - */ - public function getSystemStageName() - { - return $this->system_stage_name; - } - - /** - * The system stage name. - * - * Generated from protobuf field string system_stage_name = 1; - * @param string $var - * @return $this - */ - public function setSystemStageName($var) - { - GPBUtil::checkString($var, True); - $this->system_stage_name = $var; - - return $this; - } - - /** - * The ID of the computation. - * - * Generated from protobuf field string computation_id = 5; - * @return string - */ - public function getComputationId() - { - return $this->computation_id; - } - - /** - * The ID of the computation. - * - * Generated from protobuf field string computation_id = 5; - * @param string $var - * @return $this - */ - public function setComputationId($var) - { - GPBUtil::checkString($var, True); - $this->computation_id = $var; - - return $this; - } - - /** - * The key ranges processed by the computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.KeyRangeLocation key_ranges = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeyRanges() - { - return $this->key_ranges; - } - - /** - * The key ranges processed by the computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.KeyRangeLocation key_ranges = 2; - * @param array<\Google\Cloud\Dataflow\V1beta3\KeyRangeLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeyRanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\KeyRangeLocation::class); - $this->key_ranges = $arr; - - return $this; - } - - /** - * The inputs to the computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StreamLocation inputs = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInputs() - { - return $this->inputs; - } - - /** - * The inputs to the computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StreamLocation inputs = 3; - * @param array<\Google\Cloud\Dataflow\V1beta3\StreamLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInputs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\StreamLocation::class); - $this->inputs = $arr; - - return $this; - } - - /** - * The outputs from the computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StreamLocation outputs = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOutputs() - { - return $this->outputs; - } - - /** - * The outputs from the computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StreamLocation outputs = 4; - * @param array<\Google\Cloud\Dataflow\V1beta3\StreamLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOutputs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\StreamLocation::class); - $this->outputs = $arr; - - return $this; - } - - /** - * The state family values. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StateFamilyConfig state_families = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStateFamilies() - { - return $this->state_families; - } - - /** - * The state family values. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StateFamilyConfig state_families = 7; - * @param array<\Google\Cloud\Dataflow\V1beta3\StateFamilyConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStateFamilies($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\StateFamilyConfig::class); - $this->state_families = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ContainerSpec.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ContainerSpec.php deleted file mode 100644 index 54c9c6c1ca77..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ContainerSpec.php +++ /dev/null @@ -1,199 +0,0 @@ -google.dataflow.v1beta3.ContainerSpec - */ -class ContainerSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the docker container image. E.g., gcr.io/project/some-image - * - * Generated from protobuf field string image = 1; - */ - protected $image = ''; - /** - * Metadata describing a template including description and validation rules. - * - * Generated from protobuf field .google.dataflow.v1beta3.TemplateMetadata metadata = 2; - */ - protected $metadata = null; - /** - * Required. SDK info of the Flex Template. - * - * Generated from protobuf field .google.dataflow.v1beta3.SDKInfo sdk_info = 3; - */ - protected $sdk_info = null; - /** - * Default runtime environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4; - */ - protected $default_environment = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image - * Name of the docker container image. E.g., gcr.io/project/some-image - * @type \Google\Cloud\Dataflow\V1beta3\TemplateMetadata $metadata - * Metadata describing a template including description and validation rules. - * @type \Google\Cloud\Dataflow\V1beta3\SDKInfo $sdk_info - * Required. SDK info of the Flex Template. - * @type \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment $default_environment - * Default runtime environment for the job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Name of the docker container image. E.g., gcr.io/project/some-image - * - * Generated from protobuf field string image = 1; - * @return string - */ - public function getImage() - { - return $this->image; - } - - /** - * Name of the docker container image. E.g., gcr.io/project/some-image - * - * Generated from protobuf field string image = 1; - * @param string $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkString($var, True); - $this->image = $var; - - return $this; - } - - /** - * Metadata describing a template including description and validation rules. - * - * Generated from protobuf field .google.dataflow.v1beta3.TemplateMetadata metadata = 2; - * @return \Google\Cloud\Dataflow\V1beta3\TemplateMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Metadata describing a template including description and validation rules. - * - * Generated from protobuf field .google.dataflow.v1beta3.TemplateMetadata metadata = 2; - * @param \Google\Cloud\Dataflow\V1beta3\TemplateMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\TemplateMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Required. SDK info of the Flex Template. - * - * Generated from protobuf field .google.dataflow.v1beta3.SDKInfo sdk_info = 3; - * @return \Google\Cloud\Dataflow\V1beta3\SDKInfo|null - */ - public function getSdkInfo() - { - return $this->sdk_info; - } - - public function hasSdkInfo() - { - return isset($this->sdk_info); - } - - public function clearSdkInfo() - { - unset($this->sdk_info); - } - - /** - * Required. SDK info of the Flex Template. - * - * Generated from protobuf field .google.dataflow.v1beta3.SDKInfo sdk_info = 3; - * @param \Google\Cloud\Dataflow\V1beta3\SDKInfo $var - * @return $this - */ - public function setSdkInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\SDKInfo::class); - $this->sdk_info = $var; - - return $this; - } - - /** - * Default runtime environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4; - * @return \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment|null - */ - public function getDefaultEnvironment() - { - return $this->default_environment; - } - - public function hasDefaultEnvironment() - { - return isset($this->default_environment); - } - - public function clearDefaultEnvironment() - { - unset($this->default_environment); - } - - /** - * Default runtime environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment default_environment = 4; - * @param \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment $var - * @return $this - */ - public function setDefaultEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment::class); - $this->default_environment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CreateJobFromTemplateRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CreateJobFromTemplateRequest.php deleted file mode 100644 index c871ad251d03..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CreateJobFromTemplateRequest.php +++ /dev/null @@ -1,269 +0,0 @@ -google.dataflow.v1beta3.CreateJobFromTemplateRequest - */ -class CreateJobFromTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Required. The job name to use for the created job. - * - * Generated from protobuf field string job_name = 4; - */ - protected $job_name = ''; - /** - * The runtime parameters to pass to the job. - * - * Generated from protobuf field map parameters = 3; - */ - private $parameters; - /** - * The runtime environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.RuntimeEnvironment environment = 5; - */ - protected $environment = null; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * - * Generated from protobuf field string location = 6; - */ - protected $location = ''; - protected $template; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the Cloud Platform project that the job belongs to. - * @type string $job_name - * Required. The job name to use for the created job. - * @type string $gcs_path - * Required. A Cloud Storage path to the template from which to - * create the job. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * @type array|\Google\Protobuf\Internal\MapField $parameters - * The runtime parameters to pass to the job. - * @type \Google\Cloud\Dataflow\V1beta3\RuntimeEnvironment $environment - * The runtime environment for the job. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The job name to use for the created job. - * - * Generated from protobuf field string job_name = 4; - * @return string - */ - public function getJobName() - { - return $this->job_name; - } - - /** - * Required. The job name to use for the created job. - * - * Generated from protobuf field string job_name = 4; - * @param string $var - * @return $this - */ - public function setJobName($var) - { - GPBUtil::checkString($var, True); - $this->job_name = $var; - - return $this; - } - - /** - * Required. A Cloud Storage path to the template from which to - * create the job. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string gcs_path = 2; - * @return string - */ - public function getGcsPath() - { - return $this->readOneof(2); - } - - public function hasGcsPath() - { - return $this->hasOneof(2); - } - - /** - * Required. A Cloud Storage path to the template from which to - * create the job. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string gcs_path = 2; - * @param string $var - * @return $this - */ - public function setGcsPath($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The runtime parameters to pass to the job. - * - * Generated from protobuf field map parameters = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * The runtime parameters to pass to the job. - * - * Generated from protobuf field map parameters = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->parameters = $arr; - - return $this; - } - - /** - * The runtime environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.RuntimeEnvironment environment = 5; - * @return \Google\Cloud\Dataflow\V1beta3\RuntimeEnvironment|null - */ - public function getEnvironment() - { - return $this->environment; - } - - public function hasEnvironment() - { - return isset($this->environment); - } - - public function clearEnvironment() - { - unset($this->environment); - } - - /** - * The runtime environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.RuntimeEnvironment environment = 5; - * @param \Google\Cloud\Dataflow\V1beta3\RuntimeEnvironment $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\RuntimeEnvironment::class); - $this->environment = $var; - - return $this; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * - * Generated from protobuf field string location = 6; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * - * Generated from protobuf field string location = 6; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * @return string - */ - public function getTemplate() - { - return $this->whichOneof("template"); - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CreateJobRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CreateJobRequest.php deleted file mode 100644 index 32c308bf5729..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CreateJobRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.dataflow.v1beta3.CreateJobRequest - */ -class CreateJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The job to create. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 2; - */ - protected $job = null; - /** - * The level of information requested in response. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobView view = 3; - */ - protected $view = 0; - /** - * Deprecated. This field is now in the Job message. - * - * Generated from protobuf field string replace_job_id = 4; - */ - protected $replace_job_id = ''; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 5; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The ID of the Cloud Platform project that the job belongs to. - * @type \Google\Cloud\Dataflow\V1beta3\Job $job - * The job to create. - * @type int $view - * The level of information requested in response. - * @type string $replace_job_id - * Deprecated. This field is now in the Job message. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The job to create. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 2; - * @return \Google\Cloud\Dataflow\V1beta3\Job|null - */ - public function getJob() - { - return $this->job; - } - - public function hasJob() - { - return isset($this->job); - } - - public function clearJob() - { - unset($this->job); - } - - /** - * The job to create. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 2; - * @param \Google\Cloud\Dataflow\V1beta3\Job $var - * @return $this - */ - public function setJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\Job::class); - $this->job = $var; - - return $this; - } - - /** - * The level of information requested in response. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobView view = 3; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The level of information requested in response. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobView view = 3; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\JobView::class); - $this->view = $var; - - return $this; - } - - /** - * Deprecated. This field is now in the Job message. - * - * Generated from protobuf field string replace_job_id = 4; - * @return string - */ - public function getReplaceJobId() - { - return $this->replace_job_id; - } - - /** - * Deprecated. This field is now in the Job message. - * - * Generated from protobuf field string replace_job_id = 4; - * @param string $var - * @return $this - */ - public function setReplaceJobId($var) - { - GPBUtil::checkString($var, True); - $this->replace_job_id = $var; - - return $this; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 5; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 5; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CustomSourceLocation.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CustomSourceLocation.php deleted file mode 100644 index 7f631a775004..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/CustomSourceLocation.php +++ /dev/null @@ -1,67 +0,0 @@ -google.dataflow.v1beta3.CustomSourceLocation - */ -class CustomSourceLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Whether this source is stateful. - * - * Generated from protobuf field bool stateful = 1; - */ - protected $stateful = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $stateful - * Whether this source is stateful. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * Whether this source is stateful. - * - * Generated from protobuf field bool stateful = 1; - * @return bool - */ - public function getStateful() - { - return $this->stateful; - } - - /** - * Whether this source is stateful. - * - * Generated from protobuf field bool stateful = 1; - * @param bool $var - * @return $this - */ - public function setStateful($var) - { - GPBUtil::checkBool($var); - $this->stateful = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DataDiskAssignment.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DataDiskAssignment.php deleted file mode 100644 index ac0fec435a17..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DataDiskAssignment.php +++ /dev/null @@ -1,117 +0,0 @@ -google.dataflow.v1beta3.DataDiskAssignment - */ -class DataDiskAssignment extends \Google\Protobuf\Internal\Message -{ - /** - * VM instance name the data disks mounted to, for example - * "myproject-1014-104817-4c2-harness-0". - * - * Generated from protobuf field string vm_instance = 1; - */ - protected $vm_instance = ''; - /** - * Mounted data disks. The order is important a data disk's 0-based index in - * this list defines which persistent directory the disk is mounted to, for - * example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, - * { "myproject-1014-104817-4c2-harness-0-disk-1" }. - * - * Generated from protobuf field repeated string data_disks = 2; - */ - private $data_disks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $vm_instance - * VM instance name the data disks mounted to, for example - * "myproject-1014-104817-4c2-harness-0". - * @type array|\Google\Protobuf\Internal\RepeatedField $data_disks - * Mounted data disks. The order is important a data disk's 0-based index in - * this list defines which persistent directory the disk is mounted to, for - * example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, - * { "myproject-1014-104817-4c2-harness-0-disk-1" }. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * VM instance name the data disks mounted to, for example - * "myproject-1014-104817-4c2-harness-0". - * - * Generated from protobuf field string vm_instance = 1; - * @return string - */ - public function getVmInstance() - { - return $this->vm_instance; - } - - /** - * VM instance name the data disks mounted to, for example - * "myproject-1014-104817-4c2-harness-0". - * - * Generated from protobuf field string vm_instance = 1; - * @param string $var - * @return $this - */ - public function setVmInstance($var) - { - GPBUtil::checkString($var, True); - $this->vm_instance = $var; - - return $this; - } - - /** - * Mounted data disks. The order is important a data disk's 0-based index in - * this list defines which persistent directory the disk is mounted to, for - * example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, - * { "myproject-1014-104817-4c2-harness-0-disk-1" }. - * - * Generated from protobuf field repeated string data_disks = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataDisks() - { - return $this->data_disks; - } - - /** - * Mounted data disks. The order is important a data disk's 0-based index in - * this list defines which persistent directory the disk is mounted to, for - * example the list of { "myproject-1014-104817-4c2-harness-0-disk-0" }, - * { "myproject-1014-104817-4c2-harness-0-disk-1" }. - * - * Generated from protobuf field repeated string data_disks = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataDisks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->data_disks = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DatastoreIODetails.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DatastoreIODetails.php deleted file mode 100644 index 028783f08fd7..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DatastoreIODetails.php +++ /dev/null @@ -1,101 +0,0 @@ -google.dataflow.v1beta3.DatastoreIODetails - */ -class DatastoreIODetails extends \Google\Protobuf\Internal\Message -{ - /** - * Namespace used in the connection. - * - * Generated from protobuf field string namespace = 1; - */ - protected $namespace = ''; - /** - * ProjectId accessed in the connection. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $namespace - * Namespace used in the connection. - * @type string $project_id - * ProjectId accessed in the connection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * Namespace used in the connection. - * - * Generated from protobuf field string namespace = 1; - * @return string - */ - public function getNamespace() - { - return $this->namespace; - } - - /** - * Namespace used in the connection. - * - * Generated from protobuf field string namespace = 1; - * @param string $var - * @return $this - */ - public function setNamespace($var) - { - GPBUtil::checkString($var, True); - $this->namespace = $var; - - return $this; - } - - /** - * ProjectId accessed in the connection. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * ProjectId accessed in the connection. - * - * Generated from protobuf field string project_id = 2; - * @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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DebugOptions.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DebugOptions.php deleted file mode 100644 index d907266c4e09..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DebugOptions.php +++ /dev/null @@ -1,71 +0,0 @@ -google.dataflow.v1beta3.DebugOptions - */ -class DebugOptions extends \Google\Protobuf\Internal\Message -{ - /** - * When true, enables the logging of the literal hot key to the user's Cloud - * Logging. - * - * Generated from protobuf field bool enable_hot_key_logging = 1; - */ - protected $enable_hot_key_logging = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_hot_key_logging - * When true, enables the logging of the literal hot key to the user's Cloud - * Logging. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Environment::initOnce(); - parent::__construct($data); - } - - /** - * When true, enables the logging of the literal hot key to the user's Cloud - * Logging. - * - * Generated from protobuf field bool enable_hot_key_logging = 1; - * @return bool - */ - public function getEnableHotKeyLogging() - { - return $this->enable_hot_key_logging; - } - - /** - * When true, enables the logging of the literal hot key to the user's Cloud - * Logging. - * - * Generated from protobuf field bool enable_hot_key_logging = 1; - * @param bool $var - * @return $this - */ - public function setEnableHotKeyLogging($var) - { - GPBUtil::checkBool($var); - $this->enable_hot_key_logging = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DefaultPackageSet.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DefaultPackageSet.php deleted file mode 100644 index a64ee0143157..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DefaultPackageSet.php +++ /dev/null @@ -1,69 +0,0 @@ -google.dataflow.v1beta3.DefaultPackageSet - */ -class DefaultPackageSet -{ - /** - * The default set of packages to stage is unknown, or unspecified. - * - * Generated from protobuf enum DEFAULT_PACKAGE_SET_UNKNOWN = 0; - */ - const DEFAULT_PACKAGE_SET_UNKNOWN = 0; - /** - * Indicates that no packages should be staged at the worker unless - * explicitly specified by the job. - * - * Generated from protobuf enum DEFAULT_PACKAGE_SET_NONE = 1; - */ - const DEFAULT_PACKAGE_SET_NONE = 1; - /** - * Stage packages typically useful to workers written in Java. - * - * Generated from protobuf enum DEFAULT_PACKAGE_SET_JAVA = 2; - */ - const DEFAULT_PACKAGE_SET_JAVA = 2; - /** - * Stage packages typically useful to workers written in Python. - * - * Generated from protobuf enum DEFAULT_PACKAGE_SET_PYTHON = 3; - */ - const DEFAULT_PACKAGE_SET_PYTHON = 3; - - private static $valueToName = [ - self::DEFAULT_PACKAGE_SET_UNKNOWN => 'DEFAULT_PACKAGE_SET_UNKNOWN', - self::DEFAULT_PACKAGE_SET_NONE => 'DEFAULT_PACKAGE_SET_NONE', - self::DEFAULT_PACKAGE_SET_JAVA => 'DEFAULT_PACKAGE_SET_JAVA', - self::DEFAULT_PACKAGE_SET_PYTHON => 'DEFAULT_PACKAGE_SET_PYTHON', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DeleteSnapshotRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DeleteSnapshotRequest.php deleted file mode 100644 index 5e3c13c4f757..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DeleteSnapshotRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.dataflow.v1beta3.DeleteSnapshotRequest - */ -class DeleteSnapshotRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the Cloud Platform project that the snapshot belongs to. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The ID of the snapshot. - * - * Generated from protobuf field string snapshot_id = 2; - */ - protected $snapshot_id = ''; - /** - * The location that contains this snapshot. - * - * Generated from protobuf field string location = 3; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The ID of the Cloud Platform project that the snapshot belongs to. - * @type string $snapshot_id - * The ID of the snapshot. - * @type string $location - * The location that contains this snapshot. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Snapshots::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the Cloud Platform project that the snapshot belongs to. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the Cloud Platform project that the snapshot belongs to. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The ID of the snapshot. - * - * Generated from protobuf field string snapshot_id = 2; - * @return string - */ - public function getSnapshotId() - { - return $this->snapshot_id; - } - - /** - * The ID of the snapshot. - * - * Generated from protobuf field string snapshot_id = 2; - * @param string $var - * @return $this - */ - public function setSnapshotId($var) - { - GPBUtil::checkString($var, True); - $this->snapshot_id = $var; - - return $this; - } - - /** - * The location that contains this snapshot. - * - * Generated from protobuf field string location = 3; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The location that contains this snapshot. - * - * Generated from protobuf field string location = 3; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DeleteSnapshotResponse.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DeleteSnapshotResponse.php deleted file mode 100644 index c7270b82bcb9..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DeleteSnapshotResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.dataflow.v1beta3.DeleteSnapshotResponse - */ -class DeleteSnapshotResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Snapshots::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Disk.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Disk.php deleted file mode 100644 index 5cce44bd8a71..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Disk.php +++ /dev/null @@ -1,195 +0,0 @@ -google.dataflow.v1beta3.Disk - */ -class Disk extends \Google\Protobuf\Internal\Message -{ - /** - * Size of disk in GB. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field int32 size_gb = 1; - */ - protected $size_gb = 0; - /** - * Disk storage type, as defined by Google Compute Engine. This - * must be a disk type appropriate to the project and zone in which - * the workers will run. If unknown or unspecified, the service - * will attempt to choose a reasonable default. - * For example, the standard persistent disk type is a resource name - * typically ending in "pd-standard". If SSD persistent disks are - * available, the resource name typically ends with "pd-ssd". The - * actual valid values are defined the Google Compute Engine API, - * not by the Cloud Dataflow API; consult the Google Compute Engine - * documentation for more information about determining the set of - * available disk types for a particular project and zone. - * Google Compute Engine Disk types are local to a particular - * project in a particular zone, and so the resource name will - * typically look something like this: - * compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard - * - * Generated from protobuf field string disk_type = 2; - */ - protected $disk_type = ''; - /** - * Directory in a VM where disk is mounted. - * - * Generated from protobuf field string mount_point = 3; - */ - protected $mount_point = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $size_gb - * Size of disk in GB. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * @type string $disk_type - * Disk storage type, as defined by Google Compute Engine. This - * must be a disk type appropriate to the project and zone in which - * the workers will run. If unknown or unspecified, the service - * will attempt to choose a reasonable default. - * For example, the standard persistent disk type is a resource name - * typically ending in "pd-standard". If SSD persistent disks are - * available, the resource name typically ends with "pd-ssd". The - * actual valid values are defined the Google Compute Engine API, - * not by the Cloud Dataflow API; consult the Google Compute Engine - * documentation for more information about determining the set of - * available disk types for a particular project and zone. - * Google Compute Engine Disk types are local to a particular - * project in a particular zone, and so the resource name will - * typically look something like this: - * compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard - * @type string $mount_point - * Directory in a VM where disk is mounted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Environment::initOnce(); - parent::__construct($data); - } - - /** - * Size of disk in GB. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field int32 size_gb = 1; - * @return int - */ - public function getSizeGb() - { - return $this->size_gb; - } - - /** - * Size of disk in GB. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field int32 size_gb = 1; - * @param int $var - * @return $this - */ - public function setSizeGb($var) - { - GPBUtil::checkInt32($var); - $this->size_gb = $var; - - return $this; - } - - /** - * Disk storage type, as defined by Google Compute Engine. This - * must be a disk type appropriate to the project and zone in which - * the workers will run. If unknown or unspecified, the service - * will attempt to choose a reasonable default. - * For example, the standard persistent disk type is a resource name - * typically ending in "pd-standard". If SSD persistent disks are - * available, the resource name typically ends with "pd-ssd". The - * actual valid values are defined the Google Compute Engine API, - * not by the Cloud Dataflow API; consult the Google Compute Engine - * documentation for more information about determining the set of - * available disk types for a particular project and zone. - * Google Compute Engine Disk types are local to a particular - * project in a particular zone, and so the resource name will - * typically look something like this: - * compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard - * - * Generated from protobuf field string disk_type = 2; - * @return string - */ - public function getDiskType() - { - return $this->disk_type; - } - - /** - * Disk storage type, as defined by Google Compute Engine. This - * must be a disk type appropriate to the project and zone in which - * the workers will run. If unknown or unspecified, the service - * will attempt to choose a reasonable default. - * For example, the standard persistent disk type is a resource name - * typically ending in "pd-standard". If SSD persistent disks are - * available, the resource name typically ends with "pd-ssd". The - * actual valid values are defined the Google Compute Engine API, - * not by the Cloud Dataflow API; consult the Google Compute Engine - * documentation for more information about determining the set of - * available disk types for a particular project and zone. - * Google Compute Engine Disk types are local to a particular - * project in a particular zone, and so the resource name will - * typically look something like this: - * compute.googleapis.com/projects/project-id/zones/zone/diskTypes/pd-standard - * - * Generated from protobuf field string disk_type = 2; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Directory in a VM where disk is mounted. - * - * Generated from protobuf field string mount_point = 3; - * @return string - */ - public function getMountPoint() - { - return $this->mount_point; - } - - /** - * Directory in a VM where disk is mounted. - * - * Generated from protobuf field string mount_point = 3; - * @param string $var - * @return $this - */ - public function setMountPoint($var) - { - GPBUtil::checkString($var, True); - $this->mount_point = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DisplayData.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DisplayData.php deleted file mode 100644 index 72581fb44af6..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DisplayData.php +++ /dev/null @@ -1,483 +0,0 @@ -google.dataflow.v1beta3.DisplayData - */ -class DisplayData extends \Google\Protobuf\Internal\Message -{ - /** - * The key identifying the display data. - * This is intended to be used as a label for the display data - * when viewed in a dax monitoring system. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The namespace for the key. This is usually a class name or programming - * language namespace (i.e. python module) which defines the display data. - * This allows a dax monitoring system to specially handle the data - * and perform custom rendering. - * - * Generated from protobuf field string namespace = 2; - */ - protected $namespace = ''; - /** - * A possible additional shorter value to display. - * For example a java_class_name_value of com.mypackage.MyDoFn - * will be stored with MyDoFn as the short_str_value and - * com.mypackage.MyDoFn as the java_class_name value. - * short_str_value can be displayed and java_class_name_value - * will be displayed as a tooltip. - * - * Generated from protobuf field string short_str_value = 11; - */ - protected $short_str_value = ''; - /** - * An optional full URL. - * - * Generated from protobuf field string url = 12; - */ - protected $url = ''; - /** - * An optional label to display in a dax UI for the element. - * - * Generated from protobuf field string label = 13; - */ - protected $label = ''; - protected $Value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The key identifying the display data. - * This is intended to be used as a label for the display data - * when viewed in a dax monitoring system. - * @type string $namespace - * The namespace for the key. This is usually a class name or programming - * language namespace (i.e. python module) which defines the display data. - * This allows a dax monitoring system to specially handle the data - * and perform custom rendering. - * @type string $str_value - * Contains value if the data is of string type. - * @type int|string $int64_value - * Contains value if the data is of int64 type. - * @type float $float_value - * Contains value if the data is of float type. - * @type string $java_class_value - * Contains value if the data is of java class type. - * @type \Google\Protobuf\Timestamp $timestamp_value - * Contains value if the data is of timestamp type. - * @type \Google\Protobuf\Duration $duration_value - * Contains value if the data is of duration type. - * @type bool $bool_value - * Contains value if the data is of a boolean type. - * @type string $short_str_value - * A possible additional shorter value to display. - * For example a java_class_name_value of com.mypackage.MyDoFn - * will be stored with MyDoFn as the short_str_value and - * com.mypackage.MyDoFn as the java_class_name value. - * short_str_value can be displayed and java_class_name_value - * will be displayed as a tooltip. - * @type string $url - * An optional full URL. - * @type string $label - * An optional label to display in a dax UI for the element. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The key identifying the display data. - * This is intended to be used as a label for the display data - * when viewed in a dax monitoring system. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The key identifying the display data. - * This is intended to be used as a label for the display data - * when viewed in a dax monitoring system. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The namespace for the key. This is usually a class name or programming - * language namespace (i.e. python module) which defines the display data. - * This allows a dax monitoring system to specially handle the data - * and perform custom rendering. - * - * Generated from protobuf field string namespace = 2; - * @return string - */ - public function getNamespace() - { - return $this->namespace; - } - - /** - * The namespace for the key. This is usually a class name or programming - * language namespace (i.e. python module) which defines the display data. - * This allows a dax monitoring system to specially handle the data - * and perform custom rendering. - * - * Generated from protobuf field string namespace = 2; - * @param string $var - * @return $this - */ - public function setNamespace($var) - { - GPBUtil::checkString($var, True); - $this->namespace = $var; - - return $this; - } - - /** - * Contains value if the data is of string type. - * - * Generated from protobuf field string str_value = 4; - * @return string - */ - public function getStrValue() - { - return $this->readOneof(4); - } - - public function hasStrValue() - { - return $this->hasOneof(4); - } - - /** - * Contains value if the data is of string type. - * - * Generated from protobuf field string str_value = 4; - * @param string $var - * @return $this - */ - public function setStrValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Contains value if the data is of int64 type. - * - * Generated from protobuf field int64 int64_value = 5; - * @return int|string - */ - public function getInt64Value() - { - return $this->readOneof(5); - } - - public function hasInt64Value() - { - return $this->hasOneof(5); - } - - /** - * Contains value if the data is of int64 type. - * - * Generated from protobuf field int64 int64_value = 5; - * @param int|string $var - * @return $this - */ - public function setInt64Value($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Contains value if the data is of float type. - * - * Generated from protobuf field float float_value = 6; - * @return float - */ - public function getFloatValue() - { - return $this->readOneof(6); - } - - public function hasFloatValue() - { - return $this->hasOneof(6); - } - - /** - * Contains value if the data is of float type. - * - * Generated from protobuf field float float_value = 6; - * @param float $var - * @return $this - */ - public function setFloatValue($var) - { - GPBUtil::checkFloat($var); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Contains value if the data is of java class type. - * - * Generated from protobuf field string java_class_value = 7; - * @return string - */ - public function getJavaClassValue() - { - return $this->readOneof(7); - } - - public function hasJavaClassValue() - { - return $this->hasOneof(7); - } - - /** - * Contains value if the data is of java class type. - * - * Generated from protobuf field string java_class_value = 7; - * @param string $var - * @return $this - */ - public function setJavaClassValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Contains value if the data is of timestamp type. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestampValue() - { - return $this->readOneof(8); - } - - public function hasTimestampValue() - { - return $this->hasOneof(8); - } - - /** - * Contains value if the data is of timestamp type. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestampValue($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Contains value if the data is of duration type. - * - * Generated from protobuf field .google.protobuf.Duration duration_value = 9; - * @return \Google\Protobuf\Duration|null - */ - public function getDurationValue() - { - return $this->readOneof(9); - } - - public function hasDurationValue() - { - return $this->hasOneof(9); - } - - /** - * Contains value if the data is of duration type. - * - * Generated from protobuf field .google.protobuf.Duration duration_value = 9; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setDurationValue($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Contains value if the data is of a boolean type. - * - * Generated from protobuf field bool bool_value = 10; - * @return bool - */ - public function getBoolValue() - { - return $this->readOneof(10); - } - - public function hasBoolValue() - { - return $this->hasOneof(10); - } - - /** - * Contains value if the data is of a boolean type. - * - * Generated from protobuf field bool bool_value = 10; - * @param bool $var - * @return $this - */ - public function setBoolValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * A possible additional shorter value to display. - * For example a java_class_name_value of com.mypackage.MyDoFn - * will be stored with MyDoFn as the short_str_value and - * com.mypackage.MyDoFn as the java_class_name value. - * short_str_value can be displayed and java_class_name_value - * will be displayed as a tooltip. - * - * Generated from protobuf field string short_str_value = 11; - * @return string - */ - public function getShortStrValue() - { - return $this->short_str_value; - } - - /** - * A possible additional shorter value to display. - * For example a java_class_name_value of com.mypackage.MyDoFn - * will be stored with MyDoFn as the short_str_value and - * com.mypackage.MyDoFn as the java_class_name value. - * short_str_value can be displayed and java_class_name_value - * will be displayed as a tooltip. - * - * Generated from protobuf field string short_str_value = 11; - * @param string $var - * @return $this - */ - public function setShortStrValue($var) - { - GPBUtil::checkString($var, True); - $this->short_str_value = $var; - - return $this; - } - - /** - * An optional full URL. - * - * Generated from protobuf field string url = 12; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * An optional full URL. - * - * Generated from protobuf field string url = 12; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * An optional label to display in a dax UI for the element. - * - * Generated from protobuf field string label = 13; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * An optional label to display in a dax UI for the element. - * - * Generated from protobuf field string label = 13; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("Value"); - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DynamicTemplateLaunchParams.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DynamicTemplateLaunchParams.php deleted file mode 100644 index 7f2bb85432ed..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/DynamicTemplateLaunchParams.php +++ /dev/null @@ -1,109 +0,0 @@ -google.dataflow.v1beta3.DynamicTemplateLaunchParams - */ -class DynamicTemplateLaunchParams extends \Google\Protobuf\Internal\Message -{ - /** - * Path to dynamic template spec file on Cloud Storage. - * The file must be a Json serialized DynamicTemplateFieSpec object. - * - * Generated from protobuf field string gcs_path = 1; - */ - protected $gcs_path = ''; - /** - * Cloud Storage path for staging dependencies. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string staging_location = 2; - */ - protected $staging_location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_path - * Path to dynamic template spec file on Cloud Storage. - * The file must be a Json serialized DynamicTemplateFieSpec object. - * @type string $staging_location - * Cloud Storage path for staging dependencies. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Path to dynamic template spec file on Cloud Storage. - * The file must be a Json serialized DynamicTemplateFieSpec object. - * - * Generated from protobuf field string gcs_path = 1; - * @return string - */ - public function getGcsPath() - { - return $this->gcs_path; - } - - /** - * Path to dynamic template spec file on Cloud Storage. - * The file must be a Json serialized DynamicTemplateFieSpec object. - * - * Generated from protobuf field string gcs_path = 1; - * @param string $var - * @return $this - */ - public function setGcsPath($var) - { - GPBUtil::checkString($var, True); - $this->gcs_path = $var; - - return $this; - } - - /** - * Cloud Storage path for staging dependencies. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string staging_location = 2; - * @return string - */ - public function getStagingLocation() - { - return $this->staging_location; - } - - /** - * Cloud Storage path for staging dependencies. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string staging_location = 2; - * @param string $var - * @return $this - */ - public function setStagingLocation($var) - { - GPBUtil::checkString($var, True); - $this->staging_location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Environment.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Environment.php deleted file mode 100644 index 0bbfff76e254..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Environment.php +++ /dev/null @@ -1,809 +0,0 @@ -google.dataflow.v1beta3.Environment - */ -class Environment extends \Google\Protobuf\Internal\Message -{ - /** - * The prefix of the resources the system should use for temporary - * storage. The system will append the suffix "/temp-{JOBNAME} to - * this resource prefix, where {JOBNAME} is the value of the - * job_name field. The resulting bucket and object prefix is used - * as the prefix of the resources used to store temporary data - * needed during the job execution. NOTE: This will override the - * value in taskrunner_settings. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string temp_storage_prefix = 1; - */ - protected $temp_storage_prefix = ''; - /** - * The type of cluster manager API to use. If unknown or - * unspecified, the service will attempt to choose a reasonable - * default. This should be in the form of the API service name, - * e.g. "compute.googleapis.com". - * - * Generated from protobuf field string cluster_manager_api_service = 2; - */ - protected $cluster_manager_api_service = ''; - /** - * The list of experiments to enable. This field should be used for SDK - * related experiments and not for service related experiments. The proper - * field for service related experiments is service_options. - * - * Generated from protobuf field repeated string experiments = 3; - */ - private $experiments; - /** - * The list of service options to enable. This field should be used for - * service related experiments only. These experiments, when graduating to GA, - * should be replaced by dedicated fields or become default (i.e. always on). - * - * Generated from protobuf field repeated string service_options = 16; - */ - private $service_options; - /** - * If set, contains the Cloud KMS key identifier used to encrypt data - * at rest, AKA a Customer Managed Encryption Key (CMEK). - * Format: - * projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY - * - * Generated from protobuf field string service_kms_key_name = 12; - */ - protected $service_kms_key_name = ''; - /** - * The worker pools. At least one "harness" worker pool must be - * specified in order for the job to have workers. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.WorkerPool worker_pools = 4; - */ - private $worker_pools; - /** - * A description of the process that generated the request. - * - * Generated from protobuf field .google.protobuf.Struct user_agent = 5; - */ - protected $user_agent = null; - /** - * A structure describing which components and their versions of the service - * are required in order to run the job. - * - * Generated from protobuf field .google.protobuf.Struct version = 6; - */ - protected $version = null; - /** - * The dataset for the current project where various workflow - * related tables are stored. - * The supported resource type is: - * Google BigQuery: - * bigquery.googleapis.com/{dataset} - * - * Generated from protobuf field string dataset = 7; - */ - protected $dataset = ''; - /** - * The Cloud Dataflow SDK pipeline options specified by the user. These - * options are passed through the service and are used to recreate the - * SDK pipeline options on the worker in a language agnostic and platform - * independent way. - * - * Generated from protobuf field .google.protobuf.Struct sdk_pipeline_options = 8; - */ - protected $sdk_pipeline_options = null; - /** - * Experimental settings. - * - * Generated from protobuf field .google.protobuf.Any internal_experiments = 9; - */ - protected $internal_experiments = null; - /** - * Identity to run virtual machines as. Defaults to the default account. - * - * Generated from protobuf field string service_account_email = 10; - */ - protected $service_account_email = ''; - /** - * Which Flexible Resource Scheduling mode to run in. - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11; - */ - protected $flex_resource_scheduling_goal = 0; - /** - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * - * Generated from protobuf field string worker_region = 13; - */ - protected $worker_region = ''; - /** - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * - * Generated from protobuf field string worker_zone = 14; - */ - protected $worker_zone = ''; - /** - * Output only. The shuffle mode used for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.ShuffleMode shuffle_mode = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $shuffle_mode = 0; - /** - * Any debugging options to be supplied to the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.DebugOptions debug_options = 17; - */ - protected $debug_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $temp_storage_prefix - * The prefix of the resources the system should use for temporary - * storage. The system will append the suffix "/temp-{JOBNAME} to - * this resource prefix, where {JOBNAME} is the value of the - * job_name field. The resulting bucket and object prefix is used - * as the prefix of the resources used to store temporary data - * needed during the job execution. NOTE: This will override the - * value in taskrunner_settings. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * @type string $cluster_manager_api_service - * The type of cluster manager API to use. If unknown or - * unspecified, the service will attempt to choose a reasonable - * default. This should be in the form of the API service name, - * e.g. "compute.googleapis.com". - * @type array|\Google\Protobuf\Internal\RepeatedField $experiments - * The list of experiments to enable. This field should be used for SDK - * related experiments and not for service related experiments. The proper - * field for service related experiments is service_options. - * @type array|\Google\Protobuf\Internal\RepeatedField $service_options - * The list of service options to enable. This field should be used for - * service related experiments only. These experiments, when graduating to GA, - * should be replaced by dedicated fields or become default (i.e. always on). - * @type string $service_kms_key_name - * If set, contains the Cloud KMS key identifier used to encrypt data - * at rest, AKA a Customer Managed Encryption Key (CMEK). - * Format: - * projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY - * @type array<\Google\Cloud\Dataflow\V1beta3\WorkerPool>|\Google\Protobuf\Internal\RepeatedField $worker_pools - * The worker pools. At least one "harness" worker pool must be - * specified in order for the job to have workers. - * @type \Google\Protobuf\Struct $user_agent - * A description of the process that generated the request. - * @type \Google\Protobuf\Struct $version - * A structure describing which components and their versions of the service - * are required in order to run the job. - * @type string $dataset - * The dataset for the current project where various workflow - * related tables are stored. - * The supported resource type is: - * Google BigQuery: - * bigquery.googleapis.com/{dataset} - * @type \Google\Protobuf\Struct $sdk_pipeline_options - * The Cloud Dataflow SDK pipeline options specified by the user. These - * options are passed through the service and are used to recreate the - * SDK pipeline options on the worker in a language agnostic and platform - * independent way. - * @type \Google\Protobuf\Any $internal_experiments - * Experimental settings. - * @type string $service_account_email - * Identity to run virtual machines as. Defaults to the default account. - * @type int $flex_resource_scheduling_goal - * Which Flexible Resource Scheduling mode to run in. - * @type string $worker_region - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * @type string $worker_zone - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * @type int $shuffle_mode - * Output only. The shuffle mode used for the job. - * @type \Google\Cloud\Dataflow\V1beta3\DebugOptions $debug_options - * Any debugging options to be supplied to the job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Environment::initOnce(); - parent::__construct($data); - } - - /** - * The prefix of the resources the system should use for temporary - * storage. The system will append the suffix "/temp-{JOBNAME} to - * this resource prefix, where {JOBNAME} is the value of the - * job_name field. The resulting bucket and object prefix is used - * as the prefix of the resources used to store temporary data - * needed during the job execution. NOTE: This will override the - * value in taskrunner_settings. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string temp_storage_prefix = 1; - * @return string - */ - public function getTempStoragePrefix() - { - return $this->temp_storage_prefix; - } - - /** - * The prefix of the resources the system should use for temporary - * storage. The system will append the suffix "/temp-{JOBNAME} to - * this resource prefix, where {JOBNAME} is the value of the - * job_name field. The resulting bucket and object prefix is used - * as the prefix of the resources used to store temporary data - * needed during the job execution. NOTE: This will override the - * value in taskrunner_settings. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string temp_storage_prefix = 1; - * @param string $var - * @return $this - */ - public function setTempStoragePrefix($var) - { - GPBUtil::checkString($var, True); - $this->temp_storage_prefix = $var; - - return $this; - } - - /** - * The type of cluster manager API to use. If unknown or - * unspecified, the service will attempt to choose a reasonable - * default. This should be in the form of the API service name, - * e.g. "compute.googleapis.com". - * - * Generated from protobuf field string cluster_manager_api_service = 2; - * @return string - */ - public function getClusterManagerApiService() - { - return $this->cluster_manager_api_service; - } - - /** - * The type of cluster manager API to use. If unknown or - * unspecified, the service will attempt to choose a reasonable - * default. This should be in the form of the API service name, - * e.g. "compute.googleapis.com". - * - * Generated from protobuf field string cluster_manager_api_service = 2; - * @param string $var - * @return $this - */ - public function setClusterManagerApiService($var) - { - GPBUtil::checkString($var, True); - $this->cluster_manager_api_service = $var; - - return $this; - } - - /** - * The list of experiments to enable. This field should be used for SDK - * related experiments and not for service related experiments. The proper - * field for service related experiments is service_options. - * - * Generated from protobuf field repeated string experiments = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExperiments() - { - return $this->experiments; - } - - /** - * The list of experiments to enable. This field should be used for SDK - * related experiments and not for service related experiments. The proper - * field for service related experiments is service_options. - * - * Generated from protobuf field repeated string experiments = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExperiments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->experiments = $arr; - - return $this; - } - - /** - * The list of service options to enable. This field should be used for - * service related experiments only. These experiments, when graduating to GA, - * should be replaced by dedicated fields or become default (i.e. always on). - * - * Generated from protobuf field repeated string service_options = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServiceOptions() - { - return $this->service_options; - } - - /** - * The list of service options to enable. This field should be used for - * service related experiments only. These experiments, when graduating to GA, - * should be replaced by dedicated fields or become default (i.e. always on). - * - * Generated from protobuf field repeated string service_options = 16; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServiceOptions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->service_options = $arr; - - return $this; - } - - /** - * If set, contains the Cloud KMS key identifier used to encrypt data - * at rest, AKA a Customer Managed Encryption Key (CMEK). - * Format: - * projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY - * - * Generated from protobuf field string service_kms_key_name = 12; - * @return string - */ - public function getServiceKmsKeyName() - { - return $this->service_kms_key_name; - } - - /** - * If set, contains the Cloud KMS key identifier used to encrypt data - * at rest, AKA a Customer Managed Encryption Key (CMEK). - * Format: - * projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY - * - * Generated from protobuf field string service_kms_key_name = 12; - * @param string $var - * @return $this - */ - public function setServiceKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->service_kms_key_name = $var; - - return $this; - } - - /** - * The worker pools. At least one "harness" worker pool must be - * specified in order for the job to have workers. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.WorkerPool worker_pools = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWorkerPools() - { - return $this->worker_pools; - } - - /** - * The worker pools. At least one "harness" worker pool must be - * specified in order for the job to have workers. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.WorkerPool worker_pools = 4; - * @param array<\Google\Cloud\Dataflow\V1beta3\WorkerPool>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWorkerPools($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\WorkerPool::class); - $this->worker_pools = $arr; - - return $this; - } - - /** - * A description of the process that generated the request. - * - * Generated from protobuf field .google.protobuf.Struct user_agent = 5; - * @return \Google\Protobuf\Struct|null - */ - public function getUserAgent() - { - return $this->user_agent; - } - - public function hasUserAgent() - { - return isset($this->user_agent); - } - - public function clearUserAgent() - { - unset($this->user_agent); - } - - /** - * A description of the process that generated the request. - * - * Generated from protobuf field .google.protobuf.Struct user_agent = 5; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setUserAgent($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->user_agent = $var; - - return $this; - } - - /** - * A structure describing which components and their versions of the service - * are required in order to run the job. - * - * Generated from protobuf field .google.protobuf.Struct version = 6; - * @return \Google\Protobuf\Struct|null - */ - public function getVersion() - { - return $this->version; - } - - public function hasVersion() - { - return isset($this->version); - } - - public function clearVersion() - { - unset($this->version); - } - - /** - * A structure describing which components and their versions of the service - * are required in order to run the job. - * - * Generated from protobuf field .google.protobuf.Struct version = 6; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->version = $var; - - return $this; - } - - /** - * The dataset for the current project where various workflow - * related tables are stored. - * The supported resource type is: - * Google BigQuery: - * bigquery.googleapis.com/{dataset} - * - * Generated from protobuf field string dataset = 7; - * @return string - */ - public function getDataset() - { - return $this->dataset; - } - - /** - * The dataset for the current project where various workflow - * related tables are stored. - * The supported resource type is: - * Google BigQuery: - * bigquery.googleapis.com/{dataset} - * - * Generated from protobuf field string dataset = 7; - * @param string $var - * @return $this - */ - public function setDataset($var) - { - GPBUtil::checkString($var, True); - $this->dataset = $var; - - return $this; - } - - /** - * The Cloud Dataflow SDK pipeline options specified by the user. These - * options are passed through the service and are used to recreate the - * SDK pipeline options on the worker in a language agnostic and platform - * independent way. - * - * Generated from protobuf field .google.protobuf.Struct sdk_pipeline_options = 8; - * @return \Google\Protobuf\Struct|null - */ - public function getSdkPipelineOptions() - { - return $this->sdk_pipeline_options; - } - - public function hasSdkPipelineOptions() - { - return isset($this->sdk_pipeline_options); - } - - public function clearSdkPipelineOptions() - { - unset($this->sdk_pipeline_options); - } - - /** - * The Cloud Dataflow SDK pipeline options specified by the user. These - * options are passed through the service and are used to recreate the - * SDK pipeline options on the worker in a language agnostic and platform - * independent way. - * - * Generated from protobuf field .google.protobuf.Struct sdk_pipeline_options = 8; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setSdkPipelineOptions($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->sdk_pipeline_options = $var; - - return $this; - } - - /** - * Experimental settings. - * - * Generated from protobuf field .google.protobuf.Any internal_experiments = 9; - * @return \Google\Protobuf\Any|null - */ - public function getInternalExperiments() - { - return $this->internal_experiments; - } - - public function hasInternalExperiments() - { - return isset($this->internal_experiments); - } - - public function clearInternalExperiments() - { - unset($this->internal_experiments); - } - - /** - * Experimental settings. - * - * Generated from protobuf field .google.protobuf.Any internal_experiments = 9; - * @param \Google\Protobuf\Any $var - * @return $this - */ - public function setInternalExperiments($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); - $this->internal_experiments = $var; - - return $this; - } - - /** - * Identity to run virtual machines as. Defaults to the default account. - * - * Generated from protobuf field string service_account_email = 10; - * @return string - */ - public function getServiceAccountEmail() - { - return $this->service_account_email; - } - - /** - * Identity to run virtual machines as. Defaults to the default account. - * - * Generated from protobuf field string service_account_email = 10; - * @param string $var - * @return $this - */ - public function setServiceAccountEmail($var) - { - GPBUtil::checkString($var, True); - $this->service_account_email = $var; - - return $this; - } - - /** - * Which Flexible Resource Scheduling mode to run in. - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11; - * @return int - */ - public function getFlexResourceSchedulingGoal() - { - return $this->flex_resource_scheduling_goal; - } - - /** - * Which Flexible Resource Scheduling mode to run in. - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexResourceSchedulingGoal flex_resource_scheduling_goal = 11; - * @param int $var - * @return $this - */ - public function setFlexResourceSchedulingGoal($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\FlexResourceSchedulingGoal::class); - $this->flex_resource_scheduling_goal = $var; - - return $this; - } - - /** - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * - * Generated from protobuf field string worker_region = 13; - * @return string - */ - public function getWorkerRegion() - { - return $this->worker_region; - } - - /** - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * - * Generated from protobuf field string worker_region = 13; - * @param string $var - * @return $this - */ - public function setWorkerRegion($var) - { - GPBUtil::checkString($var, True); - $this->worker_region = $var; - - return $this; - } - - /** - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * - * Generated from protobuf field string worker_zone = 14; - * @return string - */ - public function getWorkerZone() - { - return $this->worker_zone; - } - - /** - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * - * Generated from protobuf field string worker_zone = 14; - * @param string $var - * @return $this - */ - public function setWorkerZone($var) - { - GPBUtil::checkString($var, True); - $this->worker_zone = $var; - - return $this; - } - - /** - * Output only. The shuffle mode used for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.ShuffleMode shuffle_mode = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getShuffleMode() - { - return $this->shuffle_mode; - } - - /** - * Output only. The shuffle mode used for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.ShuffleMode shuffle_mode = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setShuffleMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\ShuffleMode::class); - $this->shuffle_mode = $var; - - return $this; - } - - /** - * Any debugging options to be supplied to the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.DebugOptions debug_options = 17; - * @return \Google\Cloud\Dataflow\V1beta3\DebugOptions|null - */ - public function getDebugOptions() - { - return $this->debug_options; - } - - public function hasDebugOptions() - { - return isset($this->debug_options); - } - - public function clearDebugOptions() - { - unset($this->debug_options); - } - - /** - * Any debugging options to be supplied to the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.DebugOptions debug_options = 17; - * @param \Google\Cloud\Dataflow\V1beta3\DebugOptions $var - * @return $this - */ - public function setDebugOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\DebugOptions::class); - $this->debug_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageState.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageState.php deleted file mode 100644 index dec58dbf78af..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageState.php +++ /dev/null @@ -1,145 +0,0 @@ -google.dataflow.v1beta3.ExecutionStageState - */ -class ExecutionStageState extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the execution stage. - * - * Generated from protobuf field string execution_stage_name = 1; - */ - protected $execution_stage_name = ''; - /** - * Executions stage states allow the same set of values as JobState. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobState execution_stage_state = 2; - */ - protected $execution_stage_state = 0; - /** - * The time at which the stage transitioned to this state. - * - * Generated from protobuf field .google.protobuf.Timestamp current_state_time = 3; - */ - protected $current_state_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $execution_stage_name - * The name of the execution stage. - * @type int $execution_stage_state - * Executions stage states allow the same set of values as JobState. - * @type \Google\Protobuf\Timestamp $current_state_time - * The time at which the stage transitioned to this state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The name of the execution stage. - * - * Generated from protobuf field string execution_stage_name = 1; - * @return string - */ - public function getExecutionStageName() - { - return $this->execution_stage_name; - } - - /** - * The name of the execution stage. - * - * Generated from protobuf field string execution_stage_name = 1; - * @param string $var - * @return $this - */ - public function setExecutionStageName($var) - { - GPBUtil::checkString($var, True); - $this->execution_stage_name = $var; - - return $this; - } - - /** - * Executions stage states allow the same set of values as JobState. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobState execution_stage_state = 2; - * @return int - */ - public function getExecutionStageState() - { - return $this->execution_stage_state; - } - - /** - * Executions stage states allow the same set of values as JobState. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobState execution_stage_state = 2; - * @param int $var - * @return $this - */ - public function setExecutionStageState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\JobState::class); - $this->execution_stage_state = $var; - - return $this; - } - - /** - * The time at which the stage transitioned to this state. - * - * Generated from protobuf field .google.protobuf.Timestamp current_state_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentStateTime() - { - return $this->current_state_time; - } - - public function hasCurrentStateTime() - { - return isset($this->current_state_time); - } - - public function clearCurrentStateTime() - { - unset($this->current_state_time); - } - - /** - * The time at which the stage transitioned to this state. - * - * Generated from protobuf field .google.protobuf.Timestamp current_state_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentStateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_state_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary.php deleted file mode 100644 index 645532bc5f1f..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary.php +++ /dev/null @@ -1,307 +0,0 @@ -google.dataflow.v1beta3.ExecutionStageSummary - */ -class ExecutionStageSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Dataflow service generated name for this stage. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Dataflow service generated id for this stage. - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - /** - * Type of transform this stage is executing. - * - * Generated from protobuf field .google.dataflow.v1beta3.KindType kind = 3; - */ - protected $kind = 0; - /** - * Input sources for this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.StageSource input_source = 4; - */ - private $input_source; - /** - * Output sources for this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.StageSource output_source = 5; - */ - private $output_source; - /** - * Other stages that must complete before this stage can run. - * - * Generated from protobuf field repeated string prerequisite_stage = 8; - */ - private $prerequisite_stage; - /** - * Transforms that comprise this execution stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform component_transform = 6; - */ - private $component_transform; - /** - * Collections produced and consumed by component transforms of this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource component_source = 7; - */ - private $component_source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Dataflow service generated name for this stage. - * @type string $id - * Dataflow service generated id for this stage. - * @type int $kind - * Type of transform this stage is executing. - * @type array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\StageSource>|\Google\Protobuf\Internal\RepeatedField $input_source - * Input sources for this stage. - * @type array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\StageSource>|\Google\Protobuf\Internal\RepeatedField $output_source - * Output sources for this stage. - * @type array|\Google\Protobuf\Internal\RepeatedField $prerequisite_stage - * Other stages that must complete before this stage can run. - * @type array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\ComponentTransform>|\Google\Protobuf\Internal\RepeatedField $component_transform - * Transforms that comprise this execution stage. - * @type array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\ComponentSource>|\Google\Protobuf\Internal\RepeatedField $component_source - * Collections produced and consumed by component transforms of this stage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * Dataflow service generated name for this stage. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Dataflow service generated name for this stage. - * - * 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; - } - - /** - * Dataflow service generated id for this stage. - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Dataflow service generated id for this stage. - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Type of transform this stage is executing. - * - * Generated from protobuf field .google.dataflow.v1beta3.KindType kind = 3; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * Type of transform this stage is executing. - * - * Generated from protobuf field .google.dataflow.v1beta3.KindType kind = 3; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\KindType::class); - $this->kind = $var; - - return $this; - } - - /** - * Input sources for this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.StageSource input_source = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInputSource() - { - return $this->input_source; - } - - /** - * Input sources for this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.StageSource input_source = 4; - * @param array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\StageSource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInputSource($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\StageSource::class); - $this->input_source = $arr; - - return $this; - } - - /** - * Output sources for this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.StageSource output_source = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOutputSource() - { - return $this->output_source; - } - - /** - * Output sources for this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.StageSource output_source = 5; - * @param array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\StageSource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOutputSource($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\StageSource::class); - $this->output_source = $arr; - - return $this; - } - - /** - * Other stages that must complete before this stage can run. - * - * Generated from protobuf field repeated string prerequisite_stage = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPrerequisiteStage() - { - return $this->prerequisite_stage; - } - - /** - * Other stages that must complete before this stage can run. - * - * Generated from protobuf field repeated string prerequisite_stage = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPrerequisiteStage($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->prerequisite_stage = $arr; - - return $this; - } - - /** - * Transforms that comprise this execution stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform component_transform = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComponentTransform() - { - return $this->component_transform; - } - - /** - * Transforms that comprise this execution stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform component_transform = 6; - * @param array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\ComponentTransform>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComponentTransform($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\ComponentTransform::class); - $this->component_transform = $arr; - - return $this; - } - - /** - * Collections produced and consumed by component transforms of this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource component_source = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComponentSource() - { - return $this->component_source; - } - - /** - * Collections produced and consumed by component transforms of this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource component_source = 7; - * @param array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\ComponentSource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComponentSource($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary\ComponentSource::class); - $this->component_source = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/ComponentSource.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/ComponentSource.php deleted file mode 100644 index c12c9473ff21..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/ComponentSource.php +++ /dev/null @@ -1,143 +0,0 @@ -google.dataflow.v1beta3.ExecutionStageSummary.ComponentSource - */ -class ComponentSource extends \Google\Protobuf\Internal\Message -{ - /** - * Human-readable name for this transform; may be user or system generated. - * - * Generated from protobuf field string user_name = 1; - */ - protected $user_name = ''; - /** - * Dataflow service generated name for this source. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * User name for the original user transform or collection with which this - * source is most closely associated. - * - * Generated from protobuf field string original_transform_or_collection = 3; - */ - protected $original_transform_or_collection = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user_name - * Human-readable name for this transform; may be user or system generated. - * @type string $name - * Dataflow service generated name for this source. - * @type string $original_transform_or_collection - * User name for the original user transform or collection with which this - * source is most closely associated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * Human-readable name for this transform; may be user or system generated. - * - * Generated from protobuf field string user_name = 1; - * @return string - */ - public function getUserName() - { - return $this->user_name; - } - - /** - * Human-readable name for this transform; may be user or system generated. - * - * Generated from protobuf field string user_name = 1; - * @param string $var - * @return $this - */ - public function setUserName($var) - { - GPBUtil::checkString($var, True); - $this->user_name = $var; - - return $this; - } - - /** - * Dataflow service generated name for this source. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Dataflow service generated name for this source. - * - * 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; - } - - /** - * User name for the original user transform or collection with which this - * source is most closely associated. - * - * Generated from protobuf field string original_transform_or_collection = 3; - * @return string - */ - public function getOriginalTransformOrCollection() - { - return $this->original_transform_or_collection; - } - - /** - * User name for the original user transform or collection with which this - * source is most closely associated. - * - * Generated from protobuf field string original_transform_or_collection = 3; - * @param string $var - * @return $this - */ - public function setOriginalTransformOrCollection($var) - { - GPBUtil::checkString($var, True); - $this->original_transform_or_collection = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ComponentSource::class, \Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary_ComponentSource::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/ComponentTransform.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/ComponentTransform.php deleted file mode 100644 index 13b23fba6946..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/ComponentTransform.php +++ /dev/null @@ -1,142 +0,0 @@ -google.dataflow.v1beta3.ExecutionStageSummary.ComponentTransform - */ -class ComponentTransform extends \Google\Protobuf\Internal\Message -{ - /** - * Human-readable name for this transform; may be user or system generated. - * - * Generated from protobuf field string user_name = 1; - */ - protected $user_name = ''; - /** - * Dataflow service generated name for this source. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * User name for the original user transform with which this transform is - * most closely associated. - * - * Generated from protobuf field string original_transform = 3; - */ - protected $original_transform = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user_name - * Human-readable name for this transform; may be user or system generated. - * @type string $name - * Dataflow service generated name for this source. - * @type string $original_transform - * User name for the original user transform with which this transform is - * most closely associated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * Human-readable name for this transform; may be user or system generated. - * - * Generated from protobuf field string user_name = 1; - * @return string - */ - public function getUserName() - { - return $this->user_name; - } - - /** - * Human-readable name for this transform; may be user or system generated. - * - * Generated from protobuf field string user_name = 1; - * @param string $var - * @return $this - */ - public function setUserName($var) - { - GPBUtil::checkString($var, True); - $this->user_name = $var; - - return $this; - } - - /** - * Dataflow service generated name for this source. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Dataflow service generated name for this source. - * - * 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; - } - - /** - * User name for the original user transform with which this transform is - * most closely associated. - * - * Generated from protobuf field string original_transform = 3; - * @return string - */ - public function getOriginalTransform() - { - return $this->original_transform; - } - - /** - * User name for the original user transform with which this transform is - * most closely associated. - * - * Generated from protobuf field string original_transform = 3; - * @param string $var - * @return $this - */ - public function setOriginalTransform($var) - { - GPBUtil::checkString($var, True); - $this->original_transform = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ComponentTransform::class, \Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary_ComponentTransform::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/StageSource.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/StageSource.php deleted file mode 100644 index 5fd3a3c4628e..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionStageSummary/StageSource.php +++ /dev/null @@ -1,176 +0,0 @@ -google.dataflow.v1beta3.ExecutionStageSummary.StageSource - */ -class StageSource extends \Google\Protobuf\Internal\Message -{ - /** - * Human-readable name for this source; may be user or system generated. - * - * Generated from protobuf field string user_name = 1; - */ - protected $user_name = ''; - /** - * Dataflow service generated name for this source. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * User name for the original user transform or collection with which this - * source is most closely associated. - * - * Generated from protobuf field string original_transform_or_collection = 3; - */ - protected $original_transform_or_collection = ''; - /** - * Size of the source, if measurable. - * - * Generated from protobuf field int64 size_bytes = 4; - */ - protected $size_bytes = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user_name - * Human-readable name for this source; may be user or system generated. - * @type string $name - * Dataflow service generated name for this source. - * @type string $original_transform_or_collection - * User name for the original user transform or collection with which this - * source is most closely associated. - * @type int|string $size_bytes - * Size of the source, if measurable. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * Human-readable name for this source; may be user or system generated. - * - * Generated from protobuf field string user_name = 1; - * @return string - */ - public function getUserName() - { - return $this->user_name; - } - - /** - * Human-readable name for this source; may be user or system generated. - * - * Generated from protobuf field string user_name = 1; - * @param string $var - * @return $this - */ - public function setUserName($var) - { - GPBUtil::checkString($var, True); - $this->user_name = $var; - - return $this; - } - - /** - * Dataflow service generated name for this source. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Dataflow service generated name for this source. - * - * 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; - } - - /** - * User name for the original user transform or collection with which this - * source is most closely associated. - * - * Generated from protobuf field string original_transform_or_collection = 3; - * @return string - */ - public function getOriginalTransformOrCollection() - { - return $this->original_transform_or_collection; - } - - /** - * User name for the original user transform or collection with which this - * source is most closely associated. - * - * Generated from protobuf field string original_transform_or_collection = 3; - * @param string $var - * @return $this - */ - public function setOriginalTransformOrCollection($var) - { - GPBUtil::checkString($var, True); - $this->original_transform_or_collection = $var; - - return $this; - } - - /** - * Size of the source, if measurable. - * - * Generated from protobuf field int64 size_bytes = 4; - * @return int|string - */ - public function getSizeBytes() - { - return $this->size_bytes; - } - - /** - * Size of the source, if measurable. - * - * Generated from protobuf field int64 size_bytes = 4; - * @param int|string $var - * @return $this - */ - public function setSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->size_bytes = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StageSource::class, \Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary_StageSource::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionState.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionState.php deleted file mode 100644 index a89384827469..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ExecutionState.php +++ /dev/null @@ -1,82 +0,0 @@ -google.dataflow.v1beta3.ExecutionState - */ -class ExecutionState -{ - /** - * The component state is unknown or unspecified. - * - * Generated from protobuf enum EXECUTION_STATE_UNKNOWN = 0; - */ - const EXECUTION_STATE_UNKNOWN = 0; - /** - * The component is not yet running. - * - * Generated from protobuf enum EXECUTION_STATE_NOT_STARTED = 1; - */ - const EXECUTION_STATE_NOT_STARTED = 1; - /** - * The component is currently running. - * - * Generated from protobuf enum EXECUTION_STATE_RUNNING = 2; - */ - const EXECUTION_STATE_RUNNING = 2; - /** - * The component succeeded. - * - * Generated from protobuf enum EXECUTION_STATE_SUCCEEDED = 3; - */ - const EXECUTION_STATE_SUCCEEDED = 3; - /** - * The component failed. - * - * Generated from protobuf enum EXECUTION_STATE_FAILED = 4; - */ - const EXECUTION_STATE_FAILED = 4; - /** - * Execution of the component was cancelled. - * - * Generated from protobuf enum EXECUTION_STATE_CANCELLED = 5; - */ - const EXECUTION_STATE_CANCELLED = 5; - - private static $valueToName = [ - self::EXECUTION_STATE_UNKNOWN => 'EXECUTION_STATE_UNKNOWN', - self::EXECUTION_STATE_NOT_STARTED => 'EXECUTION_STATE_NOT_STARTED', - self::EXECUTION_STATE_RUNNING => 'EXECUTION_STATE_RUNNING', - self::EXECUTION_STATE_SUCCEEDED => 'EXECUTION_STATE_SUCCEEDED', - self::EXECUTION_STATE_FAILED => 'EXECUTION_STATE_FAILED', - self::EXECUTION_STATE_CANCELLED => 'EXECUTION_STATE_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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FailedLocation.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FailedLocation.php deleted file mode 100644 index 8e4ad6a79385..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FailedLocation.php +++ /dev/null @@ -1,77 +0,0 @@ -google.dataflow.v1beta3.FailedLocation - */ -class FailedLocation extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * failed to respond. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * failed to respond. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The name of the [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * failed to respond. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * failed to respond. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FileIODetails.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FileIODetails.php deleted file mode 100644 index 266d99a1dce6..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FileIODetails.php +++ /dev/null @@ -1,67 +0,0 @@ -google.dataflow.v1beta3.FileIODetails - */ -class FileIODetails extends \Google\Protobuf\Internal\Message -{ - /** - * File Pattern used to access files by the connector. - * - * Generated from protobuf field string file_pattern = 1; - */ - protected $file_pattern = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file_pattern - * File Pattern used to access files by the connector. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * File Pattern used to access files by the connector. - * - * Generated from protobuf field string file_pattern = 1; - * @return string - */ - public function getFilePattern() - { - return $this->file_pattern; - } - - /** - * File Pattern used to access files by the connector. - * - * Generated from protobuf field string file_pattern = 1; - * @param string $var - * @return $this - */ - public function setFilePattern($var) - { - GPBUtil::checkString($var, True); - $this->file_pattern = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FlexResourceSchedulingGoal.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FlexResourceSchedulingGoal.php deleted file mode 100644 index 67c6ad11eebb..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FlexResourceSchedulingGoal.php +++ /dev/null @@ -1,61 +0,0 @@ -google.dataflow.v1beta3.FlexResourceSchedulingGoal - */ -class FlexResourceSchedulingGoal -{ - /** - * Run in the default mode. - * - * Generated from protobuf enum FLEXRS_UNSPECIFIED = 0; - */ - const FLEXRS_UNSPECIFIED = 0; - /** - * Optimize for lower execution time. - * - * Generated from protobuf enum FLEXRS_SPEED_OPTIMIZED = 1; - */ - const FLEXRS_SPEED_OPTIMIZED = 1; - /** - * Optimize for lower cost. - * - * Generated from protobuf enum FLEXRS_COST_OPTIMIZED = 2; - */ - const FLEXRS_COST_OPTIMIZED = 2; - - private static $valueToName = [ - self::FLEXRS_UNSPECIFIED => 'FLEXRS_UNSPECIFIED', - self::FLEXRS_SPEED_OPTIMIZED => 'FLEXRS_SPEED_OPTIMIZED', - self::FLEXRS_COST_OPTIMIZED => 'FLEXRS_COST_OPTIMIZED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FlexTemplateRuntimeEnvironment.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FlexTemplateRuntimeEnvironment.php deleted file mode 100644 index 04c8d52ea43f..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/FlexTemplateRuntimeEnvironment.php +++ /dev/null @@ -1,967 +0,0 @@ -google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment - */ -class FlexTemplateRuntimeEnvironment extends \Google\Protobuf\Internal\Message -{ - /** - * The initial number of Google Compute Engine instances for the job. - * - * Generated from protobuf field int32 num_workers = 1; - */ - protected $num_workers = 0; - /** - * The maximum number of Google Compute Engine instances to be made - * available to your pipeline during execution, from 1 to 1000. - * - * Generated from protobuf field int32 max_workers = 2; - */ - protected $max_workers = 0; - /** - * The Compute Engine [availability - * zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - * for launching worker instances to run your pipeline. - * In the future, worker_zone will take precedence. - * - * Generated from protobuf field string zone = 3; - */ - protected $zone = ''; - /** - * The email address of the service account to run the job as. - * - * Generated from protobuf field string service_account_email = 4; - */ - protected $service_account_email = ''; - /** - * The Cloud Storage path to use for temporary files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string temp_location = 5; - */ - protected $temp_location = ''; - /** - * The machine type to use for the job. Defaults to the value from the - * template if not specified. - * - * Generated from protobuf field string machine_type = 6; - */ - protected $machine_type = ''; - /** - * Additional experiment flags for the job. - * - * Generated from protobuf field repeated string additional_experiments = 7; - */ - private $additional_experiments; - /** - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * - * Generated from protobuf field string network = 8; - */ - protected $network = ''; - /** - * Subnetwork to which VMs will be assigned, if desired. You can specify a - * subnetwork using either a complete URL or an abbreviated path. Expected to - * be of the form - * "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - * or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - * a Shared VPC network, you must use the complete URL. - * - * Generated from protobuf field string subnetwork = 9; - */ - protected $subnetwork = ''; - /** - * Additional user labels to be specified for the job. - * Keys and values must follow the restrictions specified in the [labeling - * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - * page. - * An object containing a list of "key": value pairs. - * Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - * - * Generated from protobuf field map additional_user_labels = 10; - */ - private $additional_user_labels; - /** - * Name for the Cloud KMS key for the job. - * Key format is: - * projects//locations//keyRings//cryptoKeys/ - * - * Generated from protobuf field string kms_key_name = 11; - */ - protected $kms_key_name = ''; - /** - * Configuration for VM IPs. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerIPAddressConfiguration ip_configuration = 12; - */ - protected $ip_configuration = 0; - /** - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * - * Generated from protobuf field string worker_region = 13; - */ - protected $worker_region = ''; - /** - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - * - * Generated from protobuf field string worker_zone = 14; - */ - protected $worker_zone = ''; - /** - * Whether to enable Streaming Engine for the job. - * - * Generated from protobuf field bool enable_streaming_engine = 15; - */ - protected $enable_streaming_engine = false; - /** - * Set FlexRS goal for the job. - * https://cloud.google.com/dataflow/docs/guides/flexrs - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexResourceSchedulingGoal flexrs_goal = 16; - */ - protected $flexrs_goal = 0; - /** - * The Cloud Storage path for staging local files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string staging_location = 17; - */ - protected $staging_location = ''; - /** - * Docker registry location of container image to use for the 'worker harness. - * Default is the container for the version of the SDK. Note this field is - * only valid for portable pipelines. - * - * Generated from protobuf field string sdk_container_image = 18; - */ - protected $sdk_container_image = ''; - /** - * Worker disk size, in gigabytes. - * - * Generated from protobuf field int32 disk_size_gb = 20; - */ - protected $disk_size_gb = 0; - /** - * The algorithm to use for autoscaling - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingAlgorithm autoscaling_algorithm = 21; - */ - protected $autoscaling_algorithm = 0; - /** - * If true, save a heap dump before killing a thread or process which is GC - * thrashing or out of memory. The location of the heap file will either be - * echoed back to the user, or the user will be given the opportunity to - * download the heap file. - * - * Generated from protobuf field bool dump_heap_on_oom = 22; - */ - protected $dump_heap_on_oom = false; - /** - * Cloud Storage bucket (directory) to upload heap dumps to the given - * location. Enabling this implies that heap dumps should be generated on OOM - * (dump_heap_on_oom is set to true). - * - * Generated from protobuf field string save_heap_dumps_to_gcs_path = 23; - */ - protected $save_heap_dumps_to_gcs_path = ''; - /** - * The machine type to use for launching the job. The default is - * n1-standard-1. - * - * Generated from protobuf field string launcher_machine_type = 24; - */ - protected $launcher_machine_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $num_workers - * The initial number of Google Compute Engine instances for the job. - * @type int $max_workers - * The maximum number of Google Compute Engine instances to be made - * available to your pipeline during execution, from 1 to 1000. - * @type string $zone - * The Compute Engine [availability - * zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - * for launching worker instances to run your pipeline. - * In the future, worker_zone will take precedence. - * @type string $service_account_email - * The email address of the service account to run the job as. - * @type string $temp_location - * The Cloud Storage path to use for temporary files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * @type string $machine_type - * The machine type to use for the job. Defaults to the value from the - * template if not specified. - * @type array|\Google\Protobuf\Internal\RepeatedField $additional_experiments - * Additional experiment flags for the job. - * @type string $network - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * @type string $subnetwork - * Subnetwork to which VMs will be assigned, if desired. You can specify a - * subnetwork using either a complete URL or an abbreviated path. Expected to - * be of the form - * "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - * or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - * a Shared VPC network, you must use the complete URL. - * @type array|\Google\Protobuf\Internal\MapField $additional_user_labels - * Additional user labels to be specified for the job. - * Keys and values must follow the restrictions specified in the [labeling - * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - * page. - * An object containing a list of "key": value pairs. - * Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - * @type string $kms_key_name - * Name for the Cloud KMS key for the job. - * Key format is: - * projects//locations//keyRings//cryptoKeys/ - * @type int $ip_configuration - * Configuration for VM IPs. - * @type string $worker_region - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * @type string $worker_zone - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - * @type bool $enable_streaming_engine - * Whether to enable Streaming Engine for the job. - * @type int $flexrs_goal - * Set FlexRS goal for the job. - * https://cloud.google.com/dataflow/docs/guides/flexrs - * @type string $staging_location - * The Cloud Storage path for staging local files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * @type string $sdk_container_image - * Docker registry location of container image to use for the 'worker harness. - * Default is the container for the version of the SDK. Note this field is - * only valid for portable pipelines. - * @type int $disk_size_gb - * Worker disk size, in gigabytes. - * @type int $autoscaling_algorithm - * The algorithm to use for autoscaling - * @type bool $dump_heap_on_oom - * If true, save a heap dump before killing a thread or process which is GC - * thrashing or out of memory. The location of the heap file will either be - * echoed back to the user, or the user will be given the opportunity to - * download the heap file. - * @type string $save_heap_dumps_to_gcs_path - * Cloud Storage bucket (directory) to upload heap dumps to the given - * location. Enabling this implies that heap dumps should be generated on OOM - * (dump_heap_on_oom is set to true). - * @type string $launcher_machine_type - * The machine type to use for launching the job. The default is - * n1-standard-1. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * The initial number of Google Compute Engine instances for the job. - * - * Generated from protobuf field int32 num_workers = 1; - * @return int - */ - public function getNumWorkers() - { - return $this->num_workers; - } - - /** - * The initial number of Google Compute Engine instances for the job. - * - * Generated from protobuf field int32 num_workers = 1; - * @param int $var - * @return $this - */ - public function setNumWorkers($var) - { - GPBUtil::checkInt32($var); - $this->num_workers = $var; - - return $this; - } - - /** - * The maximum number of Google Compute Engine instances to be made - * available to your pipeline during execution, from 1 to 1000. - * - * Generated from protobuf field int32 max_workers = 2; - * @return int - */ - public function getMaxWorkers() - { - return $this->max_workers; - } - - /** - * The maximum number of Google Compute Engine instances to be made - * available to your pipeline during execution, from 1 to 1000. - * - * Generated from protobuf field int32 max_workers = 2; - * @param int $var - * @return $this - */ - public function setMaxWorkers($var) - { - GPBUtil::checkInt32($var); - $this->max_workers = $var; - - return $this; - } - - /** - * The Compute Engine [availability - * zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - * for launching worker instances to run your pipeline. - * In the future, worker_zone will take precedence. - * - * Generated from protobuf field string zone = 3; - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * The Compute Engine [availability - * zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - * for launching worker instances to run your pipeline. - * In the future, worker_zone will take precedence. - * - * Generated from protobuf field string zone = 3; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The email address of the service account to run the job as. - * - * Generated from protobuf field string service_account_email = 4; - * @return string - */ - public function getServiceAccountEmail() - { - return $this->service_account_email; - } - - /** - * The email address of the service account to run the job as. - * - * Generated from protobuf field string service_account_email = 4; - * @param string $var - * @return $this - */ - public function setServiceAccountEmail($var) - { - GPBUtil::checkString($var, True); - $this->service_account_email = $var; - - return $this; - } - - /** - * The Cloud Storage path to use for temporary files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string temp_location = 5; - * @return string - */ - public function getTempLocation() - { - return $this->temp_location; - } - - /** - * The Cloud Storage path to use for temporary files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string temp_location = 5; - * @param string $var - * @return $this - */ - public function setTempLocation($var) - { - GPBUtil::checkString($var, True); - $this->temp_location = $var; - - return $this; - } - - /** - * The machine type to use for the job. Defaults to the value from the - * template if not specified. - * - * Generated from protobuf field string machine_type = 6; - * @return string - */ - public function getMachineType() - { - return $this->machine_type; - } - - /** - * The machine type to use for the job. Defaults to the value from the - * template if not specified. - * - * Generated from protobuf field string machine_type = 6; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * Additional experiment flags for the job. - * - * Generated from protobuf field repeated string additional_experiments = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalExperiments() - { - return $this->additional_experiments; - } - - /** - * Additional experiment flags for the job. - * - * Generated from protobuf field repeated string additional_experiments = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalExperiments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_experiments = $arr; - - return $this; - } - - /** - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * - * Generated from protobuf field string network = 8; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * - * Generated from protobuf field string network = 8; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Subnetwork to which VMs will be assigned, if desired. You can specify a - * subnetwork using either a complete URL or an abbreviated path. Expected to - * be of the form - * "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - * or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - * a Shared VPC network, you must use the complete URL. - * - * Generated from protobuf field string subnetwork = 9; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Subnetwork to which VMs will be assigned, if desired. You can specify a - * subnetwork using either a complete URL or an abbreviated path. Expected to - * be of the form - * "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - * or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - * a Shared VPC network, you must use the complete URL. - * - * Generated from protobuf field string subnetwork = 9; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Additional user labels to be specified for the job. - * Keys and values must follow the restrictions specified in the [labeling - * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - * page. - * An object containing a list of "key": value pairs. - * Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - * - * Generated from protobuf field map additional_user_labels = 10; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAdditionalUserLabels() - { - return $this->additional_user_labels; - } - - /** - * Additional user labels to be specified for the job. - * Keys and values must follow the restrictions specified in the [labeling - * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - * page. - * An object containing a list of "key": value pairs. - * Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - * - * Generated from protobuf field map additional_user_labels = 10; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAdditionalUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_user_labels = $arr; - - return $this; - } - - /** - * Name for the Cloud KMS key for the job. - * Key format is: - * projects//locations//keyRings//cryptoKeys/ - * - * Generated from protobuf field string kms_key_name = 11; - * @return string - */ - public function getKmsKeyName() - { - return $this->kms_key_name; - } - - /** - * Name for the Cloud KMS key for the job. - * Key format is: - * projects//locations//keyRings//cryptoKeys/ - * - * Generated from protobuf field string kms_key_name = 11; - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_name = $var; - - return $this; - } - - /** - * Configuration for VM IPs. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerIPAddressConfiguration ip_configuration = 12; - * @return int - */ - public function getIpConfiguration() - { - return $this->ip_configuration; - } - - /** - * Configuration for VM IPs. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerIPAddressConfiguration ip_configuration = 12; - * @param int $var - * @return $this - */ - public function setIpConfiguration($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\WorkerIPAddressConfiguration::class); - $this->ip_configuration = $var; - - return $this; - } - - /** - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * - * Generated from protobuf field string worker_region = 13; - * @return string - */ - public function getWorkerRegion() - { - return $this->worker_region; - } - - /** - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * - * Generated from protobuf field string worker_region = 13; - * @param string $var - * @return $this - */ - public function setWorkerRegion($var) - { - GPBUtil::checkString($var, True); - $this->worker_region = $var; - - return $this; - } - - /** - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - * - * Generated from protobuf field string worker_zone = 14; - * @return string - */ - public function getWorkerZone() - { - return $this->worker_zone; - } - - /** - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - * - * Generated from protobuf field string worker_zone = 14; - * @param string $var - * @return $this - */ - public function setWorkerZone($var) - { - GPBUtil::checkString($var, True); - $this->worker_zone = $var; - - return $this; - } - - /** - * Whether to enable Streaming Engine for the job. - * - * Generated from protobuf field bool enable_streaming_engine = 15; - * @return bool - */ - public function getEnableStreamingEngine() - { - return $this->enable_streaming_engine; - } - - /** - * Whether to enable Streaming Engine for the job. - * - * Generated from protobuf field bool enable_streaming_engine = 15; - * @param bool $var - * @return $this - */ - public function setEnableStreamingEngine($var) - { - GPBUtil::checkBool($var); - $this->enable_streaming_engine = $var; - - return $this; - } - - /** - * Set FlexRS goal for the job. - * https://cloud.google.com/dataflow/docs/guides/flexrs - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexResourceSchedulingGoal flexrs_goal = 16; - * @return int - */ - public function getFlexrsGoal() - { - return $this->flexrs_goal; - } - - /** - * Set FlexRS goal for the job. - * https://cloud.google.com/dataflow/docs/guides/flexrs - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexResourceSchedulingGoal flexrs_goal = 16; - * @param int $var - * @return $this - */ - public function setFlexrsGoal($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\FlexResourceSchedulingGoal::class); - $this->flexrs_goal = $var; - - return $this; - } - - /** - * The Cloud Storage path for staging local files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string staging_location = 17; - * @return string - */ - public function getStagingLocation() - { - return $this->staging_location; - } - - /** - * The Cloud Storage path for staging local files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string staging_location = 17; - * @param string $var - * @return $this - */ - public function setStagingLocation($var) - { - GPBUtil::checkString($var, True); - $this->staging_location = $var; - - return $this; - } - - /** - * Docker registry location of container image to use for the 'worker harness. - * Default is the container for the version of the SDK. Note this field is - * only valid for portable pipelines. - * - * Generated from protobuf field string sdk_container_image = 18; - * @return string - */ - public function getSdkContainerImage() - { - return $this->sdk_container_image; - } - - /** - * Docker registry location of container image to use for the 'worker harness. - * Default is the container for the version of the SDK. Note this field is - * only valid for portable pipelines. - * - * Generated from protobuf field string sdk_container_image = 18; - * @param string $var - * @return $this - */ - public function setSdkContainerImage($var) - { - GPBUtil::checkString($var, True); - $this->sdk_container_image = $var; - - return $this; - } - - /** - * Worker disk size, in gigabytes. - * - * Generated from protobuf field int32 disk_size_gb = 20; - * @return int - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Worker disk size, in gigabytes. - * - * Generated from protobuf field int32 disk_size_gb = 20; - * @param int $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt32($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * The algorithm to use for autoscaling - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingAlgorithm autoscaling_algorithm = 21; - * @return int - */ - public function getAutoscalingAlgorithm() - { - return $this->autoscaling_algorithm; - } - - /** - * The algorithm to use for autoscaling - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingAlgorithm autoscaling_algorithm = 21; - * @param int $var - * @return $this - */ - public function setAutoscalingAlgorithm($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\AutoscalingAlgorithm::class); - $this->autoscaling_algorithm = $var; - - return $this; - } - - /** - * If true, save a heap dump before killing a thread or process which is GC - * thrashing or out of memory. The location of the heap file will either be - * echoed back to the user, or the user will be given the opportunity to - * download the heap file. - * - * Generated from protobuf field bool dump_heap_on_oom = 22; - * @return bool - */ - public function getDumpHeapOnOom() - { - return $this->dump_heap_on_oom; - } - - /** - * If true, save a heap dump before killing a thread or process which is GC - * thrashing or out of memory. The location of the heap file will either be - * echoed back to the user, or the user will be given the opportunity to - * download the heap file. - * - * Generated from protobuf field bool dump_heap_on_oom = 22; - * @param bool $var - * @return $this - */ - public function setDumpHeapOnOom($var) - { - GPBUtil::checkBool($var); - $this->dump_heap_on_oom = $var; - - return $this; - } - - /** - * Cloud Storage bucket (directory) to upload heap dumps to the given - * location. Enabling this implies that heap dumps should be generated on OOM - * (dump_heap_on_oom is set to true). - * - * Generated from protobuf field string save_heap_dumps_to_gcs_path = 23; - * @return string - */ - public function getSaveHeapDumpsToGcsPath() - { - return $this->save_heap_dumps_to_gcs_path; - } - - /** - * Cloud Storage bucket (directory) to upload heap dumps to the given - * location. Enabling this implies that heap dumps should be generated on OOM - * (dump_heap_on_oom is set to true). - * - * Generated from protobuf field string save_heap_dumps_to_gcs_path = 23; - * @param string $var - * @return $this - */ - public function setSaveHeapDumpsToGcsPath($var) - { - GPBUtil::checkString($var, True); - $this->save_heap_dumps_to_gcs_path = $var; - - return $this; - } - - /** - * The machine type to use for launching the job. The default is - * n1-standard-1. - * - * Generated from protobuf field string launcher_machine_type = 24; - * @return string - */ - public function getLauncherMachineType() - { - return $this->launcher_machine_type; - } - - /** - * The machine type to use for launching the job. The default is - * n1-standard-1. - * - * Generated from protobuf field string launcher_machine_type = 24; - * @param string $var - * @return $this - */ - public function setLauncherMachineType($var) - { - GPBUtil::checkString($var, True); - $this->launcher_machine_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobExecutionDetailsRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobExecutionDetailsRequest.php deleted file mode 100644 index 48f1aa7955b6..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobExecutionDetailsRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.dataflow.v1beta3.GetJobExecutionDetailsRequest - */ -class GetJobExecutionDetailsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The job to get execution details for. - * - * Generated from protobuf field string job_id = 2; - */ - protected $job_id = ''; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 3; - */ - protected $location = ''; - /** - * If specified, determines the maximum number of stages to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * - * Generated from protobuf field string page_token = 5; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * A project id. - * @type string $job_id - * The job to get execution details for. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * @type int $page_size - * If specified, determines the maximum number of stages to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * @type string $page_token - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The job to get execution details for. - * - * Generated from protobuf field string job_id = 2; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The job to get execution details for. - * - * Generated from protobuf field string job_id = 2; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 3; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 3; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * If specified, determines the maximum number of stages to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * If specified, determines the maximum number of stages to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * - * Generated from protobuf field string page_token = 5; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobMetricsRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobMetricsRequest.php deleted file mode 100644 index 855632b2a851..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobMetricsRequest.php +++ /dev/null @@ -1,191 +0,0 @@ -google.dataflow.v1beta3.GetJobMetricsRequest - */ -class GetJobMetricsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The job to get metrics for. - * - * Generated from protobuf field string job_id = 2; - */ - protected $job_id = ''; - /** - * Return only metric data that has changed since this time. - * Default is to return all information about all metrics for the job. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - */ - protected $start_time = null; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * A project id. - * @type string $job_id - * The job to get metrics for. - * @type \Google\Protobuf\Timestamp $start_time - * Return only metric data that has changed since this time. - * Default is to return all information about all metrics for the job. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The job to get metrics for. - * - * Generated from protobuf field string job_id = 2; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The job to get metrics for. - * - * Generated from protobuf field string job_id = 2; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * Return only metric data that has changed since this time. - * Default is to return all information about all metrics for the job. - * - * 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); - } - - /** - * Return only metric data that has changed since this time. - * Default is to return all information about all metrics for the job. - * - * 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 [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobRequest.php deleted file mode 100644 index 0743b7ff6467..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetJobRequest.php +++ /dev/null @@ -1,177 +0,0 @@ -google.dataflow.v1beta3.GetJobRequest - */ -class GetJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The job ID. - * - * Generated from protobuf field string job_id = 2; - */ - protected $job_id = ''; - /** - * The level of information requested in response. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobView view = 3; - */ - protected $view = 0; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The ID of the Cloud Platform project that the job belongs to. - * @type string $job_id - * The job ID. - * @type int $view - * The level of information requested in response. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The job ID. - * - * Generated from protobuf field string job_id = 2; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The job ID. - * - * Generated from protobuf field string job_id = 2; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * The level of information requested in response. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobView view = 3; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The level of information requested in response. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobView view = 3; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\JobView::class); - $this->view = $var; - - return $this; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetSnapshotRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetSnapshotRequest.php deleted file mode 100644 index 6f7c7fda5e15..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetSnapshotRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.dataflow.v1beta3.GetSnapshotRequest - */ -class GetSnapshotRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the Cloud Platform project that the snapshot belongs to. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The ID of the snapshot. - * - * Generated from protobuf field string snapshot_id = 2; - */ - protected $snapshot_id = ''; - /** - * The location that contains this snapshot. - * - * Generated from protobuf field string location = 3; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The ID of the Cloud Platform project that the snapshot belongs to. - * @type string $snapshot_id - * The ID of the snapshot. - * @type string $location - * The location that contains this snapshot. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Snapshots::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the Cloud Platform project that the snapshot belongs to. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the Cloud Platform project that the snapshot belongs to. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The ID of the snapshot. - * - * Generated from protobuf field string snapshot_id = 2; - * @return string - */ - public function getSnapshotId() - { - return $this->snapshot_id; - } - - /** - * The ID of the snapshot. - * - * Generated from protobuf field string snapshot_id = 2; - * @param string $var - * @return $this - */ - public function setSnapshotId($var) - { - GPBUtil::checkString($var, True); - $this->snapshot_id = $var; - - return $this; - } - - /** - * The location that contains this snapshot. - * - * Generated from protobuf field string location = 3; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The location that contains this snapshot. - * - * Generated from protobuf field string location = 3; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetStageExecutionDetailsRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetStageExecutionDetailsRequest.php deleted file mode 100644 index 0eaa17055e9d..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetStageExecutionDetailsRequest.php +++ /dev/null @@ -1,350 +0,0 @@ -google.dataflow.v1beta3.GetStageExecutionDetailsRequest - */ -class GetStageExecutionDetailsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The job to get execution details for. - * - * Generated from protobuf field string job_id = 2; - */ - protected $job_id = ''; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 3; - */ - protected $location = ''; - /** - * The stage for which to fetch information. - * - * Generated from protobuf field string stage_id = 4; - */ - protected $stage_id = ''; - /** - * If specified, determines the maximum number of work items to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * - * Generated from protobuf field int32 page_size = 5; - */ - protected $page_size = 0; - /** - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * - * Generated from protobuf field string page_token = 6; - */ - protected $page_token = ''; - /** - * Lower time bound of work items to include, by start time. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; - */ - protected $start_time = null; - /** - * Upper time bound of work items to include, by start time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * A project id. - * @type string $job_id - * The job to get execution details for. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * @type string $stage_id - * The stage for which to fetch information. - * @type int $page_size - * If specified, determines the maximum number of work items to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * @type string $page_token - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * @type \Google\Protobuf\Timestamp $start_time - * Lower time bound of work items to include, by start time. - * @type \Google\Protobuf\Timestamp $end_time - * Upper time bound of work items to include, by start time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The job to get execution details for. - * - * Generated from protobuf field string job_id = 2; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The job to get execution details for. - * - * Generated from protobuf field string job_id = 2; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 3; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 3; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * The stage for which to fetch information. - * - * Generated from protobuf field string stage_id = 4; - * @return string - */ - public function getStageId() - { - return $this->stage_id; - } - - /** - * The stage for which to fetch information. - * - * Generated from protobuf field string stage_id = 4; - * @param string $var - * @return $this - */ - public function setStageId($var) - { - GPBUtil::checkString($var, True); - $this->stage_id = $var; - - return $this; - } - - /** - * If specified, determines the maximum number of work items to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * - * Generated from protobuf field int32 page_size = 5; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * If specified, determines the maximum number of work items to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * - * Generated from protobuf field int32 page_size = 5; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * - * Generated from protobuf field string page_token = 6; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * - * Generated from protobuf field string page_token = 6; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Lower time bound of work items to include, by start 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); - } - - /** - * Lower time bound of work items to include, by start 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; - } - - /** - * Upper time bound of work items to include, by start time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; - * @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); - } - - /** - * Upper time bound of work items to include, by start time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; - * @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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateRequest.php deleted file mode 100644 index a37aa7b657b3..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateRequest.php +++ /dev/null @@ -1,191 +0,0 @@ -google.dataflow.v1beta3.GetTemplateRequest - */ -class GetTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The view to retrieve. Defaults to METADATA_ONLY. - * - * Generated from protobuf field .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3; - */ - protected $view = 0; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - protected $template; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the Cloud Platform project that the job belongs to. - * @type string $gcs_path - * Required. A Cloud Storage path to the template from which to - * create the job. - * Must be valid Cloud Storage URL, beginning with 'gs://'. - * @type int $view - * The view to retrieve. Defaults to METADATA_ONLY. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. A Cloud Storage path to the template from which to - * create the job. - * Must be valid Cloud Storage URL, beginning with 'gs://'. - * - * Generated from protobuf field string gcs_path = 2; - * @return string - */ - public function getGcsPath() - { - return $this->readOneof(2); - } - - public function hasGcsPath() - { - return $this->hasOneof(2); - } - - /** - * Required. A Cloud Storage path to the template from which to - * create the job. - * Must be valid Cloud Storage URL, beginning with 'gs://'. - * - * Generated from protobuf field string gcs_path = 2; - * @param string $var - * @return $this - */ - public function setGcsPath($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The view to retrieve. Defaults to METADATA_ONLY. - * - * Generated from protobuf field .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3; - * @return int - */ - public function getView() - { - return $this->view; - } - - /** - * The view to retrieve. Defaults to METADATA_ONLY. - * - * Generated from protobuf field .google.dataflow.v1beta3.GetTemplateRequest.TemplateView view = 3; - * @param int $var - * @return $this - */ - public function setView($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\GetTemplateRequest\TemplateView::class); - $this->view = $var; - - return $this; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * @return string - */ - public function getTemplate() - { - return $this->whichOneof("template"); - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateRequest/TemplateView.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateRequest/TemplateView.php deleted file mode 100644 index d44d1339ba0a..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateRequest/TemplateView.php +++ /dev/null @@ -1,51 +0,0 @@ -google.dataflow.v1beta3.GetTemplateRequest.TemplateView - */ -class TemplateView -{ - /** - * Template view that retrieves only the metadata associated with the - * template. - * - * Generated from protobuf enum METADATA_ONLY = 0; - */ - const METADATA_ONLY = 0; - - private static $valueToName = [ - self::METADATA_ONLY => 'METADATA_ONLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TemplateView::class, \Google\Cloud\Dataflow\V1beta3\GetTemplateRequest_TemplateView::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateResponse.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateResponse.php deleted file mode 100644 index f977d8f8b252..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateResponse.php +++ /dev/null @@ -1,207 +0,0 @@ -google.dataflow.v1beta3.GetTemplateResponse - */ -class GetTemplateResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The status of the get template request. Any problems with the - * request will be indicated in the error_details. - * - * Generated from protobuf field .google.rpc.Status status = 1; - */ - protected $status = null; - /** - * The template metadata describing the template name, available - * parameters, etc. - * - * Generated from protobuf field .google.dataflow.v1beta3.TemplateMetadata metadata = 2; - */ - protected $metadata = null; - /** - * Template Type. - * - * Generated from protobuf field .google.dataflow.v1beta3.GetTemplateResponse.TemplateType template_type = 3; - */ - protected $template_type = 0; - /** - * Describes the runtime metadata with SDKInfo and available parameters. - * - * Generated from protobuf field .google.dataflow.v1beta3.RuntimeMetadata runtime_metadata = 4; - */ - protected $runtime_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\Status $status - * The status of the get template request. Any problems with the - * request will be indicated in the error_details. - * @type \Google\Cloud\Dataflow\V1beta3\TemplateMetadata $metadata - * The template metadata describing the template name, available - * parameters, etc. - * @type int $template_type - * Template Type. - * @type \Google\Cloud\Dataflow\V1beta3\RuntimeMetadata $runtime_metadata - * Describes the runtime metadata with SDKInfo and available parameters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * The status of the get template request. Any problems with the - * request will be indicated in the error_details. - * - * Generated from protobuf field .google.rpc.Status status = 1; - * @return \Google\Rpc\Status|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * The status of the get template request. Any problems with the - * request will be indicated in the error_details. - * - * Generated from protobuf field .google.rpc.Status status = 1; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->status = $var; - - return $this; - } - - /** - * The template metadata describing the template name, available - * parameters, etc. - * - * Generated from protobuf field .google.dataflow.v1beta3.TemplateMetadata metadata = 2; - * @return \Google\Cloud\Dataflow\V1beta3\TemplateMetadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * The template metadata describing the template name, available - * parameters, etc. - * - * Generated from protobuf field .google.dataflow.v1beta3.TemplateMetadata metadata = 2; - * @param \Google\Cloud\Dataflow\V1beta3\TemplateMetadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\TemplateMetadata::class); - $this->metadata = $var; - - return $this; - } - - /** - * Template Type. - * - * Generated from protobuf field .google.dataflow.v1beta3.GetTemplateResponse.TemplateType template_type = 3; - * @return int - */ - public function getTemplateType() - { - return $this->template_type; - } - - /** - * Template Type. - * - * Generated from protobuf field .google.dataflow.v1beta3.GetTemplateResponse.TemplateType template_type = 3; - * @param int $var - * @return $this - */ - public function setTemplateType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\GetTemplateResponse\TemplateType::class); - $this->template_type = $var; - - return $this; - } - - /** - * Describes the runtime metadata with SDKInfo and available parameters. - * - * Generated from protobuf field .google.dataflow.v1beta3.RuntimeMetadata runtime_metadata = 4; - * @return \Google\Cloud\Dataflow\V1beta3\RuntimeMetadata|null - */ - public function getRuntimeMetadata() - { - return $this->runtime_metadata; - } - - public function hasRuntimeMetadata() - { - return isset($this->runtime_metadata); - } - - public function clearRuntimeMetadata() - { - unset($this->runtime_metadata); - } - - /** - * Describes the runtime metadata with SDKInfo and available parameters. - * - * Generated from protobuf field .google.dataflow.v1beta3.RuntimeMetadata runtime_metadata = 4; - * @param \Google\Cloud\Dataflow\V1beta3\RuntimeMetadata $var - * @return $this - */ - public function setRuntimeMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\RuntimeMetadata::class); - $this->runtime_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateResponse/TemplateType.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateResponse/TemplateType.php deleted file mode 100644 index e7e7f9d50cd3..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/GetTemplateResponse/TemplateType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.dataflow.v1beta3.GetTemplateResponse.TemplateType - */ -class TemplateType -{ - /** - * Unknown Template Type. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Legacy Template. - * - * Generated from protobuf enum LEGACY = 1; - */ - const LEGACY = 1; - /** - * Flex Template. - * - * Generated from protobuf enum FLEX = 2; - */ - const FLEX = 2; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::LEGACY => 'LEGACY', - self::FLEX => 'FLEX', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TemplateType::class, \Google\Cloud\Dataflow\V1beta3\GetTemplateResponse_TemplateType::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/InvalidTemplateParameters.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/InvalidTemplateParameters.php deleted file mode 100644 index 3affc03a57e1..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/InvalidTemplateParameters.php +++ /dev/null @@ -1,68 +0,0 @@ -google.dataflow.v1beta3.InvalidTemplateParameters - */ -class InvalidTemplateParameters extends \Google\Protobuf\Internal\Message -{ - /** - * Describes all parameter violations in a template request. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1; - */ - private $parameter_violations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dataflow\V1beta3\InvalidTemplateParameters\ParameterViolation>|\Google\Protobuf\Internal\RepeatedField $parameter_violations - * Describes all parameter violations in a template request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Describes all parameter violations in a template request. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParameterViolations() - { - return $this->parameter_violations; - } - - /** - * Describes all parameter violations in a template request. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation parameter_violations = 1; - * @param array<\Google\Cloud\Dataflow\V1beta3\InvalidTemplateParameters\ParameterViolation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParameterViolations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\InvalidTemplateParameters\ParameterViolation::class); - $this->parameter_violations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/InvalidTemplateParameters/ParameterViolation.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/InvalidTemplateParameters/ParameterViolation.php deleted file mode 100644 index e7bb5c57d431..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/InvalidTemplateParameters/ParameterViolation.php +++ /dev/null @@ -1,104 +0,0 @@ -google.dataflow.v1beta3.InvalidTemplateParameters.ParameterViolation - */ -class ParameterViolation extends \Google\Protobuf\Internal\Message -{ - /** - * The parameter that failed to validate. - * - * Generated from protobuf field string parameter = 1; - */ - protected $parameter = ''; - /** - * A description of why the parameter failed to validate. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parameter - * The parameter that failed to validate. - * @type string $description - * A description of why the parameter failed to validate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * The parameter that failed to validate. - * - * Generated from protobuf field string parameter = 1; - * @return string - */ - public function getParameter() - { - return $this->parameter; - } - - /** - * The parameter that failed to validate. - * - * Generated from protobuf field string parameter = 1; - * @param string $var - * @return $this - */ - public function setParameter($var) - { - GPBUtil::checkString($var, True); - $this->parameter = $var; - - return $this; - } - - /** - * A description of why the parameter failed to validate. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of why the parameter failed to validate. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ParameterViolation::class, \Google\Cloud\Dataflow\V1beta3\InvalidTemplateParameters_ParameterViolation::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Job.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Job.php deleted file mode 100644 index 495f6dd5ce86..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Job.php +++ /dev/null @@ -1,1209 +0,0 @@ -google.dataflow.v1beta3.Job - */ -class Job extends \Google\Protobuf\Internal\Message -{ - /** - * The unique ID of this job. - * This field is set by the Cloud Dataflow service when the Job is - * created, and is immutable for the life of the job. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * The user-specified Cloud Dataflow job name. - * Only one Job with a given name may exist in a project at any - * given time. If a caller attempts to create a Job with the same - * name as an already-existing Job, the attempt returns the - * existing Job. - * The name must match the regular expression - * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - /** - * The type of Cloud Dataflow job. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobType type = 4; - */ - protected $type = 0; - /** - * The environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.Environment environment = 5; - */ - protected $environment = null; - /** - * Exactly one of step or steps_location should be specified. - * The top-level steps that constitute the entire job. Only retrieved with - * JOB_VIEW_ALL. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Step steps = 6; - */ - private $steps; - /** - * The Cloud Storage location where the steps are stored. - * - * Generated from protobuf field string steps_location = 24; - */ - protected $steps_location = ''; - /** - * The current state of the job. - * Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise - * specified. - * A job in the `JOB_STATE_RUNNING` state may asynchronously enter a - * terminal state. After a job has reached a terminal state, no - * further state updates may be made. - * This field may be mutated by the Cloud Dataflow service; - * callers cannot mutate it. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobState current_state = 7; - */ - protected $current_state = 0; - /** - * The timestamp associated with the current state. - * - * Generated from protobuf field .google.protobuf.Timestamp current_state_time = 8; - */ - protected $current_state_time = null; - /** - * The job's requested state. - * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and - * `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may - * also be used to directly set a job's requested state to - * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the - * job if it has not already reached a terminal state. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobState requested_state = 9; - */ - protected $requested_state = 0; - /** - * Deprecated. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobExecutionInfo execution_info = 10; - */ - protected $execution_info = null; - /** - * The timestamp when the job was initially created. Immutable and set by the - * Cloud Dataflow service. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11; - */ - protected $create_time = null; - /** - * If this job is an update of an existing job, this field is the job ID - * of the job it replaced. - * When sending a `CreateJobRequest`, you can update a job by specifying it - * here. The job named here is stopped, and its intermediate state is - * transferred to this job. - * - * Generated from protobuf field string replace_job_id = 12; - */ - protected $replace_job_id = ''; - /** - * The map of transform name prefixes of the job to be replaced to the - * corresponding name prefixes of the new job. - * - * Generated from protobuf field map transform_name_mapping = 13; - */ - private $transform_name_mapping; - /** - * The client's unique identifier of the job, re-used across retried attempts. - * If this field is set, the service will ensure its uniqueness. - * The request to create a job will fail if the service has knowledge of a - * previously submitted job with the same client's ID and job name. - * The caller may use this field to ensure idempotence of job - * creation across retried attempts to create a job. - * By default, the field is empty and, in that case, the service ignores it. - * - * Generated from protobuf field string client_request_id = 14; - */ - protected $client_request_id = ''; - /** - * If another job is an update of this job (and thus, this job is in - * `JOB_STATE_UPDATED`), this field contains the ID of that job. - * - * Generated from protobuf field string replaced_by_job_id = 15; - */ - protected $replaced_by_job_id = ''; - /** - * A set of files the system should be aware of that are used - * for temporary storage. These temporary files will be - * removed on job completion. - * No duplicates are allowed. - * No file patterns are supported. - * The supported files are: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field repeated string temp_files = 16; - */ - private $temp_files; - /** - * User-defined labels for this job. - * The labels map can contain no more than 64 entries. Entries of the labels - * map are UTF8 strings that comply with the following restrictions: - * * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} - * * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} - * * Both keys and values are additionally constrained to be <= 128 bytes in - * size. - * - * Generated from protobuf field map labels = 17; - */ - private $labels; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 18; - */ - protected $location = ''; - /** - * Preliminary field: The format of this data may change at any time. - * A description of the user pipeline and stages through which it is executed. - * Created by Cloud Dataflow service. Only retrieved with - * JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. - * - * Generated from protobuf field .google.dataflow.v1beta3.PipelineDescription pipeline_description = 19; - */ - protected $pipeline_description = null; - /** - * This field may be mutated by the Cloud Dataflow service; - * callers cannot mutate it. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20; - */ - private $stage_states; - /** - * This field is populated by the Dataflow service to support filtering jobs - * by the metadata values provided here. Populated for ListJobs and all GetJob - * views SUMMARY and higher. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobMetadata job_metadata = 21; - */ - protected $job_metadata = null; - /** - * The timestamp when the job was started (transitioned to JOB_STATE_PENDING). - * Flexible resource scheduling jobs are started with some delay after job - * creation, so start_time is unset before start and is updated when the - * job is started by the Cloud Dataflow service. For other jobs, start_time - * always equals to create_time and is immutable and set by the Cloud Dataflow - * service. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 22; - */ - protected $start_time = null; - /** - * If this is specified, the job's initial state is populated from the given - * snapshot. - * - * Generated from protobuf field string created_from_snapshot_id = 23; - */ - protected $created_from_snapshot_id = ''; - /** - * Reserved for future use. This field is set only in responses from the - * server; it is ignored if it is set in any requests. - * - * Generated from protobuf field bool satisfies_pzs = 25; - */ - protected $satisfies_pzs = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The unique ID of this job. - * This field is set by the Cloud Dataflow service when the Job is - * created, and is immutable for the life of the job. - * @type string $project_id - * The ID of the Cloud Platform project that the job belongs to. - * @type string $name - * The user-specified Cloud Dataflow job name. - * Only one Job with a given name may exist in a project at any - * given time. If a caller attempts to create a Job with the same - * name as an already-existing Job, the attempt returns the - * existing Job. - * The name must match the regular expression - * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` - * @type int $type - * The type of Cloud Dataflow job. - * @type \Google\Cloud\Dataflow\V1beta3\Environment $environment - * The environment for the job. - * @type array<\Google\Cloud\Dataflow\V1beta3\Step>|\Google\Protobuf\Internal\RepeatedField $steps - * Exactly one of step or steps_location should be specified. - * The top-level steps that constitute the entire job. Only retrieved with - * JOB_VIEW_ALL. - * @type string $steps_location - * The Cloud Storage location where the steps are stored. - * @type int $current_state - * The current state of the job. - * Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise - * specified. - * A job in the `JOB_STATE_RUNNING` state may asynchronously enter a - * terminal state. After a job has reached a terminal state, no - * further state updates may be made. - * This field may be mutated by the Cloud Dataflow service; - * callers cannot mutate it. - * @type \Google\Protobuf\Timestamp $current_state_time - * The timestamp associated with the current state. - * @type int $requested_state - * The job's requested state. - * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and - * `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may - * also be used to directly set a job's requested state to - * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the - * job if it has not already reached a terminal state. - * @type \Google\Cloud\Dataflow\V1beta3\JobExecutionInfo $execution_info - * Deprecated. - * @type \Google\Protobuf\Timestamp $create_time - * The timestamp when the job was initially created. Immutable and set by the - * Cloud Dataflow service. - * @type string $replace_job_id - * If this job is an update of an existing job, this field is the job ID - * of the job it replaced. - * When sending a `CreateJobRequest`, you can update a job by specifying it - * here. The job named here is stopped, and its intermediate state is - * transferred to this job. - * @type array|\Google\Protobuf\Internal\MapField $transform_name_mapping - * The map of transform name prefixes of the job to be replaced to the - * corresponding name prefixes of the new job. - * @type string $client_request_id - * The client's unique identifier of the job, re-used across retried attempts. - * If this field is set, the service will ensure its uniqueness. - * The request to create a job will fail if the service has knowledge of a - * previously submitted job with the same client's ID and job name. - * The caller may use this field to ensure idempotence of job - * creation across retried attempts to create a job. - * By default, the field is empty and, in that case, the service ignores it. - * @type string $replaced_by_job_id - * If another job is an update of this job (and thus, this job is in - * `JOB_STATE_UPDATED`), this field contains the ID of that job. - * @type array|\Google\Protobuf\Internal\RepeatedField $temp_files - * A set of files the system should be aware of that are used - * for temporary storage. These temporary files will be - * removed on job completion. - * No duplicates are allowed. - * No file patterns are supported. - * The supported files are: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * @type array|\Google\Protobuf\Internal\MapField $labels - * User-defined labels for this job. - * The labels map can contain no more than 64 entries. Entries of the labels - * map are UTF8 strings that comply with the following restrictions: - * * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} - * * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} - * * Both keys and values are additionally constrained to be <= 128 bytes in - * size. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * @type \Google\Cloud\Dataflow\V1beta3\PipelineDescription $pipeline_description - * Preliminary field: The format of this data may change at any time. - * A description of the user pipeline and stages through which it is executed. - * Created by Cloud Dataflow service. Only retrieved with - * JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. - * @type array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageState>|\Google\Protobuf\Internal\RepeatedField $stage_states - * This field may be mutated by the Cloud Dataflow service; - * callers cannot mutate it. - * @type \Google\Cloud\Dataflow\V1beta3\JobMetadata $job_metadata - * This field is populated by the Dataflow service to support filtering jobs - * by the metadata values provided here. Populated for ListJobs and all GetJob - * views SUMMARY and higher. - * @type \Google\Protobuf\Timestamp $start_time - * The timestamp when the job was started (transitioned to JOB_STATE_PENDING). - * Flexible resource scheduling jobs are started with some delay after job - * creation, so start_time is unset before start and is updated when the - * job is started by the Cloud Dataflow service. For other jobs, start_time - * always equals to create_time and is immutable and set by the Cloud Dataflow - * service. - * @type string $created_from_snapshot_id - * If this is specified, the job's initial state is populated from the given - * snapshot. - * @type bool $satisfies_pzs - * Reserved for future use. This field is set only in responses from the - * server; it is ignored if it is set in any requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The unique ID of this job. - * This field is set by the Cloud Dataflow service when the Job is - * created, and is immutable for the life of the job. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The unique ID of this job. - * This field is set by the Cloud Dataflow service when the Job is - * created, and is immutable for the life of the job. - * - * 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 ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The user-specified Cloud Dataflow job name. - * Only one Job with a given name may exist in a project at any - * given time. If a caller attempts to create a Job with the same - * name as an already-existing Job, the attempt returns the - * existing Job. - * The name must match the regular expression - * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The user-specified Cloud Dataflow job name. - * Only one Job with a given name may exist in a project at any - * given time. If a caller attempts to create a Job with the same - * name as an already-existing Job, the attempt returns the - * existing Job. - * The name must match the regular expression - * `[a-z]([-a-z0-9]{0,1022}[a-z0-9])?` - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of Cloud Dataflow job. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobType type = 4; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of Cloud Dataflow job. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobType type = 4; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\JobType::class); - $this->type = $var; - - return $this; - } - - /** - * The environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.Environment environment = 5; - * @return \Google\Cloud\Dataflow\V1beta3\Environment|null - */ - public function getEnvironment() - { - return $this->environment; - } - - public function hasEnvironment() - { - return isset($this->environment); - } - - public function clearEnvironment() - { - unset($this->environment); - } - - /** - * The environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.Environment environment = 5; - * @param \Google\Cloud\Dataflow\V1beta3\Environment $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\Environment::class); - $this->environment = $var; - - return $this; - } - - /** - * Exactly one of step or steps_location should be specified. - * The top-level steps that constitute the entire job. Only retrieved with - * JOB_VIEW_ALL. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Step steps = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSteps() - { - return $this->steps; - } - - /** - * Exactly one of step or steps_location should be specified. - * The top-level steps that constitute the entire job. Only retrieved with - * JOB_VIEW_ALL. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Step steps = 6; - * @param array<\Google\Cloud\Dataflow\V1beta3\Step>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\Step::class); - $this->steps = $arr; - - return $this; - } - - /** - * The Cloud Storage location where the steps are stored. - * - * Generated from protobuf field string steps_location = 24; - * @return string - */ - public function getStepsLocation() - { - return $this->steps_location; - } - - /** - * The Cloud Storage location where the steps are stored. - * - * Generated from protobuf field string steps_location = 24; - * @param string $var - * @return $this - */ - public function setStepsLocation($var) - { - GPBUtil::checkString($var, True); - $this->steps_location = $var; - - return $this; - } - - /** - * The current state of the job. - * Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise - * specified. - * A job in the `JOB_STATE_RUNNING` state may asynchronously enter a - * terminal state. After a job has reached a terminal state, no - * further state updates may be made. - * This field may be mutated by the Cloud Dataflow service; - * callers cannot mutate it. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobState current_state = 7; - * @return int - */ - public function getCurrentState() - { - return $this->current_state; - } - - /** - * The current state of the job. - * Jobs are created in the `JOB_STATE_STOPPED` state unless otherwise - * specified. - * A job in the `JOB_STATE_RUNNING` state may asynchronously enter a - * terminal state. After a job has reached a terminal state, no - * further state updates may be made. - * This field may be mutated by the Cloud Dataflow service; - * callers cannot mutate it. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobState current_state = 7; - * @param int $var - * @return $this - */ - public function setCurrentState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\JobState::class); - $this->current_state = $var; - - return $this; - } - - /** - * The timestamp associated with the current state. - * - * Generated from protobuf field .google.protobuf.Timestamp current_state_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCurrentStateTime() - { - return $this->current_state_time; - } - - public function hasCurrentStateTime() - { - return isset($this->current_state_time); - } - - public function clearCurrentStateTime() - { - unset($this->current_state_time); - } - - /** - * The timestamp associated with the current state. - * - * Generated from protobuf field .google.protobuf.Timestamp current_state_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCurrentStateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->current_state_time = $var; - - return $this; - } - - /** - * The job's requested state. - * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and - * `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may - * also be used to directly set a job's requested state to - * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the - * job if it has not already reached a terminal state. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobState requested_state = 9; - * @return int - */ - public function getRequestedState() - { - return $this->requested_state; - } - - /** - * The job's requested state. - * `UpdateJob` may be used to switch between the `JOB_STATE_STOPPED` and - * `JOB_STATE_RUNNING` states, by setting requested_state. `UpdateJob` may - * also be used to directly set a job's requested state to - * `JOB_STATE_CANCELLED` or `JOB_STATE_DONE`, irrevocably terminating the - * job if it has not already reached a terminal state. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobState requested_state = 9; - * @param int $var - * @return $this - */ - public function setRequestedState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\JobState::class); - $this->requested_state = $var; - - return $this; - } - - /** - * Deprecated. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobExecutionInfo execution_info = 10; - * @return \Google\Cloud\Dataflow\V1beta3\JobExecutionInfo|null - */ - public function getExecutionInfo() - { - return $this->execution_info; - } - - public function hasExecutionInfo() - { - return isset($this->execution_info); - } - - public function clearExecutionInfo() - { - unset($this->execution_info); - } - - /** - * Deprecated. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobExecutionInfo execution_info = 10; - * @param \Google\Cloud\Dataflow\V1beta3\JobExecutionInfo $var - * @return $this - */ - public function setExecutionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\JobExecutionInfo::class); - $this->execution_info = $var; - - return $this; - } - - /** - * The timestamp when the job was initially created. Immutable and set by the - * Cloud Dataflow service. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The timestamp when the job was initially created. Immutable and set by the - * Cloud Dataflow service. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * If this job is an update of an existing job, this field is the job ID - * of the job it replaced. - * When sending a `CreateJobRequest`, you can update a job by specifying it - * here. The job named here is stopped, and its intermediate state is - * transferred to this job. - * - * Generated from protobuf field string replace_job_id = 12; - * @return string - */ - public function getReplaceJobId() - { - return $this->replace_job_id; - } - - /** - * If this job is an update of an existing job, this field is the job ID - * of the job it replaced. - * When sending a `CreateJobRequest`, you can update a job by specifying it - * here. The job named here is stopped, and its intermediate state is - * transferred to this job. - * - * Generated from protobuf field string replace_job_id = 12; - * @param string $var - * @return $this - */ - public function setReplaceJobId($var) - { - GPBUtil::checkString($var, True); - $this->replace_job_id = $var; - - return $this; - } - - /** - * The map of transform name prefixes of the job to be replaced to the - * corresponding name prefixes of the new job. - * - * Generated from protobuf field map transform_name_mapping = 13; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTransformNameMapping() - { - return $this->transform_name_mapping; - } - - /** - * The map of transform name prefixes of the job to be replaced to the - * corresponding name prefixes of the new job. - * - * Generated from protobuf field map transform_name_mapping = 13; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTransformNameMapping($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->transform_name_mapping = $arr; - - return $this; - } - - /** - * The client's unique identifier of the job, re-used across retried attempts. - * If this field is set, the service will ensure its uniqueness. - * The request to create a job will fail if the service has knowledge of a - * previously submitted job with the same client's ID and job name. - * The caller may use this field to ensure idempotence of job - * creation across retried attempts to create a job. - * By default, the field is empty and, in that case, the service ignores it. - * - * Generated from protobuf field string client_request_id = 14; - * @return string - */ - public function getClientRequestId() - { - return $this->client_request_id; - } - - /** - * The client's unique identifier of the job, re-used across retried attempts. - * If this field is set, the service will ensure its uniqueness. - * The request to create a job will fail if the service has knowledge of a - * previously submitted job with the same client's ID and job name. - * The caller may use this field to ensure idempotence of job - * creation across retried attempts to create a job. - * By default, the field is empty and, in that case, the service ignores it. - * - * Generated from protobuf field string client_request_id = 14; - * @param string $var - * @return $this - */ - public function setClientRequestId($var) - { - GPBUtil::checkString($var, True); - $this->client_request_id = $var; - - return $this; - } - - /** - * If another job is an update of this job (and thus, this job is in - * `JOB_STATE_UPDATED`), this field contains the ID of that job. - * - * Generated from protobuf field string replaced_by_job_id = 15; - * @return string - */ - public function getReplacedByJobId() - { - return $this->replaced_by_job_id; - } - - /** - * If another job is an update of this job (and thus, this job is in - * `JOB_STATE_UPDATED`), this field contains the ID of that job. - * - * Generated from protobuf field string replaced_by_job_id = 15; - * @param string $var - * @return $this - */ - public function setReplacedByJobId($var) - { - GPBUtil::checkString($var, True); - $this->replaced_by_job_id = $var; - - return $this; - } - - /** - * A set of files the system should be aware of that are used - * for temporary storage. These temporary files will be - * removed on job completion. - * No duplicates are allowed. - * No file patterns are supported. - * The supported files are: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field repeated string temp_files = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTempFiles() - { - return $this->temp_files; - } - - /** - * A set of files the system should be aware of that are used - * for temporary storage. These temporary files will be - * removed on job completion. - * No duplicates are allowed. - * No file patterns are supported. - * The supported files are: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field repeated string temp_files = 16; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTempFiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->temp_files = $arr; - - return $this; - } - - /** - * User-defined labels for this job. - * The labels map can contain no more than 64 entries. Entries of the labels - * map are UTF8 strings that comply with the following restrictions: - * * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} - * * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} - * * Both keys and values are additionally constrained to be <= 128 bytes in - * size. - * - * Generated from protobuf field map labels = 17; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * User-defined labels for this job. - * The labels map can contain no more than 64 entries. Entries of the labels - * map are UTF8 strings that comply with the following restrictions: - * * Keys must conform to regexp: [\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62} - * * Values must conform to regexp: [\p{Ll}\p{Lo}\p{N}_-]{0,63} - * * Both keys and values are additionally constrained to be <= 128 bytes in - * size. - * - * Generated from protobuf field map labels = 17; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 18; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 18; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Preliminary field: The format of this data may change at any time. - * A description of the user pipeline and stages through which it is executed. - * Created by Cloud Dataflow service. Only retrieved with - * JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. - * - * Generated from protobuf field .google.dataflow.v1beta3.PipelineDescription pipeline_description = 19; - * @return \Google\Cloud\Dataflow\V1beta3\PipelineDescription|null - */ - public function getPipelineDescription() - { - return $this->pipeline_description; - } - - public function hasPipelineDescription() - { - return isset($this->pipeline_description); - } - - public function clearPipelineDescription() - { - unset($this->pipeline_description); - } - - /** - * Preliminary field: The format of this data may change at any time. - * A description of the user pipeline and stages through which it is executed. - * Created by Cloud Dataflow service. Only retrieved with - * JOB_VIEW_DESCRIPTION or JOB_VIEW_ALL. - * - * Generated from protobuf field .google.dataflow.v1beta3.PipelineDescription pipeline_description = 19; - * @param \Google\Cloud\Dataflow\V1beta3\PipelineDescription $var - * @return $this - */ - public function setPipelineDescription($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\PipelineDescription::class); - $this->pipeline_description = $var; - - return $this; - } - - /** - * This field may be mutated by the Cloud Dataflow service; - * callers cannot mutate it. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStageStates() - { - return $this->stage_states; - } - - /** - * This field may be mutated by the Cloud Dataflow service; - * callers cannot mutate it. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageState stage_states = 20; - * @param array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageState>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStageStates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\ExecutionStageState::class); - $this->stage_states = $arr; - - return $this; - } - - /** - * This field is populated by the Dataflow service to support filtering jobs - * by the metadata values provided here. Populated for ListJobs and all GetJob - * views SUMMARY and higher. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobMetadata job_metadata = 21; - * @return \Google\Cloud\Dataflow\V1beta3\JobMetadata|null - */ - public function getJobMetadata() - { - return $this->job_metadata; - } - - public function hasJobMetadata() - { - return isset($this->job_metadata); - } - - public function clearJobMetadata() - { - unset($this->job_metadata); - } - - /** - * This field is populated by the Dataflow service to support filtering jobs - * by the metadata values provided here. Populated for ListJobs and all GetJob - * views SUMMARY and higher. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobMetadata job_metadata = 21; - * @param \Google\Cloud\Dataflow\V1beta3\JobMetadata $var - * @return $this - */ - public function setJobMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\JobMetadata::class); - $this->job_metadata = $var; - - return $this; - } - - /** - * The timestamp when the job was started (transitioned to JOB_STATE_PENDING). - * Flexible resource scheduling jobs are started with some delay after job - * creation, so start_time is unset before start and is updated when the - * job is started by the Cloud Dataflow service. For other jobs, start_time - * always equals to create_time and is immutable and set by the Cloud Dataflow - * service. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 22; - * @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 job was started (transitioned to JOB_STATE_PENDING). - * Flexible resource scheduling jobs are started with some delay after job - * creation, so start_time is unset before start and is updated when the - * job is started by the Cloud Dataflow service. For other jobs, start_time - * always equals to create_time and is immutable and set by the Cloud Dataflow - * service. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 22; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * If this is specified, the job's initial state is populated from the given - * snapshot. - * - * Generated from protobuf field string created_from_snapshot_id = 23; - * @return string - */ - public function getCreatedFromSnapshotId() - { - return $this->created_from_snapshot_id; - } - - /** - * If this is specified, the job's initial state is populated from the given - * snapshot. - * - * Generated from protobuf field string created_from_snapshot_id = 23; - * @param string $var - * @return $this - */ - public function setCreatedFromSnapshotId($var) - { - GPBUtil::checkString($var, True); - $this->created_from_snapshot_id = $var; - - return $this; - } - - /** - * Reserved for future use. This field is set only in responses from the - * server; it is ignored if it is set in any requests. - * - * Generated from protobuf field bool satisfies_pzs = 25; - * @return bool - */ - public function getSatisfiesPzs() - { - return $this->satisfies_pzs; - } - - /** - * Reserved for future use. This field is set only in responses from the - * server; it is ignored if it is set in any requests. - * - * Generated from protobuf field bool satisfies_pzs = 25; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionDetails.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionDetails.php deleted file mode 100644 index 5645aec2f176..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionDetails.php +++ /dev/null @@ -1,109 +0,0 @@ -google.dataflow.v1beta3.JobExecutionDetails - */ -class JobExecutionDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The stages of the job execution. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StageSummary stages = 1; - */ - private $stages; - /** - * If present, this response does not contain all requested tasks. To obtain - * the next page of results, repeat the request with page_token set to this - * value. - * - * 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\Dataflow\V1beta3\StageSummary>|\Google\Protobuf\Internal\RepeatedField $stages - * The stages of the job execution. - * @type string $next_page_token - * If present, this response does not contain all requested tasks. To obtain - * the next page of results, repeat the request with page_token set to this - * value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * The stages of the job execution. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StageSummary stages = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStages() - { - return $this->stages; - } - - /** - * The stages of the job execution. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StageSummary stages = 1; - * @param array<\Google\Cloud\Dataflow\V1beta3\StageSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\StageSummary::class); - $this->stages = $arr; - - return $this; - } - - /** - * If present, this response does not contain all requested tasks. To obtain - * the next page of results, repeat the request with page_token set to this - * value. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If present, this response does not contain all requested tasks. To obtain - * the next page of results, repeat the request with page_token set to this - * value. - * - * 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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionInfo.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionInfo.php deleted file mode 100644 index 201ca49b889e..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionInfo.php +++ /dev/null @@ -1,68 +0,0 @@ -google.dataflow.v1beta3.JobExecutionInfo - */ -class JobExecutionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * A mapping from each stage to the information about that stage. - * - * Generated from protobuf field map stages = 1; - */ - private $stages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $stages - * A mapping from each stage to the information about that stage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * A mapping from each stage to the information about that stage. - * - * Generated from protobuf field map stages = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getStages() - { - return $this->stages; - } - - /** - * A mapping from each stage to the information about that stage. - * - * Generated from protobuf field map stages = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setStages($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\JobExecutionStageInfo::class); - $this->stages = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionStageInfo.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionStageInfo.php deleted file mode 100644 index 2af78dbddbff..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobExecutionStageInfo.php +++ /dev/null @@ -1,76 +0,0 @@ -google.dataflow.v1beta3.JobExecutionStageInfo - */ -class JobExecutionStageInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The steps associated with the execution stage. - * Note that stages may have several steps, and that a given step - * might be run by more than one stage. - * - * Generated from protobuf field repeated string step_name = 1; - */ - private $step_name; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $step_name - * The steps associated with the execution stage. - * Note that stages may have several steps, and that a given step - * might be run by more than one stage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The steps associated with the execution stage. - * Note that stages may have several steps, and that a given step - * might be run by more than one stage. - * - * Generated from protobuf field repeated string step_name = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStepName() - { - return $this->step_name; - } - - /** - * The steps associated with the execution stage. - * Note that stages may have several steps, and that a given step - * might be run by more than one stage. - * - * Generated from protobuf field repeated string step_name = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStepName($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->step_name = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMessage.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMessage.php deleted file mode 100644 index ebf515bb8e04..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMessage.php +++ /dev/null @@ -1,179 +0,0 @@ -google.dataflow.v1beta3.JobMessage - */ -class JobMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Deprecated. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The timestamp of the message. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - */ - protected $time = null; - /** - * The text of the message. - * - * Generated from protobuf field string message_text = 3; - */ - protected $message_text = ''; - /** - * Importance level of the message. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobMessageImportance message_importance = 4; - */ - protected $message_importance = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Deprecated. - * @type \Google\Protobuf\Timestamp $time - * The timestamp of the message. - * @type string $message_text - * The text of the message. - * @type int $message_importance - * Importance level of the message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Messages::initOnce(); - parent::__construct($data); - } - - /** - * Deprecated. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Deprecated. - * - * 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 timestamp of the message. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * The timestamp of the message. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * The text of the message. - * - * Generated from protobuf field string message_text = 3; - * @return string - */ - public function getMessageText() - { - return $this->message_text; - } - - /** - * The text of the message. - * - * Generated from protobuf field string message_text = 3; - * @param string $var - * @return $this - */ - public function setMessageText($var) - { - GPBUtil::checkString($var, True); - $this->message_text = $var; - - return $this; - } - - /** - * Importance level of the message. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobMessageImportance message_importance = 4; - * @return int - */ - public function getMessageImportance() - { - return $this->message_importance; - } - - /** - * Importance level of the message. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobMessageImportance message_importance = 4; - * @param int $var - * @return $this - */ - public function setMessageImportance($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\JobMessageImportance::class); - $this->message_importance = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMessageImportance.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMessageImportance.php deleted file mode 100644 index 66c31d12ff93..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMessageImportance.php +++ /dev/null @@ -1,100 +0,0 @@ -google.dataflow.v1beta3.JobMessageImportance - */ -class JobMessageImportance -{ - /** - * The message importance isn't specified, or is unknown. - * - * Generated from protobuf enum JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0; - */ - const JOB_MESSAGE_IMPORTANCE_UNKNOWN = 0; - /** - * The message is at the 'debug' level: typically only useful for - * software engineers working on the code the job is running. - * Typically, Dataflow pipeline runners do not display log messages - * at this level by default. - * - * Generated from protobuf enum JOB_MESSAGE_DEBUG = 1; - */ - const JOB_MESSAGE_DEBUG = 1; - /** - * The message is at the 'detailed' level: somewhat verbose, but - * potentially useful to users. Typically, Dataflow pipeline - * runners do not display log messages at this level by default. - * These messages are displayed by default in the Dataflow - * monitoring UI. - * - * Generated from protobuf enum JOB_MESSAGE_DETAILED = 2; - */ - const JOB_MESSAGE_DETAILED = 2; - /** - * The message is at the 'basic' level: useful for keeping - * track of the execution of a Dataflow pipeline. Typically, - * Dataflow pipeline runners display log messages at this level by - * default, and these messages are displayed by default in the - * Dataflow monitoring UI. - * - * Generated from protobuf enum JOB_MESSAGE_BASIC = 5; - */ - const JOB_MESSAGE_BASIC = 5; - /** - * The message is at the 'warning' level: indicating a condition - * pertaining to a job which may require human intervention. - * Typically, Dataflow pipeline runners display log messages at this - * level by default, and these messages are displayed by default in - * the Dataflow monitoring UI. - * - * Generated from protobuf enum JOB_MESSAGE_WARNING = 3; - */ - const JOB_MESSAGE_WARNING = 3; - /** - * The message is at the 'error' level: indicating a condition - * preventing a job from succeeding. Typically, Dataflow pipeline - * runners display log messages at this level by default, and these - * messages are displayed by default in the Dataflow monitoring UI. - * - * Generated from protobuf enum JOB_MESSAGE_ERROR = 4; - */ - const JOB_MESSAGE_ERROR = 4; - - private static $valueToName = [ - self::JOB_MESSAGE_IMPORTANCE_UNKNOWN => 'JOB_MESSAGE_IMPORTANCE_UNKNOWN', - self::JOB_MESSAGE_DEBUG => 'JOB_MESSAGE_DEBUG', - self::JOB_MESSAGE_DETAILED => 'JOB_MESSAGE_DETAILED', - self::JOB_MESSAGE_BASIC => 'JOB_MESSAGE_BASIC', - self::JOB_MESSAGE_WARNING => 'JOB_MESSAGE_WARNING', - self::JOB_MESSAGE_ERROR => 'JOB_MESSAGE_ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMetadata.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMetadata.php deleted file mode 100644 index de843e7608de..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMetadata.php +++ /dev/null @@ -1,282 +0,0 @@ -google.dataflow.v1beta3.JobMetadata - */ -class JobMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The SDK version used to run the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.SdkVersion sdk_version = 1; - */ - protected $sdk_version = null; - /** - * Identification of a Spanner source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.SpannerIODetails spanner_details = 2; - */ - private $spanner_details; - /** - * Identification of a BigQuery source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.BigQueryIODetails bigquery_details = 3; - */ - private $bigquery_details; - /** - * Identification of a Cloud Bigtable source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.BigTableIODetails big_table_details = 4; - */ - private $big_table_details; - /** - * Identification of a Pub/Sub source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.PubSubIODetails pubsub_details = 5; - */ - private $pubsub_details; - /** - * Identification of a File source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.FileIODetails file_details = 6; - */ - private $file_details; - /** - * Identification of a Datastore source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DatastoreIODetails datastore_details = 7; - */ - private $datastore_details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataflow\V1beta3\SdkVersion $sdk_version - * The SDK version used to run the job. - * @type array<\Google\Cloud\Dataflow\V1beta3\SpannerIODetails>|\Google\Protobuf\Internal\RepeatedField $spanner_details - * Identification of a Spanner source used in the Dataflow job. - * @type array<\Google\Cloud\Dataflow\V1beta3\BigQueryIODetails>|\Google\Protobuf\Internal\RepeatedField $bigquery_details - * Identification of a BigQuery source used in the Dataflow job. - * @type array<\Google\Cloud\Dataflow\V1beta3\BigTableIODetails>|\Google\Protobuf\Internal\RepeatedField $big_table_details - * Identification of a Cloud Bigtable source used in the Dataflow job. - * @type array<\Google\Cloud\Dataflow\V1beta3\PubSubIODetails>|\Google\Protobuf\Internal\RepeatedField $pubsub_details - * Identification of a Pub/Sub source used in the Dataflow job. - * @type array<\Google\Cloud\Dataflow\V1beta3\FileIODetails>|\Google\Protobuf\Internal\RepeatedField $file_details - * Identification of a File source used in the Dataflow job. - * @type array<\Google\Cloud\Dataflow\V1beta3\DatastoreIODetails>|\Google\Protobuf\Internal\RepeatedField $datastore_details - * Identification of a Datastore source used in the Dataflow job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The SDK version used to run the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.SdkVersion sdk_version = 1; - * @return \Google\Cloud\Dataflow\V1beta3\SdkVersion|null - */ - public function getSdkVersion() - { - return $this->sdk_version; - } - - public function hasSdkVersion() - { - return isset($this->sdk_version); - } - - public function clearSdkVersion() - { - unset($this->sdk_version); - } - - /** - * The SDK version used to run the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.SdkVersion sdk_version = 1; - * @param \Google\Cloud\Dataflow\V1beta3\SdkVersion $var - * @return $this - */ - public function setSdkVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\SdkVersion::class); - $this->sdk_version = $var; - - return $this; - } - - /** - * Identification of a Spanner source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.SpannerIODetails spanner_details = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSpannerDetails() - { - return $this->spanner_details; - } - - /** - * Identification of a Spanner source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.SpannerIODetails spanner_details = 2; - * @param array<\Google\Cloud\Dataflow\V1beta3\SpannerIODetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSpannerDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\SpannerIODetails::class); - $this->spanner_details = $arr; - - return $this; - } - - /** - * Identification of a BigQuery source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.BigQueryIODetails bigquery_details = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBigqueryDetails() - { - return $this->bigquery_details; - } - - /** - * Identification of a BigQuery source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.BigQueryIODetails bigquery_details = 3; - * @param array<\Google\Cloud\Dataflow\V1beta3\BigQueryIODetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBigqueryDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\BigQueryIODetails::class); - $this->bigquery_details = $arr; - - return $this; - } - - /** - * Identification of a Cloud Bigtable source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.BigTableIODetails big_table_details = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBigTableDetails() - { - return $this->big_table_details; - } - - /** - * Identification of a Cloud Bigtable source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.BigTableIODetails big_table_details = 4; - * @param array<\Google\Cloud\Dataflow\V1beta3\BigTableIODetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBigTableDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\BigTableIODetails::class); - $this->big_table_details = $arr; - - return $this; - } - - /** - * Identification of a Pub/Sub source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.PubSubIODetails pubsub_details = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPubsubDetails() - { - return $this->pubsub_details; - } - - /** - * Identification of a Pub/Sub source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.PubSubIODetails pubsub_details = 5; - * @param array<\Google\Cloud\Dataflow\V1beta3\PubSubIODetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPubsubDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\PubSubIODetails::class); - $this->pubsub_details = $arr; - - return $this; - } - - /** - * Identification of a File source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.FileIODetails file_details = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileDetails() - { - return $this->file_details; - } - - /** - * Identification of a File source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.FileIODetails file_details = 6; - * @param array<\Google\Cloud\Dataflow\V1beta3\FileIODetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\FileIODetails::class); - $this->file_details = $arr; - - return $this; - } - - /** - * Identification of a Datastore source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DatastoreIODetails datastore_details = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDatastoreDetails() - { - return $this->datastore_details; - } - - /** - * Identification of a Datastore source used in the Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DatastoreIODetails datastore_details = 7; - * @param array<\Google\Cloud\Dataflow\V1beta3\DatastoreIODetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDatastoreDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\DatastoreIODetails::class); - $this->datastore_details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMetrics.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMetrics.php deleted file mode 100644 index 750b6885b0c2..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobMetrics.php +++ /dev/null @@ -1,116 +0,0 @@ -google.dataflow.v1beta3.JobMetrics - */ -class JobMetrics extends \Google\Protobuf\Internal\Message -{ - /** - * Timestamp as of which metric values are current. - * - * Generated from protobuf field .google.protobuf.Timestamp metric_time = 1; - */ - protected $metric_time = null; - /** - * All metrics for this job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2; - */ - private $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $metric_time - * Timestamp as of which metric values are current. - * @type array<\Google\Cloud\Dataflow\V1beta3\MetricUpdate>|\Google\Protobuf\Internal\RepeatedField $metrics - * All metrics for this job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * Timestamp as of which metric values are current. - * - * Generated from protobuf field .google.protobuf.Timestamp metric_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getMetricTime() - { - return $this->metric_time; - } - - public function hasMetricTime() - { - return isset($this->metric_time); - } - - public function clearMetricTime() - { - unset($this->metric_time); - } - - /** - * Timestamp as of which metric values are current. - * - * Generated from protobuf field .google.protobuf.Timestamp metric_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setMetricTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->metric_time = $var; - - return $this; - } - - /** - * All metrics for this job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * All metrics for this job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.MetricUpdate metrics = 2; - * @param array<\Google\Cloud\Dataflow\V1beta3\MetricUpdate>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\MetricUpdate::class); - $this->metrics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobState.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobState.php deleted file mode 100644 index 53587a61ad51..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobState.php +++ /dev/null @@ -1,163 +0,0 @@ -google.dataflow.v1beta3.JobState - */ -class JobState -{ - /** - * The job's run state isn't specified. - * - * Generated from protobuf enum JOB_STATE_UNKNOWN = 0; - */ - const JOB_STATE_UNKNOWN = 0; - /** - * `JOB_STATE_STOPPED` indicates that the job has not - * yet started to run. - * - * Generated from protobuf enum JOB_STATE_STOPPED = 1; - */ - const JOB_STATE_STOPPED = 1; - /** - * `JOB_STATE_RUNNING` indicates that the job is currently running. - * - * Generated from protobuf enum JOB_STATE_RUNNING = 2; - */ - const JOB_STATE_RUNNING = 2; - /** - * `JOB_STATE_DONE` indicates that the job has successfully completed. - * This is a terminal job state. This state may be set by the Cloud Dataflow - * service, as a transition from `JOB_STATE_RUNNING`. It may also be set via a - * Cloud Dataflow `UpdateJob` call, if the job has not yet reached a terminal - * state. - * - * Generated from protobuf enum JOB_STATE_DONE = 3; - */ - const JOB_STATE_DONE = 3; - /** - * `JOB_STATE_FAILED` indicates that the job has failed. This is a - * terminal job state. This state may only be set by the Cloud Dataflow - * service, and only as a transition from `JOB_STATE_RUNNING`. - * - * Generated from protobuf enum JOB_STATE_FAILED = 4; - */ - const JOB_STATE_FAILED = 4; - /** - * `JOB_STATE_CANCELLED` indicates that the job has been explicitly - * cancelled. This is a terminal job state. This state may only be - * set via a Cloud Dataflow `UpdateJob` call, and only if the job has not - * yet reached another terminal state. - * - * Generated from protobuf enum JOB_STATE_CANCELLED = 5; - */ - const JOB_STATE_CANCELLED = 5; - /** - * `JOB_STATE_UPDATED` indicates that the job was successfully updated, - * meaning that this job was stopped and another job was started, inheriting - * state from this one. This is a terminal job state. This state may only be - * set by the Cloud Dataflow service, and only as a transition from - * `JOB_STATE_RUNNING`. - * - * Generated from protobuf enum JOB_STATE_UPDATED = 6; - */ - const JOB_STATE_UPDATED = 6; - /** - * `JOB_STATE_DRAINING` indicates that the job is in the process of draining. - * A draining job has stopped pulling from its input sources and is processing - * any data that remains in-flight. This state may be set via a Cloud Dataflow - * `UpdateJob` call, but only as a transition from `JOB_STATE_RUNNING`. Jobs - * that are draining may only transition to `JOB_STATE_DRAINED`, - * `JOB_STATE_CANCELLED`, or `JOB_STATE_FAILED`. - * - * Generated from protobuf enum JOB_STATE_DRAINING = 7; - */ - const JOB_STATE_DRAINING = 7; - /** - * `JOB_STATE_DRAINED` indicates that the job has been drained. - * A drained job terminated by stopping pulling from its input sources and - * processing any data that remained in-flight when draining was requested. - * This state is a terminal state, may only be set by the Cloud Dataflow - * service, and only as a transition from `JOB_STATE_DRAINING`. - * - * Generated from protobuf enum JOB_STATE_DRAINED = 8; - */ - const JOB_STATE_DRAINED = 8; - /** - * `JOB_STATE_PENDING` indicates that the job has been created but is not yet - * running. Jobs that are pending may only transition to `JOB_STATE_RUNNING`, - * or `JOB_STATE_FAILED`. - * - * Generated from protobuf enum JOB_STATE_PENDING = 9; - */ - const JOB_STATE_PENDING = 9; - /** - * `JOB_STATE_CANCELLING` indicates that the job has been explicitly cancelled - * and is in the process of stopping. Jobs that are cancelling may only - * transition to `JOB_STATE_CANCELLED` or `JOB_STATE_FAILED`. - * - * Generated from protobuf enum JOB_STATE_CANCELLING = 10; - */ - const JOB_STATE_CANCELLING = 10; - /** - * `JOB_STATE_QUEUED` indicates that the job has been created but is being - * delayed until launch. Jobs that are queued may only transition to - * `JOB_STATE_PENDING` or `JOB_STATE_CANCELLED`. - * - * Generated from protobuf enum JOB_STATE_QUEUED = 11; - */ - const JOB_STATE_QUEUED = 11; - /** - * `JOB_STATE_RESOURCE_CLEANING_UP` indicates that the batch job's associated - * resources are currently being cleaned up after a successful run. - * Currently, this is an opt-in feature, please reach out to Cloud support - * team if you are interested. - * - * Generated from protobuf enum JOB_STATE_RESOURCE_CLEANING_UP = 12; - */ - const JOB_STATE_RESOURCE_CLEANING_UP = 12; - - private static $valueToName = [ - self::JOB_STATE_UNKNOWN => 'JOB_STATE_UNKNOWN', - self::JOB_STATE_STOPPED => 'JOB_STATE_STOPPED', - self::JOB_STATE_RUNNING => 'JOB_STATE_RUNNING', - self::JOB_STATE_DONE => 'JOB_STATE_DONE', - self::JOB_STATE_FAILED => 'JOB_STATE_FAILED', - self::JOB_STATE_CANCELLED => 'JOB_STATE_CANCELLED', - self::JOB_STATE_UPDATED => 'JOB_STATE_UPDATED', - self::JOB_STATE_DRAINING => 'JOB_STATE_DRAINING', - self::JOB_STATE_DRAINED => 'JOB_STATE_DRAINED', - self::JOB_STATE_PENDING => 'JOB_STATE_PENDING', - self::JOB_STATE_CANCELLING => 'JOB_STATE_CANCELLING', - self::JOB_STATE_QUEUED => 'JOB_STATE_QUEUED', - self::JOB_STATE_RESOURCE_CLEANING_UP => 'JOB_STATE_RESOURCE_CLEANING_UP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobType.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobType.php deleted file mode 100644 index 35a10c4dd525..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobType.php +++ /dev/null @@ -1,66 +0,0 @@ -google.dataflow.v1beta3.JobType - */ -class JobType -{ - /** - * The type of the job is unspecified, or unknown. - * - * Generated from protobuf enum JOB_TYPE_UNKNOWN = 0; - */ - const JOB_TYPE_UNKNOWN = 0; - /** - * A batch job with a well-defined end point: data is read, data is - * processed, data is written, and the job is done. - * - * Generated from protobuf enum JOB_TYPE_BATCH = 1; - */ - const JOB_TYPE_BATCH = 1; - /** - * A continuously streaming job with no end: data is read, - * processed, and written continuously. - * - * Generated from protobuf enum JOB_TYPE_STREAMING = 2; - */ - const JOB_TYPE_STREAMING = 2; - - private static $valueToName = [ - self::JOB_TYPE_UNKNOWN => 'JOB_TYPE_UNKNOWN', - self::JOB_TYPE_BATCH => 'JOB_TYPE_BATCH', - self::JOB_TYPE_STREAMING => 'JOB_TYPE_STREAMING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobView.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobView.php deleted file mode 100644 index 4e770bb11f5c..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/JobView.php +++ /dev/null @@ -1,73 +0,0 @@ -google.dataflow.v1beta3.JobView - */ -class JobView -{ - /** - * The job view to return isn't specified, or is unknown. - * Responses will contain at least the `JOB_VIEW_SUMMARY` information, - * and may contain additional information. - * - * Generated from protobuf enum JOB_VIEW_UNKNOWN = 0; - */ - const JOB_VIEW_UNKNOWN = 0; - /** - * Request summary information only: - * Project ID, Job ID, job name, job type, job status, start/end time, - * and Cloud SDK version details. - * - * Generated from protobuf enum JOB_VIEW_SUMMARY = 1; - */ - const JOB_VIEW_SUMMARY = 1; - /** - * Request all information available for this job. - * - * Generated from protobuf enum JOB_VIEW_ALL = 2; - */ - const JOB_VIEW_ALL = 2; - /** - * Request summary info and limited job description data for steps, labels and - * environment. - * - * Generated from protobuf enum JOB_VIEW_DESCRIPTION = 3; - */ - const JOB_VIEW_DESCRIPTION = 3; - - private static $valueToName = [ - self::JOB_VIEW_UNKNOWN => 'JOB_VIEW_UNKNOWN', - self::JOB_VIEW_SUMMARY => 'JOB_VIEW_SUMMARY', - self::JOB_VIEW_ALL => 'JOB_VIEW_ALL', - self::JOB_VIEW_DESCRIPTION => 'JOB_VIEW_DESCRIPTION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KeyRangeDataDiskAssignment.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KeyRangeDataDiskAssignment.php deleted file mode 100644 index 969c3ac77411..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KeyRangeDataDiskAssignment.php +++ /dev/null @@ -1,150 +0,0 @@ -google.dataflow.v1beta3.KeyRangeDataDiskAssignment - */ -class KeyRangeDataDiskAssignment extends \Google\Protobuf\Internal\Message -{ - /** - * The start (inclusive) of the key range. - * - * Generated from protobuf field string start = 1; - */ - protected $start = ''; - /** - * The end (exclusive) of the key range. - * - * Generated from protobuf field string end = 2; - */ - protected $end = ''; - /** - * The name of the data disk where data for this range is stored. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * - * Generated from protobuf field string data_disk = 3; - */ - protected $data_disk = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start - * The start (inclusive) of the key range. - * @type string $end - * The end (exclusive) of the key range. - * @type string $data_disk - * The name of the data disk where data for this range is stored. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * The start (inclusive) of the key range. - * - * Generated from protobuf field string start = 1; - * @return string - */ - public function getStart() - { - return $this->start; - } - - /** - * The start (inclusive) of the key range. - * - * Generated from protobuf field string start = 1; - * @param string $var - * @return $this - */ - public function setStart($var) - { - GPBUtil::checkString($var, True); - $this->start = $var; - - return $this; - } - - /** - * The end (exclusive) of the key range. - * - * Generated from protobuf field string end = 2; - * @return string - */ - public function getEnd() - { - return $this->end; - } - - /** - * The end (exclusive) of the key range. - * - * Generated from protobuf field string end = 2; - * @param string $var - * @return $this - */ - public function setEnd($var) - { - GPBUtil::checkString($var, True); - $this->end = $var; - - return $this; - } - - /** - * The name of the data disk where data for this range is stored. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * - * Generated from protobuf field string data_disk = 3; - * @return string - */ - public function getDataDisk() - { - return $this->data_disk; - } - - /** - * The name of the data disk where data for this range is stored. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * - * Generated from protobuf field string data_disk = 3; - * @param string $var - * @return $this - */ - public function setDataDisk($var) - { - GPBUtil::checkString($var, True); - $this->data_disk = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KeyRangeLocation.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KeyRangeLocation.php deleted file mode 100644 index e485dfde7d1b..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KeyRangeLocation.php +++ /dev/null @@ -1,230 +0,0 @@ -google.dataflow.v1beta3.KeyRangeLocation - */ -class KeyRangeLocation extends \Google\Protobuf\Internal\Message -{ - /** - * The start (inclusive) of the key range. - * - * Generated from protobuf field string start = 1; - */ - protected $start = ''; - /** - * The end (exclusive) of the key range. - * - * Generated from protobuf field string end = 2; - */ - protected $end = ''; - /** - * The physical location of this range assignment to be used for - * streaming computation cross-worker message delivery. - * - * Generated from protobuf field string delivery_endpoint = 3; - */ - protected $delivery_endpoint = ''; - /** - * The name of the data disk where data for this range is stored. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * - * Generated from protobuf field string data_disk = 5; - */ - protected $data_disk = ''; - /** - * DEPRECATED. The location of the persistent state for this range, as a - * persistent directory in the worker local filesystem. - * - * Generated from protobuf field string deprecated_persistent_directory = 4 [deprecated = true]; - * @deprecated - */ - protected $deprecated_persistent_directory = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $start - * The start (inclusive) of the key range. - * @type string $end - * The end (exclusive) of the key range. - * @type string $delivery_endpoint - * The physical location of this range assignment to be used for - * streaming computation cross-worker message delivery. - * @type string $data_disk - * The name of the data disk where data for this range is stored. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * @type string $deprecated_persistent_directory - * DEPRECATED. The location of the persistent state for this range, as a - * persistent directory in the worker local filesystem. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * The start (inclusive) of the key range. - * - * Generated from protobuf field string start = 1; - * @return string - */ - public function getStart() - { - return $this->start; - } - - /** - * The start (inclusive) of the key range. - * - * Generated from protobuf field string start = 1; - * @param string $var - * @return $this - */ - public function setStart($var) - { - GPBUtil::checkString($var, True); - $this->start = $var; - - return $this; - } - - /** - * The end (exclusive) of the key range. - * - * Generated from protobuf field string end = 2; - * @return string - */ - public function getEnd() - { - return $this->end; - } - - /** - * The end (exclusive) of the key range. - * - * Generated from protobuf field string end = 2; - * @param string $var - * @return $this - */ - public function setEnd($var) - { - GPBUtil::checkString($var, True); - $this->end = $var; - - return $this; - } - - /** - * The physical location of this range assignment to be used for - * streaming computation cross-worker message delivery. - * - * Generated from protobuf field string delivery_endpoint = 3; - * @return string - */ - public function getDeliveryEndpoint() - { - return $this->delivery_endpoint; - } - - /** - * The physical location of this range assignment to be used for - * streaming computation cross-worker message delivery. - * - * Generated from protobuf field string delivery_endpoint = 3; - * @param string $var - * @return $this - */ - public function setDeliveryEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->delivery_endpoint = $var; - - return $this; - } - - /** - * The name of the data disk where data for this range is stored. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * - * Generated from protobuf field string data_disk = 5; - * @return string - */ - public function getDataDisk() - { - return $this->data_disk; - } - - /** - * The name of the data disk where data for this range is stored. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * - * Generated from protobuf field string data_disk = 5; - * @param string $var - * @return $this - */ - public function setDataDisk($var) - { - GPBUtil::checkString($var, True); - $this->data_disk = $var; - - return $this; - } - - /** - * DEPRECATED. The location of the persistent state for this range, as a - * persistent directory in the worker local filesystem. - * - * Generated from protobuf field string deprecated_persistent_directory = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getDeprecatedPersistentDirectory() - { - @trigger_error('deprecated_persistent_directory is deprecated.', E_USER_DEPRECATED); - return $this->deprecated_persistent_directory; - } - - /** - * DEPRECATED. The location of the persistent state for this range, as a - * persistent directory in the worker local filesystem. - * - * Generated from protobuf field string deprecated_persistent_directory = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setDeprecatedPersistentDirectory($var) - { - @trigger_error('deprecated_persistent_directory is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->deprecated_persistent_directory = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KindType.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KindType.php deleted file mode 100644 index 4ba975392d1f..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/KindType.php +++ /dev/null @@ -1,103 +0,0 @@ -google.dataflow.v1beta3.KindType - */ -class KindType -{ - /** - * Unrecognized transform type. - * - * Generated from protobuf enum UNKNOWN_KIND = 0; - */ - const UNKNOWN_KIND = 0; - /** - * ParDo transform. - * - * Generated from protobuf enum PAR_DO_KIND = 1; - */ - const PAR_DO_KIND = 1; - /** - * Group By Key transform. - * - * Generated from protobuf enum GROUP_BY_KEY_KIND = 2; - */ - const GROUP_BY_KEY_KIND = 2; - /** - * Flatten transform. - * - * Generated from protobuf enum FLATTEN_KIND = 3; - */ - const FLATTEN_KIND = 3; - /** - * Read transform. - * - * Generated from protobuf enum READ_KIND = 4; - */ - const READ_KIND = 4; - /** - * Write transform. - * - * Generated from protobuf enum WRITE_KIND = 5; - */ - const WRITE_KIND = 5; - /** - * Constructs from a constant value, such as with Create.of. - * - * Generated from protobuf enum CONSTANT_KIND = 6; - */ - const CONSTANT_KIND = 6; - /** - * Creates a Singleton view of a collection. - * - * Generated from protobuf enum SINGLETON_KIND = 7; - */ - const SINGLETON_KIND = 7; - /** - * Opening or closing a shuffle session, often as part of a GroupByKey. - * - * Generated from protobuf enum SHUFFLE_KIND = 8; - */ - const SHUFFLE_KIND = 8; - - private static $valueToName = [ - self::UNKNOWN_KIND => 'UNKNOWN_KIND', - self::PAR_DO_KIND => 'PAR_DO_KIND', - self::GROUP_BY_KEY_KIND => 'GROUP_BY_KEY_KIND', - self::FLATTEN_KIND => 'FLATTEN_KIND', - self::READ_KIND => 'READ_KIND', - self::WRITE_KIND => 'WRITE_KIND', - self::CONSTANT_KIND => 'CONSTANT_KIND', - self::SINGLETON_KIND => 'SINGLETON_KIND', - self::SHUFFLE_KIND => 'SHUFFLE_KIND', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateParameter.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateParameter.php deleted file mode 100644 index 016cf17a9e0b..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateParameter.php +++ /dev/null @@ -1,353 +0,0 @@ -google.dataflow.v1beta3.LaunchFlexTemplateParameter - */ -class LaunchFlexTemplateParameter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The job name to use for the created job. For update job request, - * job name should be same as the existing running job. - * - * Generated from protobuf field string job_name = 1; - */ - protected $job_name = ''; - /** - * The parameters for FlexTemplate. - * Ex. {"num_workers":"5"} - * - * Generated from protobuf field map parameters = 2; - */ - private $parameters; - /** - * Launch options for this flex template job. This is a common set of options - * across languages and templates. This should not be used to pass job - * parameters. - * - * Generated from protobuf field map launch_options = 6; - */ - private $launch_options; - /** - * The runtime environment for the FlexTemplate job - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment environment = 7; - */ - protected $environment = null; - /** - * Set this to true if you are sending a request to update a running - * streaming job. When set, the job name should be the same as the - * running job. - * - * Generated from protobuf field bool update = 8; - */ - protected $update = false; - /** - * Use this to pass transform_name_mappings for streaming update jobs. - * Ex:{"oldTransformName":"newTransformName",...}' - * - * Generated from protobuf field map transform_name_mappings = 9; - */ - private $transform_name_mappings; - protected $template; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $job_name - * Required. The job name to use for the created job. For update job request, - * job name should be same as the existing running job. - * @type \Google\Cloud\Dataflow\V1beta3\ContainerSpec $container_spec - * Spec about the container image to launch. - * @type string $container_spec_gcs_path - * Cloud Storage path to a file with json serialized ContainerSpec as - * content. - * @type array|\Google\Protobuf\Internal\MapField $parameters - * The parameters for FlexTemplate. - * Ex. {"num_workers":"5"} - * @type array|\Google\Protobuf\Internal\MapField $launch_options - * Launch options for this flex template job. This is a common set of options - * across languages and templates. This should not be used to pass job - * parameters. - * @type \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment $environment - * The runtime environment for the FlexTemplate job - * @type bool $update - * Set this to true if you are sending a request to update a running - * streaming job. When set, the job name should be the same as the - * running job. - * @type array|\Google\Protobuf\Internal\MapField $transform_name_mappings - * Use this to pass transform_name_mappings for streaming update jobs. - * Ex:{"oldTransformName":"newTransformName",...}' - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Required. The job name to use for the created job. For update job request, - * job name should be same as the existing running job. - * - * Generated from protobuf field string job_name = 1; - * @return string - */ - public function getJobName() - { - return $this->job_name; - } - - /** - * Required. The job name to use for the created job. For update job request, - * job name should be same as the existing running job. - * - * Generated from protobuf field string job_name = 1; - * @param string $var - * @return $this - */ - public function setJobName($var) - { - GPBUtil::checkString($var, True); - $this->job_name = $var; - - return $this; - } - - /** - * Spec about the container image to launch. - * - * Generated from protobuf field .google.dataflow.v1beta3.ContainerSpec container_spec = 4; - * @return \Google\Cloud\Dataflow\V1beta3\ContainerSpec|null - */ - public function getContainerSpec() - { - return $this->readOneof(4); - } - - public function hasContainerSpec() - { - return $this->hasOneof(4); - } - - /** - * Spec about the container image to launch. - * - * Generated from protobuf field .google.dataflow.v1beta3.ContainerSpec container_spec = 4; - * @param \Google\Cloud\Dataflow\V1beta3\ContainerSpec $var - * @return $this - */ - public function setContainerSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\ContainerSpec::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Cloud Storage path to a file with json serialized ContainerSpec as - * content. - * - * Generated from protobuf field string container_spec_gcs_path = 5; - * @return string - */ - public function getContainerSpecGcsPath() - { - return $this->readOneof(5); - } - - public function hasContainerSpecGcsPath() - { - return $this->hasOneof(5); - } - - /** - * Cloud Storage path to a file with json serialized ContainerSpec as - * content. - * - * Generated from protobuf field string container_spec_gcs_path = 5; - * @param string $var - * @return $this - */ - public function setContainerSpecGcsPath($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The parameters for FlexTemplate. - * Ex. {"num_workers":"5"} - * - * Generated from protobuf field map parameters = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * The parameters for FlexTemplate. - * Ex. {"num_workers":"5"} - * - * Generated from protobuf field map parameters = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->parameters = $arr; - - return $this; - } - - /** - * Launch options for this flex template job. This is a common set of options - * across languages and templates. This should not be used to pass job - * parameters. - * - * Generated from protobuf field map launch_options = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLaunchOptions() - { - return $this->launch_options; - } - - /** - * Launch options for this flex template job. This is a common set of options - * across languages and templates. This should not be used to pass job - * parameters. - * - * Generated from protobuf field map launch_options = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLaunchOptions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->launch_options = $arr; - - return $this; - } - - /** - * The runtime environment for the FlexTemplate job - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment environment = 7; - * @return \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment|null - */ - public function getEnvironment() - { - return $this->environment; - } - - public function hasEnvironment() - { - return isset($this->environment); - } - - public function clearEnvironment() - { - unset($this->environment); - } - - /** - * The runtime environment for the FlexTemplate job - * - * Generated from protobuf field .google.dataflow.v1beta3.FlexTemplateRuntimeEnvironment environment = 7; - * @param \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\FlexTemplateRuntimeEnvironment::class); - $this->environment = $var; - - return $this; - } - - /** - * Set this to true if you are sending a request to update a running - * streaming job. When set, the job name should be the same as the - * running job. - * - * Generated from protobuf field bool update = 8; - * @return bool - */ - public function getUpdate() - { - return $this->update; - } - - /** - * Set this to true if you are sending a request to update a running - * streaming job. When set, the job name should be the same as the - * running job. - * - * Generated from protobuf field bool update = 8; - * @param bool $var - * @return $this - */ - public function setUpdate($var) - { - GPBUtil::checkBool($var); - $this->update = $var; - - return $this; - } - - /** - * Use this to pass transform_name_mappings for streaming update jobs. - * Ex:{"oldTransformName":"newTransformName",...}' - * - * Generated from protobuf field map transform_name_mappings = 9; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTransformNameMappings() - { - return $this->transform_name_mappings; - } - - /** - * Use this to pass transform_name_mappings for streaming update jobs. - * Ex:{"oldTransformName":"newTransformName",...}' - * - * Generated from protobuf field map transform_name_mappings = 9; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTransformNameMappings($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->transform_name_mappings = $arr; - - return $this; - } - - /** - * @return string - */ - public function getTemplate() - { - return $this->whichOneof("template"); - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateRequest.php deleted file mode 100644 index 1ee046a95135..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateRequest.php +++ /dev/null @@ -1,191 +0,0 @@ -google.dataflow.v1beta3.LaunchFlexTemplateRequest - */ -class LaunchFlexTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Required. Parameter to launch a job form Flex Template. - * - * Generated from protobuf field .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2; - */ - protected $launch_parameter = null; - /** - * Required. The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. E.g., us-central1, us-west1. - * - * Generated from protobuf field string location = 3; - */ - protected $location = ''; - /** - * If true, the request is validated but not actually executed. - * Defaults to false. - * - * 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 $project_id - * Required. The ID of the Cloud Platform project that the job belongs to. - * @type \Google\Cloud\Dataflow\V1beta3\LaunchFlexTemplateParameter $launch_parameter - * Required. Parameter to launch a job form Flex Template. - * @type string $location - * Required. The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. E.g., us-central1, us-west1. - * @type bool $validate_only - * If true, the request is validated but not actually executed. - * Defaults to false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. Parameter to launch a job form Flex Template. - * - * Generated from protobuf field .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2; - * @return \Google\Cloud\Dataflow\V1beta3\LaunchFlexTemplateParameter|null - */ - public function getLaunchParameter() - { - return $this->launch_parameter; - } - - public function hasLaunchParameter() - { - return isset($this->launch_parameter); - } - - public function clearLaunchParameter() - { - unset($this->launch_parameter); - } - - /** - * Required. Parameter to launch a job form Flex Template. - * - * Generated from protobuf field .google.dataflow.v1beta3.LaunchFlexTemplateParameter launch_parameter = 2; - * @param \Google\Cloud\Dataflow\V1beta3\LaunchFlexTemplateParameter $var - * @return $this - */ - public function setLaunchParameter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\LaunchFlexTemplateParameter::class); - $this->launch_parameter = $var; - - return $this; - } - - /** - * Required. The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. E.g., us-central1, us-west1. - * - * Generated from protobuf field string location = 3; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Required. The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. E.g., us-central1, us-west1. - * - * Generated from protobuf field string location = 3; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * If true, the request is validated but not actually executed. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If true, the request is validated but not actually executed. - * Defaults to false. - * - * 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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateResponse.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateResponse.php deleted file mode 100644 index 430297fab7dc..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchFlexTemplateResponse.php +++ /dev/null @@ -1,81 +0,0 @@ -google.dataflow.v1beta3.LaunchFlexTemplateResponse - */ -class LaunchFlexTemplateResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The job that was launched, if the request was not a dry run and - * the job was successfully launched. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 1; - */ - protected $job = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataflow\V1beta3\Job $job - * The job that was launched, if the request was not a dry run and - * the job was successfully launched. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * The job that was launched, if the request was not a dry run and - * the job was successfully launched. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 1; - * @return \Google\Cloud\Dataflow\V1beta3\Job|null - */ - public function getJob() - { - return $this->job; - } - - public function hasJob() - { - return isset($this->job); - } - - public function clearJob() - { - unset($this->job); - } - - /** - * The job that was launched, if the request was not a dry run and - * the job was successfully launched. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 1; - * @param \Google\Cloud\Dataflow\V1beta3\Job $var - * @return $this - */ - public function setJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\Job::class); - $this->job = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateParameters.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateParameters.php deleted file mode 100644 index dbff580ebd29..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateParameters.php +++ /dev/null @@ -1,221 +0,0 @@ -google.dataflow.v1beta3.LaunchTemplateParameters - */ -class LaunchTemplateParameters extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The job name to use for the created job. - * - * Generated from protobuf field string job_name = 1; - */ - protected $job_name = ''; - /** - * The runtime parameters to pass to the job. - * - * Generated from protobuf field map parameters = 2; - */ - private $parameters; - /** - * The runtime environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.RuntimeEnvironment environment = 3; - */ - protected $environment = null; - /** - * If set, replace the existing pipeline with the name specified by jobName - * with this pipeline, preserving state. - * - * Generated from protobuf field bool update = 4; - */ - protected $update = false; - /** - * Only applicable when updating a pipeline. Map of transform name prefixes of - * the job to be replaced to the corresponding name prefixes of the new job. - * - * Generated from protobuf field map transform_name_mapping = 5; - */ - private $transform_name_mapping; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $job_name - * Required. The job name to use for the created job. - * @type array|\Google\Protobuf\Internal\MapField $parameters - * The runtime parameters to pass to the job. - * @type \Google\Cloud\Dataflow\V1beta3\RuntimeEnvironment $environment - * The runtime environment for the job. - * @type bool $update - * If set, replace the existing pipeline with the name specified by jobName - * with this pipeline, preserving state. - * @type array|\Google\Protobuf\Internal\MapField $transform_name_mapping - * Only applicable when updating a pipeline. Map of transform name prefixes of - * the job to be replaced to the corresponding name prefixes of the new job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Required. The job name to use for the created job. - * - * Generated from protobuf field string job_name = 1; - * @return string - */ - public function getJobName() - { - return $this->job_name; - } - - /** - * Required. The job name to use for the created job. - * - * Generated from protobuf field string job_name = 1; - * @param string $var - * @return $this - */ - public function setJobName($var) - { - GPBUtil::checkString($var, True); - $this->job_name = $var; - - return $this; - } - - /** - * The runtime parameters to pass to the job. - * - * Generated from protobuf field map parameters = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * The runtime parameters to pass to the job. - * - * Generated from protobuf field map parameters = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->parameters = $arr; - - return $this; - } - - /** - * The runtime environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.RuntimeEnvironment environment = 3; - * @return \Google\Cloud\Dataflow\V1beta3\RuntimeEnvironment|null - */ - public function getEnvironment() - { - return $this->environment; - } - - public function hasEnvironment() - { - return isset($this->environment); - } - - public function clearEnvironment() - { - unset($this->environment); - } - - /** - * The runtime environment for the job. - * - * Generated from protobuf field .google.dataflow.v1beta3.RuntimeEnvironment environment = 3; - * @param \Google\Cloud\Dataflow\V1beta3\RuntimeEnvironment $var - * @return $this - */ - public function setEnvironment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\RuntimeEnvironment::class); - $this->environment = $var; - - return $this; - } - - /** - * If set, replace the existing pipeline with the name specified by jobName - * with this pipeline, preserving state. - * - * Generated from protobuf field bool update = 4; - * @return bool - */ - public function getUpdate() - { - return $this->update; - } - - /** - * If set, replace the existing pipeline with the name specified by jobName - * with this pipeline, preserving state. - * - * Generated from protobuf field bool update = 4; - * @param bool $var - * @return $this - */ - public function setUpdate($var) - { - GPBUtil::checkBool($var); - $this->update = $var; - - return $this; - } - - /** - * Only applicable when updating a pipeline. Map of transform name prefixes of - * the job to be replaced to the corresponding name prefixes of the new job. - * - * Generated from protobuf field map transform_name_mapping = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTransformNameMapping() - { - return $this->transform_name_mapping; - } - - /** - * Only applicable when updating a pipeline. Map of transform name prefixes of - * the job to be replaced to the corresponding name prefixes of the new job. - * - * Generated from protobuf field map transform_name_mapping = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTransformNameMapping($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->transform_name_mapping = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateRequest.php deleted file mode 100644 index f251dc164ce2..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateRequest.php +++ /dev/null @@ -1,276 +0,0 @@ -google.dataflow.v1beta3.LaunchTemplateRequest - */ -class LaunchTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * If true, the request is validated but not actually executed. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 2; - */ - protected $validate_only = false; - /** - * The parameters of the template to launch. This should be part of the - * body of the POST request. - * - * Generated from protobuf field .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4; - */ - protected $launch_parameters = null; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * - * Generated from protobuf field string location = 5; - */ - protected $location = ''; - protected $template; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the Cloud Platform project that the job belongs to. - * @type bool $validate_only - * If true, the request is validated but not actually executed. - * Defaults to false. - * @type string $gcs_path - * A Cloud Storage path to the template from which to create - * the job. - * Must be valid Cloud Storage URL, beginning with 'gs://'. - * @type \Google\Cloud\Dataflow\V1beta3\DynamicTemplateLaunchParams $dynamic_template - * Params for launching a dynamic template. - * @type \Google\Cloud\Dataflow\V1beta3\LaunchTemplateParameters $launch_parameters - * The parameters of the template to launch. This should be part of the - * body of the POST request. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * If true, the request is validated but not actually executed. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 2; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * If true, the request is validated but not actually executed. - * Defaults to false. - * - * Generated from protobuf field bool validate_only = 2; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * A Cloud Storage path to the template from which to create - * the job. - * Must be valid Cloud Storage URL, beginning with 'gs://'. - * - * Generated from protobuf field string gcs_path = 3; - * @return string - */ - public function getGcsPath() - { - return $this->readOneof(3); - } - - public function hasGcsPath() - { - return $this->hasOneof(3); - } - - /** - * A Cloud Storage path to the template from which to create - * the job. - * Must be valid Cloud Storage URL, beginning with 'gs://'. - * - * Generated from protobuf field string gcs_path = 3; - * @param string $var - * @return $this - */ - public function setGcsPath($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Params for launching a dynamic template. - * - * Generated from protobuf field .google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6; - * @return \Google\Cloud\Dataflow\V1beta3\DynamicTemplateLaunchParams|null - */ - public function getDynamicTemplate() - { - return $this->readOneof(6); - } - - public function hasDynamicTemplate() - { - return $this->hasOneof(6); - } - - /** - * Params for launching a dynamic template. - * - * Generated from protobuf field .google.dataflow.v1beta3.DynamicTemplateLaunchParams dynamic_template = 6; - * @param \Google\Cloud\Dataflow\V1beta3\DynamicTemplateLaunchParams $var - * @return $this - */ - public function setDynamicTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\DynamicTemplateLaunchParams::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The parameters of the template to launch. This should be part of the - * body of the POST request. - * - * Generated from protobuf field .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4; - * @return \Google\Cloud\Dataflow\V1beta3\LaunchTemplateParameters|null - */ - public function getLaunchParameters() - { - return $this->launch_parameters; - } - - public function hasLaunchParameters() - { - return isset($this->launch_parameters); - } - - public function clearLaunchParameters() - { - unset($this->launch_parameters); - } - - /** - * The parameters of the template to launch. This should be part of the - * body of the POST request. - * - * Generated from protobuf field .google.dataflow.v1beta3.LaunchTemplateParameters launch_parameters = 4; - * @param \Google\Cloud\Dataflow\V1beta3\LaunchTemplateParameters $var - * @return $this - */ - public function setLaunchParameters($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\LaunchTemplateParameters::class); - $this->launch_parameters = $var; - - return $this; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * - * Generated from protobuf field string location = 5; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * - * Generated from protobuf field string location = 5; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * @return string - */ - public function getTemplate() - { - return $this->whichOneof("template"); - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateResponse.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateResponse.php deleted file mode 100644 index 30d2f305bfe9..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/LaunchTemplateResponse.php +++ /dev/null @@ -1,81 +0,0 @@ -google.dataflow.v1beta3.LaunchTemplateResponse - */ -class LaunchTemplateResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The job that was launched, if the request was not a dry run and - * the job was successfully launched. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 1; - */ - protected $job = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataflow\V1beta3\Job $job - * The job that was launched, if the request was not a dry run and - * the job was successfully launched. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * The job that was launched, if the request was not a dry run and - * the job was successfully launched. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 1; - * @return \Google\Cloud\Dataflow\V1beta3\Job|null - */ - public function getJob() - { - return $this->job; - } - - public function hasJob() - { - return isset($this->job); - } - - public function clearJob() - { - unset($this->job); - } - - /** - * The job that was launched, if the request was not a dry run and - * the job was successfully launched. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 1; - * @param \Google\Cloud\Dataflow\V1beta3\Job $var - * @return $this - */ - public function setJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\Job::class); - $this->job = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobMessagesRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobMessagesRequest.php deleted file mode 100644 index d2318ccbac0e..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobMessagesRequest.php +++ /dev/null @@ -1,360 +0,0 @@ -google.dataflow.v1beta3.ListJobMessagesRequest - */ -class ListJobMessagesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The job to get messages about. - * - * Generated from protobuf field string job_id = 2; - */ - protected $job_id = ''; - /** - * Filter to only get messages with importance >= level - * - * Generated from protobuf field .google.dataflow.v1beta3.JobMessageImportance minimum_importance = 3; - */ - protected $minimum_importance = 0; - /** - * If specified, determines the maximum number of messages to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * - * Generated from protobuf field string page_token = 5; - */ - protected $page_token = ''; - /** - * If specified, return only messages with timestamps >= start_time. - * The default is the job creation time (i.e. beginning of messages). - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6; - */ - protected $start_time = null; - /** - * Return only messages with timestamps < end_time. The default is now - * (i.e. return up to the latest messages available). - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7; - */ - protected $end_time = null; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 8; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * A project id. - * @type string $job_id - * The job to get messages about. - * @type int $minimum_importance - * Filter to only get messages with importance >= level - * @type int $page_size - * If specified, determines the maximum number of messages to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * @type string $page_token - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * @type \Google\Protobuf\Timestamp $start_time - * If specified, return only messages with timestamps >= start_time. - * The default is the job creation time (i.e. beginning of messages). - * @type \Google\Protobuf\Timestamp $end_time - * Return only messages with timestamps < end_time. The default is now - * (i.e. return up to the latest messages available). - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Messages::initOnce(); - parent::__construct($data); - } - - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * A project id. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The job to get messages about. - * - * Generated from protobuf field string job_id = 2; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The job to get messages about. - * - * Generated from protobuf field string job_id = 2; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * Filter to only get messages with importance >= level - * - * Generated from protobuf field .google.dataflow.v1beta3.JobMessageImportance minimum_importance = 3; - * @return int - */ - public function getMinimumImportance() - { - return $this->minimum_importance; - } - - /** - * Filter to only get messages with importance >= level - * - * Generated from protobuf field .google.dataflow.v1beta3.JobMessageImportance minimum_importance = 3; - * @param int $var - * @return $this - */ - public function setMinimumImportance($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\JobMessageImportance::class); - $this->minimum_importance = $var; - - return $this; - } - - /** - * If specified, determines the maximum number of messages to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * If specified, determines the maximum number of messages to - * return. If unspecified, the service may choose an appropriate - * default, or may return an arbitrarily large number of results. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * If supplied, this should be the value of next_page_token returned - * by an earlier call. This will cause the next page of results to - * be returned. - * - * Generated from protobuf field string page_token = 5; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * If specified, return only messages with timestamps >= start_time. - * The default is the job creation time (i.e. beginning of messages). - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6; - * @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); - } - - /** - * If specified, return only messages with timestamps >= start_time. - * The default is the job creation time (i.e. beginning of messages). - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Return only messages with timestamps < end_time. The default is now - * (i.e. return up to the latest messages available). - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7; - * @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); - } - - /** - * Return only messages with timestamps < end_time. The default is now - * (i.e. return up to the latest messages available). - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7; - * @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 [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 8; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * - * Generated from protobuf field string location = 8; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobMessagesResponse.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobMessagesResponse.php deleted file mode 100644 index 59b3f8a270fb..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobMessagesResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.dataflow.v1beta3.ListJobMessagesResponse - */ -class ListJobMessagesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Messages in ascending timestamp order. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.JobMessage job_messages = 1; - */ - private $job_messages; - /** - * The token to obtain the next page of results if there are more. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Autoscaling events in ascending timestamp order. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.AutoscalingEvent autoscaling_events = 3; - */ - private $autoscaling_events; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dataflow\V1beta3\JobMessage>|\Google\Protobuf\Internal\RepeatedField $job_messages - * Messages in ascending timestamp order. - * @type string $next_page_token - * The token to obtain the next page of results if there are more. - * @type array<\Google\Cloud\Dataflow\V1beta3\AutoscalingEvent>|\Google\Protobuf\Internal\RepeatedField $autoscaling_events - * Autoscaling events in ascending timestamp order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Messages::initOnce(); - parent::__construct($data); - } - - /** - * Messages in ascending timestamp order. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.JobMessage job_messages = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getJobMessages() - { - return $this->job_messages; - } - - /** - * Messages in ascending timestamp order. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.JobMessage job_messages = 1; - * @param array<\Google\Cloud\Dataflow\V1beta3\JobMessage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setJobMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\JobMessage::class); - $this->job_messages = $arr; - - return $this; - } - - /** - * The token to obtain the next page of results if there are more. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The token to obtain the next page of results if there are more. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Autoscaling events in ascending timestamp order. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.AutoscalingEvent autoscaling_events = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAutoscalingEvents() - { - return $this->autoscaling_events; - } - - /** - * Autoscaling events in ascending timestamp order. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.AutoscalingEvent autoscaling_events = 3; - * @param array<\Google\Cloud\Dataflow\V1beta3\AutoscalingEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAutoscalingEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\AutoscalingEvent::class); - $this->autoscaling_events = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsRequest.php deleted file mode 100644 index d62437d2c2d2..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsRequest.php +++ /dev/null @@ -1,266 +0,0 @@ -google.dataflow.v1beta3.ListJobsRequest - */ -class ListJobsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The kind of filter to use. - * - * Generated from protobuf field .google.dataflow.v1beta3.ListJobsRequest.Filter filter = 5; - */ - protected $filter = 0; - /** - * The project which owns the jobs. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Deprecated. ListJobs always returns summaries now. - * Use GetJob for other JobViews. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobView view = 2 [deprecated = true]; - * @deprecated - */ - protected $view = 0; - /** - * If there are many jobs, limit response to at most this many. - * The actual number of jobs returned will be the lesser of max_responses - * and an unspecified server-defined limit. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Set this to the 'next_page_token' field of a previous response - * to request additional results in a long list. - * - * Generated from protobuf field string page_token = 4; - */ - protected $page_token = ''; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 17; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $filter - * The kind of filter to use. - * @type string $project_id - * The project which owns the jobs. - * @type int $view - * Deprecated. ListJobs always returns summaries now. - * Use GetJob for other JobViews. - * @type int $page_size - * If there are many jobs, limit response to at most this many. - * The actual number of jobs returned will be the lesser of max_responses - * and an unspecified server-defined limit. - * @type string $page_token - * Set this to the 'next_page_token' field of a previous response - * to request additional results in a long list. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The kind of filter to use. - * - * Generated from protobuf field .google.dataflow.v1beta3.ListJobsRequest.Filter filter = 5; - * @return int - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The kind of filter to use. - * - * Generated from protobuf field .google.dataflow.v1beta3.ListJobsRequest.Filter filter = 5; - * @param int $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\ListJobsRequest\Filter::class); - $this->filter = $var; - - return $this; - } - - /** - * The project which owns the jobs. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project which owns the jobs. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Deprecated. ListJobs always returns summaries now. - * Use GetJob for other JobViews. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobView view = 2 [deprecated = true]; - * @return int - * @deprecated - */ - public function getView() - { - @trigger_error('view is deprecated.', E_USER_DEPRECATED); - return $this->view; - } - - /** - * Deprecated. ListJobs always returns summaries now. - * Use GetJob for other JobViews. - * - * Generated from protobuf field .google.dataflow.v1beta3.JobView view = 2 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setView($var) - { - @trigger_error('view is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\JobView::class); - $this->view = $var; - - return $this; - } - - /** - * If there are many jobs, limit response to at most this many. - * The actual number of jobs returned will be the lesser of max_responses - * and an unspecified server-defined limit. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * If there are many jobs, limit response to at most this many. - * The actual number of jobs returned will be the lesser of max_responses - * and an unspecified server-defined limit. - * - * 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; - } - - /** - * Set this to the 'next_page_token' field of a previous response - * to request additional results in a long list. - * - * Generated from protobuf field string page_token = 4; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Set this to the 'next_page_token' field of a previous response - * to request additional results in a long list. - * - * 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; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 17; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 17; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsRequest/Filter.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsRequest/Filter.php deleted file mode 100644 index 09d6602f79b8..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsRequest/Filter.php +++ /dev/null @@ -1,77 +0,0 @@ -google.dataflow.v1beta3.ListJobsRequest.Filter - */ -class Filter -{ - /** - * The filter isn't specified, or is unknown. This returns all jobs ordered - * on descending `JobUuid`. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Returns all running jobs first ordered on creation timestamp, then - * returns all terminated jobs ordered on the termination timestamp. - * - * Generated from protobuf enum ALL = 1; - */ - const ALL = 1; - /** - * Filters the jobs that have a terminated state, ordered on the - * termination timestamp. Example terminated states: `JOB_STATE_STOPPED`, - * `JOB_STATE_UPDATED`, `JOB_STATE_DRAINED`, etc. - * - * Generated from protobuf enum TERMINATED = 2; - */ - const TERMINATED = 2; - /** - * Filters the jobs that are running ordered on the creation timestamp. - * - * Generated from protobuf enum ACTIVE = 3; - */ - const ACTIVE = 3; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::ALL => 'ALL', - self::TERMINATED => 'TERMINATED', - self::ACTIVE => 'ACTIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Filter::class, \Google\Cloud\Dataflow\V1beta3\ListJobsRequest_Filter::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsResponse.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsResponse.php deleted file mode 100644 index 35771ed0201f..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListJobsResponse.php +++ /dev/null @@ -1,147 +0,0 @@ -google.dataflow.v1beta3.ListJobsResponse - */ -class ListJobsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A subset of the requested job information. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Job jobs = 1; - */ - private $jobs; - /** - * Set if there may be more results than fit in this response. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Zero or more messages describing the [regional endpoints] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * failed to respond. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3; - */ - private $failed_location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dataflow\V1beta3\Job>|\Google\Protobuf\Internal\RepeatedField $jobs - * A subset of the requested job information. - * @type string $next_page_token - * Set if there may be more results than fit in this response. - * @type array<\Google\Cloud\Dataflow\V1beta3\FailedLocation>|\Google\Protobuf\Internal\RepeatedField $failed_location - * Zero or more messages describing the [regional endpoints] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * failed to respond. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * A subset of the requested job information. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Job jobs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getJobs() - { - return $this->jobs; - } - - /** - * A subset of the requested job information. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Job jobs = 1; - * @param array<\Google\Cloud\Dataflow\V1beta3\Job>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\Job::class); - $this->jobs = $arr; - - return $this; - } - - /** - * Set if there may be more results than fit in this response. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Set if there may be more results than fit in this 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; - } - - /** - * Zero or more messages describing the [regional endpoints] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * failed to respond. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFailedLocation() - { - return $this->failed_location; - } - - /** - * Zero or more messages describing the [regional endpoints] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * failed to respond. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.FailedLocation failed_location = 3; - * @param array<\Google\Cloud\Dataflow\V1beta3\FailedLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFailedLocation($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\FailedLocation::class); - $this->failed_location = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListSnapshotsRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListSnapshotsRequest.php deleted file mode 100644 index 945043d38182..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListSnapshotsRequest.php +++ /dev/null @@ -1,135 +0,0 @@ -google.dataflow.v1beta3.ListSnapshotsRequest - */ -class ListSnapshotsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The project ID to list snapshots for. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * If specified, list snapshots created from this job. - * - * Generated from protobuf field string job_id = 3; - */ - protected $job_id = ''; - /** - * The location to list snapshots in. - * - * Generated from protobuf field string location = 2; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The project ID to list snapshots for. - * @type string $job_id - * If specified, list snapshots created from this job. - * @type string $location - * The location to list snapshots in. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Snapshots::initOnce(); - parent::__construct($data); - } - - /** - * The project ID to list snapshots for. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project ID to list snapshots for. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * If specified, list snapshots created from this job. - * - * Generated from protobuf field string job_id = 3; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * If specified, list snapshots created from this job. - * - * Generated from protobuf field string job_id = 3; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * The location to list snapshots in. - * - * Generated from protobuf field string location = 2; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The location to list snapshots in. - * - * 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; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListSnapshotsResponse.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListSnapshotsResponse.php deleted file mode 100644 index 96702e54e143..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ListSnapshotsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.dataflow.v1beta3.ListSnapshotsResponse - */ -class ListSnapshotsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Returned snapshots. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Snapshot snapshots = 1; - */ - private $snapshots; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dataflow\V1beta3\Snapshot>|\Google\Protobuf\Internal\RepeatedField $snapshots - * Returned snapshots. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Snapshots::initOnce(); - parent::__construct($data); - } - - /** - * Returned snapshots. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Snapshot snapshots = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSnapshots() - { - return $this->snapshots; - } - - /** - * Returned snapshots. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Snapshot snapshots = 1; - * @param array<\Google\Cloud\Dataflow\V1beta3\Snapshot>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSnapshots($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\Snapshot::class); - $this->snapshots = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MetricStructuredName.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MetricStructuredName.php deleted file mode 100644 index d65a20f84348..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MetricStructuredName.php +++ /dev/null @@ -1,156 +0,0 @@ -google.dataflow.v1beta3.MetricStructuredName - */ -class MetricStructuredName extends \Google\Protobuf\Internal\Message -{ - /** - * Origin (namespace) of metric name. May be blank for user-define metrics; - * will be "dataflow" for metrics defined by the Dataflow service or SDK. - * - * Generated from protobuf field string origin = 1; - */ - protected $origin = ''; - /** - * Worker-defined metric name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Zero or more labeled fields which identify the part of the job this - * metric is associated with, such as the name of a step or collection. - * For example, built-in counters associated with steps will have - * context['step'] = . Counters associated with PCollections - * in the SDK will have context['pcollection'] = . - * - * Generated from protobuf field map context = 3; - */ - private $context; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $origin - * Origin (namespace) of metric name. May be blank for user-define metrics; - * will be "dataflow" for metrics defined by the Dataflow service or SDK. - * @type string $name - * Worker-defined metric name. - * @type array|\Google\Protobuf\Internal\MapField $context - * Zero or more labeled fields which identify the part of the job this - * metric is associated with, such as the name of a step or collection. - * For example, built-in counters associated with steps will have - * context['step'] = . Counters associated with PCollections - * in the SDK will have context['pcollection'] = . - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * Origin (namespace) of metric name. May be blank for user-define metrics; - * will be "dataflow" for metrics defined by the Dataflow service or SDK. - * - * Generated from protobuf field string origin = 1; - * @return string - */ - public function getOrigin() - { - return $this->origin; - } - - /** - * Origin (namespace) of metric name. May be blank for user-define metrics; - * will be "dataflow" for metrics defined by the Dataflow service or SDK. - * - * Generated from protobuf field string origin = 1; - * @param string $var - * @return $this - */ - public function setOrigin($var) - { - GPBUtil::checkString($var, True); - $this->origin = $var; - - return $this; - } - - /** - * Worker-defined metric name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Worker-defined metric name. - * - * 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; - } - - /** - * Zero or more labeled fields which identify the part of the job this - * metric is associated with, such as the name of a step or collection. - * For example, built-in counters associated with steps will have - * context['step'] = . Counters associated with PCollections - * in the SDK will have context['pcollection'] = . - * - * Generated from protobuf field map context = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getContext() - { - return $this->context; - } - - /** - * Zero or more labeled fields which identify the part of the job this - * metric is associated with, such as the name of a step or collection. - * For example, built-in counters associated with steps will have - * context['step'] = . Counters associated with PCollections - * in the SDK will have context['pcollection'] = . - * - * Generated from protobuf field map context = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setContext($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->context = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MetricUpdate.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MetricUpdate.php deleted file mode 100644 index 23006b9c23af..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MetricUpdate.php +++ /dev/null @@ -1,585 +0,0 @@ -google.dataflow.v1beta3.MetricUpdate - */ -class MetricUpdate extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the metric. - * - * Generated from protobuf field .google.dataflow.v1beta3.MetricStructuredName name = 1; - */ - protected $name = null; - /** - * Metric aggregation kind. The possible metric aggregation kinds are - * "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". - * The specified aggregation kind is case-insensitive. - * If omitted, this is not an aggregated value but instead - * a single metric sample value. - * - * Generated from protobuf field string kind = 2; - */ - protected $kind = ''; - /** - * True if this metric is reported as the total cumulative aggregate - * value accumulated since the worker started working on this WorkItem. - * By default this is false, indicating that this metric is reported - * as a delta that is not associated with any WorkItem. - * - * Generated from protobuf field bool cumulative = 3; - */ - protected $cumulative = false; - /** - * Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", - * "And", and "Or". The possible value types are Long, Double, and Boolean. - * - * Generated from protobuf field .google.protobuf.Value scalar = 4; - */ - protected $scalar = null; - /** - * Worker-computed aggregate value for the "Mean" aggregation kind. - * This holds the sum of the aggregated values and is used in combination - * with mean_count below to obtain the actual mean aggregate value. - * The only possible value types are Long and Double. - * - * Generated from protobuf field .google.protobuf.Value mean_sum = 5; - */ - protected $mean_sum = null; - /** - * Worker-computed aggregate value for the "Mean" aggregation kind. - * This holds the count of the aggregated values and is used in combination - * with mean_sum above to obtain the actual mean aggregate value. - * The only possible value type is Long. - * - * Generated from protobuf field .google.protobuf.Value mean_count = 6; - */ - protected $mean_count = null; - /** - * Worker-computed aggregate value for the "Set" aggregation kind. The only - * possible value type is a list of Values whose type can be Long, Double, - * or String, according to the metric's type. All Values in the list must - * be of the same type. - * - * Generated from protobuf field .google.protobuf.Value set = 7; - */ - protected $set = null; - /** - * A struct value describing properties of a distribution of numeric values. - * - * Generated from protobuf field .google.protobuf.Value distribution = 11; - */ - protected $distribution = null; - /** - * A struct value describing properties of a Gauge. - * Metrics of gauge type show the value of a metric across time, and is - * aggregated based on the newest value. - * - * Generated from protobuf field .google.protobuf.Value gauge = 12; - */ - protected $gauge = null; - /** - * Worker-computed aggregate value for internal use by the Dataflow - * service. - * - * Generated from protobuf field .google.protobuf.Value internal = 8; - */ - protected $internal = null; - /** - * Timestamp associated with the metric value. Optional when workers are - * reporting work progress; it will be filled in responses from the - * metrics API. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataflow\V1beta3\MetricStructuredName $name - * Name of the metric. - * @type string $kind - * Metric aggregation kind. The possible metric aggregation kinds are - * "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". - * The specified aggregation kind is case-insensitive. - * If omitted, this is not an aggregated value but instead - * a single metric sample value. - * @type bool $cumulative - * True if this metric is reported as the total cumulative aggregate - * value accumulated since the worker started working on this WorkItem. - * By default this is false, indicating that this metric is reported - * as a delta that is not associated with any WorkItem. - * @type \Google\Protobuf\Value $scalar - * Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", - * "And", and "Or". The possible value types are Long, Double, and Boolean. - * @type \Google\Protobuf\Value $mean_sum - * Worker-computed aggregate value for the "Mean" aggregation kind. - * This holds the sum of the aggregated values and is used in combination - * with mean_count below to obtain the actual mean aggregate value. - * The only possible value types are Long and Double. - * @type \Google\Protobuf\Value $mean_count - * Worker-computed aggregate value for the "Mean" aggregation kind. - * This holds the count of the aggregated values and is used in combination - * with mean_sum above to obtain the actual mean aggregate value. - * The only possible value type is Long. - * @type \Google\Protobuf\Value $set - * Worker-computed aggregate value for the "Set" aggregation kind. The only - * possible value type is a list of Values whose type can be Long, Double, - * or String, according to the metric's type. All Values in the list must - * be of the same type. - * @type \Google\Protobuf\Value $distribution - * A struct value describing properties of a distribution of numeric values. - * @type \Google\Protobuf\Value $gauge - * A struct value describing properties of a Gauge. - * Metrics of gauge type show the value of a metric across time, and is - * aggregated based on the newest value. - * @type \Google\Protobuf\Value $internal - * Worker-computed aggregate value for internal use by the Dataflow - * service. - * @type \Google\Protobuf\Timestamp $update_time - * Timestamp associated with the metric value. Optional when workers are - * reporting work progress; it will be filled in responses from the - * metrics API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * Name of the metric. - * - * Generated from protobuf field .google.dataflow.v1beta3.MetricStructuredName name = 1; - * @return \Google\Cloud\Dataflow\V1beta3\MetricStructuredName|null - */ - public function getName() - { - return $this->name; - } - - public function hasName() - { - return isset($this->name); - } - - public function clearName() - { - unset($this->name); - } - - /** - * Name of the metric. - * - * Generated from protobuf field .google.dataflow.v1beta3.MetricStructuredName name = 1; - * @param \Google\Cloud\Dataflow\V1beta3\MetricStructuredName $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\MetricStructuredName::class); - $this->name = $var; - - return $this; - } - - /** - * Metric aggregation kind. The possible metric aggregation kinds are - * "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". - * The specified aggregation kind is case-insensitive. - * If omitted, this is not an aggregated value but instead - * a single metric sample value. - * - * Generated from protobuf field string kind = 2; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Metric aggregation kind. The possible metric aggregation kinds are - * "Sum", "Max", "Min", "Mean", "Set", "And", "Or", and "Distribution". - * The specified aggregation kind is case-insensitive. - * If omitted, this is not an aggregated value but instead - * a single metric sample value. - * - * Generated from protobuf field string kind = 2; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * True if this metric is reported as the total cumulative aggregate - * value accumulated since the worker started working on this WorkItem. - * By default this is false, indicating that this metric is reported - * as a delta that is not associated with any WorkItem. - * - * Generated from protobuf field bool cumulative = 3; - * @return bool - */ - public function getCumulative() - { - return $this->cumulative; - } - - /** - * True if this metric is reported as the total cumulative aggregate - * value accumulated since the worker started working on this WorkItem. - * By default this is false, indicating that this metric is reported - * as a delta that is not associated with any WorkItem. - * - * Generated from protobuf field bool cumulative = 3; - * @param bool $var - * @return $this - */ - public function setCumulative($var) - { - GPBUtil::checkBool($var); - $this->cumulative = $var; - - return $this; - } - - /** - * Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", - * "And", and "Or". The possible value types are Long, Double, and Boolean. - * - * Generated from protobuf field .google.protobuf.Value scalar = 4; - * @return \Google\Protobuf\Value|null - */ - public function getScalar() - { - return $this->scalar; - } - - public function hasScalar() - { - return isset($this->scalar); - } - - public function clearScalar() - { - unset($this->scalar); - } - - /** - * Worker-computed aggregate value for aggregation kinds "Sum", "Max", "Min", - * "And", and "Or". The possible value types are Long, Double, and Boolean. - * - * Generated from protobuf field .google.protobuf.Value scalar = 4; - * @param \Google\Protobuf\Value $var - * @return $this - */ - public function setScalar($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); - $this->scalar = $var; - - return $this; - } - - /** - * Worker-computed aggregate value for the "Mean" aggregation kind. - * This holds the sum of the aggregated values and is used in combination - * with mean_count below to obtain the actual mean aggregate value. - * The only possible value types are Long and Double. - * - * Generated from protobuf field .google.protobuf.Value mean_sum = 5; - * @return \Google\Protobuf\Value|null - */ - public function getMeanSum() - { - return $this->mean_sum; - } - - public function hasMeanSum() - { - return isset($this->mean_sum); - } - - public function clearMeanSum() - { - unset($this->mean_sum); - } - - /** - * Worker-computed aggregate value for the "Mean" aggregation kind. - * This holds the sum of the aggregated values and is used in combination - * with mean_count below to obtain the actual mean aggregate value. - * The only possible value types are Long and Double. - * - * Generated from protobuf field .google.protobuf.Value mean_sum = 5; - * @param \Google\Protobuf\Value $var - * @return $this - */ - public function setMeanSum($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); - $this->mean_sum = $var; - - return $this; - } - - /** - * Worker-computed aggregate value for the "Mean" aggregation kind. - * This holds the count of the aggregated values and is used in combination - * with mean_sum above to obtain the actual mean aggregate value. - * The only possible value type is Long. - * - * Generated from protobuf field .google.protobuf.Value mean_count = 6; - * @return \Google\Protobuf\Value|null - */ - public function getMeanCount() - { - return $this->mean_count; - } - - public function hasMeanCount() - { - return isset($this->mean_count); - } - - public function clearMeanCount() - { - unset($this->mean_count); - } - - /** - * Worker-computed aggregate value for the "Mean" aggregation kind. - * This holds the count of the aggregated values and is used in combination - * with mean_sum above to obtain the actual mean aggregate value. - * The only possible value type is Long. - * - * Generated from protobuf field .google.protobuf.Value mean_count = 6; - * @param \Google\Protobuf\Value $var - * @return $this - */ - public function setMeanCount($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); - $this->mean_count = $var; - - return $this; - } - - /** - * Worker-computed aggregate value for the "Set" aggregation kind. The only - * possible value type is a list of Values whose type can be Long, Double, - * or String, according to the metric's type. All Values in the list must - * be of the same type. - * - * Generated from protobuf field .google.protobuf.Value set = 7; - * @return \Google\Protobuf\Value|null - */ - public function getSet() - { - return $this->set; - } - - public function hasSet() - { - return isset($this->set); - } - - public function clearSet() - { - unset($this->set); - } - - /** - * Worker-computed aggregate value for the "Set" aggregation kind. The only - * possible value type is a list of Values whose type can be Long, Double, - * or String, according to the metric's type. All Values in the list must - * be of the same type. - * - * Generated from protobuf field .google.protobuf.Value set = 7; - * @param \Google\Protobuf\Value $var - * @return $this - */ - public function setSet($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); - $this->set = $var; - - return $this; - } - - /** - * A struct value describing properties of a distribution of numeric values. - * - * Generated from protobuf field .google.protobuf.Value distribution = 11; - * @return \Google\Protobuf\Value|null - */ - public function getDistribution() - { - return $this->distribution; - } - - public function hasDistribution() - { - return isset($this->distribution); - } - - public function clearDistribution() - { - unset($this->distribution); - } - - /** - * A struct value describing properties of a distribution of numeric values. - * - * Generated from protobuf field .google.protobuf.Value distribution = 11; - * @param \Google\Protobuf\Value $var - * @return $this - */ - public function setDistribution($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); - $this->distribution = $var; - - return $this; - } - - /** - * A struct value describing properties of a Gauge. - * Metrics of gauge type show the value of a metric across time, and is - * aggregated based on the newest value. - * - * Generated from protobuf field .google.protobuf.Value gauge = 12; - * @return \Google\Protobuf\Value|null - */ - public function getGauge() - { - return $this->gauge; - } - - public function hasGauge() - { - return isset($this->gauge); - } - - public function clearGauge() - { - unset($this->gauge); - } - - /** - * A struct value describing properties of a Gauge. - * Metrics of gauge type show the value of a metric across time, and is - * aggregated based on the newest value. - * - * Generated from protobuf field .google.protobuf.Value gauge = 12; - * @param \Google\Protobuf\Value $var - * @return $this - */ - public function setGauge($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); - $this->gauge = $var; - - return $this; - } - - /** - * Worker-computed aggregate value for internal use by the Dataflow - * service. - * - * Generated from protobuf field .google.protobuf.Value internal = 8; - * @return \Google\Protobuf\Value|null - */ - public function getInternal() - { - return $this->internal; - } - - public function hasInternal() - { - return isset($this->internal); - } - - public function clearInternal() - { - unset($this->internal); - } - - /** - * Worker-computed aggregate value for internal use by the Dataflow - * service. - * - * Generated from protobuf field .google.protobuf.Value internal = 8; - * @param \Google\Protobuf\Value $var - * @return $this - */ - public function setInternal($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Value::class); - $this->internal = $var; - - return $this; - } - - /** - * Timestamp associated with the metric value. Optional when workers are - * reporting work progress; it will be filled in responses from the - * metrics API. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; - * @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 associated with the metric value. Optional when workers are - * reporting work progress; it will be filled in responses from the - * metrics API. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 9; - * @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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MountedDataDisk.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MountedDataDisk.php deleted file mode 100644 index 9f01a098ac06..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/MountedDataDisk.php +++ /dev/null @@ -1,79 +0,0 @@ -google.dataflow.v1beta3.MountedDataDisk - */ -class MountedDataDisk extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the data disk. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * - * Generated from protobuf field string data_disk = 1; - */ - protected $data_disk = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_disk - * The name of the data disk. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * The name of the data disk. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * - * Generated from protobuf field string data_disk = 1; - * @return string - */ - public function getDataDisk() - { - return $this->data_disk; - } - - /** - * The name of the data disk. - * This name is local to the Google Cloud Platform project and uniquely - * identifies the disk within that project, for example - * "myproject-1014-104817-4c2-harness-0-disk-1". - * - * Generated from protobuf field string data_disk = 1; - * @param string $var - * @return $this - */ - public function setDataDisk($var) - { - GPBUtil::checkString($var, True); - $this->data_disk = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Package.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Package.php deleted file mode 100644 index 772dc8d5c967..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Package.php +++ /dev/null @@ -1,120 +0,0 @@ -google.dataflow.v1beta3.Package - */ -class Package extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the package. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The resource to read the package from. The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket} - * bucket.storage.googleapis.com/ - * - * Generated from protobuf field string location = 2; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the package. - * @type string $location - * The resource to read the package from. The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket} - * bucket.storage.googleapis.com/ - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Environment::initOnce(); - parent::__construct($data); - } - - /** - * The name of the package. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the package. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The resource to read the package from. The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket} - * bucket.storage.googleapis.com/ - * - * Generated from protobuf field string location = 2; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The resource to read the package from. The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket} - * bucket.storage.googleapis.com/ - * - * 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; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ParameterMetadata.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ParameterMetadata.php deleted file mode 100644 index 19e648449885..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ParameterMetadata.php +++ /dev/null @@ -1,275 +0,0 @@ -google.dataflow.v1beta3.ParameterMetadata - */ -class ParameterMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the parameter. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Required. The label to display for the parameter. - * - * Generated from protobuf field string label = 2; - */ - protected $label = ''; - /** - * Required. The help text to display for the parameter. - * - * Generated from protobuf field string help_text = 3; - */ - protected $help_text = ''; - /** - * Optional. Whether the parameter is optional. Defaults to false. - * - * Generated from protobuf field bool is_optional = 4; - */ - protected $is_optional = false; - /** - * Optional. Regexes that the parameter must match. - * - * Generated from protobuf field repeated string regexes = 5; - */ - private $regexes; - /** - * Optional. The type of the parameter. - * Used for selecting input picker. - * - * Generated from protobuf field .google.dataflow.v1beta3.ParameterType param_type = 6; - */ - protected $param_type = 0; - /** - * Optional. Additional metadata for describing this parameter. - * - * Generated from protobuf field map custom_metadata = 7; - */ - private $custom_metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the parameter. - * @type string $label - * Required. The label to display for the parameter. - * @type string $help_text - * Required. The help text to display for the parameter. - * @type bool $is_optional - * Optional. Whether the parameter is optional. Defaults to false. - * @type array|\Google\Protobuf\Internal\RepeatedField $regexes - * Optional. Regexes that the parameter must match. - * @type int $param_type - * Optional. The type of the parameter. - * Used for selecting input picker. - * @type array|\Google\Protobuf\Internal\MapField $custom_metadata - * Optional. Additional metadata for describing this parameter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the parameter. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The 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; - } - - /** - * Required. The label to display for the parameter. - * - * Generated from protobuf field string label = 2; - * @return string - */ - public function getLabel() - { - return $this->label; - } - - /** - * Required. The label to display for the parameter. - * - * Generated from protobuf field string label = 2; - * @param string $var - * @return $this - */ - public function setLabel($var) - { - GPBUtil::checkString($var, True); - $this->label = $var; - - return $this; - } - - /** - * Required. The help text to display for the parameter. - * - * Generated from protobuf field string help_text = 3; - * @return string - */ - public function getHelpText() - { - return $this->help_text; - } - - /** - * Required. The help text to display for the parameter. - * - * Generated from protobuf field string help_text = 3; - * @param string $var - * @return $this - */ - public function setHelpText($var) - { - GPBUtil::checkString($var, True); - $this->help_text = $var; - - return $this; - } - - /** - * Optional. Whether the parameter is optional. Defaults to false. - * - * Generated from protobuf field bool is_optional = 4; - * @return bool - */ - public function getIsOptional() - { - return $this->is_optional; - } - - /** - * Optional. Whether the parameter is optional. Defaults to false. - * - * Generated from protobuf field bool is_optional = 4; - * @param bool $var - * @return $this - */ - public function setIsOptional($var) - { - GPBUtil::checkBool($var); - $this->is_optional = $var; - - return $this; - } - - /** - * Optional. Regexes that the parameter must match. - * - * Generated from protobuf field repeated string regexes = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRegexes() - { - return $this->regexes; - } - - /** - * Optional. Regexes that the parameter must match. - * - * Generated from protobuf field repeated string regexes = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRegexes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->regexes = $arr; - - return $this; - } - - /** - * Optional. The type of the parameter. - * Used for selecting input picker. - * - * Generated from protobuf field .google.dataflow.v1beta3.ParameterType param_type = 6; - * @return int - */ - public function getParamType() - { - return $this->param_type; - } - - /** - * Optional. The type of the parameter. - * Used for selecting input picker. - * - * Generated from protobuf field .google.dataflow.v1beta3.ParameterType param_type = 6; - * @param int $var - * @return $this - */ - public function setParamType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\ParameterType::class); - $this->param_type = $var; - - return $this; - } - - /** - * Optional. Additional metadata for describing this parameter. - * - * Generated from protobuf field map custom_metadata = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getCustomMetadata() - { - return $this->custom_metadata; - } - - /** - * Optional. Additional metadata for describing this parameter. - * - * Generated from protobuf field map custom_metadata = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setCustomMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->custom_metadata = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ParameterType.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ParameterType.php deleted file mode 100644 index 87f11cee2152..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ParameterType.php +++ /dev/null @@ -1,114 +0,0 @@ -google.dataflow.v1beta3.ParameterType - */ -class ParameterType -{ - /** - * Default input type. - * - * Generated from protobuf enum DEFAULT = 0; - */ - const PBDEFAULT = 0; - /** - * The parameter specifies generic text input. - * - * Generated from protobuf enum TEXT = 1; - */ - const TEXT = 1; - /** - * The parameter specifies a Cloud Storage Bucket to read from. - * - * Generated from protobuf enum GCS_READ_BUCKET = 2; - */ - const GCS_READ_BUCKET = 2; - /** - * The parameter specifies a Cloud Storage Bucket to write to. - * - * Generated from protobuf enum GCS_WRITE_BUCKET = 3; - */ - const GCS_WRITE_BUCKET = 3; - /** - * The parameter specifies a Cloud Storage file path to read from. - * - * Generated from protobuf enum GCS_READ_FILE = 4; - */ - const GCS_READ_FILE = 4; - /** - * The parameter specifies a Cloud Storage file path to write to. - * - * Generated from protobuf enum GCS_WRITE_FILE = 5; - */ - const GCS_WRITE_FILE = 5; - /** - * The parameter specifies a Cloud Storage folder path to read from. - * - * Generated from protobuf enum GCS_READ_FOLDER = 6; - */ - const GCS_READ_FOLDER = 6; - /** - * The parameter specifies a Cloud Storage folder to write to. - * - * Generated from protobuf enum GCS_WRITE_FOLDER = 7; - */ - const GCS_WRITE_FOLDER = 7; - /** - * The parameter specifies a Pub/Sub Topic. - * - * Generated from protobuf enum PUBSUB_TOPIC = 8; - */ - const PUBSUB_TOPIC = 8; - /** - * The parameter specifies a Pub/Sub Subscription. - * - * Generated from protobuf enum PUBSUB_SUBSCRIPTION = 9; - */ - const PUBSUB_SUBSCRIPTION = 9; - - private static $valueToName = [ - self::PBDEFAULT => 'DEFAULT', - self::TEXT => 'TEXT', - self::GCS_READ_BUCKET => 'GCS_READ_BUCKET', - self::GCS_WRITE_BUCKET => 'GCS_WRITE_BUCKET', - self::GCS_READ_FILE => 'GCS_READ_FILE', - self::GCS_WRITE_FILE => 'GCS_WRITE_FILE', - self::GCS_READ_FOLDER => 'GCS_READ_FOLDER', - self::GCS_WRITE_FOLDER => 'GCS_WRITE_FOLDER', - self::PUBSUB_TOPIC => 'PUBSUB_TOPIC', - self::PUBSUB_SUBSCRIPTION => 'PUBSUB_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)) { - $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); - } -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PipelineDescription.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PipelineDescription.php deleted file mode 100644 index 4ab464562d31..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PipelineDescription.php +++ /dev/null @@ -1,137 +0,0 @@ -google.dataflow.v1beta3.PipelineDescription - */ -class PipelineDescription extends \Google\Protobuf\Internal\Message -{ - /** - * Description of each transform in the pipeline and collections between them. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.TransformSummary original_pipeline_transform = 1; - */ - private $original_pipeline_transform; - /** - * Description of each stage of execution of the pipeline. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary execution_pipeline_stage = 2; - */ - private $execution_pipeline_stage; - /** - * Pipeline level display data. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DisplayData display_data = 3; - */ - private $display_data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dataflow\V1beta3\TransformSummary>|\Google\Protobuf\Internal\RepeatedField $original_pipeline_transform - * Description of each transform in the pipeline and collections between them. - * @type array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary>|\Google\Protobuf\Internal\RepeatedField $execution_pipeline_stage - * Description of each stage of execution of the pipeline. - * @type array<\Google\Cloud\Dataflow\V1beta3\DisplayData>|\Google\Protobuf\Internal\RepeatedField $display_data - * Pipeline level display data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * Description of each transform in the pipeline and collections between them. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.TransformSummary original_pipeline_transform = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOriginalPipelineTransform() - { - return $this->original_pipeline_transform; - } - - /** - * Description of each transform in the pipeline and collections between them. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.TransformSummary original_pipeline_transform = 1; - * @param array<\Google\Cloud\Dataflow\V1beta3\TransformSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOriginalPipelineTransform($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\TransformSummary::class); - $this->original_pipeline_transform = $arr; - - return $this; - } - - /** - * Description of each stage of execution of the pipeline. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary execution_pipeline_stage = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExecutionPipelineStage() - { - return $this->execution_pipeline_stage; - } - - /** - * Description of each stage of execution of the pipeline. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ExecutionStageSummary execution_pipeline_stage = 2; - * @param array<\Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExecutionPipelineStage($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\ExecutionStageSummary::class); - $this->execution_pipeline_stage = $arr; - - return $this; - } - - /** - * Pipeline level display data. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DisplayData display_data = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDisplayData() - { - return $this->display_data; - } - - /** - * Pipeline level display data. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DisplayData display_data = 3; - * @param array<\Google\Cloud\Dataflow\V1beta3\DisplayData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDisplayData($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\DisplayData::class); - $this->display_data = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ProgressTimeseries.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ProgressTimeseries.php deleted file mode 100644 index a83d098a1bfc..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ProgressTimeseries.php +++ /dev/null @@ -1,105 +0,0 @@ -google.dataflow.v1beta3.ProgressTimeseries - */ -class ProgressTimeseries extends \Google\Protobuf\Internal\Message -{ - /** - * The current progress of the component, in the range [0,1]. - * - * Generated from protobuf field double current_progress = 1; - */ - protected $current_progress = 0.0; - /** - * History of progress for the component. - * Points are sorted by time. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2; - */ - private $data_points; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $current_progress - * The current progress of the component, in the range [0,1]. - * @type array<\Google\Cloud\Dataflow\V1beta3\ProgressTimeseries\Point>|\Google\Protobuf\Internal\RepeatedField $data_points - * History of progress for the component. - * Points are sorted by time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * The current progress of the component, in the range [0,1]. - * - * Generated from protobuf field double current_progress = 1; - * @return float - */ - public function getCurrentProgress() - { - return $this->current_progress; - } - - /** - * The current progress of the component, in the range [0,1]. - * - * Generated from protobuf field double current_progress = 1; - * @param float $var - * @return $this - */ - public function setCurrentProgress($var) - { - GPBUtil::checkDouble($var); - $this->current_progress = $var; - - return $this; - } - - /** - * History of progress for the component. - * Points are sorted by time. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataPoints() - { - return $this->data_points; - } - - /** - * History of progress for the component. - * Points are sorted by time. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ProgressTimeseries.Point data_points = 2; - * @param array<\Google\Cloud\Dataflow\V1beta3\ProgressTimeseries\Point>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataPoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\ProgressTimeseries\Point::class); - $this->data_points = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ProgressTimeseries/Point.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ProgressTimeseries/Point.php deleted file mode 100644 index 587fc218913e..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ProgressTimeseries/Point.php +++ /dev/null @@ -1,114 +0,0 @@ -google.dataflow.v1beta3.ProgressTimeseries.Point - */ -class Point extends \Google\Protobuf\Internal\Message -{ - /** - * The timestamp of the point. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - */ - protected $time = null; - /** - * The value of the point. - * - * Generated from protobuf field double value = 2; - */ - protected $value = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $time - * The timestamp of the point. - * @type float $value - * The value of the point. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * The timestamp of the point. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * The timestamp of the point. - * - * Generated from protobuf field .google.protobuf.Timestamp time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time = $var; - - return $this; - } - - /** - * The value of the point. - * - * Generated from protobuf field double value = 2; - * @return float - */ - public function getValue() - { - return $this->value; - } - - /** - * The value of the point. - * - * Generated from protobuf field double value = 2; - * @param float $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkDouble($var); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Point::class, \Google\Cloud\Dataflow\V1beta3\ProgressTimeseries_Point::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubSubIODetails.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubSubIODetails.php deleted file mode 100644 index ec58666cbc4c..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubSubIODetails.php +++ /dev/null @@ -1,101 +0,0 @@ -google.dataflow.v1beta3.PubSubIODetails - */ -class PubSubIODetails extends \Google\Protobuf\Internal\Message -{ - /** - * Topic accessed in the connection. - * - * Generated from protobuf field string topic = 1; - */ - protected $topic = ''; - /** - * Subscription used in the connection. - * - * Generated from protobuf field string subscription = 2; - */ - protected $subscription = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $topic - * Topic accessed in the connection. - * @type string $subscription - * Subscription used in the connection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * Topic accessed in the connection. - * - * Generated from protobuf field string topic = 1; - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * Topic accessed in the connection. - * - * 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; - } - - /** - * Subscription used in the connection. - * - * Generated from protobuf field string subscription = 2; - * @return string - */ - public function getSubscription() - { - return $this->subscription; - } - - /** - * Subscription used in the connection. - * - * Generated from protobuf field string subscription = 2; - * @param string $var - * @return $this - */ - public function setSubscription($var) - { - GPBUtil::checkString($var, True); - $this->subscription = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubsubLocation.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubsubLocation.php deleted file mode 100644 index ef5f954f9f70..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubsubLocation.php +++ /dev/null @@ -1,292 +0,0 @@ -google.dataflow.v1beta3.PubsubLocation - */ -class PubsubLocation extends \Google\Protobuf\Internal\Message -{ - /** - * A pubsub topic, in the form of - * "pubsub.googleapis.com/topics//" - * - * Generated from protobuf field string topic = 1; - */ - protected $topic = ''; - /** - * A pubsub subscription, in the form of - * "pubsub.googleapis.com/subscriptions//" - * - * Generated from protobuf field string subscription = 2; - */ - protected $subscription = ''; - /** - * If set, contains a pubsub label from which to extract record timestamps. - * If left empty, record timestamps will be generated upon arrival. - * - * Generated from protobuf field string timestamp_label = 3; - */ - protected $timestamp_label = ''; - /** - * If set, contains a pubsub label from which to extract record ids. - * If left empty, record deduplication will be strictly best effort. - * - * Generated from protobuf field string id_label = 4; - */ - protected $id_label = ''; - /** - * Indicates whether the pipeline allows late-arriving data. - * - * Generated from protobuf field bool drop_late_data = 5; - */ - protected $drop_late_data = false; - /** - * If set, specifies the pubsub subscription that will be used for tracking - * custom time timestamps for watermark estimation. - * - * Generated from protobuf field string tracking_subscription = 6; - */ - protected $tracking_subscription = ''; - /** - * If true, then the client has requested to get pubsub attributes. - * - * Generated from protobuf field bool with_attributes = 7; - */ - protected $with_attributes = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $topic - * A pubsub topic, in the form of - * "pubsub.googleapis.com/topics//" - * @type string $subscription - * A pubsub subscription, in the form of - * "pubsub.googleapis.com/subscriptions//" - * @type string $timestamp_label - * If set, contains a pubsub label from which to extract record timestamps. - * If left empty, record timestamps will be generated upon arrival. - * @type string $id_label - * If set, contains a pubsub label from which to extract record ids. - * If left empty, record deduplication will be strictly best effort. - * @type bool $drop_late_data - * Indicates whether the pipeline allows late-arriving data. - * @type string $tracking_subscription - * If set, specifies the pubsub subscription that will be used for tracking - * custom time timestamps for watermark estimation. - * @type bool $with_attributes - * If true, then the client has requested to get pubsub attributes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * A pubsub topic, in the form of - * "pubsub.googleapis.com/topics//" - * - * Generated from protobuf field string topic = 1; - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * A pubsub topic, in the form of - * "pubsub.googleapis.com/topics//" - * - * 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; - } - - /** - * A pubsub subscription, in the form of - * "pubsub.googleapis.com/subscriptions//" - * - * Generated from protobuf field string subscription = 2; - * @return string - */ - public function getSubscription() - { - return $this->subscription; - } - - /** - * A pubsub subscription, in the form of - * "pubsub.googleapis.com/subscriptions//" - * - * Generated from protobuf field string subscription = 2; - * @param string $var - * @return $this - */ - public function setSubscription($var) - { - GPBUtil::checkString($var, True); - $this->subscription = $var; - - return $this; - } - - /** - * If set, contains a pubsub label from which to extract record timestamps. - * If left empty, record timestamps will be generated upon arrival. - * - * Generated from protobuf field string timestamp_label = 3; - * @return string - */ - public function getTimestampLabel() - { - return $this->timestamp_label; - } - - /** - * If set, contains a pubsub label from which to extract record timestamps. - * If left empty, record timestamps will be generated upon arrival. - * - * Generated from protobuf field string timestamp_label = 3; - * @param string $var - * @return $this - */ - public function setTimestampLabel($var) - { - GPBUtil::checkString($var, True); - $this->timestamp_label = $var; - - return $this; - } - - /** - * If set, contains a pubsub label from which to extract record ids. - * If left empty, record deduplication will be strictly best effort. - * - * Generated from protobuf field string id_label = 4; - * @return string - */ - public function getIdLabel() - { - return $this->id_label; - } - - /** - * If set, contains a pubsub label from which to extract record ids. - * If left empty, record deduplication will be strictly best effort. - * - * Generated from protobuf field string id_label = 4; - * @param string $var - * @return $this - */ - public function setIdLabel($var) - { - GPBUtil::checkString($var, True); - $this->id_label = $var; - - return $this; - } - - /** - * Indicates whether the pipeline allows late-arriving data. - * - * Generated from protobuf field bool drop_late_data = 5; - * @return bool - */ - public function getDropLateData() - { - return $this->drop_late_data; - } - - /** - * Indicates whether the pipeline allows late-arriving data. - * - * Generated from protobuf field bool drop_late_data = 5; - * @param bool $var - * @return $this - */ - public function setDropLateData($var) - { - GPBUtil::checkBool($var); - $this->drop_late_data = $var; - - return $this; - } - - /** - * If set, specifies the pubsub subscription that will be used for tracking - * custom time timestamps for watermark estimation. - * - * Generated from protobuf field string tracking_subscription = 6; - * @return string - */ - public function getTrackingSubscription() - { - return $this->tracking_subscription; - } - - /** - * If set, specifies the pubsub subscription that will be used for tracking - * custom time timestamps for watermark estimation. - * - * Generated from protobuf field string tracking_subscription = 6; - * @param string $var - * @return $this - */ - public function setTrackingSubscription($var) - { - GPBUtil::checkString($var, True); - $this->tracking_subscription = $var; - - return $this; - } - - /** - * If true, then the client has requested to get pubsub attributes. - * - * Generated from protobuf field bool with_attributes = 7; - * @return bool - */ - public function getWithAttributes() - { - return $this->with_attributes; - } - - /** - * If true, then the client has requested to get pubsub attributes. - * - * Generated from protobuf field bool with_attributes = 7; - * @param bool $var - * @return $this - */ - public function setWithAttributes($var) - { - GPBUtil::checkBool($var); - $this->with_attributes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubsubSnapshotMetadata.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubsubSnapshotMetadata.php deleted file mode 100644 index 735379d53159..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/PubsubSnapshotMetadata.php +++ /dev/null @@ -1,145 +0,0 @@ -google.dataflow.v1beta3.PubsubSnapshotMetadata - */ -class PubsubSnapshotMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the Pubsub topic. - * - * Generated from protobuf field string topic_name = 1; - */ - protected $topic_name = ''; - /** - * The name of the Pubsub snapshot. - * - * Generated from protobuf field string snapshot_name = 2; - */ - protected $snapshot_name = ''; - /** - * The expire time of the Pubsub snapshot. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3; - */ - protected $expire_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $topic_name - * The name of the Pubsub topic. - * @type string $snapshot_name - * The name of the Pubsub snapshot. - * @type \Google\Protobuf\Timestamp $expire_time - * The expire time of the Pubsub snapshot. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Snapshots::initOnce(); - parent::__construct($data); - } - - /** - * The name of the Pubsub topic. - * - * Generated from protobuf field string topic_name = 1; - * @return string - */ - public function getTopicName() - { - return $this->topic_name; - } - - /** - * The name of the Pubsub topic. - * - * Generated from protobuf field string topic_name = 1; - * @param string $var - * @return $this - */ - public function setTopicName($var) - { - GPBUtil::checkString($var, True); - $this->topic_name = $var; - - return $this; - } - - /** - * The name of the Pubsub snapshot. - * - * Generated from protobuf field string snapshot_name = 2; - * @return string - */ - public function getSnapshotName() - { - return $this->snapshot_name; - } - - /** - * The name of the Pubsub snapshot. - * - * Generated from protobuf field string snapshot_name = 2; - * @param string $var - * @return $this - */ - public function setSnapshotName($var) - { - GPBUtil::checkString($var, True); - $this->snapshot_name = $var; - - return $this; - } - - /** - * The expire time of the Pubsub snapshot. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpireTime() - { - return $this->expire_time; - } - - public function hasExpireTime() - { - return isset($this->expire_time); - } - - public function clearExpireTime() - { - unset($this->expire_time); - } - - /** - * The expire time of the Pubsub snapshot. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 3; - * @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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/RuntimeEnvironment.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/RuntimeEnvironment.php deleted file mode 100644 index db078f09e5c1..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/RuntimeEnvironment.php +++ /dev/null @@ -1,697 +0,0 @@ -google.dataflow.v1beta3.RuntimeEnvironment - */ -class RuntimeEnvironment extends \Google\Protobuf\Internal\Message -{ - /** - * The initial number of Google Compute Engine instnaces for the job. - * - * Generated from protobuf field int32 num_workers = 11; - */ - protected $num_workers = 0; - /** - * The maximum number of Google Compute Engine instances to be made - * available to your pipeline during execution, from 1 to 1000. - * - * Generated from protobuf field int32 max_workers = 1; - */ - protected $max_workers = 0; - /** - * The Compute Engine [availability - * zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - * for launching worker instances to run your pipeline. - * In the future, worker_zone will take precedence. - * - * Generated from protobuf field string zone = 2; - */ - protected $zone = ''; - /** - * The email address of the service account to run the job as. - * - * Generated from protobuf field string service_account_email = 3; - */ - protected $service_account_email = ''; - /** - * The Cloud Storage path to use for temporary files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string temp_location = 4; - */ - protected $temp_location = ''; - /** - * Whether to bypass the safety checks for the job's temporary directory. - * Use with caution. - * - * Generated from protobuf field bool bypass_temp_dir_validation = 5; - */ - protected $bypass_temp_dir_validation = false; - /** - * The machine type to use for the job. Defaults to the value from the - * template if not specified. - * - * Generated from protobuf field string machine_type = 6; - */ - protected $machine_type = ''; - /** - * Additional experiment flags for the job, specified with the - * `--experiments` option. - * - * Generated from protobuf field repeated string additional_experiments = 7; - */ - private $additional_experiments; - /** - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * - * Generated from protobuf field string network = 8; - */ - protected $network = ''; - /** - * Subnetwork to which VMs will be assigned, if desired. You can specify a - * subnetwork using either a complete URL or an abbreviated path. Expected to - * be of the form - * "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - * or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - * a Shared VPC network, you must use the complete URL. - * - * Generated from protobuf field string subnetwork = 9; - */ - protected $subnetwork = ''; - /** - * Additional user labels to be specified for the job. - * Keys and values should follow the restrictions specified in the [labeling - * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - * page. - * An object containing a list of "key": value pairs. - * Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - * - * Generated from protobuf field map additional_user_labels = 10; - */ - private $additional_user_labels; - /** - * Name for the Cloud KMS key for the job. - * Key format is: - * projects//locations//keyRings//cryptoKeys/ - * - * Generated from protobuf field string kms_key_name = 12; - */ - protected $kms_key_name = ''; - /** - * Configuration for VM IPs. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerIPAddressConfiguration ip_configuration = 14; - */ - protected $ip_configuration = 0; - /** - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * - * Generated from protobuf field string worker_region = 15; - */ - protected $worker_region = ''; - /** - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - * - * Generated from protobuf field string worker_zone = 16; - */ - protected $worker_zone = ''; - /** - * Whether to enable Streaming Engine for the job. - * - * Generated from protobuf field bool enable_streaming_engine = 17; - */ - protected $enable_streaming_engine = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $num_workers - * The initial number of Google Compute Engine instnaces for the job. - * @type int $max_workers - * The maximum number of Google Compute Engine instances to be made - * available to your pipeline during execution, from 1 to 1000. - * @type string $zone - * The Compute Engine [availability - * zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - * for launching worker instances to run your pipeline. - * In the future, worker_zone will take precedence. - * @type string $service_account_email - * The email address of the service account to run the job as. - * @type string $temp_location - * The Cloud Storage path to use for temporary files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * @type bool $bypass_temp_dir_validation - * Whether to bypass the safety checks for the job's temporary directory. - * Use with caution. - * @type string $machine_type - * The machine type to use for the job. Defaults to the value from the - * template if not specified. - * @type array|\Google\Protobuf\Internal\RepeatedField $additional_experiments - * Additional experiment flags for the job, specified with the - * `--experiments` option. - * @type string $network - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * @type string $subnetwork - * Subnetwork to which VMs will be assigned, if desired. You can specify a - * subnetwork using either a complete URL or an abbreviated path. Expected to - * be of the form - * "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - * or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - * a Shared VPC network, you must use the complete URL. - * @type array|\Google\Protobuf\Internal\MapField $additional_user_labels - * Additional user labels to be specified for the job. - * Keys and values should follow the restrictions specified in the [labeling - * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - * page. - * An object containing a list of "key": value pairs. - * Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - * @type string $kms_key_name - * Name for the Cloud KMS key for the job. - * Key format is: - * projects//locations//keyRings//cryptoKeys/ - * @type int $ip_configuration - * Configuration for VM IPs. - * @type string $worker_region - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * @type string $worker_zone - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - * @type bool $enable_streaming_engine - * Whether to enable Streaming Engine for the job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * The initial number of Google Compute Engine instnaces for the job. - * - * Generated from protobuf field int32 num_workers = 11; - * @return int - */ - public function getNumWorkers() - { - return $this->num_workers; - } - - /** - * The initial number of Google Compute Engine instnaces for the job. - * - * Generated from protobuf field int32 num_workers = 11; - * @param int $var - * @return $this - */ - public function setNumWorkers($var) - { - GPBUtil::checkInt32($var); - $this->num_workers = $var; - - return $this; - } - - /** - * The maximum number of Google Compute Engine instances to be made - * available to your pipeline during execution, from 1 to 1000. - * - * Generated from protobuf field int32 max_workers = 1; - * @return int - */ - public function getMaxWorkers() - { - return $this->max_workers; - } - - /** - * The maximum number of Google Compute Engine instances to be made - * available to your pipeline during execution, from 1 to 1000. - * - * Generated from protobuf field int32 max_workers = 1; - * @param int $var - * @return $this - */ - public function setMaxWorkers($var) - { - GPBUtil::checkInt32($var); - $this->max_workers = $var; - - return $this; - } - - /** - * The Compute Engine [availability - * zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - * for launching worker instances to run your pipeline. - * In the future, worker_zone will take precedence. - * - * Generated from protobuf field string zone = 2; - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * The Compute Engine [availability - * zone](https://cloud.google.com/compute/docs/regions-zones/regions-zones) - * for launching worker instances to run your pipeline. - * In the future, worker_zone will take precedence. - * - * Generated from protobuf field string zone = 2; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * The email address of the service account to run the job as. - * - * Generated from protobuf field string service_account_email = 3; - * @return string - */ - public function getServiceAccountEmail() - { - return $this->service_account_email; - } - - /** - * The email address of the service account to run the job as. - * - * Generated from protobuf field string service_account_email = 3; - * @param string $var - * @return $this - */ - public function setServiceAccountEmail($var) - { - GPBUtil::checkString($var, True); - $this->service_account_email = $var; - - return $this; - } - - /** - * The Cloud Storage path to use for temporary files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string temp_location = 4; - * @return string - */ - public function getTempLocation() - { - return $this->temp_location; - } - - /** - * The Cloud Storage path to use for temporary files. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * - * Generated from protobuf field string temp_location = 4; - * @param string $var - * @return $this - */ - public function setTempLocation($var) - { - GPBUtil::checkString($var, True); - $this->temp_location = $var; - - return $this; - } - - /** - * Whether to bypass the safety checks for the job's temporary directory. - * Use with caution. - * - * Generated from protobuf field bool bypass_temp_dir_validation = 5; - * @return bool - */ - public function getBypassTempDirValidation() - { - return $this->bypass_temp_dir_validation; - } - - /** - * Whether to bypass the safety checks for the job's temporary directory. - * Use with caution. - * - * Generated from protobuf field bool bypass_temp_dir_validation = 5; - * @param bool $var - * @return $this - */ - public function setBypassTempDirValidation($var) - { - GPBUtil::checkBool($var); - $this->bypass_temp_dir_validation = $var; - - return $this; - } - - /** - * The machine type to use for the job. Defaults to the value from the - * template if not specified. - * - * Generated from protobuf field string machine_type = 6; - * @return string - */ - public function getMachineType() - { - return $this->machine_type; - } - - /** - * The machine type to use for the job. Defaults to the value from the - * template if not specified. - * - * Generated from protobuf field string machine_type = 6; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * Additional experiment flags for the job, specified with the - * `--experiments` option. - * - * Generated from protobuf field repeated string additional_experiments = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdditionalExperiments() - { - return $this->additional_experiments; - } - - /** - * Additional experiment flags for the job, specified with the - * `--experiments` option. - * - * Generated from protobuf field repeated string additional_experiments = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdditionalExperiments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_experiments = $arr; - - return $this; - } - - /** - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * - * Generated from protobuf field string network = 8; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * - * Generated from protobuf field string network = 8; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Subnetwork to which VMs will be assigned, if desired. You can specify a - * subnetwork using either a complete URL or an abbreviated path. Expected to - * be of the form - * "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - * or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - * a Shared VPC network, you must use the complete URL. - * - * Generated from protobuf field string subnetwork = 9; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Subnetwork to which VMs will be assigned, if desired. You can specify a - * subnetwork using either a complete URL or an abbreviated path. Expected to - * be of the form - * "https://www.googleapis.com/compute/v1/projects/HOST_PROJECT_ID/regions/REGION/subnetworks/SUBNETWORK" - * or "regions/REGION/subnetworks/SUBNETWORK". If the subnetwork is located in - * a Shared VPC network, you must use the complete URL. - * - * Generated from protobuf field string subnetwork = 9; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Additional user labels to be specified for the job. - * Keys and values should follow the restrictions specified in the [labeling - * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - * page. - * An object containing a list of "key": value pairs. - * Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - * - * Generated from protobuf field map additional_user_labels = 10; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAdditionalUserLabels() - { - return $this->additional_user_labels; - } - - /** - * Additional user labels to be specified for the job. - * Keys and values should follow the restrictions specified in the [labeling - * restrictions](https://cloud.google.com/compute/docs/labeling-resources#restrictions) - * page. - * An object containing a list of "key": value pairs. - * Example: { "name": "wrench", "mass": "1kg", "count": "3" }. - * - * Generated from protobuf field map additional_user_labels = 10; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAdditionalUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->additional_user_labels = $arr; - - return $this; - } - - /** - * Name for the Cloud KMS key for the job. - * Key format is: - * projects//locations//keyRings//cryptoKeys/ - * - * Generated from protobuf field string kms_key_name = 12; - * @return string - */ - public function getKmsKeyName() - { - return $this->kms_key_name; - } - - /** - * Name for the Cloud KMS key for the job. - * Key format is: - * projects//locations//keyRings//cryptoKeys/ - * - * Generated from protobuf field string kms_key_name = 12; - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_name = $var; - - return $this; - } - - /** - * Configuration for VM IPs. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerIPAddressConfiguration ip_configuration = 14; - * @return int - */ - public function getIpConfiguration() - { - return $this->ip_configuration; - } - - /** - * Configuration for VM IPs. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerIPAddressConfiguration ip_configuration = 14; - * @param int $var - * @return $this - */ - public function setIpConfiguration($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\WorkerIPAddressConfiguration::class); - $this->ip_configuration = $var; - - return $this; - } - - /** - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * - * Generated from protobuf field string worker_region = 15; - * @return string - */ - public function getWorkerRegion() - { - return $this->worker_region; - } - - /** - * The Compute Engine region - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1". Mutually exclusive - * with worker_zone. If neither worker_region nor worker_zone is specified, - * default to the control plane's region. - * - * Generated from protobuf field string worker_region = 15; - * @param string $var - * @return $this - */ - public function setWorkerRegion($var) - { - GPBUtil::checkString($var, True); - $this->worker_region = $var; - - return $this; - } - - /** - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - * - * Generated from protobuf field string worker_zone = 16; - * @return string - */ - public function getWorkerZone() - { - return $this->worker_zone; - } - - /** - * The Compute Engine zone - * (https://cloud.google.com/compute/docs/regions-zones/regions-zones) in - * which worker processing should occur, e.g. "us-west1-a". Mutually exclusive - * with worker_region. If neither worker_region nor worker_zone is specified, - * a zone in the control plane's region is chosen based on available capacity. - * If both `worker_zone` and `zone` are set, `worker_zone` takes precedence. - * - * Generated from protobuf field string worker_zone = 16; - * @param string $var - * @return $this - */ - public function setWorkerZone($var) - { - GPBUtil::checkString($var, True); - $this->worker_zone = $var; - - return $this; - } - - /** - * Whether to enable Streaming Engine for the job. - * - * Generated from protobuf field bool enable_streaming_engine = 17; - * @return bool - */ - public function getEnableStreamingEngine() - { - return $this->enable_streaming_engine; - } - - /** - * Whether to enable Streaming Engine for the job. - * - * Generated from protobuf field bool enable_streaming_engine = 17; - * @param bool $var - * @return $this - */ - public function setEnableStreamingEngine($var) - { - GPBUtil::checkBool($var); - $this->enable_streaming_engine = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/RuntimeMetadata.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/RuntimeMetadata.php deleted file mode 100644 index 07b47f697cde..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/RuntimeMetadata.php +++ /dev/null @@ -1,111 +0,0 @@ -google.dataflow.v1beta3.RuntimeMetadata - */ -class RuntimeMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * SDK Info for the template. - * - * Generated from protobuf field .google.dataflow.v1beta3.SDKInfo sdk_info = 1; - */ - protected $sdk_info = null; - /** - * The parameters for the template. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 2; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataflow\V1beta3\SDKInfo $sdk_info - * SDK Info for the template. - * @type array<\Google\Cloud\Dataflow\V1beta3\ParameterMetadata>|\Google\Protobuf\Internal\RepeatedField $parameters - * The parameters for the template. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * SDK Info for the template. - * - * Generated from protobuf field .google.dataflow.v1beta3.SDKInfo sdk_info = 1; - * @return \Google\Cloud\Dataflow\V1beta3\SDKInfo|null - */ - public function getSdkInfo() - { - return $this->sdk_info; - } - - public function hasSdkInfo() - { - return isset($this->sdk_info); - } - - public function clearSdkInfo() - { - unset($this->sdk_info); - } - - /** - * SDK Info for the template. - * - * Generated from protobuf field .google.dataflow.v1beta3.SDKInfo sdk_info = 1; - * @param \Google\Cloud\Dataflow\V1beta3\SDKInfo $var - * @return $this - */ - public function setSdkInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\SDKInfo::class); - $this->sdk_info = $var; - - return $this; - } - - /** - * The parameters for the template. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * The parameters for the template. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 2; - * @param array<\Google\Cloud\Dataflow\V1beta3\ParameterMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\ParameterMetadata::class); - $this->parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SDKInfo.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SDKInfo.php deleted file mode 100644 index 8396a1fe7ebc..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SDKInfo.php +++ /dev/null @@ -1,101 +0,0 @@ -google.dataflow.v1beta3.SDKInfo - */ -class SDKInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The SDK Language. - * - * Generated from protobuf field .google.dataflow.v1beta3.SDKInfo.Language language = 1; - */ - protected $language = 0; - /** - * Optional. The SDK version. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $language - * Required. The SDK Language. - * @type string $version - * Optional. The SDK version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Required. The SDK Language. - * - * Generated from protobuf field .google.dataflow.v1beta3.SDKInfo.Language language = 1; - * @return int - */ - public function getLanguage() - { - return $this->language; - } - - /** - * Required. The SDK Language. - * - * Generated from protobuf field .google.dataflow.v1beta3.SDKInfo.Language language = 1; - * @param int $var - * @return $this - */ - public function setLanguage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\SDKInfo\Language::class); - $this->language = $var; - - return $this; - } - - /** - * Optional. The SDK version. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Optional. The SDK version. - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SDKInfo/Language.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SDKInfo/Language.php deleted file mode 100644 index a5329e29ef80..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SDKInfo/Language.php +++ /dev/null @@ -1,64 +0,0 @@ -google.dataflow.v1beta3.SDKInfo.Language - */ -class Language -{ - /** - * UNKNOWN Language. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * Java. - * - * Generated from protobuf enum JAVA = 1; - */ - const JAVA = 1; - /** - * Python. - * - * Generated from protobuf enum PYTHON = 2; - */ - const PYTHON = 2; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::JAVA => 'JAVA', - self::PYTHON => 'PYTHON', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Language::class, \Google\Cloud\Dataflow\V1beta3\SDKInfo_Language::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkHarnessContainerImage.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkHarnessContainerImage.php deleted file mode 100644 index 653eb8f2204e..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkHarnessContainerImage.php +++ /dev/null @@ -1,193 +0,0 @@ -google.dataflow.v1beta3.SdkHarnessContainerImage - */ -class SdkHarnessContainerImage extends \Google\Protobuf\Internal\Message -{ - /** - * A docker container image that resides in Google Container Registry. - * - * Generated from protobuf field string container_image = 1; - */ - protected $container_image = ''; - /** - * If true, recommends the Dataflow service to use only one core per SDK - * container instance with this image. If false (or unset) recommends using - * more than one core per SDK container instance with this image for - * efficiency. Note that Dataflow service may choose to override this property - * if needed. - * - * Generated from protobuf field bool use_single_core_per_container = 2; - */ - protected $use_single_core_per_container = false; - /** - * Environment ID for the Beam runner API proto Environment that corresponds - * to the current SDK Harness. - * - * Generated from protobuf field string environment_id = 3; - */ - protected $environment_id = ''; - /** - * The set of capabilities enumerated in the above Environment proto. See also - * https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/beam_runner_api.proto - * - * Generated from protobuf field repeated string capabilities = 4; - */ - private $capabilities; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $container_image - * A docker container image that resides in Google Container Registry. - * @type bool $use_single_core_per_container - * If true, recommends the Dataflow service to use only one core per SDK - * container instance with this image. If false (or unset) recommends using - * more than one core per SDK container instance with this image for - * efficiency. Note that Dataflow service may choose to override this property - * if needed. - * @type string $environment_id - * Environment ID for the Beam runner API proto Environment that corresponds - * to the current SDK Harness. - * @type array|\Google\Protobuf\Internal\RepeatedField $capabilities - * The set of capabilities enumerated in the above Environment proto. See also - * https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/beam_runner_api.proto - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Environment::initOnce(); - parent::__construct($data); - } - - /** - * A docker container image that resides in Google Container Registry. - * - * Generated from protobuf field string container_image = 1; - * @return string - */ - public function getContainerImage() - { - return $this->container_image; - } - - /** - * A docker container image that resides in Google Container Registry. - * - * Generated from protobuf field string container_image = 1; - * @param string $var - * @return $this - */ - public function setContainerImage($var) - { - GPBUtil::checkString($var, True); - $this->container_image = $var; - - return $this; - } - - /** - * If true, recommends the Dataflow service to use only one core per SDK - * container instance with this image. If false (or unset) recommends using - * more than one core per SDK container instance with this image for - * efficiency. Note that Dataflow service may choose to override this property - * if needed. - * - * Generated from protobuf field bool use_single_core_per_container = 2; - * @return bool - */ - public function getUseSingleCorePerContainer() - { - return $this->use_single_core_per_container; - } - - /** - * If true, recommends the Dataflow service to use only one core per SDK - * container instance with this image. If false (or unset) recommends using - * more than one core per SDK container instance with this image for - * efficiency. Note that Dataflow service may choose to override this property - * if needed. - * - * Generated from protobuf field bool use_single_core_per_container = 2; - * @param bool $var - * @return $this - */ - public function setUseSingleCorePerContainer($var) - { - GPBUtil::checkBool($var); - $this->use_single_core_per_container = $var; - - return $this; - } - - /** - * Environment ID for the Beam runner API proto Environment that corresponds - * to the current SDK Harness. - * - * Generated from protobuf field string environment_id = 3; - * @return string - */ - public function getEnvironmentId() - { - return $this->environment_id; - } - - /** - * Environment ID for the Beam runner API proto Environment that corresponds - * to the current SDK Harness. - * - * Generated from protobuf field string environment_id = 3; - * @param string $var - * @return $this - */ - public function setEnvironmentId($var) - { - GPBUtil::checkString($var, True); - $this->environment_id = $var; - - return $this; - } - - /** - * The set of capabilities enumerated in the above Environment proto. See also - * https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/beam_runner_api.proto - * - * Generated from protobuf field repeated string capabilities = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCapabilities() - { - return $this->capabilities; - } - - /** - * The set of capabilities enumerated in the above Environment proto. See also - * https://github.com/apache/beam/blob/master/model/pipeline/src/main/proto/beam_runner_api.proto - * - * Generated from protobuf field repeated string capabilities = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCapabilities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->capabilities = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkVersion.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkVersion.php deleted file mode 100644 index 2dadc75ced64..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkVersion.php +++ /dev/null @@ -1,135 +0,0 @@ -google.dataflow.v1beta3.SdkVersion - */ -class SdkVersion extends \Google\Protobuf\Internal\Message -{ - /** - * The version of the SDK used to run the job. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * A readable string describing the version of the SDK. - * - * Generated from protobuf field string version_display_name = 2; - */ - protected $version_display_name = ''; - /** - * The support status for this SDK version. - * - * Generated from protobuf field .google.dataflow.v1beta3.SdkVersion.SdkSupportStatus sdk_support_status = 3; - */ - protected $sdk_support_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The version of the SDK used to run the job. - * @type string $version_display_name - * A readable string describing the version of the SDK. - * @type int $sdk_support_status - * The support status for this SDK version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The version of the SDK used to run the job. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of the SDK used to run the job. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * A readable string describing the version of the SDK. - * - * Generated from protobuf field string version_display_name = 2; - * @return string - */ - public function getVersionDisplayName() - { - return $this->version_display_name; - } - - /** - * A readable string describing the version of the SDK. - * - * Generated from protobuf field string version_display_name = 2; - * @param string $var - * @return $this - */ - public function setVersionDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->version_display_name = $var; - - return $this; - } - - /** - * The support status for this SDK version. - * - * Generated from protobuf field .google.dataflow.v1beta3.SdkVersion.SdkSupportStatus sdk_support_status = 3; - * @return int - */ - public function getSdkSupportStatus() - { - return $this->sdk_support_status; - } - - /** - * The support status for this SDK version. - * - * Generated from protobuf field .google.dataflow.v1beta3.SdkVersion.SdkSupportStatus sdk_support_status = 3; - * @param int $var - * @return $this - */ - public function setSdkSupportStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\SdkVersion\SdkSupportStatus::class); - $this->sdk_support_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkVersion/SdkSupportStatus.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkVersion/SdkSupportStatus.php deleted file mode 100644 index cede66359d07..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SdkVersion/SdkSupportStatus.php +++ /dev/null @@ -1,79 +0,0 @@ -google.dataflow.v1beta3.SdkVersion.SdkSupportStatus - */ -class SdkSupportStatus -{ - /** - * Cloud Dataflow is unaware of this version. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * This is a known version of an SDK, and is supported. - * - * Generated from protobuf enum SUPPORTED = 1; - */ - const SUPPORTED = 1; - /** - * A newer version of the SDK family exists, and an update is recommended. - * - * Generated from protobuf enum STALE = 2; - */ - const STALE = 2; - /** - * This version of the SDK is deprecated and will eventually be - * unsupported. - * - * Generated from protobuf enum DEPRECATED = 3; - */ - const DEPRECATED = 3; - /** - * Support for this SDK version has ended and it should no longer be used. - * - * Generated from protobuf enum UNSUPPORTED = 4; - */ - const UNSUPPORTED = 4; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::SUPPORTED => 'SUPPORTED', - self::STALE => 'STALE', - self::DEPRECATED => 'DEPRECATED', - self::UNSUPPORTED => 'UNSUPPORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SdkSupportStatus::class, \Google\Cloud\Dataflow\V1beta3\SdkVersion_SdkSupportStatus::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ShuffleMode.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ShuffleMode.php deleted file mode 100644 index 6f9feb2542a1..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/ShuffleMode.php +++ /dev/null @@ -1,64 +0,0 @@ -google.dataflow.v1beta3.ShuffleMode - */ -class ShuffleMode -{ - /** - * Shuffle mode information is not available. - * - * Generated from protobuf enum SHUFFLE_MODE_UNSPECIFIED = 0; - */ - const SHUFFLE_MODE_UNSPECIFIED = 0; - /** - * Shuffle is done on the worker VMs. - * - * Generated from protobuf enum VM_BASED = 1; - */ - const VM_BASED = 1; - /** - * Shuffle is done on the service side. - * - * Generated from protobuf enum SERVICE_BASED = 2; - */ - const SERVICE_BASED = 2; - - private static $valueToName = [ - self::SHUFFLE_MODE_UNSPECIFIED => 'SHUFFLE_MODE_UNSPECIFIED', - self::VM_BASED => 'VM_BASED', - self::SERVICE_BASED => 'SERVICE_BASED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Snapshot.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Snapshot.php deleted file mode 100644 index 54a653bb1013..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Snapshot.php +++ /dev/null @@ -1,397 +0,0 @@ -google.dataflow.v1beta3.Snapshot - */ -class Snapshot extends \Google\Protobuf\Internal\Message -{ - /** - * The unique ID of this snapshot. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The project this snapshot belongs to. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * The job this snapshot was created from. - * - * Generated from protobuf field string source_job_id = 3; - */ - protected $source_job_id = ''; - /** - * The time this snapshot was created. - * - * Generated from protobuf field .google.protobuf.Timestamp creation_time = 4; - */ - protected $creation_time = null; - /** - * The time after which this snapshot will be automatically deleted. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 5; - */ - protected $ttl = null; - /** - * State of the snapshot. - * - * Generated from protobuf field .google.dataflow.v1beta3.SnapshotState state = 6; - */ - protected $state = 0; - /** - * Pub/Sub snapshot metadata. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; - */ - private $pubsub_metadata; - /** - * User specified description of the snapshot. Maybe empty. - * - * Generated from protobuf field string description = 8; - */ - protected $description = ''; - /** - * The disk byte size of the snapshot. Only available for snapshots in READY - * state. - * - * Generated from protobuf field int64 disk_size_bytes = 9; - */ - protected $disk_size_bytes = 0; - /** - * Cloud region where this snapshot lives in, e.g., "us-central1". - * - * Generated from protobuf field string region = 10; - */ - protected $region = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The unique ID of this snapshot. - * @type string $project_id - * The project this snapshot belongs to. - * @type string $source_job_id - * The job this snapshot was created from. - * @type \Google\Protobuf\Timestamp $creation_time - * The time this snapshot was created. - * @type \Google\Protobuf\Duration $ttl - * The time after which this snapshot will be automatically deleted. - * @type int $state - * State of the snapshot. - * @type array<\Google\Cloud\Dataflow\V1beta3\PubsubSnapshotMetadata>|\Google\Protobuf\Internal\RepeatedField $pubsub_metadata - * Pub/Sub snapshot metadata. - * @type string $description - * User specified description of the snapshot. Maybe empty. - * @type int|string $disk_size_bytes - * The disk byte size of the snapshot. Only available for snapshots in READY - * state. - * @type string $region - * Cloud region where this snapshot lives in, e.g., "us-central1". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Snapshots::initOnce(); - parent::__construct($data); - } - - /** - * The unique ID of this snapshot. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The unique ID of this snapshot. - * - * 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 project this snapshot belongs to. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project this snapshot belongs to. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The job this snapshot was created from. - * - * Generated from protobuf field string source_job_id = 3; - * @return string - */ - public function getSourceJobId() - { - return $this->source_job_id; - } - - /** - * The job this snapshot was created from. - * - * Generated from protobuf field string source_job_id = 3; - * @param string $var - * @return $this - */ - public function setSourceJobId($var) - { - GPBUtil::checkString($var, True); - $this->source_job_id = $var; - - return $this; - } - - /** - * The time this snapshot was created. - * - * Generated from protobuf field .google.protobuf.Timestamp creation_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreationTime() - { - return $this->creation_time; - } - - public function hasCreationTime() - { - return isset($this->creation_time); - } - - public function clearCreationTime() - { - unset($this->creation_time); - } - - /** - * The time this snapshot was created. - * - * Generated from protobuf field .google.protobuf.Timestamp creation_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->creation_time = $var; - - return $this; - } - - /** - * The time after which this snapshot will be automatically deleted. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 5; - * @return \Google\Protobuf\Duration|null - */ - public function getTtl() - { - return $this->ttl; - } - - public function hasTtl() - { - return isset($this->ttl); - } - - public function clearTtl() - { - unset($this->ttl); - } - - /** - * The time after which this snapshot will be automatically deleted. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 5; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTtl($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->ttl = $var; - - return $this; - } - - /** - * State of the snapshot. - * - * Generated from protobuf field .google.dataflow.v1beta3.SnapshotState state = 6; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of the snapshot. - * - * Generated from protobuf field .google.dataflow.v1beta3.SnapshotState state = 6; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\SnapshotState::class); - $this->state = $var; - - return $this; - } - - /** - * Pub/Sub snapshot metadata. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPubsubMetadata() - { - return $this->pubsub_metadata; - } - - /** - * Pub/Sub snapshot metadata. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.PubsubSnapshotMetadata pubsub_metadata = 7; - * @param array<\Google\Cloud\Dataflow\V1beta3\PubsubSnapshotMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPubsubMetadata($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\PubsubSnapshotMetadata::class); - $this->pubsub_metadata = $arr; - - return $this; - } - - /** - * User specified description of the snapshot. Maybe empty. - * - * Generated from protobuf field string description = 8; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * User specified description of the snapshot. Maybe empty. - * - * Generated from protobuf field string description = 8; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The disk byte size of the snapshot. Only available for snapshots in READY - * state. - * - * Generated from protobuf field int64 disk_size_bytes = 9; - * @return int|string - */ - public function getDiskSizeBytes() - { - return $this->disk_size_bytes; - } - - /** - * The disk byte size of the snapshot. Only available for snapshots in READY - * state. - * - * Generated from protobuf field int64 disk_size_bytes = 9; - * @param int|string $var - * @return $this - */ - public function setDiskSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->disk_size_bytes = $var; - - return $this; - } - - /** - * Cloud region where this snapshot lives in, e.g., "us-central1". - * - * Generated from protobuf field string region = 10; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Cloud region where this snapshot lives in, e.g., "us-central1". - * - * Generated from protobuf field string region = 10; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SnapshotJobRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SnapshotJobRequest.php deleted file mode 100644 index 551d6dcfd79b..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SnapshotJobRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.dataflow.v1beta3.SnapshotJobRequest - */ -class SnapshotJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The project which owns the job to be snapshotted. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The job to be snapshotted. - * - * Generated from protobuf field string job_id = 2; - */ - protected $job_id = ''; - /** - * TTL for the snapshot. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 3; - */ - protected $ttl = null; - /** - * The location that contains this job. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - /** - * If true, perform snapshots for sources which support this. - * - * Generated from protobuf field bool snapshot_sources = 5; - */ - protected $snapshot_sources = false; - /** - * User specified description of the snapshot. Maybe empty. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The project which owns the job to be snapshotted. - * @type string $job_id - * The job to be snapshotted. - * @type \Google\Protobuf\Duration $ttl - * TTL for the snapshot. - * @type string $location - * The location that contains this job. - * @type bool $snapshot_sources - * If true, perform snapshots for sources which support this. - * @type string $description - * User specified description of the snapshot. Maybe empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The project which owns the job to be snapshotted. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project which owns the job to be snapshotted. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The job to be snapshotted. - * - * Generated from protobuf field string job_id = 2; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The job to be snapshotted. - * - * Generated from protobuf field string job_id = 2; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * TTL for the snapshot. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getTtl() - { - return $this->ttl; - } - - public function hasTtl() - { - return isset($this->ttl); - } - - public function clearTtl() - { - unset($this->ttl); - } - - /** - * TTL for the snapshot. - * - * Generated from protobuf field .google.protobuf.Duration ttl = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTtl($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->ttl = $var; - - return $this; - } - - /** - * The location that contains this job. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The location that contains this job. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * If true, perform snapshots for sources which support this. - * - * Generated from protobuf field bool snapshot_sources = 5; - * @return bool - */ - public function getSnapshotSources() - { - return $this->snapshot_sources; - } - - /** - * If true, perform snapshots for sources which support this. - * - * Generated from protobuf field bool snapshot_sources = 5; - * @param bool $var - * @return $this - */ - public function setSnapshotSources($var) - { - GPBUtil::checkBool($var); - $this->snapshot_sources = $var; - - return $this; - } - - /** - * User specified description of the snapshot. Maybe empty. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * User specified description of the snapshot. Maybe empty. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SnapshotState.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SnapshotState.php deleted file mode 100644 index 0a2e10b8e1c5..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SnapshotState.php +++ /dev/null @@ -1,83 +0,0 @@ -google.dataflow.v1beta3.SnapshotState - */ -class SnapshotState -{ - /** - * Unknown state. - * - * Generated from protobuf enum UNKNOWN_SNAPSHOT_STATE = 0; - */ - const UNKNOWN_SNAPSHOT_STATE = 0; - /** - * Snapshot intent to create has been persisted, snapshotting of state has not - * yet started. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * Snapshotting is being performed. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * Snapshot has been created and is ready to be used. - * - * Generated from protobuf enum READY = 3; - */ - const READY = 3; - /** - * Snapshot failed to be created. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - /** - * Snapshot has been deleted. - * - * Generated from protobuf enum DELETED = 5; - */ - const DELETED = 5; - - private static $valueToName = [ - self::UNKNOWN_SNAPSHOT_STATE => 'UNKNOWN_SNAPSHOT_STATE', - self::PENDING => 'PENDING', - self::RUNNING => 'RUNNING', - self::READY => 'READY', - 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); - } -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SpannerIODetails.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SpannerIODetails.php deleted file mode 100644 index 62b48f08932e..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/SpannerIODetails.php +++ /dev/null @@ -1,135 +0,0 @@ -google.dataflow.v1beta3.SpannerIODetails - */ -class SpannerIODetails extends \Google\Protobuf\Internal\Message -{ - /** - * ProjectId accessed in the connection. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * InstanceId accessed in the connection. - * - * Generated from protobuf field string instance_id = 2; - */ - protected $instance_id = ''; - /** - * DatabaseId accessed in the connection. - * - * Generated from protobuf field string database_id = 3; - */ - protected $database_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * ProjectId accessed in the connection. - * @type string $instance_id - * InstanceId accessed in the connection. - * @type string $database_id - * DatabaseId accessed in the connection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * ProjectId accessed in the connection. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * ProjectId accessed in the connection. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * InstanceId accessed in the connection. - * - * Generated from protobuf field string instance_id = 2; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * InstanceId accessed in the connection. - * - * Generated from protobuf field string instance_id = 2; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * DatabaseId accessed in the connection. - * - * Generated from protobuf field string database_id = 3; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * DatabaseId accessed in the connection. - * - * Generated from protobuf field string database_id = 3; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StageExecutionDetails.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StageExecutionDetails.php deleted file mode 100644 index bc7ff2169c1b..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StageExecutionDetails.php +++ /dev/null @@ -1,109 +0,0 @@ -google.dataflow.v1beta3.StageExecutionDetails - */ -class StageExecutionDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Workers that have done work on the stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.WorkerDetails workers = 1; - */ - private $workers; - /** - * If present, this response does not contain all requested tasks. To obtain - * the next page of results, repeat the request with page_token set to this - * value. - * - * 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\Dataflow\V1beta3\WorkerDetails>|\Google\Protobuf\Internal\RepeatedField $workers - * Workers that have done work on the stage. - * @type string $next_page_token - * If present, this response does not contain all requested tasks. To obtain - * the next page of results, repeat the request with page_token set to this - * value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * Workers that have done work on the stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.WorkerDetails workers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWorkers() - { - return $this->workers; - } - - /** - * Workers that have done work on the stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.WorkerDetails workers = 1; - * @param array<\Google\Cloud\Dataflow\V1beta3\WorkerDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWorkers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\WorkerDetails::class); - $this->workers = $arr; - - return $this; - } - - /** - * If present, this response does not contain all requested tasks. To obtain - * the next page of results, repeat the request with page_token set to this - * value. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If present, this response does not contain all requested tasks. To obtain - * the next page of results, repeat the request with page_token set to this - * value. - * - * 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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StageSummary.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StageSummary.php deleted file mode 100644 index 309520e37e5b..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StageSummary.php +++ /dev/null @@ -1,279 +0,0 @@ -google.dataflow.v1beta3.StageSummary - */ -class StageSummary extends \Google\Protobuf\Internal\Message -{ - /** - * ID of this stage - * - * Generated from protobuf field string stage_id = 1; - */ - protected $stage_id = ''; - /** - * State of this stage. - * - * Generated from protobuf field .google.dataflow.v1beta3.ExecutionState state = 2; - */ - protected $state = 0; - /** - * Start time of this stage. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - */ - protected $start_time = null; - /** - * End time of this stage. - * If the work item is completed, this is the actual end time of the stage. - * Otherwise, it is the predicted end time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - */ - protected $end_time = null; - /** - * Progress for this stage. - * Only applicable to Batch jobs. - * - * Generated from protobuf field .google.dataflow.v1beta3.ProgressTimeseries progress = 5; - */ - protected $progress = null; - /** - * Metrics for this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.MetricUpdate metrics = 6; - */ - private $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $stage_id - * ID of this stage - * @type int $state - * State of this stage. - * @type \Google\Protobuf\Timestamp $start_time - * Start time of this stage. - * @type \Google\Protobuf\Timestamp $end_time - * End time of this stage. - * If the work item is completed, this is the actual end time of the stage. - * Otherwise, it is the predicted end time. - * @type \Google\Cloud\Dataflow\V1beta3\ProgressTimeseries $progress - * Progress for this stage. - * Only applicable to Batch jobs. - * @type array<\Google\Cloud\Dataflow\V1beta3\MetricUpdate>|\Google\Protobuf\Internal\RepeatedField $metrics - * Metrics for this stage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * ID of this stage - * - * Generated from protobuf field string stage_id = 1; - * @return string - */ - public function getStageId() - { - return $this->stage_id; - } - - /** - * ID of this stage - * - * Generated from protobuf field string stage_id = 1; - * @param string $var - * @return $this - */ - public function setStageId($var) - { - GPBUtil::checkString($var, True); - $this->stage_id = $var; - - return $this; - } - - /** - * State of this stage. - * - * Generated from protobuf field .google.dataflow.v1beta3.ExecutionState state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of this stage. - * - * Generated from protobuf field .google.dataflow.v1beta3.ExecutionState state = 2; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\ExecutionState::class); - $this->state = $var; - - return $this; - } - - /** - * Start time of this stage. - * - * 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); - } - - /** - * Start time of this stage. - * - * 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; - } - - /** - * End time of this stage. - * If the work item is completed, this is the actual end time of the stage. - * Otherwise, it is the predicted end time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * End time of this stage. - * If the work item is completed, this is the actual end time of the stage. - * Otherwise, it is the predicted end time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Progress for this stage. - * Only applicable to Batch jobs. - * - * Generated from protobuf field .google.dataflow.v1beta3.ProgressTimeseries progress = 5; - * @return \Google\Cloud\Dataflow\V1beta3\ProgressTimeseries|null - */ - public function getProgress() - { - return $this->progress; - } - - public function hasProgress() - { - return isset($this->progress); - } - - public function clearProgress() - { - unset($this->progress); - } - - /** - * Progress for this stage. - * Only applicable to Batch jobs. - * - * Generated from protobuf field .google.dataflow.v1beta3.ProgressTimeseries progress = 5; - * @param \Google\Cloud\Dataflow\V1beta3\ProgressTimeseries $var - * @return $this - */ - public function setProgress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\ProgressTimeseries::class); - $this->progress = $var; - - return $this; - } - - /** - * Metrics for this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.MetricUpdate metrics = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Metrics for this stage. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.MetricUpdate metrics = 6; - * @param array<\Google\Cloud\Dataflow\V1beta3\MetricUpdate>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\MetricUpdate::class); - $this->metrics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StateFamilyConfig.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StateFamilyConfig.php deleted file mode 100644 index 530224f6bceb..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StateFamilyConfig.php +++ /dev/null @@ -1,101 +0,0 @@ -google.dataflow.v1beta3.StateFamilyConfig - */ -class StateFamilyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The state family value. - * - * Generated from protobuf field string state_family = 1; - */ - protected $state_family = ''; - /** - * If true, this family corresponds to a read operation. - * - * Generated from protobuf field bool is_read = 2; - */ - protected $is_read = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $state_family - * The state family value. - * @type bool $is_read - * If true, this family corresponds to a read operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * The state family value. - * - * Generated from protobuf field string state_family = 1; - * @return string - */ - public function getStateFamily() - { - return $this->state_family; - } - - /** - * The state family value. - * - * Generated from protobuf field string state_family = 1; - * @param string $var - * @return $this - */ - public function setStateFamily($var) - { - GPBUtil::checkString($var, True); - $this->state_family = $var; - - return $this; - } - - /** - * If true, this family corresponds to a read operation. - * - * Generated from protobuf field bool is_read = 2; - * @return bool - */ - public function getIsRead() - { - return $this->is_read; - } - - /** - * If true, this family corresponds to a read operation. - * - * Generated from protobuf field bool is_read = 2; - * @param bool $var - * @return $this - */ - public function setIsRead($var) - { - GPBUtil::checkBool($var); - $this->is_read = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Step.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Step.php deleted file mode 100644 index b1812ca44bd0..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/Step.php +++ /dev/null @@ -1,173 +0,0 @@ -google.dataflow.v1beta3.Step - */ -class Step extends \Google\Protobuf\Internal\Message -{ - /** - * The kind of step in the Cloud Dataflow job. - * - * Generated from protobuf field string kind = 1; - */ - protected $kind = ''; - /** - * The name that identifies the step. This must be unique for each - * step with respect to all other steps in the Cloud Dataflow job. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - /** - * Named properties associated with the step. Each kind of - * predefined step has its own required set of properties. - * Must be provided on Create. Only retrieved with JOB_VIEW_ALL. - * - * Generated from protobuf field .google.protobuf.Struct properties = 3; - */ - protected $properties = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kind - * The kind of step in the Cloud Dataflow job. - * @type string $name - * The name that identifies the step. This must be unique for each - * step with respect to all other steps in the Cloud Dataflow job. - * @type \Google\Protobuf\Struct $properties - * Named properties associated with the step. Each kind of - * predefined step has its own required set of properties. - * Must be provided on Create. Only retrieved with JOB_VIEW_ALL. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The kind of step in the Cloud Dataflow job. - * - * Generated from protobuf field string kind = 1; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * The kind of step in the Cloud Dataflow job. - * - * Generated from protobuf field string kind = 1; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * The name that identifies the step. This must be unique for each - * step with respect to all other steps in the Cloud Dataflow job. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name that identifies the step. This must be unique for each - * step with respect to all other steps in the Cloud Dataflow job. - * - * 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; - } - - /** - * Named properties associated with the step. Each kind of - * predefined step has its own required set of properties. - * Must be provided on Create. Only retrieved with JOB_VIEW_ALL. - * - * Generated from protobuf field .google.protobuf.Struct properties = 3; - * @return \Google\Protobuf\Struct|null - */ - public function getProperties() - { - return $this->properties; - } - - public function hasProperties() - { - return isset($this->properties); - } - - public function clearProperties() - { - unset($this->properties); - } - - /** - * Named properties associated with the step. Each kind of - * predefined step has its own required set of properties. - * Must be provided on Create. Only retrieved with JOB_VIEW_ALL. - * - * Generated from protobuf field .google.protobuf.Struct properties = 3; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setProperties($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->properties = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamLocation.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamLocation.php deleted file mode 100644 index cccc85051046..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamLocation.php +++ /dev/null @@ -1,178 +0,0 @@ -google.dataflow.v1beta3.StreamLocation - */ -class StreamLocation extends \Google\Protobuf\Internal\Message -{ - protected $location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dataflow\V1beta3\StreamingStageLocation $streaming_stage_location - * The stream is part of another computation within the current - * streaming Dataflow job. - * @type \Google\Cloud\Dataflow\V1beta3\PubsubLocation $pubsub_location - * The stream is a pubsub stream. - * @type \Google\Cloud\Dataflow\V1beta3\StreamingSideInputLocation $side_input_location - * The stream is a streaming side input. - * @type \Google\Cloud\Dataflow\V1beta3\CustomSourceLocation $custom_source_location - * The stream is a custom source. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * The stream is part of another computation within the current - * streaming Dataflow job. - * - * Generated from protobuf field .google.dataflow.v1beta3.StreamingStageLocation streaming_stage_location = 1; - * @return \Google\Cloud\Dataflow\V1beta3\StreamingStageLocation|null - */ - public function getStreamingStageLocation() - { - return $this->readOneof(1); - } - - public function hasStreamingStageLocation() - { - return $this->hasOneof(1); - } - - /** - * The stream is part of another computation within the current - * streaming Dataflow job. - * - * Generated from protobuf field .google.dataflow.v1beta3.StreamingStageLocation streaming_stage_location = 1; - * @param \Google\Cloud\Dataflow\V1beta3\StreamingStageLocation $var - * @return $this - */ - public function setStreamingStageLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\StreamingStageLocation::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The stream is a pubsub stream. - * - * Generated from protobuf field .google.dataflow.v1beta3.PubsubLocation pubsub_location = 2; - * @return \Google\Cloud\Dataflow\V1beta3\PubsubLocation|null - */ - public function getPubsubLocation() - { - return $this->readOneof(2); - } - - public function hasPubsubLocation() - { - return $this->hasOneof(2); - } - - /** - * The stream is a pubsub stream. - * - * Generated from protobuf field .google.dataflow.v1beta3.PubsubLocation pubsub_location = 2; - * @param \Google\Cloud\Dataflow\V1beta3\PubsubLocation $var - * @return $this - */ - public function setPubsubLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\PubsubLocation::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The stream is a streaming side input. - * - * Generated from protobuf field .google.dataflow.v1beta3.StreamingSideInputLocation side_input_location = 3; - * @return \Google\Cloud\Dataflow\V1beta3\StreamingSideInputLocation|null - */ - public function getSideInputLocation() - { - return $this->readOneof(3); - } - - public function hasSideInputLocation() - { - return $this->hasOneof(3); - } - - /** - * The stream is a streaming side input. - * - * Generated from protobuf field .google.dataflow.v1beta3.StreamingSideInputLocation side_input_location = 3; - * @param \Google\Cloud\Dataflow\V1beta3\StreamingSideInputLocation $var - * @return $this - */ - public function setSideInputLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\StreamingSideInputLocation::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The stream is a custom source. - * - * Generated from protobuf field .google.dataflow.v1beta3.CustomSourceLocation custom_source_location = 4; - * @return \Google\Cloud\Dataflow\V1beta3\CustomSourceLocation|null - */ - public function getCustomSourceLocation() - { - return $this->readOneof(4); - } - - public function hasCustomSourceLocation() - { - return $this->hasOneof(4); - } - - /** - * The stream is a custom source. - * - * Generated from protobuf field .google.dataflow.v1beta3.CustomSourceLocation custom_source_location = 4; - * @param \Google\Cloud\Dataflow\V1beta3\CustomSourceLocation $var - * @return $this - */ - public function setCustomSourceLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\CustomSourceLocation::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getLocation() - { - return $this->whichOneof("location"); - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingApplianceSnapshotConfig.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingApplianceSnapshotConfig.php deleted file mode 100644 index 2cb32a367395..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingApplianceSnapshotConfig.php +++ /dev/null @@ -1,101 +0,0 @@ -google.dataflow.v1beta3.StreamingApplianceSnapshotConfig - */ -class StreamingApplianceSnapshotConfig extends \Google\Protobuf\Internal\Message -{ - /** - * If set, indicates the snapshot id for the snapshot being performed. - * - * Generated from protobuf field string snapshot_id = 1; - */ - protected $snapshot_id = ''; - /** - * Indicates which endpoint is used to import appliance state. - * - * Generated from protobuf field string import_state_endpoint = 2; - */ - protected $import_state_endpoint = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $snapshot_id - * If set, indicates the snapshot id for the snapshot being performed. - * @type string $import_state_endpoint - * Indicates which endpoint is used to import appliance state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * If set, indicates the snapshot id for the snapshot being performed. - * - * Generated from protobuf field string snapshot_id = 1; - * @return string - */ - public function getSnapshotId() - { - return $this->snapshot_id; - } - - /** - * If set, indicates the snapshot id for the snapshot being performed. - * - * Generated from protobuf field string snapshot_id = 1; - * @param string $var - * @return $this - */ - public function setSnapshotId($var) - { - GPBUtil::checkString($var, True); - $this->snapshot_id = $var; - - return $this; - } - - /** - * Indicates which endpoint is used to import appliance state. - * - * Generated from protobuf field string import_state_endpoint = 2; - * @return string - */ - public function getImportStateEndpoint() - { - return $this->import_state_endpoint; - } - - /** - * Indicates which endpoint is used to import appliance state. - * - * Generated from protobuf field string import_state_endpoint = 2; - * @param string $var - * @return $this - */ - public function setImportStateEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->import_state_endpoint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingComputationRanges.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingComputationRanges.php deleted file mode 100644 index 132aeaf5df3c..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingComputationRanges.php +++ /dev/null @@ -1,102 +0,0 @@ -google.dataflow.v1beta3.StreamingComputationRanges - */ -class StreamingComputationRanges extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the computation. - * - * Generated from protobuf field string computation_id = 1; - */ - protected $computation_id = ''; - /** - * Data disk assignments for ranges from this computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.KeyRangeDataDiskAssignment range_assignments = 2; - */ - private $range_assignments; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $computation_id - * The ID of the computation. - * @type array<\Google\Cloud\Dataflow\V1beta3\KeyRangeDataDiskAssignment>|\Google\Protobuf\Internal\RepeatedField $range_assignments - * Data disk assignments for ranges from this computation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the computation. - * - * Generated from protobuf field string computation_id = 1; - * @return string - */ - public function getComputationId() - { - return $this->computation_id; - } - - /** - * The ID of the computation. - * - * Generated from protobuf field string computation_id = 1; - * @param string $var - * @return $this - */ - public function setComputationId($var) - { - GPBUtil::checkString($var, True); - $this->computation_id = $var; - - return $this; - } - - /** - * Data disk assignments for ranges from this computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.KeyRangeDataDiskAssignment range_assignments = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRangeAssignments() - { - return $this->range_assignments; - } - - /** - * Data disk assignments for ranges from this computation. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.KeyRangeDataDiskAssignment range_assignments = 2; - * @param array<\Google\Cloud\Dataflow\V1beta3\KeyRangeDataDiskAssignment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRangeAssignments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\KeyRangeDataDiskAssignment::class); - $this->range_assignments = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingSideInputLocation.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingSideInputLocation.php deleted file mode 100644 index a4179ca4236b..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingSideInputLocation.php +++ /dev/null @@ -1,101 +0,0 @@ -google.dataflow.v1beta3.StreamingSideInputLocation - */ -class StreamingSideInputLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Identifies the particular side input within the streaming Dataflow job. - * - * Generated from protobuf field string tag = 1; - */ - protected $tag = ''; - /** - * Identifies the state family where this side input is stored. - * - * Generated from protobuf field string state_family = 2; - */ - protected $state_family = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $tag - * Identifies the particular side input within the streaming Dataflow job. - * @type string $state_family - * Identifies the state family where this side input is stored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * Identifies the particular side input within the streaming Dataflow job. - * - * Generated from protobuf field string tag = 1; - * @return string - */ - public function getTag() - { - return $this->tag; - } - - /** - * Identifies the particular side input within the streaming Dataflow job. - * - * Generated from protobuf field string tag = 1; - * @param string $var - * @return $this - */ - public function setTag($var) - { - GPBUtil::checkString($var, True); - $this->tag = $var; - - return $this; - } - - /** - * Identifies the state family where this side input is stored. - * - * Generated from protobuf field string state_family = 2; - * @return string - */ - public function getStateFamily() - { - return $this->state_family; - } - - /** - * Identifies the state family where this side input is stored. - * - * Generated from protobuf field string state_family = 2; - * @param string $var - * @return $this - */ - public function setStateFamily($var) - { - GPBUtil::checkString($var, True); - $this->state_family = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingStageLocation.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingStageLocation.php deleted file mode 100644 index a6b9abb8c3d4..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StreamingStageLocation.php +++ /dev/null @@ -1,72 +0,0 @@ -google.dataflow.v1beta3.StreamingStageLocation - */ -class StreamingStageLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Identifies the particular stream within the streaming Dataflow - * job. - * - * Generated from protobuf field string stream_id = 1; - */ - protected $stream_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $stream_id - * Identifies the particular stream within the streaming Dataflow - * job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * Identifies the particular stream within the streaming Dataflow - * job. - * - * Generated from protobuf field string stream_id = 1; - * @return string - */ - public function getStreamId() - { - return $this->stream_id; - } - - /** - * Identifies the particular stream within the streaming Dataflow - * job. - * - * Generated from protobuf field string stream_id = 1; - * @param string $var - * @return $this - */ - public function setStreamId($var) - { - GPBUtil::checkString($var, True); - $this->stream_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StructuredMessage.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StructuredMessage.php deleted file mode 100644 index acfb9370c64d..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StructuredMessage.php +++ /dev/null @@ -1,141 +0,0 @@ -google.dataflow.v1beta3.StructuredMessage - */ -class StructuredMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Human-readable version of message. - * - * Generated from protobuf field string message_text = 1; - */ - protected $message_text = ''; - /** - * Identifier for this message type. Used by external systems to - * internationalize or personalize message. - * - * Generated from protobuf field string message_key = 2; - */ - protected $message_key = ''; - /** - * The structured data associated with this message. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message_text - * Human-readable version of message. - * @type string $message_key - * Identifier for this message type. Used by external systems to - * internationalize or personalize message. - * @type array<\Google\Cloud\Dataflow\V1beta3\StructuredMessage\Parameter>|\Google\Protobuf\Internal\RepeatedField $parameters - * The structured data associated with this message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Messages::initOnce(); - parent::__construct($data); - } - - /** - * Human-readable version of message. - * - * Generated from protobuf field string message_text = 1; - * @return string - */ - public function getMessageText() - { - return $this->message_text; - } - - /** - * Human-readable version of message. - * - * Generated from protobuf field string message_text = 1; - * @param string $var - * @return $this - */ - public function setMessageText($var) - { - GPBUtil::checkString($var, True); - $this->message_text = $var; - - return $this; - } - - /** - * Identifier for this message type. Used by external systems to - * internationalize or personalize message. - * - * Generated from protobuf field string message_key = 2; - * @return string - */ - public function getMessageKey() - { - return $this->message_key; - } - - /** - * Identifier for this message type. Used by external systems to - * internationalize or personalize message. - * - * Generated from protobuf field string message_key = 2; - * @param string $var - * @return $this - */ - public function setMessageKey($var) - { - GPBUtil::checkString($var, True); - $this->message_key = $var; - - return $this; - } - - /** - * The structured data associated with this message. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * The structured data associated with this message. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.StructuredMessage.Parameter parameters = 3; - * @param array<\Google\Cloud\Dataflow\V1beta3\StructuredMessage\Parameter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\StructuredMessage\Parameter::class); - $this->parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StructuredMessage/Parameter.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StructuredMessage/Parameter.php deleted file mode 100644 index a54444fff4ff..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/StructuredMessage/Parameter.php +++ /dev/null @@ -1,114 +0,0 @@ -google.dataflow.v1beta3.StructuredMessage.Parameter - */ -class Parameter extends \Google\Protobuf\Internal\Message -{ - /** - * Key or name for this parameter. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * Value for this parameter. - * - * Generated from protobuf field .google.protobuf.Value value = 2; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Key or name for this parameter. - * @type \Google\Protobuf\Value $value - * Value for this parameter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Messages::initOnce(); - parent::__construct($data); - } - - /** - * Key or name for this parameter. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Key or name for this parameter. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Value for this parameter. - * - * 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 for this parameter. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Parameter::class, \Google\Cloud\Dataflow\V1beta3\StructuredMessage_Parameter::class); - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TaskRunnerSettings.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TaskRunnerSettings.php deleted file mode 100644 index fd9eca48d255..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TaskRunnerSettings.php +++ /dev/null @@ -1,769 +0,0 @@ -google.dataflow.v1beta3.TaskRunnerSettings - */ -class TaskRunnerSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The UNIX user ID on the worker VM to use for tasks launched by - * taskrunner; e.g. "root". - * - * Generated from protobuf field string task_user = 1; - */ - protected $task_user = ''; - /** - * The UNIX group ID on the worker VM to use for tasks launched by - * taskrunner; e.g. "wheel". - * - * Generated from protobuf field string task_group = 2; - */ - protected $task_group = ''; - /** - * The OAuth2 scopes to be requested by the taskrunner in order to - * access the Cloud Dataflow API. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - */ - private $oauth_scopes; - /** - * The base URL for the taskrunner to use when accessing Google Cloud APIs. - * When workers access Google Cloud APIs, they logically do so via - * relative URLs. If this field is specified, it supplies the base - * URL to use for resolving these relative URLs. The normative - * algorithm used is defined by RFC 1808, "Relative Uniform Resource - * Locators". - * If not specified, the default value is "http://www.googleapis.com/" - * - * Generated from protobuf field string base_url = 4; - */ - protected $base_url = ''; - /** - * The API version of endpoint, e.g. "v1b3" - * - * Generated from protobuf field string dataflow_api_version = 5; - */ - protected $dataflow_api_version = ''; - /** - * The settings to pass to the parallel worker harness. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerSettings parallel_worker_settings = 6; - */ - protected $parallel_worker_settings = null; - /** - * The location on the worker for task-specific subdirectories. - * - * Generated from protobuf field string base_task_dir = 7; - */ - protected $base_task_dir = ''; - /** - * Whether to continue taskrunner if an exception is hit. - * - * Generated from protobuf field bool continue_on_exception = 8; - */ - protected $continue_on_exception = false; - /** - * Whether to send taskrunner log info to Google Compute Engine VM serial - * console. - * - * Generated from protobuf field bool log_to_serialconsole = 9; - */ - protected $log_to_serialconsole = false; - /** - * Whether to also send taskrunner log info to stderr. - * - * Generated from protobuf field bool alsologtostderr = 10; - */ - protected $alsologtostderr = false; - /** - * Indicates where to put logs. If this is not specified, the logs - * will not be uploaded. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string log_upload_location = 11; - */ - protected $log_upload_location = ''; - /** - * The directory on the VM to store logs. - * - * Generated from protobuf field string log_dir = 12; - */ - protected $log_dir = ''; - /** - * The prefix of the resources the taskrunner should use for - * temporary storage. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string temp_storage_prefix = 13; - */ - protected $temp_storage_prefix = ''; - /** - * The command to launch the worker harness. - * - * Generated from protobuf field string harness_command = 14; - */ - protected $harness_command = ''; - /** - * The file to store the workflow in. - * - * Generated from protobuf field string workflow_file_name = 15; - */ - protected $workflow_file_name = ''; - /** - * The file to store preprocessing commands in. - * - * Generated from protobuf field string commandlines_file_name = 16; - */ - protected $commandlines_file_name = ''; - /** - * The ID string of the VM. - * - * Generated from protobuf field string vm_id = 17; - */ - protected $vm_id = ''; - /** - * The suggested backend language. - * - * Generated from protobuf field string language_hint = 18; - */ - protected $language_hint = ''; - /** - * The streaming worker main class name. - * - * Generated from protobuf field string streaming_worker_main_class = 19; - */ - protected $streaming_worker_main_class = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $task_user - * The UNIX user ID on the worker VM to use for tasks launched by - * taskrunner; e.g. "root". - * @type string $task_group - * The UNIX group ID on the worker VM to use for tasks launched by - * taskrunner; e.g. "wheel". - * @type array|\Google\Protobuf\Internal\RepeatedField $oauth_scopes - * The OAuth2 scopes to be requested by the taskrunner in order to - * access the Cloud Dataflow API. - * @type string $base_url - * The base URL for the taskrunner to use when accessing Google Cloud APIs. - * When workers access Google Cloud APIs, they logically do so via - * relative URLs. If this field is specified, it supplies the base - * URL to use for resolving these relative URLs. The normative - * algorithm used is defined by RFC 1808, "Relative Uniform Resource - * Locators". - * If not specified, the default value is "http://www.googleapis.com/" - * @type string $dataflow_api_version - * The API version of endpoint, e.g. "v1b3" - * @type \Google\Cloud\Dataflow\V1beta3\WorkerSettings $parallel_worker_settings - * The settings to pass to the parallel worker harness. - * @type string $base_task_dir - * The location on the worker for task-specific subdirectories. - * @type bool $continue_on_exception - * Whether to continue taskrunner if an exception is hit. - * @type bool $log_to_serialconsole - * Whether to send taskrunner log info to Google Compute Engine VM serial - * console. - * @type bool $alsologtostderr - * Whether to also send taskrunner log info to stderr. - * @type string $log_upload_location - * Indicates where to put logs. If this is not specified, the logs - * will not be uploaded. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * @type string $log_dir - * The directory on the VM to store logs. - * @type string $temp_storage_prefix - * The prefix of the resources the taskrunner should use for - * temporary storage. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * @type string $harness_command - * The command to launch the worker harness. - * @type string $workflow_file_name - * The file to store the workflow in. - * @type string $commandlines_file_name - * The file to store preprocessing commands in. - * @type string $vm_id - * The ID string of the VM. - * @type string $language_hint - * The suggested backend language. - * @type string $streaming_worker_main_class - * The streaming worker main class name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Environment::initOnce(); - parent::__construct($data); - } - - /** - * The UNIX user ID on the worker VM to use for tasks launched by - * taskrunner; e.g. "root". - * - * Generated from protobuf field string task_user = 1; - * @return string - */ - public function getTaskUser() - { - return $this->task_user; - } - - /** - * The UNIX user ID on the worker VM to use for tasks launched by - * taskrunner; e.g. "root". - * - * Generated from protobuf field string task_user = 1; - * @param string $var - * @return $this - */ - public function setTaskUser($var) - { - GPBUtil::checkString($var, True); - $this->task_user = $var; - - return $this; - } - - /** - * The UNIX group ID on the worker VM to use for tasks launched by - * taskrunner; e.g. "wheel". - * - * Generated from protobuf field string task_group = 2; - * @return string - */ - public function getTaskGroup() - { - return $this->task_group; - } - - /** - * The UNIX group ID on the worker VM to use for tasks launched by - * taskrunner; e.g. "wheel". - * - * Generated from protobuf field string task_group = 2; - * @param string $var - * @return $this - */ - public function setTaskGroup($var) - { - GPBUtil::checkString($var, True); - $this->task_group = $var; - - return $this; - } - - /** - * The OAuth2 scopes to be requested by the taskrunner in order to - * access the Cloud Dataflow API. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOauthScopes() - { - return $this->oauth_scopes; - } - - /** - * The OAuth2 scopes to be requested by the taskrunner in order to - * access the Cloud Dataflow API. - * - * Generated from protobuf field repeated string oauth_scopes = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOauthScopes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->oauth_scopes = $arr; - - return $this; - } - - /** - * The base URL for the taskrunner to use when accessing Google Cloud APIs. - * When workers access Google Cloud APIs, they logically do so via - * relative URLs. If this field is specified, it supplies the base - * URL to use for resolving these relative URLs. The normative - * algorithm used is defined by RFC 1808, "Relative Uniform Resource - * Locators". - * If not specified, the default value is "http://www.googleapis.com/" - * - * Generated from protobuf field string base_url = 4; - * @return string - */ - public function getBaseUrl() - { - return $this->base_url; - } - - /** - * The base URL for the taskrunner to use when accessing Google Cloud APIs. - * When workers access Google Cloud APIs, they logically do so via - * relative URLs. If this field is specified, it supplies the base - * URL to use for resolving these relative URLs. The normative - * algorithm used is defined by RFC 1808, "Relative Uniform Resource - * Locators". - * If not specified, the default value is "http://www.googleapis.com/" - * - * Generated from protobuf field string base_url = 4; - * @param string $var - * @return $this - */ - public function setBaseUrl($var) - { - GPBUtil::checkString($var, True); - $this->base_url = $var; - - return $this; - } - - /** - * The API version of endpoint, e.g. "v1b3" - * - * Generated from protobuf field string dataflow_api_version = 5; - * @return string - */ - public function getDataflowApiVersion() - { - return $this->dataflow_api_version; - } - - /** - * The API version of endpoint, e.g. "v1b3" - * - * Generated from protobuf field string dataflow_api_version = 5; - * @param string $var - * @return $this - */ - public function setDataflowApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->dataflow_api_version = $var; - - return $this; - } - - /** - * The settings to pass to the parallel worker harness. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerSettings parallel_worker_settings = 6; - * @return \Google\Cloud\Dataflow\V1beta3\WorkerSettings|null - */ - public function getParallelWorkerSettings() - { - return $this->parallel_worker_settings; - } - - public function hasParallelWorkerSettings() - { - return isset($this->parallel_worker_settings); - } - - public function clearParallelWorkerSettings() - { - unset($this->parallel_worker_settings); - } - - /** - * The settings to pass to the parallel worker harness. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerSettings parallel_worker_settings = 6; - * @param \Google\Cloud\Dataflow\V1beta3\WorkerSettings $var - * @return $this - */ - public function setParallelWorkerSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\WorkerSettings::class); - $this->parallel_worker_settings = $var; - - return $this; - } - - /** - * The location on the worker for task-specific subdirectories. - * - * Generated from protobuf field string base_task_dir = 7; - * @return string - */ - public function getBaseTaskDir() - { - return $this->base_task_dir; - } - - /** - * The location on the worker for task-specific subdirectories. - * - * Generated from protobuf field string base_task_dir = 7; - * @param string $var - * @return $this - */ - public function setBaseTaskDir($var) - { - GPBUtil::checkString($var, True); - $this->base_task_dir = $var; - - return $this; - } - - /** - * Whether to continue taskrunner if an exception is hit. - * - * Generated from protobuf field bool continue_on_exception = 8; - * @return bool - */ - public function getContinueOnException() - { - return $this->continue_on_exception; - } - - /** - * Whether to continue taskrunner if an exception is hit. - * - * Generated from protobuf field bool continue_on_exception = 8; - * @param bool $var - * @return $this - */ - public function setContinueOnException($var) - { - GPBUtil::checkBool($var); - $this->continue_on_exception = $var; - - return $this; - } - - /** - * Whether to send taskrunner log info to Google Compute Engine VM serial - * console. - * - * Generated from protobuf field bool log_to_serialconsole = 9; - * @return bool - */ - public function getLogToSerialconsole() - { - return $this->log_to_serialconsole; - } - - /** - * Whether to send taskrunner log info to Google Compute Engine VM serial - * console. - * - * Generated from protobuf field bool log_to_serialconsole = 9; - * @param bool $var - * @return $this - */ - public function setLogToSerialconsole($var) - { - GPBUtil::checkBool($var); - $this->log_to_serialconsole = $var; - - return $this; - } - - /** - * Whether to also send taskrunner log info to stderr. - * - * Generated from protobuf field bool alsologtostderr = 10; - * @return bool - */ - public function getAlsologtostderr() - { - return $this->alsologtostderr; - } - - /** - * Whether to also send taskrunner log info to stderr. - * - * Generated from protobuf field bool alsologtostderr = 10; - * @param bool $var - * @return $this - */ - public function setAlsologtostderr($var) - { - GPBUtil::checkBool($var); - $this->alsologtostderr = $var; - - return $this; - } - - /** - * Indicates where to put logs. If this is not specified, the logs - * will not be uploaded. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string log_upload_location = 11; - * @return string - */ - public function getLogUploadLocation() - { - return $this->log_upload_location; - } - - /** - * Indicates where to put logs. If this is not specified, the logs - * will not be uploaded. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string log_upload_location = 11; - * @param string $var - * @return $this - */ - public function setLogUploadLocation($var) - { - GPBUtil::checkString($var, True); - $this->log_upload_location = $var; - - return $this; - } - - /** - * The directory on the VM to store logs. - * - * Generated from protobuf field string log_dir = 12; - * @return string - */ - public function getLogDir() - { - return $this->log_dir; - } - - /** - * The directory on the VM to store logs. - * - * Generated from protobuf field string log_dir = 12; - * @param string $var - * @return $this - */ - public function setLogDir($var) - { - GPBUtil::checkString($var, True); - $this->log_dir = $var; - - return $this; - } - - /** - * The prefix of the resources the taskrunner should use for - * temporary storage. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string temp_storage_prefix = 13; - * @return string - */ - public function getTempStoragePrefix() - { - return $this->temp_storage_prefix; - } - - /** - * The prefix of the resources the taskrunner should use for - * temporary storage. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string temp_storage_prefix = 13; - * @param string $var - * @return $this - */ - public function setTempStoragePrefix($var) - { - GPBUtil::checkString($var, True); - $this->temp_storage_prefix = $var; - - return $this; - } - - /** - * The command to launch the worker harness. - * - * Generated from protobuf field string harness_command = 14; - * @return string - */ - public function getHarnessCommand() - { - return $this->harness_command; - } - - /** - * The command to launch the worker harness. - * - * Generated from protobuf field string harness_command = 14; - * @param string $var - * @return $this - */ - public function setHarnessCommand($var) - { - GPBUtil::checkString($var, True); - $this->harness_command = $var; - - return $this; - } - - /** - * The file to store the workflow in. - * - * Generated from protobuf field string workflow_file_name = 15; - * @return string - */ - public function getWorkflowFileName() - { - return $this->workflow_file_name; - } - - /** - * The file to store the workflow in. - * - * Generated from protobuf field string workflow_file_name = 15; - * @param string $var - * @return $this - */ - public function setWorkflowFileName($var) - { - GPBUtil::checkString($var, True); - $this->workflow_file_name = $var; - - return $this; - } - - /** - * The file to store preprocessing commands in. - * - * Generated from protobuf field string commandlines_file_name = 16; - * @return string - */ - public function getCommandlinesFileName() - { - return $this->commandlines_file_name; - } - - /** - * The file to store preprocessing commands in. - * - * Generated from protobuf field string commandlines_file_name = 16; - * @param string $var - * @return $this - */ - public function setCommandlinesFileName($var) - { - GPBUtil::checkString($var, True); - $this->commandlines_file_name = $var; - - return $this; - } - - /** - * The ID string of the VM. - * - * Generated from protobuf field string vm_id = 17; - * @return string - */ - public function getVmId() - { - return $this->vm_id; - } - - /** - * The ID string of the VM. - * - * Generated from protobuf field string vm_id = 17; - * @param string $var - * @return $this - */ - public function setVmId($var) - { - GPBUtil::checkString($var, True); - $this->vm_id = $var; - - return $this; - } - - /** - * The suggested backend language. - * - * Generated from protobuf field string language_hint = 18; - * @return string - */ - public function getLanguageHint() - { - return $this->language_hint; - } - - /** - * The suggested backend language. - * - * Generated from protobuf field string language_hint = 18; - * @param string $var - * @return $this - */ - public function setLanguageHint($var) - { - GPBUtil::checkString($var, True); - $this->language_hint = $var; - - return $this; - } - - /** - * The streaming worker main class name. - * - * Generated from protobuf field string streaming_worker_main_class = 19; - * @return string - */ - public function getStreamingWorkerMainClass() - { - return $this->streaming_worker_main_class; - } - - /** - * The streaming worker main class name. - * - * Generated from protobuf field string streaming_worker_main_class = 19; - * @param string $var - * @return $this - */ - public function setStreamingWorkerMainClass($var) - { - GPBUtil::checkString($var, True); - $this->streaming_worker_main_class = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TeardownPolicy.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TeardownPolicy.php deleted file mode 100644 index 5fab520b1f1a..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TeardownPolicy.php +++ /dev/null @@ -1,71 +0,0 @@ -google.dataflow.v1beta3.TeardownPolicy - */ -class TeardownPolicy -{ - /** - * The teardown policy isn't specified, or is unknown. - * - * Generated from protobuf enum TEARDOWN_POLICY_UNKNOWN = 0; - */ - const TEARDOWN_POLICY_UNKNOWN = 0; - /** - * Always teardown the resource. - * - * Generated from protobuf enum TEARDOWN_ALWAYS = 1; - */ - const TEARDOWN_ALWAYS = 1; - /** - * Teardown the resource on success. This is useful for debugging - * failures. - * - * Generated from protobuf enum TEARDOWN_ON_SUCCESS = 2; - */ - const TEARDOWN_ON_SUCCESS = 2; - /** - * Never teardown the resource. This is useful for debugging and - * development. - * - * Generated from protobuf enum TEARDOWN_NEVER = 3; - */ - const TEARDOWN_NEVER = 3; - - private static $valueToName = [ - self::TEARDOWN_POLICY_UNKNOWN => 'TEARDOWN_POLICY_UNKNOWN', - self::TEARDOWN_ALWAYS => 'TEARDOWN_ALWAYS', - self::TEARDOWN_ON_SUCCESS => 'TEARDOWN_ON_SUCCESS', - self::TEARDOWN_NEVER => 'TEARDOWN_NEVER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TemplateMetadata.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TemplateMetadata.php deleted file mode 100644 index a8b7dca86120..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TemplateMetadata.php +++ /dev/null @@ -1,135 +0,0 @@ -google.dataflow.v1beta3.TemplateMetadata - */ -class TemplateMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the template. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional. A description of the template. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The parameters for the template. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the template. - * @type string $description - * Optional. A description of the template. - * @type array<\Google\Cloud\Dataflow\V1beta3\ParameterMetadata>|\Google\Protobuf\Internal\RepeatedField $parameters - * The parameters for the template. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Templates::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the template. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the template. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. A description of the template. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A description of the template. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The parameters for the template. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * The parameters for the template. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ParameterMetadata parameters = 3; - * @param array<\Google\Cloud\Dataflow\V1beta3\ParameterMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\ParameterMetadata::class); - $this->parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TopologyConfig.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TopologyConfig.php deleted file mode 100644 index 90236fec73d2..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TopologyConfig.php +++ /dev/null @@ -1,204 +0,0 @@ -google.dataflow.v1beta3.TopologyConfig - */ -class TopologyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The computations associated with a streaming Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ComputationTopology computations = 1; - */ - private $computations; - /** - * The disks assigned to a streaming Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DataDiskAssignment data_disk_assignments = 2; - */ - private $data_disk_assignments; - /** - * Maps user stage names to stable computation names. - * - * Generated from protobuf field map user_stage_to_computation_name_map = 3; - */ - private $user_stage_to_computation_name_map; - /** - * The size (in bits) of keys that will be assigned to source messages. - * - * Generated from protobuf field int32 forwarding_key_bits = 4; - */ - protected $forwarding_key_bits = 0; - /** - * Version number for persistent state. - * - * Generated from protobuf field int32 persistent_state_version = 5; - */ - protected $persistent_state_version = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dataflow\V1beta3\ComputationTopology>|\Google\Protobuf\Internal\RepeatedField $computations - * The computations associated with a streaming Dataflow job. - * @type array<\Google\Cloud\Dataflow\V1beta3\DataDiskAssignment>|\Google\Protobuf\Internal\RepeatedField $data_disk_assignments - * The disks assigned to a streaming Dataflow job. - * @type array|\Google\Protobuf\Internal\MapField $user_stage_to_computation_name_map - * Maps user stage names to stable computation names. - * @type int $forwarding_key_bits - * The size (in bits) of keys that will be assigned to source messages. - * @type int $persistent_state_version - * Version number for persistent state. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce(); - parent::__construct($data); - } - - /** - * The computations associated with a streaming Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ComputationTopology computations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getComputations() - { - return $this->computations; - } - - /** - * The computations associated with a streaming Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.ComputationTopology computations = 1; - * @param array<\Google\Cloud\Dataflow\V1beta3\ComputationTopology>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setComputations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\ComputationTopology::class); - $this->computations = $arr; - - return $this; - } - - /** - * The disks assigned to a streaming Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DataDiskAssignment data_disk_assignments = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataDiskAssignments() - { - return $this->data_disk_assignments; - } - - /** - * The disks assigned to a streaming Dataflow job. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DataDiskAssignment data_disk_assignments = 2; - * @param array<\Google\Cloud\Dataflow\V1beta3\DataDiskAssignment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataDiskAssignments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\DataDiskAssignment::class); - $this->data_disk_assignments = $arr; - - return $this; - } - - /** - * Maps user stage names to stable computation names. - * - * Generated from protobuf field map user_stage_to_computation_name_map = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getUserStageToComputationNameMap() - { - return $this->user_stage_to_computation_name_map; - } - - /** - * Maps user stage names to stable computation names. - * - * Generated from protobuf field map user_stage_to_computation_name_map = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setUserStageToComputationNameMap($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->user_stage_to_computation_name_map = $arr; - - return $this; - } - - /** - * The size (in bits) of keys that will be assigned to source messages. - * - * Generated from protobuf field int32 forwarding_key_bits = 4; - * @return int - */ - public function getForwardingKeyBits() - { - return $this->forwarding_key_bits; - } - - /** - * The size (in bits) of keys that will be assigned to source messages. - * - * Generated from protobuf field int32 forwarding_key_bits = 4; - * @param int $var - * @return $this - */ - public function setForwardingKeyBits($var) - { - GPBUtil::checkInt32($var); - $this->forwarding_key_bits = $var; - - return $this; - } - - /** - * Version number for persistent state. - * - * Generated from protobuf field int32 persistent_state_version = 5; - * @return int - */ - public function getPersistentStateVersion() - { - return $this->persistent_state_version; - } - - /** - * Version number for persistent state. - * - * Generated from protobuf field int32 persistent_state_version = 5; - * @param int $var - * @return $this - */ - public function setPersistentStateVersion($var) - { - GPBUtil::checkInt32($var); - $this->persistent_state_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TransformSummary.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TransformSummary.php deleted file mode 100644 index dd9570904b78..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/TransformSummary.php +++ /dev/null @@ -1,237 +0,0 @@ -google.dataflow.v1beta3.TransformSummary - */ -class TransformSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Type of transform. - * - * Generated from protobuf field .google.dataflow.v1beta3.KindType kind = 1; - */ - protected $kind = 0; - /** - * SDK generated id of this transform instance. - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - /** - * User provided name for this transform instance. - * - * Generated from protobuf field string name = 3; - */ - protected $name = ''; - /** - * Transform-specific display data. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DisplayData display_data = 4; - */ - private $display_data; - /** - * User names for all collection outputs to this transform. - * - * Generated from protobuf field repeated string output_collection_name = 5; - */ - private $output_collection_name; - /** - * User names for all collection inputs to this transform. - * - * Generated from protobuf field repeated string input_collection_name = 6; - */ - private $input_collection_name; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $kind - * Type of transform. - * @type string $id - * SDK generated id of this transform instance. - * @type string $name - * User provided name for this transform instance. - * @type array<\Google\Cloud\Dataflow\V1beta3\DisplayData>|\Google\Protobuf\Internal\RepeatedField $display_data - * Transform-specific display data. - * @type array|\Google\Protobuf\Internal\RepeatedField $output_collection_name - * User names for all collection outputs to this transform. - * @type array|\Google\Protobuf\Internal\RepeatedField $input_collection_name - * User names for all collection inputs to this transform. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * Type of transform. - * - * Generated from protobuf field .google.dataflow.v1beta3.KindType kind = 1; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * Type of transform. - * - * Generated from protobuf field .google.dataflow.v1beta3.KindType kind = 1; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\KindType::class); - $this->kind = $var; - - return $this; - } - - /** - * SDK generated id of this transform instance. - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * SDK generated id of this transform instance. - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * User provided name for this transform instance. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * User provided name for this transform instance. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Transform-specific display data. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DisplayData display_data = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDisplayData() - { - return $this->display_data; - } - - /** - * Transform-specific display data. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.DisplayData display_data = 4; - * @param array<\Google\Cloud\Dataflow\V1beta3\DisplayData>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDisplayData($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\DisplayData::class); - $this->display_data = $arr; - - return $this; - } - - /** - * User names for all collection outputs to this transform. - * - * Generated from protobuf field repeated string output_collection_name = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOutputCollectionName() - { - return $this->output_collection_name; - } - - /** - * User names for all collection outputs to this transform. - * - * Generated from protobuf field repeated string output_collection_name = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOutputCollectionName($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->output_collection_name = $arr; - - return $this; - } - - /** - * User names for all collection inputs to this transform. - * - * Generated from protobuf field repeated string input_collection_name = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInputCollectionName() - { - return $this->input_collection_name; - } - - /** - * User names for all collection inputs to this transform. - * - * Generated from protobuf field repeated string input_collection_name = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInputCollectionName($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->input_collection_name = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/UpdateJobRequest.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/UpdateJobRequest.php deleted file mode 100644 index e261f4170d93..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/UpdateJobRequest.php +++ /dev/null @@ -1,191 +0,0 @@ -google.dataflow.v1beta3.UpdateJobRequest - */ -class UpdateJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The job ID. - * - * Generated from protobuf field string job_id = 2; - */ - protected $job_id = ''; - /** - * The updated job. - * Only the job state is updatable; other fields will be ignored. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 3; - */ - protected $job = null; - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The ID of the Cloud Platform project that the job belongs to. - * @type string $job_id - * The job ID. - * @type \Google\Cloud\Dataflow\V1beta3\Job $job - * The updated job. - * Only the job state is updatable; other fields will be ignored. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Jobs::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the Cloud Platform project that the job belongs to. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The job ID. - * - * Generated from protobuf field string job_id = 2; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The job ID. - * - * Generated from protobuf field string job_id = 2; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * The updated job. - * Only the job state is updatable; other fields will be ignored. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 3; - * @return \Google\Cloud\Dataflow\V1beta3\Job|null - */ - public function getJob() - { - return $this->job; - } - - public function hasJob() - { - return isset($this->job); - } - - public function clearJob() - { - unset($this->job); - } - - /** - * The updated job. - * Only the job state is updatable; other fields will be ignored. - * - * Generated from protobuf field .google.dataflow.v1beta3.Job job = 3; - * @param \Google\Cloud\Dataflow\V1beta3\Job $var - * @return $this - */ - public function setJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\Job::class); - $this->job = $var; - - return $this; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkItemDetails.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkItemDetails.php deleted file mode 100644 index 75b9ad2db503..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkItemDetails.php +++ /dev/null @@ -1,309 +0,0 @@ -google.dataflow.v1beta3.WorkItemDetails - */ -class WorkItemDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Name of this work item. - * - * Generated from protobuf field string task_id = 1; - */ - protected $task_id = ''; - /** - * Attempt ID of this work item - * - * Generated from protobuf field string attempt_id = 2; - */ - protected $attempt_id = ''; - /** - * Start time of this work item attempt. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 3; - */ - protected $start_time = null; - /** - * End time of this work item attempt. - * If the work item is completed, this is the actual end time of the work - * item. Otherwise, it is the predicted end time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - */ - protected $end_time = null; - /** - * State of this work item. - * - * Generated from protobuf field .google.dataflow.v1beta3.ExecutionState state = 5; - */ - protected $state = 0; - /** - * Progress of this work item. - * - * Generated from protobuf field .google.dataflow.v1beta3.ProgressTimeseries progress = 6; - */ - protected $progress = null; - /** - * Metrics for this work item. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7; - */ - private $metrics; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $task_id - * Name of this work item. - * @type string $attempt_id - * Attempt ID of this work item - * @type \Google\Protobuf\Timestamp $start_time - * Start time of this work item attempt. - * @type \Google\Protobuf\Timestamp $end_time - * End time of this work item attempt. - * If the work item is completed, this is the actual end time of the work - * item. Otherwise, it is the predicted end time. - * @type int $state - * State of this work item. - * @type \Google\Cloud\Dataflow\V1beta3\ProgressTimeseries $progress - * Progress of this work item. - * @type array<\Google\Cloud\Dataflow\V1beta3\MetricUpdate>|\Google\Protobuf\Internal\RepeatedField $metrics - * Metrics for this work item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * Name of this work item. - * - * Generated from protobuf field string task_id = 1; - * @return string - */ - public function getTaskId() - { - return $this->task_id; - } - - /** - * Name of this work item. - * - * Generated from protobuf field string task_id = 1; - * @param string $var - * @return $this - */ - public function setTaskId($var) - { - GPBUtil::checkString($var, True); - $this->task_id = $var; - - return $this; - } - - /** - * Attempt ID of this work item - * - * Generated from protobuf field string attempt_id = 2; - * @return string - */ - public function getAttemptId() - { - return $this->attempt_id; - } - - /** - * Attempt ID of this work item - * - * Generated from protobuf field string attempt_id = 2; - * @param string $var - * @return $this - */ - public function setAttemptId($var) - { - GPBUtil::checkString($var, True); - $this->attempt_id = $var; - - return $this; - } - - /** - * Start time of this work item attempt. - * - * 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); - } - - /** - * Start time of this work item attempt. - * - * 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; - } - - /** - * End time of this work item attempt. - * If the work item is completed, this is the actual end time of the work - * item. Otherwise, it is the predicted end time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * End time of this work item attempt. - * If the work item is completed, this is the actual end time of the work - * item. Otherwise, it is the predicted end time. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * State of this work item. - * - * Generated from protobuf field .google.dataflow.v1beta3.ExecutionState state = 5; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of this work item. - * - * Generated from protobuf field .google.dataflow.v1beta3.ExecutionState state = 5; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\ExecutionState::class); - $this->state = $var; - - return $this; - } - - /** - * Progress of this work item. - * - * Generated from protobuf field .google.dataflow.v1beta3.ProgressTimeseries progress = 6; - * @return \Google\Cloud\Dataflow\V1beta3\ProgressTimeseries|null - */ - public function getProgress() - { - return $this->progress; - } - - public function hasProgress() - { - return isset($this->progress); - } - - public function clearProgress() - { - unset($this->progress); - } - - /** - * Progress of this work item. - * - * Generated from protobuf field .google.dataflow.v1beta3.ProgressTimeseries progress = 6; - * @param \Google\Cloud\Dataflow\V1beta3\ProgressTimeseries $var - * @return $this - */ - public function setProgress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\ProgressTimeseries::class); - $this->progress = $var; - - return $this; - } - - /** - * Metrics for this work item. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * Metrics for this work item. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.MetricUpdate metrics = 7; - * @param array<\Google\Cloud\Dataflow\V1beta3\MetricUpdate>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\MetricUpdate::class); - $this->metrics = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerDetails.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerDetails.php deleted file mode 100644 index e9cf5e8027e6..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerDetails.php +++ /dev/null @@ -1,101 +0,0 @@ -google.dataflow.v1beta3.WorkerDetails - */ -class WorkerDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Name of this worker - * - * Generated from protobuf field string worker_name = 1; - */ - protected $worker_name = ''; - /** - * Work items processed by this worker, sorted by time. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.WorkItemDetails work_items = 2; - */ - private $work_items; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $worker_name - * Name of this worker - * @type array<\Google\Cloud\Dataflow\V1beta3\WorkItemDetails>|\Google\Protobuf\Internal\RepeatedField $work_items - * Work items processed by this worker, sorted by time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Metrics::initOnce(); - parent::__construct($data); - } - - /** - * Name of this worker - * - * Generated from protobuf field string worker_name = 1; - * @return string - */ - public function getWorkerName() - { - return $this->worker_name; - } - - /** - * Name of this worker - * - * Generated from protobuf field string worker_name = 1; - * @param string $var - * @return $this - */ - public function setWorkerName($var) - { - GPBUtil::checkString($var, True); - $this->worker_name = $var; - - return $this; - } - - /** - * Work items processed by this worker, sorted by time. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.WorkItemDetails work_items = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWorkItems() - { - return $this->work_items; - } - - /** - * Work items processed by this worker, sorted by time. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.WorkItemDetails work_items = 2; - * @param array<\Google\Cloud\Dataflow\V1beta3\WorkItemDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWorkItems($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\WorkItemDetails::class); - $this->work_items = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerIPAddressConfiguration.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerIPAddressConfiguration.php deleted file mode 100644 index c28b3b8814a8..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerIPAddressConfiguration.php +++ /dev/null @@ -1,61 +0,0 @@ -google.dataflow.v1beta3.WorkerIPAddressConfiguration - */ -class WorkerIPAddressConfiguration -{ - /** - * The configuration is unknown, or unspecified. - * - * Generated from protobuf enum WORKER_IP_UNSPECIFIED = 0; - */ - const WORKER_IP_UNSPECIFIED = 0; - /** - * Workers should have public IP addresses. - * - * Generated from protobuf enum WORKER_IP_PUBLIC = 1; - */ - const WORKER_IP_PUBLIC = 1; - /** - * Workers should have private IP addresses. - * - * Generated from protobuf enum WORKER_IP_PRIVATE = 2; - */ - const WORKER_IP_PRIVATE = 2; - - private static $valueToName = [ - self::WORKER_IP_UNSPECIFIED => 'WORKER_IP_UNSPECIFIED', - self::WORKER_IP_PUBLIC => 'WORKER_IP_PUBLIC', - self::WORKER_IP_PRIVATE => 'WORKER_IP_PRIVATE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerPool.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerPool.php deleted file mode 100644 index aa331fbcc11d..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerPool.php +++ /dev/null @@ -1,951 +0,0 @@ -google.dataflow.v1beta3.WorkerPool - */ -class WorkerPool extends \Google\Protobuf\Internal\Message -{ - /** - * The kind of the worker pool; currently only `harness` and `shuffle` - * are supported. - * - * Generated from protobuf field string kind = 1; - */ - protected $kind = ''; - /** - * Number of Google Compute Engine workers in this pool needed to - * execute the job. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field int32 num_workers = 2; - */ - protected $num_workers = 0; - /** - * Packages to be installed on workers. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Package packages = 3; - */ - private $packages; - /** - * The default package set to install. This allows the service to - * select a default set of packages which are useful to worker - * harnesses written in a particular language. - * - * Generated from protobuf field .google.dataflow.v1beta3.DefaultPackageSet default_package_set = 4; - */ - protected $default_package_set = 0; - /** - * Machine type (e.g. "n1-standard-1"). If empty or unspecified, the - * service will attempt to choose a reasonable default. - * - * Generated from protobuf field string machine_type = 5; - */ - protected $machine_type = ''; - /** - * Sets the policy for determining when to turndown worker pool. - * Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and - * `TEARDOWN_NEVER`. - * `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether - * the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down - * if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn - * down. - * If the workers are not torn down by the service, they will - * continue to run and use Google Compute Engine VM resources in the - * user's project until they are explicitly terminated by the user. - * Because of this, Google recommends using the `TEARDOWN_ALWAYS` - * policy except for small, manually supervised test jobs. - * If unknown or unspecified, the service will attempt to choose a reasonable - * default. - * - * Generated from protobuf field .google.dataflow.v1beta3.TeardownPolicy teardown_policy = 6; - */ - protected $teardown_policy = 0; - /** - * Size of root disk for VMs, in GB. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field int32 disk_size_gb = 7; - */ - protected $disk_size_gb = 0; - /** - * Type of root disk for VMs. If empty or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field string disk_type = 16; - */ - protected $disk_type = ''; - /** - * Fully qualified source image for disks. - * - * Generated from protobuf field string disk_source_image = 8; - */ - protected $disk_source_image = ''; - /** - * Zone to run the worker pools in. If empty or unspecified, the service - * will attempt to choose a reasonable default. - * - * Generated from protobuf field string zone = 9; - */ - protected $zone = ''; - /** - * Settings passed through to Google Compute Engine workers when - * using the standard Dataflow task runner. Users should ignore - * this field. - * - * Generated from protobuf field .google.dataflow.v1beta3.TaskRunnerSettings taskrunner_settings = 10; - */ - protected $taskrunner_settings = null; - /** - * The action to take on host maintenance, as defined by the Google - * Compute Engine API. - * - * Generated from protobuf field string on_host_maintenance = 11; - */ - protected $on_host_maintenance = ''; - /** - * Data disks that are used by a VM in this workflow. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Disk data_disks = 12; - */ - private $data_disks; - /** - * Metadata to set on the Google Compute Engine VMs. - * - * Generated from protobuf field map metadata = 13; - */ - private $metadata; - /** - * Settings for autoscaling of this WorkerPool. - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingSettings autoscaling_settings = 14; - */ - protected $autoscaling_settings = null; - /** - * Extra arguments for this worker pool. - * - * Generated from protobuf field .google.protobuf.Any pool_args = 15; - */ - protected $pool_args = null; - /** - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * - * Generated from protobuf field string network = 17; - */ - protected $network = ''; - /** - * Subnetwork to which VMs will be assigned, if desired. Expected to be of - * the form "regions/REGION/subnetworks/SUBNETWORK". - * - * Generated from protobuf field string subnetwork = 19; - */ - protected $subnetwork = ''; - /** - * Required. Docker container image that executes the Cloud Dataflow worker - * harness, residing in Google Container Registry. - * Deprecated for the Fn API path. Use sdk_harness_container_images instead. - * - * Generated from protobuf field string worker_harness_container_image = 18; - */ - protected $worker_harness_container_image = ''; - /** - * The number of threads per worker harness. If empty or unspecified, the - * service will choose a number of threads (according to the number of cores - * on the selected machine type for batch, or 1 by convention for streaming). - * - * Generated from protobuf field int32 num_threads_per_worker = 20; - */ - protected $num_threads_per_worker = 0; - /** - * Configuration for VM IPs. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerIPAddressConfiguration ip_configuration = 21; - */ - protected $ip_configuration = 0; - /** - * Set of SDK harness containers needed to execute this pipeline. This will - * only be set in the Fn API path. For non-cross-language pipelines this - * should have only one entry. Cross-language pipelines will have two or more - * entries. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.SdkHarnessContainerImage sdk_harness_container_images = 22; - */ - private $sdk_harness_container_images; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kind - * The kind of the worker pool; currently only `harness` and `shuffle` - * are supported. - * @type int $num_workers - * Number of Google Compute Engine workers in this pool needed to - * execute the job. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * @type array<\Google\Cloud\Dataflow\V1beta3\Package>|\Google\Protobuf\Internal\RepeatedField $packages - * Packages to be installed on workers. - * @type int $default_package_set - * The default package set to install. This allows the service to - * select a default set of packages which are useful to worker - * harnesses written in a particular language. - * @type string $machine_type - * Machine type (e.g. "n1-standard-1"). If empty or unspecified, the - * service will attempt to choose a reasonable default. - * @type int $teardown_policy - * Sets the policy for determining when to turndown worker pool. - * Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and - * `TEARDOWN_NEVER`. - * `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether - * the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down - * if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn - * down. - * If the workers are not torn down by the service, they will - * continue to run and use Google Compute Engine VM resources in the - * user's project until they are explicitly terminated by the user. - * Because of this, Google recommends using the `TEARDOWN_ALWAYS` - * policy except for small, manually supervised test jobs. - * If unknown or unspecified, the service will attempt to choose a reasonable - * default. - * @type int $disk_size_gb - * Size of root disk for VMs, in GB. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * @type string $disk_type - * Type of root disk for VMs. If empty or unspecified, the service will - * attempt to choose a reasonable default. - * @type string $disk_source_image - * Fully qualified source image for disks. - * @type string $zone - * Zone to run the worker pools in. If empty or unspecified, the service - * will attempt to choose a reasonable default. - * @type \Google\Cloud\Dataflow\V1beta3\TaskRunnerSettings $taskrunner_settings - * Settings passed through to Google Compute Engine workers when - * using the standard Dataflow task runner. Users should ignore - * this field. - * @type string $on_host_maintenance - * The action to take on host maintenance, as defined by the Google - * Compute Engine API. - * @type array<\Google\Cloud\Dataflow\V1beta3\Disk>|\Google\Protobuf\Internal\RepeatedField $data_disks - * Data disks that are used by a VM in this workflow. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Metadata to set on the Google Compute Engine VMs. - * @type \Google\Cloud\Dataflow\V1beta3\AutoscalingSettings $autoscaling_settings - * Settings for autoscaling of this WorkerPool. - * @type \Google\Protobuf\Any $pool_args - * Extra arguments for this worker pool. - * @type string $network - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * @type string $subnetwork - * Subnetwork to which VMs will be assigned, if desired. Expected to be of - * the form "regions/REGION/subnetworks/SUBNETWORK". - * @type string $worker_harness_container_image - * Required. Docker container image that executes the Cloud Dataflow worker - * harness, residing in Google Container Registry. - * Deprecated for the Fn API path. Use sdk_harness_container_images instead. - * @type int $num_threads_per_worker - * The number of threads per worker harness. If empty or unspecified, the - * service will choose a number of threads (according to the number of cores - * on the selected machine type for batch, or 1 by convention for streaming). - * @type int $ip_configuration - * Configuration for VM IPs. - * @type array<\Google\Cloud\Dataflow\V1beta3\SdkHarnessContainerImage>|\Google\Protobuf\Internal\RepeatedField $sdk_harness_container_images - * Set of SDK harness containers needed to execute this pipeline. This will - * only be set in the Fn API path. For non-cross-language pipelines this - * should have only one entry. Cross-language pipelines will have two or more - * entries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Environment::initOnce(); - parent::__construct($data); - } - - /** - * The kind of the worker pool; currently only `harness` and `shuffle` - * are supported. - * - * Generated from protobuf field string kind = 1; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * The kind of the worker pool; currently only `harness` and `shuffle` - * are supported. - * - * Generated from protobuf field string kind = 1; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * Number of Google Compute Engine workers in this pool needed to - * execute the job. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field int32 num_workers = 2; - * @return int - */ - public function getNumWorkers() - { - return $this->num_workers; - } - - /** - * Number of Google Compute Engine workers in this pool needed to - * execute the job. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field int32 num_workers = 2; - * @param int $var - * @return $this - */ - public function setNumWorkers($var) - { - GPBUtil::checkInt32($var); - $this->num_workers = $var; - - return $this; - } - - /** - * Packages to be installed on workers. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Package packages = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPackages() - { - return $this->packages; - } - - /** - * Packages to be installed on workers. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Package packages = 3; - * @param array<\Google\Cloud\Dataflow\V1beta3\Package>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPackages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\Package::class); - $this->packages = $arr; - - return $this; - } - - /** - * The default package set to install. This allows the service to - * select a default set of packages which are useful to worker - * harnesses written in a particular language. - * - * Generated from protobuf field .google.dataflow.v1beta3.DefaultPackageSet default_package_set = 4; - * @return int - */ - public function getDefaultPackageSet() - { - return $this->default_package_set; - } - - /** - * The default package set to install. This allows the service to - * select a default set of packages which are useful to worker - * harnesses written in a particular language. - * - * Generated from protobuf field .google.dataflow.v1beta3.DefaultPackageSet default_package_set = 4; - * @param int $var - * @return $this - */ - public function setDefaultPackageSet($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\DefaultPackageSet::class); - $this->default_package_set = $var; - - return $this; - } - - /** - * Machine type (e.g. "n1-standard-1"). If empty or unspecified, the - * service will attempt to choose a reasonable default. - * - * Generated from protobuf field string machine_type = 5; - * @return string - */ - public function getMachineType() - { - return $this->machine_type; - } - - /** - * Machine type (e.g. "n1-standard-1"). If empty or unspecified, the - * service will attempt to choose a reasonable default. - * - * Generated from protobuf field string machine_type = 5; - * @param string $var - * @return $this - */ - public function setMachineType($var) - { - GPBUtil::checkString($var, True); - $this->machine_type = $var; - - return $this; - } - - /** - * Sets the policy for determining when to turndown worker pool. - * Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and - * `TEARDOWN_NEVER`. - * `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether - * the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down - * if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn - * down. - * If the workers are not torn down by the service, they will - * continue to run and use Google Compute Engine VM resources in the - * user's project until they are explicitly terminated by the user. - * Because of this, Google recommends using the `TEARDOWN_ALWAYS` - * policy except for small, manually supervised test jobs. - * If unknown or unspecified, the service will attempt to choose a reasonable - * default. - * - * Generated from protobuf field .google.dataflow.v1beta3.TeardownPolicy teardown_policy = 6; - * @return int - */ - public function getTeardownPolicy() - { - return $this->teardown_policy; - } - - /** - * Sets the policy for determining when to turndown worker pool. - * Allowed values are: `TEARDOWN_ALWAYS`, `TEARDOWN_ON_SUCCESS`, and - * `TEARDOWN_NEVER`. - * `TEARDOWN_ALWAYS` means workers are always torn down regardless of whether - * the job succeeds. `TEARDOWN_ON_SUCCESS` means workers are torn down - * if the job succeeds. `TEARDOWN_NEVER` means the workers are never torn - * down. - * If the workers are not torn down by the service, they will - * continue to run and use Google Compute Engine VM resources in the - * user's project until they are explicitly terminated by the user. - * Because of this, Google recommends using the `TEARDOWN_ALWAYS` - * policy except for small, manually supervised test jobs. - * If unknown or unspecified, the service will attempt to choose a reasonable - * default. - * - * Generated from protobuf field .google.dataflow.v1beta3.TeardownPolicy teardown_policy = 6; - * @param int $var - * @return $this - */ - public function setTeardownPolicy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\TeardownPolicy::class); - $this->teardown_policy = $var; - - return $this; - } - - /** - * Size of root disk for VMs, in GB. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field int32 disk_size_gb = 7; - * @return int - */ - public function getDiskSizeGb() - { - return $this->disk_size_gb; - } - - /** - * Size of root disk for VMs, in GB. If zero or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field int32 disk_size_gb = 7; - * @param int $var - * @return $this - */ - public function setDiskSizeGb($var) - { - GPBUtil::checkInt32($var); - $this->disk_size_gb = $var; - - return $this; - } - - /** - * Type of root disk for VMs. If empty or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field string disk_type = 16; - * @return string - */ - public function getDiskType() - { - return $this->disk_type; - } - - /** - * Type of root disk for VMs. If empty or unspecified, the service will - * attempt to choose a reasonable default. - * - * Generated from protobuf field string disk_type = 16; - * @param string $var - * @return $this - */ - public function setDiskType($var) - { - GPBUtil::checkString($var, True); - $this->disk_type = $var; - - return $this; - } - - /** - * Fully qualified source image for disks. - * - * Generated from protobuf field string disk_source_image = 8; - * @return string - */ - public function getDiskSourceImage() - { - return $this->disk_source_image; - } - - /** - * Fully qualified source image for disks. - * - * Generated from protobuf field string disk_source_image = 8; - * @param string $var - * @return $this - */ - public function setDiskSourceImage($var) - { - GPBUtil::checkString($var, True); - $this->disk_source_image = $var; - - return $this; - } - - /** - * Zone to run the worker pools in. If empty or unspecified, the service - * will attempt to choose a reasonable default. - * - * Generated from protobuf field string zone = 9; - * @return string - */ - public function getZone() - { - return $this->zone; - } - - /** - * Zone to run the worker pools in. If empty or unspecified, the service - * will attempt to choose a reasonable default. - * - * Generated from protobuf field string zone = 9; - * @param string $var - * @return $this - */ - public function setZone($var) - { - GPBUtil::checkString($var, True); - $this->zone = $var; - - return $this; - } - - /** - * Settings passed through to Google Compute Engine workers when - * using the standard Dataflow task runner. Users should ignore - * this field. - * - * Generated from protobuf field .google.dataflow.v1beta3.TaskRunnerSettings taskrunner_settings = 10; - * @return \Google\Cloud\Dataflow\V1beta3\TaskRunnerSettings|null - */ - public function getTaskrunnerSettings() - { - return $this->taskrunner_settings; - } - - public function hasTaskrunnerSettings() - { - return isset($this->taskrunner_settings); - } - - public function clearTaskrunnerSettings() - { - unset($this->taskrunner_settings); - } - - /** - * Settings passed through to Google Compute Engine workers when - * using the standard Dataflow task runner. Users should ignore - * this field. - * - * Generated from protobuf field .google.dataflow.v1beta3.TaskRunnerSettings taskrunner_settings = 10; - * @param \Google\Cloud\Dataflow\V1beta3\TaskRunnerSettings $var - * @return $this - */ - public function setTaskrunnerSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\TaskRunnerSettings::class); - $this->taskrunner_settings = $var; - - return $this; - } - - /** - * The action to take on host maintenance, as defined by the Google - * Compute Engine API. - * - * Generated from protobuf field string on_host_maintenance = 11; - * @return string - */ - public function getOnHostMaintenance() - { - return $this->on_host_maintenance; - } - - /** - * The action to take on host maintenance, as defined by the Google - * Compute Engine API. - * - * Generated from protobuf field string on_host_maintenance = 11; - * @param string $var - * @return $this - */ - public function setOnHostMaintenance($var) - { - GPBUtil::checkString($var, True); - $this->on_host_maintenance = $var; - - return $this; - } - - /** - * Data disks that are used by a VM in this workflow. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Disk data_disks = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataDisks() - { - return $this->data_disks; - } - - /** - * Data disks that are used by a VM in this workflow. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.Disk data_disks = 12; - * @param array<\Google\Cloud\Dataflow\V1beta3\Disk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataDisks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\Disk::class); - $this->data_disks = $arr; - - return $this; - } - - /** - * Metadata to set on the Google Compute Engine VMs. - * - * Generated from protobuf field map metadata = 13; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Metadata to set on the Google Compute Engine VMs. - * - * Generated from protobuf field map metadata = 13; - * @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; - } - - /** - * Settings for autoscaling of this WorkerPool. - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingSettings autoscaling_settings = 14; - * @return \Google\Cloud\Dataflow\V1beta3\AutoscalingSettings|null - */ - public function getAutoscalingSettings() - { - return $this->autoscaling_settings; - } - - public function hasAutoscalingSettings() - { - return isset($this->autoscaling_settings); - } - - public function clearAutoscalingSettings() - { - unset($this->autoscaling_settings); - } - - /** - * Settings for autoscaling of this WorkerPool. - * - * Generated from protobuf field .google.dataflow.v1beta3.AutoscalingSettings autoscaling_settings = 14; - * @param \Google\Cloud\Dataflow\V1beta3\AutoscalingSettings $var - * @return $this - */ - public function setAutoscalingSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dataflow\V1beta3\AutoscalingSettings::class); - $this->autoscaling_settings = $var; - - return $this; - } - - /** - * Extra arguments for this worker pool. - * - * Generated from protobuf field .google.protobuf.Any pool_args = 15; - * @return \Google\Protobuf\Any|null - */ - public function getPoolArgs() - { - return $this->pool_args; - } - - public function hasPoolArgs() - { - return isset($this->pool_args); - } - - public function clearPoolArgs() - { - unset($this->pool_args); - } - - /** - * Extra arguments for this worker pool. - * - * Generated from protobuf field .google.protobuf.Any pool_args = 15; - * @param \Google\Protobuf\Any $var - * @return $this - */ - public function setPoolArgs($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); - $this->pool_args = $var; - - return $this; - } - - /** - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * - * Generated from protobuf field string network = 17; - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Network to which VMs will be assigned. If empty or unspecified, - * the service will use the network "default". - * - * Generated from protobuf field string network = 17; - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Subnetwork to which VMs will be assigned, if desired. Expected to be of - * the form "regions/REGION/subnetworks/SUBNETWORK". - * - * Generated from protobuf field string subnetwork = 19; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * Subnetwork to which VMs will be assigned, if desired. Expected to be of - * the form "regions/REGION/subnetworks/SUBNETWORK". - * - * Generated from protobuf field string subnetwork = 19; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Required. Docker container image that executes the Cloud Dataflow worker - * harness, residing in Google Container Registry. - * Deprecated for the Fn API path. Use sdk_harness_container_images instead. - * - * Generated from protobuf field string worker_harness_container_image = 18; - * @return string - */ - public function getWorkerHarnessContainerImage() - { - return $this->worker_harness_container_image; - } - - /** - * Required. Docker container image that executes the Cloud Dataflow worker - * harness, residing in Google Container Registry. - * Deprecated for the Fn API path. Use sdk_harness_container_images instead. - * - * Generated from protobuf field string worker_harness_container_image = 18; - * @param string $var - * @return $this - */ - public function setWorkerHarnessContainerImage($var) - { - GPBUtil::checkString($var, True); - $this->worker_harness_container_image = $var; - - return $this; - } - - /** - * The number of threads per worker harness. If empty or unspecified, the - * service will choose a number of threads (according to the number of cores - * on the selected machine type for batch, or 1 by convention for streaming). - * - * Generated from protobuf field int32 num_threads_per_worker = 20; - * @return int - */ - public function getNumThreadsPerWorker() - { - return $this->num_threads_per_worker; - } - - /** - * The number of threads per worker harness. If empty or unspecified, the - * service will choose a number of threads (according to the number of cores - * on the selected machine type for batch, or 1 by convention for streaming). - * - * Generated from protobuf field int32 num_threads_per_worker = 20; - * @param int $var - * @return $this - */ - public function setNumThreadsPerWorker($var) - { - GPBUtil::checkInt32($var); - $this->num_threads_per_worker = $var; - - return $this; - } - - /** - * Configuration for VM IPs. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerIPAddressConfiguration ip_configuration = 21; - * @return int - */ - public function getIpConfiguration() - { - return $this->ip_configuration; - } - - /** - * Configuration for VM IPs. - * - * Generated from protobuf field .google.dataflow.v1beta3.WorkerIPAddressConfiguration ip_configuration = 21; - * @param int $var - * @return $this - */ - public function setIpConfiguration($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dataflow\V1beta3\WorkerIPAddressConfiguration::class); - $this->ip_configuration = $var; - - return $this; - } - - /** - * Set of SDK harness containers needed to execute this pipeline. This will - * only be set in the Fn API path. For non-cross-language pipelines this - * should have only one entry. Cross-language pipelines will have two or more - * entries. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.SdkHarnessContainerImage sdk_harness_container_images = 22; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSdkHarnessContainerImages() - { - return $this->sdk_harness_container_images; - } - - /** - * Set of SDK harness containers needed to execute this pipeline. This will - * only be set in the Fn API path. For non-cross-language pipelines this - * should have only one entry. Cross-language pipelines will have two or more - * entries. - * - * Generated from protobuf field repeated .google.dataflow.v1beta3.SdkHarnessContainerImage sdk_harness_container_images = 22; - * @param array<\Google\Cloud\Dataflow\V1beta3\SdkHarnessContainerImage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSdkHarnessContainerImages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dataflow\V1beta3\SdkHarnessContainerImage::class); - $this->sdk_harness_container_images = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerSettings.php b/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerSettings.php deleted file mode 100644 index d62549d6fb3c..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/proto/src/Google/Cloud/Dataflow/V1beta3/WorkerSettings.php +++ /dev/null @@ -1,289 +0,0 @@ -google.dataflow.v1beta3.WorkerSettings - */ -class WorkerSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The base URL for accessing Google Cloud APIs. - * When workers access Google Cloud APIs, they logically do so via - * relative URLs. If this field is specified, it supplies the base - * URL to use for resolving these relative URLs. The normative - * algorithm used is defined by RFC 1808, "Relative Uniform Resource - * Locators". - * If not specified, the default value is "http://www.googleapis.com/" - * - * Generated from protobuf field string base_url = 1; - */ - protected $base_url = ''; - /** - * Whether to send work progress updates to the service. - * - * Generated from protobuf field bool reporting_enabled = 2; - */ - protected $reporting_enabled = false; - /** - * The Cloud Dataflow service path relative to the root URL, for example, - * "dataflow/v1b3/projects". - * - * Generated from protobuf field string service_path = 3; - */ - protected $service_path = ''; - /** - * The Shuffle service path relative to the root URL, for example, - * "shuffle/v1beta1". - * - * Generated from protobuf field string shuffle_service_path = 4; - */ - protected $shuffle_service_path = ''; - /** - * The ID of the worker running this pipeline. - * - * Generated from protobuf field string worker_id = 5; - */ - protected $worker_id = ''; - /** - * The prefix of the resources the system should use for temporary - * storage. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string temp_storage_prefix = 6; - */ - protected $temp_storage_prefix = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $base_url - * The base URL for accessing Google Cloud APIs. - * When workers access Google Cloud APIs, they logically do so via - * relative URLs. If this field is specified, it supplies the base - * URL to use for resolving these relative URLs. The normative - * algorithm used is defined by RFC 1808, "Relative Uniform Resource - * Locators". - * If not specified, the default value is "http://www.googleapis.com/" - * @type bool $reporting_enabled - * Whether to send work progress updates to the service. - * @type string $service_path - * The Cloud Dataflow service path relative to the root URL, for example, - * "dataflow/v1b3/projects". - * @type string $shuffle_service_path - * The Shuffle service path relative to the root URL, for example, - * "shuffle/v1beta1". - * @type string $worker_id - * The ID of the worker running this pipeline. - * @type string $temp_storage_prefix - * The prefix of the resources the system should use for temporary - * storage. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Dataflow\V1Beta3\Environment::initOnce(); - parent::__construct($data); - } - - /** - * The base URL for accessing Google Cloud APIs. - * When workers access Google Cloud APIs, they logically do so via - * relative URLs. If this field is specified, it supplies the base - * URL to use for resolving these relative URLs. The normative - * algorithm used is defined by RFC 1808, "Relative Uniform Resource - * Locators". - * If not specified, the default value is "http://www.googleapis.com/" - * - * Generated from protobuf field string base_url = 1; - * @return string - */ - public function getBaseUrl() - { - return $this->base_url; - } - - /** - * The base URL for accessing Google Cloud APIs. - * When workers access Google Cloud APIs, they logically do so via - * relative URLs. If this field is specified, it supplies the base - * URL to use for resolving these relative URLs. The normative - * algorithm used is defined by RFC 1808, "Relative Uniform Resource - * Locators". - * If not specified, the default value is "http://www.googleapis.com/" - * - * Generated from protobuf field string base_url = 1; - * @param string $var - * @return $this - */ - public function setBaseUrl($var) - { - GPBUtil::checkString($var, True); - $this->base_url = $var; - - return $this; - } - - /** - * Whether to send work progress updates to the service. - * - * Generated from protobuf field bool reporting_enabled = 2; - * @return bool - */ - public function getReportingEnabled() - { - return $this->reporting_enabled; - } - - /** - * Whether to send work progress updates to the service. - * - * Generated from protobuf field bool reporting_enabled = 2; - * @param bool $var - * @return $this - */ - public function setReportingEnabled($var) - { - GPBUtil::checkBool($var); - $this->reporting_enabled = $var; - - return $this; - } - - /** - * The Cloud Dataflow service path relative to the root URL, for example, - * "dataflow/v1b3/projects". - * - * Generated from protobuf field string service_path = 3; - * @return string - */ - public function getServicePath() - { - return $this->service_path; - } - - /** - * The Cloud Dataflow service path relative to the root URL, for example, - * "dataflow/v1b3/projects". - * - * Generated from protobuf field string service_path = 3; - * @param string $var - * @return $this - */ - public function setServicePath($var) - { - GPBUtil::checkString($var, True); - $this->service_path = $var; - - return $this; - } - - /** - * The Shuffle service path relative to the root URL, for example, - * "shuffle/v1beta1". - * - * Generated from protobuf field string shuffle_service_path = 4; - * @return string - */ - public function getShuffleServicePath() - { - return $this->shuffle_service_path; - } - - /** - * The Shuffle service path relative to the root URL, for example, - * "shuffle/v1beta1". - * - * Generated from protobuf field string shuffle_service_path = 4; - * @param string $var - * @return $this - */ - public function setShuffleServicePath($var) - { - GPBUtil::checkString($var, True); - $this->shuffle_service_path = $var; - - return $this; - } - - /** - * The ID of the worker running this pipeline. - * - * Generated from protobuf field string worker_id = 5; - * @return string - */ - public function getWorkerId() - { - return $this->worker_id; - } - - /** - * The ID of the worker running this pipeline. - * - * Generated from protobuf field string worker_id = 5; - * @param string $var - * @return $this - */ - public function setWorkerId($var) - { - GPBUtil::checkString($var, True); - $this->worker_id = $var; - - return $this; - } - - /** - * The prefix of the resources the system should use for temporary - * storage. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string temp_storage_prefix = 6; - * @return string - */ - public function getTempStoragePrefix() - { - return $this->temp_storage_prefix; - } - - /** - * The prefix of the resources the system should use for temporary - * storage. - * The supported resource type is: - * Google Cloud Storage: - * storage.googleapis.com/{bucket}/{object} - * bucket.storage.googleapis.com/{object} - * - * Generated from protobuf field string temp_storage_prefix = 6; - * @param string $var - * @return $this - */ - public function setTempStoragePrefix($var) - { - GPBUtil::checkString($var, True); - $this->temp_storage_prefix = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/FlexTemplatesServiceClient/launch_flex_template.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/FlexTemplatesServiceClient/launch_flex_template.php deleted file mode 100644 index 6804cb9040d6..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/FlexTemplatesServiceClient/launch_flex_template.php +++ /dev/null @@ -1,57 +0,0 @@ -launchFlexTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_FlexTemplatesService_LaunchFlexTemplate_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/aggregated_list_jobs.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/aggregated_list_jobs.php deleted file mode 100644 index 668ff2acbd12..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/aggregated_list_jobs.php +++ /dev/null @@ -1,62 +0,0 @@ -aggregatedListJobs($request); - - /** @var Job $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 dataflow_v1beta3_generated_JobsV1Beta3_AggregatedListJobs_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/check_active_jobs.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/check_active_jobs.php deleted file mode 100644 index 9c70b9cc03c5..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/check_active_jobs.php +++ /dev/null @@ -1,57 +0,0 @@ -checkActiveJobs($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_JobsV1Beta3_CheckActiveJobs_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/create_job.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/create_job.php deleted file mode 100644 index 2e25427603fa..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/create_job.php +++ /dev/null @@ -1,63 +0,0 @@ -createJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_JobsV1Beta3_CreateJob_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/get_job.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/get_job.php deleted file mode 100644 index ff2a36b15502..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/get_job.php +++ /dev/null @@ -1,63 +0,0 @@ -getJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_JobsV1Beta3_GetJob_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/list_jobs.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/list_jobs.php deleted file mode 100644 index c3f3dc91585e..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/list_jobs.php +++ /dev/null @@ -1,69 +0,0 @@ -listJobs($request); - - /** @var Job $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 dataflow_v1beta3_generated_JobsV1Beta3_ListJobs_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/snapshot_job.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/snapshot_job.php deleted file mode 100644 index c4ee0c00b740..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/snapshot_job.php +++ /dev/null @@ -1,57 +0,0 @@ -snapshotJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_JobsV1Beta3_SnapshotJob_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/update_job.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/update_job.php deleted file mode 100644 index 213cc6b6f9a3..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/JobsV1Beta3Client/update_job.php +++ /dev/null @@ -1,63 +0,0 @@ -updateJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_JobsV1Beta3_UpdateJob_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MessagesV1Beta3Client/list_job_messages.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MessagesV1Beta3Client/list_job_messages.php deleted file mode 100644 index 382c0a0283e5..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MessagesV1Beta3Client/list_job_messages.php +++ /dev/null @@ -1,68 +0,0 @@ -listJobMessages($request); - - /** @var JobMessage $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 dataflow_v1beta3_generated_MessagesV1Beta3_ListJobMessages_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_job_execution_details.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_job_execution_details.php deleted file mode 100644 index 1c9789511f69..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_job_execution_details.php +++ /dev/null @@ -1,64 +0,0 @@ -getJobExecutionDetails($request); - - /** @var StageSummary $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 dataflow_v1beta3_generated_MetricsV1Beta3_GetJobExecutionDetails_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_job_metrics.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_job_metrics.php deleted file mode 100644 index be9adb251fed..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_job_metrics.php +++ /dev/null @@ -1,63 +0,0 @@ -getJobMetrics($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_MetricsV1Beta3_GetJobMetrics_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_stage_execution_details.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_stage_execution_details.php deleted file mode 100644 index 5b02ace53856..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/MetricsV1Beta3Client/get_stage_execution_details.php +++ /dev/null @@ -1,65 +0,0 @@ -getStageExecutionDetails($request); - - /** @var WorkerDetails $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 dataflow_v1beta3_generated_MetricsV1Beta3_GetStageExecutionDetails_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/delete_snapshot.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/delete_snapshot.php deleted file mode 100644 index 661df7fafc03..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/delete_snapshot.php +++ /dev/null @@ -1,57 +0,0 @@ -deleteSnapshot($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_SnapshotsV1Beta3_DeleteSnapshot_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/get_snapshot.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/get_snapshot.php deleted file mode 100644 index 264299b54245..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/get_snapshot.php +++ /dev/null @@ -1,57 +0,0 @@ -getSnapshot($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_SnapshotsV1Beta3_GetSnapshot_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/list_snapshots.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/list_snapshots.php deleted file mode 100644 index 7d7b8e4831d5..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/SnapshotsV1Beta3Client/list_snapshots.php +++ /dev/null @@ -1,57 +0,0 @@ -listSnapshots($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_SnapshotsV1Beta3_ListSnapshots_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/create_job_from_template.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/create_job_from_template.php deleted file mode 100644 index 29b794c83b61..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/create_job_from_template.php +++ /dev/null @@ -1,57 +0,0 @@ -createJobFromTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_TemplatesService_CreateJobFromTemplate_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/get_template.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/get_template.php deleted file mode 100644 index c5f9e55b2647..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/get_template.php +++ /dev/null @@ -1,57 +0,0 @@ -getTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_TemplatesService_GetTemplate_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/launch_template.php b/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/launch_template.php deleted file mode 100644 index ec2c3a88a858..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/samples/V1beta3/TemplatesServiceClient/launch_template.php +++ /dev/null @@ -1,57 +0,0 @@ -launchTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dataflow_v1beta3_generated_TemplatesService_LaunchTemplate_sync] diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/FlexTemplatesServiceClient.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/FlexTemplatesServiceClient.php deleted file mode 100644 index 1f06098eaee0..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/FlexTemplatesServiceClient.php +++ /dev/null @@ -1,201 +0,0 @@ - launchFlexTemplateAsync(LaunchFlexTemplateRequest $request, array $optionalArgs = []) - */ -final class FlexTemplatesServiceClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.dataflow.v1beta3.FlexTemplatesService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/flex_templates_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/flex_templates_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/flex_templates_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/flex_templates_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * Launch a job with a FlexTemplate. - * - * The async variant is - * {@see FlexTemplatesServiceClient::launchFlexTemplateAsync()} . - * - * @example samples/V1beta3/FlexTemplatesServiceClient/launch_flex_template.php - * - * @param LaunchFlexTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return LaunchFlexTemplateResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function launchFlexTemplate(LaunchFlexTemplateRequest $request, array $callOptions = []): LaunchFlexTemplateResponse - { - return $this->startApiCall('LaunchFlexTemplate', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/JobsV1Beta3Client.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/JobsV1Beta3Client.php deleted file mode 100644 index fc8292c50b69..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/JobsV1Beta3Client.php +++ /dev/null @@ -1,408 +0,0 @@ - aggregatedListJobsAsync(ListJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface checkActiveJobsAsync(CheckActiveJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createJobAsync(CreateJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJobAsync(GetJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface listJobsAsync(ListJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface snapshotJobAsync(SnapshotJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateJobAsync(UpdateJobRequest $request, array $optionalArgs = []) - */ -final class JobsV1Beta3Client -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.dataflow.v1beta3.JobsV1Beta3'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/jobs_v1_beta3_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/jobs_v1_beta3_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/jobs_v1_beta3_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/jobs_v1_beta3_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * List the jobs of a project across all regions. - * - * The async variant is {@see JobsV1Beta3Client::aggregatedListJobsAsync()} . - * - * @example samples/V1beta3/JobsV1Beta3Client/aggregated_list_jobs.php - * - * @param ListJobsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 aggregatedListJobs(ListJobsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('AggregatedListJobs', $request, $callOptions); - } - - /** - * Check for existence of active jobs in the given project across all regions. - * - * The async variant is {@see JobsV1Beta3Client::checkActiveJobsAsync()} . - * - * @example samples/V1beta3/JobsV1Beta3Client/check_active_jobs.php - * - * @param CheckActiveJobsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CheckActiveJobsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function checkActiveJobs(CheckActiveJobsRequest $request, array $callOptions = []): CheckActiveJobsResponse - { - return $this->startApiCall('CheckActiveJobs', $request, $callOptions)->wait(); - } - - /** - * Creates a Cloud Dataflow job. - * - * To create a job, we recommend using `projects.locations.jobs.create` with a - * [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - * `projects.jobs.create` is not recommended, as your job will always start - * in `us-central1`. - * - * The async variant is {@see JobsV1Beta3Client::createJobAsync()} . - * - * @example samples/V1beta3/JobsV1Beta3Client/create_job.php - * - * @param CreateJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Job - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createJob(CreateJobRequest $request, array $callOptions = []): Job - { - return $this->startApiCall('CreateJob', $request, $callOptions)->wait(); - } - - /** - * Gets the state of the specified Cloud Dataflow job. - * - * To get the state of a job, we recommend using `projects.locations.jobs.get` - * with a [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - * `projects.jobs.get` is not recommended, as you can only get the state of - * jobs that are running in `us-central1`. - * - * The async variant is {@see JobsV1Beta3Client::getJobAsync()} . - * - * @example samples/V1beta3/JobsV1Beta3Client/get_job.php - * - * @param GetJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Job - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getJob(GetJobRequest $request, array $callOptions = []): Job - { - return $this->startApiCall('GetJob', $request, $callOptions)->wait(); - } - - /** - * List the jobs of a project. - * - * To list the jobs of a project in a region, we recommend using - * `projects.locations.jobs.list` with a [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To - * list the all jobs across all regions, use `projects.jobs.aggregated`. Using - * `projects.jobs.list` is not recommended, as you can only get the list of - * jobs that are running in `us-central1`. - * - * The async variant is {@see JobsV1Beta3Client::listJobsAsync()} . - * - * @example samples/V1beta3/JobsV1Beta3Client/list_jobs.php - * - * @param ListJobsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listJobs(ListJobsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListJobs', $request, $callOptions); - } - - /** - * Snapshot the state of a streaming job. - * - * The async variant is {@see JobsV1Beta3Client::snapshotJobAsync()} . - * - * @example samples/V1beta3/JobsV1Beta3Client/snapshot_job.php - * - * @param SnapshotJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Snapshot - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function snapshotJob(SnapshotJobRequest $request, array $callOptions = []): Snapshot - { - return $this->startApiCall('SnapshotJob', $request, $callOptions)->wait(); - } - - /** - * Updates the state of an existing Cloud Dataflow job. - * - * To update the state of an existing job, we recommend using - * `projects.locations.jobs.update` with a [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - * `projects.jobs.update` is not recommended, as you can only update the state - * of jobs that are running in `us-central1`. - * - * The async variant is {@see JobsV1Beta3Client::updateJobAsync()} . - * - * @example samples/V1beta3/JobsV1Beta3Client/update_job.php - * - * @param UpdateJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Job - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateJob(UpdateJobRequest $request, array $callOptions = []): Job - { - return $this->startApiCall('UpdateJob', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/MessagesV1Beta3Client.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/MessagesV1Beta3Client.php deleted file mode 100644 index f06b766024c2..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/MessagesV1Beta3Client.php +++ /dev/null @@ -1,207 +0,0 @@ - listJobMessagesAsync(ListJobMessagesRequest $request, array $optionalArgs = []) - */ -final class MessagesV1Beta3Client -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.dataflow.v1beta3.MessagesV1Beta3'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/messages_v1_beta3_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/messages_v1_beta3_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/messages_v1_beta3_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/messages_v1_beta3_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * Request the job status. - * - * To request the status of a job, we recommend using - * `projects.locations.jobs.messages.list` with a [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - * `projects.jobs.messages.list` is not recommended, as you can only request - * the status of jobs that are running in `us-central1`. - * - * The async variant is {@see MessagesV1Beta3Client::listJobMessagesAsync()} . - * - * @example samples/V1beta3/MessagesV1Beta3Client/list_job_messages.php - * - * @param ListJobMessagesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listJobMessages(ListJobMessagesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListJobMessages', $request, $callOptions); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/MetricsV1Beta3Client.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/MetricsV1Beta3Client.php deleted file mode 100644 index 50dbb4edb36d..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/MetricsV1Beta3Client.php +++ /dev/null @@ -1,275 +0,0 @@ - getJobExecutionDetailsAsync(GetJobExecutionDetailsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJobMetricsAsync(GetJobMetricsRequest $request, array $optionalArgs = []) - * @method PromiseInterface getStageExecutionDetailsAsync(GetStageExecutionDetailsRequest $request, array $optionalArgs = []) - */ -final class MetricsV1Beta3Client -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.dataflow.v1beta3.MetricsV1Beta3'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/metrics_v1_beta3_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/metrics_v1_beta3_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/metrics_v1_beta3_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/metrics_v1_beta3_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * Request detailed information about the execution status of the job. - * - * EXPERIMENTAL. This API is subject to change or removal without notice. - * - * The async variant is {@see MetricsV1Beta3Client::getJobExecutionDetailsAsync()} - * . - * - * @example samples/V1beta3/MetricsV1Beta3Client/get_job_execution_details.php - * - * @param GetJobExecutionDetailsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 getJobExecutionDetails(GetJobExecutionDetailsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('GetJobExecutionDetails', $request, $callOptions); - } - - /** - * Request the job status. - * - * To request the status of a job, we recommend using - * `projects.locations.jobs.getMetrics` with a [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - * `projects.jobs.getMetrics` is not recommended, as you can only request the - * status of jobs that are running in `us-central1`. - * - * The async variant is {@see MetricsV1Beta3Client::getJobMetricsAsync()} . - * - * @example samples/V1beta3/MetricsV1Beta3Client/get_job_metrics.php - * - * @param GetJobMetricsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return JobMetrics - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getJobMetrics(GetJobMetricsRequest $request, array $callOptions = []): JobMetrics - { - return $this->startApiCall('GetJobMetrics', $request, $callOptions)->wait(); - } - - /** - * Request detailed information about the execution status of a stage of the - * job. - * - * EXPERIMENTAL. This API is subject to change or removal without notice. - * - * The async variant is - * {@see MetricsV1Beta3Client::getStageExecutionDetailsAsync()} . - * - * @example samples/V1beta3/MetricsV1Beta3Client/get_stage_execution_details.php - * - * @param GetStageExecutionDetailsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 getStageExecutionDetails(GetStageExecutionDetailsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('GetStageExecutionDetails', $request, $callOptions); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/SnapshotsV1Beta3Client.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/SnapshotsV1Beta3Client.php deleted file mode 100644 index 8f44153408dd..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/SnapshotsV1Beta3Client.php +++ /dev/null @@ -1,262 +0,0 @@ - deleteSnapshotAsync(DeleteSnapshotRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSnapshotAsync(GetSnapshotRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSnapshotsAsync(ListSnapshotsRequest $request, array $optionalArgs = []) - */ -final class SnapshotsV1Beta3Client -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.dataflow.v1beta3.SnapshotsV1Beta3'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/snapshots_v1_beta3_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/snapshots_v1_beta3_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/snapshots_v1_beta3_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/snapshots_v1_beta3_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * Deletes a snapshot. - * - * The async variant is {@see SnapshotsV1Beta3Client::deleteSnapshotAsync()} . - * - * @example samples/V1beta3/SnapshotsV1Beta3Client/delete_snapshot.php - * - * @param DeleteSnapshotRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeleteSnapshotResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteSnapshot(DeleteSnapshotRequest $request, array $callOptions = []): DeleteSnapshotResponse - { - return $this->startApiCall('DeleteSnapshot', $request, $callOptions)->wait(); - } - - /** - * Gets information about a snapshot. - * - * The async variant is {@see SnapshotsV1Beta3Client::getSnapshotAsync()} . - * - * @example samples/V1beta3/SnapshotsV1Beta3Client/get_snapshot.php - * - * @param GetSnapshotRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Snapshot - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getSnapshot(GetSnapshotRequest $request, array $callOptions = []): Snapshot - { - return $this->startApiCall('GetSnapshot', $request, $callOptions)->wait(); - } - - /** - * Lists snapshots. - * - * The async variant is {@see SnapshotsV1Beta3Client::listSnapshotsAsync()} . - * - * @example samples/V1beta3/SnapshotsV1Beta3Client/list_snapshots.php - * - * @param ListSnapshotsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListSnapshotsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listSnapshots(ListSnapshotsRequest $request, array $callOptions = []): ListSnapshotsResponse - { - return $this->startApiCall('ListSnapshots', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/TemplatesServiceClient.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/TemplatesServiceClient.php deleted file mode 100644 index b2d699f397fb..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Client/TemplatesServiceClient.php +++ /dev/null @@ -1,263 +0,0 @@ - createJobFromTemplateAsync(CreateJobFromTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTemplateAsync(GetTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface launchTemplateAsync(LaunchTemplateRequest $request, array $optionalArgs = []) - */ -final class TemplatesServiceClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.dataflow.v1beta3.TemplatesService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/templates_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/templates_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/templates_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/templates_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * Creates a Cloud Dataflow job from a template. - * - * The async variant is {@see TemplatesServiceClient::createJobFromTemplateAsync()} - * . - * - * @example samples/V1beta3/TemplatesServiceClient/create_job_from_template.php - * - * @param CreateJobFromTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Job - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createJobFromTemplate(CreateJobFromTemplateRequest $request, array $callOptions = []): Job - { - return $this->startApiCall('CreateJobFromTemplate', $request, $callOptions)->wait(); - } - - /** - * Get the template associated with a template. - * - * The async variant is {@see TemplatesServiceClient::getTemplateAsync()} . - * - * @example samples/V1beta3/TemplatesServiceClient/get_template.php - * - * @param GetTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GetTemplateResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getTemplate(GetTemplateRequest $request, array $callOptions = []): GetTemplateResponse - { - return $this->startApiCall('GetTemplate', $request, $callOptions)->wait(); - } - - /** - * Launch a template. - * - * The async variant is {@see TemplatesServiceClient::launchTemplateAsync()} . - * - * @example samples/V1beta3/TemplatesServiceClient/launch_template.php - * - * @param LaunchTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return LaunchTemplateResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function launchTemplate(LaunchTemplateRequest $request, array $callOptions = []): LaunchTemplateResponse - { - return $this->startApiCall('LaunchTemplate', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/FlexTemplatesServiceClient.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/FlexTemplatesServiceClient.php deleted file mode 100644 index 1fbed9cf5887..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/FlexTemplatesServiceClient.php +++ /dev/null @@ -1,36 +0,0 @@ -launchFlexTemplate(); - * } finally { - * $flexTemplatesServiceClient->close(); - * } - * ``` - * - * @experimental - * - * @deprecated Please use the new service client {@see \Google\Cloud\Dataflow\V1beta3\Client\FlexTemplatesServiceClient}. - */ -class FlexTemplatesServiceGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.dataflow.v1beta3.FlexTemplatesService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/flex_templates_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/flex_templates_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/flex_templates_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/flex_templates_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * Launch a job with a FlexTemplate. - * - * Sample code: - * ``` - * $flexTemplatesServiceClient = new FlexTemplatesServiceClient(); - * try { - * $response = $flexTemplatesServiceClient->launchFlexTemplate(); - * } finally { - * $flexTemplatesServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Required. The ID of the Cloud Platform project that the job belongs to. - * @type LaunchFlexTemplateParameter $launchParameter - * Required. Parameter to launch a job form Flex Template. - * @type string $location - * Required. The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. E.g., us-central1, us-west1. - * @type bool $validateOnly - * If true, the request is validated but not actually executed. - * Defaults to false. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\LaunchFlexTemplateResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function launchFlexTemplate(array $optionalArgs = []) - { - $request = new LaunchFlexTemplateRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['launchParameter'])) { - $request->setLaunchParameter($optionalArgs['launchParameter']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('LaunchFlexTemplate', LaunchFlexTemplateResponse::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/JobsV1Beta3GapicClient.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/JobsV1Beta3GapicClient.php deleted file mode 100644 index c8a3328c93d0..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/JobsV1Beta3GapicClient.php +++ /dev/null @@ -1,733 +0,0 @@ -aggregatedListJobs(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $jobsV1Beta3Client->aggregatedListJobs(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $jobsV1Beta3Client->close(); - * } - * ``` - * - * @experimental - * - * @deprecated Please use the new service client {@see \Google\Cloud\Dataflow\V1beta3\Client\JobsV1Beta3Client}. - */ -class JobsV1Beta3GapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.dataflow.v1beta3.JobsV1Beta3'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/jobs_v1_beta3_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/jobs_v1_beta3_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/jobs_v1_beta3_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/jobs_v1_beta3_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * List the jobs of a project across all regions. - * - * Sample code: - * ``` - * $jobsV1Beta3Client = new JobsV1Beta3Client(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $jobsV1Beta3Client->aggregatedListJobs(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $jobsV1Beta3Client->aggregatedListJobs(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $jobsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type int $filter - * The kind of filter to use. - * For allowed values, use constants defined on {@see \Google\Cloud\Dataflow\V1beta3\ListJobsRequest\Filter} - * @type string $projectId - * The project which owns the jobs. - * @type int $view - * Deprecated. ListJobs always returns summaries now. - * Use GetJob for other JobViews. - * For allowed values, use constants defined on {@see \Google\Cloud\Dataflow\V1beta3\JobView} - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function aggregatedListJobs(array $optionalArgs = []) - { - $request = new ListJobsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['filter'])) { - $request->setFilter($optionalArgs['filter']); - } - - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['view'])) { - $request->setView($optionalArgs['view']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('AggregatedListJobs', $optionalArgs, ListJobsResponse::class, $request); - } - - /** - * Check for existence of active jobs in the given project across all regions. - * - * Sample code: - * ``` - * $jobsV1Beta3Client = new JobsV1Beta3Client(); - * try { - * $response = $jobsV1Beta3Client->checkActiveJobs(); - * } finally { - * $jobsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * The project which owns the jobs. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\CheckActiveJobsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function checkActiveJobs(array $optionalArgs = []) - { - $request = new CheckActiveJobsRequest(); - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - } - - return $this->startCall('CheckActiveJobs', CheckActiveJobsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Creates a Cloud Dataflow job. - * - * To create a job, we recommend using `projects.locations.jobs.create` with a - * [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - * `projects.jobs.create` is not recommended, as your job will always start - * in `us-central1`. - * - * Sample code: - * ``` - * $jobsV1Beta3Client = new JobsV1Beta3Client(); - * try { - * $response = $jobsV1Beta3Client->createJob(); - * } finally { - * $jobsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * The ID of the Cloud Platform project that the job belongs to. - * @type Job $job - * The job to create. - * @type int $view - * The level of information requested in response. - * For allowed values, use constants defined on {@see \Google\Cloud\Dataflow\V1beta3\JobView} - * @type string $replaceJobId - * Deprecated. This field is now in the Job message. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\Job - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createJob(array $optionalArgs = []) - { - $request = new CreateJobRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['job'])) { - $request->setJob($optionalArgs['job']); - } - - if (isset($optionalArgs['view'])) { - $request->setView($optionalArgs['view']); - } - - if (isset($optionalArgs['replaceJobId'])) { - $request->setReplaceJobId($optionalArgs['replaceJobId']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateJob', Job::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets the state of the specified Cloud Dataflow job. - * - * To get the state of a job, we recommend using `projects.locations.jobs.get` - * with a [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - * `projects.jobs.get` is not recommended, as you can only get the state of - * jobs that are running in `us-central1`. - * - * Sample code: - * ``` - * $jobsV1Beta3Client = new JobsV1Beta3Client(); - * try { - * $response = $jobsV1Beta3Client->getJob(); - * } finally { - * $jobsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * The ID of the Cloud Platform project that the job belongs to. - * @type string $jobId - * The job ID. - * @type int $view - * The level of information requested in response. - * For allowed values, use constants defined on {@see \Google\Cloud\Dataflow\V1beta3\JobView} - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\Job - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getJob(array $optionalArgs = []) - { - $request = new GetJobRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['jobId'])) { - $request->setJobId($optionalArgs['jobId']); - $requestParamHeaders['job_id'] = $optionalArgs['jobId']; - } - - if (isset($optionalArgs['view'])) { - $request->setView($optionalArgs['view']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetJob', Job::class, $optionalArgs, $request)->wait(); - } - - /** - * List the jobs of a project. - * - * To list the jobs of a project in a region, we recommend using - * `projects.locations.jobs.list` with a [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). To - * list the all jobs across all regions, use `projects.jobs.aggregated`. Using - * `projects.jobs.list` is not recommended, as you can only get the list of - * jobs that are running in `us-central1`. - * - * Sample code: - * ``` - * $jobsV1Beta3Client = new JobsV1Beta3Client(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $jobsV1Beta3Client->listJobs(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $jobsV1Beta3Client->listJobs(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $jobsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type int $filter - * The kind of filter to use. - * For allowed values, use constants defined on {@see \Google\Cloud\Dataflow\V1beta3\ListJobsRequest\Filter} - * @type string $projectId - * The project which owns the jobs. - * @type int $view - * Deprecated. ListJobs always returns summaries now. - * Use GetJob for other JobViews. - * For allowed values, use constants defined on {@see \Google\Cloud\Dataflow\V1beta3\JobView} - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listJobs(array $optionalArgs = []) - { - $request = new ListJobsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['filter'])) { - $request->setFilter($optionalArgs['filter']); - } - - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['view'])) { - $request->setView($optionalArgs['view']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListJobs', $optionalArgs, ListJobsResponse::class, $request); - } - - /** - * Snapshot the state of a streaming job. - * - * Sample code: - * ``` - * $jobsV1Beta3Client = new JobsV1Beta3Client(); - * try { - * $response = $jobsV1Beta3Client->snapshotJob(); - * } finally { - * $jobsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * The project which owns the job to be snapshotted. - * @type string $jobId - * The job to be snapshotted. - * @type Duration $ttl - * TTL for the snapshot. - * @type string $location - * The location that contains this job. - * @type bool $snapshotSources - * If true, perform snapshots for sources which support this. - * @type string $description - * User specified description of the snapshot. Maybe empty. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\Snapshot - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function snapshotJob(array $optionalArgs = []) - { - $request = new SnapshotJobRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['jobId'])) { - $request->setJobId($optionalArgs['jobId']); - $requestParamHeaders['job_id'] = $optionalArgs['jobId']; - } - - if (isset($optionalArgs['ttl'])) { - $request->setTtl($optionalArgs['ttl']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - if (isset($optionalArgs['snapshotSources'])) { - $request->setSnapshotSources($optionalArgs['snapshotSources']); - } - - if (isset($optionalArgs['description'])) { - $request->setDescription($optionalArgs['description']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SnapshotJob', Snapshot::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the state of an existing Cloud Dataflow job. - * - * To update the state of an existing job, we recommend using - * `projects.locations.jobs.update` with a [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - * `projects.jobs.update` is not recommended, as you can only update the state - * of jobs that are running in `us-central1`. - * - * Sample code: - * ``` - * $jobsV1Beta3Client = new JobsV1Beta3Client(); - * try { - * $response = $jobsV1Beta3Client->updateJob(); - * } finally { - * $jobsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * The ID of the Cloud Platform project that the job belongs to. - * @type string $jobId - * The job ID. - * @type Job $job - * The updated job. - * Only the job state is updatable; other fields will be ignored. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains this job. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\Job - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateJob(array $optionalArgs = []) - { - $request = new UpdateJobRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['jobId'])) { - $request->setJobId($optionalArgs['jobId']); - $requestParamHeaders['job_id'] = $optionalArgs['jobId']; - } - - if (isset($optionalArgs['job'])) { - $request->setJob($optionalArgs['job']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateJob', Job::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/MessagesV1Beta3GapicClient.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/MessagesV1Beta3GapicClient.php deleted file mode 100644 index b67bfaec156a..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/MessagesV1Beta3GapicClient.php +++ /dev/null @@ -1,300 +0,0 @@ -listJobMessages(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $messagesV1Beta3Client->listJobMessages(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $messagesV1Beta3Client->close(); - * } - * ``` - * - * @experimental - * - * @deprecated Please use the new service client {@see \Google\Cloud\Dataflow\V1beta3\Client\MessagesV1Beta3Client}. - */ -class MessagesV1Beta3GapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.dataflow.v1beta3.MessagesV1Beta3'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/messages_v1_beta3_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/messages_v1_beta3_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/messages_v1_beta3_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/messages_v1_beta3_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * Request the job status. - * - * To request the status of a job, we recommend using - * `projects.locations.jobs.messages.list` with a [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - * `projects.jobs.messages.list` is not recommended, as you can only request - * the status of jobs that are running in `us-central1`. - * - * Sample code: - * ``` - * $messagesV1Beta3Client = new MessagesV1Beta3Client(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $messagesV1Beta3Client->listJobMessages(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $messagesV1Beta3Client->listJobMessages(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $messagesV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * A project id. - * @type string $jobId - * The job to get messages about. - * @type int $minimumImportance - * Filter to only get messages with importance >= level - * For allowed values, use constants defined on {@see \Google\Cloud\Dataflow\V1beta3\JobMessageImportance} - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type Timestamp $startTime - * If specified, return only messages with timestamps >= start_time. - * The default is the job creation time (i.e. beginning of messages). - * @type Timestamp $endTime - * Return only messages with timestamps < end_time. The default is now - * (i.e. return up to the latest messages available). - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listJobMessages(array $optionalArgs = []) - { - $request = new ListJobMessagesRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['jobId'])) { - $request->setJobId($optionalArgs['jobId']); - $requestParamHeaders['job_id'] = $optionalArgs['jobId']; - } - - if (isset($optionalArgs['minimumImportance'])) { - $request->setMinimumImportance($optionalArgs['minimumImportance']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['startTime'])) { - $request->setStartTime($optionalArgs['startTime']); - } - - if (isset($optionalArgs['endTime'])) { - $request->setEndTime($optionalArgs['endTime']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListJobMessages', $optionalArgs, ListJobMessagesResponse::class, $request); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/MetricsV1Beta3GapicClient.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/MetricsV1Beta3GapicClient.php deleted file mode 100644 index 5707afa361c9..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/MetricsV1Beta3GapicClient.php +++ /dev/null @@ -1,463 +0,0 @@ -getJobExecutionDetails(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $metricsV1Beta3Client->getJobExecutionDetails(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $metricsV1Beta3Client->close(); - * } - * ``` - * - * @experimental - * - * @deprecated Please use the new service client {@see \Google\Cloud\Dataflow\V1beta3\Client\MetricsV1Beta3Client}. - */ -class MetricsV1Beta3GapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.dataflow.v1beta3.MetricsV1Beta3'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/metrics_v1_beta3_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/metrics_v1_beta3_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/metrics_v1_beta3_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/metrics_v1_beta3_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * Request detailed information about the execution status of the job. - * - * EXPERIMENTAL. This API is subject to change or removal without notice. - * - * Sample code: - * ``` - * $metricsV1Beta3Client = new MetricsV1Beta3Client(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $metricsV1Beta3Client->getJobExecutionDetails(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $metricsV1Beta3Client->getJobExecutionDetails(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $metricsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * A project id. - * @type string $jobId - * The job to get execution details for. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getJobExecutionDetails(array $optionalArgs = []) - { - $request = new GetJobExecutionDetailsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['jobId'])) { - $request->setJobId($optionalArgs['jobId']); - $requestParamHeaders['job_id'] = $optionalArgs['jobId']; - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('GetJobExecutionDetails', $optionalArgs, JobExecutionDetails::class, $request); - } - - /** - * Request the job status. - * - * To request the status of a job, we recommend using - * `projects.locations.jobs.getMetrics` with a [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints). Using - * `projects.jobs.getMetrics` is not recommended, as you can only request the - * status of jobs that are running in `us-central1`. - * - * Sample code: - * ``` - * $metricsV1Beta3Client = new MetricsV1Beta3Client(); - * try { - * $response = $metricsV1Beta3Client->getJobMetrics(); - * } finally { - * $metricsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * A project id. - * @type string $jobId - * The job to get metrics for. - * @type Timestamp $startTime - * Return only metric data that has changed since this time. - * Default is to return all information about all metrics for the job. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\JobMetrics - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getJobMetrics(array $optionalArgs = []) - { - $request = new GetJobMetricsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['jobId'])) { - $request->setJobId($optionalArgs['jobId']); - $requestParamHeaders['job_id'] = $optionalArgs['jobId']; - } - - if (isset($optionalArgs['startTime'])) { - $request->setStartTime($optionalArgs['startTime']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetJobMetrics', JobMetrics::class, $optionalArgs, $request)->wait(); - } - - /** - * Request detailed information about the execution status of a stage of the - * job. - * - * EXPERIMENTAL. This API is subject to change or removal without notice. - * - * Sample code: - * ``` - * $metricsV1Beta3Client = new MetricsV1Beta3Client(); - * try { - * // Iterate over pages of elements - * $pagedResponse = $metricsV1Beta3Client->getStageExecutionDetails(); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $metricsV1Beta3Client->getStageExecutionDetails(); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $metricsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * A project id. - * @type string $jobId - * The job to get execution details for. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) that - * contains the job specified by job_id. - * @type string $stageId - * The stage for which to fetch information. - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type Timestamp $startTime - * Lower time bound of work items to include, by start time. - * @type Timestamp $endTime - * Upper time bound of work items to include, by start time. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getStageExecutionDetails(array $optionalArgs = []) - { - $request = new GetStageExecutionDetailsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['jobId'])) { - $request->setJobId($optionalArgs['jobId']); - $requestParamHeaders['job_id'] = $optionalArgs['jobId']; - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - if (isset($optionalArgs['stageId'])) { - $request->setStageId($optionalArgs['stageId']); - $requestParamHeaders['stage_id'] = $optionalArgs['stageId']; - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - if (isset($optionalArgs['startTime'])) { - $request->setStartTime($optionalArgs['startTime']); - } - - if (isset($optionalArgs['endTime'])) { - $request->setEndTime($optionalArgs['endTime']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('GetStageExecutionDetails', $optionalArgs, StageExecutionDetails::class, $request); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/SnapshotsV1Beta3GapicClient.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/SnapshotsV1Beta3GapicClient.php deleted file mode 100644 index fff1cfaa3c78..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/SnapshotsV1Beta3GapicClient.php +++ /dev/null @@ -1,348 +0,0 @@ -deleteSnapshot(); - * } finally { - * $snapshotsV1Beta3Client->close(); - * } - * ``` - * - * @experimental - * - * @deprecated Please use the new service client {@see \Google\Cloud\Dataflow\V1beta3\Client\SnapshotsV1Beta3Client}. - */ -class SnapshotsV1Beta3GapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.dataflow.v1beta3.SnapshotsV1Beta3'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/snapshots_v1_beta3_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/snapshots_v1_beta3_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/snapshots_v1_beta3_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/snapshots_v1_beta3_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * Deletes a snapshot. - * - * Sample code: - * ``` - * $snapshotsV1Beta3Client = new SnapshotsV1Beta3Client(); - * try { - * $response = $snapshotsV1Beta3Client->deleteSnapshot(); - * } finally { - * $snapshotsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * The ID of the Cloud Platform project that the snapshot belongs to. - * @type string $snapshotId - * The ID of the snapshot. - * @type string $location - * The location that contains this snapshot. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\DeleteSnapshotResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteSnapshot(array $optionalArgs = []) - { - $request = new DeleteSnapshotRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['snapshotId'])) { - $request->setSnapshotId($optionalArgs['snapshotId']); - $requestParamHeaders['snapshot_id'] = $optionalArgs['snapshotId']; - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteSnapshot', DeleteSnapshotResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets information about a snapshot. - * - * Sample code: - * ``` - * $snapshotsV1Beta3Client = new SnapshotsV1Beta3Client(); - * try { - * $response = $snapshotsV1Beta3Client->getSnapshot(); - * } finally { - * $snapshotsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * The ID of the Cloud Platform project that the snapshot belongs to. - * @type string $snapshotId - * The ID of the snapshot. - * @type string $location - * The location that contains this snapshot. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\Snapshot - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getSnapshot(array $optionalArgs = []) - { - $request = new GetSnapshotRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['snapshotId'])) { - $request->setSnapshotId($optionalArgs['snapshotId']); - $requestParamHeaders['snapshot_id'] = $optionalArgs['snapshotId']; - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetSnapshot', Snapshot::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists snapshots. - * - * Sample code: - * ``` - * $snapshotsV1Beta3Client = new SnapshotsV1Beta3Client(); - * try { - * $response = $snapshotsV1Beta3Client->listSnapshots(); - * } finally { - * $snapshotsV1Beta3Client->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * The project ID to list snapshots for. - * @type string $jobId - * If specified, list snapshots created from this job. - * @type string $location - * The location to list snapshots in. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\ListSnapshotsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listSnapshots(array $optionalArgs = []) - { - $request = new ListSnapshotsRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['jobId'])) { - $request->setJobId($optionalArgs['jobId']); - $requestParamHeaders['job_id'] = $optionalArgs['jobId']; - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ListSnapshots', ListSnapshotsResponse::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/TemplatesServiceGapicClient.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/TemplatesServiceGapicClient.php deleted file mode 100644 index 7edf53169fa5..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/Gapic/TemplatesServiceGapicClient.php +++ /dev/null @@ -1,405 +0,0 @@ -createJobFromTemplate(); - * } finally { - * $templatesServiceClient->close(); - * } - * ``` - * - * @experimental - * - * @deprecated Please use the new service client {@see \Google\Cloud\Dataflow\V1beta3\Client\TemplatesServiceClient}. - */ -class TemplatesServiceGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.dataflow.v1beta3.TemplatesService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'dataflow.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dataflow.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/compute', - 'https://www.googleapis.com/auth/compute.readonly', - 'https://www.googleapis.com/auth/userinfo.email', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/templates_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/templates_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/templates_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/templates_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'dataflow.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); - } - - /** - * Creates a Cloud Dataflow job from a template. - * - * Sample code: - * ``` - * $templatesServiceClient = new TemplatesServiceClient(); - * try { - * $response = $templatesServiceClient->createJobFromTemplate(); - * } finally { - * $templatesServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Required. The ID of the Cloud Platform project that the job belongs to. - * @type string $jobName - * Required. The job name to use for the created job. - * @type string $gcsPath - * Required. A Cloud Storage path to the template from which to - * create the job. - * Must be a valid Cloud Storage URL, beginning with `gs://`. - * @type array $parameters - * The runtime parameters to pass to the job. - * @type RuntimeEnvironment $environment - * The runtime environment for the job. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\Job - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function createJobFromTemplate(array $optionalArgs = []) - { - $request = new CreateJobFromTemplateRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['jobName'])) { - $request->setJobName($optionalArgs['jobName']); - } - - if (isset($optionalArgs['gcsPath'])) { - $request->setGcsPath($optionalArgs['gcsPath']); - } - - if (isset($optionalArgs['parameters'])) { - $request->setParameters($optionalArgs['parameters']); - } - - if (isset($optionalArgs['environment'])) { - $request->setEnvironment($optionalArgs['environment']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('CreateJobFromTemplate', Job::class, $optionalArgs, $request)->wait(); - } - - /** - * Get the template associated with a template. - * - * Sample code: - * ``` - * $templatesServiceClient = new TemplatesServiceClient(); - * try { - * $response = $templatesServiceClient->getTemplate(); - * } finally { - * $templatesServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Required. The ID of the Cloud Platform project that the job belongs to. - * @type string $gcsPath - * Required. A Cloud Storage path to the template from which to - * create the job. - * Must be valid Cloud Storage URL, beginning with 'gs://'. - * @type int $view - * The view to retrieve. Defaults to METADATA_ONLY. - * For allowed values, use constants defined on {@see \Google\Cloud\Dataflow\V1beta3\GetTemplateRequest\TemplateView} - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\GetTemplateResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getTemplate(array $optionalArgs = []) - { - $request = new GetTemplateRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['gcsPath'])) { - $request->setGcsPath($optionalArgs['gcsPath']); - } - - if (isset($optionalArgs['view'])) { - $request->setView($optionalArgs['view']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetTemplate', GetTemplateResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Launch a template. - * - * Sample code: - * ``` - * $templatesServiceClient = new TemplatesServiceClient(); - * try { - * $response = $templatesServiceClient->launchTemplate(); - * } finally { - * $templatesServiceClient->close(); - * } - * ``` - * - * @param array $optionalArgs { - * Optional. - * - * @type string $projectId - * Required. The ID of the Cloud Platform project that the job belongs to. - * @type bool $validateOnly - * If true, the request is validated but not actually executed. - * Defaults to false. - * @type string $gcsPath - * A Cloud Storage path to the template from which to create - * the job. - * Must be valid Cloud Storage URL, beginning with 'gs://'. - * @type DynamicTemplateLaunchParams $dynamicTemplate - * Params for launching a dynamic template. - * @type LaunchTemplateParameters $launchParameters - * The parameters of the template to launch. This should be part of the - * body of the POST request. - * @type string $location - * The [regional endpoint] - * (https://cloud.google.com/dataflow/docs/concepts/regional-endpoints) to - * which to direct the request. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Dataflow\V1beta3\LaunchTemplateResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function launchTemplate(array $optionalArgs = []) - { - $request = new LaunchTemplateRequest(); - $requestParamHeaders = []; - if (isset($optionalArgs['projectId'])) { - $request->setProjectId($optionalArgs['projectId']); - $requestParamHeaders['project_id'] = $optionalArgs['projectId']; - } - - if (isset($optionalArgs['validateOnly'])) { - $request->setValidateOnly($optionalArgs['validateOnly']); - } - - if (isset($optionalArgs['gcsPath'])) { - $request->setGcsPath($optionalArgs['gcsPath']); - } - - if (isset($optionalArgs['dynamicTemplate'])) { - $request->setDynamicTemplate($optionalArgs['dynamicTemplate']); - } - - if (isset($optionalArgs['launchParameters'])) { - $request->setLaunchParameters($optionalArgs['launchParameters']); - } - - if (isset($optionalArgs['location'])) { - $request->setLocation($optionalArgs['location']); - $requestParamHeaders['location'] = $optionalArgs['location']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('LaunchTemplate', LaunchTemplateResponse::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/JobsV1Beta3Client.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/JobsV1Beta3Client.php deleted file mode 100644 index d87b46e39dc3..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/JobsV1Beta3Client.php +++ /dev/null @@ -1,36 +0,0 @@ - [ - 'google.dataflow.v1beta3.FlexTemplatesService' => [ - 'LaunchFlexTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\LaunchFlexTemplateResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/flex_templates_service_rest_client_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/flex_templates_service_rest_client_config.php deleted file mode 100644 index 393ccd3582f6..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/flex_templates_service_rest_client_config.php +++ /dev/null @@ -1,46 +0,0 @@ - [ - 'google.dataflow.v1beta3.FlexTemplatesService' => [ - 'LaunchFlexTemplate' => [ - 'method' => 'post', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/flexTemplates:launch', - 'body' => '*', - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_client_config.json b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_client_config.json deleted file mode 100644 index 2f046efec0ee..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_client_config.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "interfaces": { - "google.dataflow.v1beta3.JobsV1Beta3": { - "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": { - "AggregatedListJobs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CheckActiveJobs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListJobs": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "SnapshotJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateJob": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_descriptor_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_descriptor_config.php deleted file mode 100644 index 8e33090209ae..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_descriptor_config.php +++ /dev/null @@ -1,168 +0,0 @@ - [ - 'google.dataflow.v1beta3.JobsV1Beta3' => [ - 'AggregatedListJobs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getJobs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\ListJobsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - ], - ], - 'CheckActiveJobs' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\CheckActiveJobsResponse', - ], - 'CreateJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\Job', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'GetJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\Job', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'job_id', - 'fieldAccessors' => [ - 'getJobId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'ListJobs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getJobs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\ListJobsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'SnapshotJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\Snapshot', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'job_id', - 'fieldAccessors' => [ - 'getJobId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'UpdateJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\Job', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'job_id', - 'fieldAccessors' => [ - 'getJobId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_rest_client_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_rest_client_config.php deleted file mode 100644 index dbd750aed7df..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/jobs_v1_beta3_rest_client_config.php +++ /dev/null @@ -1,171 +0,0 @@ - [ - 'google.dataflow.v1beta3.JobsV1Beta3' => [ - 'AggregatedListJobs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/jobs:aggregated', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'CreateJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/jobs', - 'body' => 'job', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1b3/projects/{project_id}/jobs', - 'body' => 'job', - ], - ], - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'GetJob' => [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/jobs/{job_id}', - ], - ], - 'placeholders' => [ - 'job_id' => [ - 'getters' => [ - 'getJobId', - ], - ], - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'ListJobs' => [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/jobs', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/jobs', - ], - ], - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'SnapshotJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}:snapshot', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1b3/projects/{project_id}/jobs/{job_id}:snapshot', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'job_id' => [ - 'getters' => [ - 'getJobId', - ], - ], - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'UpdateJob' => [ - 'method' => 'put', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}', - 'body' => 'job', - 'additionalBindings' => [ - [ - 'method' => 'put', - 'uriTemplate' => '/v1b3/projects/{project_id}/jobs/{job_id}', - 'body' => 'job', - ], - ], - 'placeholders' => [ - 'job_id' => [ - 'getters' => [ - 'getJobId', - ], - ], - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_client_config.json b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_client_config.json deleted file mode 100644 index 8c4a078dceba..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_client_config.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "interfaces": { - "google.dataflow.v1beta3.MessagesV1Beta3": { - "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": { - "ListJobMessages": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_descriptor_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_descriptor_config.php deleted file mode 100644 index e0f8ede8402a..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_descriptor_config.php +++ /dev/null @@ -1,60 +0,0 @@ - [ - 'google.dataflow.v1beta3.MessagesV1Beta3' => [ - 'ListJobMessages' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getJobMessages', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\ListJobMessagesResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'job_id', - 'fieldAccessors' => [ - 'getJobId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_rest_client_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_rest_client_config.php deleted file mode 100644 index 3edf36424b49..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/messages_v1_beta3_rest_client_config.php +++ /dev/null @@ -1,56 +0,0 @@ - [ - 'google.dataflow.v1beta3.MessagesV1Beta3' => [ - 'ListJobMessages' => [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/messages', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/jobs/{job_id}/messages', - ], - ], - 'placeholders' => [ - 'job_id' => [ - 'getters' => [ - 'getJobId', - ], - ], - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_client_config.json b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_client_config.json deleted file mode 100644 index 8020a4ba0bb4..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_client_config.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "interfaces": { - "google.dataflow.v1beta3.MetricsV1Beta3": { - "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": { - "GetJobExecutionDetails": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetJobMetrics": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetStageExecutionDetails": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_descriptor_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_descriptor_config.php deleted file mode 100644 index 1424dceb6344..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_descriptor_config.php +++ /dev/null @@ -1,122 +0,0 @@ - [ - 'google.dataflow.v1beta3.MetricsV1Beta3' => [ - 'GetJobExecutionDetails' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getStages', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\JobExecutionDetails', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - [ - 'keyName' => 'job_id', - 'fieldAccessors' => [ - 'getJobId', - ], - ], - ], - ], - 'GetJobMetrics' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\JobMetrics', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'job_id', - 'fieldAccessors' => [ - 'getJobId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'GetStageExecutionDetails' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getWorkers', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\StageExecutionDetails', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - [ - 'keyName' => 'job_id', - 'fieldAccessors' => [ - 'getJobId', - ], - ], - [ - 'keyName' => 'stage_id', - 'fieldAccessors' => [ - 'getStageId', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_rest_client_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_rest_client_config.php deleted file mode 100644 index 847c7a9b0cb4..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/metrics_v1_beta3_rest_client_config.php +++ /dev/null @@ -1,103 +0,0 @@ - [ - 'google.dataflow.v1beta3.MetricsV1Beta3' => [ - 'GetJobExecutionDetails' => [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/executionDetails', - 'placeholders' => [ - 'job_id' => [ - 'getters' => [ - 'getJobId', - ], - ], - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'GetJobMetrics' => [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/metrics', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/jobs/{job_id}/metrics', - ], - ], - 'placeholders' => [ - 'job_id' => [ - 'getters' => [ - 'getJobId', - ], - ], - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'GetStageExecutionDetails' => [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/stages/{stage_id}/executionDetails', - 'placeholders' => [ - 'job_id' => [ - 'getters' => [ - 'getJobId', - ], - ], - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'stage_id' => [ - 'getters' => [ - 'getStageId', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_client_config.json b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_client_config.json deleted file mode 100644 index 2c3ff40757ba..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_client_config.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "interfaces": { - "google.dataflow.v1beta3.SnapshotsV1Beta3": { - "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": { - "DeleteSnapshot": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetSnapshot": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListSnapshots": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_descriptor_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_descriptor_config.php deleted file mode 100644 index 16a981abe7fa..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_descriptor_config.php +++ /dev/null @@ -1,100 +0,0 @@ - [ - 'google.dataflow.v1beta3.SnapshotsV1Beta3' => [ - 'DeleteSnapshot' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\DeleteSnapshotResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - [ - 'keyName' => 'snapshot_id', - 'fieldAccessors' => [ - 'getSnapshotId', - ], - ], - ], - ], - 'GetSnapshot' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\Snapshot', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'snapshot_id', - 'fieldAccessors' => [ - 'getSnapshotId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'ListSnapshots' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\ListSnapshotsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - [ - 'keyName' => 'job_id', - 'fieldAccessors' => [ - 'getJobId', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_rest_client_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_rest_client_config.php deleted file mode 100644 index 85094b7f9fee..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/snapshots_v1_beta3_rest_client_config.php +++ /dev/null @@ -1,114 +0,0 @@ - [ - 'google.dataflow.v1beta3.SnapshotsV1Beta3' => [ - 'DeleteSnapshot' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1b3/projects/{project_id}/snapshots', - ], - ], - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'snapshot_id' => [ - 'getters' => [ - 'getSnapshotId', - ], - ], - ], - ], - 'GetSnapshot' => [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/snapshots/{snapshot_id}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/snapshots/{snapshot_id}', - ], - ], - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - 'snapshot_id' => [ - 'getters' => [ - 'getSnapshotId', - ], - ], - ], - ], - 'ListSnapshots' => [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/jobs/{job_id}/snapshots', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/snapshots', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/snapshots', - ], - ], - 'placeholders' => [ - 'job_id' => [ - 'getters' => [ - 'getJobId', - ], - ], - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_client_config.json b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_client_config.json deleted file mode 100644 index b84ee3f09cfc..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_client_config.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "interfaces": { - "google.dataflow.v1beta3.TemplatesService": { - "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": { - "CreateJobFromTemplate": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetTemplate": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "LaunchTemplate": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_descriptor_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_descriptor_config.php deleted file mode 100644 index 63d551030482..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_descriptor_config.php +++ /dev/null @@ -1,82 +0,0 @@ - [ - 'google.dataflow.v1beta3.TemplatesService' => [ - 'CreateJobFromTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\Job', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'GetTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\GetTemplateResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'LaunchTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dataflow\V1beta3\LaunchTemplateResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_rest_client_config.php b/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_rest_client_config.php deleted file mode 100644 index ca4b9b599d05..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/src/V1beta3/resources/templates_service_rest_client_config.php +++ /dev/null @@ -1,99 +0,0 @@ - [ - 'google.dataflow.v1beta3.TemplatesService' => [ - 'CreateJobFromTemplate' => [ - 'method' => 'post', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/templates', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1b3/projects/{project_id}/templates', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'GetTemplate' => [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/templates:get', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1b3/projects/{project_id}/templates:get', - ], - ], - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'LaunchTemplate' => [ - 'method' => 'post', - 'uriTemplate' => '/v1b3/projects/{project_id}/locations/{location}/templates:launch', - 'body' => 'launch_parameters', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1b3/projects/{project_id}/templates:launch', - 'body' => 'launch_parameters', - ], - ], - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/FlexTemplatesServiceClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/FlexTemplatesServiceClientTest.php deleted file mode 100644 index 30a5eeaf7286..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/FlexTemplatesServiceClientTest.php +++ /dev/null @@ -1,138 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return FlexTemplatesServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new FlexTemplatesServiceClient($options); - } - - /** @test */ - public function launchFlexTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new LaunchFlexTemplateResponse(); - $transport->addResponse($expectedResponse); - $request = new LaunchFlexTemplateRequest(); - $response = $gapicClient->launchFlexTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.FlexTemplatesService/LaunchFlexTemplate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function launchFlexTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 LaunchFlexTemplateRequest(); - try { - $gapicClient->launchFlexTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function launchFlexTemplateAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new LaunchFlexTemplateResponse(); - $transport->addResponse($expectedResponse); - $request = new LaunchFlexTemplateRequest(); - $response = $gapicClient->launchFlexTemplateAsync($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.dataflow.v1beta3.FlexTemplatesService/LaunchFlexTemplate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/JobsV1Beta3ClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/JobsV1Beta3ClientTest.php deleted file mode 100644 index c5c955ecfa62..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/JobsV1Beta3ClientTest.php +++ /dev/null @@ -1,574 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return JobsV1Beta3Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new JobsV1Beta3Client($options); - } - - /** @test */ - public function aggregatedListJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobsElement = new Job(); - $jobs = [ - $jobsElement, - ]; - $expectedResponse = new ListJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobs($jobs); - $transport->addResponse($expectedResponse); - $request = new ListJobsRequest(); - $response = $gapicClient->aggregatedListJobs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/AggregatedListJobs', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function aggregatedListJobsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 ListJobsRequest(); - try { - $gapicClient->aggregatedListJobs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkActiveJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $activeJobsExist = false; - $expectedResponse = new CheckActiveJobsResponse(); - $expectedResponse->setActiveJobsExist($activeJobsExist); - $transport->addResponse($expectedResponse); - $request = new CheckActiveJobsRequest(); - $response = $gapicClient->checkActiveJobs($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/CheckActiveJobs', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkActiveJobsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 CheckActiveJobsRequest(); - try { - $gapicClient->checkActiveJobs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $name = 'name3373707'; - $stepsLocation = 'stepsLocation-354969139'; - $replaceJobId2 = 'replaceJobId2-609521029'; - $clientRequestId = 'clientRequestId-1902516801'; - $replacedByJobId = 'replacedByJobId-671370122'; - $location2 = 'location21541837352'; - $createdFromSnapshotId = 'createdFromSnapshotId1520659672'; - $satisfiesPzs = false; - $expectedResponse = new Job(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setName($name); - $expectedResponse->setStepsLocation($stepsLocation); - $expectedResponse->setReplaceJobId($replaceJobId2); - $expectedResponse->setClientRequestId($clientRequestId); - $expectedResponse->setReplacedByJobId($replacedByJobId); - $expectedResponse->setLocation($location2); - $expectedResponse->setCreatedFromSnapshotId($createdFromSnapshotId); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - $request = new CreateJobRequest(); - $response = $gapicClient->createJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/CreateJob', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 CreateJobRequest(); - try { - $gapicClient->createJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $name = 'name3373707'; - $stepsLocation = 'stepsLocation-354969139'; - $replaceJobId = 'replaceJobId459700424'; - $clientRequestId = 'clientRequestId-1902516801'; - $replacedByJobId = 'replacedByJobId-671370122'; - $location2 = 'location21541837352'; - $createdFromSnapshotId = 'createdFromSnapshotId1520659672'; - $satisfiesPzs = false; - $expectedResponse = new Job(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setName($name); - $expectedResponse->setStepsLocation($stepsLocation); - $expectedResponse->setReplaceJobId($replaceJobId); - $expectedResponse->setClientRequestId($clientRequestId); - $expectedResponse->setReplacedByJobId($replacedByJobId); - $expectedResponse->setLocation($location2); - $expectedResponse->setCreatedFromSnapshotId($createdFromSnapshotId); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - $request = new GetJobRequest(); - $response = $gapicClient->getJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/GetJob', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetJobRequest(); - try { - $gapicClient->getJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobsElement = new Job(); - $jobs = [ - $jobsElement, - ]; - $expectedResponse = new ListJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobs($jobs); - $transport->addResponse($expectedResponse); - $request = new ListJobsRequest(); - $response = $gapicClient->listJobs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/ListJobs', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 ListJobsRequest(); - try { - $gapicClient->listJobs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function snapshotJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $sourceJobId = 'sourceJobId-16371327'; - $description2 = 'description2568623279'; - $diskSizeBytes = 275393905; - $region = 'region-934795532'; - $expectedResponse = new Snapshot(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setSourceJobId($sourceJobId); - $expectedResponse->setDescription($description2); - $expectedResponse->setDiskSizeBytes($diskSizeBytes); - $expectedResponse->setRegion($region); - $transport->addResponse($expectedResponse); - $request = new SnapshotJobRequest(); - $response = $gapicClient->snapshotJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/SnapshotJob', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function snapshotJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 SnapshotJobRequest(); - try { - $gapicClient->snapshotJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $name = 'name3373707'; - $stepsLocation = 'stepsLocation-354969139'; - $replaceJobId = 'replaceJobId459700424'; - $clientRequestId = 'clientRequestId-1902516801'; - $replacedByJobId = 'replacedByJobId-671370122'; - $location2 = 'location21541837352'; - $createdFromSnapshotId = 'createdFromSnapshotId1520659672'; - $satisfiesPzs = false; - $expectedResponse = new Job(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setName($name); - $expectedResponse->setStepsLocation($stepsLocation); - $expectedResponse->setReplaceJobId($replaceJobId); - $expectedResponse->setClientRequestId($clientRequestId); - $expectedResponse->setReplacedByJobId($replacedByJobId); - $expectedResponse->setLocation($location2); - $expectedResponse->setCreatedFromSnapshotId($createdFromSnapshotId); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - $request = new UpdateJobRequest(); - $response = $gapicClient->updateJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/UpdateJob', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 UpdateJobRequest(); - try { - $gapicClient->updateJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function aggregatedListJobsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobsElement = new Job(); - $jobs = [ - $jobsElement, - ]; - $expectedResponse = new ListJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobs($jobs); - $transport->addResponse($expectedResponse); - $request = new ListJobsRequest(); - $response = $gapicClient->aggregatedListJobsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/AggregatedListJobs', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/MessagesV1Beta3ClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/MessagesV1Beta3ClientTest.php deleted file mode 100644 index 315187f96c6e..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/MessagesV1Beta3ClientTest.php +++ /dev/null @@ -1,159 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return MessagesV1Beta3Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new MessagesV1Beta3Client($options); - } - - /** @test */ - public function listJobMessagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobMessagesElement = new JobMessage(); - $jobMessages = [ - $jobMessagesElement, - ]; - $expectedResponse = new ListJobMessagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobMessages($jobMessages); - $transport->addResponse($expectedResponse); - $request = new ListJobMessagesRequest(); - $response = $gapicClient->listJobMessages($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobMessages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.MessagesV1Beta3/ListJobMessages', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobMessagesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 ListJobMessagesRequest(); - try { - $gapicClient->listJobMessages($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobMessagesAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobMessagesElement = new JobMessage(); - $jobMessages = [ - $jobMessagesElement, - ]; - $expectedResponse = new ListJobMessagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobMessages($jobMessages); - $transport->addResponse($expectedResponse); - $request = new ListJobMessagesRequest(); - $response = $gapicClient->listJobMessagesAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobMessages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.MessagesV1Beta3/ListJobMessages', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/MetricsV1Beta3ClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/MetricsV1Beta3ClientTest.php deleted file mode 100644 index 0216781792e7..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/MetricsV1Beta3ClientTest.php +++ /dev/null @@ -1,282 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return MetricsV1Beta3Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new MetricsV1Beta3Client($options); - } - - /** @test */ - public function getJobExecutionDetailsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $stagesElement = new StageSummary(); - $stages = [ - $stagesElement, - ]; - $expectedResponse = new JobExecutionDetails(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setStages($stages); - $transport->addResponse($expectedResponse); - $request = new GetJobExecutionDetailsRequest(); - $response = $gapicClient->getJobExecutionDetails($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getStages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.MetricsV1Beta3/GetJobExecutionDetails', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobExecutionDetailsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetJobExecutionDetailsRequest(); - try { - $gapicClient->getJobExecutionDetails($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new JobMetrics(); - $transport->addResponse($expectedResponse); - $request = new GetJobMetricsRequest(); - $response = $gapicClient->getJobMetrics($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.MetricsV1Beta3/GetJobMetrics', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetJobMetricsRequest(); - try { - $gapicClient->getJobMetrics($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStageExecutionDetailsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workersElement = new WorkerDetails(); - $workers = [ - $workersElement, - ]; - $expectedResponse = new StageExecutionDetails(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkers($workers); - $transport->addResponse($expectedResponse); - $request = new GetStageExecutionDetailsRequest(); - $response = $gapicClient->getStageExecutionDetails($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkers()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.MetricsV1Beta3/GetStageExecutionDetails', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStageExecutionDetailsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetStageExecutionDetailsRequest(); - try { - $gapicClient->getStageExecutionDetails($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobExecutionDetailsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $stagesElement = new StageSummary(); - $stages = [ - $stagesElement, - ]; - $expectedResponse = new JobExecutionDetails(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setStages($stages); - $transport->addResponse($expectedResponse); - $request = new GetJobExecutionDetailsRequest(); - $response = $gapicClient->getJobExecutionDetailsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getStages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.MetricsV1Beta3/GetJobExecutionDetails', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/SnapshotsV1Beta3ClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/SnapshotsV1Beta3ClientTest.php deleted file mode 100644 index c5965c74a45d..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/SnapshotsV1Beta3ClientTest.php +++ /dev/null @@ -1,262 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return SnapshotsV1Beta3Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new SnapshotsV1Beta3Client($options); - } - - /** @test */ - public function deleteSnapshotTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DeleteSnapshotResponse(); - $transport->addResponse($expectedResponse); - $request = new DeleteSnapshotRequest(); - $response = $gapicClient->deleteSnapshot($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.SnapshotsV1Beta3/DeleteSnapshot', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSnapshotExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 DeleteSnapshotRequest(); - try { - $gapicClient->deleteSnapshot($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSnapshotTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $sourceJobId = 'sourceJobId-16371327'; - $description = 'description-1724546052'; - $diskSizeBytes = 275393905; - $region = 'region-934795532'; - $expectedResponse = new Snapshot(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setSourceJobId($sourceJobId); - $expectedResponse->setDescription($description); - $expectedResponse->setDiskSizeBytes($diskSizeBytes); - $expectedResponse->setRegion($region); - $transport->addResponse($expectedResponse); - $request = new GetSnapshotRequest(); - $response = $gapicClient->getSnapshot($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.SnapshotsV1Beta3/GetSnapshot', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSnapshotExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetSnapshotRequest(); - try { - $gapicClient->getSnapshot($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSnapshotsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListSnapshotsResponse(); - $transport->addResponse($expectedResponse); - $request = new ListSnapshotsRequest(); - $response = $gapicClient->listSnapshots($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.SnapshotsV1Beta3/ListSnapshots', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSnapshotsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 ListSnapshotsRequest(); - try { - $gapicClient->listSnapshots($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSnapshotAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DeleteSnapshotResponse(); - $transport->addResponse($expectedResponse); - $request = new DeleteSnapshotRequest(); - $response = $gapicClient->deleteSnapshotAsync($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.dataflow.v1beta3.SnapshotsV1Beta3/DeleteSnapshot', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/TemplatesServiceClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/TemplatesServiceClientTest.php deleted file mode 100644 index 69df8427eb15..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/Client/TemplatesServiceClientTest.php +++ /dev/null @@ -1,290 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return TemplatesServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new TemplatesServiceClient($options); - } - - /** @test */ - public function createJobFromTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $name = 'name3373707'; - $stepsLocation = 'stepsLocation-354969139'; - $replaceJobId = 'replaceJobId459700424'; - $clientRequestId = 'clientRequestId-1902516801'; - $replacedByJobId = 'replacedByJobId-671370122'; - $location2 = 'location21541837352'; - $createdFromSnapshotId = 'createdFromSnapshotId1520659672'; - $satisfiesPzs = false; - $expectedResponse = new Job(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setName($name); - $expectedResponse->setStepsLocation($stepsLocation); - $expectedResponse->setReplaceJobId($replaceJobId); - $expectedResponse->setClientRequestId($clientRequestId); - $expectedResponse->setReplacedByJobId($replacedByJobId); - $expectedResponse->setLocation($location2); - $expectedResponse->setCreatedFromSnapshotId($createdFromSnapshotId); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - $request = new CreateJobFromTemplateRequest(); - $response = $gapicClient->createJobFromTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.TemplatesService/CreateJobFromTemplate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobFromTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 CreateJobFromTemplateRequest(); - try { - $gapicClient->createJobFromTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GetTemplateResponse(); - $transport->addResponse($expectedResponse); - $request = new GetTemplateRequest(); - $response = $gapicClient->getTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.TemplatesService/GetTemplate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetTemplateRequest(); - try { - $gapicClient->getTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function launchTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new LaunchTemplateResponse(); - $transport->addResponse($expectedResponse); - $request = new LaunchTemplateRequest(); - $response = $gapicClient->launchTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.TemplatesService/LaunchTemplate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function launchTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 LaunchTemplateRequest(); - try { - $gapicClient->launchTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobFromTemplateAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $name = 'name3373707'; - $stepsLocation = 'stepsLocation-354969139'; - $replaceJobId = 'replaceJobId459700424'; - $clientRequestId = 'clientRequestId-1902516801'; - $replacedByJobId = 'replacedByJobId-671370122'; - $location2 = 'location21541837352'; - $createdFromSnapshotId = 'createdFromSnapshotId1520659672'; - $satisfiesPzs = false; - $expectedResponse = new Job(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setName($name); - $expectedResponse->setStepsLocation($stepsLocation); - $expectedResponse->setReplaceJobId($replaceJobId); - $expectedResponse->setClientRequestId($clientRequestId); - $expectedResponse->setReplacedByJobId($replacedByJobId); - $expectedResponse->setLocation($location2); - $expectedResponse->setCreatedFromSnapshotId($createdFromSnapshotId); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - $request = new CreateJobFromTemplateRequest(); - $response = $gapicClient->createJobFromTemplateAsync($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.dataflow.v1beta3.TemplatesService/CreateJobFromTemplate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/FlexTemplatesServiceClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/FlexTemplatesServiceClientTest.php deleted file mode 100644 index 9f10217bd9c9..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/FlexTemplatesServiceClientTest.php +++ /dev/null @@ -1,113 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return FlexTemplatesServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new FlexTemplatesServiceClient($options); - } - - /** @test */ - public function launchFlexTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new LaunchFlexTemplateResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->launchFlexTemplate(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.FlexTemplatesService/LaunchFlexTemplate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function launchFlexTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->launchFlexTemplate(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/JobsV1Beta3ClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/JobsV1Beta3ClientTest.php deleted file mode 100644 index f1a452372268..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/JobsV1Beta3ClientTest.php +++ /dev/null @@ -1,522 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return JobsV1Beta3Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new JobsV1Beta3Client($options); - } - - /** @test */ - public function aggregatedListJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobsElement = new Job(); - $jobs = [ - $jobsElement, - ]; - $expectedResponse = new ListJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobs($jobs); - $transport->addResponse($expectedResponse); - $response = $gapicClient->aggregatedListJobs(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/AggregatedListJobs', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function aggregatedListJobsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->aggregatedListJobs(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkActiveJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $activeJobsExist = false; - $expectedResponse = new CheckActiveJobsResponse(); - $expectedResponse->setActiveJobsExist($activeJobsExist); - $transport->addResponse($expectedResponse); - $response = $gapicClient->checkActiveJobs(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/CheckActiveJobs', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkActiveJobsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->checkActiveJobs(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $name = 'name3373707'; - $stepsLocation = 'stepsLocation-354969139'; - $replaceJobId2 = 'replaceJobId2-609521029'; - $clientRequestId = 'clientRequestId-1902516801'; - $replacedByJobId = 'replacedByJobId-671370122'; - $location2 = 'location21541837352'; - $createdFromSnapshotId = 'createdFromSnapshotId1520659672'; - $satisfiesPzs = false; - $expectedResponse = new Job(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setName($name); - $expectedResponse->setStepsLocation($stepsLocation); - $expectedResponse->setReplaceJobId($replaceJobId2); - $expectedResponse->setClientRequestId($clientRequestId); - $expectedResponse->setReplacedByJobId($replacedByJobId); - $expectedResponse->setLocation($location2); - $expectedResponse->setCreatedFromSnapshotId($createdFromSnapshotId); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - $response = $gapicClient->createJob(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/CreateJob', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->createJob(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $name = 'name3373707'; - $stepsLocation = 'stepsLocation-354969139'; - $replaceJobId = 'replaceJobId459700424'; - $clientRequestId = 'clientRequestId-1902516801'; - $replacedByJobId = 'replacedByJobId-671370122'; - $location2 = 'location21541837352'; - $createdFromSnapshotId = 'createdFromSnapshotId1520659672'; - $satisfiesPzs = false; - $expectedResponse = new Job(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setName($name); - $expectedResponse->setStepsLocation($stepsLocation); - $expectedResponse->setReplaceJobId($replaceJobId); - $expectedResponse->setClientRequestId($clientRequestId); - $expectedResponse->setReplacedByJobId($replacedByJobId); - $expectedResponse->setLocation($location2); - $expectedResponse->setCreatedFromSnapshotId($createdFromSnapshotId); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getJob(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/GetJob', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getJob(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobsElement = new Job(); - $jobs = [ - $jobsElement, - ]; - $expectedResponse = new ListJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobs($jobs); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listJobs(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/ListJobs', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listJobs(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function snapshotJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $sourceJobId = 'sourceJobId-16371327'; - $description2 = 'description2568623279'; - $diskSizeBytes = 275393905; - $region = 'region-934795532'; - $expectedResponse = new Snapshot(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setSourceJobId($sourceJobId); - $expectedResponse->setDescription($description2); - $expectedResponse->setDiskSizeBytes($diskSizeBytes); - $expectedResponse->setRegion($region); - $transport->addResponse($expectedResponse); - $response = $gapicClient->snapshotJob(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/SnapshotJob', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function snapshotJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->snapshotJob(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $name = 'name3373707'; - $stepsLocation = 'stepsLocation-354969139'; - $replaceJobId = 'replaceJobId459700424'; - $clientRequestId = 'clientRequestId-1902516801'; - $replacedByJobId = 'replacedByJobId-671370122'; - $location2 = 'location21541837352'; - $createdFromSnapshotId = 'createdFromSnapshotId1520659672'; - $satisfiesPzs = false; - $expectedResponse = new Job(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setName($name); - $expectedResponse->setStepsLocation($stepsLocation); - $expectedResponse->setReplaceJobId($replaceJobId); - $expectedResponse->setClientRequestId($clientRequestId); - $expectedResponse->setReplacedByJobId($replacedByJobId); - $expectedResponse->setLocation($location2); - $expectedResponse->setCreatedFromSnapshotId($createdFromSnapshotId); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - $response = $gapicClient->updateJob(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.JobsV1Beta3/UpdateJob', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->updateJob(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/MessagesV1Beta3ClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/MessagesV1Beta3ClientTest.php deleted file mode 100644 index f763a99aae14..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/MessagesV1Beta3ClientTest.php +++ /dev/null @@ -1,124 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return MessagesV1Beta3Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new MessagesV1Beta3Client($options); - } - - /** @test */ - public function listJobMessagesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobMessagesElement = new JobMessage(); - $jobMessages = [ - $jobMessagesElement, - ]; - $expectedResponse = new ListJobMessagesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobMessages($jobMessages); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listJobMessages(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobMessages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.MessagesV1Beta3/ListJobMessages', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobMessagesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listJobMessages(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/MetricsV1Beta3ClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/MetricsV1Beta3ClientTest.php deleted file mode 100644 index 78e0f5827b3a..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/MetricsV1Beta3ClientTest.php +++ /dev/null @@ -1,241 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return MetricsV1Beta3Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new MetricsV1Beta3Client($options); - } - - /** @test */ - public function getJobExecutionDetailsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $stagesElement = new StageSummary(); - $stages = [ - $stagesElement, - ]; - $expectedResponse = new JobExecutionDetails(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setStages($stages); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getJobExecutionDetails(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getStages()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.MetricsV1Beta3/GetJobExecutionDetails', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobExecutionDetailsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getJobExecutionDetails(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobMetricsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new JobMetrics(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getJobMetrics(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.MetricsV1Beta3/GetJobMetrics', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobMetricsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getJobMetrics(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStageExecutionDetailsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $workersElement = new WorkerDetails(); - $workers = [ - $workersElement, - ]; - $expectedResponse = new StageExecutionDetails(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setWorkers($workers); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getStageExecutionDetails(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getWorkers()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.MetricsV1Beta3/GetStageExecutionDetails', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStageExecutionDetailsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getStageExecutionDetails(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/SnapshotsV1Beta3ClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/SnapshotsV1Beta3ClientTest.php deleted file mode 100644 index 6ebf76185b88..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/SnapshotsV1Beta3ClientTest.php +++ /dev/null @@ -1,231 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return SnapshotsV1Beta3Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new SnapshotsV1Beta3Client($options); - } - - /** @test */ - public function deleteSnapshotTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DeleteSnapshotResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->deleteSnapshot(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.SnapshotsV1Beta3/DeleteSnapshot', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSnapshotExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->deleteSnapshot(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSnapshotTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $sourceJobId = 'sourceJobId-16371327'; - $description = 'description-1724546052'; - $diskSizeBytes = 275393905; - $region = 'region-934795532'; - $expectedResponse = new Snapshot(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setSourceJobId($sourceJobId); - $expectedResponse->setDescription($description); - $expectedResponse->setDiskSizeBytes($diskSizeBytes); - $expectedResponse->setRegion($region); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getSnapshot(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.SnapshotsV1Beta3/GetSnapshot', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSnapshotExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getSnapshot(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSnapshotsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListSnapshotsResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->listSnapshots(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.SnapshotsV1Beta3/ListSnapshots', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSnapshotsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->listSnapshots(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/TemplatesServiceClientTest.php b/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/TemplatesServiceClientTest.php deleted file mode 100644 index cfd5302e8558..000000000000 --- a/owl-bot-staging/Dataflow/v1beta3/tests/Unit/V1beta3/TemplatesServiceClientTest.php +++ /dev/null @@ -1,239 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return TemplatesServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new TemplatesServiceClient($options); - } - - /** @test */ - public function createJobFromTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $id = 'id3355'; - $projectId2 = 'projectId2939242356'; - $name = 'name3373707'; - $stepsLocation = 'stepsLocation-354969139'; - $replaceJobId = 'replaceJobId459700424'; - $clientRequestId = 'clientRequestId-1902516801'; - $replacedByJobId = 'replacedByJobId-671370122'; - $location2 = 'location21541837352'; - $createdFromSnapshotId = 'createdFromSnapshotId1520659672'; - $satisfiesPzs = false; - $expectedResponse = new Job(); - $expectedResponse->setId($id); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setName($name); - $expectedResponse->setStepsLocation($stepsLocation); - $expectedResponse->setReplaceJobId($replaceJobId); - $expectedResponse->setClientRequestId($clientRequestId); - $expectedResponse->setReplacedByJobId($replacedByJobId); - $expectedResponse->setLocation($location2); - $expectedResponse->setCreatedFromSnapshotId($createdFromSnapshotId); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - $response = $gapicClient->createJobFromTemplate(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.TemplatesService/CreateJobFromTemplate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobFromTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->createJobFromTemplate(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GetTemplateResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->getTemplate(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.TemplatesService/GetTemplate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->getTemplate(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function launchTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new LaunchTemplateResponse(); - $transport->addResponse($expectedResponse); - $response = $gapicClient->launchTemplate(); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.dataflow.v1beta3.TemplatesService/LaunchTemplate', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function launchTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - try { - $gapicClient->launchTemplate(); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/GPBMetadata/Google/Cloud/Metastore/V1/Metastore.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/GPBMetadata/Google/Cloud/Metastore/V1/Metastore.php deleted file mode 100644 index 92746ddbb3fd5e486955c3995974e88f4aae090e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16362 zcmcgzU2Gdyb`DAXUj5NmvO~-9h90N&PaJZsB#xJkVvop?#5F}KB<<9Jy4)c-lBS|K z%*;@VHc+uxpeVL2(8cbe*lr#c+oz%^`cfQ?<2bvVN4bceP~4G;E_`w37Ai z_O@mw8^(S|Z)s*Knaq`v#Zon?b_=m)P|N^+g#azrA^gVx7H|wtt?@%MV?XyTTkykK&a7DEi36fM4zA} z{Ofe?w>HoKbp?a8F6*C|I!8ez7j zYi)ZtnpItEHCMD<^*}ew;YiCGcbCvY7L4|e*=@J=_RdzRL!5LtC7rzk%PIRE`zXA? z4k=Z5L$&tKKwH(p*KKvba|YTEOtk|l53!}yqmH(fQ;&@8LrptHTYgg#aCTlY!lzA z)wy%=1)OP`P@3F>_*d6CZL8-dX~S_7zUT^HMAHw%aatpez`qoU%lVRtun*hKR|xr> z6}H$@zTj(q{)c?yeDAkmchXIA-=qL~MJL&GI>aaTXkYL4A%4WqrS?<7W( zk(*OXsT6xrAM2*pfzHW~SxUA3625>&NU}{tfPQi%_Jur(-$GLjQ-fSzBWfg~l=GtC zEObmceoLrggsR(tG|j1E;i%q2V=c9=wXDQQGB!W~Zi7^T5-4rkJi_mw@wR3k8s=VN zoNDmvpuv}N5`B%-qpq!SvB5E{6g)~7*=l?lO>6CD#{eg))ZOw0k7siivsOg4H% zA5a<`N3pKnOvHOKeH*<(Jdaf4+P>Nbh4vvzYoLLCpxZ}@3-m2-2fc-pZ#dL4CuRmK zp*d4)X{x2w8oO${t+f*K)Btw_m}mGkugmWo5e zLWMDVgl4(B2~HO&ry#H39>>_=$7qIFuTB&s(Vn#2ZwI{{OrjpIC=9OIhB?!QYY*~@3`QlnUf)N^%v(@}l zB_74I2vwfI(qfK$7X#*#{BIx}A%sshbBu75{FPG*3S~2fC()=tH z;?=xT_Prf==9H&Op|q)#;q~xJrC3$Uo8^2(iN~Zon)SLFeidCQ!+Ye4Qp>K(#iCO1 zaRd#ra#1cnW7>eqD+SO-QqZ(}Pw`cB8HATt2&d|^O}|+{gNTddZ=I{xW+1*5pb zpF4?Uq6;Te#@Er*F2Mbov0Z~QMqOZP>56bhr*;5Lesk$5aSQx9nu3*tfB+I&ZDyA) z2?`P-DS#`b?GNBv>3>Jie4jdo7tr_tz#xclcOm;t6mQTvS2N&SQ*UY(@F!&^EBN=x z;(hq1n4gyf7gl>#(A=J8)-}_xMBuQhcPoJVV@|?xd1HoEgw^iHdP`R!J8<(@02GJ;lp&eRg3(iEW{a9&@g7>}YnlNWU~vy!>dz58 z+m$;WxpT+VQcwx-vtwe>bn_U+PuS)fx(Z2Tvy?AZYn$a#wUjOOiQ4LVIlo$kc$+{Y zYvs)>#H@v8eOq`JjX}19l+L~VT7YRQ8XzkhK-Xl))Y}ccqqeBWPvR?Re$TAG%^k_X z1H_>wrCVr>Q(i*T)MaZH<-~~BUs@UGmXfX$WktE;PBw?e_x7!tlar<2i=MQ9Z!LEf zp1;3+Y7ngkDB6EJ`p1!SqNuVk3SCqwayY9mN`D+hGu|4VN0SZcle_!i>tF>EFF~&7 zAtowPN?M^8|0V*pj6cB-5wf~<4j_1D@CxzV;v46bhypJIE3;_&pwp;{7E1bQ1kL&3!a71NW2d%lnER?twU}Lc zE5H?e^r?cevr1{DWi;vhffv!GLTRnGS}JeI)sqFZpsdMRQa~XTzga02AryZeL5mxw z!b!lvv}RGPs(nllz1Ym4{45wMl!Dpz8)yP7LWWhMen)6 zy5CcgJPeN=rRo6m4cM~$q*!F&n*!`?R#9>Qu%jM;9V5tmRn8X(^v?W#UQUwnS`=?>aTIz6JW2<~#Ih`;fCG6ec~H}7kR7ieG$EczKaKT*ki|8Y&^*M3 zt+y%sb;>Q-5;_HmK}fv`>Dq=4ojEXZnGg=__W6*L6UXO?i-hxerbVjf^Z0#)g{##_ zR$M1KTG%X3!OFtMvV=HQ7uiJTXvncl_gv@Xc zMB-sl88~iX;<~Lbqd4!CpmrYUv=Lzwxu8nHJ2O^feA${5g-K{FF{?bJITw8yOuAy+ zOC@!{9(h}7cSjs`HP)U`CQWr&sZ>j4k^)9EA3c}b=+#rhn(y7?b3}8UZa+jZ`*1A% zOAK-lE2IB!QRvM1SQG|uAa)0Dc7}n6va9SpZmDeNrG3iwkIGL#fJSzELX`3(o+* z{Z9nVc;-mBh-UOQiGpn{1IOt6@?Q6kUHw`Up+C z*OKy?FT!93(p0UI|Ij~rnL|^`Z&b^2t+F9gbzm05KGHDSfTPYQ8!(T8#|62(rob%9 zAz=?jSLR?8%*Sl|MpJ7^e;z^e1>LfF8nDXRM_q7wd>@T#afJwe86o=IHukhOMn#n0g=7U!(;goF&QoKZrCZ;1m*J7^&X zGiF=!33$d0Bkt=mg=5`_^w-b<5}))!ODB*X`T{9U1L+nH4^qFQJhE9ChNo4 zJb~C^Ht?1S7e3|c5r{KU4C*T4E+YmOI$gvS!vTt`DwWX{h)>x z-tTJWk+6V>^>cVWMx)SEnMW>2F1>{=`d-7!2OPnHvx8dXYKy)NeowFD(Ci`oP6SOW zrfHZt)@fs<*L1T@2s#6CQ>Hivc7mFMIWFVK4wXIUpMCC5{3$u~faB~c>5i&~u=@+J z6`*VwRkySnt!56&j?(c$ojrAOVH7956VxVO;RJS6x{9v!m6VxV`bh-6CX?Q?x8H1L zEDG~k) za29v3jDyBH?uA_C#h`N!?|N>`<NVIn=$cq>nGiNa!zexYT&5_=BOP(HQ)KI1Lb-j6{}Tp9o`xL<*~ha|$aqy` zNY^#clv8!2A4Wct@AYn3zJB^GN{2>x?dS4kX5~A)(HH*%2&3A*BMr3|88I-x{{?D$ z8vQ`EJu5@1{p0hfJumd_vTL7Y=s*>IxbzlvKK^|wCJGic#9{ZeeV$Dj_+@gnBJGpxzic{GzI?x ztk!S*5ooo31i}FZSncm$fYq+}%yY+|&(x(NjR@bmka?|-bDgx?zeUijx6#Exhqm6O zA#L@2udNu5p^_cV?pf|NJiCXe-x-bGrP<(KnTg!S{|@@{4za?2*$||!cWFp{{{Zxb zn$Bs5QuK3qRunfjP@$T?E4|~cYhg48@JX%>5tU&wI7QMh8<|-6jevaUS|^kpgdjOv z(3YOcNNe7#ejnc(GOIJiE&L}DGzs~c@y9_|=ABhS=D~9&NpWXwA!Nv`%_St+`o95i zyJu;EfZM%Lh&mw8`~-aIZReiCa9R0fo|T!nci4X-2S1X|xGx!g-i-ehRCf>K0#$b} z45>N^qZba9?%!r=55Lp@0oc&fz6WAM&&rSr{~=S@N6Nx#s4PO0#)`B&Y|{A1Jp>`C zkb~Ib=TUSuur$7%B0hWhljo|(`wh= zWk1ka>sY&k7DR5Tuwf{T&>KK(oSEtNjj;`$cGOY$QNxi{O)eYpg@SOB0tk~ z|LVI_f8dDQsecx|yvBa$&420b`l&bk*890!9QfnDJI=tP_fwahmQhz*X@2_}E*tSr z$IoRo#O-VRZXceewgWe7ffxG#0~P1CHazV80q>}ySID_!r=@-DH+n(cgIg4R*o*NL z@Dd;4Cp)m3Jb?d>>tjG=8*kolevx~J{aD=f+j26r)*F3(S58;5-+v#YV}$+>2Z0Y< diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/GPBMetadata/Google/Cloud/Metastore/V1/MetastoreFederation.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/GPBMetadata/Google/Cloud/Metastore/V1/MetastoreFederation.php deleted file mode 100644 index 94b4885c52ed69977baa339dc45655d8702b439b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4730 zcmbtYOLNm!6s}?%@C^ZT3yCqMs0M}*z?!5iibDW7cGAoQVjPDl9nWZF`Pvc4lB!1_ z&1BO~7o9Hq3p!ntneMvmPk>#!W4d6`RcHDKy6U-lT*(hS3S{Nzo^$TG-}%m`qkH?V zxnrV>{2I}TB|D_exAu5vhw!FlIEG?qe9P^0h{Y>L&r~&H6?wk0$v@a^@YTwC;}dYT z4cAggiSHUlS0jR=8E#wX5l6Ni!y>}&LiCT+A#J*iYUo981B7(BM{HA82)|Y<-v_U@ z?8wbEFIIDf#%j{1UaaP$g(ZX(O}1^GJzQlW(LUng&vaXws_?c0`zZV+)s|FUbyQhX zzlP&2^Bq~U3B(z;?YO!^bK|MQrmm2=tGpkR+FmjZfMb~tldDmL0G;N#?hs3twPuCb zilv%x>>8MsN?qbGTP1<68QXmp2V?zm1ylU*^zfu!#bR6odg_8oa8VuB9piW>A1Qn>K74Rcix|$%%!1Q8ZszsF+3|8sD=v-jrDH1faKxi$4#ZcDRqMvOK zDi&CTM`0FDSQg))@arT(kxJoH=m-_P9LIBWnR4oln8r8JlwuK(Uy1tWCSYZ1F<m7-p*333^DrILAxXi}3~M6+{8_!Mlj5NW;OCPotx| z#IiwGa_Q(0Um)C)m8V2+ON;|{ZqnQ2cCt;%zCY7;+u!djIu21y1DGtimYO>nZkob( zQJRV<$sL1dCl;?I+h>cq_#o!dv=;z!wr#mfa+xT27NuOZokQ$N{sx+g12KhCPsyHN zNj#0xyRzo`<;#>NKI8HP&AjDEG0!wE#XYCS9%3*Y-KHR+w09zW2A$e!h>fbW{a~wB zU0GjUuU4`j;N$4nO1&yJ)*q~8IgHSxxYAgERLxG%mF-%^UrEvbD%FjuXLkf=P`X;L zZ`QNv(vyG0F1pC78h{L~X%}HG5F(o3d(Z_>h~n77e(>u+&uUfWB4XINJxjY8<=;V;xNu4}*q*#Vj z=`xVql&gdODLZmYBan7#E>n1jPOp&|a3OBD;#4RHs3jt2;T0Tg#nag+t1#?)l>tBNeY^ideo+|pU`yP`IifatyC%2_xK0EVz61q zVlil(5R0GR6N{M`2*Gek6~u$!^Tm=!*2tuooDF?w{0r~+K|vUc#-MRRG`<5gD(KAM z9PNFp;lq(6)(P`I6Ox}jzwuJc^}<_>fXw0a^oLm7aU9bw3Bt2y&juC+*>!gOE0r6j zCOaL&>Xo0P^DuRVJu%Gja&Cm^)#zgoogle.cloud.metastore.v1.AlterMetadataResourceLocationRequest - */ -class AlterMetadataResourceLocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * - * Generated from protobuf field string resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource_name = ''; - /** - * Required. The new location URI for the metadata resource. - * - * Generated from protobuf field string location_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $location_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $resource_name - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * @type string $location_uri - * Required. The new location URI for the metadata resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * - * Generated from protobuf field string resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * - * Generated from protobuf field string resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * Required. The new location URI for the metadata resource. - * - * Generated from protobuf field string location_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLocationUri() - { - return $this->location_uri; - } - - /** - * Required. The new location URI for the metadata resource. - * - * Generated from protobuf field string location_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLocationUri($var) - { - GPBUtil::checkString($var, True); - $this->location_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/AlterMetadataResourceLocationResponse.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/AlterMetadataResourceLocationResponse.php deleted file mode 100644 index 5c0068500b14..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/AlterMetadataResourceLocationResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.cloud.metastore.v1.AlterMetadataResourceLocationResponse - */ -class AlterMetadataResourceLocationResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/AuxiliaryVersionConfig.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/AuxiliaryVersionConfig.php deleted file mode 100644 index f140b4c76616..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/AuxiliaryVersionConfig.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.metastore.v1.AuxiliaryVersionConfig - */ -class AuxiliaryVersionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * - * Generated from protobuf field map config_overrides = 2; - */ - private $config_overrides; - /** - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $network_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * @type array|\Google\Protobuf\Internal\MapField $config_overrides - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * @type \Google\Cloud\Metastore\V1\NetworkConfig $network_config - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * - * Generated from protobuf field map config_overrides = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getConfigOverrides() - { - return $this->config_overrides; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * - * Generated from protobuf field map config_overrides = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setConfigOverrides($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->config_overrides = $arr; - - return $this; - } - - /** - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Metastore\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); - } - - /** - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Metastore\V1\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/BackendMetastore.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/BackendMetastore.php deleted file mode 100644 index ec94c364d40e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/BackendMetastore.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.metastore.v1.BackendMetastore - */ -class BackendMetastore extends \Google\Protobuf\Internal\Message -{ - /** - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of the backend metastore. - * - * Generated from protobuf field .google.cloud.metastore.v1.BackendMetastore.MetastoreType metastore_type = 2; - */ - protected $metastore_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * @type int $metastore_type - * The type of the backend metastore. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of the backend metastore. - * - * Generated from protobuf field .google.cloud.metastore.v1.BackendMetastore.MetastoreType metastore_type = 2; - * @return int - */ - public function getMetastoreType() - { - return $this->metastore_type; - } - - /** - * The type of the backend metastore. - * - * Generated from protobuf field .google.cloud.metastore.v1.BackendMetastore.MetastoreType metastore_type = 2; - * @param int $var - * @return $this - */ - public function setMetastoreType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\BackendMetastore\MetastoreType::class); - $this->metastore_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/BackendMetastore/MetastoreType.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/BackendMetastore/MetastoreType.php deleted file mode 100644 index afb63721d036..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/BackendMetastore/MetastoreType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1.BackendMetastore.MetastoreType - */ -class MetastoreType -{ - /** - * The metastore type is not set. - * - * Generated from protobuf enum METASTORE_TYPE_UNSPECIFIED = 0; - */ - const METASTORE_TYPE_UNSPECIFIED = 0; - /** - * The backend metastore is BigQuery. - * - * Generated from protobuf enum BIGQUERY = 2; - */ - const BIGQUERY = 2; - /** - * The backend metastore is Dataproc Metastore. - * - * Generated from protobuf enum DATAPROC_METASTORE = 3; - */ - const DATAPROC_METASTORE = 3; - - private static $valueToName = [ - self::METASTORE_TYPE_UNSPECIFIED => 'METASTORE_TYPE_UNSPECIFIED', - self::BIGQUERY => 'BIGQUERY', - self::DATAPROC_METASTORE => 'DATAPROC_METASTORE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetastoreType::class, \Google\Cloud\Metastore\V1\BackendMetastore_MetastoreType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Backup.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Backup.php deleted file mode 100644 index 60c597e53354..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Backup.php +++ /dev/null @@ -1,305 +0,0 @@ -google.cloud.metastore.v1.Backup - */ -class Backup extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. The time when the backup was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the backup finished creating. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.metastore.v1.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The revision of the service at the time of backup. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_revision = null; - /** - * The description of the backup. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - /** - * Output only. Services that are restoring from the backup. - * - * Generated from protobuf field repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $restoring_services; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the backup was started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the backup finished creating. - * @type int $state - * Output only. The current state of the backup. - * @type \Google\Cloud\Metastore\V1\Service $service_revision - * Output only. The revision of the service at the time of backup. - * @type string $description - * The description of the backup. - * @type array|\Google\Protobuf\Internal\RepeatedField $restoring_services - * Output only. Services that are restoring from the backup. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * - * 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 when the backup was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the backup was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the backup finished creating. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time when the backup finished creating. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.metastore.v1.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.metastore.v1.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Backup\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The revision of the service at the time of backup. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Metastore\V1\Service|null - */ - public function getServiceRevision() - { - return $this->service_revision; - } - - public function hasServiceRevision() - { - return isset($this->service_revision); - } - - public function clearServiceRevision() - { - unset($this->service_revision); - } - - /** - * Output only. The revision of the service at the time of backup. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Metastore\V1\Service $var - * @return $this - */ - public function setServiceRevision($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\Service::class); - $this->service_revision = $var; - - return $this; - } - - /** - * The description of the backup. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the backup. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Services that are restoring from the backup. - * - * Generated from protobuf field repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestoringServices() - { - return $this->restoring_services; - } - - /** - * Output only. Services that are restoring from the backup. - * - * Generated from protobuf field repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestoringServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->restoring_services = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Backup/State.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Backup/State.php deleted file mode 100644 index 22fbd2881e27..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Backup/State.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.metastore.v1.Backup.State - */ -class State -{ - /** - * The state of the backup is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The backup is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The backup is being deleted. - * - * Generated from protobuf enum DELETING = 2; - */ - const DELETING = 2; - /** - * The backup is active and ready to use. - * - * Generated from protobuf enum ACTIVE = 3; - */ - const ACTIVE = 3; - /** - * The backup failed. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - /** - * The backup is being restored. - * - * Generated from protobuf enum RESTORING = 5; - */ - const RESTORING = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::DELETING => 'DELETING', - self::ACTIVE => 'ACTIVE', - self::FAILED => 'FAILED', - self::RESTORING => 'RESTORING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Metastore\V1\Backup_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateBackupRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateBackupRequest.php deleted file mode 100644 index f94f371f109b..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateBackupRequest.php +++ /dev/null @@ -1,271 +0,0 @@ -google.cloud.metastore.v1.CreateBackupRequest - */ -class CreateBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_id = ''; - /** - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the service in which to create a - * backup of the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1\Backup $backup Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * @param string $backupId Required. The ID of the backup, which is used as the final component of the - * backup's name. - * - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * @return \Google\Cloud\Metastore\V1\CreateBackupRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1\Backup $backup, string $backupId): self - { - return (new self()) - ->setParent($parent) - ->setBackup($backup) - ->setBackupId($backupId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type string $backup_id - * Required. The ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * @type \Google\Cloud\Metastore\V1\Backup $backup - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBackupId() - { - return $this->backup_id; - } - - /** - * Required. The ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBackupId($var) - { - GPBUtil::checkString($var, True); - $this->backup_id = $var; - - return $this; - } - - /** - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1\Backup|null - */ - public function getBackup() - { - return $this->backup; - } - - public function hasBackup() - { - return isset($this->backup); - } - - public function clearBackup() - { - unset($this->backup); - } - - /** - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1\Backup $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\Backup::class); - $this->backup = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateFederationRequest.php deleted file mode 100644 index 3b708f708665..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateFederationRequest.php +++ /dev/null @@ -1,275 +0,0 @@ -google.cloud.metastore.v1.CreateFederationRequest - */ -class CreateFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string federation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $federation_id = ''; - /** - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.Federation federation = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $federation = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreFederationClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1\Federation $federation Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * @param string $federationId Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * @return \Google\Cloud\Metastore\V1\CreateFederationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1\Federation $federation, string $federationId): self - { - return (new self()) - ->setParent($parent) - ->setFederation($federation) - ->setFederationId($federationId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type string $federation_id - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * @type \Google\Cloud\Metastore\V1\Federation $federation - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string federation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFederationId() - { - return $this->federation_id; - } - - /** - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string federation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFederationId($var) - { - GPBUtil::checkString($var, True); - $this->federation_id = $var; - - return $this; - } - - /** - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.Federation federation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1\Federation|null - */ - public function getFederation() - { - return $this->federation; - } - - public function hasFederation() - { - return isset($this->federation); - } - - public function clearFederation() - { - unset($this->federation); - } - - /** - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.Federation federation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1\Federation $var - * @return $this - */ - public function setFederation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\Federation::class); - $this->federation = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateMetadataImportRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateMetadataImportRequest.php deleted file mode 100644 index abffe4c45a8b..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateMetadataImportRequest.php +++ /dev/null @@ -1,276 +0,0 @@ -google.cloud.metastore.v1.CreateMetadataImportRequest - */ -class CreateMetadataImportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string metadata_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_import_id = ''; - /** - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport metadata_import = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_import = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1\MetadataImport $metadataImport Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * @param string $metadataImportId Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * @return \Google\Cloud\Metastore\V1\CreateMetadataImportRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1\MetadataImport $metadataImport, string $metadataImportId): self - { - return (new self()) - ->setParent($parent) - ->setMetadataImport($metadataImport) - ->setMetadataImportId($metadataImportId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type string $metadata_import_id - * Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * @type \Google\Cloud\Metastore\V1\MetadataImport $metadata_import - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string metadata_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMetadataImportId() - { - return $this->metadata_import_id; - } - - /** - * Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string metadata_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMetadataImportId($var) - { - GPBUtil::checkString($var, True); - $this->metadata_import_id = $var; - - return $this; - } - - /** - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport metadata_import = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1\MetadataImport|null - */ - public function getMetadataImport() - { - return $this->metadata_import; - } - - public function hasMetadataImport() - { - return isset($this->metadata_import); - } - - public function clearMetadataImport() - { - unset($this->metadata_import); - } - - /** - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport metadata_import = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1\MetadataImport $var - * @return $this - */ - public function setMetadataImport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\MetadataImport::class); - $this->metadata_import = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateServiceRequest.php deleted file mode 100644 index b762fd7142f0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/CreateServiceRequest.php +++ /dev/null @@ -1,276 +0,0 @@ -google.cloud.metastore.v1.CreateServiceRequest - */ -class CreateServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_id = ''; - /** - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1\Service $service Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * @param string $serviceId Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * @return \Google\Cloud\Metastore\V1\CreateServiceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1\Service $service, string $serviceId): self - { - return (new self()) - ->setParent($parent) - ->setService($service) - ->setServiceId($serviceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type string $service_id - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * @type \Google\Cloud\Metastore\V1\Service $service - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getServiceId() - { - return $this->service_id; - } - - /** - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setServiceId($var) - { - GPBUtil::checkString($var, True); - $this->service_id = $var; - - return $this; - } - - /** - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1\Service|null - */ - public function getService() - { - return $this->service; - } - - public function hasService() - { - return isset($this->service); - } - - public function clearService() - { - unset($this->service); - } - - /** - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1\Service $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\Service::class); - $this->service = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DatabaseDumpSpec.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DatabaseDumpSpec.php deleted file mode 100644 index 31e9d35f9269..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DatabaseDumpSpec.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.metastore.v1.DatabaseDumpSpec - */ -class DatabaseDumpSpec extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DatabaseDumpSpec/Type.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DatabaseDumpSpec/Type.php deleted file mode 100644 index 2fdb77518f4a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DatabaseDumpSpec/Type.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1.DatabaseDumpSpec.Type - */ -class Type -{ - /** - * The type of the database dump is unknown. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Database dump is a MySQL dump file. - * - * Generated from protobuf enum MYSQL = 1; - */ - const MYSQL = 1; - /** - * Database dump contains Avro files. - * - * Generated from protobuf enum AVRO = 2; - */ - const AVRO = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::MYSQL => 'MYSQL', - self::AVRO => 'AVRO', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Metastore\V1\DatabaseDumpSpec_Type::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteBackupRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteBackupRequest.php deleted file mode 100644 index 5b641755320f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteBackupRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.metastore.v1.DeleteBackupRequest - */ -class DeleteBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The relative resource name of the backup to delete, in the - * following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. Please see - * {@see DataprocMetastoreClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\DeleteBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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 relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteFederationRequest.php deleted file mode 100644 index 5492072ac7b1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteFederationRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -google.cloud.metastore.v1.DeleteFederationRequest - */ -class DeleteFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The relative resource name of the metastore federation to delete, - * in the following form: - * - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. Please see - * {@see DataprocMetastoreFederationClient::federationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\DeleteFederationRequest - * - * @experimental - */ - public static function 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 relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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 relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteServiceRequest.php deleted file mode 100644 index 971257d0b8fa..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/DeleteServiceRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.metastore.v1.DeleteServiceRequest - */ -class DeleteServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The relative resource name of the metastore service to delete, in - * the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\DeleteServiceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/EncryptionConfig.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/EncryptionConfig.php deleted file mode 100644 index d88c0dcc6ac4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/EncryptionConfig.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.metastore.v1.EncryptionConfig - */ -class EncryptionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * - * Generated from protobuf field string kms_key = 1; - */ - protected $kms_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * - * Generated from protobuf field string kms_key = 1; - * @return string - */ - public function getKmsKey() - { - return $this->kms_key; - } - - /** - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * - * Generated from protobuf field string kms_key = 1; - * @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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ErrorDetails.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ErrorDetails.php deleted file mode 100644 index 2a8974bf2965..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ErrorDetails.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.metastore.v1.ErrorDetails - */ -class ErrorDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * - * Generated from protobuf field map details = 1; - */ - private $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $details - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * - * Generated from protobuf field map details = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDetails() - { - return $this->details; - } - - /** - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * - * Generated from protobuf field map details = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDetails($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ExportMetadataRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ExportMetadataRequest.php deleted file mode 100644 index 68b1e61c213a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ExportMetadataRequest.php +++ /dev/null @@ -1,232 +0,0 @@ -google.cloud.metastore.v1.ExportMetadataRequest - */ -class ExportMetadataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $database_dump_type = 0; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $destination_gcs_folder - * A Cloud Storage URI of a folder, in the format - * `gs:///`. A sub-folder - * `` containing exported files will be created below it. - * @type string $service - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * @type int $database_dump_type - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * A Cloud Storage URI of a folder, in the format - * `gs:///`. A sub-folder - * `` containing exported files will be created below it. - * - * Generated from protobuf field string destination_gcs_folder = 2; - * @return string - */ - public function getDestinationGcsFolder() - { - return $this->readOneof(2); - } - - public function hasDestinationGcsFolder() - { - return $this->hasOneof(2); - } - - /** - * A Cloud Storage URI of a folder, in the format - * `gs:///`. A sub-folder - * `` containing exported files will be created below it. - * - * Generated from protobuf field string destination_gcs_folder = 2; - * @param string $var - * @return $this - */ - public function setDestinationGcsFolder($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getDatabaseDumpType() - { - return $this->database_dump_type; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setDatabaseDumpType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\DatabaseDumpSpec\Type::class); - $this->database_dump_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Federation.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Federation.php deleted file mode 100644 index d4f3fbfa8951..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Federation.php +++ /dev/null @@ -1,433 +0,0 @@ -google.cloud.metastore.v1.Federation - */ -class Federation extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. The time when the metastore federation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the metastore federation was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * User-defined labels for the metastore federation. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * - * Generated from protobuf field string version = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $version = ''; - /** - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * - * Generated from protobuf field map backend_metastores = 6; - */ - private $backend_metastores; - /** - * Output only. The federation endpoint. - * - * Generated from protobuf field string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint_uri = ''; - /** - * Output only. The current state of the federation. - * - * Generated from protobuf field .google.cloud.metastore.v1.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information about the current state of the - * metastore federation, if available. - * - * Generated from protobuf field string state_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_message = ''; - /** - * Output only. The globally unique resource identifier of the metastore - * federation. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the metastore federation was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the metastore federation was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * User-defined labels for the metastore federation. - * @type string $version - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * @type array|\Google\Protobuf\Internal\MapField $backend_metastores - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * @type string $endpoint_uri - * Output only. The federation endpoint. - * @type int $state - * Output only. The current state of the federation. - * @type string $state_message - * Output only. Additional information about the current state of the - * metastore federation, if available. - * @type string $uid - * Output only. The globally unique resource identifier of the metastore - * federation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * 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 when the metastore federation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the metastore federation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the metastore federation was 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 when the metastore federation was 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; - } - - /** - * User-defined labels for the metastore federation. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * User-defined labels for the metastore federation. - * - * 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; - } - - /** - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * - * Generated from protobuf field string version = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * - * Generated from protobuf field string version = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * - * Generated from protobuf field map backend_metastores = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getBackendMetastores() - { - return $this->backend_metastores; - } - - /** - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * - * Generated from protobuf field map backend_metastores = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setBackendMetastores($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT32, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1\BackendMetastore::class); - $this->backend_metastores = $arr; - - return $this; - } - - /** - * Output only. The federation endpoint. - * - * Generated from protobuf field string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpointUri() - { - return $this->endpoint_uri; - } - - /** - * Output only. The federation endpoint. - * - * Generated from protobuf field string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_uri = $var; - - return $this; - } - - /** - * Output only. The current state of the federation. - * - * Generated from protobuf field .google.cloud.metastore.v1.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the federation. - * - * Generated from protobuf field .google.cloud.metastore.v1.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Federation\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information about the current state of the - * metastore federation, if available. - * - * Generated from protobuf field string state_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * Output only. Additional information about the current state of the - * metastore federation, if available. - * - * Generated from protobuf field string state_message = 9 [(.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. The globally unique resource identifier of the metastore - * federation. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. The globally unique resource identifier of the metastore - * federation. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Federation/State.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Federation/State.php deleted file mode 100644 index b1fe841ab588..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Federation/State.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.metastore.v1.Federation.State - */ -class State -{ - /** - * The state of the metastore federation is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metastore federation is in the process of being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The metastore federation is running and ready to serve queries. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The metastore federation is being updated. It remains usable but cannot - * accept additional update requests or be deleted at this time. - * - * Generated from protobuf enum UPDATING = 3; - */ - const UPDATING = 3; - /** - * The metastore federation is undergoing deletion. It cannot be used. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - /** - * The metastore federation has encountered an error and cannot be used. The - * metastore federation should be deleted. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::UPDATING => 'UPDATING', - self::DELETING => 'DELETING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1\Federation_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetBackupRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetBackupRequest.php deleted file mode 100644 index 01791735196a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetBackupRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.metastore.v1.GetBackupRequest - */ -class GetBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the backup to retrieve, in the - * following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. Please see - * {@see DataprocMetastoreClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\GetBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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 relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetFederationRequest.php deleted file mode 100644 index d0676d640ec1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetFederationRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.metastore.v1.GetFederationRequest - */ -class GetFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the metastore federation to - * retrieve, in the following form: - * - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. Please see - * {@see DataprocMetastoreFederationClient::federationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\GetFederationRequest - * - * @experimental - */ - public static function 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 relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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 relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetMetadataImportRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetMetadataImportRequest.php deleted file mode 100644 index 461911cb0d1c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetMetadataImportRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.metastore.v1.GetMetadataImportRequest - */ -class GetMetadataImportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the metadata import to retrieve, in - * the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. Please see - * {@see DataprocMetastoreClient::metadataImportName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\GetMetadataImportRequest - * - * @experimental - */ - public static function 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 relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_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 relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetServiceRequest.php deleted file mode 100644 index 23a082ef5699..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/GetServiceRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.metastore.v1.GetServiceRequest - */ -class GetServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\GetServiceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/HiveMetastoreConfig.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/HiveMetastoreConfig.php deleted file mode 100644 index 9325b320e61a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/HiveMetastoreConfig.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.metastore.v1.HiveMetastoreConfig - */ -class HiveMetastoreConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The Hive metastore schema version. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $version = ''; - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * - * Generated from protobuf field map config_overrides = 2; - */ - private $config_overrides; - /** - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * - * Generated from protobuf field .google.cloud.metastore.v1.KerberosConfig kerberos_config = 3; - */ - protected $kerberos_config = null; - /** - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * - * Generated from protobuf field .google.cloud.metastore.v1.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4; - */ - protected $endpoint_protocol = 0; - /** - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * - * Generated from protobuf field map auxiliary_versions = 5; - */ - private $auxiliary_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Immutable. The Hive metastore schema version. - * @type array|\Google\Protobuf\Internal\MapField $config_overrides - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * @type \Google\Cloud\Metastore\V1\KerberosConfig $kerberos_config - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * @type int $endpoint_protocol - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * @type array|\Google\Protobuf\Internal\MapField $auxiliary_versions - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The Hive metastore schema version. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Immutable. The Hive metastore schema version. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * - * Generated from protobuf field map config_overrides = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getConfigOverrides() - { - return $this->config_overrides; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * - * Generated from protobuf field map config_overrides = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setConfigOverrides($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->config_overrides = $arr; - - return $this; - } - - /** - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * - * Generated from protobuf field .google.cloud.metastore.v1.KerberosConfig kerberos_config = 3; - * @return \Google\Cloud\Metastore\V1\KerberosConfig|null - */ - public function getKerberosConfig() - { - return $this->kerberos_config; - } - - public function hasKerberosConfig() - { - return isset($this->kerberos_config); - } - - public function clearKerberosConfig() - { - unset($this->kerberos_config); - } - - /** - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * - * Generated from protobuf field .google.cloud.metastore.v1.KerberosConfig kerberos_config = 3; - * @param \Google\Cloud\Metastore\V1\KerberosConfig $var - * @return $this - */ - public function setKerberosConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\KerberosConfig::class); - $this->kerberos_config = $var; - - return $this; - } - - /** - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * - * Generated from protobuf field .google.cloud.metastore.v1.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4; - * @return int - */ - public function getEndpointProtocol() - { - return $this->endpoint_protocol; - } - - /** - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * - * Generated from protobuf field .google.cloud.metastore.v1.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4; - * @param int $var - * @return $this - */ - public function setEndpointProtocol($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\HiveMetastoreConfig\EndpointProtocol::class); - $this->endpoint_protocol = $var; - - return $this; - } - - /** - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * - * Generated from protobuf field map auxiliary_versions = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAuxiliaryVersions() - { - return $this->auxiliary_versions; - } - - /** - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * - * Generated from protobuf field map auxiliary_versions = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAuxiliaryVersions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1\AuxiliaryVersionConfig::class); - $this->auxiliary_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/HiveMetastoreConfig/EndpointProtocol.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/HiveMetastoreConfig/EndpointProtocol.php deleted file mode 100644 index 7546b641a643..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/HiveMetastoreConfig/EndpointProtocol.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1.HiveMetastoreConfig.EndpointProtocol - */ -class EndpointProtocol -{ - /** - * The protocol is not set. - * - * Generated from protobuf enum ENDPOINT_PROTOCOL_UNSPECIFIED = 0; - */ - const ENDPOINT_PROTOCOL_UNSPECIFIED = 0; - /** - * Use the legacy Apache Thrift protocol for the metastore service endpoint. - * - * Generated from protobuf enum THRIFT = 1; - */ - const THRIFT = 1; - /** - * Use the modernized gRPC protocol for the metastore service endpoint. - * - * Generated from protobuf enum GRPC = 2; - */ - const GRPC = 2; - - private static $valueToName = [ - self::ENDPOINT_PROTOCOL_UNSPECIFIED => 'ENDPOINT_PROTOCOL_UNSPECIFIED', - self::THRIFT => 'THRIFT', - self::GRPC => 'GRPC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EndpointProtocol::class, \Google\Cloud\Metastore\V1\HiveMetastoreConfig_EndpointProtocol::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/KerberosConfig.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/KerberosConfig.php deleted file mode 100644 index df4b6eb6fc32..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/KerberosConfig.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.metastore.v1.KerberosConfig - */ -class KerberosConfig extends \Google\Protobuf\Internal\Message -{ - /** - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * - * Generated from protobuf field .google.cloud.metastore.v1.Secret keytab = 1; - */ - protected $keytab = null; - /** - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * - * Generated from protobuf field string principal = 2; - */ - protected $principal = ''; - /** - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * - * Generated from protobuf field string krb5_config_gcs_uri = 3; - */ - protected $krb5_config_gcs_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1\Secret $keytab - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * @type string $principal - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * @type string $krb5_config_gcs_uri - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * - * Generated from protobuf field .google.cloud.metastore.v1.Secret keytab = 1; - * @return \Google\Cloud\Metastore\V1\Secret|null - */ - public function getKeytab() - { - return $this->keytab; - } - - public function hasKeytab() - { - return isset($this->keytab); - } - - public function clearKeytab() - { - unset($this->keytab); - } - - /** - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * - * Generated from protobuf field .google.cloud.metastore.v1.Secret keytab = 1; - * @param \Google\Cloud\Metastore\V1\Secret $var - * @return $this - */ - public function setKeytab($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\Secret::class); - $this->keytab = $var; - - return $this; - } - - /** - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * - * Generated from protobuf field string principal = 2; - * @return string - */ - public function getPrincipal() - { - return $this->principal; - } - - /** - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * - * Generated from protobuf field string principal = 2; - * @param string $var - * @return $this - */ - public function setPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->principal = $var; - - return $this; - } - - /** - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * - * Generated from protobuf field string krb5_config_gcs_uri = 3; - * @return string - */ - public function getKrb5ConfigGcsUri() - { - return $this->krb5_config_gcs_uri; - } - - /** - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * - * Generated from protobuf field string krb5_config_gcs_uri = 3; - * @param string $var - * @return $this - */ - public function setKrb5ConfigGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->krb5_config_gcs_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListBackupsRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListBackupsRequest.php deleted file mode 100644 index b73891dd55c0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListBackupsRequest.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.metastore.v1.ListBackupsRequest - */ -class ListBackupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the service whose backups to - * list, in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\ListBackupsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * @type int $page_size - * Optional. The maximum number of backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups] - * must match the call that provided the page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed 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 backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups] - * 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 - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1.DataprocMetastore.ListBackups] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListBackupsResponse.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListBackupsResponse.php deleted file mode 100644 index d4c62d5e2a3e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListBackupsResponse.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.metastore.v1.ListBackupsResponse - */ -class ListBackupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The backups of the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Backup backups = 1; - */ - private $backups; - /** - * 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\Metastore\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $backups - * The backups of the specified service. - * @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\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The backups of the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Backup backups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackups() - { - return $this->backups; - } - - /** - * The backups of the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Backup backups = 1; - * @param array<\Google\Cloud\Metastore\V1\Backup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1\Backup::class); - $this->backups = $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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListFederationsRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListFederationsRequest.php deleted file mode 100644 index 0113d75b1995..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListFederationsRequest.php +++ /dev/null @@ -1,267 +0,0 @@ -google.cloud.metastore.v1.ListFederationsRequest - */ -class ListFederationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreFederationClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\ListFederationsRequest - * - * @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 relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type int $page_size - * Optional. The maximum number of federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices must match the call that provided the - * page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed 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 federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices 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 ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListFederationsResponse.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListFederationsResponse.php deleted file mode 100644 index 6b9e36e583ce..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListFederationsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.metastore.v1.ListFederationsResponse - */ -class ListFederationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Federation federations = 1; - */ - private $federations; - /** - * 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\Metastore\V1\Federation>|\Google\Protobuf\Internal\RepeatedField $federations - * The services in the specified location. - * @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\Metastore\V1\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Federation federations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFederations() - { - return $this->federations; - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Federation federations = 1; - * @param array<\Google\Cloud\Metastore\V1\Federation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFederations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1\Federation::class); - $this->federations = $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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListMetadataImportsRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListMetadataImportsRequest.php deleted file mode 100644 index 582bf2479535..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListMetadataImportsRequest.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.metastore.v1.ListMetadataImportsRequest - */ -class ListMetadataImportsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\ListMetadataImportsRequest - * - * @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 relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * @type int $page_size - * Optional. The maximum number of imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * must match the call that provided the page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed 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 imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * 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 - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListMetadataImportsResponse.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListMetadataImportsResponse.php deleted file mode 100644 index 361360dd7312..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListMetadataImportsResponse.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.metastore.v1.ListMetadataImportsResponse - */ -class ListMetadataImportsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The imports in the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.MetadataImport metadata_imports = 1; - */ - private $metadata_imports; - /** - * 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\Metastore\V1\MetadataImport>|\Google\Protobuf\Internal\RepeatedField $metadata_imports - * The imports in the specified service. - * @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\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The imports in the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.MetadataImport metadata_imports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetadataImports() - { - return $this->metadata_imports; - } - - /** - * The imports in the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.MetadataImport metadata_imports = 1; - * @param array<\Google\Cloud\Metastore\V1\MetadataImport>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetadataImports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1\MetadataImport::class); - $this->metadata_imports = $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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListServicesRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListServicesRequest.php deleted file mode 100644 index 3821776ec78d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListServicesRequest.php +++ /dev/null @@ -1,273 +0,0 @@ -google.cloud.metastore.v1.ListServicesRequest - */ -class ListServicesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the location of metastore services - * to list, in the following form: - * - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\ListServicesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type int $page_size - * Optional. The maximum number of services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * must match the call that provided the page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed 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 services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * 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 - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListServicesResponse.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListServicesResponse.php deleted file mode 100644 index 40a31f47a158..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ListServicesResponse.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.metastore.v1.ListServicesResponse - */ -class ListServicesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Service services = 1; - */ - private $services; - /** - * 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\Metastore\V1\Service>|\Google\Protobuf\Internal\RepeatedField $services - * The services in the specified location. - * @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\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Service services = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServices() - { - return $this->services; - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Service services = 1; - * @param array<\Google\Cloud\Metastore\V1\Service>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1\Service::class); - $this->services = $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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/LocationMetadata.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/LocationMetadata.php deleted file mode 100644 index a36d20f571ce..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/LocationMetadata.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.metastore.v1.LocationMetadata - */ -class LocationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1; - */ - private $supported_hive_metastore_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Metastore\V1\LocationMetadata\HiveMetastoreVersion>|\Google\Protobuf\Internal\RepeatedField $supported_hive_metastore_versions - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedHiveMetastoreVersions() - { - return $this->supported_hive_metastore_versions; - } - - /** - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1; - * @param array<\Google\Cloud\Metastore\V1\LocationMetadata\HiveMetastoreVersion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedHiveMetastoreVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1\LocationMetadata\HiveMetastoreVersion::class); - $this->supported_hive_metastore_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/LocationMetadata/HiveMetastoreVersion.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/LocationMetadata/HiveMetastoreVersion.php deleted file mode 100644 index 58687bbf80df..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/LocationMetadata/HiveMetastoreVersion.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion - */ -class HiveMetastoreVersion extends \Google\Protobuf\Internal\Message -{ - /** - * The semantic version of the Hive Metastore software. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * - * Generated from protobuf field bool is_default = 2; - */ - protected $is_default = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The semantic version of the Hive Metastore software. - * @type bool $is_default - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The semantic version of the Hive Metastore software. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The semantic version of the Hive Metastore software. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * - * Generated from protobuf field bool is_default = 2; - * @return bool - */ - public function getIsDefault() - { - return $this->is_default; - } - - /** - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * - * Generated from protobuf field bool is_default = 2; - * @param bool $var - * @return $this - */ - public function setIsDefault($var) - { - GPBUtil::checkBool($var); - $this->is_default = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(HiveMetastoreVersion::class, \Google\Cloud\Metastore\V1\LocationMetadata_HiveMetastoreVersion::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MaintenanceWindow.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MaintenanceWindow.php deleted file mode 100644 index 44c9402a874c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MaintenanceWindow.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.metastore.v1.MaintenanceWindow - */ -class MaintenanceWindow extends \Google\Protobuf\Internal\Message -{ - /** - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - */ - protected $hour_of_day = null; - /** - * The day of week, when the window starts. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - */ - protected $day_of_week = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Int32Value $hour_of_day - * The hour of day (0-23) when the window starts. - * @type int $day_of_week - * The day of week, when the window starts. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @return \Google\Protobuf\Int32Value|null - */ - public function getHourOfDay() - { - return $this->hour_of_day; - } - - public function hasHourOfDay() - { - return isset($this->hour_of_day); - } - - public function clearHourOfDay() - { - unset($this->hour_of_day); - } - - /** - * Returns the unboxed value from getHourOfDay() - - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @return int|null - */ - public function getHourOfDayUnwrapped() - { - return $this->readWrapperValue("hour_of_day"); - } - - /** - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setHourOfDay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->hour_of_day = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @param int|null $var - * @return $this - */ - public function setHourOfDayUnwrapped($var) - { - $this->writeWrapperValue("hour_of_day", $var); - return $this;} - - /** - * The day of week, when the window starts. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - * @return int - */ - public function getDayOfWeek() - { - return $this->day_of_week; - } - - /** - * The day of week, when the window starts. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - * @param int $var - * @return $this - */ - public function setDayOfWeek($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->day_of_week = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataExport.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataExport.php deleted file mode 100644 index b8d76e8d94d4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataExport.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.metastore.v1.MetadataExport - */ -class MetadataExport extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time when the export started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time when the export ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the export. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The type of the database dump. - * - * Generated from protobuf field .google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $database_dump_type = 0; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $destination_gcs_uri - * Output only. A Cloud Storage URI of a folder that metadata are exported - * to, in the form of - * `gs:////`, where - * `` is automatically generated. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time when the export started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the export ended. - * @type int $state - * Output only. The current state of the export. - * @type int $database_dump_type - * Output only. The type of the database dump. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Output only. A Cloud Storage URI of a folder that metadata are exported - * to, in the form of - * `gs:////`, where - * `` is automatically generated. - * - * Generated from protobuf field string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDestinationGcsUri() - { - return $this->readOneof(4); - } - - public function hasDestinationGcsUri() - { - return $this->hasOneof(4); - } - - /** - * Output only. A Cloud Storage URI of a folder that metadata are exported - * to, in the form of - * `gs:////`, where - * `` is automatically generated. - * - * Generated from protobuf field string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDestinationGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The time when the export started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The time when the export started. - * - * 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. The time when the export ended. - * - * 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 when the export ended. - * - * 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 current state of the export. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the export. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\MetadataExport\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The type of the database dump. - * - * Generated from protobuf field .google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getDatabaseDumpType() - { - return $this->database_dump_type; - } - - /** - * Output only. The type of the database dump. - * - * Generated from protobuf field .google.cloud.metastore.v1.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setDatabaseDumpType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\DatabaseDumpSpec\Type::class); - $this->database_dump_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataExport/State.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataExport/State.php deleted file mode 100644 index 9edc49059ec8..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataExport/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.metastore.v1.MetadataExport.State - */ -class State -{ - /** - * The state of the metadata export is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metadata export is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The metadata export completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The metadata export failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * The metadata export is cancelled. - * - * Generated from protobuf enum CANCELLED = 4; - */ - const CANCELLED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::CANCELLED => '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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1\MetadataExport_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport.php deleted file mode 100644 index ddb3f6124dba..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport.php +++ /dev/null @@ -1,313 +0,0 @@ -google.cloud.metastore.v1.MetadataImport - */ -class MetadataImport extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * The description of the metadata import. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Output only. The time when the metadata import was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the metadata import was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The time when the metadata import finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the metadata import. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - protected $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1\MetadataImport\DatabaseDump $database_dump - * Immutable. A database dump from a pre-existing metastore's database. - * @type string $name - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * @type string $description - * The description of the metadata import. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the metadata import was started. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the metadata import was last updated. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the metadata import finished. - * @type int $state - * Output only. The current state of the metadata import. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. A database dump from a pre-existing metastore's database. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport.DatabaseDump database_dump = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Metastore\V1\MetadataImport\DatabaseDump|null - */ - public function getDatabaseDump() - { - return $this->readOneof(6); - } - - public function hasDatabaseDump() - { - return $this->hasOneof(6); - } - - /** - * Immutable. A database dump from a pre-existing metastore's database. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport.DatabaseDump database_dump = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Metastore\V1\MetadataImport\DatabaseDump $var - * @return $this - */ - public function setDatabaseDump($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\MetadataImport\DatabaseDump::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * - * 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 description of the metadata import. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the metadata import. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The time when the metadata import was started. - * - * 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 the metadata import was started. - * - * 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 time when the metadata import was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the metadata import was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The time when the metadata import finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.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 when the metadata import finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.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 current state of the metadata import. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the metadata import. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\MetadataImport\State::class); - $this->state = $var; - - return $this; - } - - /** - * @return string - */ - public function getMetadata() - { - return $this->whichOneof("metadata"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/DatabaseDump.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/DatabaseDump.php deleted file mode 100644 index 8112c1d8caa1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/DatabaseDump.php +++ /dev/null @@ -1,191 +0,0 @@ -google.cloud.metastore.v1.MetadataImport.DatabaseDump - */ -class DatabaseDump extends \Google\Protobuf\Internal\Message -{ - /** - * The type of the database. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true]; - * @deprecated - */ - protected $database_type = 0; - /** - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * - * Generated from protobuf field string gcs_uri = 2; - */ - protected $gcs_uri = ''; - /** - * The name of the source database. - * - * Generated from protobuf field string source_database = 3 [deprecated = true]; - * @deprecated - */ - protected $source_database = ''; - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $database_type - * The type of the database. - * @type string $gcs_uri - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * @type string $source_database - * The name of the source database. - * @type int $type - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The type of the database. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true]; - * @return int - * @deprecated - */ - public function getDatabaseType() - { - @trigger_error('database_type is deprecated.', E_USER_DEPRECATED); - return $this->database_type; - } - - /** - * The type of the database. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setDatabaseType($var) - { - @trigger_error('database_type is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\MetadataImport\DatabaseDump\DatabaseType::class); - $this->database_type = $var; - - return $this; - } - - /** - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * - * Generated from protobuf field string gcs_uri = 2; - * @return string - */ - public function getGcsUri() - { - return $this->gcs_uri; - } - - /** - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * - * Generated from protobuf field string gcs_uri = 2; - * @param string $var - * @return $this - */ - public function setGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->gcs_uri = $var; - - return $this; - } - - /** - * The name of the source database. - * - * Generated from protobuf field string source_database = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getSourceDatabase() - { - @trigger_error('source_database is deprecated.', E_USER_DEPRECATED); - return $this->source_database; - } - - /** - * The name of the source database. - * - * Generated from protobuf field string source_database = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setSourceDatabase($var) - { - @trigger_error('source_database is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->source_database = $var; - - return $this; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\DatabaseDumpSpec\Type::class); - $this->type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DatabaseDump::class, \Google\Cloud\Metastore\V1\MetadataImport_DatabaseDump::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/DatabaseDump/DatabaseType.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/DatabaseDump/DatabaseType.php deleted file mode 100644 index c5d6380893d5..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/DatabaseDump/DatabaseType.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseType - */ -class DatabaseType -{ - /** - * The type of the source database is unknown. - * - * Generated from protobuf enum DATABASE_TYPE_UNSPECIFIED = 0; - */ - const DATABASE_TYPE_UNSPECIFIED = 0; - /** - * The type of the source database is MySQL. - * - * Generated from protobuf enum MYSQL = 1; - */ - const MYSQL = 1; - - private static $valueToName = [ - self::DATABASE_TYPE_UNSPECIFIED => 'DATABASE_TYPE_UNSPECIFIED', - 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\Metastore\V1\MetadataImport_DatabaseDump_DatabaseType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/State.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/State.php deleted file mode 100644 index 627621ca37c4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataImport/State.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.metastore.v1.MetadataImport.State - */ -class State -{ - /** - * The state of the metadata import is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metadata import is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The metadata import completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The metadata import is being updated. - * - * Generated from protobuf enum UPDATING = 3; - */ - const UPDATING = 3; - /** - * The metadata import failed, and attempted metadata changes were rolled - * back. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::UPDATING => 'UPDATING', - 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\Metastore\V1\MetadataImport_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataManagementActivity.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataManagementActivity.php deleted file mode 100644 index 5c85998c0b03..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MetadataManagementActivity.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.metastore.v1.MetadataManagementActivity - */ -class MetadataManagementActivity extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The latest metadata exports of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $metadata_exports; - /** - * Output only. The latest restores of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $restores; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Metastore\V1\MetadataExport>|\Google\Protobuf\Internal\RepeatedField $metadata_exports - * Output only. The latest metadata exports of the metastore service. - * @type array<\Google\Cloud\Metastore\V1\Restore>|\Google\Protobuf\Internal\RepeatedField $restores - * Output only. The latest restores of the metastore service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The latest metadata exports of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetadataExports() - { - return $this->metadata_exports; - } - - /** - * Output only. The latest metadata exports of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Metastore\V1\MetadataExport>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetadataExports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1\MetadataExport::class); - $this->metadata_exports = $arr; - - return $this; - } - - /** - * Output only. The latest restores of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestores() - { - return $this->restores; - } - - /** - * Output only. The latest restores of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Metastore\V1\Restore>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestores($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1\Restore::class); - $this->restores = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MoveTableToDatabaseRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MoveTableToDatabaseRequest.php deleted file mode 100644 index ecb5d42f825b..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MoveTableToDatabaseRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.metastore.v1.MoveTableToDatabaseRequest - */ -class MoveTableToDatabaseRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. The name of the table to be moved. - * - * Generated from protobuf field string table_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_name = ''; - /** - * Required. The name of the database where the table resides. - * - * Generated from protobuf field string db_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $db_name = ''; - /** - * Required. The name of the database where the table should be moved. - * - * Generated from protobuf field string destination_db_name = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $destination_db_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $table_name - * Required. The name of the table to be moved. - * @type string $db_name - * Required. The name of the database where the table resides. - * @type string $destination_db_name - * Required. The name of the database where the table should be moved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. The name of the table to be moved. - * - * Generated from protobuf field string table_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Required. The name of the table to be moved. - * - * Generated from protobuf field string table_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * Required. The name of the database where the table resides. - * - * Generated from protobuf field string db_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDbName() - { - return $this->db_name; - } - - /** - * Required. The name of the database where the table resides. - * - * Generated from protobuf field string db_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDbName($var) - { - GPBUtil::checkString($var, True); - $this->db_name = $var; - - return $this; - } - - /** - * Required. The name of the database where the table should be moved. - * - * Generated from protobuf field string destination_db_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDestinationDbName() - { - return $this->destination_db_name; - } - - /** - * Required. The name of the database where the table should be moved. - * - * Generated from protobuf field string destination_db_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDestinationDbName($var) - { - GPBUtil::checkString($var, True); - $this->destination_db_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MoveTableToDatabaseResponse.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MoveTableToDatabaseResponse.php deleted file mode 100644 index ff9960643fad..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/MoveTableToDatabaseResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.cloud.metastore.v1.MoveTableToDatabaseResponse - */ -class MoveTableToDatabaseResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/NetworkConfig.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/NetworkConfig.php deleted file mode 100644 index 7977c5830888..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/NetworkConfig.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.metastore.v1.NetworkConfig - */ -class NetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private $consumers; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Metastore\V1\NetworkConfig\Consumer>|\Google\Protobuf\Internal\RepeatedField $consumers - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConsumers() - { - return $this->consumers; - } - - /** - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param array<\Google\Cloud\Metastore\V1\NetworkConfig\Consumer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConsumers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1\NetworkConfig\Consumer::class); - $this->consumers = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/NetworkConfig/Consumer.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/NetworkConfig/Consumer.php deleted file mode 100644 index 8039b59c2b85..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/NetworkConfig/Consumer.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.metastore.v1.NetworkConfig.Consumer - */ -class Consumer extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The URI of the endpoint used to access the metastore - * service. - * - * Generated from protobuf field string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint_uri = ''; - /** - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $endpoint_location = ''; - protected $vpc_resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subnetwork - * Immutable. The subnetwork of the customer project from which an IP - * address is reserved and used as the Dataproc Metastore service's - * endpoint. It is accessible to hosts in the subnet and to all - * hosts in a subnet in the same region and same network. There must - * be at least one IP address available in the subnet's primary range. The - * subnet is specified in the following form: - * `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}` - * @type string $endpoint_uri - * Output only. The URI of the endpoint used to access the metastore - * service. - * @type string $endpoint_location - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The subnetwork of the customer project from which an IP - * address is reserved and used as the Dataproc Metastore service's - * endpoint. It is accessible to hosts in the subnet and to all - * hosts in a subnet in the same region and same network. There must - * be at least one IP address available in the subnet's primary range. The - * subnet is specified in the following form: - * `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}` - * - * Generated from protobuf field string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getSubnetwork() - { - return $this->readOneof(1); - } - - public function hasSubnetwork() - { - return $this->hasOneof(1); - } - - /** - * Immutable. The subnetwork of the customer project from which an IP - * address is reserved and used as the Dataproc Metastore service's - * endpoint. It is accessible to hosts in the subnet and to all - * hosts in a subnet in the same region and same network. There must - * be at least one IP address available in the subnet's primary range. The - * subnet is specified in the following form: - * `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}` - * - * Generated from protobuf field string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Output only. The URI of the endpoint used to access the metastore - * service. - * - * Generated from protobuf field string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpointUri() - { - return $this->endpoint_uri; - } - - /** - * Output only. The URI of the endpoint used to access the metastore - * service. - * - * Generated from protobuf field string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_uri = $var; - - return $this; - } - - /** - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getEndpointLocation() - { - return $this->endpoint_location; - } - - /** - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEndpointLocation($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_location = $var; - - return $this; - } - - /** - * @return string - */ - public function getVpcResource() - { - return $this->whichOneof("vpc_resource"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Consumer::class, \Google\Cloud\Metastore\V1\NetworkConfig_Consumer::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/OperationMetadata.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/OperationMetadata.php deleted file mode 100644 index 4541aa351b89..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.metastore.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the caller 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 = ''; - - /** - * 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 caller 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\Metastore\V1\Metastore::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 caller 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 caller 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; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/QueryMetadataRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/QueryMetadataRequest.php deleted file mode 100644 index 337201d6f6da..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/QueryMetadataRequest.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.metastore.v1.QueryMetadataRequest - */ -class QueryMetadataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $query - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/QueryMetadataResponse.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/QueryMetadataResponse.php deleted file mode 100644 index 11e35e46da09..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/QueryMetadataResponse.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.metastore.v1.QueryMetadataResponse - */ -class QueryMetadataResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * - * Generated from protobuf field string result_manifest_uri = 1; - */ - protected $result_manifest_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $result_manifest_uri - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * - * Generated from protobuf field string result_manifest_uri = 1; - * @return string - */ - public function getResultManifestUri() - { - return $this->result_manifest_uri; - } - - /** - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * - * Generated from protobuf field string result_manifest_uri = 1; - * @param string $var - * @return $this - */ - public function setResultManifestUri($var) - { - GPBUtil::checkString($var, True); - $this->result_manifest_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore.php deleted file mode 100644 index 40f6b3f7dfa7..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.metastore.v1.Restore - */ -class Restore extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time when the restore started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time when the restore ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the restore. - * - * Generated from protobuf field .google.cloud.metastore.v1.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $backup = ''; - /** - * Output only. The type of restore. - * - * Generated from protobuf field .google.cloud.metastore.v1.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * - * Generated from protobuf field string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $details = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time when the restore started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the restore ended. - * @type int $state - * Output only. The current state of the restore. - * @type string $backup - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * @type int $type - * Output only. The type of restore. - * @type string $details - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time when the restore started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The time when the restore started. - * - * 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. The time when the restore ended. - * - * 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 when the restore ended. - * - * 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 current state of the restore. - * - * Generated from protobuf field .google.cloud.metastore.v1.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the restore. - * - * Generated from protobuf field .google.cloud.metastore.v1.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Restore\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBackup() - { - return $this->backup; - } - - /** - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkString($var, True); - $this->backup = $var; - - return $this; - } - - /** - * Output only. The type of restore. - * - * Generated from protobuf field .google.cloud.metastore.v1.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The type of restore. - * - * Generated from protobuf field .google.cloud.metastore.v1.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Restore\RestoreType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * - * Generated from protobuf field string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDetails() - { - return $this->details; - } - - /** - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * - * Generated from protobuf field string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkString($var, True); - $this->details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore/RestoreType.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore/RestoreType.php deleted file mode 100644 index 1dbf9a631af0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore/RestoreType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1.Restore.RestoreType - */ -class RestoreType -{ - /** - * The restore type is unknown. - * - * Generated from protobuf enum RESTORE_TYPE_UNSPECIFIED = 0; - */ - const RESTORE_TYPE_UNSPECIFIED = 0; - /** - * The service's metadata and configuration are restored. - * - * Generated from protobuf enum FULL = 1; - */ - const FULL = 1; - /** - * Only the service's metadata is restored. - * - * Generated from protobuf enum METADATA_ONLY = 2; - */ - const METADATA_ONLY = 2; - - private static $valueToName = [ - self::RESTORE_TYPE_UNSPECIFIED => 'RESTORE_TYPE_UNSPECIFIED', - self::FULL => 'FULL', - self::METADATA_ONLY => 'METADATA_ONLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RestoreType::class, \Google\Cloud\Metastore\V1\Restore_RestoreType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore/State.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore/State.php deleted file mode 100644 index e00016549808..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Restore/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.metastore.v1.Restore.State - */ -class State -{ - /** - * The state of the metadata restore is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metadata restore is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The metadata restore completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The metadata restore failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * The metadata restore is cancelled. - * - * Generated from protobuf enum CANCELLED = 4; - */ - const CANCELLED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::CANCELLED => '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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1\Restore_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/RestoreServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/RestoreServiceRequest.php deleted file mode 100644 index b55b901f0c82..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/RestoreServiceRequest.php +++ /dev/null @@ -1,244 +0,0 @@ -google.cloud.metastore.v1.RestoreServiceRequest - */ -class RestoreServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $backup = ''; - /** - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * - * Generated from protobuf field .google.cloud.metastore.v1.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $restore_type = 0; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $service Required. The relative resource name of the metastore service to run - * restore, in the following form: - * - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * @param string $backup Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. Please see - * {@see DataprocMetastoreClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1\RestoreServiceRequest - * - * @experimental - */ - public static function build(string $service, string $backup): self - { - return (new self()) - ->setService($service) - ->setBackup($backup); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $backup - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * @type int $restore_type - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getBackup() - { - return $this->backup; - } - - /** - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkString($var, True); - $this->backup = $var; - - return $this; - } - - /** - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * - * Generated from protobuf field .google.cloud.metastore.v1.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getRestoreType() - { - return $this->restore_type; - } - - /** - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * - * Generated from protobuf field .google.cloud.metastore.v1.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setRestoreType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Restore\RestoreType::class); - $this->restore_type = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ScalingConfig.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ScalingConfig.php deleted file mode 100644 index f787c951304a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ScalingConfig.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.metastore.v1.ScalingConfig - */ -class ScalingConfig extends \Google\Protobuf\Internal\Message -{ - protected $scaling_model; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $instance_size - * An enum of readable instance sizes, with each instance size mapping to a - * float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) - * @type float $scaling_factor - * Scaling factor, increments of 0.1 for values less than 1.0, and - * increments of 1.0 for values greater than 1.0. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * An enum of readable instance sizes, with each instance size mapping to a - * float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) - * - * Generated from protobuf field .google.cloud.metastore.v1.ScalingConfig.InstanceSize instance_size = 1; - * @return int - */ - public function getInstanceSize() - { - return $this->readOneof(1); - } - - public function hasInstanceSize() - { - return $this->hasOneof(1); - } - - /** - * An enum of readable instance sizes, with each instance size mapping to a - * float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) - * - * Generated from protobuf field .google.cloud.metastore.v1.ScalingConfig.InstanceSize instance_size = 1; - * @param int $var - * @return $this - */ - public function setInstanceSize($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\ScalingConfig\InstanceSize::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Scaling factor, increments of 0.1 for values less than 1.0, and - * increments of 1.0 for values greater than 1.0. - * - * Generated from protobuf field float scaling_factor = 2; - * @return float - */ - public function getScalingFactor() - { - return $this->readOneof(2); - } - - public function hasScalingFactor() - { - return $this->hasOneof(2); - } - - /** - * Scaling factor, increments of 0.1 for values less than 1.0, and - * increments of 1.0 for values greater than 1.0. - * - * Generated from protobuf field float scaling_factor = 2; - * @param float $var - * @return $this - */ - public function setScalingFactor($var) - { - GPBUtil::checkFloat($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getScalingModel() - { - return $this->whichOneof("scaling_model"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ScalingConfig/InstanceSize.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ScalingConfig/InstanceSize.php deleted file mode 100644 index 742e323a97fb..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/ScalingConfig/InstanceSize.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.metastore.v1.ScalingConfig.InstanceSize - */ -class InstanceSize -{ - /** - * Unspecified instance size - * - * Generated from protobuf enum INSTANCE_SIZE_UNSPECIFIED = 0; - */ - const INSTANCE_SIZE_UNSPECIFIED = 0; - /** - * Extra small instance size, maps to a scaling factor of 0.1. - * - * Generated from protobuf enum EXTRA_SMALL = 1; - */ - const EXTRA_SMALL = 1; - /** - * Small instance size, maps to a scaling factor of 0.5. - * - * Generated from protobuf enum SMALL = 2; - */ - const SMALL = 2; - /** - * Medium instance size, maps to a scaling factor of 1.0. - * - * Generated from protobuf enum MEDIUM = 3; - */ - const MEDIUM = 3; - /** - * Large instance size, maps to a scaling factor of 3.0. - * - * Generated from protobuf enum LARGE = 4; - */ - const LARGE = 4; - /** - * Extra large instance size, maps to a scaling factor of 6.0. - * - * Generated from protobuf enum EXTRA_LARGE = 5; - */ - const EXTRA_LARGE = 5; - - private static $valueToName = [ - self::INSTANCE_SIZE_UNSPECIFIED => 'INSTANCE_SIZE_UNSPECIFIED', - self::EXTRA_SMALL => 'EXTRA_SMALL', - self::SMALL => 'SMALL', - self::MEDIUM => 'MEDIUM', - self::LARGE => 'LARGE', - self::EXTRA_LARGE => 'EXTRA_LARGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InstanceSize::class, \Google\Cloud\Metastore\V1\ScalingConfig_InstanceSize::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Secret.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Secret.php deleted file mode 100644 index 5945d52ecc6d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Secret.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.metastore.v1.Secret - */ -class Secret extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cloud_secret - * The relative resource name of a Secret Manager secret version, in the - * following form: - * `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The relative resource name of a Secret Manager secret version, in the - * following form: - * `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. - * - * Generated from protobuf field string cloud_secret = 2; - * @return string - */ - public function getCloudSecret() - { - return $this->readOneof(2); - } - - public function hasCloudSecret() - { - return $this->hasOneof(2); - } - - /** - * The relative resource name of a Secret Manager secret version, in the - * following form: - * `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. - * - * Generated from protobuf field string cloud_secret = 2; - * @param string $var - * @return $this - */ - public function setCloudSecret($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service.php deleted file mode 100644 index 36f66eaa77ac..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service.php +++ /dev/null @@ -1,894 +0,0 @@ -google.cloud.metastore.v1.Service - */ -class Service extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. The time when the metastore service was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the metastore service was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * User-defined labels for the metastore service. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * - * Generated from protobuf field string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $network = ''; - /** - * Output only. The URI of the endpoint used to access the metastore service. - * - * Generated from protobuf field string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint_uri = ''; - /** - * The TCP port at which the metastore service is reached. Default: 9083. - * - * Generated from protobuf field int32 port = 9; - */ - protected $port = 0; - /** - * Output only. The current state of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information about the current state of the - * metastore service, if available. - * - * Generated from protobuf field string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_message = ''; - /** - * Output only. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * - * Generated from protobuf field string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $artifact_gcs_uri = ''; - /** - * The tier of the service. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.Tier tier = 13; - */ - protected $tier = 0; - /** - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * - * Generated from protobuf field .google.cloud.metastore.v1.MaintenanceWindow maintenance_window = 15; - */ - protected $maintenance_window = null; - /** - * Output only. The globally unique resource identifier of the metastore - * service. - * - * Generated from protobuf field string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The metadata management activities of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $metadata_management_activity = null; - /** - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $release_channel = 0; - /** - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $encryption_config = null; - /** - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.NetworkConfig network_config = 21; - */ - protected $network_config = null; - /** - * Immutable. The database type that the Metastore service stores its data. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $database_type = 0; - /** - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * - * Generated from protobuf field .google.cloud.metastore.v1.TelemetryConfig telemetry_config = 23; - */ - protected $telemetry_config = null; - /** - * Scaling configuration of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.ScalingConfig scaling_config = 24; - */ - protected $scaling_config = null; - protected $metastore_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1\HiveMetastoreConfig $hive_metastore_config - * Configuration information specific to running Hive metastore - * software as the metastore service. - * @type string $name - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the metastore service was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the metastore service was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * User-defined labels for the metastore service. - * @type string $network - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * @type string $endpoint_uri - * Output only. The URI of the endpoint used to access the metastore service. - * @type int $port - * The TCP port at which the metastore service is reached. Default: 9083. - * @type int $state - * Output only. The current state of the metastore service. - * @type string $state_message - * Output only. Additional information about the current state of the - * metastore service, if available. - * @type string $artifact_gcs_uri - * Output only. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * @type int $tier - * The tier of the service. - * @type \Google\Cloud\Metastore\V1\MaintenanceWindow $maintenance_window - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * @type string $uid - * Output only. The globally unique resource identifier of the metastore - * service. - * @type \Google\Cloud\Metastore\V1\MetadataManagementActivity $metadata_management_activity - * Output only. The metadata management activities of the metastore service. - * @type int $release_channel - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * @type \Google\Cloud\Metastore\V1\EncryptionConfig $encryption_config - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * @type \Google\Cloud\Metastore\V1\NetworkConfig $network_config - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * @type int $database_type - * Immutable. The database type that the Metastore service stores its data. - * @type \Google\Cloud\Metastore\V1\TelemetryConfig $telemetry_config - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * @type \Google\Cloud\Metastore\V1\ScalingConfig $scaling_config - * Scaling configuration of the metastore service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Configuration information specific to running Hive metastore - * software as the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.HiveMetastoreConfig hive_metastore_config = 5; - * @return \Google\Cloud\Metastore\V1\HiveMetastoreConfig|null - */ - public function getHiveMetastoreConfig() - { - return $this->readOneof(5); - } - - public function hasHiveMetastoreConfig() - { - return $this->hasOneof(5); - } - - /** - * Configuration information specific to running Hive metastore - * software as the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.HiveMetastoreConfig hive_metastore_config = 5; - * @param \Google\Cloud\Metastore\V1\HiveMetastoreConfig $var - * @return $this - */ - public function setHiveMetastoreConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\HiveMetastoreConfig::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * 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 when the metastore service was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the metastore service was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the metastore service was 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 when the metastore service was 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; - } - - /** - * User-defined labels for the metastore service. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * User-defined labels for the metastore service. - * - * 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; - } - - /** - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * - * Generated from protobuf field string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * - * Generated from protobuf field string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Output only. The URI of the endpoint used to access the metastore service. - * - * Generated from protobuf field string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpointUri() - { - return $this->endpoint_uri; - } - - /** - * Output only. The URI of the endpoint used to access the metastore service. - * - * Generated from protobuf field string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_uri = $var; - - return $this; - } - - /** - * The TCP port at which the metastore service is reached. Default: 9083. - * - * Generated from protobuf field int32 port = 9; - * @return int - */ - public function getPort() - { - return $this->port; - } - - /** - * The TCP port at which the metastore service is reached. Default: 9083. - * - * Generated from protobuf field int32 port = 9; - * @param int $var - * @return $this - */ - public function setPort($var) - { - GPBUtil::checkInt32($var); - $this->port = $var; - - return $this; - } - - /** - * Output only. The current state of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Service\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information about the current state of the - * metastore service, if available. - * - * Generated from protobuf field string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * Output only. Additional information about the current state of the - * metastore service, if available. - * - * Generated from protobuf field string state_message = 11 [(.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. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * - * Generated from protobuf field string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getArtifactGcsUri() - { - return $this->artifact_gcs_uri; - } - - /** - * Output only. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * - * Generated from protobuf field string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setArtifactGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->artifact_gcs_uri = $var; - - return $this; - } - - /** - * The tier of the service. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.Tier tier = 13; - * @return int - */ - public function getTier() - { - return $this->tier; - } - - /** - * The tier of the service. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.Tier tier = 13; - * @param int $var - * @return $this - */ - public function setTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Service\Tier::class); - $this->tier = $var; - - return $this; - } - - /** - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * - * Generated from protobuf field .google.cloud.metastore.v1.MaintenanceWindow maintenance_window = 15; - * @return \Google\Cloud\Metastore\V1\MaintenanceWindow|null - */ - public function getMaintenanceWindow() - { - return $this->maintenance_window; - } - - public function hasMaintenanceWindow() - { - return isset($this->maintenance_window); - } - - public function clearMaintenanceWindow() - { - unset($this->maintenance_window); - } - - /** - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * - * Generated from protobuf field .google.cloud.metastore.v1.MaintenanceWindow maintenance_window = 15; - * @param \Google\Cloud\Metastore\V1\MaintenanceWindow $var - * @return $this - */ - public function setMaintenanceWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\MaintenanceWindow::class); - $this->maintenance_window = $var; - - return $this; - } - - /** - * Output only. The globally unique resource identifier of the metastore - * service. - * - * Generated from protobuf field string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. The globally unique resource identifier of the metastore - * service. - * - * Generated from protobuf field string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The metadata management activities of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Metastore\V1\MetadataManagementActivity|null - */ - public function getMetadataManagementActivity() - { - return $this->metadata_management_activity; - } - - public function hasMetadataManagementActivity() - { - return isset($this->metadata_management_activity); - } - - public function clearMetadataManagementActivity() - { - unset($this->metadata_management_activity); - } - - /** - * Output only. The metadata management activities of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Metastore\V1\MetadataManagementActivity $var - * @return $this - */ - public function setMetadataManagementActivity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\MetadataManagementActivity::class); - $this->metadata_management_activity = $var; - - return $this; - } - - /** - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getReleaseChannel() - { - return $this->release_channel; - } - - /** - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setReleaseChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Service\ReleaseChannel::class); - $this->release_channel = $var; - - return $this; - } - - /** - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Metastore\V1\EncryptionConfig|null - */ - public function getEncryptionConfig() - { - return $this->encryption_config; - } - - public function hasEncryptionConfig() - { - return isset($this->encryption_config); - } - - public function clearEncryptionConfig() - { - unset($this->encryption_config); - } - - /** - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Metastore\V1\EncryptionConfig $var - * @return $this - */ - public function setEncryptionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\EncryptionConfig::class); - $this->encryption_config = $var; - - return $this; - } - - /** - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.NetworkConfig network_config = 21; - * @return \Google\Cloud\Metastore\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); - } - - /** - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.NetworkConfig network_config = 21; - * @param \Google\Cloud\Metastore\V1\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * Immutable. The database type that the Metastore service stores its data. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getDatabaseType() - { - return $this->database_type; - } - - /** - * Immutable. The database type that the Metastore service stores its data. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setDatabaseType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\Service\DatabaseType::class); - $this->database_type = $var; - - return $this; - } - - /** - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * - * Generated from protobuf field .google.cloud.metastore.v1.TelemetryConfig telemetry_config = 23; - * @return \Google\Cloud\Metastore\V1\TelemetryConfig|null - */ - public function getTelemetryConfig() - { - return $this->telemetry_config; - } - - public function hasTelemetryConfig() - { - return isset($this->telemetry_config); - } - - public function clearTelemetryConfig() - { - unset($this->telemetry_config); - } - - /** - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * - * Generated from protobuf field .google.cloud.metastore.v1.TelemetryConfig telemetry_config = 23; - * @param \Google\Cloud\Metastore\V1\TelemetryConfig $var - * @return $this - */ - public function setTelemetryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\TelemetryConfig::class); - $this->telemetry_config = $var; - - return $this; - } - - /** - * Scaling configuration of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.ScalingConfig scaling_config = 24; - * @return \Google\Cloud\Metastore\V1\ScalingConfig|null - */ - public function getScalingConfig() - { - return $this->scaling_config; - } - - public function hasScalingConfig() - { - return isset($this->scaling_config); - } - - public function clearScalingConfig() - { - unset($this->scaling_config); - } - - /** - * Scaling configuration of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1.ScalingConfig scaling_config = 24; - * @param \Google\Cloud\Metastore\V1\ScalingConfig $var - * @return $this - */ - public function setScalingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\ScalingConfig::class); - $this->scaling_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getMetastoreConfig() - { - return $this->whichOneof("metastore_config"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/DatabaseType.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/DatabaseType.php deleted file mode 100644 index 825ddf6b0f47..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/DatabaseType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1.Service.DatabaseType - */ -class DatabaseType -{ - /** - * The DATABASE_TYPE is not set. - * - * Generated from protobuf enum DATABASE_TYPE_UNSPECIFIED = 0; - */ - const DATABASE_TYPE_UNSPECIFIED = 0; - /** - * MySQL is used to persist the metastore data. - * - * Generated from protobuf enum MYSQL = 1; - */ - const MYSQL = 1; - /** - * Spanner is used to persist the metastore data. - * - * Generated from protobuf enum SPANNER = 2; - */ - const SPANNER = 2; - - private static $valueToName = [ - self::DATABASE_TYPE_UNSPECIFIED => 'DATABASE_TYPE_UNSPECIFIED', - self::MYSQL => 'MYSQL', - self::SPANNER => 'SPANNER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Metastore\V1\Service_DatabaseType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/ReleaseChannel.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/ReleaseChannel.php deleted file mode 100644 index 5f79d822e3bc..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/ReleaseChannel.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.metastore.v1.Service.ReleaseChannel - */ -class ReleaseChannel -{ - /** - * Release channel is not specified. - * - * Generated from protobuf enum RELEASE_CHANNEL_UNSPECIFIED = 0; - */ - const RELEASE_CHANNEL_UNSPECIFIED = 0; - /** - * The `CANARY` release channel contains the newest features, which may be - * unstable and subject to unresolved issues with no known workarounds. - * Services using the `CANARY` release channel are not subject to any SLAs. - * - * Generated from protobuf enum CANARY = 1; - */ - const CANARY = 1; - /** - * The `STABLE` release channel contains features that are considered stable - * and have been validated for production use. - * - * Generated from protobuf enum STABLE = 2; - */ - const STABLE = 2; - - private static $valueToName = [ - self::RELEASE_CHANNEL_UNSPECIFIED => 'RELEASE_CHANNEL_UNSPECIFIED', - self::CANARY => 'CANARY', - self::STABLE => 'STABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReleaseChannel::class, \Google\Cloud\Metastore\V1\Service_ReleaseChannel::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/State.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/State.php deleted file mode 100644 index 335f72a766a0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/State.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.metastore.v1.Service.State - */ -class State -{ - /** - * The state of the metastore service is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metastore service is in the process of being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The metastore service is running and ready to serve queries. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The metastore service is entering suspension. Its query-serving - * availability may cease unexpectedly. - * - * Generated from protobuf enum SUSPENDING = 3; - */ - const SUSPENDING = 3; - /** - * The metastore service is suspended and unable to serve queries. - * - * Generated from protobuf enum SUSPENDED = 4; - */ - const SUSPENDED = 4; - /** - * The metastore service is being updated. It remains usable but cannot - * accept additional update requests or be deleted at this time. - * - * Generated from protobuf enum UPDATING = 5; - */ - const UPDATING = 5; - /** - * The metastore service is undergoing deletion. It cannot be used. - * - * Generated from protobuf enum DELETING = 6; - */ - const DELETING = 6; - /** - * The metastore service has encountered an error and cannot be used. The - * metastore service should be deleted. - * - * Generated from protobuf enum ERROR = 7; - */ - const ERROR = 7; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::SUSPENDING => 'SUSPENDING', - self::SUSPENDED => 'SUSPENDED', - self::UPDATING => 'UPDATING', - self::DELETING => 'DELETING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1\Service_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/Tier.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/Tier.php deleted file mode 100644 index 6603ae6a7018..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/Service/Tier.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.metastore.v1.Service.Tier - */ -class Tier -{ - /** - * The tier is not set. - * - * Generated from protobuf enum TIER_UNSPECIFIED = 0; - */ - const TIER_UNSPECIFIED = 0; - /** - * The developer tier provides limited scalability and no fault tolerance. - * Good for low-cost proof-of-concept. - * - * Generated from protobuf enum DEVELOPER = 1; - */ - const DEVELOPER = 1; - /** - * The enterprise tier provides multi-zone high availability, and sufficient - * scalability for enterprise-level Dataproc Metastore workloads. - * - * Generated from protobuf enum ENTERPRISE = 3; - */ - const ENTERPRISE = 3; - - private static $valueToName = [ - self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', - self::DEVELOPER => 'DEVELOPER', - self::ENTERPRISE => 'ENTERPRISE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Tier::class, \Google\Cloud\Metastore\V1\Service_Tier::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/TelemetryConfig.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/TelemetryConfig.php deleted file mode 100644 index 516cf6fa99c4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/TelemetryConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.metastore.v1.TelemetryConfig - */ -class TelemetryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The output format of the Dataproc Metastore service's logs. - * - * Generated from protobuf field .google.cloud.metastore.v1.TelemetryConfig.LogFormat log_format = 1; - */ - protected $log_format = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $log_format - * The output format of the Dataproc Metastore service's logs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The output format of the Dataproc Metastore service's logs. - * - * Generated from protobuf field .google.cloud.metastore.v1.TelemetryConfig.LogFormat log_format = 1; - * @return int - */ - public function getLogFormat() - { - return $this->log_format; - } - - /** - * The output format of the Dataproc Metastore service's logs. - * - * Generated from protobuf field .google.cloud.metastore.v1.TelemetryConfig.LogFormat log_format = 1; - * @param int $var - * @return $this - */ - public function setLogFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1\TelemetryConfig\LogFormat::class); - $this->log_format = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/TelemetryConfig/LogFormat.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/TelemetryConfig/LogFormat.php deleted file mode 100644 index 071414412d7d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/TelemetryConfig/LogFormat.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.metastore.v1.TelemetryConfig.LogFormat - */ -class LogFormat -{ - /** - * The LOG_FORMAT is not set. - * - * Generated from protobuf enum LOG_FORMAT_UNSPECIFIED = 0; - */ - const LOG_FORMAT_UNSPECIFIED = 0; - /** - * Logging output uses the legacy `textPayload` format. - * - * Generated from protobuf enum LEGACY = 1; - */ - const LEGACY = 1; - /** - * Logging output uses the `jsonPayload` format. - * - * Generated from protobuf enum JSON = 2; - */ - const JSON = 2; - - private static $valueToName = [ - self::LOG_FORMAT_UNSPECIFIED => 'LOG_FORMAT_UNSPECIFIED', - self::LEGACY => 'LEGACY', - self::JSON => 'JSON', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LogFormat::class, \Google\Cloud\Metastore\V1\TelemetryConfig_LogFormat::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateFederationRequest.php deleted file mode 100644 index acc048f0c742..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateFederationRequest.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.metastore.v1.UpdateFederationRequest - */ -class UpdateFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.Federation federation = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $federation = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Metastore\V1\Federation $federation Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * @return \Google\Cloud\Metastore\V1\UpdateFederationRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Metastore\V1\Federation $federation, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setFederation($federation) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * @type \Google\Cloud\Metastore\V1\Federation $federation - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.Federation federation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1\Federation|null - */ - public function getFederation() - { - return $this->federation; - } - - public function hasFederation() - { - return isset($this->federation); - } - - public function clearFederation() - { - unset($this->federation); - } - - /** - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.Federation federation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1\Federation $var - * @return $this - */ - public function setFederation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\Federation::class); - $this->federation = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateMetadataImportRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateMetadataImportRequest.php deleted file mode 100644 index 0779fd76ed43..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateMetadataImportRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.cloud.metastore.v1.UpdateMetadataImportRequest - */ -class UpdateMetadataImportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport metadata_import = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_import = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Metastore\V1\MetadataImport $metadataImport Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * @return \Google\Cloud\Metastore\V1\UpdateMetadataImportRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Metastore\V1\MetadataImport $metadataImport, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMetadataImport($metadataImport) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * @type \Google\Cloud\Metastore\V1\MetadataImport $metadata_import - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport metadata_import = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1\MetadataImport|null - */ - public function getMetadataImport() - { - return $this->metadata_import; - } - - public function hasMetadataImport() - { - return isset($this->metadata_import); - } - - public function clearMetadataImport() - { - unset($this->metadata_import); - } - - /** - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.MetadataImport metadata_import = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1\MetadataImport $var - * @return $this - */ - public function setMetadataImport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\MetadataImport::class); - $this->metadata_import = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateServiceRequest.php deleted file mode 100644 index c5723944ac75..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/proto/src/Google/Cloud/Metastore/V1/UpdateServiceRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.cloud.metastore.v1.UpdateServiceRequest - */ -class UpdateServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Metastore\V1\Service $service Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * @return \Google\Cloud\Metastore\V1\UpdateServiceRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Metastore\V1\Service $service, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setService($service) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * @type \Google\Cloud\Metastore\V1\Service $service - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1\Service|null - */ - public function getService() - { - return $this->service; - } - - public function hasService() - { - return isset($this->service); - } - - public function clearService() - { - unset($this->service); - } - - /** - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1\Service $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1\Service::class); - $this->service = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/alter_metadata_resource_location.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/alter_metadata_resource_location.php deleted file mode 100644 index 2b88ddbb10b0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/alter_metadata_resource_location.php +++ /dev/null @@ -1,104 +0,0 @@ -setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->alterMetadataResourceLocation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AlterMetadataResourceLocationResponse $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = '[RESOURCE_NAME]'; - $locationUri = '[LOCATION_URI]'; - - alter_metadata_resource_location_sample($formattedService, $resourceName, $locationUri); -} -// [END metastore_v1_generated_DataprocMetastore_AlterMetadataResourceLocation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_backup.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_backup.php deleted file mode 100644 index 7ba733a278e5..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_backup.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->createBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Backup $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $backupId = '[BACKUP_ID]'; - - create_backup_sample($formattedParent, $backupId); -} -// [END metastore_v1_generated_DataprocMetastore_CreateBackup_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_metadata_import.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_metadata_import.php deleted file mode 100644 index 807103d27e66..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_metadata_import.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setMetadataImportId($metadataImportId) - ->setMetadataImport($metadataImport); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->createMetadataImport($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataImport $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 = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $metadataImportId = '[METADATA_IMPORT_ID]'; - - create_metadata_import_sample($formattedParent, $metadataImportId); -} -// [END metastore_v1_generated_DataprocMetastore_CreateMetadataImport_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_service.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_service.php deleted file mode 100644 index 2d1a58acda86..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/create_service.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->createService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Service $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::locationName('[PROJECT]', '[LOCATION]'); - $serviceId = '[SERVICE_ID]'; - - create_service_sample($formattedParent, $serviceId); -} -// [END metastore_v1_generated_DataprocMetastore_CreateService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/delete_backup.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/delete_backup.php deleted file mode 100644 index dffd740407d6..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/delete_backup.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->deleteBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[BACKUP]' - ); - - delete_backup_sample($formattedName); -} -// [END metastore_v1_generated_DataprocMetastore_DeleteBackup_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/delete_service.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/delete_service.php deleted file mode 100644 index 161bdcd1f543..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/delete_service.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->deleteService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - delete_service_sample($formattedName); -} -// [END metastore_v1_generated_DataprocMetastore_DeleteService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/export_metadata.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/export_metadata.php deleted file mode 100644 index 993d90c9f046..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/export_metadata.php +++ /dev/null @@ -1,86 +0,0 @@ -setService($formattedService); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->exportMetadata($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataExport $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - export_metadata_sample($formattedService); -} -// [END metastore_v1_generated_DataprocMetastore_ExportMetadata_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_backup.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_backup.php deleted file mode 100644 index 9e215dfbf979..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_backup.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Backup $response */ - $response = $dataprocMetastoreClient->getBackup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[BACKUP]' - ); - - get_backup_sample($formattedName); -} -// [END metastore_v1_generated_DataprocMetastore_GetBackup_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_iam_policy.php deleted file mode 100644 index 02979128c0b5..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreClient->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 metastore_v1_generated_DataprocMetastore_GetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_location.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_location.php deleted file mode 100644 index 75e081c1e32a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1_generated_DataprocMetastore_GetLocation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_metadata_import.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_metadata_import.php deleted file mode 100644 index ef3ed73e3c78..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_metadata_import.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MetadataImport $response */ - $response = $dataprocMetastoreClient->getMetadataImport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::metadataImportName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[METADATA_IMPORT]' - ); - - get_metadata_import_sample($formattedName); -} -// [END metastore_v1_generated_DataprocMetastore_GetMetadataImport_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_service.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_service.php deleted file mode 100644 index f1028f140dd5..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/get_service.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Service $response */ - $response = $dataprocMetastoreClient->getService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - get_service_sample($formattedName); -} -// [END metastore_v1_generated_DataprocMetastore_GetService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_backups.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_backups.php deleted file mode 100644 index 00933ba36efd..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_backups.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreClient->listBackups($request); - - /** @var Backup $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - list_backups_sample($formattedParent); -} -// [END metastore_v1_generated_DataprocMetastore_ListBackups_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_locations.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_locations.php deleted file mode 100644 index 1f534e8f73c0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1_generated_DataprocMetastore_ListLocations_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_metadata_imports.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_metadata_imports.php deleted file mode 100644 index 27e43a4b5755..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_metadata_imports.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreClient->listMetadataImports($request); - - /** @var MetadataImport $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 = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - list_metadata_imports_sample($formattedParent); -} -// [END metastore_v1_generated_DataprocMetastore_ListMetadataImports_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_services.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_services.php deleted file mode 100644 index 42f41c3829bf..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/list_services.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreClient->listServices($request); - - /** @var Service $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::locationName('[PROJECT]', '[LOCATION]'); - - list_services_sample($formattedParent); -} -// [END metastore_v1_generated_DataprocMetastore_ListServices_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/move_table_to_database.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/move_table_to_database.php deleted file mode 100644 index e6c398dfa459..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/move_table_to_database.php +++ /dev/null @@ -1,99 +0,0 @@ -setService($formattedService) - ->setTableName($tableName) - ->setDbName($dbName) - ->setDestinationDbName($destinationDbName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->moveTableToDatabase($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MoveTableToDatabaseResponse $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $tableName = '[TABLE_NAME]'; - $dbName = '[DB_NAME]'; - $destinationDbName = '[DESTINATION_DB_NAME]'; - - move_table_to_database_sample($formattedService, $tableName, $dbName, $destinationDbName); -} -// [END metastore_v1_generated_DataprocMetastore_MoveTableToDatabase_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/query_metadata.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/query_metadata.php deleted file mode 100644 index bf14e9aa8f26..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/query_metadata.php +++ /dev/null @@ -1,90 +0,0 @@ -setService($formattedService) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->queryMetadata($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var QueryMetadataResponse $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $query = '[QUERY]'; - - query_metadata_sample($formattedService, $query); -} -// [END metastore_v1_generated_DataprocMetastore_QueryMetadata_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/restore_service.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/restore_service.php deleted file mode 100644 index 844f532f320f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/restore_service.php +++ /dev/null @@ -1,98 +0,0 @@ -setService($formattedService) - ->setBackup($formattedBackup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->restoreService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Restore $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $formattedBackup = DataprocMetastoreClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[BACKUP]' - ); - - restore_service_sample($formattedService, $formattedBackup); -} -// [END metastore_v1_generated_DataprocMetastore_RestoreService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/set_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/set_iam_policy.php deleted file mode 100644 index d71ff2ac2499..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreClient->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 metastore_v1_generated_DataprocMetastore_SetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/test_iam_permissions.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/test_iam_permissions.php deleted file mode 100644 index b225077a7626..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataprocMetastoreClient->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 metastore_v1_generated_DataprocMetastore_TestIamPermissions_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/update_metadata_import.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/update_metadata_import.php deleted file mode 100644 index c513628d602f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/update_metadata_import.php +++ /dev/null @@ -1,75 +0,0 @@ -setUpdateMask($updateMask) - ->setMetadataImport($metadataImport); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->updateMetadataImport($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataImport $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 metastore_v1_generated_DataprocMetastore_UpdateMetadataImport_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/update_service.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/update_service.php deleted file mode 100644 index fa1dbc6805ac..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreClient/update_service.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setService($service); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->updateService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Service $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1_generated_DataprocMetastore_UpdateService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/create_federation.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/create_federation.php deleted file mode 100644 index 09d8e743136f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/create_federation.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreFederationClient->createFederation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Federation $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 = DataprocMetastoreFederationClient::locationName('[PROJECT]', '[LOCATION]'); - $federationId = '[FEDERATION_ID]'; - - create_federation_sample($formattedParent, $federationId); -} -// [END metastore_v1_generated_DataprocMetastoreFederation_CreateFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/delete_federation.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/delete_federation.php deleted file mode 100644 index 844d96f5e795..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/delete_federation.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreFederationClient->deleteFederation($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 = DataprocMetastoreFederationClient::federationName( - '[PROJECT]', - '[LOCATION]', - '[FEDERATION]' - ); - - delete_federation_sample($formattedName); -} -// [END metastore_v1_generated_DataprocMetastoreFederation_DeleteFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_federation.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_federation.php deleted file mode 100644 index d2153cdc0bcd..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_federation.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Federation $response */ - $response = $dataprocMetastoreFederationClient->getFederation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreFederationClient::federationName( - '[PROJECT]', - '[LOCATION]', - '[FEDERATION]' - ); - - get_federation_sample($formattedName); -} -// [END metastore_v1_generated_DataprocMetastoreFederation_GetFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_iam_policy.php deleted file mode 100644 index a29435486ad8..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreFederationClient->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 metastore_v1_generated_DataprocMetastoreFederation_GetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_location.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_location.php deleted file mode 100644 index a49e8aa53350..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1_generated_DataprocMetastoreFederation_GetLocation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/list_federations.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/list_federations.php deleted file mode 100644 index 95d43d3788f5..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/list_federations.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreFederationClient->listFederations($request); - - /** @var Federation $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 = DataprocMetastoreFederationClient::locationName('[PROJECT]', '[LOCATION]'); - - list_federations_sample($formattedParent); -} -// [END metastore_v1_generated_DataprocMetastoreFederation_ListFederations_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/list_locations.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/list_locations.php deleted file mode 100644 index 05cbc7372dbd..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1_generated_DataprocMetastoreFederation_ListLocations_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/set_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/set_iam_policy.php deleted file mode 100644 index aa32755344e9..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreFederationClient->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 metastore_v1_generated_DataprocMetastoreFederation_SetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/test_iam_permissions.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/test_iam_permissions.php deleted file mode 100644 index e2de000fc2ab..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataprocMetastoreFederationClient->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 metastore_v1_generated_DataprocMetastoreFederation_TestIamPermissions_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/update_federation.php b/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/update_federation.php deleted file mode 100644 index db90e91899d6..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/samples/V1/DataprocMetastoreFederationClient/update_federation.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setFederation($federation); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreFederationClient->updateFederation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Federation $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 metastore_v1_generated_DataprocMetastoreFederation_UpdateFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1/src/V1/Client/DataprocMetastoreClient.php b/owl-bot-staging/DataprocMetastore/v1/src/V1/Client/DataprocMetastoreClient.php deleted file mode 100644 index cec714942bf7..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/src/V1/Client/DataprocMetastoreClient.php +++ /dev/null @@ -1,1052 +0,0 @@ - alterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMetadataImportAsync(CreateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportMetadataAsync(ExportMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMetadataImportAsync(GetMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMetadataImportsAsync(ListMetadataImportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveTableToDatabaseAsync(MoveTableToDatabaseRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryMetadataAsync(QueryMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreServiceAsync(RestoreServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMetadataImportAsync(UpdateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $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 DataprocMetastoreClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.metastore.v1.DataprocMetastore'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'metastore.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'metastore.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/dataproc_metastore_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dataproc_metastore_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dataproc_metastore_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataproc_metastore_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a backup - * resource. - * - * @param string $project - * @param string $location - * @param string $service - * @param string $backup - * - * @return string The formatted backup resource. - */ - public static function backupName(string $project, string $location, string $service, string $backup): string - { - return self::getPathTemplate('backup')->render([ - 'project' => $project, - 'location' => $location, - 'service' => $service, - 'backup' => $backup, - ]); - } - - /** - * 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 - * metadata_import resource. - * - * @param string $project - * @param string $location - * @param string $service - * @param string $metadataImport - * - * @return string The formatted metadata_import resource. - */ - public static function metadataImportName(string $project, string $location, string $service, string $metadataImport): string - { - return self::getPathTemplate('metadataImport')->render([ - 'project' => $project, - 'location' => $location, - 'service' => $service, - 'metadata_import' => $metadataImport, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $project - * @param string $network - * - * @return string The formatted network resource. - */ - public static function networkName(string $project, string $network): string - { - return self::getPathTemplate('network')->render([ - 'project' => $project, - 'network' => $network, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a service - * resource. - * - * @param string $project - * @param string $location - * @param string $service - * - * @return string The formatted service resource. - */ - public static function serviceName(string $project, string $location, string $service): string - { - return self::getPathTemplate('service')->render([ - 'project' => $project, - 'location' => $location, - 'service' => $service, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a subnetwork - * resource. - * - * @param string $project - * @param string $region - * @param string $subnetwork - * - * @return string The formatted subnetwork resource. - */ - public static function subnetworkName(string $project, string $region, string $subnetwork): string - { - return self::getPathTemplate('subnetwork')->render([ - 'project' => $project, - 'region' => $region, - 'subnetwork' => $subnetwork, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - backup: projects/{project}/locations/{location}/services/{service}/backups/{backup} - * - location: projects/{project}/locations/{location} - * - metadataImport: projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import} - * - network: projects/{project}/global/networks/{network} - * - service: projects/{project}/locations/{location}/services/{service} - * - subnetwork: projects/{project}/regions/{region}/subnetworks/{subnetwork} - * - * 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 'metastore.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); - } - - /** - * Alter metadata resource location. The metadata resource can be a database, - * table, or partition. This functionality only updates the parent directory - * for the respective metadata resource and does not transfer any existing - * data to the new location. - * - * The async variant is - * {@see DataprocMetastoreClient::alterMetadataResourceLocationAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/alter_metadata_resource_location.php - * - * @param AlterMetadataResourceLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 alterMetadataResourceLocation(AlterMetadataResourceLocationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('AlterMetadataResourceLocation', $request, $callOptions)->wait(); - } - - /** - * Creates a new backup in a given project and location. - * - * The async variant is {@see DataprocMetastoreClient::createBackupAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/create_backup.php - * - * @param CreateBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createBackup(CreateBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateBackup', $request, $callOptions)->wait(); - } - - /** - * Creates a new MetadataImport in a given project and location. - * - * The async variant is {@see DataprocMetastoreClient::createMetadataImportAsync()} - * . - * - * @example samples/V1/DataprocMetastoreClient/create_metadata_import.php - * - * @param CreateMetadataImportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createMetadataImport(CreateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateMetadataImport', $request, $callOptions)->wait(); - } - - /** - * Creates a metastore service in a project and location. - * - * The async variant is {@see DataprocMetastoreClient::createServiceAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/create_service.php - * - * @param CreateServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function createService(CreateServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateService', $request, $callOptions)->wait(); - } - - /** - * Deletes a single backup. - * - * The async variant is {@see DataprocMetastoreClient::deleteBackupAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/delete_backup.php - * - * @param DeleteBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteBackup(DeleteBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteBackup', $request, $callOptions)->wait(); - } - - /** - * Deletes a single service. - * - * The async variant is {@see DataprocMetastoreClient::deleteServiceAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/delete_service.php - * - * @param DeleteServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deleteService(DeleteServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteService', $request, $callOptions)->wait(); - } - - /** - * Exports metadata from a service. - * - * The async variant is {@see DataprocMetastoreClient::exportMetadataAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/export_metadata.php - * - * @param ExportMetadataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 exportMetadata(ExportMetadataRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ExportMetadata', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single backup. - * - * The async variant is {@see DataprocMetastoreClient::getBackupAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/get_backup.php - * - * @param GetBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Backup - * - * @throws ApiException Thrown if the API call fails. - */ - public function getBackup(GetBackupRequest $request, array $callOptions = []): Backup - { - return $this->startApiCall('GetBackup', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single import. - * - * The async variant is {@see DataprocMetastoreClient::getMetadataImportAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/get_metadata_import.php - * - * @param GetMetadataImportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MetadataImport - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMetadataImport(GetMetadataImportRequest $request, array $callOptions = []): MetadataImport - { - return $this->startApiCall('GetMetadataImport', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a single service. - * - * The async variant is {@see DataprocMetastoreClient::getServiceAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/get_service.php - * - * @param GetServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Service - * - * @throws ApiException Thrown if the API call fails. - */ - public function getService(GetServiceRequest $request, array $callOptions = []): Service - { - return $this->startApiCall('GetService', $request, $callOptions)->wait(); - } - - /** - * Lists backups in a service. - * - * The async variant is {@see DataprocMetastoreClient::listBackupsAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/list_backups.php - * - * @param ListBackupsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listBackups(ListBackupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBackups', $request, $callOptions); - } - - /** - * Lists imports in a service. - * - * The async variant is {@see DataprocMetastoreClient::listMetadataImportsAsync()} - * . - * - * @example samples/V1/DataprocMetastoreClient/list_metadata_imports.php - * - * @param ListMetadataImportsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listMetadataImports(ListMetadataImportsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMetadataImports', $request, $callOptions); - } - - /** - * Lists services in a project and location. - * - * The async variant is {@see DataprocMetastoreClient::listServicesAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/list_services.php - * - * @param ListServicesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listServices(ListServicesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListServices', $request, $callOptions); - } - - /** - * Move a table to another database. - * - * The async variant is {@see DataprocMetastoreClient::moveTableToDatabaseAsync()} - * . - * - * @example samples/V1/DataprocMetastoreClient/move_table_to_database.php - * - * @param MoveTableToDatabaseRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 moveTableToDatabase(MoveTableToDatabaseRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('MoveTableToDatabase', $request, $callOptions)->wait(); - } - - /** - * Query DPMS metadata. - * - * The async variant is {@see DataprocMetastoreClient::queryMetadataAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/query_metadata.php - * - * @param QueryMetadataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 queryMetadata(QueryMetadataRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('QueryMetadata', $request, $callOptions)->wait(); - } - - /** - * Restores a service from a backup. - * - * The async variant is {@see DataprocMetastoreClient::restoreServiceAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/restore_service.php - * - * @param RestoreServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 restoreService(RestoreServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RestoreService', $request, $callOptions)->wait(); - } - - /** - * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - * - * The async variant is {@see DataprocMetastoreClient::updateMetadataImportAsync()} - * . - * - * @example samples/V1/DataprocMetastoreClient/update_metadata_import.php - * - * @param UpdateMetadataImportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateMetadataImport(UpdateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateMetadataImport', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single service. - * - * The async variant is {@see DataprocMetastoreClient::updateServiceAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/update_service.php - * - * @param UpdateServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateService(UpdateServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateService', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataprocMetastoreClient::getLocationAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/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 DataprocMetastoreClient::listLocationsAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/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 DataprocMetastoreClient::getIamPolicyAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/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 DataprocMetastoreClient::setIamPolicyAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/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 DataprocMetastoreClient::testIamPermissionsAsync()} . - * - * @example samples/V1/DataprocMetastoreClient/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/DataprocMetastore/v1/src/V1/Client/DataprocMetastoreFederationClient.php b/owl-bot-staging/DataprocMetastore/v1/src/V1/Client/DataprocMetastoreFederationClient.php deleted file mode 100644 index 960d8f7e8c4d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/src/V1/Client/DataprocMetastoreFederationClient.php +++ /dev/null @@ -1,600 +0,0 @@ - createFederationAsync(CreateFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFederationAsync(DeleteFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFederationAsync(GetFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFederationsAsync(ListFederationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFederationAsync(UpdateFederationRequest $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 DataprocMetastoreFederationClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.metastore.v1.DataprocMetastoreFederation'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'metastore.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'metastore.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/dataproc_metastore_federation_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_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 federation - * resource. - * - * @param string $project - * @param string $location - * @param string $federation - * - * @return string The formatted federation resource. - */ - public static function federationName(string $project, string $location, string $federation): string - { - return self::getPathTemplate('federation')->render([ - 'project' => $project, - 'location' => $location, - 'federation' => $federation, - ]); - } - - /** - * 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 - * - federation: projects/{project}/locations/{location}/federations/{federation} - * - 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 'metastore.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 metastore federation in a project and location. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::createFederationAsync()} . - * - * @example samples/V1/DataprocMetastoreFederationClient/create_federation.php - * - * @param CreateFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createFederation(CreateFederationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateFederation', $request, $callOptions)->wait(); - } - - /** - * Deletes a single federation. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::deleteFederationAsync()} . - * - * @example samples/V1/DataprocMetastoreFederationClient/delete_federation.php - * - * @param DeleteFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteFederation(DeleteFederationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteFederation', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a single federation. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::getFederationAsync()} . - * - * @example samples/V1/DataprocMetastoreFederationClient/get_federation.php - * - * @param GetFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Federation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFederation(GetFederationRequest $request, array $callOptions = []): Federation - { - return $this->startApiCall('GetFederation', $request, $callOptions)->wait(); - } - - /** - * Lists federations in a project and location. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::listFederationsAsync()} . - * - * @example samples/V1/DataprocMetastoreFederationClient/list_federations.php - * - * @param ListFederationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listFederations(ListFederationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFederations', $request, $callOptions); - } - - /** - * Updates the fields of a federation. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::updateFederationAsync()} . - * - * @example samples/V1/DataprocMetastoreFederationClient/update_federation.php - * - * @param UpdateFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateFederation(UpdateFederationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateFederation', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::getLocationAsync()} . - * - * @example samples/V1/DataprocMetastoreFederationClient/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 DataprocMetastoreFederationClient::listLocationsAsync()} . - * - * @example samples/V1/DataprocMetastoreFederationClient/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 DataprocMetastoreFederationClient::getIamPolicyAsync()} . - * - * @example samples/V1/DataprocMetastoreFederationClient/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 DataprocMetastoreFederationClient::setIamPolicyAsync()} . - * - * @example samples/V1/DataprocMetastoreFederationClient/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 DataprocMetastoreFederationClient::testIamPermissionsAsync()} . - * - * @example samples/V1/DataprocMetastoreFederationClient/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/DataprocMetastore/v1/src/V1/gapic_metadata.json b/owl-bot-staging/DataprocMetastore/v1/src/V1/gapic_metadata.json deleted file mode 100644 index f92d9fc3ca37..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,192 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.metastore.v1", - "libraryPackage": "Google\\Cloud\\Metastore\\V1", - "services": { - "DataprocMetastore": { - "clients": { - "grpc": { - "libraryClient": "DataprocMetastoreGapicClient", - "rpcs": { - "AlterMetadataResourceLocation": { - "methods": [ - "alterMetadataResourceLocation" - ] - }, - "CreateBackup": { - "methods": [ - "createBackup" - ] - }, - "CreateMetadataImport": { - "methods": [ - "createMetadataImport" - ] - }, - "CreateService": { - "methods": [ - "createService" - ] - }, - "DeleteBackup": { - "methods": [ - "deleteBackup" - ] - }, - "DeleteService": { - "methods": [ - "deleteService" - ] - }, - "ExportMetadata": { - "methods": [ - "exportMetadata" - ] - }, - "GetBackup": { - "methods": [ - "getBackup" - ] - }, - "GetMetadataImport": { - "methods": [ - "getMetadataImport" - ] - }, - "GetService": { - "methods": [ - "getService" - ] - }, - "ListBackups": { - "methods": [ - "listBackups" - ] - }, - "ListMetadataImports": { - "methods": [ - "listMetadataImports" - ] - }, - "ListServices": { - "methods": [ - "listServices" - ] - }, - "MoveTableToDatabase": { - "methods": [ - "moveTableToDatabase" - ] - }, - "QueryMetadata": { - "methods": [ - "queryMetadata" - ] - }, - "RestoreService": { - "methods": [ - "restoreService" - ] - }, - "UpdateMetadataImport": { - "methods": [ - "updateMetadataImport" - ] - }, - "UpdateService": { - "methods": [ - "updateService" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "DataprocMetastoreFederation": { - "clients": { - "grpc": { - "libraryClient": "DataprocMetastoreFederationGapicClient", - "rpcs": { - "CreateFederation": { - "methods": [ - "createFederation" - ] - }, - "DeleteFederation": { - "methods": [ - "deleteFederation" - ] - }, - "GetFederation": { - "methods": [ - "getFederation" - ] - }, - "ListFederations": { - "methods": [ - "listFederations" - ] - }, - "UpdateFederation": { - "methods": [ - "updateFederation" - ] - }, - "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/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_client_config.json b/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_client_config.json deleted file mode 100644 index 148e3d516ac2..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_client_config.json +++ /dev/null @@ -1,159 +0,0 @@ -{ - "interfaces": { - "google.cloud.metastore.v1.DataprocMetastore": { - "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": { - "AlterMetadataResourceLocation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateMetadataImport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ExportMetadata": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetBackup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMetadataImport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetService": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListBackups": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMetadataImports": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListServices": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "MoveTableToDatabase": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "QueryMetadata": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RestoreService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateMetadataImport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListLocations": { - "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" - }, - "SetIamPolicy": { - "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" - } - } - } - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_descriptor_config.php b/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_descriptor_config.php deleted file mode 100644 index 2bd8ecc833d2..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_descriptor_config.php +++ /dev/null @@ -1,435 +0,0 @@ - [ - 'google.cloud.metastore.v1.DataprocMetastore' => [ - 'AlterMetadataResourceLocation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\AlterMetadataResourceLocationResponse', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'CreateBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\Backup', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMetadataImport' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\MetadataImport', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\Service', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ExportMetadata' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\MetadataExport', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'MoveTableToDatabase' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\MoveTableToDatabaseResponse', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'QueryMetadata' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\QueryMetadataResponse', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'RestoreService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\Restore', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'UpdateMetadataImport' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\MetadataImport', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'metadata_import.name', - 'fieldAccessors' => [ - 'getMetadataImport', - 'getName', - ], - ], - ], - ], - 'UpdateService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\Service', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service.name', - 'fieldAccessors' => [ - 'getService', - 'getName', - ], - ], - ], - ], - 'GetBackup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1\Backup', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadataImport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1\MetadataImport', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1\Service', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListBackups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBackups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1\ListBackupsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMetadataImports' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMetadataImports', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1\ListMetadataImportsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListServices' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getServices', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1\ListServicesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'backup' => 'projects/{project}/locations/{location}/services/{service}/backups/{backup}', - 'location' => 'projects/{project}/locations/{location}', - 'metadataImport' => 'projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}', - 'network' => 'projects/{project}/global/networks/{network}', - 'service' => 'projects/{project}/locations/{location}/services/{service}', - 'subnetwork' => 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_client_config.json b/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_client_config.json deleted file mode 100644 index ffae7827578f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_client_config.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "interfaces": { - "google.cloud.metastore.v1.DataprocMetastoreFederation": { - "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": { - "CreateFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListFederations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_descriptor_config.php b/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_descriptor_config.php deleted file mode 100644 index 6cc1c44a5edc..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_descriptor_config.php +++ /dev/null @@ -1,195 +0,0 @@ - [ - 'google.cloud.metastore.v1.DataprocMetastoreFederation' => [ - 'CreateFederation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\Federation', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteFederation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateFederation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1\Federation', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'federation.name', - 'fieldAccessors' => [ - 'getFederation', - 'getName', - ], - ], - ], - ], - 'GetFederation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1\Federation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListFederations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFederations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1\ListFederationsResponse', - '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' => [ - 'federation' => 'projects/{project}/locations/{location}/federations/{federation}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_rest_client_config.php b/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_rest_client_config.php deleted file mode 100644 index 30e2dfd599f0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_federation_rest_client_config.php +++ /dev/null @@ -1,230 +0,0 @@ - [ - '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.cloud.metastore.v1.DataprocMetastoreFederation' => [ - 'CreateFederation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/federations', - 'body' => 'federation', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'federation_id', - ], - ], - 'DeleteFederation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/federations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFederation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/federations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListFederations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/federations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateFederation' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{federation.name=projects/*/locations/*/federations/*}', - 'body' => 'federation', - 'placeholders' => [ - 'federation.name' => [ - 'getters' => [ - 'getFederation', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/services/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/services/*/backups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/federations/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/services/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/services/*/backups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/federations/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/services/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/federations/*}: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/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_rest_client_config.php b/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_rest_client_config.php deleted file mode 100644 index c77a6c280858..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/src/V1/resources/dataproc_metastore_rest_client_config.php +++ /dev/null @@ -1,391 +0,0 @@ - [ - '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.cloud.metastore.v1.DataprocMetastore' => [ - 'AlterMetadataResourceLocation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{service=projects/*/locations/*/services/*}:alterLocation', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'CreateBackup' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/services/*}/backups', - 'body' => 'backup', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'backup_id', - ], - ], - 'CreateMetadataImport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/services/*}/metadataImports', - 'body' => 'metadata_import', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'metadata_import_id', - ], - ], - 'CreateService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/services', - 'body' => 'service', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'service_id', - ], - ], - 'DeleteBackup' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/services/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteService' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/services/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ExportMetadata' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{service=projects/*/locations/*/services/*}:exportMetadata', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'GetBackup' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/services/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadataImport' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/services/*/metadataImports/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetService' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/services/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListBackups' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/services/*}/backups', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMetadataImports' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/services/*}/metadataImports', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListServices' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/services', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'MoveTableToDatabase' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{service=projects/*/locations/*/services/*}:moveTableToDatabase', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'QueryMetadata' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{service=projects/*/locations/*/services/*}:queryMetadata', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'RestoreService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{service=projects/*/locations/*/services/*}:restore', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'UpdateMetadataImport' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{metadata_import.name=projects/*/locations/*/services/*/metadataImports/*}', - 'body' => 'metadata_import', - 'placeholders' => [ - 'metadata_import.name' => [ - 'getters' => [ - 'getMetadataImport', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateService' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{service.name=projects/*/locations/*/services/*}', - 'body' => 'service', - 'placeholders' => [ - 'service.name' => [ - 'getters' => [ - 'getService', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/services/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/services/*/backups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/federations/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/services/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/services/*/backups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/federations/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/services/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/federations/*}: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/DataprocMetastore/v1/tests/Unit/V1/Client/DataprocMetastoreClientTest.php b/owl-bot-staging/DataprocMetastore/v1/tests/Unit/V1/Client/DataprocMetastoreClientTest.php deleted file mode 100644 index 5bdf7124a221..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/tests/Unit/V1/Client/DataprocMetastoreClientTest.php +++ /dev/null @@ -1,2520 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataprocMetastoreClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataprocMetastoreClient($options); - } - - /** @test */ - public function alterMetadataResourceLocationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/alterMetadataResourceLocationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new AlterMetadataResourceLocationResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/alterMetadataResourceLocationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = 'resourceName979421212'; - $locationUri = 'locationUri-57953822'; - $request = (new AlterMetadataResourceLocationRequest()) - ->setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - $response = $gapicClient->alterMetadataResourceLocation($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.metastore.v1.DataprocMetastore/AlterMetadataResourceLocation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getResourceName(); - $this->assertProtobufEquals($resourceName, $actualValue); - $actualValue = $actualApiRequestObject->getLocationUri(); - $this->assertProtobufEquals($locationUri, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/alterMetadataResourceLocationTest'); - $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 alterMetadataResourceLocationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/alterMetadataResourceLocationTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = 'resourceName979421212'; - $locationUri = 'locationUri-57953822'; - $request = (new AlterMetadataResourceLocationRequest()) - ->setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - $response = $gapicClient->alterMetadataResourceLocation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/alterMetadataResourceLocationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new Backup(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $backupId = 'backupId1355353272'; - $backup = new Backup(); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - $response = $gapicClient->createBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastore/CreateBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getBackupId(); - $this->assertProtobufEquals($backupId, $actualValue); - $actualValue = $actualApiRequestObject->getBackup(); - $this->assertProtobufEquals($backup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $backupId = 'backupId1355353272'; - $backup = new Backup(); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - $response = $gapicClient->createBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createMetadataImportTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createMetadataImportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new MetadataImport(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createMetadataImportTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $metadataImportId = 'metadataImportId-476076315'; - $metadataImport = new MetadataImport(); - $request = (new CreateMetadataImportRequest()) - ->setParent($formattedParent) - ->setMetadataImportId($metadataImportId) - ->setMetadataImport($metadataImport); - $response = $gapicClient->createMetadataImport($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.metastore.v1.DataprocMetastore/CreateMetadataImport', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataImportId(); - $this->assertProtobufEquals($metadataImportId, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataImport(); - $this->assertProtobufEquals($metadataImport, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMetadataImportTest'); - $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 createMetadataImportExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createMetadataImportTest'); - $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->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $metadataImportId = 'metadataImportId-476076315'; - $metadataImport = new MetadataImport(); - $request = (new CreateMetadataImportRequest()) - ->setParent($formattedParent) - ->setMetadataImportId($metadataImportId) - ->setMetadataImport($metadataImport); - $response = $gapicClient->createMetadataImport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMetadataImportTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $network = 'network1843485230'; - $endpointUri = 'endpointUri-850313278'; - $port = 3446913; - $stateMessage = 'stateMessage29641305'; - $artifactGcsUri = 'artifactGcsUri1337121495'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name); - $expectedResponse->setNetwork($network); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setPort($port); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setArtifactGcsUri($artifactGcsUri); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $serviceId = 'serviceId-1724763419'; - $service = new Service(); - $request = (new CreateServiceRequest()) - ->setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - $response = $gapicClient->createService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastore/CreateService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getServiceId(); - $this->assertProtobufEquals($serviceId, $actualValue); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($service, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $serviceId = 'serviceId-1724763419'; - $service = new Service(); - $request = (new CreateServiceRequest()) - ->setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - $response = $gapicClient->createService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastore/DeleteBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new DeleteServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastore/DeleteService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new DeleteServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function exportMetadataTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportMetadataTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $destinationGcsUri = 'destinationGcsUri1386421523'; - $expectedResponse = new MetadataExport(); - $expectedResponse->setDestinationGcsUri($destinationGcsUri); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/exportMetadataTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ExportMetadataRequest()) - ->setService($formattedService); - $response = $gapicClient->exportMetadata($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.metastore.v1.DataprocMetastore/ExportMetadata', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportMetadataTest'); - $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 exportMetadataExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportMetadataTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ExportMetadataRequest()) - ->setService($formattedService); - $response = $gapicClient->exportMetadata($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportMetadataTest'); - 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 getBackupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $expectedResponse = new Backup(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->getBackup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastore/GetBackup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - try { - $gapicClient->getBackup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataImportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $expectedResponse = new MetadataImport(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataImportName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[METADATA_IMPORT]'); - $request = (new GetMetadataImportRequest()) - ->setName($formattedName); - $response = $gapicClient->getMetadataImport($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.metastore.v1.DataprocMetastore/GetMetadataImport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataImportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->metadataImportName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[METADATA_IMPORT]'); - $request = (new GetMetadataImportRequest()) - ->setName($formattedName); - try { - $gapicClient->getMetadataImport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $network = 'network1843485230'; - $endpointUri = 'endpointUri-850313278'; - $port = 3446913; - $stateMessage = 'stateMessage29641305'; - $artifactGcsUri = 'artifactGcsUri1337121495'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name2); - $expectedResponse->setNetwork($network); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setPort($port); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setArtifactGcsUri($artifactGcsUri); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new GetServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->getService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastore/GetService', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new GetServiceRequest()) - ->setName($formattedName); - try { - $gapicClient->getService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $backupsElement = new Backup(); - $backups = [ - $backupsElement, - ]; - $expectedResponse = new ListBackupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBackups($backups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBackups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBackups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastore/ListBackups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBackups($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMetadataImportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $metadataImportsElement = new MetadataImport(); - $metadataImports = [ - $metadataImportsElement, - ]; - $expectedResponse = new ListMetadataImportsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMetadataImports($metadataImports); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListMetadataImportsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMetadataImports($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMetadataImports()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastore/ListMetadataImports', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMetadataImportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListMetadataImportsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMetadataImports($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $servicesElement = new Service(); - $services = [ - $servicesElement, - ]; - $expectedResponse = new ListServicesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setServices($services); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListServicesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listServices($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getServices()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastore/ListServices', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListServicesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listServices($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveTableToDatabaseTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveTableToDatabaseTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new MoveTableToDatabaseResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/moveTableToDatabaseTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $tableName = 'tableName-1504630692'; - $dbName = 'dbName1452819884'; - $destinationDbName = 'destinationDbName-1322761605'; - $request = (new MoveTableToDatabaseRequest()) - ->setService($formattedService) - ->setTableName($tableName) - ->setDbName($dbName) - ->setDestinationDbName($destinationDbName); - $response = $gapicClient->moveTableToDatabase($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.metastore.v1.DataprocMetastore/MoveTableToDatabase', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getTableName(); - $this->assertProtobufEquals($tableName, $actualValue); - $actualValue = $actualApiRequestObject->getDbName(); - $this->assertProtobufEquals($dbName, $actualValue); - $actualValue = $actualApiRequestObject->getDestinationDbName(); - $this->assertProtobufEquals($destinationDbName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveTableToDatabaseTest'); - $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 moveTableToDatabaseExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveTableToDatabaseTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $tableName = 'tableName-1504630692'; - $dbName = 'dbName1452819884'; - $destinationDbName = 'destinationDbName-1322761605'; - $request = (new MoveTableToDatabaseRequest()) - ->setService($formattedService) - ->setTableName($tableName) - ->setDbName($dbName) - ->setDestinationDbName($destinationDbName); - $response = $gapicClient->moveTableToDatabase($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveTableToDatabaseTest'); - 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 queryMetadataTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/queryMetadataTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $resultManifestUri = 'resultManifestUri-1050940354'; - $expectedResponse = new QueryMetadataResponse(); - $expectedResponse->setResultManifestUri($resultManifestUri); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/queryMetadataTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $query = 'query107944136'; - $request = (new QueryMetadataRequest()) - ->setService($formattedService) - ->setQuery($query); - $response = $gapicClient->queryMetadata($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.metastore.v1.DataprocMetastore/QueryMetadata', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/queryMetadataTest'); - $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 queryMetadataExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/queryMetadataTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $query = 'query107944136'; - $request = (new QueryMetadataRequest()) - ->setService($formattedService) - ->setQuery($query); - $response = $gapicClient->queryMetadata($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/queryMetadataTest'); - 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 restoreServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $backup2 = 'backup22121930997'; - $details = 'details1557721666'; - $expectedResponse = new Restore(); - $expectedResponse->setBackup($backup2); - $expectedResponse->setDetails($details); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/restoreServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new RestoreServiceRequest()) - ->setService($formattedService) - ->setBackup($formattedBackup); - $response = $gapicClient->restoreService($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.metastore.v1.DataprocMetastore/RestoreService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getBackup(); - $this->assertProtobufEquals($formattedBackup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreServiceTest'); - $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 restoreServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreServiceTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new RestoreServiceRequest()) - ->setService($formattedService) - ->setBackup($formattedBackup); - $response = $gapicClient->restoreService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreServiceTest'); - 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 updateMetadataImportTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateMetadataImportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new MetadataImport(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateMetadataImportTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $metadataImport = new MetadataImport(); - $request = (new UpdateMetadataImportRequest()) - ->setUpdateMask($updateMask) - ->setMetadataImport($metadataImport); - $response = $gapicClient->updateMetadataImport($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.metastore.v1.DataprocMetastore/UpdateMetadataImport', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataImport(); - $this->assertProtobufEquals($metadataImport, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMetadataImportTest'); - $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 updateMetadataImportExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateMetadataImportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $metadataImport = new MetadataImport(); - $request = (new UpdateMetadataImportRequest()) - ->setUpdateMask($updateMask) - ->setMetadataImport($metadataImport); - $response = $gapicClient->updateMetadataImport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMetadataImportTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $network = 'network1843485230'; - $endpointUri = 'endpointUri-850313278'; - $port = 3446913; - $stateMessage = 'stateMessage29641305'; - $artifactGcsUri = 'artifactGcsUri1337121495'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name); - $expectedResponse->setNetwork($network); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setPort($port); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setArtifactGcsUri($artifactGcsUri); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $service = new Service(); - $request = (new UpdateServiceRequest()) - ->setUpdateMask($updateMask) - ->setService($service); - $response = $gapicClient->updateService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastore/UpdateService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($service, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $service = new Service(); - $request = (new UpdateServiceRequest()) - ->setUpdateMask($updateMask) - ->setService($service); - $response = $gapicClient->updateService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function 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 alterMetadataResourceLocationAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/alterMetadataResourceLocationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new AlterMetadataResourceLocationResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/alterMetadataResourceLocationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = 'resourceName979421212'; - $locationUri = 'locationUri-57953822'; - $request = (new AlterMetadataResourceLocationRequest()) - ->setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - $response = $gapicClient->alterMetadataResourceLocationAsync($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.metastore.v1.DataprocMetastore/AlterMetadataResourceLocation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getResourceName(); - $this->assertProtobufEquals($resourceName, $actualValue); - $actualValue = $actualApiRequestObject->getLocationUri(); - $this->assertProtobufEquals($locationUri, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/alterMetadataResourceLocationTest'); - $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/DataprocMetastore/v1/tests/Unit/V1/Client/DataprocMetastoreFederationClientTest.php b/owl-bot-staging/DataprocMetastore/v1/tests/Unit/V1/Client/DataprocMetastoreFederationClientTest.php deleted file mode 100644 index 8fa6ea14193d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1/tests/Unit/V1/Client/DataprocMetastoreFederationClientTest.php +++ /dev/null @@ -1,1039 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataprocMetastoreFederationClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataprocMetastoreFederationClient($options); - } - - /** @test */ - public function createFederationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $federationId = 'federationId-1338699881'; - $federation = new Federation(); - $request = (new CreateFederationRequest()) - ->setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - $response = $gapicClient->createFederation($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.metastore.v1.DataprocMetastoreFederation/CreateFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFederationId(); - $this->assertProtobufEquals($federationId, $actualValue); - $actualValue = $actualApiRequestObject->getFederation(); - $this->assertProtobufEquals($federation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFederationTest'); - $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 createFederationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFederationTest'); - $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]'); - $federationId = 'federationId-1338699881'; - $federation = new Federation(); - $request = (new CreateFederationRequest()) - ->setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - $response = $gapicClient->createFederation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFederationTest'); - 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 deleteFederationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new DeleteFederationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFederation($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.metastore.v1.DataprocMetastoreFederation/DeleteFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFederationTest'); - $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 deleteFederationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFederationTest'); - $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->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new DeleteFederationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFederation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFederationTest'); - 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 getFederationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name2); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new GetFederationRequest()) - ->setName($formattedName); - $response = $gapicClient->getFederation($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.metastore.v1.DataprocMetastoreFederation/GetFederation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFederationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new GetFederationRequest()) - ->setName($formattedName); - try { - $gapicClient->getFederation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFederationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $federationsElement = new Federation(); - $federations = [ - $federationsElement, - ]; - $expectedResponse = new ListFederationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFederations($federations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListFederationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFederations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFederations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1.DataprocMetastoreFederation/ListFederations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFederationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListFederationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFederations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFederationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $federation = new Federation(); - $request = (new UpdateFederationRequest()) - ->setUpdateMask($updateMask) - ->setFederation($federation); - $response = $gapicClient->updateFederation($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.metastore.v1.DataprocMetastoreFederation/UpdateFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getFederation(); - $this->assertProtobufEquals($federation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateFederationTest'); - $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 updateFederationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $federation = new Federation(); - $request = (new UpdateFederationRequest()) - ->setUpdateMask($updateMask) - ->setFederation($federation); - $response = $gapicClient->updateFederation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateFederationTest'); - 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 createFederationAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $federationId = 'federationId-1338699881'; - $federation = new Federation(); - $request = (new CreateFederationRequest()) - ->setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - $response = $gapicClient->createFederationAsync($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.metastore.v1.DataprocMetastoreFederation/CreateFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFederationId(); - $this->assertProtobufEquals($federationId, $actualValue); - $actualValue = $actualApiRequestObject->getFederation(); - $this->assertProtobufEquals($federation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFederationTest'); - $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/DataprocMetastore/v1alpha/proto/src/GPBMetadata/Google/Cloud/Metastore/V1Alpha/Metastore.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/GPBMetadata/Google/Cloud/Metastore/V1Alpha/Metastore.php deleted file mode 100644 index f9a994e923079509884445abc6bc578df8e8b461..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17839 zcmcg!TWlLwdJaiTmX0h+KJtZ;;)EW1*OxkEEaytcn~bE9M4KWNl6LAqC^00Dq^U>_ zGc&ZUrfQ26#R6^LcDu+HMGGu8KyN78*P{E-Vu2O`ilXg9fjsTQq7O#j+NZQY`=8s~ zNO?%fu3tf1dm=?)Cx~aFi zySn!z!&oEK(c8rC>J5@!+g#d!@lD;)x7HY!t!2t(i#}yswjSJ6DVN&_HCnoDr`>PR zXDAK-y1jbKXrygNci_LvhFvo{hGXb0<5xhYJLzq`WfP$8AG_V_G#tb1q$xqE(;!!` zr8!SJ_Hx$*9o$LFb!}3$fJ(OV9fw#Qy|uMM?1p7@LDo$en#=7F$5keMa`l>+ma;Rp z(^vT#bGg1n-bp)FkN9U#r!C_2tj=w=Zpz@m{j@beYiifnQac@!YQgN-xtu4H$Ko); z<(5G@&S*5N25B{y$gcj#Fs;!@%S0H?(2FdXogJ&!=@^}ztx}ho>u5r{dk31++FfUV z_yxP9OyCXO-a7(q)c}Kc^mg|Mv>#h~7epRmORM``vbCb`o7;~GIb^xax?lf}A#7P~ zHeJ(Q1!uqN8XGmeE9lG5V<vKmqa(l%9A$isv@L23&XnqGaD%+GB#lKX3ltd>h#Cl{j2(F^DyT&6@bCp+Xn4N87 zCpDIiU7cFICAQ=+6=&9g*o~LVjCB1ad>Wmg5jYhCCX-8vpQ&T`O*GZ82xNg8l_eEt z?B^wWDM!Y&V@j2vRJ|_5Zb6k8j%pc=xAZz`*{Kuh#4u6_ZDb0JO6xe*K7I$C>=5U% zY3-#>GBLglVtk{f(W^9F^&BGB4#s6?;8C{7N8^{#Dbi_nO|bl0&oWXIQV9us3Z3Yh zmXn%Diq6oNmKi?2&%9AeHHxylM9;`*6K(~Je|pKa?qBsJwtb^*=mmSb$| z4X3u#u-RHpd0*$y3CAE-YMM=cW7x^7K!ZO*XQ;u@qzbvvAv-)?rjo#G2&16}LuqNA z6QpNJ}w7de$!`-aOx6&(1ERMCt@T12-=t+A_jI;54F1J23Cx1%`A?JaZi zWlqh#XA_+!orbmFrD;jJ=oz-+H=_7zE+O|%&QU{2VcwG6S;j8X3Wb?-UU(Bt)19nS zd10wc zCu4qbYx2m_ms?vd?21ooj-I(%gXpDI%K8sFQs%llM-7i)) zwdMS3UR#-c34*}Ha#>TW`QqAa3?nqIE?4spwAnaLB2>8#LyIf)y96+w6n_KZ2}*c> zbA=O*(Z5!-g2vd4<4H88mCL2_>`CP|I>DUu44SRxwQ^{7;JKnb& zl{d@ziZ+{2@+cX!Kl~b6D8oEzMXN2ZtHq*L2yp}nmerzKe#oT(k(UY}jiRAb{@ukF z(95uRb%}DSKHLne1ti#bSox>`T&5sDZPKaAv+82JV0~J-sGN%+ax`t*bzix{>kw(gMV3;4r=p+QxdW$q! z#+^|9K8BJ(Li`XVTlyZU$vVdd)23Nd9c=-SJokt!yls|4=RZNX|0!&*&w+0F9cXIt za@3@hA9J&J&PQUY27Gxa7H&q)dz3o}q5m$pBKZY(rT1_z96d(cKMp*AXFli2wq0{`vGV$s>>u<&9VyZr101NZjGV`-3+Qa42idt@vrK4=>{=k_%>PXc zDjq?AKS0Rt)kWzkg5EXOSzSUG59zEbE&=qG;r5Ez64MY~@r5Fp@L4FDT!JYQ->5K! zd~SEBI=+vWb!%c_EAH~p2xU$?ph$jDS(`xGulOnnJUXA9x;}E0or1tEKXWTJ5j33fh{wOlvK0;k%Vm5nTAsVrX90D*b&4v{tOVp-Hhu zp3nwV?s{abms~YQ#eF0Q77cL8KbHqn=b+i z2=S{{$$t{Y`DW0R_KVfBTB~fROeO&S_($ed8*uc0e*?fzcwA7+YZ?HbE(w1ywlo9B z9s<~Hn@!SE{v6P{f?+!%D%fT6X%Bn=zl+AZx&=7D=rpeWOpSk|DmWTXJO|AzoDpyZ z(gZa|?IDKGBgCFN<{s&YiiLeKhsL*!7989Q17;7;q6yP#602679y+~7q`IWG z-VQ)%LRZn)tMa!ofKJ%qp3uK!cy#rHnuR86aE!wQq56;GJLshNf+>G$acB*3dSGmE z>uPF@*PlTvojnH4zaa7bvG zN8CJW&_0E@nvN-d4P7O*(qKL6y4D9F*UB>2x`v0ZY+tC0{ay?$3|zf%wRK-p%xmG1 zn_|(sj^=m|Q3@O{s8i`KcLM$=6gqsXp!_??%>8gM|Ko2N)Ks*X@pTX(_bi~9&;a44 zLqiQ*s}ar$wzLQM; zA77{={VLC_?qY@i!1V}TuSvIwM2R_v5%UzB27|kBQt2jd1>8icDY8&h0Ee98?h)j7 zEX8vrguLLkTg>uaYDnEg7(GFAJn{#Ze?)a09{B$&hR*VySvr^0d>Wk#qXFAy3+fw* z*h2;5re}WnXXq*-v>wl24(Zm94Go3cYAUv<$wR627(#h%4bQAYTPrT2Qx5CLGN}=hJF2#EP|Y6I25UXkn%R?UzT0;#L>^ zh8D21690EK&_x&RUYEktz%z77&OL_YRk{|{T7{Vh@6CyG$obpoOyK-hJg3;Hn2@(I z7~luEh1?|Ddava$-t}%`i3PEQ+>Je*SZi1Zq7#@hx81#bHzORW;-b80Z(})GZc_la>Y8$uoitzbcUdoSL)c=kpP#&dMLt zGauNdDsAejrri4HpfG3%0FQ5x8oR>jHUx17kkt88H#*00I*1TA#RxaR#FYzZVc<%+ z&Xq4>=(0*1XK&N_!GLs{=O7c@lZ1U`w%aEbm~Km){jtsVWK*`Tpl?MijSI2(58vX~ zZve?_P&wFf7yb!YjK9&xk?53vw2*r~@~kIFB-Fa}wJPe#&;Rx3-;3YEH{I7IKI3)f z9T#@I?z<{=-Mb=%p;AR2On@V=H+f^_+K29Xl@GsG*`?wB)lxe=WUbz9uImT*HvtI? zzz{f6bAjP<%@<@e_g(SMxEWIUgVfxo!((eKw1%os=+X%;bm`cpBaYyt{pzd#Qz*)_+@ax_+9C^huw~Y_!K0O zB97SLD`kJM3dl6vMui2+LiqZ-xI|HdYs8WIe+K3=9}&#{5zKeVJM|Ti))DOXnuuxb zAUt#<^tX(050vL&2e~lVgntT390UwSD{&B&G>-@+{?qeP;zCGUH^QNDd$HoVPiXLv zA##A}^{erJ;F@p{0>F{y;=%Dls_uJ1)o~u9$4!a$odf&Ue3Kna)fw)Uc`I8@EiO; z8QnGIIJ=e;Hv#Z}L;K`MJfk(?A3dZds0+TB0`AUrpB6^9gMWj2ry<}3M_$tn5l9`p z6Xm{rbiy4gETC*C>z)@vlwgf?bZE_9zkZOjf@l&AE`T^r2k@8Z(mXI+N)=(_Kjb?b zBISaO9%`8))|4er5hFy_PyL`4Rlyf=c)h3}zKO2W2M`UZjxRwSrDsAhM^s9{Iz~`R zyI+2)n!k*r3(o{yaO8U>&mhfayzo?mA$LZR+Z1(Zv$DuE?de7PAKdbS27Z7uLp?&Gg1XAE8eniMvO45pn&A3Us z-p$x2AM(CS0wVBE^p45OO*SeEE9(2fj&A+7yYO!PtN5#H{5Lwpk97Ecr2~GZgZ9e;@#)~Hst@tz0e*h~PmAop1#;lUKLB#(zNr8Y zy+2@%>a*WU!*32?FJVdGB|pMTjqnZ|eE|O*)W?C!F>hUQe@x*9|D6xt&w|iH6QeQU QCqdXq{?i=?=m4Sr17tNMI{*Lx diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/GPBMetadata/Google/Cloud/Metastore/V1Alpha/MetastoreFederation.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/GPBMetadata/Google/Cloud/Metastore/V1Alpha/MetastoreFederation.php deleted file mode 100644 index aecfb10338b92b16a42435d444a263dc28f74c31..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4900 zcmb_g&uyW9N{ znnt;B>aB-fs{R8#R9t%KwTGU{scLUXl{oa&KcVWOZ}!LR#&%>oZBEY2yf<&Y_q}i4 z&PVsGEel=ZRzHOo$9YvZy;i=9UBz)t8|SxgD!R3$#3OPWx5!?aX$bx<2pLKjJC>qi zZnaum2h*0~Dved&VWUJGHpr;&u<`h&NE|L9r0R;}aCByc`bE2lgFnk_>YBX${dZOoD=GIE6xdrr5x%R25VmyoHk z)?izowb$=zAxFhli&An0Dtn%ih*0VZ`uRM%bLf(0F9fE7uLc5D10hs{++65du{2N& z!m&ULau*X5Z9*iu88Rtca5k~P4(Sq33E|XG2@2O=3fJp#;`1g=e7NXbxX70(DDpfe zsSPJ1(W8?=$X!TaxFR|aUExMq3KsA`O(GO47kdgFA!?XqIA(sTn0h0o*;{B@wK0gZ zOl-3gFf+ZF3lAH3fw%;keqxm(R-Oeq8d{}Bvsyuuy3)kDlRd(vV4K^~HU}h9h(j0F zd_&1_?H%?sI=YQ*2LvaZj!*I_Vw;Nk3>z((Qo_kj`a6kZ>{JY#P~~@mP0ym^;My{Q z;<9IJ*`v|UDYlH#L}GFF7>u1*yfMaRo5U`_G>2w@-gig(DMl&7__h>qm0 zqv<3h(Q-z5SncPz}d%(F8mTC50(sFwENqT*fy?7a={bR9b z(5cP3SeN8S4>qe(sj^a$%9*#=XpY*W`fK-s+NP96#1_# ztx5j6BkUAPOSRfYEt4)h{Y&hiOEk$L+)(X~0G&iWW(|8ED&r|uT_?XA{@TmyrW#yU z`Q7N}UcODQcUT(#v&a9zpiJ*6A+kgrv5(OS8jI}iSOM-Q7Vi$@L9btda;^?ucoog; z8(=S>+`3d3H|rZUNv=Ps4geOw6RT^|#{ewASFEf)d?eML0JO7+_2+6EC7C+Or1&2g zG`prbZVZ}J!=HJe_3RRwv=kfEGt`Us-iQ-_i|?`{AwP?zEFiJ$Ks)5CN}8~oVdoI? z$6XUDHA{rU7b1pz8%?$~9a3TYq1Ap$yi7<&OPC{D0vM+VL8s~Gmyu!#08kIpehviZ_$(HHFgz)3rFK-l~4goQo! zn+cTZElYMNn!OfL_~)ZTC;CHyei-oIGq1$E`+BzE!X10 zPW*%l_2DS;hst9iAs6ho08MXs4~M4LVnk?O{vXiHCNK#*S)x8ZBI}FyVrIwdgweUO z51fCXgXk5L;o$UIj0nzG08Ry+3AqCG=)WBZ{ud*A2nr?2W+B0o(V@t#y%MwC=zS$5 zeblP`CJI}wYdM8{{`vFgJ(GFGbGL#QpX-*cxNXz!7GE%khaN8~o&!D{irE1wS|wmq znNRKqMo~FI!`Lz72c$g2*7vGpHJ9iStY&l4$MyXy^rQA#@Q#vrb|Ia-rVe;=@mB^< KBYS8Mp??7jQE?~$ diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AlterMetadataResourceLocationRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AlterMetadataResourceLocationRequest.php deleted file mode 100644 index 31a4013d3717..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AlterMetadataResourceLocationRequest.php +++ /dev/null @@ -1,164 +0,0 @@ -google.cloud.metastore.v1alpha.AlterMetadataResourceLocationRequest - */ -class AlterMetadataResourceLocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * - * Generated from protobuf field string resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource_name = ''; - /** - * Required. The new location URI for the metadata resource. - * - * Generated from protobuf field string location_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $location_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $resource_name - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * @type string $location_uri - * Required. The new location URI for the metadata resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * - * Generated from protobuf field string resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * - * Generated from protobuf field string resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * Required. The new location URI for the metadata resource. - * - * Generated from protobuf field string location_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLocationUri() - { - return $this->location_uri; - } - - /** - * Required. The new location URI for the metadata resource. - * - * Generated from protobuf field string location_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLocationUri($var) - { - GPBUtil::checkString($var, True); - $this->location_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AlterMetadataResourceLocationResponse.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AlterMetadataResourceLocationResponse.php deleted file mode 100644 index 3ee73fba1b82..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AlterMetadataResourceLocationResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.cloud.metastore.v1alpha.AlterMetadataResourceLocationResponse - */ -class AlterMetadataResourceLocationResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AuxiliaryVersionConfig.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AuxiliaryVersionConfig.php deleted file mode 100644 index 2e500e1c4c1c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/AuxiliaryVersionConfig.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.metastore.v1alpha.AuxiliaryVersionConfig - */ -class AuxiliaryVersionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * - * Generated from protobuf field map config_overrides = 2; - */ - private $config_overrides; - /** - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $network_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * @type array|\Google\Protobuf\Internal\MapField $config_overrides - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * @type \Google\Cloud\Metastore\V1alpha\NetworkConfig $network_config - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * - * Generated from protobuf field map config_overrides = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getConfigOverrides() - { - return $this->config_overrides; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * - * Generated from protobuf field map config_overrides = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setConfigOverrides($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->config_overrides = $arr; - - return $this; - } - - /** - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Metastore\V1alpha\NetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Metastore\V1alpha\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/BackendMetastore.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/BackendMetastore.php deleted file mode 100644 index 18e9b6dc1e3b..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/BackendMetastore.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.metastore.v1alpha.BackendMetastore - */ -class BackendMetastore extends \Google\Protobuf\Internal\Message -{ - /** - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of the backend metastore. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.BackendMetastore.MetastoreType metastore_type = 2; - */ - protected $metastore_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * @type int $metastore_type - * The type of the backend metastore. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of the backend metastore. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.BackendMetastore.MetastoreType metastore_type = 2; - * @return int - */ - public function getMetastoreType() - { - return $this->metastore_type; - } - - /** - * The type of the backend metastore. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.BackendMetastore.MetastoreType metastore_type = 2; - * @param int $var - * @return $this - */ - public function setMetastoreType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\BackendMetastore\MetastoreType::class); - $this->metastore_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/BackendMetastore/MetastoreType.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/BackendMetastore/MetastoreType.php deleted file mode 100644 index 1c3e2acf3e60..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/BackendMetastore/MetastoreType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.metastore.v1alpha.BackendMetastore.MetastoreType - */ -class MetastoreType -{ - /** - * The metastore type is not set. - * - * Generated from protobuf enum METASTORE_TYPE_UNSPECIFIED = 0; - */ - const METASTORE_TYPE_UNSPECIFIED = 0; - /** - * The backend metastore is Dataplex. - * - * Generated from protobuf enum DATAPLEX = 1; - */ - const DATAPLEX = 1; - /** - * The backend metastore is BigQuery. - * - * Generated from protobuf enum BIGQUERY = 2; - */ - const BIGQUERY = 2; - /** - * The backend metastore is Dataproc Metastore. - * - * Generated from protobuf enum DATAPROC_METASTORE = 3; - */ - const DATAPROC_METASTORE = 3; - - private static $valueToName = [ - self::METASTORE_TYPE_UNSPECIFIED => 'METASTORE_TYPE_UNSPECIFIED', - self::DATAPLEX => 'DATAPLEX', - self::BIGQUERY => 'BIGQUERY', - self::DATAPROC_METASTORE => 'DATAPROC_METASTORE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetastoreType::class, \Google\Cloud\Metastore\V1alpha\BackendMetastore_MetastoreType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Backup.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Backup.php deleted file mode 100644 index 18ed81b1adae..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Backup.php +++ /dev/null @@ -1,305 +0,0 @@ -google.cloud.metastore.v1alpha.Backup - */ -class Backup extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. The time when the backup was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the backup finished creating. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The revision of the service at the time of backup. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_revision = null; - /** - * The description of the backup. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - /** - * Output only. Services that are restoring from the backup. - * - * Generated from protobuf field repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $restoring_services; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the backup was started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the backup finished creating. - * @type int $state - * Output only. The current state of the backup. - * @type \Google\Cloud\Metastore\V1alpha\Service $service_revision - * Output only. The revision of the service at the time of backup. - * @type string $description - * The description of the backup. - * @type array|\Google\Protobuf\Internal\RepeatedField $restoring_services - * Output only. Services that are restoring from the backup. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * - * 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 when the backup was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the backup was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the backup finished creating. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time when the backup finished creating. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\Backup\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The revision of the service at the time of backup. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Metastore\V1alpha\Service|null - */ - public function getServiceRevision() - { - return $this->service_revision; - } - - public function hasServiceRevision() - { - return isset($this->service_revision); - } - - public function clearServiceRevision() - { - unset($this->service_revision); - } - - /** - * Output only. The revision of the service at the time of backup. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Metastore\V1alpha\Service $var - * @return $this - */ - public function setServiceRevision($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\Service::class); - $this->service_revision = $var; - - return $this; - } - - /** - * The description of the backup. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the backup. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Services that are restoring from the backup. - * - * Generated from protobuf field repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestoringServices() - { - return $this->restoring_services; - } - - /** - * Output only. Services that are restoring from the backup. - * - * Generated from protobuf field repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestoringServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->restoring_services = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Backup/State.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Backup/State.php deleted file mode 100644 index d5770f420c45..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Backup/State.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.metastore.v1alpha.Backup.State - */ -class State -{ - /** - * The state of the backup is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The backup is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The backup is being deleted. - * - * Generated from protobuf enum DELETING = 2; - */ - const DELETING = 2; - /** - * The backup is active and ready to use. - * - * Generated from protobuf enum ACTIVE = 3; - */ - const ACTIVE = 3; - /** - * The backup failed. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - /** - * The backup is being restored. - * - * Generated from protobuf enum RESTORING = 5; - */ - const RESTORING = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::DELETING => 'DELETING', - self::ACTIVE => 'ACTIVE', - self::FAILED => 'FAILED', - self::RESTORING => 'RESTORING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Metastore\V1alpha\Backup_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateBackupRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateBackupRequest.php deleted file mode 100644 index 3452f4e748cd..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateBackupRequest.php +++ /dev/null @@ -1,271 +0,0 @@ -google.cloud.metastore.v1alpha.CreateBackupRequest - */ -class CreateBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_id = ''; - /** - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the service in which to create a - * backup of the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1alpha\Backup $backup Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * @param string $backupId Required. The ID of the backup, which is used as the final component of the - * backup's name. - * - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * @return \Google\Cloud\Metastore\V1alpha\CreateBackupRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1alpha\Backup $backup, string $backupId): self - { - return (new self()) - ->setParent($parent) - ->setBackup($backup) - ->setBackupId($backupId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type string $backup_id - * Required. The ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * @type \Google\Cloud\Metastore\V1alpha\Backup $backup - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBackupId() - { - return $this->backup_id; - } - - /** - * Required. The ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBackupId($var) - { - GPBUtil::checkString($var, True); - $this->backup_id = $var; - - return $this; - } - - /** - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1alpha\Backup|null - */ - public function getBackup() - { - return $this->backup; - } - - public function hasBackup() - { - return isset($this->backup); - } - - public function clearBackup() - { - unset($this->backup); - } - - /** - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1alpha\Backup $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\Backup::class); - $this->backup = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateFederationRequest.php deleted file mode 100644 index d18befb9b1b5..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateFederationRequest.php +++ /dev/null @@ -1,275 +0,0 @@ -google.cloud.metastore.v1alpha.CreateFederationRequest - */ -class CreateFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string federation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $federation_id = ''; - /** - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Federation federation = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $federation = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreFederationClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1alpha\Federation $federation Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * @param string $federationId Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * @return \Google\Cloud\Metastore\V1alpha\CreateFederationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1alpha\Federation $federation, string $federationId): self - { - return (new self()) - ->setParent($parent) - ->setFederation($federation) - ->setFederationId($federationId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type string $federation_id - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * @type \Google\Cloud\Metastore\V1alpha\Federation $federation - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string federation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFederationId() - { - return $this->federation_id; - } - - /** - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string federation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFederationId($var) - { - GPBUtil::checkString($var, True); - $this->federation_id = $var; - - return $this; - } - - /** - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Federation federation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1alpha\Federation|null - */ - public function getFederation() - { - return $this->federation; - } - - public function hasFederation() - { - return isset($this->federation); - } - - public function clearFederation() - { - unset($this->federation); - } - - /** - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Federation federation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1alpha\Federation $var - * @return $this - */ - public function setFederation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\Federation::class); - $this->federation = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateMetadataImportRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateMetadataImportRequest.php deleted file mode 100644 index dd6d8dc04e2d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateMetadataImportRequest.php +++ /dev/null @@ -1,276 +0,0 @@ -google.cloud.metastore.v1alpha.CreateMetadataImportRequest - */ -class CreateMetadataImportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string metadata_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_import_id = ''; - /** - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport metadata_import = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_import = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1alpha\MetadataImport $metadataImport Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * @param string $metadataImportId Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * @return \Google\Cloud\Metastore\V1alpha\CreateMetadataImportRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1alpha\MetadataImport $metadataImport, string $metadataImportId): self - { - return (new self()) - ->setParent($parent) - ->setMetadataImport($metadataImport) - ->setMetadataImportId($metadataImportId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type string $metadata_import_id - * Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * @type \Google\Cloud\Metastore\V1alpha\MetadataImport $metadata_import - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string metadata_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMetadataImportId() - { - return $this->metadata_import_id; - } - - /** - * Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string metadata_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMetadataImportId($var) - { - GPBUtil::checkString($var, True); - $this->metadata_import_id = $var; - - return $this; - } - - /** - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport metadata_import = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1alpha\MetadataImport|null - */ - public function getMetadataImport() - { - return $this->metadata_import; - } - - public function hasMetadataImport() - { - return isset($this->metadata_import); - } - - public function clearMetadataImport() - { - unset($this->metadata_import); - } - - /** - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport metadata_import = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1alpha\MetadataImport $var - * @return $this - */ - public function setMetadataImport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\MetadataImport::class); - $this->metadata_import = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateServiceRequest.php deleted file mode 100644 index 46bd1f73af33..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/CreateServiceRequest.php +++ /dev/null @@ -1,276 +0,0 @@ -google.cloud.metastore.v1alpha.CreateServiceRequest - */ -class CreateServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_id = ''; - /** - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1alpha\Service $service Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * @param string $serviceId Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * @return \Google\Cloud\Metastore\V1alpha\CreateServiceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1alpha\Service $service, string $serviceId): self - { - return (new self()) - ->setParent($parent) - ->setService($service) - ->setServiceId($serviceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type string $service_id - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * @type \Google\Cloud\Metastore\V1alpha\Service $service - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getServiceId() - { - return $this->service_id; - } - - /** - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setServiceId($var) - { - GPBUtil::checkString($var, True); - $this->service_id = $var; - - return $this; - } - - /** - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1alpha\Service|null - */ - public function getService() - { - return $this->service; - } - - public function hasService() - { - return isset($this->service); - } - - public function clearService() - { - unset($this->service); - } - - /** - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1alpha\Service $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\Service::class); - $this->service = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DataCatalogConfig.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DataCatalogConfig.php deleted file mode 100644 index f252053725fd..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DataCatalogConfig.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.metastore.v1alpha.DataCatalogConfig - */ -class DataCatalogConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Defines whether the metastore metadata should be synced to Data Catalog. - * The default value is to disable syncing metastore metadata to Data Catalog. - * - * Generated from protobuf field bool enabled = 2; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Defines whether the metastore metadata should be synced to Data Catalog. - * The default value is to disable syncing metastore metadata to Data Catalog. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Defines whether the metastore metadata should be synced to Data Catalog. - * The default value is to disable syncing metastore metadata to Data Catalog. - * - * Generated from protobuf field bool enabled = 2; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Defines whether the metastore metadata should be synced to Data Catalog. - * The default value is to disable syncing metastore metadata to Data Catalog. - * - * Generated from protobuf field bool enabled = 2; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DatabaseDumpSpec.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DatabaseDumpSpec.php deleted file mode 100644 index 775ad2d5ca0c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DatabaseDumpSpec.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.metastore.v1alpha.DatabaseDumpSpec - */ -class DatabaseDumpSpec extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DatabaseDumpSpec/Type.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DatabaseDumpSpec/Type.php deleted file mode 100644 index 290359f1c193..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DatabaseDumpSpec/Type.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type - */ -class Type -{ - /** - * The type of the database dump is unknown. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Database dump is a MySQL dump file. - * - * Generated from protobuf enum MYSQL = 1; - */ - const MYSQL = 1; - /** - * Database dump contains Avro files. - * - * Generated from protobuf enum AVRO = 2; - */ - const AVRO = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::MYSQL => 'MYSQL', - self::AVRO => 'AVRO', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Metastore\V1alpha\DatabaseDumpSpec_Type::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DataplexConfig.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DataplexConfig.php deleted file mode 100644 index 0d5a00bd37c4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DataplexConfig.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.metastore.v1alpha.DataplexConfig - */ -class DataplexConfig extends \Google\Protobuf\Internal\Message -{ - /** - * A reference to the Lake resources that this metastore service is attached - * to. The key is the lake resource name. Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field map lake_resources = 1; - */ - private $lake_resources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $lake_resources - * A reference to the Lake resources that this metastore service is attached - * to. The key is the lake resource name. Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * A reference to the Lake resources that this metastore service is attached - * to. The key is the lake resource name. Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field map lake_resources = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLakeResources() - { - return $this->lake_resources; - } - - /** - * A reference to the Lake resources that this metastore service is attached - * to. The key is the lake resource name. Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field map lake_resources = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLakeResources($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\Lake::class); - $this->lake_resources = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteBackupRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteBackupRequest.php deleted file mode 100644 index 37775ce9dd56..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteBackupRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.metastore.v1alpha.DeleteBackupRequest - */ -class DeleteBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The relative resource name of the backup to delete, in the - * following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. Please see - * {@see DataprocMetastoreClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\DeleteBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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 relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteFederationRequest.php deleted file mode 100644 index 2a05f2d7524e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteFederationRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -google.cloud.metastore.v1alpha.DeleteFederationRequest - */ -class DeleteFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The relative resource name of the metastore federation to delete, - * in the following form: - * - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. Please see - * {@see DataprocMetastoreFederationClient::federationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\DeleteFederationRequest - * - * @experimental - */ - public static function 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 relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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 relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteServiceRequest.php deleted file mode 100644 index 2616e9b5f11a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/DeleteServiceRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.metastore.v1alpha.DeleteServiceRequest - */ -class DeleteServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The relative resource name of the metastore service to delete, in - * the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\DeleteServiceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/EncryptionConfig.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/EncryptionConfig.php deleted file mode 100644 index 1fc13fad7313..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/EncryptionConfig.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.metastore.v1alpha.EncryptionConfig - */ -class EncryptionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * - * Generated from protobuf field string kms_key = 1; - */ - protected $kms_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * - * Generated from protobuf field string kms_key = 1; - * @return string - */ - public function getKmsKey() - { - return $this->kms_key; - } - - /** - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * - * Generated from protobuf field string kms_key = 1; - * @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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ErrorDetails.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ErrorDetails.php deleted file mode 100644 index 3181286b80d7..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ErrorDetails.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.metastore.v1alpha.ErrorDetails - */ -class ErrorDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * - * Generated from protobuf field map details = 1; - */ - private $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $details - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * - * Generated from protobuf field map details = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDetails() - { - return $this->details; - } - - /** - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * - * Generated from protobuf field map details = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDetails($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ExportMetadataRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ExportMetadataRequest.php deleted file mode 100644 index 2cb051a9cdac..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ExportMetadataRequest.php +++ /dev/null @@ -1,232 +0,0 @@ -google.cloud.metastore.v1alpha.ExportMetadataRequest - */ -class ExportMetadataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $database_dump_type = 0; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $destination_gcs_folder - * A Cloud Storage URI of a folder, in the format - * `gs:///`. A sub-folder - * `` containing exported files will be created below it. - * @type string $service - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * @type int $database_dump_type - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * A Cloud Storage URI of a folder, in the format - * `gs:///`. A sub-folder - * `` containing exported files will be created below it. - * - * Generated from protobuf field string destination_gcs_folder = 2; - * @return string - */ - public function getDestinationGcsFolder() - { - return $this->readOneof(2); - } - - public function hasDestinationGcsFolder() - { - return $this->hasOneof(2); - } - - /** - * A Cloud Storage URI of a folder, in the format - * `gs:///`. A sub-folder - * `` containing exported files will be created below it. - * - * Generated from protobuf field string destination_gcs_folder = 2; - * @param string $var - * @return $this - */ - public function setDestinationGcsFolder($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getDatabaseDumpType() - { - return $this->database_dump_type; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setDatabaseDumpType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\DatabaseDumpSpec\Type::class); - $this->database_dump_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Federation.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Federation.php deleted file mode 100644 index fd83282f0ddb..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Federation.php +++ /dev/null @@ -1,433 +0,0 @@ -google.cloud.metastore.v1alpha.Federation - */ -class Federation extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. The time when the metastore federation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the metastore federation was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * User-defined labels for the metastore federation. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * - * Generated from protobuf field string version = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $version = ''; - /** - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * - * Generated from protobuf field map backend_metastores = 6; - */ - private $backend_metastores; - /** - * Output only. The federation endpoint. - * - * Generated from protobuf field string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint_uri = ''; - /** - * Output only. The current state of the federation. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information about the current state of the - * metastore federation, if available. - * - * Generated from protobuf field string state_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_message = ''; - /** - * Output only. The globally unique resource identifier of the metastore - * federation. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the metastore federation was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the metastore federation was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * User-defined labels for the metastore federation. - * @type string $version - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * @type array|\Google\Protobuf\Internal\MapField $backend_metastores - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * @type string $endpoint_uri - * Output only. The federation endpoint. - * @type int $state - * Output only. The current state of the federation. - * @type string $state_message - * Output only. Additional information about the current state of the - * metastore federation, if available. - * @type string $uid - * Output only. The globally unique resource identifier of the metastore - * federation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * 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 when the metastore federation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the metastore federation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the metastore federation was 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 when the metastore federation was 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; - } - - /** - * User-defined labels for the metastore federation. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * User-defined labels for the metastore federation. - * - * 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; - } - - /** - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * - * Generated from protobuf field string version = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * - * Generated from protobuf field string version = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * - * Generated from protobuf field map backend_metastores = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getBackendMetastores() - { - return $this->backend_metastores; - } - - /** - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * - * Generated from protobuf field map backend_metastores = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setBackendMetastores($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT32, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\BackendMetastore::class); - $this->backend_metastores = $arr; - - return $this; - } - - /** - * Output only. The federation endpoint. - * - * Generated from protobuf field string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpointUri() - { - return $this->endpoint_uri; - } - - /** - * Output only. The federation endpoint. - * - * Generated from protobuf field string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_uri = $var; - - return $this; - } - - /** - * Output only. The current state of the federation. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the federation. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\Federation\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information about the current state of the - * metastore federation, if available. - * - * Generated from protobuf field string state_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * Output only. Additional information about the current state of the - * metastore federation, if available. - * - * Generated from protobuf field string state_message = 9 [(.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. The globally unique resource identifier of the metastore - * federation. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. The globally unique resource identifier of the metastore - * federation. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Federation/State.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Federation/State.php deleted file mode 100644 index 8282624f193d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Federation/State.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.metastore.v1alpha.Federation.State - */ -class State -{ - /** - * The state of the metastore federation is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metastore federation is in the process of being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The metastore federation is running and ready to serve queries. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The metastore federation is being updated. It remains usable but cannot - * accept additional update requests or be deleted at this time. - * - * Generated from protobuf enum UPDATING = 3; - */ - const UPDATING = 3; - /** - * The metastore federation is undergoing deletion. It cannot be used. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - /** - * The metastore federation has encountered an error and cannot be used. The - * metastore federation should be deleted. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::UPDATING => 'UPDATING', - self::DELETING => 'DELETING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1alpha\Federation_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetBackupRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetBackupRequest.php deleted file mode 100644 index b65ebaf38064..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetBackupRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.metastore.v1alpha.GetBackupRequest - */ -class GetBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the backup to retrieve, in the - * following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. Please see - * {@see DataprocMetastoreClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\GetBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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 relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetFederationRequest.php deleted file mode 100644 index ccc570b20190..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetFederationRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.metastore.v1alpha.GetFederationRequest - */ -class GetFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the metastore federation to - * retrieve, in the following form: - * - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. Please see - * {@see DataprocMetastoreFederationClient::federationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\GetFederationRequest - * - * @experimental - */ - public static function 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 relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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 relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetMetadataImportRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetMetadataImportRequest.php deleted file mode 100644 index 665440171df7..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetMetadataImportRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.metastore.v1alpha.GetMetadataImportRequest - */ -class GetMetadataImportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the metadata import to retrieve, in - * the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. Please see - * {@see DataprocMetastoreClient::metadataImportName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\GetMetadataImportRequest - * - * @experimental - */ - public static function 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 relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_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 relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetServiceRequest.php deleted file mode 100644 index 17d95e3919a4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/GetServiceRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.metastore.v1alpha.GetServiceRequest - */ -class GetServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\GetServiceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/HiveMetastoreConfig.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/HiveMetastoreConfig.php deleted file mode 100644 index b272e64f4210..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/HiveMetastoreConfig.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.metastore.v1alpha.HiveMetastoreConfig - */ -class HiveMetastoreConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The Hive metastore schema version. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $version = ''; - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * - * Generated from protobuf field map config_overrides = 2; - */ - private $config_overrides; - /** - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.KerberosConfig kerberos_config = 3; - */ - protected $kerberos_config = null; - /** - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4; - */ - protected $endpoint_protocol = 0; - /** - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * - * Generated from protobuf field map auxiliary_versions = 5; - */ - private $auxiliary_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Immutable. The Hive metastore schema version. - * @type array|\Google\Protobuf\Internal\MapField $config_overrides - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * @type \Google\Cloud\Metastore\V1alpha\KerberosConfig $kerberos_config - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * @type int $endpoint_protocol - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * @type array|\Google\Protobuf\Internal\MapField $auxiliary_versions - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The Hive metastore schema version. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Immutable. The Hive metastore schema version. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * - * Generated from protobuf field map config_overrides = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getConfigOverrides() - { - return $this->config_overrides; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * - * Generated from protobuf field map config_overrides = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setConfigOverrides($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->config_overrides = $arr; - - return $this; - } - - /** - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.KerberosConfig kerberos_config = 3; - * @return \Google\Cloud\Metastore\V1alpha\KerberosConfig|null - */ - public function getKerberosConfig() - { - return $this->kerberos_config; - } - - public function hasKerberosConfig() - { - return isset($this->kerberos_config); - } - - public function clearKerberosConfig() - { - unset($this->kerberos_config); - } - - /** - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.KerberosConfig kerberos_config = 3; - * @param \Google\Cloud\Metastore\V1alpha\KerberosConfig $var - * @return $this - */ - public function setKerberosConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\KerberosConfig::class); - $this->kerberos_config = $var; - - return $this; - } - - /** - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4; - * @return int - */ - public function getEndpointProtocol() - { - return $this->endpoint_protocol; - } - - /** - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4; - * @param int $var - * @return $this - */ - public function setEndpointProtocol($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\HiveMetastoreConfig\EndpointProtocol::class); - $this->endpoint_protocol = $var; - - return $this; - } - - /** - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * - * Generated from protobuf field map auxiliary_versions = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAuxiliaryVersions() - { - return $this->auxiliary_versions; - } - - /** - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * - * Generated from protobuf field map auxiliary_versions = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAuxiliaryVersions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\AuxiliaryVersionConfig::class); - $this->auxiliary_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/HiveMetastoreConfig/EndpointProtocol.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/HiveMetastoreConfig/EndpointProtocol.php deleted file mode 100644 index 4b93919c49c6..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/HiveMetastoreConfig/EndpointProtocol.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1alpha.HiveMetastoreConfig.EndpointProtocol - */ -class EndpointProtocol -{ - /** - * The protocol is not set. - * - * Generated from protobuf enum ENDPOINT_PROTOCOL_UNSPECIFIED = 0; - */ - const ENDPOINT_PROTOCOL_UNSPECIFIED = 0; - /** - * Use the legacy Apache Thrift protocol for the metastore service endpoint. - * - * Generated from protobuf enum THRIFT = 1; - */ - const THRIFT = 1; - /** - * Use the modernized gRPC protocol for the metastore service endpoint. - * - * Generated from protobuf enum GRPC = 2; - */ - const GRPC = 2; - - private static $valueToName = [ - self::ENDPOINT_PROTOCOL_UNSPECIFIED => 'ENDPOINT_PROTOCOL_UNSPECIFIED', - self::THRIFT => 'THRIFT', - self::GRPC => 'GRPC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EndpointProtocol::class, \Google\Cloud\Metastore\V1alpha\HiveMetastoreConfig_EndpointProtocol::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/KerberosConfig.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/KerberosConfig.php deleted file mode 100644 index be3cbd405066..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/KerberosConfig.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.metastore.v1alpha.KerberosConfig - */ -class KerberosConfig extends \Google\Protobuf\Internal\Message -{ - /** - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Secret keytab = 1; - */ - protected $keytab = null; - /** - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * - * Generated from protobuf field string principal = 2; - */ - protected $principal = ''; - /** - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * - * Generated from protobuf field string krb5_config_gcs_uri = 3; - */ - protected $krb5_config_gcs_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1alpha\Secret $keytab - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * @type string $principal - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * @type string $krb5_config_gcs_uri - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Secret keytab = 1; - * @return \Google\Cloud\Metastore\V1alpha\Secret|null - */ - public function getKeytab() - { - return $this->keytab; - } - - public function hasKeytab() - { - return isset($this->keytab); - } - - public function clearKeytab() - { - unset($this->keytab); - } - - /** - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Secret keytab = 1; - * @param \Google\Cloud\Metastore\V1alpha\Secret $var - * @return $this - */ - public function setKeytab($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\Secret::class); - $this->keytab = $var; - - return $this; - } - - /** - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * - * Generated from protobuf field string principal = 2; - * @return string - */ - public function getPrincipal() - { - return $this->principal; - } - - /** - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * - * Generated from protobuf field string principal = 2; - * @param string $var - * @return $this - */ - public function setPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->principal = $var; - - return $this; - } - - /** - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * - * Generated from protobuf field string krb5_config_gcs_uri = 3; - * @return string - */ - public function getKrb5ConfigGcsUri() - { - return $this->krb5_config_gcs_uri; - } - - /** - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * - * Generated from protobuf field string krb5_config_gcs_uri = 3; - * @param string $var - * @return $this - */ - public function setKrb5ConfigGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->krb5_config_gcs_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Lake.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Lake.php deleted file mode 100644 index 520f9c41748d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Lake.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.metastore.v1alpha.Lake - */ -class Lake extends \Google\Protobuf\Internal\Message -{ - /** - * The Lake resource name. - * Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The Lake resource name. - * Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The Lake resource name. - * Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The Lake resource name. - * Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListBackupsRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListBackupsRequest.php deleted file mode 100644 index 939432f933f3..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListBackupsRequest.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.metastore.v1alpha.ListBackupsRequest - */ -class ListBackupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the service whose backups to - * list, in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\ListBackupsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * @type int $page_size - * Optional. The maximum number of backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] - * must match the call that provided the page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed 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 backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] - * 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 - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1alpha.DataprocMetastore.ListBackups] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListBackupsResponse.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListBackupsResponse.php deleted file mode 100644 index 25db12b281f9..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListBackupsResponse.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.metastore.v1alpha.ListBackupsResponse - */ -class ListBackupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The backups of the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Backup backups = 1; - */ - private $backups; - /** - * 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\Metastore\V1alpha\Backup>|\Google\Protobuf\Internal\RepeatedField $backups - * The backups of the specified service. - * @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\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The backups of the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Backup backups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackups() - { - return $this->backups; - } - - /** - * The backups of the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Backup backups = 1; - * @param array<\Google\Cloud\Metastore\V1alpha\Backup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\Backup::class); - $this->backups = $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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListFederationsRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListFederationsRequest.php deleted file mode 100644 index d9724af858a9..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListFederationsRequest.php +++ /dev/null @@ -1,267 +0,0 @@ -google.cloud.metastore.v1alpha.ListFederationsRequest - */ -class ListFederationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreFederationClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\ListFederationsRequest - * - * @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 relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type int $page_size - * Optional. The maximum number of federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices must match the call that provided the - * page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed 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 federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices 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 ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListFederationsResponse.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListFederationsResponse.php deleted file mode 100644 index 6fe15394a05e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListFederationsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.metastore.v1alpha.ListFederationsResponse - */ -class ListFederationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Federation federations = 1; - */ - private $federations; - /** - * 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\Metastore\V1alpha\Federation>|\Google\Protobuf\Internal\RepeatedField $federations - * The services in the specified location. - * @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\Metastore\V1Alpha\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Federation federations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFederations() - { - return $this->federations; - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Federation federations = 1; - * @param array<\Google\Cloud\Metastore\V1alpha\Federation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFederations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\Federation::class); - $this->federations = $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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListMetadataImportsRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListMetadataImportsRequest.php deleted file mode 100644 index 71ad5acdc11e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListMetadataImportsRequest.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.metastore.v1alpha.ListMetadataImportsRequest - */ -class ListMetadataImportsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\ListMetadataImportsRequest - * - * @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 relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * @type int $page_size - * Optional. The maximum number of imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * must match the call that provided the page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed 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 imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * 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 - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListMetadataImportsResponse.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListMetadataImportsResponse.php deleted file mode 100644 index 72e5d8c510ef..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListMetadataImportsResponse.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.metastore.v1alpha.ListMetadataImportsResponse - */ -class ListMetadataImportsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The imports in the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.MetadataImport metadata_imports = 1; - */ - private $metadata_imports; - /** - * 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\Metastore\V1alpha\MetadataImport>|\Google\Protobuf\Internal\RepeatedField $metadata_imports - * The imports in the specified service. - * @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\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The imports in the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.MetadataImport metadata_imports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetadataImports() - { - return $this->metadata_imports; - } - - /** - * The imports in the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.MetadataImport metadata_imports = 1; - * @param array<\Google\Cloud\Metastore\V1alpha\MetadataImport>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetadataImports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\MetadataImport::class); - $this->metadata_imports = $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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListServicesRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListServicesRequest.php deleted file mode 100644 index 3a87eaf78a9e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListServicesRequest.php +++ /dev/null @@ -1,273 +0,0 @@ -google.cloud.metastore.v1alpha.ListServicesRequest - */ -class ListServicesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the location of metastore services - * to list, in the following form: - * - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\ListServicesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type int $page_size - * Optional. The maximum number of services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * must match the call that provided the page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed 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 services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * 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 - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1alpha.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListServicesResponse.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListServicesResponse.php deleted file mode 100644 index 721b2f06c113..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ListServicesResponse.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.metastore.v1alpha.ListServicesResponse - */ -class ListServicesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Service services = 1; - */ - private $services; - /** - * 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\Metastore\V1alpha\Service>|\Google\Protobuf\Internal\RepeatedField $services - * The services in the specified location. - * @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\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Service services = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServices() - { - return $this->services; - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Service services = 1; - * @param array<\Google\Cloud\Metastore\V1alpha\Service>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\Service::class); - $this->services = $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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/LocationMetadata.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/LocationMetadata.php deleted file mode 100644 index 068677258a75..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/LocationMetadata.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.metastore.v1alpha.LocationMetadata - */ -class LocationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1; - */ - private $supported_hive_metastore_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Metastore\V1alpha\LocationMetadata\HiveMetastoreVersion>|\Google\Protobuf\Internal\RepeatedField $supported_hive_metastore_versions - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedHiveMetastoreVersions() - { - return $this->supported_hive_metastore_versions; - } - - /** - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1; - * @param array<\Google\Cloud\Metastore\V1alpha\LocationMetadata\HiveMetastoreVersion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedHiveMetastoreVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\LocationMetadata\HiveMetastoreVersion::class); - $this->supported_hive_metastore_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/LocationMetadata/HiveMetastoreVersion.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/LocationMetadata/HiveMetastoreVersion.php deleted file mode 100644 index 9d303276b6b6..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/LocationMetadata/HiveMetastoreVersion.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.metastore.v1alpha.LocationMetadata.HiveMetastoreVersion - */ -class HiveMetastoreVersion extends \Google\Protobuf\Internal\Message -{ - /** - * The semantic version of the Hive Metastore software. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * - * Generated from protobuf field bool is_default = 2; - */ - protected $is_default = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The semantic version of the Hive Metastore software. - * @type bool $is_default - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The semantic version of the Hive Metastore software. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The semantic version of the Hive Metastore software. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * - * Generated from protobuf field bool is_default = 2; - * @return bool - */ - public function getIsDefault() - { - return $this->is_default; - } - - /** - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * - * Generated from protobuf field bool is_default = 2; - * @param bool $var - * @return $this - */ - public function setIsDefault($var) - { - GPBUtil::checkBool($var); - $this->is_default = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(HiveMetastoreVersion::class, \Google\Cloud\Metastore\V1alpha\LocationMetadata_HiveMetastoreVersion::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MaintenanceWindow.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MaintenanceWindow.php deleted file mode 100644 index fc6b12ba7267..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MaintenanceWindow.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.metastore.v1alpha.MaintenanceWindow - */ -class MaintenanceWindow extends \Google\Protobuf\Internal\Message -{ - /** - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - */ - protected $hour_of_day = null; - /** - * The day of week, when the window starts. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - */ - protected $day_of_week = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Int32Value $hour_of_day - * The hour of day (0-23) when the window starts. - * @type int $day_of_week - * The day of week, when the window starts. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @return \Google\Protobuf\Int32Value|null - */ - public function getHourOfDay() - { - return $this->hour_of_day; - } - - public function hasHourOfDay() - { - return isset($this->hour_of_day); - } - - public function clearHourOfDay() - { - unset($this->hour_of_day); - } - - /** - * Returns the unboxed value from getHourOfDay() - - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @return int|null - */ - public function getHourOfDayUnwrapped() - { - return $this->readWrapperValue("hour_of_day"); - } - - /** - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setHourOfDay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->hour_of_day = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @param int|null $var - * @return $this - */ - public function setHourOfDayUnwrapped($var) - { - $this->writeWrapperValue("hour_of_day", $var); - return $this;} - - /** - * The day of week, when the window starts. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - * @return int - */ - public function getDayOfWeek() - { - return $this->day_of_week; - } - - /** - * The day of week, when the window starts. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - * @param int $var - * @return $this - */ - public function setDayOfWeek($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->day_of_week = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataExport.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataExport.php deleted file mode 100644 index 6bdce9abf250..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataExport.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.metastore.v1alpha.MetadataExport - */ -class MetadataExport extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time when the export started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time when the export ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the export. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The type of the database dump. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $database_dump_type = 0; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $destination_gcs_uri - * Output only. A Cloud Storage URI of a folder that metadata are exported - * to, in the form of - * `gs:////`, where - * `` is automatically generated. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time when the export started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the export ended. - * @type int $state - * Output only. The current state of the export. - * @type int $database_dump_type - * Output only. The type of the database dump. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Output only. A Cloud Storage URI of a folder that metadata are exported - * to, in the form of - * `gs:////`, where - * `` is automatically generated. - * - * Generated from protobuf field string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDestinationGcsUri() - { - return $this->readOneof(4); - } - - public function hasDestinationGcsUri() - { - return $this->hasOneof(4); - } - - /** - * Output only. A Cloud Storage URI of a folder that metadata are exported - * to, in the form of - * `gs:////`, where - * `` is automatically generated. - * - * Generated from protobuf field string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDestinationGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The time when the export started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The time when the export started. - * - * 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. The time when the export ended. - * - * 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 when the export ended. - * - * 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 current state of the export. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the export. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\MetadataExport\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The type of the database dump. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getDatabaseDumpType() - { - return $this->database_dump_type; - } - - /** - * Output only. The type of the database dump. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setDatabaseDumpType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\DatabaseDumpSpec\Type::class); - $this->database_dump_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataExport/State.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataExport/State.php deleted file mode 100644 index 5c68430d9e47..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataExport/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.metastore.v1alpha.MetadataExport.State - */ -class State -{ - /** - * The state of the metadata export is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metadata export is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The metadata export completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The metadata export failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * The metadata export is cancelled. - * - * Generated from protobuf enum CANCELLED = 4; - */ - const CANCELLED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::CANCELLED => '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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1alpha\MetadataExport_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport.php deleted file mode 100644 index 83e73bbccf93..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport.php +++ /dev/null @@ -1,313 +0,0 @@ -google.cloud.metastore.v1alpha.MetadataImport - */ -class MetadataImport extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * The description of the metadata import. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Output only. The time when the metadata import was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the metadata import was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The time when the metadata import finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the metadata import. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - protected $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1alpha\MetadataImport\DatabaseDump $database_dump - * Immutable. A database dump from a pre-existing metastore's database. - * @type string $name - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * @type string $description - * The description of the metadata import. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the metadata import was started. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the metadata import was last updated. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the metadata import finished. - * @type int $state - * Output only. The current state of the metadata import. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. A database dump from a pre-existing metastore's database. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump database_dump = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Metastore\V1alpha\MetadataImport\DatabaseDump|null - */ - public function getDatabaseDump() - { - return $this->readOneof(6); - } - - public function hasDatabaseDump() - { - return $this->hasOneof(6); - } - - /** - * Immutable. A database dump from a pre-existing metastore's database. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump database_dump = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Metastore\V1alpha\MetadataImport\DatabaseDump $var - * @return $this - */ - public function setDatabaseDump($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\MetadataImport\DatabaseDump::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * - * 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 description of the metadata import. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the metadata import. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The time when the metadata import was started. - * - * 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 the metadata import was started. - * - * 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 time when the metadata import was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the metadata import was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The time when the metadata import finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.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 when the metadata import finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.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 current state of the metadata import. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the metadata import. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\MetadataImport\State::class); - $this->state = $var; - - return $this; - } - - /** - * @return string - */ - public function getMetadata() - { - return $this->whichOneof("metadata"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/DatabaseDump.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/DatabaseDump.php deleted file mode 100644 index 41bcf9e8ef0e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/DatabaseDump.php +++ /dev/null @@ -1,191 +0,0 @@ -google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump - */ -class DatabaseDump extends \Google\Protobuf\Internal\Message -{ - /** - * The type of the database. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true]; - * @deprecated - */ - protected $database_type = 0; - /** - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * - * Generated from protobuf field string gcs_uri = 2; - */ - protected $gcs_uri = ''; - /** - * The name of the source database. - * - * Generated from protobuf field string source_database = 3 [deprecated = true]; - * @deprecated - */ - protected $source_database = ''; - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $database_type - * The type of the database. - * @type string $gcs_uri - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * @type string $source_database - * The name of the source database. - * @type int $type - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The type of the database. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true]; - * @return int - * @deprecated - */ - public function getDatabaseType() - { - @trigger_error('database_type is deprecated.', E_USER_DEPRECATED); - return $this->database_type; - } - - /** - * The type of the database. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setDatabaseType($var) - { - @trigger_error('database_type is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\MetadataImport\DatabaseDump\DatabaseType::class); - $this->database_type = $var; - - return $this; - } - - /** - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * - * Generated from protobuf field string gcs_uri = 2; - * @return string - */ - public function getGcsUri() - { - return $this->gcs_uri; - } - - /** - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * - * Generated from protobuf field string gcs_uri = 2; - * @param string $var - * @return $this - */ - public function setGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->gcs_uri = $var; - - return $this; - } - - /** - * The name of the source database. - * - * Generated from protobuf field string source_database = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getSourceDatabase() - { - @trigger_error('source_database is deprecated.', E_USER_DEPRECATED); - return $this->source_database; - } - - /** - * The name of the source database. - * - * Generated from protobuf field string source_database = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setSourceDatabase($var) - { - @trigger_error('source_database is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->source_database = $var; - - return $this; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\DatabaseDumpSpec\Type::class); - $this->type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DatabaseDump::class, \Google\Cloud\Metastore\V1alpha\MetadataImport_DatabaseDump::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/DatabaseDump/DatabaseType.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/DatabaseDump/DatabaseType.php deleted file mode 100644 index be296436de3e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/DatabaseDump/DatabaseType.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.metastore.v1alpha.MetadataImport.DatabaseDump.DatabaseType - */ -class DatabaseType -{ - /** - * The type of the source database is unknown. - * - * Generated from protobuf enum DATABASE_TYPE_UNSPECIFIED = 0; - */ - const DATABASE_TYPE_UNSPECIFIED = 0; - /** - * The type of the source database is MySQL. - * - * Generated from protobuf enum MYSQL = 1; - */ - const MYSQL = 1; - - private static $valueToName = [ - self::DATABASE_TYPE_UNSPECIFIED => 'DATABASE_TYPE_UNSPECIFIED', - 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\Metastore\V1alpha\MetadataImport_DatabaseDump_DatabaseType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/State.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/State.php deleted file mode 100644 index 7064408075c1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataImport/State.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.metastore.v1alpha.MetadataImport.State - */ -class State -{ - /** - * The state of the metadata import is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metadata import is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The metadata import completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The metadata import is being updated. - * - * Generated from protobuf enum UPDATING = 3; - */ - const UPDATING = 3; - /** - * The metadata import failed, and attempted metadata changes were rolled - * back. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::UPDATING => 'UPDATING', - 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\Metastore\V1alpha\MetadataImport_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataIntegration.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataIntegration.php deleted file mode 100644 index ce0e30f64827..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataIntegration.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.metastore.v1alpha.MetadataIntegration - */ -class MetadataIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * The integration config for the Data Catalog service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DataCatalogConfig data_catalog_config = 1; - */ - protected $data_catalog_config = null; - /** - * The integration config for the Dataplex service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DataplexConfig dataplex_config = 2; - */ - protected $dataplex_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1alpha\DataCatalogConfig $data_catalog_config - * The integration config for the Data Catalog service. - * @type \Google\Cloud\Metastore\V1alpha\DataplexConfig $dataplex_config - * The integration config for the Dataplex service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The integration config for the Data Catalog service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DataCatalogConfig data_catalog_config = 1; - * @return \Google\Cloud\Metastore\V1alpha\DataCatalogConfig|null - */ - public function getDataCatalogConfig() - { - return $this->data_catalog_config; - } - - public function hasDataCatalogConfig() - { - return isset($this->data_catalog_config); - } - - public function clearDataCatalogConfig() - { - unset($this->data_catalog_config); - } - - /** - * The integration config for the Data Catalog service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DataCatalogConfig data_catalog_config = 1; - * @param \Google\Cloud\Metastore\V1alpha\DataCatalogConfig $var - * @return $this - */ - public function setDataCatalogConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\DataCatalogConfig::class); - $this->data_catalog_config = $var; - - return $this; - } - - /** - * The integration config for the Dataplex service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DataplexConfig dataplex_config = 2; - * @return \Google\Cloud\Metastore\V1alpha\DataplexConfig|null - */ - public function getDataplexConfig() - { - return $this->dataplex_config; - } - - public function hasDataplexConfig() - { - return isset($this->dataplex_config); - } - - public function clearDataplexConfig() - { - unset($this->dataplex_config); - } - - /** - * The integration config for the Dataplex service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.DataplexConfig dataplex_config = 2; - * @param \Google\Cloud\Metastore\V1alpha\DataplexConfig $var - * @return $this - */ - public function setDataplexConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\DataplexConfig::class); - $this->dataplex_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataManagementActivity.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataManagementActivity.php deleted file mode 100644 index 3af658f899ef..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MetadataManagementActivity.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.metastore.v1alpha.MetadataManagementActivity - */ -class MetadataManagementActivity extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The latest metadata exports of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $metadata_exports; - /** - * Output only. The latest restores of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $restores; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Metastore\V1alpha\MetadataExport>|\Google\Protobuf\Internal\RepeatedField $metadata_exports - * Output only. The latest metadata exports of the metastore service. - * @type array<\Google\Cloud\Metastore\V1alpha\Restore>|\Google\Protobuf\Internal\RepeatedField $restores - * Output only. The latest restores of the metastore service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The latest metadata exports of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetadataExports() - { - return $this->metadata_exports; - } - - /** - * Output only. The latest metadata exports of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Metastore\V1alpha\MetadataExport>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetadataExports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\MetadataExport::class); - $this->metadata_exports = $arr; - - return $this; - } - - /** - * Output only. The latest restores of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestores() - { - return $this->restores; - } - - /** - * Output only. The latest restores of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Metastore\V1alpha\Restore>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestores($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\Restore::class); - $this->restores = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MoveTableToDatabaseRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MoveTableToDatabaseRequest.php deleted file mode 100644 index 144a2f02226b..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MoveTableToDatabaseRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.metastore.v1alpha.MoveTableToDatabaseRequest - */ -class MoveTableToDatabaseRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. The name of the table to be moved. - * - * Generated from protobuf field string table_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_name = ''; - /** - * Required. The name of the database where the table resides. - * - * Generated from protobuf field string db_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $db_name = ''; - /** - * Required. The name of the database where the table should be moved. - * - * Generated from protobuf field string destination_db_name = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $destination_db_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $table_name - * Required. The name of the table to be moved. - * @type string $db_name - * Required. The name of the database where the table resides. - * @type string $destination_db_name - * Required. The name of the database where the table should be moved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. The name of the table to be moved. - * - * Generated from protobuf field string table_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Required. The name of the table to be moved. - * - * Generated from protobuf field string table_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * Required. The name of the database where the table resides. - * - * Generated from protobuf field string db_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDbName() - { - return $this->db_name; - } - - /** - * Required. The name of the database where the table resides. - * - * Generated from protobuf field string db_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDbName($var) - { - GPBUtil::checkString($var, True); - $this->db_name = $var; - - return $this; - } - - /** - * Required. The name of the database where the table should be moved. - * - * Generated from protobuf field string destination_db_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDestinationDbName() - { - return $this->destination_db_name; - } - - /** - * Required. The name of the database where the table should be moved. - * - * Generated from protobuf field string destination_db_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDestinationDbName($var) - { - GPBUtil::checkString($var, True); - $this->destination_db_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MoveTableToDatabaseResponse.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MoveTableToDatabaseResponse.php deleted file mode 100644 index de287eda072c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/MoveTableToDatabaseResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.cloud.metastore.v1alpha.MoveTableToDatabaseResponse - */ -class MoveTableToDatabaseResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/NetworkConfig.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/NetworkConfig.php deleted file mode 100644 index 4a06cc15ec6b..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/NetworkConfig.php +++ /dev/null @@ -1,110 +0,0 @@ -google.cloud.metastore.v1alpha.NetworkConfig - */ -class NetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private $consumers; - /** - * Enables custom routes to be imported and exported for the Dataproc - * Metastore service's peered VPC network. - * - * Generated from protobuf field bool custom_routes_enabled = 2; - */ - protected $custom_routes_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Metastore\V1alpha\NetworkConfig\Consumer>|\Google\Protobuf\Internal\RepeatedField $consumers - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * @type bool $custom_routes_enabled - * Enables custom routes to be imported and exported for the Dataproc - * Metastore service's peered VPC network. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConsumers() - { - return $this->consumers; - } - - /** - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1alpha.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param array<\Google\Cloud\Metastore\V1alpha\NetworkConfig\Consumer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConsumers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1alpha\NetworkConfig\Consumer::class); - $this->consumers = $arr; - - return $this; - } - - /** - * Enables custom routes to be imported and exported for the Dataproc - * Metastore service's peered VPC network. - * - * Generated from protobuf field bool custom_routes_enabled = 2; - * @return bool - */ - public function getCustomRoutesEnabled() - { - return $this->custom_routes_enabled; - } - - /** - * Enables custom routes to be imported and exported for the Dataproc - * Metastore service's peered VPC network. - * - * Generated from protobuf field bool custom_routes_enabled = 2; - * @param bool $var - * @return $this - */ - public function setCustomRoutesEnabled($var) - { - GPBUtil::checkBool($var); - $this->custom_routes_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/NetworkConfig/Consumer.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/NetworkConfig/Consumer.php deleted file mode 100644 index 2722b272df54..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/NetworkConfig/Consumer.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.metastore.v1alpha.NetworkConfig.Consumer - */ -class Consumer extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The URI of the endpoint used to access the metastore - * service. - * - * Generated from protobuf field string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint_uri = ''; - /** - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $endpoint_location = ''; - protected $vpc_resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subnetwork - * Immutable. The subnetwork of the customer project from which an IP - * address is reserved and used as the Dataproc Metastore service's - * endpoint. It is accessible to hosts in the subnet and to all - * hosts in a subnet in the same region and same network. There must - * be at least one IP address available in the subnet's primary range. The - * subnet is specified in the following form: - * `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}` - * @type string $endpoint_uri - * Output only. The URI of the endpoint used to access the metastore - * service. - * @type string $endpoint_location - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The subnetwork of the customer project from which an IP - * address is reserved and used as the Dataproc Metastore service's - * endpoint. It is accessible to hosts in the subnet and to all - * hosts in a subnet in the same region and same network. There must - * be at least one IP address available in the subnet's primary range. The - * subnet is specified in the following form: - * `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}` - * - * Generated from protobuf field string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getSubnetwork() - { - return $this->readOneof(1); - } - - public function hasSubnetwork() - { - return $this->hasOneof(1); - } - - /** - * Immutable. The subnetwork of the customer project from which an IP - * address is reserved and used as the Dataproc Metastore service's - * endpoint. It is accessible to hosts in the subnet and to all - * hosts in a subnet in the same region and same network. There must - * be at least one IP address available in the subnet's primary range. The - * subnet is specified in the following form: - * `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}` - * - * Generated from protobuf field string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Output only. The URI of the endpoint used to access the metastore - * service. - * - * Generated from protobuf field string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpointUri() - { - return $this->endpoint_uri; - } - - /** - * Output only. The URI of the endpoint used to access the metastore - * service. - * - * Generated from protobuf field string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_uri = $var; - - return $this; - } - - /** - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getEndpointLocation() - { - return $this->endpoint_location; - } - - /** - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEndpointLocation($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_location = $var; - - return $this; - } - - /** - * @return string - */ - public function getVpcResource() - { - return $this->whichOneof("vpc_resource"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Consumer::class, \Google\Cloud\Metastore\V1alpha\NetworkConfig_Consumer::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/OperationMetadata.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/OperationMetadata.php deleted file mode 100644 index e53f8d4788bd..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.metastore.v1alpha.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 caller 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 = ''; - - /** - * 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 caller 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\Metastore\V1Alpha\Metastore::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 caller 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 caller 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; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/QueryMetadataRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/QueryMetadataRequest.php deleted file mode 100644 index 7311145db977..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/QueryMetadataRequest.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.metastore.v1alpha.QueryMetadataRequest - */ -class QueryMetadataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $query - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/QueryMetadataResponse.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/QueryMetadataResponse.php deleted file mode 100644 index f281f4e03016..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/QueryMetadataResponse.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.metastore.v1alpha.QueryMetadataResponse - */ -class QueryMetadataResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * - * Generated from protobuf field string result_manifest_uri = 1; - */ - protected $result_manifest_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $result_manifest_uri - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * - * Generated from protobuf field string result_manifest_uri = 1; - * @return string - */ - public function getResultManifestUri() - { - return $this->result_manifest_uri; - } - - /** - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * - * Generated from protobuf field string result_manifest_uri = 1; - * @param string $var - * @return $this - */ - public function setResultManifestUri($var) - { - GPBUtil::checkString($var, True); - $this->result_manifest_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RemoveIamPolicyRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RemoveIamPolicyRequest.php deleted file mode 100644 index bb2ac3296f27..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RemoveIamPolicyRequest.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.metastore.v1alpha.RemoveIamPolicyRequest - */ -class RemoveIamPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the dataplane resource to remove - * IAM policy, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}` - * or - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $resource = ''; - /** - * Optional. Removes IAM policy attached to database or table asynchronously - * when it is set. The default is false. - * - * Generated from protobuf field bool asynchronous = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $asynchronous = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * Required. The relative resource name of the dataplane resource to remove - * IAM policy, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}` - * or - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`. - * @type bool $asynchronous - * Optional. Removes IAM policy attached to database or table asynchronously - * when it is set. The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the dataplane resource to remove - * IAM policy, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}` - * or - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Required. The relative resource name of the dataplane resource to remove - * IAM policy, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}` - * or - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * Optional. Removes IAM policy attached to database or table asynchronously - * when it is set. The default is false. - * - * Generated from protobuf field bool asynchronous = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAsynchronous() - { - return $this->asynchronous; - } - - /** - * Optional. Removes IAM policy attached to database or table asynchronously - * when it is set. The default is false. - * - * Generated from protobuf field bool asynchronous = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAsynchronous($var) - { - GPBUtil::checkBool($var); - $this->asynchronous = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RemoveIamPolicyResponse.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RemoveIamPolicyResponse.php deleted file mode 100644 index d67408b39be9..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RemoveIamPolicyResponse.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.metastore.v1alpha.RemoveIamPolicyResponse - */ -class RemoveIamPolicyResponse extends \Google\Protobuf\Internal\Message -{ - /** - * True if the policy is successfully removed. - * - * Generated from protobuf field bool success = 1; - */ - protected $success = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $success - * True if the policy is successfully removed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * True if the policy is successfully removed. - * - * Generated from protobuf field bool success = 1; - * @return bool - */ - public function getSuccess() - { - return $this->success; - } - - /** - * True if the policy is successfully removed. - * - * Generated from protobuf field bool success = 1; - * @param bool $var - * @return $this - */ - public function setSuccess($var) - { - GPBUtil::checkBool($var); - $this->success = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore.php deleted file mode 100644 index 808a5b15a5b4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.metastore.v1alpha.Restore - */ -class Restore extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time when the restore started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time when the restore ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the restore. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $backup = ''; - /** - * Output only. The type of restore. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * - * Generated from protobuf field string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $details = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time when the restore started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the restore ended. - * @type int $state - * Output only. The current state of the restore. - * @type string $backup - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * @type int $type - * Output only. The type of restore. - * @type string $details - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time when the restore started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The time when the restore started. - * - * 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. The time when the restore ended. - * - * 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 when the restore ended. - * - * 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 current state of the restore. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the restore. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\Restore\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBackup() - { - return $this->backup; - } - - /** - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkString($var, True); - $this->backup = $var; - - return $this; - } - - /** - * Output only. The type of restore. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The type of restore. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\Restore\RestoreType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * - * Generated from protobuf field string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDetails() - { - return $this->details; - } - - /** - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * - * Generated from protobuf field string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkString($var, True); - $this->details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore/RestoreType.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore/RestoreType.php deleted file mode 100644 index ac00e6c12f01..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore/RestoreType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1alpha.Restore.RestoreType - */ -class RestoreType -{ - /** - * The restore type is unknown. - * - * Generated from protobuf enum RESTORE_TYPE_UNSPECIFIED = 0; - */ - const RESTORE_TYPE_UNSPECIFIED = 0; - /** - * The service's metadata and configuration are restored. - * - * Generated from protobuf enum FULL = 1; - */ - const FULL = 1; - /** - * Only the service's metadata is restored. - * - * Generated from protobuf enum METADATA_ONLY = 2; - */ - const METADATA_ONLY = 2; - - private static $valueToName = [ - self::RESTORE_TYPE_UNSPECIFIED => 'RESTORE_TYPE_UNSPECIFIED', - self::FULL => 'FULL', - self::METADATA_ONLY => 'METADATA_ONLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RestoreType::class, \Google\Cloud\Metastore\V1alpha\Restore_RestoreType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore/State.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore/State.php deleted file mode 100644 index f5225dc2cc66..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Restore/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.metastore.v1alpha.Restore.State - */ -class State -{ - /** - * The state of the metadata restore is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metadata restore is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The metadata restore completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The metadata restore failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * The metadata restore is cancelled. - * - * Generated from protobuf enum CANCELLED = 4; - */ - const CANCELLED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::CANCELLED => '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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1alpha\Restore_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RestoreServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RestoreServiceRequest.php deleted file mode 100644 index 5680899aecae..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/RestoreServiceRequest.php +++ /dev/null @@ -1,244 +0,0 @@ -google.cloud.metastore.v1alpha.RestoreServiceRequest - */ -class RestoreServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $backup = ''; - /** - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $restore_type = 0; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $service Required. The relative resource name of the metastore service to run - * restore, in the following form: - * - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * @param string $backup Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. Please see - * {@see DataprocMetastoreClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1alpha\RestoreServiceRequest - * - * @experimental - */ - public static function build(string $service, string $backup): self - { - return (new self()) - ->setService($service) - ->setBackup($backup); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $backup - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * @type int $restore_type - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getBackup() - { - return $this->backup; - } - - /** - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkString($var, True); - $this->backup = $var; - - return $this; - } - - /** - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getRestoreType() - { - return $this->restore_type; - } - - /** - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setRestoreType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\Restore\RestoreType::class); - $this->restore_type = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ScalingConfig.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ScalingConfig.php deleted file mode 100644 index 1807bfee9f04..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ScalingConfig.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.metastore.v1alpha.ScalingConfig - */ -class ScalingConfig extends \Google\Protobuf\Internal\Message -{ - protected $scaling_model; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $instance_size - * An enum of readable instance sizes, with each instance size mapping to a - * float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) - * @type float $scaling_factor - * Scaling factor, increments of 0.1 for values less than 1.0, and - * increments of 1.0 for values greater than 1.0. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * An enum of readable instance sizes, with each instance size mapping to a - * float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.ScalingConfig.InstanceSize instance_size = 1; - * @return int - */ - public function getInstanceSize() - { - return $this->readOneof(1); - } - - public function hasInstanceSize() - { - return $this->hasOneof(1); - } - - /** - * An enum of readable instance sizes, with each instance size mapping to a - * float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.ScalingConfig.InstanceSize instance_size = 1; - * @param int $var - * @return $this - */ - public function setInstanceSize($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\ScalingConfig\InstanceSize::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Scaling factor, increments of 0.1 for values less than 1.0, and - * increments of 1.0 for values greater than 1.0. - * - * Generated from protobuf field float scaling_factor = 2; - * @return float - */ - public function getScalingFactor() - { - return $this->readOneof(2); - } - - public function hasScalingFactor() - { - return $this->hasOneof(2); - } - - /** - * Scaling factor, increments of 0.1 for values less than 1.0, and - * increments of 1.0 for values greater than 1.0. - * - * Generated from protobuf field float scaling_factor = 2; - * @param float $var - * @return $this - */ - public function setScalingFactor($var) - { - GPBUtil::checkFloat($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getScalingModel() - { - return $this->whichOneof("scaling_model"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ScalingConfig/InstanceSize.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ScalingConfig/InstanceSize.php deleted file mode 100644 index 1b7ccfc5dfe0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/ScalingConfig/InstanceSize.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.metastore.v1alpha.ScalingConfig.InstanceSize - */ -class InstanceSize -{ - /** - * Unspecified instance size - * - * Generated from protobuf enum INSTANCE_SIZE_UNSPECIFIED = 0; - */ - const INSTANCE_SIZE_UNSPECIFIED = 0; - /** - * Extra small instance size, maps to a scaling factor of 0.1. - * - * Generated from protobuf enum EXTRA_SMALL = 1; - */ - const EXTRA_SMALL = 1; - /** - * Small instance size, maps to a scaling factor of 0.5. - * - * Generated from protobuf enum SMALL = 2; - */ - const SMALL = 2; - /** - * Medium instance size, maps to a scaling factor of 1.0. - * - * Generated from protobuf enum MEDIUM = 3; - */ - const MEDIUM = 3; - /** - * Large instance size, maps to a scaling factor of 3.0. - * - * Generated from protobuf enum LARGE = 4; - */ - const LARGE = 4; - /** - * Extra large instance size, maps to a scaling factor of 6.0. - * - * Generated from protobuf enum EXTRA_LARGE = 5; - */ - const EXTRA_LARGE = 5; - - private static $valueToName = [ - self::INSTANCE_SIZE_UNSPECIFIED => 'INSTANCE_SIZE_UNSPECIFIED', - self::EXTRA_SMALL => 'EXTRA_SMALL', - self::SMALL => 'SMALL', - self::MEDIUM => 'MEDIUM', - self::LARGE => 'LARGE', - self::EXTRA_LARGE => 'EXTRA_LARGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InstanceSize::class, \Google\Cloud\Metastore\V1alpha\ScalingConfig_InstanceSize::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Secret.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Secret.php deleted file mode 100644 index 307c8b688384..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Secret.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.metastore.v1alpha.Secret - */ -class Secret extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cloud_secret - * The relative resource name of a Secret Manager secret version, in the - * following form: - * `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The relative resource name of a Secret Manager secret version, in the - * following form: - * `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. - * - * Generated from protobuf field string cloud_secret = 2; - * @return string - */ - public function getCloudSecret() - { - return $this->readOneof(2); - } - - public function hasCloudSecret() - { - return $this->hasOneof(2); - } - - /** - * The relative resource name of a Secret Manager secret version, in the - * following form: - * `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. - * - * Generated from protobuf field string cloud_secret = 2; - * @param string $var - * @return $this - */ - public function setCloudSecret($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service.php deleted file mode 100644 index 7efbade698c0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service.php +++ /dev/null @@ -1,942 +0,0 @@ -google.cloud.metastore.v1alpha.Service - */ -class Service extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. The time when the metastore service was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the metastore service was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * User-defined labels for the metastore service. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * - * Generated from protobuf field string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $network = ''; - /** - * Output only. The URI of the endpoint used to access the metastore service. - * - * Generated from protobuf field string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint_uri = ''; - /** - * The TCP port at which the metastore service is reached. Default: 9083. - * - * Generated from protobuf field int32 port = 9; - */ - protected $port = 0; - /** - * Output only. The current state of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information about the current state of the - * metastore service, if available. - * - * Generated from protobuf field string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_message = ''; - /** - * Output only. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * - * Generated from protobuf field string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $artifact_gcs_uri = ''; - /** - * The tier of the service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.Tier tier = 13; - */ - protected $tier = 0; - /** - * The setting that defines how metastore metadata should be integrated with - * external services and systems. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataIntegration metadata_integration = 14; - */ - protected $metadata_integration = null; - /** - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MaintenanceWindow maintenance_window = 15; - */ - protected $maintenance_window = null; - /** - * Output only. The globally unique resource identifier of the metastore - * service. - * - * Generated from protobuf field string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The metadata management activities of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $metadata_management_activity = null; - /** - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $release_channel = 0; - /** - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $encryption_config = null; - /** - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.NetworkConfig network_config = 21; - */ - protected $network_config = null; - /** - * Immutable. The database type that the Metastore service stores its data. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $database_type = 0; - /** - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.TelemetryConfig telemetry_config = 23; - */ - protected $telemetry_config = null; - /** - * Scaling configuration of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.ScalingConfig scaling_config = 24; - */ - protected $scaling_config = null; - protected $metastore_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1alpha\HiveMetastoreConfig $hive_metastore_config - * Configuration information specific to running Hive metastore - * software as the metastore service. - * @type string $name - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the metastore service was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the metastore service was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * User-defined labels for the metastore service. - * @type string $network - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * @type string $endpoint_uri - * Output only. The URI of the endpoint used to access the metastore service. - * @type int $port - * The TCP port at which the metastore service is reached. Default: 9083. - * @type int $state - * Output only. The current state of the metastore service. - * @type string $state_message - * Output only. Additional information about the current state of the - * metastore service, if available. - * @type string $artifact_gcs_uri - * Output only. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * @type int $tier - * The tier of the service. - * @type \Google\Cloud\Metastore\V1alpha\MetadataIntegration $metadata_integration - * The setting that defines how metastore metadata should be integrated with - * external services and systems. - * @type \Google\Cloud\Metastore\V1alpha\MaintenanceWindow $maintenance_window - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * @type string $uid - * Output only. The globally unique resource identifier of the metastore - * service. - * @type \Google\Cloud\Metastore\V1alpha\MetadataManagementActivity $metadata_management_activity - * Output only. The metadata management activities of the metastore service. - * @type int $release_channel - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * @type \Google\Cloud\Metastore\V1alpha\EncryptionConfig $encryption_config - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * @type \Google\Cloud\Metastore\V1alpha\NetworkConfig $network_config - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * @type int $database_type - * Immutable. The database type that the Metastore service stores its data. - * @type \Google\Cloud\Metastore\V1alpha\TelemetryConfig $telemetry_config - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * @type \Google\Cloud\Metastore\V1alpha\ScalingConfig $scaling_config - * Scaling configuration of the metastore service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Configuration information specific to running Hive metastore - * software as the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.HiveMetastoreConfig hive_metastore_config = 5; - * @return \Google\Cloud\Metastore\V1alpha\HiveMetastoreConfig|null - */ - public function getHiveMetastoreConfig() - { - return $this->readOneof(5); - } - - public function hasHiveMetastoreConfig() - { - return $this->hasOneof(5); - } - - /** - * Configuration information specific to running Hive metastore - * software as the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.HiveMetastoreConfig hive_metastore_config = 5; - * @param \Google\Cloud\Metastore\V1alpha\HiveMetastoreConfig $var - * @return $this - */ - public function setHiveMetastoreConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\HiveMetastoreConfig::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * 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 when the metastore service was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the metastore service was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the metastore service was 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 when the metastore service was 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; - } - - /** - * User-defined labels for the metastore service. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * User-defined labels for the metastore service. - * - * 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; - } - - /** - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * - * Generated from protobuf field string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * - * Generated from protobuf field string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Output only. The URI of the endpoint used to access the metastore service. - * - * Generated from protobuf field string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpointUri() - { - return $this->endpoint_uri; - } - - /** - * Output only. The URI of the endpoint used to access the metastore service. - * - * Generated from protobuf field string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_uri = $var; - - return $this; - } - - /** - * The TCP port at which the metastore service is reached. Default: 9083. - * - * Generated from protobuf field int32 port = 9; - * @return int - */ - public function getPort() - { - return $this->port; - } - - /** - * The TCP port at which the metastore service is reached. Default: 9083. - * - * Generated from protobuf field int32 port = 9; - * @param int $var - * @return $this - */ - public function setPort($var) - { - GPBUtil::checkInt32($var); - $this->port = $var; - - return $this; - } - - /** - * Output only. The current state of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\Service\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information about the current state of the - * metastore service, if available. - * - * Generated from protobuf field string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * Output only. Additional information about the current state of the - * metastore service, if available. - * - * Generated from protobuf field string state_message = 11 [(.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. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * - * Generated from protobuf field string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getArtifactGcsUri() - { - return $this->artifact_gcs_uri; - } - - /** - * Output only. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * - * Generated from protobuf field string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setArtifactGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->artifact_gcs_uri = $var; - - return $this; - } - - /** - * The tier of the service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.Tier tier = 13; - * @return int - */ - public function getTier() - { - return $this->tier; - } - - /** - * The tier of the service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.Tier tier = 13; - * @param int $var - * @return $this - */ - public function setTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\Service\Tier::class); - $this->tier = $var; - - return $this; - } - - /** - * The setting that defines how metastore metadata should be integrated with - * external services and systems. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataIntegration metadata_integration = 14; - * @return \Google\Cloud\Metastore\V1alpha\MetadataIntegration|null - */ - public function getMetadataIntegration() - { - return $this->metadata_integration; - } - - public function hasMetadataIntegration() - { - return isset($this->metadata_integration); - } - - public function clearMetadataIntegration() - { - unset($this->metadata_integration); - } - - /** - * The setting that defines how metastore metadata should be integrated with - * external services and systems. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataIntegration metadata_integration = 14; - * @param \Google\Cloud\Metastore\V1alpha\MetadataIntegration $var - * @return $this - */ - public function setMetadataIntegration($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\MetadataIntegration::class); - $this->metadata_integration = $var; - - return $this; - } - - /** - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MaintenanceWindow maintenance_window = 15; - * @return \Google\Cloud\Metastore\V1alpha\MaintenanceWindow|null - */ - public function getMaintenanceWindow() - { - return $this->maintenance_window; - } - - public function hasMaintenanceWindow() - { - return isset($this->maintenance_window); - } - - public function clearMaintenanceWindow() - { - unset($this->maintenance_window); - } - - /** - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MaintenanceWindow maintenance_window = 15; - * @param \Google\Cloud\Metastore\V1alpha\MaintenanceWindow $var - * @return $this - */ - public function setMaintenanceWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\MaintenanceWindow::class); - $this->maintenance_window = $var; - - return $this; - } - - /** - * Output only. The globally unique resource identifier of the metastore - * service. - * - * Generated from protobuf field string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. The globally unique resource identifier of the metastore - * service. - * - * Generated from protobuf field string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The metadata management activities of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Metastore\V1alpha\MetadataManagementActivity|null - */ - public function getMetadataManagementActivity() - { - return $this->metadata_management_activity; - } - - public function hasMetadataManagementActivity() - { - return isset($this->metadata_management_activity); - } - - public function clearMetadataManagementActivity() - { - unset($this->metadata_management_activity); - } - - /** - * Output only. The metadata management activities of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Metastore\V1alpha\MetadataManagementActivity $var - * @return $this - */ - public function setMetadataManagementActivity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\MetadataManagementActivity::class); - $this->metadata_management_activity = $var; - - return $this; - } - - /** - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getReleaseChannel() - { - return $this->release_channel; - } - - /** - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setReleaseChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\Service\ReleaseChannel::class); - $this->release_channel = $var; - - return $this; - } - - /** - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Metastore\V1alpha\EncryptionConfig|null - */ - public function getEncryptionConfig() - { - return $this->encryption_config; - } - - public function hasEncryptionConfig() - { - return isset($this->encryption_config); - } - - public function clearEncryptionConfig() - { - unset($this->encryption_config); - } - - /** - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Metastore\V1alpha\EncryptionConfig $var - * @return $this - */ - public function setEncryptionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\EncryptionConfig::class); - $this->encryption_config = $var; - - return $this; - } - - /** - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.NetworkConfig network_config = 21; - * @return \Google\Cloud\Metastore\V1alpha\NetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.NetworkConfig network_config = 21; - * @param \Google\Cloud\Metastore\V1alpha\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * Immutable. The database type that the Metastore service stores its data. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getDatabaseType() - { - return $this->database_type; - } - - /** - * Immutable. The database type that the Metastore service stores its data. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setDatabaseType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\Service\DatabaseType::class); - $this->database_type = $var; - - return $this; - } - - /** - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.TelemetryConfig telemetry_config = 23; - * @return \Google\Cloud\Metastore\V1alpha\TelemetryConfig|null - */ - public function getTelemetryConfig() - { - return $this->telemetry_config; - } - - public function hasTelemetryConfig() - { - return isset($this->telemetry_config); - } - - public function clearTelemetryConfig() - { - unset($this->telemetry_config); - } - - /** - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.TelemetryConfig telemetry_config = 23; - * @param \Google\Cloud\Metastore\V1alpha\TelemetryConfig $var - * @return $this - */ - public function setTelemetryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\TelemetryConfig::class); - $this->telemetry_config = $var; - - return $this; - } - - /** - * Scaling configuration of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.ScalingConfig scaling_config = 24; - * @return \Google\Cloud\Metastore\V1alpha\ScalingConfig|null - */ - public function getScalingConfig() - { - return $this->scaling_config; - } - - public function hasScalingConfig() - { - return isset($this->scaling_config); - } - - public function clearScalingConfig() - { - unset($this->scaling_config); - } - - /** - * Scaling configuration of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.ScalingConfig scaling_config = 24; - * @param \Google\Cloud\Metastore\V1alpha\ScalingConfig $var - * @return $this - */ - public function setScalingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\ScalingConfig::class); - $this->scaling_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getMetastoreConfig() - { - return $this->whichOneof("metastore_config"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/DatabaseType.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/DatabaseType.php deleted file mode 100644 index af3d2b8bc594..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/DatabaseType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1alpha.Service.DatabaseType - */ -class DatabaseType -{ - /** - * The DATABASE_TYPE is not set. - * - * Generated from protobuf enum DATABASE_TYPE_UNSPECIFIED = 0; - */ - const DATABASE_TYPE_UNSPECIFIED = 0; - /** - * MySQL is used to persist the metastore data. - * - * Generated from protobuf enum MYSQL = 1; - */ - const MYSQL = 1; - /** - * Spanner is used to persist the metastore data. - * - * Generated from protobuf enum SPANNER = 2; - */ - const SPANNER = 2; - - private static $valueToName = [ - self::DATABASE_TYPE_UNSPECIFIED => 'DATABASE_TYPE_UNSPECIFIED', - self::MYSQL => 'MYSQL', - self::SPANNER => 'SPANNER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Metastore\V1alpha\Service_DatabaseType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/ReleaseChannel.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/ReleaseChannel.php deleted file mode 100644 index 5bc9f8664adb..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/ReleaseChannel.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.metastore.v1alpha.Service.ReleaseChannel - */ -class ReleaseChannel -{ - /** - * Release channel is not specified. - * - * Generated from protobuf enum RELEASE_CHANNEL_UNSPECIFIED = 0; - */ - const RELEASE_CHANNEL_UNSPECIFIED = 0; - /** - * The `CANARY` release channel contains the newest features, which may be - * unstable and subject to unresolved issues with no known workarounds. - * Services using the `CANARY` release channel are not subject to any SLAs. - * - * Generated from protobuf enum CANARY = 1; - */ - const CANARY = 1; - /** - * The `STABLE` release channel contains features that are considered stable - * and have been validated for production use. - * - * Generated from protobuf enum STABLE = 2; - */ - const STABLE = 2; - - private static $valueToName = [ - self::RELEASE_CHANNEL_UNSPECIFIED => 'RELEASE_CHANNEL_UNSPECIFIED', - self::CANARY => 'CANARY', - self::STABLE => 'STABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReleaseChannel::class, \Google\Cloud\Metastore\V1alpha\Service_ReleaseChannel::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/State.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/State.php deleted file mode 100644 index ccf6ccae3a0e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/State.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.metastore.v1alpha.Service.State - */ -class State -{ - /** - * The state of the metastore service is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metastore service is in the process of being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The metastore service is running and ready to serve queries. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The metastore service is entering suspension. Its query-serving - * availability may cease unexpectedly. - * - * Generated from protobuf enum SUSPENDING = 3; - */ - const SUSPENDING = 3; - /** - * The metastore service is suspended and unable to serve queries. - * - * Generated from protobuf enum SUSPENDED = 4; - */ - const SUSPENDED = 4; - /** - * The metastore service is being updated. It remains usable but cannot - * accept additional update requests or be deleted at this time. - * - * Generated from protobuf enum UPDATING = 5; - */ - const UPDATING = 5; - /** - * The metastore service is undergoing deletion. It cannot be used. - * - * Generated from protobuf enum DELETING = 6; - */ - const DELETING = 6; - /** - * The metastore service has encountered an error and cannot be used. The - * metastore service should be deleted. - * - * Generated from protobuf enum ERROR = 7; - */ - const ERROR = 7; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::SUSPENDING => 'SUSPENDING', - self::SUSPENDED => 'SUSPENDED', - self::UPDATING => 'UPDATING', - self::DELETING => 'DELETING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1alpha\Service_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/Tier.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/Tier.php deleted file mode 100644 index 83e8f852b49e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/Service/Tier.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.metastore.v1alpha.Service.Tier - */ -class Tier -{ - /** - * The tier is not set. - * - * Generated from protobuf enum TIER_UNSPECIFIED = 0; - */ - const TIER_UNSPECIFIED = 0; - /** - * The developer tier provides limited scalability and no fault tolerance. - * Good for low-cost proof-of-concept. - * - * Generated from protobuf enum DEVELOPER = 1; - */ - const DEVELOPER = 1; - /** - * The enterprise tier provides multi-zone high availability, and sufficient - * scalability for enterprise-level Dataproc Metastore workloads. - * - * Generated from protobuf enum ENTERPRISE = 3; - */ - const ENTERPRISE = 3; - - private static $valueToName = [ - self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', - self::DEVELOPER => 'DEVELOPER', - self::ENTERPRISE => 'ENTERPRISE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Tier::class, \Google\Cloud\Metastore\V1alpha\Service_Tier::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/TelemetryConfig.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/TelemetryConfig.php deleted file mode 100644 index 7c3204edb841..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/TelemetryConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.metastore.v1alpha.TelemetryConfig - */ -class TelemetryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The output format of the Dataproc Metastore service's logs. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.TelemetryConfig.LogFormat log_format = 1; - */ - protected $log_format = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $log_format - * The output format of the Dataproc Metastore service's logs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The output format of the Dataproc Metastore service's logs. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.TelemetryConfig.LogFormat log_format = 1; - * @return int - */ - public function getLogFormat() - { - return $this->log_format; - } - - /** - * The output format of the Dataproc Metastore service's logs. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.TelemetryConfig.LogFormat log_format = 1; - * @param int $var - * @return $this - */ - public function setLogFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1alpha\TelemetryConfig\LogFormat::class); - $this->log_format = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/TelemetryConfig/LogFormat.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/TelemetryConfig/LogFormat.php deleted file mode 100644 index e1ea20ce4cc9..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/TelemetryConfig/LogFormat.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.metastore.v1alpha.TelemetryConfig.LogFormat - */ -class LogFormat -{ - /** - * The LOG_FORMAT is not set. - * - * Generated from protobuf enum LOG_FORMAT_UNSPECIFIED = 0; - */ - const LOG_FORMAT_UNSPECIFIED = 0; - /** - * Logging output uses the legacy `textPayload` format. - * - * Generated from protobuf enum LEGACY = 1; - */ - const LEGACY = 1; - /** - * Logging output uses the `jsonPayload` format. - * - * Generated from protobuf enum JSON = 2; - */ - const JSON = 2; - - private static $valueToName = [ - self::LOG_FORMAT_UNSPECIFIED => 'LOG_FORMAT_UNSPECIFIED', - self::LEGACY => 'LEGACY', - self::JSON => 'JSON', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LogFormat::class, \Google\Cloud\Metastore\V1alpha\TelemetryConfig_LogFormat::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateFederationRequest.php deleted file mode 100644 index c54977ba56ab..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateFederationRequest.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.metastore.v1alpha.UpdateFederationRequest - */ -class UpdateFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Federation federation = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $federation = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Metastore\V1alpha\Federation $federation Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * @return \Google\Cloud\Metastore\V1alpha\UpdateFederationRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Metastore\V1alpha\Federation $federation, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setFederation($federation) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * @type \Google\Cloud\Metastore\V1alpha\Federation $federation - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Federation federation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1alpha\Federation|null - */ - public function getFederation() - { - return $this->federation; - } - - public function hasFederation() - { - return isset($this->federation); - } - - public function clearFederation() - { - unset($this->federation); - } - - /** - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Federation federation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1alpha\Federation $var - * @return $this - */ - public function setFederation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\Federation::class); - $this->federation = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateMetadataImportRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateMetadataImportRequest.php deleted file mode 100644 index 661467d3e7ac..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateMetadataImportRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.cloud.metastore.v1alpha.UpdateMetadataImportRequest - */ -class UpdateMetadataImportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport metadata_import = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_import = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Metastore\V1alpha\MetadataImport $metadataImport Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * @return \Google\Cloud\Metastore\V1alpha\UpdateMetadataImportRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Metastore\V1alpha\MetadataImport $metadataImport, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMetadataImport($metadataImport) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * @type \Google\Cloud\Metastore\V1alpha\MetadataImport $metadata_import - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport metadata_import = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1alpha\MetadataImport|null - */ - public function getMetadataImport() - { - return $this->metadata_import; - } - - public function hasMetadataImport() - { - return isset($this->metadata_import); - } - - public function clearMetadataImport() - { - unset($this->metadata_import); - } - - /** - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.MetadataImport metadata_import = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1alpha\MetadataImport $var - * @return $this - */ - public function setMetadataImport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\MetadataImport::class); - $this->metadata_import = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateServiceRequest.php deleted file mode 100644 index c6eea169904d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/proto/src/Google/Cloud/Metastore/V1alpha/UpdateServiceRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.cloud.metastore.v1alpha.UpdateServiceRequest - */ -class UpdateServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Metastore\V1alpha\Service $service Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * @return \Google\Cloud\Metastore\V1alpha\UpdateServiceRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Metastore\V1alpha\Service $service, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setService($service) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * @type \Google\Cloud\Metastore\V1alpha\Service $service - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Alpha\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1alpha\Service|null - */ - public function getService() - { - return $this->service; - } - - public function hasService() - { - return isset($this->service); - } - - public function clearService() - { - unset($this->service); - } - - /** - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1alpha.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1alpha\Service $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1alpha\Service::class); - $this->service = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/alter_metadata_resource_location.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/alter_metadata_resource_location.php deleted file mode 100644 index fb107c24101c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/alter_metadata_resource_location.php +++ /dev/null @@ -1,104 +0,0 @@ -setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->alterMetadataResourceLocation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AlterMetadataResourceLocationResponse $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = '[RESOURCE_NAME]'; - $locationUri = '[LOCATION_URI]'; - - alter_metadata_resource_location_sample($formattedService, $resourceName, $locationUri); -} -// [END metastore_v1alpha_generated_DataprocMetastore_AlterMetadataResourceLocation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_backup.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_backup.php deleted file mode 100644 index 33f48343c901..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_backup.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->createBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Backup $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $backupId = '[BACKUP_ID]'; - - create_backup_sample($formattedParent, $backupId); -} -// [END metastore_v1alpha_generated_DataprocMetastore_CreateBackup_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_metadata_import.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_metadata_import.php deleted file mode 100644 index d70a7bcb02c7..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_metadata_import.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setMetadataImportId($metadataImportId) - ->setMetadataImport($metadataImport); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->createMetadataImport($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataImport $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 = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $metadataImportId = '[METADATA_IMPORT_ID]'; - - create_metadata_import_sample($formattedParent, $metadataImportId); -} -// [END metastore_v1alpha_generated_DataprocMetastore_CreateMetadataImport_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_service.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_service.php deleted file mode 100644 index 0bb4de7278a0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/create_service.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->createService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Service $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::locationName('[PROJECT]', '[LOCATION]'); - $serviceId = '[SERVICE_ID]'; - - create_service_sample($formattedParent, $serviceId); -} -// [END metastore_v1alpha_generated_DataprocMetastore_CreateService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/delete_backup.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/delete_backup.php deleted file mode 100644 index d9f32c5a29a7..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/delete_backup.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->deleteBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[BACKUP]' - ); - - delete_backup_sample($formattedName); -} -// [END metastore_v1alpha_generated_DataprocMetastore_DeleteBackup_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/delete_service.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/delete_service.php deleted file mode 100644 index c58088f8b8d7..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/delete_service.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->deleteService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - delete_service_sample($formattedName); -} -// [END metastore_v1alpha_generated_DataprocMetastore_DeleteService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/export_metadata.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/export_metadata.php deleted file mode 100644 index 84e52054390a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/export_metadata.php +++ /dev/null @@ -1,86 +0,0 @@ -setService($formattedService); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->exportMetadata($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataExport $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - export_metadata_sample($formattedService); -} -// [END metastore_v1alpha_generated_DataprocMetastore_ExportMetadata_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_backup.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_backup.php deleted file mode 100644 index 15fc8aa69c47..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_backup.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Backup $response */ - $response = $dataprocMetastoreClient->getBackup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[BACKUP]' - ); - - get_backup_sample($formattedName); -} -// [END metastore_v1alpha_generated_DataprocMetastore_GetBackup_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_iam_policy.php deleted file mode 100644 index 477e9eef6d91..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreClient->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 metastore_v1alpha_generated_DataprocMetastore_GetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_location.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_location.php deleted file mode 100644 index 97c48ad71ebf..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1alpha_generated_DataprocMetastore_GetLocation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_metadata_import.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_metadata_import.php deleted file mode 100644 index 78e288512b50..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_metadata_import.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MetadataImport $response */ - $response = $dataprocMetastoreClient->getMetadataImport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::metadataImportName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[METADATA_IMPORT]' - ); - - get_metadata_import_sample($formattedName); -} -// [END metastore_v1alpha_generated_DataprocMetastore_GetMetadataImport_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_service.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_service.php deleted file mode 100644 index 897936ea3e25..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/get_service.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Service $response */ - $response = $dataprocMetastoreClient->getService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - get_service_sample($formattedName); -} -// [END metastore_v1alpha_generated_DataprocMetastore_GetService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_backups.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_backups.php deleted file mode 100644 index d9fe25b9a3e3..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_backups.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreClient->listBackups($request); - - /** @var Backup $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - list_backups_sample($formattedParent); -} -// [END metastore_v1alpha_generated_DataprocMetastore_ListBackups_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_locations.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_locations.php deleted file mode 100644 index 12b698995530..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1alpha_generated_DataprocMetastore_ListLocations_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_metadata_imports.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_metadata_imports.php deleted file mode 100644 index e682814f4754..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_metadata_imports.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreClient->listMetadataImports($request); - - /** @var MetadataImport $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 = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - list_metadata_imports_sample($formattedParent); -} -// [END metastore_v1alpha_generated_DataprocMetastore_ListMetadataImports_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_services.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_services.php deleted file mode 100644 index f7520e01b58d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/list_services.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreClient->listServices($request); - - /** @var Service $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::locationName('[PROJECT]', '[LOCATION]'); - - list_services_sample($formattedParent); -} -// [END metastore_v1alpha_generated_DataprocMetastore_ListServices_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/move_table_to_database.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/move_table_to_database.php deleted file mode 100644 index d0152fc4b031..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/move_table_to_database.php +++ /dev/null @@ -1,99 +0,0 @@ -setService($formattedService) - ->setTableName($tableName) - ->setDbName($dbName) - ->setDestinationDbName($destinationDbName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->moveTableToDatabase($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MoveTableToDatabaseResponse $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $tableName = '[TABLE_NAME]'; - $dbName = '[DB_NAME]'; - $destinationDbName = '[DESTINATION_DB_NAME]'; - - move_table_to_database_sample($formattedService, $tableName, $dbName, $destinationDbName); -} -// [END metastore_v1alpha_generated_DataprocMetastore_MoveTableToDatabase_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/query_metadata.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/query_metadata.php deleted file mode 100644 index 3125062918f3..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/query_metadata.php +++ /dev/null @@ -1,90 +0,0 @@ -setService($formattedService) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->queryMetadata($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var QueryMetadataResponse $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $query = '[QUERY]'; - - query_metadata_sample($formattedService, $query); -} -// [END metastore_v1alpha_generated_DataprocMetastore_QueryMetadata_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/remove_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/remove_iam_policy.php deleted file mode 100644 index a2a574cf7e54..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/remove_iam_policy.php +++ /dev/null @@ -1,75 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var RemoveIamPolicyResponse $response */ - $response = $dataprocMetastoreClient->removeIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - 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]'; - - remove_iam_policy_sample($resource); -} -// [END metastore_v1alpha_generated_DataprocMetastore_RemoveIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/restore_service.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/restore_service.php deleted file mode 100644 index 33c2f1868f52..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/restore_service.php +++ /dev/null @@ -1,98 +0,0 @@ -setService($formattedService) - ->setBackup($formattedBackup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->restoreService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Restore $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $formattedBackup = DataprocMetastoreClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[BACKUP]' - ); - - restore_service_sample($formattedService, $formattedBackup); -} -// [END metastore_v1alpha_generated_DataprocMetastore_RestoreService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/set_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/set_iam_policy.php deleted file mode 100644 index 4d2e4f13fd26..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreClient->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 metastore_v1alpha_generated_DataprocMetastore_SetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/test_iam_permissions.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/test_iam_permissions.php deleted file mode 100644 index 8ae6e4d79bc6..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataprocMetastoreClient->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 metastore_v1alpha_generated_DataprocMetastore_TestIamPermissions_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/update_metadata_import.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/update_metadata_import.php deleted file mode 100644 index 307c1ce5a8d0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/update_metadata_import.php +++ /dev/null @@ -1,75 +0,0 @@ -setUpdateMask($updateMask) - ->setMetadataImport($metadataImport); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->updateMetadataImport($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataImport $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 metastore_v1alpha_generated_DataprocMetastore_UpdateMetadataImport_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/update_service.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/update_service.php deleted file mode 100644 index f267c18d30f1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreClient/update_service.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setService($service); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->updateService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Service $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1alpha_generated_DataprocMetastore_UpdateService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/create_federation.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/create_federation.php deleted file mode 100644 index 9d52eb09480c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/create_federation.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreFederationClient->createFederation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Federation $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 = DataprocMetastoreFederationClient::locationName('[PROJECT]', '[LOCATION]'); - $federationId = '[FEDERATION_ID]'; - - create_federation_sample($formattedParent, $federationId); -} -// [END metastore_v1alpha_generated_DataprocMetastoreFederation_CreateFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/delete_federation.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/delete_federation.php deleted file mode 100644 index a1208f308625..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/delete_federation.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreFederationClient->deleteFederation($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 = DataprocMetastoreFederationClient::federationName( - '[PROJECT]', - '[LOCATION]', - '[FEDERATION]' - ); - - delete_federation_sample($formattedName); -} -// [END metastore_v1alpha_generated_DataprocMetastoreFederation_DeleteFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_federation.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_federation.php deleted file mode 100644 index 81392bf21f4a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_federation.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Federation $response */ - $response = $dataprocMetastoreFederationClient->getFederation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreFederationClient::federationName( - '[PROJECT]', - '[LOCATION]', - '[FEDERATION]' - ); - - get_federation_sample($formattedName); -} -// [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_iam_policy.php deleted file mode 100644 index a1c569c7799f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreFederationClient->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 metastore_v1alpha_generated_DataprocMetastoreFederation_GetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_location.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_location.php deleted file mode 100644 index 5d52a6df0730..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1alpha_generated_DataprocMetastoreFederation_GetLocation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/list_federations.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/list_federations.php deleted file mode 100644 index 8ebbc7fd7a13..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/list_federations.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreFederationClient->listFederations($request); - - /** @var Federation $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 = DataprocMetastoreFederationClient::locationName('[PROJECT]', '[LOCATION]'); - - list_federations_sample($formattedParent); -} -// [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListFederations_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/list_locations.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/list_locations.php deleted file mode 100644 index 3f5de6e5d981..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1alpha_generated_DataprocMetastoreFederation_ListLocations_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/set_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/set_iam_policy.php deleted file mode 100644 index bd816f946be1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreFederationClient->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 metastore_v1alpha_generated_DataprocMetastoreFederation_SetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/test_iam_permissions.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/test_iam_permissions.php deleted file mode 100644 index 416c7611378d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataprocMetastoreFederationClient->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 metastore_v1alpha_generated_DataprocMetastoreFederation_TestIamPermissions_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/update_federation.php b/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/update_federation.php deleted file mode 100644 index 9ebde420ec33..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/samples/V1alpha/DataprocMetastoreFederationClient/update_federation.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setFederation($federation); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreFederationClient->updateFederation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Federation $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 metastore_v1alpha_generated_DataprocMetastoreFederation_UpdateFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/Client/DataprocMetastoreClient.php b/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/Client/DataprocMetastoreClient.php deleted file mode 100644 index ef630fde992f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/Client/DataprocMetastoreClient.php +++ /dev/null @@ -1,1175 +0,0 @@ - alterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMetadataImportAsync(CreateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportMetadataAsync(ExportMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMetadataImportAsync(GetMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMetadataImportsAsync(ListMetadataImportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveTableToDatabaseAsync(MoveTableToDatabaseRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryMetadataAsync(QueryMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface removeIamPolicyAsync(RemoveIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreServiceAsync(RestoreServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMetadataImportAsync(UpdateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $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 DataprocMetastoreClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.metastore.v1alpha.DataprocMetastore'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'metastore.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'metastore.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/dataproc_metastore_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dataproc_metastore_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dataproc_metastore_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataproc_metastore_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - * - * @experimental - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a backup - * resource. - * - * @param string $project - * @param string $location - * @param string $service - * @param string $backup - * - * @return string The formatted backup resource. - * - * @experimental - */ - public static function backupName(string $project, string $location, string $service, string $backup): string - { - return self::getPathTemplate('backup')->render([ - 'project' => $project, - 'location' => $location, - 'service' => $service, - 'backup' => $backup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a lake - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * - * @return string The formatted lake resource. - * - * @experimental - */ - public static function lakeName(string $project, string $location, string $lake): string - { - return self::getPathTemplate('lake')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - ]); - } - - /** - * 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. - * - * @experimental - */ - 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 - * metadata_import resource. - * - * @param string $project - * @param string $location - * @param string $service - * @param string $metadataImport - * - * @return string The formatted metadata_import resource. - * - * @experimental - */ - public static function metadataImportName(string $project, string $location, string $service, string $metadataImport): string - { - return self::getPathTemplate('metadataImport')->render([ - 'project' => $project, - 'location' => $location, - 'service' => $service, - 'metadata_import' => $metadataImport, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $project - * @param string $network - * - * @return string The formatted network resource. - * - * @experimental - */ - public static function networkName(string $project, string $network): string - { - return self::getPathTemplate('network')->render([ - 'project' => $project, - 'network' => $network, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a service - * resource. - * - * @param string $project - * @param string $location - * @param string $service - * - * @return string The formatted service resource. - * - * @experimental - */ - public static function serviceName(string $project, string $location, string $service): string - { - return self::getPathTemplate('service')->render([ - 'project' => $project, - 'location' => $location, - 'service' => $service, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a subnetwork - * resource. - * - * @param string $project - * @param string $region - * @param string $subnetwork - * - * @return string The formatted subnetwork resource. - * - * @experimental - */ - public static function subnetworkName(string $project, string $region, string $subnetwork): string - { - return self::getPathTemplate('subnetwork')->render([ - 'project' => $project, - 'region' => $region, - 'subnetwork' => $subnetwork, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - backup: projects/{project}/locations/{location}/services/{service}/backups/{backup} - * - lake: projects/{project}/locations/{location}/lakes/{lake} - * - location: projects/{project}/locations/{location} - * - metadataImport: projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import} - * - network: projects/{project}/global/networks/{network} - * - service: projects/{project}/locations/{location}/services/{service} - * - subnetwork: projects/{project}/regions/{region}/subnetworks/{subnetwork} - * - * 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 'metastore.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Alter metadata resource location. The metadata resource can be a database, - * table, or partition. This functionality only updates the parent directory - * for the respective metadata resource and does not transfer any existing - * data to the new location. - * - * The async variant is - * {@see DataprocMetastoreClient::alterMetadataResourceLocationAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/alter_metadata_resource_location.php - * - * @param AlterMetadataResourceLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function alterMetadataResourceLocation(AlterMetadataResourceLocationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('AlterMetadataResourceLocation', $request, $callOptions)->wait(); - } - - /** - * Creates a new backup in a given project and location. - * - * The async variant is {@see DataprocMetastoreClient::createBackupAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/create_backup.php - * - * @param CreateBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createBackup(CreateBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateBackup', $request, $callOptions)->wait(); - } - - /** - * Creates a new MetadataImport in a given project and location. - * - * The async variant is {@see DataprocMetastoreClient::createMetadataImportAsync()} - * . - * - * @example samples/V1alpha/DataprocMetastoreClient/create_metadata_import.php - * - * @param CreateMetadataImportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createMetadataImport(CreateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateMetadataImport', $request, $callOptions)->wait(); - } - - /** - * Creates a metastore service in a project and location. - * - * The async variant is {@see DataprocMetastoreClient::createServiceAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/create_service.php - * - * @param CreateServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createService(CreateServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateService', $request, $callOptions)->wait(); - } - - /** - * Deletes a single backup. - * - * The async variant is {@see DataprocMetastoreClient::deleteBackupAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/delete_backup.php - * - * @param DeleteBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteBackup(DeleteBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteBackup', $request, $callOptions)->wait(); - } - - /** - * Deletes a single service. - * - * The async variant is {@see DataprocMetastoreClient::deleteServiceAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/delete_service.php - * - * @param DeleteServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteService(DeleteServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteService', $request, $callOptions)->wait(); - } - - /** - * Exports metadata from a service. - * - * The async variant is {@see DataprocMetastoreClient::exportMetadataAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/export_metadata.php - * - * @param ExportMetadataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function exportMetadata(ExportMetadataRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ExportMetadata', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single backup. - * - * The async variant is {@see DataprocMetastoreClient::getBackupAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/get_backup.php - * - * @param GetBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Backup - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getBackup(GetBackupRequest $request, array $callOptions = []): Backup - { - return $this->startApiCall('GetBackup', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single import. - * - * The async variant is {@see DataprocMetastoreClient::getMetadataImportAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/get_metadata_import.php - * - * @param GetMetadataImportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MetadataImport - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getMetadataImport(GetMetadataImportRequest $request, array $callOptions = []): MetadataImport - { - return $this->startApiCall('GetMetadataImport', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a single service. - * - * The async variant is {@see DataprocMetastoreClient::getServiceAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/get_service.php - * - * @param GetServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Service - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getService(GetServiceRequest $request, array $callOptions = []): Service - { - return $this->startApiCall('GetService', $request, $callOptions)->wait(); - } - - /** - * Lists backups in a service. - * - * The async variant is {@see DataprocMetastoreClient::listBackupsAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/list_backups.php - * - * @param ListBackupsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listBackups(ListBackupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBackups', $request, $callOptions); - } - - /** - * Lists imports in a service. - * - * The async variant is {@see DataprocMetastoreClient::listMetadataImportsAsync()} - * . - * - * @example samples/V1alpha/DataprocMetastoreClient/list_metadata_imports.php - * - * @param ListMetadataImportsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listMetadataImports(ListMetadataImportsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMetadataImports', $request, $callOptions); - } - - /** - * Lists services in a project and location. - * - * The async variant is {@see DataprocMetastoreClient::listServicesAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/list_services.php - * - * @param ListServicesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listServices(ListServicesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListServices', $request, $callOptions); - } - - /** - * Move a table to another database. - * - * The async variant is {@see DataprocMetastoreClient::moveTableToDatabaseAsync()} - * . - * - * @example samples/V1alpha/DataprocMetastoreClient/move_table_to_database.php - * - * @param MoveTableToDatabaseRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function moveTableToDatabase(MoveTableToDatabaseRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('MoveTableToDatabase', $request, $callOptions)->wait(); - } - - /** - * Query DPMS metadata. - * - * The async variant is {@see DataprocMetastoreClient::queryMetadataAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/query_metadata.php - * - * @param QueryMetadataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryMetadata(QueryMetadataRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('QueryMetadata', $request, $callOptions)->wait(); - } - - /** - * Removes the attached IAM policies for a resource - * - * The async variant is {@see DataprocMetastoreClient::removeIamPolicyAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/remove_iam_policy.php - * - * @param RemoveIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RemoveIamPolicyResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function removeIamPolicy(RemoveIamPolicyRequest $request, array $callOptions = []): RemoveIamPolicyResponse - { - return $this->startApiCall('RemoveIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Restores a service from a backup. - * - * The async variant is {@see DataprocMetastoreClient::restoreServiceAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/restore_service.php - * - * @param RestoreServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function restoreService(RestoreServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RestoreService', $request, $callOptions)->wait(); - } - - /** - * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - * - * The async variant is {@see DataprocMetastoreClient::updateMetadataImportAsync()} - * . - * - * @example samples/V1alpha/DataprocMetastoreClient/update_metadata_import.php - * - * @param UpdateMetadataImportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateMetadataImport(UpdateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateMetadataImport', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single service. - * - * The async variant is {@see DataprocMetastoreClient::updateServiceAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/update_service.php - * - * @param UpdateServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateService(UpdateServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateService', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataprocMetastoreClient::getLocationAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/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. - * - * @experimental - */ - 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 DataprocMetastoreClient::listLocationsAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/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. - * - * @experimental - */ - 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 DataprocMetastoreClient::getIamPolicyAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/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. - * - * @experimental - */ - 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 DataprocMetastoreClient::setIamPolicyAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/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. - * - * @experimental - */ - 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 DataprocMetastoreClient::testIamPermissionsAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreClient/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. - * - * @experimental - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/Client/DataprocMetastoreFederationClient.php b/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/Client/DataprocMetastoreFederationClient.php deleted file mode 100644 index 09f769978a1e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/Client/DataprocMetastoreFederationClient.php +++ /dev/null @@ -1,636 +0,0 @@ - createFederationAsync(CreateFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFederationAsync(DeleteFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFederationAsync(GetFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFederationsAsync(ListFederationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFederationAsync(UpdateFederationRequest $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 DataprocMetastoreFederationClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.metastore.v1alpha.DataprocMetastoreFederation'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'metastore.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'metastore.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/dataproc_metastore_federation_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - * - * @experimental - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a federation - * resource. - * - * @param string $project - * @param string $location - * @param string $federation - * - * @return string The formatted federation resource. - * - * @experimental - */ - public static function federationName(string $project, string $location, string $federation): string - { - return self::getPathTemplate('federation')->render([ - 'project' => $project, - 'location' => $location, - 'federation' => $federation, - ]); - } - - /** - * 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. - * - * @experimental - */ - 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 - * - federation: projects/{project}/locations/{location}/federations/{federation} - * - 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. - * - * @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 'metastore.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a metastore federation in a project and location. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::createFederationAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreFederationClient/create_federation.php - * - * @param CreateFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createFederation(CreateFederationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateFederation', $request, $callOptions)->wait(); - } - - /** - * Deletes a single federation. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::deleteFederationAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreFederationClient/delete_federation.php - * - * @param DeleteFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteFederation(DeleteFederationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteFederation', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a single federation. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::getFederationAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreFederationClient/get_federation.php - * - * @param GetFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Federation - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getFederation(GetFederationRequest $request, array $callOptions = []): Federation - { - return $this->startApiCall('GetFederation', $request, $callOptions)->wait(); - } - - /** - * Lists federations in a project and location. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::listFederationsAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreFederationClient/list_federations.php - * - * @param ListFederationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listFederations(ListFederationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFederations', $request, $callOptions); - } - - /** - * Updates the fields of a federation. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::updateFederationAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreFederationClient/update_federation.php - * - * @param UpdateFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateFederation(UpdateFederationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateFederation', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::getLocationAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreFederationClient/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. - * - * @experimental - */ - 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 DataprocMetastoreFederationClient::listLocationsAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreFederationClient/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. - * - * @experimental - */ - 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 DataprocMetastoreFederationClient::getIamPolicyAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreFederationClient/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. - * - * @experimental - */ - 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 DataprocMetastoreFederationClient::setIamPolicyAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreFederationClient/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. - * - * @experimental - */ - 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 DataprocMetastoreFederationClient::testIamPermissionsAsync()} . - * - * @example samples/V1alpha/DataprocMetastoreFederationClient/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. - * - * @experimental - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/gapic_metadata.json b/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/gapic_metadata.json deleted file mode 100644 index 1276f9994a16..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/gapic_metadata.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.metastore.v1alpha", - "libraryPackage": "Google\\Cloud\\Metastore\\V1alpha", - "services": { - "DataprocMetastore": { - "clients": { - "grpc": { - "libraryClient": "DataprocMetastoreGapicClient", - "rpcs": { - "AlterMetadataResourceLocation": { - "methods": [ - "alterMetadataResourceLocation" - ] - }, - "CreateBackup": { - "methods": [ - "createBackup" - ] - }, - "CreateMetadataImport": { - "methods": [ - "createMetadataImport" - ] - }, - "CreateService": { - "methods": [ - "createService" - ] - }, - "DeleteBackup": { - "methods": [ - "deleteBackup" - ] - }, - "DeleteService": { - "methods": [ - "deleteService" - ] - }, - "ExportMetadata": { - "methods": [ - "exportMetadata" - ] - }, - "GetBackup": { - "methods": [ - "getBackup" - ] - }, - "GetMetadataImport": { - "methods": [ - "getMetadataImport" - ] - }, - "GetService": { - "methods": [ - "getService" - ] - }, - "ListBackups": { - "methods": [ - "listBackups" - ] - }, - "ListMetadataImports": { - "methods": [ - "listMetadataImports" - ] - }, - "ListServices": { - "methods": [ - "listServices" - ] - }, - "MoveTableToDatabase": { - "methods": [ - "moveTableToDatabase" - ] - }, - "QueryMetadata": { - "methods": [ - "queryMetadata" - ] - }, - "RemoveIamPolicy": { - "methods": [ - "removeIamPolicy" - ] - }, - "RestoreService": { - "methods": [ - "restoreService" - ] - }, - "UpdateMetadataImport": { - "methods": [ - "updateMetadataImport" - ] - }, - "UpdateService": { - "methods": [ - "updateService" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "DataprocMetastoreFederation": { - "clients": { - "grpc": { - "libraryClient": "DataprocMetastoreFederationGapicClient", - "rpcs": { - "CreateFederation": { - "methods": [ - "createFederation" - ] - }, - "DeleteFederation": { - "methods": [ - "deleteFederation" - ] - }, - "GetFederation": { - "methods": [ - "getFederation" - ] - }, - "ListFederations": { - "methods": [ - "listFederations" - ] - }, - "UpdateFederation": { - "methods": [ - "updateFederation" - ] - }, - "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/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_client_config.json b/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_client_config.json deleted file mode 100644 index 2355e4bd3525..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_client_config.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "interfaces": { - "google.cloud.metastore.v1alpha.DataprocMetastore": { - "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": { - "AlterMetadataResourceLocation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateMetadataImport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ExportMetadata": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetBackup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMetadataImport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetService": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListBackups": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMetadataImports": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListServices": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "MoveTableToDatabase": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "QueryMetadata": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RemoveIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RestoreService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateMetadataImport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListLocations": { - "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" - }, - "SetIamPolicy": { - "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" - } - } - } - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_descriptor_config.php b/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_descriptor_config.php deleted file mode 100644 index fe2d216e69f1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_descriptor_config.php +++ /dev/null @@ -1,448 +0,0 @@ - [ - 'google.cloud.metastore.v1alpha.DataprocMetastore' => [ - 'AlterMetadataResourceLocation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\AlterMetadataResourceLocationResponse', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'CreateBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\Backup', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMetadataImport' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\MetadataImport', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\Service', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ExportMetadata' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\MetadataExport', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'MoveTableToDatabase' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\MoveTableToDatabaseResponse', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'QueryMetadata' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\QueryMetadataResponse', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'RestoreService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\Restore', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'UpdateMetadataImport' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\MetadataImport', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'metadata_import.name', - 'fieldAccessors' => [ - 'getMetadataImport', - 'getName', - ], - ], - ], - ], - 'UpdateService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\Service', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service.name', - 'fieldAccessors' => [ - 'getService', - 'getName', - ], - ], - ], - ], - 'GetBackup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1alpha\Backup', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadataImport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1alpha\MetadataImport', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1alpha\Service', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListBackups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBackups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1alpha\ListBackupsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMetadataImports' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMetadataImports', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1alpha\ListMetadataImportsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListServices' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getServices', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1alpha\ListServicesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RemoveIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1alpha\RemoveIamPolicyResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'backup' => 'projects/{project}/locations/{location}/services/{service}/backups/{backup}', - 'lake' => 'projects/{project}/locations/{location}/lakes/{lake}', - 'location' => 'projects/{project}/locations/{location}', - 'metadataImport' => 'projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}', - 'network' => 'projects/{project}/global/networks/{network}', - 'service' => 'projects/{project}/locations/{location}/services/{service}', - 'subnetwork' => 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_client_config.json b/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_client_config.json deleted file mode 100644 index 360aa62b94ff..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_client_config.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "interfaces": { - "google.cloud.metastore.v1alpha.DataprocMetastoreFederation": { - "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": { - "CreateFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListFederations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_descriptor_config.php b/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_descriptor_config.php deleted file mode 100644 index be13a20238af..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_descriptor_config.php +++ /dev/null @@ -1,195 +0,0 @@ - [ - 'google.cloud.metastore.v1alpha.DataprocMetastoreFederation' => [ - 'CreateFederation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\Federation', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteFederation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateFederation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1alpha\Federation', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1alpha\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'federation.name', - 'fieldAccessors' => [ - 'getFederation', - 'getName', - ], - ], - ], - ], - 'GetFederation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1alpha\Federation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListFederations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFederations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1alpha\ListFederationsResponse', - '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' => [ - 'federation' => 'projects/{project}/locations/{location}/federations/{federation}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_rest_client_config.php b/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_rest_client_config.php deleted file mode 100644 index 6265cadd23a0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_federation_rest_client_config.php +++ /dev/null @@ -1,263 +0,0 @@ - [ - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.metastore.v1alpha.DataprocMetastoreFederation' => [ - 'CreateFederation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=projects/*/locations/*}/federations', - 'body' => 'federation', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'federation_id', - ], - ], - 'DeleteFederation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/federations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFederation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/federations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListFederations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=projects/*/locations/*}/federations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateFederation' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{federation.name=projects/*/locations/*/federations/*}', - 'body' => 'federation', - 'placeholders' => [ - 'federation.name' => [ - 'getters' => [ - 'getFederation', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/backups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/federations/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/backups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/federations/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/backups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/federations/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_rest_client_config.php b/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_rest_client_config.php deleted file mode 100644 index cc57a96689a2..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/src/V1alpha/resources/dataproc_metastore_rest_client_config.php +++ /dev/null @@ -1,436 +0,0 @@ - [ - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.metastore.v1alpha.DataprocMetastore' => [ - 'AlterMetadataResourceLocation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{service=projects/*/locations/*/services/*}:alterLocation', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'CreateBackup' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=projects/*/locations/*/services/*}/backups', - 'body' => 'backup', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'backup_id', - ], - ], - 'CreateMetadataImport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=projects/*/locations/*/services/*}/metadataImports', - 'body' => 'metadata_import', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'metadata_import_id', - ], - ], - 'CreateService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{parent=projects/*/locations/*}/services', - 'body' => 'service', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'service_id', - ], - ], - 'DeleteBackup' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/services/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteService' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/services/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ExportMetadata' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{service=projects/*/locations/*/services/*}:exportMetadata', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'GetBackup' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/services/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadataImport' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/services/*/metadataImports/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetService' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/services/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListBackups' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=projects/*/locations/*/services/*}/backups', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMetadataImports' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=projects/*/locations/*/services/*}/metadataImports', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListServices' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{parent=projects/*/locations/*}/services', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'MoveTableToDatabase' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{service=projects/*/locations/*/services/*}:moveTableToDatabase', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'QueryMetadata' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{service=projects/*/locations/*/services/*}:queryMetadata', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'RemoveIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/**}:removeIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'RestoreService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{service=projects/*/locations/*/services/*}:restore', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'UpdateMetadataImport' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{metadata_import.name=projects/*/locations/*/services/*/metadataImports/*}', - 'body' => 'metadata_import', - 'placeholders' => [ - 'metadata_import.name' => [ - 'getters' => [ - 'getMetadataImport', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateService' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1alpha/{service.name=projects/*/locations/*/services/*}', - 'body' => 'service', - 'placeholders' => [ - 'service.name' => [ - 'getters' => [ - 'getService', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/backups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/federations/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/backups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/federations/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/backups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{resource=projects/*/locations/*/federations/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1alpha/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DataprocMetastore/v1alpha/tests/Unit/V1alpha/Client/DataprocMetastoreClientTest.php b/owl-bot-staging/DataprocMetastore/v1alpha/tests/Unit/V1alpha/Client/DataprocMetastoreClientTest.php deleted file mode 100644 index eee465f339d2..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/tests/Unit/V1alpha/Client/DataprocMetastoreClientTest.php +++ /dev/null @@ -1,2586 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataprocMetastoreClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataprocMetastoreClient($options); - } - - /** @test */ - public function alterMetadataResourceLocationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/alterMetadataResourceLocationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new AlterMetadataResourceLocationResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/alterMetadataResourceLocationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = 'resourceName979421212'; - $locationUri = 'locationUri-57953822'; - $request = (new AlterMetadataResourceLocationRequest()) - ->setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - $response = $gapicClient->alterMetadataResourceLocation($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.metastore.v1alpha.DataprocMetastore/AlterMetadataResourceLocation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getResourceName(); - $this->assertProtobufEquals($resourceName, $actualValue); - $actualValue = $actualApiRequestObject->getLocationUri(); - $this->assertProtobufEquals($locationUri, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/alterMetadataResourceLocationTest'); - $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 alterMetadataResourceLocationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/alterMetadataResourceLocationTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = 'resourceName979421212'; - $locationUri = 'locationUri-57953822'; - $request = (new AlterMetadataResourceLocationRequest()) - ->setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - $response = $gapicClient->alterMetadataResourceLocation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/alterMetadataResourceLocationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new Backup(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $backupId = 'backupId1355353272'; - $backup = new Backup(); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - $response = $gapicClient->createBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastore/CreateBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getBackupId(); - $this->assertProtobufEquals($backupId, $actualValue); - $actualValue = $actualApiRequestObject->getBackup(); - $this->assertProtobufEquals($backup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $backupId = 'backupId1355353272'; - $backup = new Backup(); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - $response = $gapicClient->createBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createMetadataImportTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createMetadataImportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new MetadataImport(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createMetadataImportTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $metadataImportId = 'metadataImportId-476076315'; - $metadataImport = new MetadataImport(); - $request = (new CreateMetadataImportRequest()) - ->setParent($formattedParent) - ->setMetadataImportId($metadataImportId) - ->setMetadataImport($metadataImport); - $response = $gapicClient->createMetadataImport($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.metastore.v1alpha.DataprocMetastore/CreateMetadataImport', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataImportId(); - $this->assertProtobufEquals($metadataImportId, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataImport(); - $this->assertProtobufEquals($metadataImport, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMetadataImportTest'); - $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 createMetadataImportExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createMetadataImportTest'); - $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->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $metadataImportId = 'metadataImportId-476076315'; - $metadataImport = new MetadataImport(); - $request = (new CreateMetadataImportRequest()) - ->setParent($formattedParent) - ->setMetadataImportId($metadataImportId) - ->setMetadataImport($metadataImport); - $response = $gapicClient->createMetadataImport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMetadataImportTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $network = 'network1843485230'; - $endpointUri = 'endpointUri-850313278'; - $port = 3446913; - $stateMessage = 'stateMessage29641305'; - $artifactGcsUri = 'artifactGcsUri1337121495'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name); - $expectedResponse->setNetwork($network); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setPort($port); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setArtifactGcsUri($artifactGcsUri); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $serviceId = 'serviceId-1724763419'; - $service = new Service(); - $request = (new CreateServiceRequest()) - ->setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - $response = $gapicClient->createService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastore/CreateService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getServiceId(); - $this->assertProtobufEquals($serviceId, $actualValue); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($service, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $serviceId = 'serviceId-1724763419'; - $service = new Service(); - $request = (new CreateServiceRequest()) - ->setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - $response = $gapicClient->createService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastore/DeleteBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new DeleteServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastore/DeleteService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new DeleteServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function exportMetadataTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportMetadataTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $destinationGcsUri = 'destinationGcsUri1386421523'; - $expectedResponse = new MetadataExport(); - $expectedResponse->setDestinationGcsUri($destinationGcsUri); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/exportMetadataTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ExportMetadataRequest()) - ->setService($formattedService); - $response = $gapicClient->exportMetadata($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.metastore.v1alpha.DataprocMetastore/ExportMetadata', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportMetadataTest'); - $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 exportMetadataExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportMetadataTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ExportMetadataRequest()) - ->setService($formattedService); - $response = $gapicClient->exportMetadata($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportMetadataTest'); - 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 getBackupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $expectedResponse = new Backup(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->getBackup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastore/GetBackup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - try { - $gapicClient->getBackup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataImportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $expectedResponse = new MetadataImport(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataImportName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[METADATA_IMPORT]'); - $request = (new GetMetadataImportRequest()) - ->setName($formattedName); - $response = $gapicClient->getMetadataImport($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.metastore.v1alpha.DataprocMetastore/GetMetadataImport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataImportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->metadataImportName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[METADATA_IMPORT]'); - $request = (new GetMetadataImportRequest()) - ->setName($formattedName); - try { - $gapicClient->getMetadataImport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $network = 'network1843485230'; - $endpointUri = 'endpointUri-850313278'; - $port = 3446913; - $stateMessage = 'stateMessage29641305'; - $artifactGcsUri = 'artifactGcsUri1337121495'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name2); - $expectedResponse->setNetwork($network); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setPort($port); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setArtifactGcsUri($artifactGcsUri); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new GetServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->getService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastore/GetService', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new GetServiceRequest()) - ->setName($formattedName); - try { - $gapicClient->getService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $backupsElement = new Backup(); - $backups = [ - $backupsElement, - ]; - $expectedResponse = new ListBackupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBackups($backups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBackups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBackups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastore/ListBackups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBackups($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMetadataImportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $metadataImportsElement = new MetadataImport(); - $metadataImports = [ - $metadataImportsElement, - ]; - $expectedResponse = new ListMetadataImportsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMetadataImports($metadataImports); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListMetadataImportsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMetadataImports($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMetadataImports()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastore/ListMetadataImports', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMetadataImportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListMetadataImportsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMetadataImports($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $servicesElement = new Service(); - $services = [ - $servicesElement, - ]; - $expectedResponse = new ListServicesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setServices($services); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListServicesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listServices($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getServices()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastore/ListServices', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListServicesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listServices($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveTableToDatabaseTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveTableToDatabaseTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new MoveTableToDatabaseResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/moveTableToDatabaseTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $tableName = 'tableName-1504630692'; - $dbName = 'dbName1452819884'; - $destinationDbName = 'destinationDbName-1322761605'; - $request = (new MoveTableToDatabaseRequest()) - ->setService($formattedService) - ->setTableName($tableName) - ->setDbName($dbName) - ->setDestinationDbName($destinationDbName); - $response = $gapicClient->moveTableToDatabase($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.metastore.v1alpha.DataprocMetastore/MoveTableToDatabase', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getTableName(); - $this->assertProtobufEquals($tableName, $actualValue); - $actualValue = $actualApiRequestObject->getDbName(); - $this->assertProtobufEquals($dbName, $actualValue); - $actualValue = $actualApiRequestObject->getDestinationDbName(); - $this->assertProtobufEquals($destinationDbName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveTableToDatabaseTest'); - $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 moveTableToDatabaseExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveTableToDatabaseTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $tableName = 'tableName-1504630692'; - $dbName = 'dbName1452819884'; - $destinationDbName = 'destinationDbName-1322761605'; - $request = (new MoveTableToDatabaseRequest()) - ->setService($formattedService) - ->setTableName($tableName) - ->setDbName($dbName) - ->setDestinationDbName($destinationDbName); - $response = $gapicClient->moveTableToDatabase($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveTableToDatabaseTest'); - 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 queryMetadataTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/queryMetadataTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $resultManifestUri = 'resultManifestUri-1050940354'; - $expectedResponse = new QueryMetadataResponse(); - $expectedResponse->setResultManifestUri($resultManifestUri); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/queryMetadataTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $query = 'query107944136'; - $request = (new QueryMetadataRequest()) - ->setService($formattedService) - ->setQuery($query); - $response = $gapicClient->queryMetadata($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.metastore.v1alpha.DataprocMetastore/QueryMetadata', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/queryMetadataTest'); - $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 queryMetadataExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/queryMetadataTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $query = 'query107944136'; - $request = (new QueryMetadataRequest()) - ->setService($formattedService) - ->setQuery($query); - $response = $gapicClient->queryMetadata($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/queryMetadataTest'); - 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 removeIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $success = false; - $expectedResponse = new RemoveIamPolicyResponse(); - $expectedResponse->setSuccess($success); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new RemoveIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->removeIamPolicy($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.metastore.v1alpha.DataprocMetastore/RemoveIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 RemoveIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->removeIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function restoreServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $backup2 = 'backup22121930997'; - $details = 'details1557721666'; - $expectedResponse = new Restore(); - $expectedResponse->setBackup($backup2); - $expectedResponse->setDetails($details); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/restoreServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new RestoreServiceRequest()) - ->setService($formattedService) - ->setBackup($formattedBackup); - $response = $gapicClient->restoreService($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.metastore.v1alpha.DataprocMetastore/RestoreService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getBackup(); - $this->assertProtobufEquals($formattedBackup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreServiceTest'); - $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 restoreServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreServiceTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new RestoreServiceRequest()) - ->setService($formattedService) - ->setBackup($formattedBackup); - $response = $gapicClient->restoreService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreServiceTest'); - 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 updateMetadataImportTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateMetadataImportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new MetadataImport(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateMetadataImportTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $metadataImport = new MetadataImport(); - $request = (new UpdateMetadataImportRequest()) - ->setUpdateMask($updateMask) - ->setMetadataImport($metadataImport); - $response = $gapicClient->updateMetadataImport($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.metastore.v1alpha.DataprocMetastore/UpdateMetadataImport', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataImport(); - $this->assertProtobufEquals($metadataImport, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMetadataImportTest'); - $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 updateMetadataImportExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateMetadataImportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $metadataImport = new MetadataImport(); - $request = (new UpdateMetadataImportRequest()) - ->setUpdateMask($updateMask) - ->setMetadataImport($metadataImport); - $response = $gapicClient->updateMetadataImport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMetadataImportTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $network = 'network1843485230'; - $endpointUri = 'endpointUri-850313278'; - $port = 3446913; - $stateMessage = 'stateMessage29641305'; - $artifactGcsUri = 'artifactGcsUri1337121495'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name); - $expectedResponse->setNetwork($network); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setPort($port); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setArtifactGcsUri($artifactGcsUri); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $service = new Service(); - $request = (new UpdateServiceRequest()) - ->setUpdateMask($updateMask) - ->setService($service); - $response = $gapicClient->updateService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastore/UpdateService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($service, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $service = new Service(); - $request = (new UpdateServiceRequest()) - ->setUpdateMask($updateMask) - ->setService($service); - $response = $gapicClient->updateService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function 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 alterMetadataResourceLocationAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/alterMetadataResourceLocationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new AlterMetadataResourceLocationResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/alterMetadataResourceLocationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = 'resourceName979421212'; - $locationUri = 'locationUri-57953822'; - $request = (new AlterMetadataResourceLocationRequest()) - ->setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - $response = $gapicClient->alterMetadataResourceLocationAsync($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.metastore.v1alpha.DataprocMetastore/AlterMetadataResourceLocation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getResourceName(); - $this->assertProtobufEquals($resourceName, $actualValue); - $actualValue = $actualApiRequestObject->getLocationUri(); - $this->assertProtobufEquals($locationUri, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/alterMetadataResourceLocationTest'); - $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/DataprocMetastore/v1alpha/tests/Unit/V1alpha/Client/DataprocMetastoreFederationClientTest.php b/owl-bot-staging/DataprocMetastore/v1alpha/tests/Unit/V1alpha/Client/DataprocMetastoreFederationClientTest.php deleted file mode 100644 index 686a8a1ee8ee..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1alpha/tests/Unit/V1alpha/Client/DataprocMetastoreFederationClientTest.php +++ /dev/null @@ -1,1039 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataprocMetastoreFederationClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataprocMetastoreFederationClient($options); - } - - /** @test */ - public function createFederationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $federationId = 'federationId-1338699881'; - $federation = new Federation(); - $request = (new CreateFederationRequest()) - ->setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - $response = $gapicClient->createFederation($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.metastore.v1alpha.DataprocMetastoreFederation/CreateFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFederationId(); - $this->assertProtobufEquals($federationId, $actualValue); - $actualValue = $actualApiRequestObject->getFederation(); - $this->assertProtobufEquals($federation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFederationTest'); - $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 createFederationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFederationTest'); - $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]'); - $federationId = 'federationId-1338699881'; - $federation = new Federation(); - $request = (new CreateFederationRequest()) - ->setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - $response = $gapicClient->createFederation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFederationTest'); - 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 deleteFederationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new DeleteFederationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFederation($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.metastore.v1alpha.DataprocMetastoreFederation/DeleteFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFederationTest'); - $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 deleteFederationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFederationTest'); - $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->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new DeleteFederationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFederation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFederationTest'); - 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 getFederationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name2); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new GetFederationRequest()) - ->setName($formattedName); - $response = $gapicClient->getFederation($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.metastore.v1alpha.DataprocMetastoreFederation/GetFederation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFederationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new GetFederationRequest()) - ->setName($formattedName); - try { - $gapicClient->getFederation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFederationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $federationsElement = new Federation(); - $federations = [ - $federationsElement, - ]; - $expectedResponse = new ListFederationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFederations($federations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListFederationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFederations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFederations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1alpha.DataprocMetastoreFederation/ListFederations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFederationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListFederationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFederations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFederationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $federation = new Federation(); - $request = (new UpdateFederationRequest()) - ->setUpdateMask($updateMask) - ->setFederation($federation); - $response = $gapicClient->updateFederation($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.metastore.v1alpha.DataprocMetastoreFederation/UpdateFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getFederation(); - $this->assertProtobufEquals($federation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateFederationTest'); - $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 updateFederationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $federation = new Federation(); - $request = (new UpdateFederationRequest()) - ->setUpdateMask($updateMask) - ->setFederation($federation); - $response = $gapicClient->updateFederation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateFederationTest'); - 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 createFederationAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $federationId = 'federationId-1338699881'; - $federation = new Federation(); - $request = (new CreateFederationRequest()) - ->setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - $response = $gapicClient->createFederationAsync($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.metastore.v1alpha.DataprocMetastoreFederation/CreateFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFederationId(); - $this->assertProtobufEquals($federationId, $actualValue); - $actualValue = $actualApiRequestObject->getFederation(); - $this->assertProtobufEquals($federation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFederationTest'); - $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/DataprocMetastore/v1beta/proto/src/GPBMetadata/Google/Cloud/Metastore/V1Beta/Metastore.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/GPBMetadata/Google/Cloud/Metastore/V1Beta/Metastore.php deleted file mode 100644 index fcb0d46fe424f218e3de0dc671cbea25468717d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17717 zcmcg!OKclSdLEM2t0YlUNwzuic!qAztRHKWW6jG$+wrtSO6HmpH6-O3FN7tUWJ&Ib z?B;Yg?NJN`*+qaL$sv#3MHWF21ewDoL6S>ONft=9u)&JN3{HmI_?{*(`(Z%!{F^Hu(q?K;$r=3S6-L*`|Y?|$Kqqnm| ztaQ`tboDl|GU;@_oZcwc(uI7nb^%Cjvu8C)F1>4-yKRzfw#{BE+aZo-JEldlk8d>K zv-cpwI3r|e9b$L2CP}YtF0aFomgZ>NYmCYE3T3iQpE4%f4{j{O=UWIh+nQ~s-7nBn zl!kxZUZbry)3&2I@ZX!dUDplW(Y3bz3n0;*^p4iH2~Zy%yVEn8j&2%hN>DbM4}chYiMn^Y;FknN)35X;co+j(L)ExikpZo<%9ZkIT&D(REUSH!fGoxYR4 z%-5L99a`j_v}5&%fA)0RB2LdTZn1S!1_$n^?LJCVyZW|j7$((%Y1p}(CzHqGD8iMt zP7G%_npK^&Tg&8;_E<_+R zmy`*-uGxFXpsnd(?~c~#9)tE1OY4HjLu_enze~3B+P=B-gpeba%dGqQ&*{RJ)mFQt0eoN-^2 z+@+iu*N7=qf>QOm5Vr+YVlb*@G}_i0q;028r4s`PA#{-`F`|OuSo`<`G-eRziD~Vn z#+Ve}04cs!)97`YsCo_&O9#`kGw>+8!AIj)(G)RST@$Rn-m~=7xYR)cPoYy?({fT1 z@Mr{oghptrCMg7eCYP>BUG%r*j9g@u(s1o8qG`qfHqW-TU6Pvg<~omNHOtX=w5C(v zZQ5)pQ{LAfqEn7etkg7{`}!li594_&}<4>&>_1#Ql^r?D%xPEu~1T)-~=Tu zA>7d@D?@_>S%0D%E%QlghVgqlVrlCh;U|m^&!R+6Z>45EVO!`mcf}pe08Mou6x2aA z`eWVMPtCEJK8%`4tbE<&pb7?jH>zmHB5k7Cq~3g_83t*m=7Di?>AeWXa%U@?dW92n zw<)7JVl=J&E=@+#H5b@=vk`0yE*_X-h`)jG6eZl+%yYsK z`d7YCDlj&qcmj2n)2^0K9637 z#jDGdQ|;kqSS=vI`orqSCEzj%DQS~VRhf{<5zax{_<7QF z?CewV=^)!So4jz#K9wI2vNlh4Fiw0rSjK49hmNge2B7FEM?5)pxmi*o`xpXmN zPRfqC*azqo{fx7L+Tz03>g(t=sm`#WPy)q5bBB|}+i3C;w3T&prw-K-bL`2bb8;l)+%p(-0{QL2pMF(yzY zvj<%5!cN~u3w_lTu++nGe$hl{`g080cs^+3Q3XJlC0`n|`uk}1kd7{(^N=n!%f*da zeX~-ol~>Ar;&bg@rMOyy$U2TrtyMNxAUZ!m$J?q*=+x8sNR!5b^ghI<%p9qC-(iV(K{w)FQe$f2RKio4fPWfhGEiN#~u zrt*_GnhsWJ>u910I8Cnuwh!8%J``n&0R~i5M$N<2d33tjgM{3vTP8F>c0G`27Jm|h zB1aJ5y9n96hER!!byrvibrD@SqJyfs1kgf;+bCv8OhGvBi$OBSvluk73{xb&R$&VH z+!lN6)($06A1o)))Z=c`&4J4A$Iwi;mMkGe^Zkx#bu@=bkzBeNVKpHhnUcA?%IK9l zXu|yiFQPN0@>+ehTv=CZhpVenVNG43)fIT}x2ok0@ZLX;p+#Ap9PUA&iDCr}O@(#x zIqfs$o=1gv$+WJ6?9jzP(c!fWtzM^_ z8fE2EE`n{43#3@yb>x8qv&#Nx!#pHw0i4oYOUtW?Fa*IJbXW+2=DNwHNU9rX9P%W` zIw*cH0Lhxf11R#6T#D+YLW=QVfyFQ4UKLLDgd0B9vu=%6uF1&aA~b_v_3l2f4lbUG zVTjQZX5iXBhh{he3k4S6vlRDXI(iM@2ii9B%HiDz8}QFu?UH7O%?iOXrrh*Ir4I*h zIFwpM%LWZeWou)DcWkUHTUjX-^3avV16^5ywsWg$u|)f|+^@%;slO6K+m|{=H7`M} z;_YqGx*Vg4VP_sxyWGWq1D%yVsO!w>4wexbm(P?xOn6SoeH|;%*?`~b2J4yJtWCFt z;dTjduXiAnJAfr|W9CiIQ1;K8n@AGZ{;8P^ZvR}8jA#FN3t?$;bsA|nLczW2*rt|H zwoYI$o{6vyAA0ANLWx<-@-z!oato9nokF9_T63@0eQ_wNKNt-d_3p}G#62_$Aml6d zZ$bghie4L1>|>p^JRDMvN+hDY=Xod;$Z5`)0C)oPyp5G8YK%-m$QKD^MVl~=@Xyp||lHi^jbrK<`7XQl>k)S|C5nE{q3QKPO{G{_y}VI+2<6^)p_~t3lDLAV zbpt{%#mH?qcoqd|6mA`0k|_!fRbT+YJ>{XL^r*nJSgjPl_loivn(~jOnYFk9Kp#Y| zdbRlNFqAigCJUd|Dr&vDt}>AT+v6XZORd9U{?Dl~L0s$^aGnMy4S@B*f+6-P_tD%Mk;;;~dOv`d2~9dOF*lByvQHhZ zmSf6aK?6zcGgyJTPIWirR9WU!SMcDq>`Qg7AH>kPzN;5bw&v@9dG$MN|0^2R;e75P zN`cP>RVqE@PQdkqJ_qj&lz#`2xeNB^fASrJN{W^+zLp{6nfK95Xn^q0K|uws)CfoY zOAwShYJWkG=dXR%&i(e}YxlYDpTywI1H6h?e6BY^*%L@nwCsT#bpc1#j4#!To}&4{ zVuka(kH$o~3Bi!!gi$~+mv+efR7A7jE1XpN$a?`Fky?r@4wb)#vpVh@L4GIFJJ&(T z1#)fy%X_E6R1;zG1kLlHA6)%0wQ+RJ|IZjY%{yf2SyJ(7bSB*T@0e{UY9uC)KlHLP zzsNIi@eo>%=PgI{<|l=L!c8=lT9o0TqhPUqokwaHItX?$GPB+YFpy&D%KDKmxj!NdWZa`JlL#T(M zT@9G%g5B#<6dHJjZo9c>j6Ck;BcRAI@8AVEamcuM3oQgrX2o*~l8X6wFAovDxx94HsH&ZY^s zm-nUTpJUiQyHqXurwNvu5-4_+p1WxFzR`SSnTFY;;D78g(|Sy~iq0P5DDnpgX7`#+ zxQ50!jw=K$eB2|}zT5*j_X+$DqY>!-tbJeOpuCGtho%t=g5yYVIZ$dHE_~@b;C<`{ z9E)Shug1_+!Lm#%&v5}<^dJIm22qDRe(H?i!f!xi0FdTf`N4a{iL&xX^i&6SsYd&_ znkjew1?UU<0Knbbq|UBlx_v;L0U{0l)Q!w>oDM?4Eiu9kFLC8OI@folT;;}}97EP$i#D|tiZ!Ut?~mAhZ5?Aq_4l~MydVx8XAtg8nY^4D|#a==kK z3yhZQJuhRp?}m29&5O$K#=cZ@-UaCF^Dj8NbkeH7QeWkozh?7WW%7S08=2&{l%e-1 zC*cqLJy1aavWQecVDx}0_`Q>=U|!1JjLdrK>7q5Km zk4}Dp2HT>rG+BsOe-oDwX>f%&O7+hHbrvI{*WZKHs@^%Sz^sNh*DE53b%OBEwb0)( zsBI}Pzyfk%ED8SA8vKVBq``9`Rb30mLb6nGy(Tnvz?j&_=nm`f zzu|&!u*Jtwr`*Be1M2O!f_mdTh7Oc0ORV{Vq6%7nIh8#pa+}`5%y7^v6~4 zLQ|CN!QlhS{sWL5Y6d|&w9sFvNtrM?#Kg4lk#ftmk0G=G1u(s6MaBPV3|>?4ut$6& zB9{8bO2G%IWI09!(5A=^_k-EtHqNLmc;Vs}_;Hqc{3BgepYeVCu0^X1C*h6H( z1uHCql$15s^B^p+zBoFNX0Kj7$XP*bh(?qDg|a(Ex47N~)SKQrUxr(o^uqk}`(t+FIIXM4-Z!)J z-aTu}LRa_|Vh~$#NsDjp@a`7jE!%WW)ztZ>*KQM=SIw@a>BKJZd}W<~xL)U_%4+>G zxH_h1tE9+xOtYgCLDfyKC3K0aIId|EVf$tip5qsCo3!XunrRgLNf0uWE^#bHCHzXY z^Z=||imNnM{CJHrjn|-W{dkSXH%sumh>)r)j>EHoWfm6gA|8I0*VHwYcU+iD<*#av ztQnfCDZ2IvEOUu(E4o7<&VJjrXQ(tko;s`>Dw(~`2QjJbRm%iemiQ>aDn$xVYOESA zu?TP3okY-^@{IM*5pxioT; zgUJ!IW%T*iOrv9ahM^gq#<~>}^bl|{7C;T8uI28GJ~eaop?jb>&yL_**Pw@7rE3lL z^+`K_R|_dBwpxsl%h1-dj6;-B*U+~Y(Ve6AGrkyj7JMZrFeNAiN|2ig11pvWVnGQO z=s@mLVxUb~BsW7Eg$Cyn26o7maA-ap8m2y>`IXRIkE<@2tm>iBh0w@XDQIwk(7J|$ zk=(JtAmc7nFSLl3!z|pWM1ev6=W&E$)xu}cF)D;vj^}14N~u?38o!MuRhxh;%hWeJ z1|yRTxk8Xv5C!rou-a3v6!r2fkkHU8HJX=%#&xAhbSHa^Pr)>|qiF`0u@GloSo8fP z!?kztS#*4x*bZn-HXSdd(LlJVsLzPek{KbK?6^PE{n2MC1u>ZDJHe#q(MgDGnLuyZ zv$gE;Xyz0yqcl}ll058$+luZ5wVWu9-QjW?nm%Az3C}dXoAjID zF4iS^^WjESDz7fDN|nrO_#`?}u1R8j_2Ei}!w8Lw<@)MlDKkb#Hmj9jBt`#Kq&3O6 zJBBAvTB_C7YngQM>0e?8U11dt!G=zE3UGiBV$R_E&=yaL>N>)1_|y}0Qw?@0VK;j0 z32nBogK7Mym;Zx9nf_HmW{D=ko9GnFMRs?r0QOT0OG8-DAGW{QrT} z52-}FdPwlJK|XfnM3z(#Cm_K|&j6WJx0I$%AobMjME(&vyFwD+McBQYBuFVlZY0X) ze}%=BeL0S^io*V&c#&8Ltc+4-$VL%IFKxyrOIy87(#rzMjqD_CR z*uSE97omHa&$K~%4?D9AN;lZBMz8UpbYmvwyJ)6DbmEfz*&e;Dl=umB81&r2Hway* zz?TT3ZavvUb~o!cX;_$Llc?P(T#Ye+tOtfNJYUgv!2rReMQzO3m9=zyH}>;!W?{M8uB z^tU4(24ufOl>5bK!HE-Lfqe($zvEtrOM6ahLU;%};B>@XDRJoM>`U=dP>~yPJ0~8Y zF?}q={81`cOlSoD8gS`v>Y=#wJB*0S_x}Sf(+NPrb1PLGAC9$!yNuAWSz&aR>_O&l zI5G4K$WUbZ9Y#dv3qa<5bguuX?tdEM!;>e`EpstLM#mwy_Cm~dqf3;K?9sXGH?gqg zx|UNEgy+wn_YDe)=WYeJI`fvUxNXz!mOkasWjN49O*6O&O4$LbS*5onRqn%kflt&$ za5(Ik@gy6;9ByqJu&+M8y;9AAE46Z+VsE5$M D8bD+< diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AlterMetadataResourceLocationRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AlterMetadataResourceLocationRequest.php deleted file mode 100644 index fc849cb388b1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AlterMetadataResourceLocationRequest.php +++ /dev/null @@ -1,164 +0,0 @@ -google.cloud.metastore.v1beta.AlterMetadataResourceLocationRequest - */ -class AlterMetadataResourceLocationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * - * Generated from protobuf field string resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $resource_name = ''; - /** - * Required. The new location URI for the metadata resource. - * - * Generated from protobuf field string location_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $location_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $resource_name - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * @type string $location_uri - * Required. The new location URI for the metadata resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * - * Generated from protobuf field string resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * Required. The relative metadata resource name in the following format. - * `databases/{database_id}` - * or - * `databases/{database_id}/tables/{table_id}` - * or - * `databases/{database_id}/tables/{table_id}/partitions/{partition_id}` - * - * Generated from protobuf field string resource_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * Required. The new location URI for the metadata resource. - * - * Generated from protobuf field string location_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLocationUri() - { - return $this->location_uri; - } - - /** - * Required. The new location URI for the metadata resource. - * - * Generated from protobuf field string location_uri = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLocationUri($var) - { - GPBUtil::checkString($var, True); - $this->location_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AlterMetadataResourceLocationResponse.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AlterMetadataResourceLocationResponse.php deleted file mode 100644 index 03eec5061def..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AlterMetadataResourceLocationResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.cloud.metastore.v1beta.AlterMetadataResourceLocationResponse - */ -class AlterMetadataResourceLocationResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AuxiliaryVersionConfig.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AuxiliaryVersionConfig.php deleted file mode 100644 index 968460eae50e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/AuxiliaryVersionConfig.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.metastore.v1beta.AuxiliaryVersionConfig - */ -class AuxiliaryVersionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * - * Generated from protobuf field map config_overrides = 2; - */ - private $config_overrides; - /** - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $network_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * @type array|\Google\Protobuf\Internal\MapField $config_overrides - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * @type \Google\Cloud\Metastore\V1beta\NetworkConfig $network_config - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The Hive metastore version of the auxiliary service. It must be less - * than the primary Hive metastore service's version. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * - * Generated from protobuf field map config_overrides = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getConfigOverrides() - { - return $this->config_overrides; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * auxiliary Hive metastore (configured in `hive-site.xml`) in addition to - * the primary version's overrides. If keys are present in both the auxiliary - * version's overrides and the primary version's overrides, the value from - * the auxiliary version's overrides takes precedence. - * - * Generated from protobuf field map config_overrides = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setConfigOverrides($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->config_overrides = $arr; - - return $this; - } - - /** - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Metastore\V1beta\NetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * Output only. The network configuration contains the endpoint URI(s) of the - * auxiliary Hive metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.NetworkConfig network_config = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Metastore\V1beta\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/BackendMetastore.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/BackendMetastore.php deleted file mode 100644 index 6b4bff0e5194..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/BackendMetastore.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.metastore.v1beta.BackendMetastore - */ -class BackendMetastore extends \Google\Protobuf\Internal\Message -{ - /** - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of the backend metastore. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.BackendMetastore.MetastoreType metastore_type = 2; - */ - protected $metastore_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * @type int $metastore_type - * The type of the backend metastore. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The relative resource name of the metastore that is being federated. - * The formats of the relative resource names for the currently supported - * metastores are listed below: - * * BigQuery - * * `projects/{project_id}` - * * Dataproc Metastore - * * `projects/{project_id}/locations/{location}/services/{service_id}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of the backend metastore. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.BackendMetastore.MetastoreType metastore_type = 2; - * @return int - */ - public function getMetastoreType() - { - return $this->metastore_type; - } - - /** - * The type of the backend metastore. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.BackendMetastore.MetastoreType metastore_type = 2; - * @param int $var - * @return $this - */ - public function setMetastoreType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\BackendMetastore\MetastoreType::class); - $this->metastore_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/BackendMetastore/MetastoreType.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/BackendMetastore/MetastoreType.php deleted file mode 100644 index 4f52e47ec7df..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/BackendMetastore/MetastoreType.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.metastore.v1beta.BackendMetastore.MetastoreType - */ -class MetastoreType -{ - /** - * The metastore type is not set. - * - * Generated from protobuf enum METASTORE_TYPE_UNSPECIFIED = 0; - */ - const METASTORE_TYPE_UNSPECIFIED = 0; - /** - * The backend metastore is Dataplex. - * - * Generated from protobuf enum DATAPLEX = 1; - */ - const DATAPLEX = 1; - /** - * The backend metastore is BigQuery. - * - * Generated from protobuf enum BIGQUERY = 2; - */ - const BIGQUERY = 2; - /** - * The backend metastore is Dataproc Metastore. - * - * Generated from protobuf enum DATAPROC_METASTORE = 3; - */ - const DATAPROC_METASTORE = 3; - - private static $valueToName = [ - self::METASTORE_TYPE_UNSPECIFIED => 'METASTORE_TYPE_UNSPECIFIED', - self::DATAPLEX => 'DATAPLEX', - self::BIGQUERY => 'BIGQUERY', - self::DATAPROC_METASTORE => 'DATAPROC_METASTORE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetastoreType::class, \Google\Cloud\Metastore\V1beta\BackendMetastore_MetastoreType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Backup.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Backup.php deleted file mode 100644 index 977bf921c001..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Backup.php +++ /dev/null @@ -1,305 +0,0 @@ -google.cloud.metastore.v1beta.Backup - */ -class Backup extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. The time when the backup was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the backup finished creating. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The revision of the service at the time of backup. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $service_revision = null; - /** - * The description of the backup. - * - * Generated from protobuf field string description = 6; - */ - protected $description = ''; - /** - * Output only. Services that are restoring from the backup. - * - * Generated from protobuf field repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $restoring_services; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the backup was started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the backup finished creating. - * @type int $state - * Output only. The current state of the backup. - * @type \Google\Cloud\Metastore\V1beta\Service $service_revision - * Output only. The revision of the service at the time of backup. - * @type string $description - * The description of the backup. - * @type array|\Google\Protobuf\Internal\RepeatedField $restoring_services - * Output only. Services that are restoring from the backup. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the backup, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}` - * - * 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 when the backup was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the backup was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the backup finished creating. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time when the backup finished creating. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the backup. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Backup.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\Backup\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The revision of the service at the time of backup. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Metastore\V1beta\Service|null - */ - public function getServiceRevision() - { - return $this->service_revision; - } - - public function hasServiceRevision() - { - return isset($this->service_revision); - } - - public function clearServiceRevision() - { - unset($this->service_revision); - } - - /** - * Output only. The revision of the service at the time of backup. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service service_revision = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Metastore\V1beta\Service $var - * @return $this - */ - public function setServiceRevision($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\Service::class); - $this->service_revision = $var; - - return $this; - } - - /** - * The description of the backup. - * - * Generated from protobuf field string description = 6; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the backup. - * - * Generated from protobuf field string description = 6; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. Services that are restoring from the backup. - * - * Generated from protobuf field repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestoringServices() - { - return $this->restoring_services; - } - - /** - * Output only. Services that are restoring from the backup. - * - * Generated from protobuf field repeated string restoring_services = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestoringServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->restoring_services = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Backup/State.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Backup/State.php deleted file mode 100644 index b66b7d93284c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Backup/State.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.metastore.v1beta.Backup.State - */ -class State -{ - /** - * The state of the backup is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The backup is being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The backup is being deleted. - * - * Generated from protobuf enum DELETING = 2; - */ - const DELETING = 2; - /** - * The backup is active and ready to use. - * - * Generated from protobuf enum ACTIVE = 3; - */ - const ACTIVE = 3; - /** - * The backup failed. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - /** - * The backup is being restored. - * - * Generated from protobuf enum RESTORING = 5; - */ - const RESTORING = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::DELETING => 'DELETING', - self::ACTIVE => 'ACTIVE', - self::FAILED => 'FAILED', - self::RESTORING => 'RESTORING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Metastore\V1beta\Backup_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateBackupRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateBackupRequest.php deleted file mode 100644 index 4aa46ee4e92d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateBackupRequest.php +++ /dev/null @@ -1,271 +0,0 @@ -google.cloud.metastore.v1beta.CreateBackupRequest - */ -class CreateBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup_id = ''; - /** - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $backup = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the service in which to create a - * backup of the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1beta\Backup $backup Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * @param string $backupId Required. The ID of the backup, which is used as the final component of the - * backup's name. - * - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * @return \Google\Cloud\Metastore\V1beta\CreateBackupRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1beta\Backup $backup, string $backupId): self - { - return (new self()) - ->setParent($parent) - ->setBackup($backup) - ->setBackupId($backupId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type string $backup_id - * Required. The ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * @type \Google\Cloud\Metastore\V1beta\Backup $backup - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the service in which to create a - * backup of the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBackupId() - { - return $this->backup_id; - } - - /** - * Required. The ID of the backup, which is used as the final component of the - * backup's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBackupId($var) - { - GPBUtil::checkString($var, True); - $this->backup_id = $var; - - return $this; - } - - /** - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1beta\Backup|null - */ - public function getBackup() - { - return $this->backup; - } - - public function hasBackup() - { - return isset($this->backup); - } - - public function clearBackup() - { - unset($this->backup); - } - - /** - * Required. The backup to create. The `name` field is ignored. The ID of the - * created backup must be provided in the request's `backup_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Backup backup = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1beta\Backup $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\Backup::class); - $this->backup = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateFederationRequest.php deleted file mode 100644 index 9ad6e02fabe7..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateFederationRequest.php +++ /dev/null @@ -1,275 +0,0 @@ -google.cloud.metastore.v1beta.CreateFederationRequest - */ -class CreateFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string federation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $federation_id = ''; - /** - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Federation federation = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $federation = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreFederationClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1beta\Federation $federation Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * @param string $federationId Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * @return \Google\Cloud\Metastore\V1beta\CreateFederationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1beta\Federation $federation, string $federationId): self - { - return (new self()) - ->setParent($parent) - ->setFederation($federation) - ->setFederationId($federationId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type string $federation_id - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * @type \Google\Cloud\Metastore\V1beta\Federation $federation - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location in which to create a - * federation service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string federation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFederationId() - { - return $this->federation_id; - } - - /** - * Required. The ID of the metastore federation, which is used as the final - * component of the metastore federation's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string federation_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFederationId($var) - { - GPBUtil::checkString($var, True); - $this->federation_id = $var; - - return $this; - } - - /** - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Federation federation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1beta\Federation|null - */ - public function getFederation() - { - return $this->federation; - } - - public function hasFederation() - { - return isset($this->federation); - } - - public function clearFederation() - { - unset($this->federation); - } - - /** - * Required. The Metastore Federation to create. The `name` field is - * ignored. The ID of the created metastore federation must be - * provided in the request's `federation_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Federation federation = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1beta\Federation $var - * @return $this - */ - public function setFederation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\Federation::class); - $this->federation = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateMetadataImportRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateMetadataImportRequest.php deleted file mode 100644 index 91cf569e9f50..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateMetadataImportRequest.php +++ /dev/null @@ -1,276 +0,0 @@ -google.cloud.metastore.v1beta.CreateMetadataImportRequest - */ -class CreateMetadataImportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string metadata_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_import_id = ''; - /** - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport metadata_import = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_import = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1beta\MetadataImport $metadataImport Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * @param string $metadataImportId Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * @return \Google\Cloud\Metastore\V1beta\CreateMetadataImportRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1beta\MetadataImport $metadataImport, string $metadataImportId): self - { - return (new self()) - ->setParent($parent) - ->setMetadataImport($metadataImport) - ->setMetadataImportId($metadataImportId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type string $metadata_import_id - * Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * @type \Google\Cloud\Metastore\V1beta\MetadataImport $metadata_import - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the service in which to create a - * metastore import, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string metadata_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMetadataImportId() - { - return $this->metadata_import_id; - } - - /** - * Required. The ID of the metadata import, which is used as the final - * component of the metadata import's name. - * This value must be between 1 and 64 characters long, begin with a letter, - * end with a letter or number, and consist of alpha-numeric ASCII characters - * or hyphens. - * - * Generated from protobuf field string metadata_import_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMetadataImportId($var) - { - GPBUtil::checkString($var, True); - $this->metadata_import_id = $var; - - return $this; - } - - /** - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport metadata_import = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1beta\MetadataImport|null - */ - public function getMetadataImport() - { - return $this->metadata_import; - } - - public function hasMetadataImport() - { - return isset($this->metadata_import); - } - - public function clearMetadataImport() - { - unset($this->metadata_import); - } - - /** - * Required. The metadata import to create. The `name` field is ignored. The - * ID of the created metadata import must be provided in the request's - * `metadata_import_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport metadata_import = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1beta\MetadataImport $var - * @return $this - */ - public function setMetadataImport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\MetadataImport::class); - $this->metadata_import = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateServiceRequest.php deleted file mode 100644 index 3dedac0509d6..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/CreateServiceRequest.php +++ /dev/null @@ -1,276 +0,0 @@ -google.cloud.metastore.v1beta.CreateServiceRequest - */ -class CreateServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_id = ''; - /** - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Metastore\V1beta\Service $service Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * @param string $serviceId Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * @return \Google\Cloud\Metastore\V1beta\CreateServiceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Metastore\V1beta\Service $service, string $serviceId): self - { - return (new self()) - ->setParent($parent) - ->setService($service) - ->setServiceId($serviceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type string $service_id - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * @type \Google\Cloud\Metastore\V1beta\Service $service - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location in which to create a - * metastore service, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getServiceId() - { - return $this->service_id; - } - - /** - * Required. The ID of the metastore service, which is used as the final - * component of the metastore service's name. - * This value must be between 2 and 63 characters long inclusive, begin with a - * letter, end with a letter or number, and consist of alpha-numeric - * ASCII characters or hyphens. - * - * Generated from protobuf field string service_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setServiceId($var) - { - GPBUtil::checkString($var, True); - $this->service_id = $var; - - return $this; - } - - /** - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1beta\Service|null - */ - public function getService() - { - return $this->service; - } - - public function hasService() - { - return isset($this->service); - } - - public function clearService() - { - unset($this->service); - } - - /** - * Required. The Metastore service to create. The `name` field is - * ignored. The ID of the created metastore service must be provided in - * the request's `service_id` field. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service service = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1beta\Service $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\Service::class); - $this->service = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DataCatalogConfig.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DataCatalogConfig.php deleted file mode 100644 index d445745eba1e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DataCatalogConfig.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.metastore.v1beta.DataCatalogConfig - */ -class DataCatalogConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Defines whether the metastore metadata should be synced to Data Catalog. - * The default value is to disable syncing metastore metadata to Data Catalog. - * - * Generated from protobuf field bool enabled = 2; - */ - protected $enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enabled - * Defines whether the metastore metadata should be synced to Data Catalog. - * The default value is to disable syncing metastore metadata to Data Catalog. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Defines whether the metastore metadata should be synced to Data Catalog. - * The default value is to disable syncing metastore metadata to Data Catalog. - * - * Generated from protobuf field bool enabled = 2; - * @return bool - */ - public function getEnabled() - { - return $this->enabled; - } - - /** - * Defines whether the metastore metadata should be synced to Data Catalog. - * The default value is to disable syncing metastore metadata to Data Catalog. - * - * Generated from protobuf field bool enabled = 2; - * @param bool $var - * @return $this - */ - public function setEnabled($var) - { - GPBUtil::checkBool($var); - $this->enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DatabaseDumpSpec.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DatabaseDumpSpec.php deleted file mode 100644 index 3f8713173032..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DatabaseDumpSpec.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.metastore.v1beta.DatabaseDumpSpec - */ -class DatabaseDumpSpec extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DatabaseDumpSpec/Type.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DatabaseDumpSpec/Type.php deleted file mode 100644 index 47888ab7a90a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DatabaseDumpSpec/Type.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1beta.DatabaseDumpSpec.Type - */ -class Type -{ - /** - * The type of the database dump is unknown. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Database dump is a MySQL dump file. - * - * Generated from protobuf enum MYSQL = 1; - */ - const MYSQL = 1; - /** - * Database dump contains Avro files. - * - * Generated from protobuf enum AVRO = 2; - */ - const AVRO = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::MYSQL => 'MYSQL', - self::AVRO => 'AVRO', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Metastore\V1beta\DatabaseDumpSpec_Type::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DataplexConfig.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DataplexConfig.php deleted file mode 100644 index 65bf50507bad..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DataplexConfig.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.metastore.v1beta.DataplexConfig - */ -class DataplexConfig extends \Google\Protobuf\Internal\Message -{ - /** - * A reference to the Lake resources that this metastore service is attached - * to. The key is the lake resource name. Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field map lake_resources = 1; - */ - private $lake_resources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $lake_resources - * A reference to the Lake resources that this metastore service is attached - * to. The key is the lake resource name. Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * A reference to the Lake resources that this metastore service is attached - * to. The key is the lake resource name. Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field map lake_resources = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLakeResources() - { - return $this->lake_resources; - } - - /** - * A reference to the Lake resources that this metastore service is attached - * to. The key is the lake resource name. Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}`. - * - * Generated from protobuf field map lake_resources = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLakeResources($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\Lake::class); - $this->lake_resources = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteBackupRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteBackupRequest.php deleted file mode 100644 index 6ceb6597728b..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteBackupRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.metastore.v1beta.DeleteBackupRequest - */ -class DeleteBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The relative resource name of the backup to delete, in the - * following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. Please see - * {@see DataprocMetastoreClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\DeleteBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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 relative resource name of the backup to delete, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteFederationRequest.php deleted file mode 100644 index b6af25bf0593..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteFederationRequest.php +++ /dev/null @@ -1,162 +0,0 @@ -google.cloud.metastore.v1beta.DeleteFederationRequest - */ -class DeleteFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The relative resource name of the metastore federation to delete, - * in the following form: - * - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. Please see - * {@see DataprocMetastoreFederationClient::federationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\DeleteFederationRequest - * - * @experimental - */ - public static function 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 relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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 relative resource name of the metastore federation to delete, - * in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteServiceRequest.php deleted file mode 100644 index a8fce13c742f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/DeleteServiceRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.metastore.v1beta.DeleteServiceRequest - */ -class DeleteServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. The relative resource name of the metastore service to delete, in - * the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\DeleteServiceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the metastore service to delete, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/EncryptionConfig.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/EncryptionConfig.php deleted file mode 100644 index 0c580153147d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/EncryptionConfig.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.metastore.v1beta.EncryptionConfig - */ -class EncryptionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * - * Generated from protobuf field string kms_key = 1; - */ - protected $kms_key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kms_key - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * - * Generated from protobuf field string kms_key = 1; - * @return string - */ - public function getKmsKey() - { - return $this->kms_key; - } - - /** - * The fully qualified customer provided Cloud KMS key name to use for - * customer data encryption, in the following form: - * `projects/{project_number}/locations/{location_id}/keyRings/{key_ring_id}/cryptoKeys/{crypto_key_id}`. - * - * Generated from protobuf field string kms_key = 1; - * @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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ErrorDetails.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ErrorDetails.php deleted file mode 100644 index f92d367a604b..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ErrorDetails.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.metastore.v1beta.ErrorDetails - */ -class ErrorDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * - * Generated from protobuf field map details = 1; - */ - private $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $details - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * - * Generated from protobuf field map details = 1; - * @return \Google\Protobuf\Internal\MapField - */ - public function getDetails() - { - return $this->details; - } - - /** - * Additional structured details about this error. - * Keys define the failure items. - * Value describes the exception or details of the item. - * - * Generated from protobuf field map details = 1; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setDetails($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->details = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ExportMetadataRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ExportMetadataRequest.php deleted file mode 100644 index 562eeb937f38..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ExportMetadataRequest.php +++ /dev/null @@ -1,232 +0,0 @@ -google.cloud.metastore.v1beta.ExportMetadataRequest - */ -class ExportMetadataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $database_dump_type = 0; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $destination_gcs_folder - * A Cloud Storage URI of a folder, in the format - * `gs:///`. A sub-folder - * `` containing exported files will be created below it. - * @type string $service - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * @type int $database_dump_type - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * A Cloud Storage URI of a folder, in the format - * `gs:///`. A sub-folder - * `` containing exported files will be created below it. - * - * Generated from protobuf field string destination_gcs_folder = 2; - * @return string - */ - public function getDestinationGcsFolder() - { - return $this->readOneof(2); - } - - public function hasDestinationGcsFolder() - { - return $this->hasOneof(2); - } - - /** - * A Cloud Storage URI of a folder, in the format - * `gs:///`. A sub-folder - * `` containing exported files will be created below it. - * - * Generated from protobuf field string destination_gcs_folder = 2; - * @param string $var - * @return $this - */ - public function setDestinationGcsFolder($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to run - * export, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getDatabaseDumpType() - { - return $this->database_dump_type; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setDatabaseDumpType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\DatabaseDumpSpec\Type::class); - $this->database_dump_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Federation.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Federation.php deleted file mode 100644 index 7751b7c96516..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Federation.php +++ /dev/null @@ -1,433 +0,0 @@ -google.cloud.metastore.v1beta.Federation - */ -class Federation extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. The time when the metastore federation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the metastore federation was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * User-defined labels for the metastore federation. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * - * Generated from protobuf field string version = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $version = ''; - /** - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * - * Generated from protobuf field map backend_metastores = 6; - */ - private $backend_metastores; - /** - * Output only. The federation endpoint. - * - * Generated from protobuf field string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint_uri = ''; - /** - * Output only. The current state of the federation. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information about the current state of the - * metastore federation, if available. - * - * Generated from protobuf field string state_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_message = ''; - /** - * Output only. The globally unique resource identifier of the metastore - * federation. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the metastore federation was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the metastore federation was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * User-defined labels for the metastore federation. - * @type string $version - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * @type array|\Google\Protobuf\Internal\MapField $backend_metastores - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * @type string $endpoint_uri - * Output only. The federation endpoint. - * @type int $state - * Output only. The current state of the federation. - * @type string $state_message - * Output only. Additional information about the current state of the - * metastore federation, if available. - * @type string $uid - * Output only. The globally unique resource identifier of the metastore - * federation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the federation, of the - * form: - * projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * 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 when the metastore federation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the metastore federation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the metastore federation was 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 when the metastore federation was 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; - } - - /** - * User-defined labels for the metastore federation. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * User-defined labels for the metastore federation. - * - * 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; - } - - /** - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * - * Generated from protobuf field string version = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Immutable. The Apache Hive metastore version of the federation. All backend - * metastore versions must be compatible with the federation version. - * - * Generated from protobuf field string version = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * - * Generated from protobuf field map backend_metastores = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getBackendMetastores() - { - return $this->backend_metastores; - } - - /** - * A map from `BackendMetastore` rank to `BackendMetastore`s from which the - * federation service serves metadata at query time. The map key represents - * the order in which `BackendMetastore`s should be evaluated to resolve - * database names at query time and should be greater than or equal to zero. A - * `BackendMetastore` with a lower number will be evaluated before a - * `BackendMetastore` with a higher number. - * - * Generated from protobuf field map backend_metastores = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setBackendMetastores($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::INT32, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\BackendMetastore::class); - $this->backend_metastores = $arr; - - return $this; - } - - /** - * Output only. The federation endpoint. - * - * Generated from protobuf field string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpointUri() - { - return $this->endpoint_uri; - } - - /** - * Output only. The federation endpoint. - * - * Generated from protobuf field string endpoint_uri = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_uri = $var; - - return $this; - } - - /** - * Output only. The current state of the federation. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the federation. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Federation.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\Federation\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information about the current state of the - * metastore federation, if available. - * - * Generated from protobuf field string state_message = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * Output only. Additional information about the current state of the - * metastore federation, if available. - * - * Generated from protobuf field string state_message = 9 [(.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. The globally unique resource identifier of the metastore - * federation. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. The globally unique resource identifier of the metastore - * federation. - * - * Generated from protobuf field string uid = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Federation/State.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Federation/State.php deleted file mode 100644 index ece483cad3f2..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Federation/State.php +++ /dev/null @@ -1,87 +0,0 @@ -google.cloud.metastore.v1beta.Federation.State - */ -class State -{ - /** - * The state of the metastore federation is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metastore federation is in the process of being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The metastore federation is running and ready to serve queries. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The metastore federation is being updated. It remains usable but cannot - * accept additional update requests or be deleted at this time. - * - * Generated from protobuf enum UPDATING = 3; - */ - const UPDATING = 3; - /** - * The metastore federation is undergoing deletion. It cannot be used. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - /** - * The metastore federation has encountered an error and cannot be used. The - * metastore federation should be deleted. - * - * Generated from protobuf enum ERROR = 5; - */ - const ERROR = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::UPDATING => 'UPDATING', - self::DELETING => 'DELETING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1beta\Federation_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetBackupRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetBackupRequest.php deleted file mode 100644 index 10890e3cd31c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetBackupRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.metastore.v1beta.GetBackupRequest - */ -class GetBackupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the backup to retrieve, in the - * following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. Please see - * {@see DataprocMetastoreClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\GetBackupRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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 relative resource name of the backup to retrieve, in the - * following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups/{backup_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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetFederationRequest.php deleted file mode 100644 index 7212222281b4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetFederationRequest.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.metastore.v1beta.GetFederationRequest - */ -class GetFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the metastore federation to - * retrieve, in the following form: - * - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. Please see - * {@see DataprocMetastoreFederationClient::federationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\GetFederationRequest - * - * @experimental - */ - public static function 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 relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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 relative resource name of the metastore federation to - * retrieve, in the following form: - * `projects/{project_number}/locations/{location_id}/federations/{federation_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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetMetadataImportRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetMetadataImportRequest.php deleted file mode 100644 index f01fde719207..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetMetadataImportRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.metastore.v1beta.GetMetadataImportRequest - */ -class GetMetadataImportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the metadata import to retrieve, in - * the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. Please see - * {@see DataprocMetastoreClient::metadataImportName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\GetMetadataImportRequest - * - * @experimental - */ - public static function 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 relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_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 relative resource name of the metadata import to retrieve, in - * the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{import_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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetServiceRequest.php deleted file mode 100644 index df7943108b43..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/GetServiceRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.metastore.v1beta.GetServiceRequest - */ -class GetServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\GetServiceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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 relative resource name of the metastore service to retrieve, - * in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/HiveMetastoreConfig.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/HiveMetastoreConfig.php deleted file mode 100644 index b04e639ad22d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/HiveMetastoreConfig.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.metastore.v1beta.HiveMetastoreConfig - */ -class HiveMetastoreConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The Hive metastore schema version. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $version = ''; - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * - * Generated from protobuf field map config_overrides = 2; - */ - private $config_overrides; - /** - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3; - */ - protected $kerberos_config = null; - /** - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4; - */ - protected $endpoint_protocol = 0; - /** - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * - * Generated from protobuf field map auxiliary_versions = 5; - */ - private $auxiliary_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Immutable. The Hive metastore schema version. - * @type array|\Google\Protobuf\Internal\MapField $config_overrides - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * @type \Google\Cloud\Metastore\V1beta\KerberosConfig $kerberos_config - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * @type int $endpoint_protocol - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * @type array|\Google\Protobuf\Internal\MapField $auxiliary_versions - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The Hive metastore schema version. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Immutable. The Hive metastore schema version. - * - * Generated from protobuf field string version = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * - * Generated from protobuf field map config_overrides = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getConfigOverrides() - { - return $this->config_overrides; - } - - /** - * A mapping of Hive metastore configuration key-value pairs to apply to the - * Hive metastore (configured in `hive-site.xml`). The mappings - * override system defaults (some keys cannot be overridden). These - * overrides are also applied to auxiliary versions and can be further - * customized in the auxiliary version's `AuxiliaryVersionConfig`. - * - * Generated from protobuf field map config_overrides = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setConfigOverrides($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->config_overrides = $arr; - - return $this; - } - - /** - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3; - * @return \Google\Cloud\Metastore\V1beta\KerberosConfig|null - */ - public function getKerberosConfig() - { - return $this->kerberos_config; - } - - public function hasKerberosConfig() - { - return isset($this->kerberos_config); - } - - public function clearKerberosConfig() - { - unset($this->kerberos_config); - } - - /** - * Information used to configure the Hive metastore service as a service - * principal in a Kerberos realm. To disable Kerberos, use the `UpdateService` - * method and specify this field's path - * (`hive_metastore_config.kerberos_config`) in the request's `update_mask` - * while omitting this field from the request's `service`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.KerberosConfig kerberos_config = 3; - * @param \Google\Cloud\Metastore\V1beta\KerberosConfig $var - * @return $this - */ - public function setKerberosConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\KerberosConfig::class); - $this->kerberos_config = $var; - - return $this; - } - - /** - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4; - * @return int - */ - public function getEndpointProtocol() - { - return $this->endpoint_protocol; - } - - /** - * The protocol to use for the metastore service endpoint. If unspecified, - * defaults to `THRIFT`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol endpoint_protocol = 4; - * @param int $var - * @return $this - */ - public function setEndpointProtocol($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\HiveMetastoreConfig\EndpointProtocol::class); - $this->endpoint_protocol = $var; - - return $this; - } - - /** - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * - * Generated from protobuf field map auxiliary_versions = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAuxiliaryVersions() - { - return $this->auxiliary_versions; - } - - /** - * A mapping of Hive metastore version to the auxiliary version - * configuration. When specified, a secondary Hive metastore service is - * created along with the primary service. All auxiliary versions must be less - * than the service's primary version. The key is the auxiliary service name - * and it must match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. This - * means that the first character must be a lowercase letter, and all the - * following characters must be hyphens, lowercase letters, or digits, except - * the last character, which cannot be a hyphen. - * - * Generated from protobuf field map auxiliary_versions = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAuxiliaryVersions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\AuxiliaryVersionConfig::class); - $this->auxiliary_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/HiveMetastoreConfig/EndpointProtocol.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/HiveMetastoreConfig/EndpointProtocol.php deleted file mode 100644 index 2098fa3fe11e..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/HiveMetastoreConfig/EndpointProtocol.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1beta.HiveMetastoreConfig.EndpointProtocol - */ -class EndpointProtocol -{ - /** - * The protocol is not set. - * - * Generated from protobuf enum ENDPOINT_PROTOCOL_UNSPECIFIED = 0; - */ - const ENDPOINT_PROTOCOL_UNSPECIFIED = 0; - /** - * Use the legacy Apache Thrift protocol for the metastore service endpoint. - * - * Generated from protobuf enum THRIFT = 1; - */ - const THRIFT = 1; - /** - * Use the modernized gRPC protocol for the metastore service endpoint. - * - * Generated from protobuf enum GRPC = 2; - */ - const GRPC = 2; - - private static $valueToName = [ - self::ENDPOINT_PROTOCOL_UNSPECIFIED => 'ENDPOINT_PROTOCOL_UNSPECIFIED', - self::THRIFT => 'THRIFT', - self::GRPC => 'GRPC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EndpointProtocol::class, \Google\Cloud\Metastore\V1beta\HiveMetastoreConfig_EndpointProtocol::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/KerberosConfig.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/KerberosConfig.php deleted file mode 100644 index b2f2766907f1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/KerberosConfig.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.metastore.v1beta.KerberosConfig - */ -class KerberosConfig extends \Google\Protobuf\Internal\Message -{ - /** - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Secret keytab = 1; - */ - protected $keytab = null; - /** - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * - * Generated from protobuf field string principal = 2; - */ - protected $principal = ''; - /** - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * - * Generated from protobuf field string krb5_config_gcs_uri = 3; - */ - protected $krb5_config_gcs_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1beta\Secret $keytab - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * @type string $principal - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * @type string $krb5_config_gcs_uri - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Secret keytab = 1; - * @return \Google\Cloud\Metastore\V1beta\Secret|null - */ - public function getKeytab() - { - return $this->keytab; - } - - public function hasKeytab() - { - return isset($this->keytab); - } - - public function clearKeytab() - { - unset($this->keytab); - } - - /** - * A Kerberos keytab file that can be used to authenticate a service principal - * with a Kerberos Key Distribution Center (KDC). - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Secret keytab = 1; - * @param \Google\Cloud\Metastore\V1beta\Secret $var - * @return $this - */ - public function setKeytab($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\Secret::class); - $this->keytab = $var; - - return $this; - } - - /** - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * - * Generated from protobuf field string principal = 2; - * @return string - */ - public function getPrincipal() - { - return $this->principal; - } - - /** - * A Kerberos principal that exists in the both the keytab the KDC - * to authenticate as. A typical principal is of the form - * `primary/instance@REALM`, but there is no exact format. - * - * Generated from protobuf field string principal = 2; - * @param string $var - * @return $this - */ - public function setPrincipal($var) - { - GPBUtil::checkString($var, True); - $this->principal = $var; - - return $this; - } - - /** - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * - * Generated from protobuf field string krb5_config_gcs_uri = 3; - * @return string - */ - public function getKrb5ConfigGcsUri() - { - return $this->krb5_config_gcs_uri; - } - - /** - * A Cloud Storage URI that specifies the path to a - * krb5.conf file. It is of the form `gs://{bucket_name}/path/to/krb5.conf`, - * although the file does not need to be named krb5.conf explicitly. - * - * Generated from protobuf field string krb5_config_gcs_uri = 3; - * @param string $var - * @return $this - */ - public function setKrb5ConfigGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->krb5_config_gcs_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Lake.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Lake.php deleted file mode 100644 index 62cb12726e69..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Lake.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.metastore.v1beta.Lake - */ -class Lake extends \Google\Protobuf\Internal\Message -{ - /** - * The Lake resource name. - * Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The Lake resource name. - * Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The Lake resource name. - * Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The Lake resource name. - * Example: - * `projects/{project_number}/locations/{location_id}/lakes/{lake_id}` - * - * Generated from protobuf field string name = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListBackupsRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListBackupsRequest.php deleted file mode 100644 index 430094bf97da..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListBackupsRequest.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.metastore.v1beta.ListBackupsRequest - */ -class ListBackupsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the service whose backups to - * list, in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\ListBackupsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * @type int $page_size - * Optional. The maximum number of backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups] - * must match the call that provided the page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the service whose backups to - * list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/backups`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed 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 backups to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 backups are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups] - * 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 - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListBackups][google.cloud.metastore.v1beta.DataprocMetastore.ListBackups] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListBackupsResponse.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListBackupsResponse.php deleted file mode 100644 index a28503a594af..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListBackupsResponse.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.metastore.v1beta.ListBackupsResponse - */ -class ListBackupsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The backups of the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Backup backups = 1; - */ - private $backups; - /** - * 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\Metastore\V1beta\Backup>|\Google\Protobuf\Internal\RepeatedField $backups - * The backups of the specified service. - * @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\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The backups of the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Backup backups = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBackups() - { - return $this->backups; - } - - /** - * The backups of the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Backup backups = 1; - * @param array<\Google\Cloud\Metastore\V1beta\Backup>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBackups($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\Backup::class); - $this->backups = $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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListFederationsRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListFederationsRequest.php deleted file mode 100644 index 80a6212e0fc1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListFederationsRequest.php +++ /dev/null @@ -1,267 +0,0 @@ -google.cloud.metastore.v1beta.ListFederationsRequest - */ -class ListFederationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreFederationClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\ListFederationsRequest - * - * @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 relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type int $page_size - * Optional. The maximum number of federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices must match the call that provided the - * page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location of metastore - * federations to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed 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 federations to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices 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 ListFederationServices - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * ListFederationServices 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListFederationsResponse.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListFederationsResponse.php deleted file mode 100644 index c3e522aedae4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListFederationsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.metastore.v1beta.ListFederationsResponse - */ -class ListFederationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Federation federations = 1; - */ - private $federations; - /** - * 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\Metastore\V1beta\Federation>|\Google\Protobuf\Internal\RepeatedField $federations - * The services in the specified location. - * @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\Metastore\V1Beta\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Federation federations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFederations() - { - return $this->federations; - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Federation federations = 1; - * @param array<\Google\Cloud\Metastore\V1beta\Federation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFederations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\Federation::class); - $this->federations = $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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListMetadataImportsRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListMetadataImportsRequest.php deleted file mode 100644 index ec42c4b2bba4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListMetadataImportsRequest.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.metastore.v1beta.ListMetadataImportsRequest - */ -class ListMetadataImportsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\ListMetadataImportsRequest - * - * @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 relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * @type int $page_size - * Optional. The maximum number of imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * must match the call that provided the page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the service whose metadata imports - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed 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 imports to return. The response may contain - * less than the maximum number. If unspecified, no more than 500 imports are - * returned. The maximum value is 1000; values above 1000 are changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * 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 - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListMetadataImportsResponse.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListMetadataImportsResponse.php deleted file mode 100644 index 3185137d31b9..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListMetadataImportsResponse.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.metastore.v1beta.ListMetadataImportsResponse - */ -class ListMetadataImportsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The imports in the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.MetadataImport metadata_imports = 1; - */ - private $metadata_imports; - /** - * 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\Metastore\V1beta\MetadataImport>|\Google\Protobuf\Internal\RepeatedField $metadata_imports - * The imports in the specified service. - * @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\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The imports in the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.MetadataImport metadata_imports = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetadataImports() - { - return $this->metadata_imports; - } - - /** - * The imports in the specified service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.MetadataImport metadata_imports = 1; - * @param array<\Google\Cloud\Metastore\V1beta\MetadataImport>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetadataImports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\MetadataImport::class); - $this->metadata_imports = $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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListServicesRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListServicesRequest.php deleted file mode 100644 index 16127d0411b8..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListServicesRequest.php +++ /dev/null @@ -1,273 +0,0 @@ -google.cloud.metastore.v1beta.ListServicesRequest - */ -class ListServicesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The relative resource name of the location of metastore services - * to list, in the following form: - * - * `projects/{project_number}/locations/{location_id}`. Please see - * {@see DataprocMetastoreClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\ListServicesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * @type int $page_size - * Optional. The maximum number of services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * @type string $page_token - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * must match the call that provided the page token. - * @type string $filter - * Optional. The filter to apply to list results. - * @type string $order_by - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The relative resource name of the location of metastore services - * to list, in the following form: - * `projects/{project_number}/locations/{location_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed 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 services to return. The response may - * contain less than the maximum number. If unspecified, no more than 500 - * services are returned. The maximum value is 1000; values above 1000 are - * changed to 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. A page token, received from a previous - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * 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 - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * call. Provide this token to retrieve the subsequent page. - * To retrieve the first page, supply an empty page token. - * When paginating, other parameters provided to - * [DataprocMetastore.ListServices][google.cloud.metastore.v1beta.DataprocMetastore.ListServices] - * 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. The filter to apply to list results. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter to apply to 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; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Specify the ordering of results as described in [Sorting - * Order](https://cloud.google.com/apis/design/design_patterns#sorting_order). - * If not specified, the results will be sorted in the default order. - * - * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListServicesResponse.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListServicesResponse.php deleted file mode 100644 index b37cb04836b5..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ListServicesResponse.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.metastore.v1beta.ListServicesResponse - */ -class ListServicesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Service services = 1; - */ - private $services; - /** - * 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\Metastore\V1beta\Service>|\Google\Protobuf\Internal\RepeatedField $services - * The services in the specified location. - * @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\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Service services = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getServices() - { - return $this->services; - } - - /** - * The services in the specified location. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Service services = 1; - * @param array<\Google\Cloud\Metastore\V1beta\Service>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\Service::class); - $this->services = $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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/LocationMetadata.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/LocationMetadata.php deleted file mode 100644 index 2399c3c3e4ec..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/LocationMetadata.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.metastore.v1beta.LocationMetadata - */ -class LocationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1; - */ - private $supported_hive_metastore_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Metastore\V1beta\LocationMetadata\HiveMetastoreVersion>|\Google\Protobuf\Internal\RepeatedField $supported_hive_metastore_versions - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedHiveMetastoreVersions() - { - return $this->supported_hive_metastore_versions; - } - - /** - * The versions of Hive Metastore that can be used when creating a new - * metastore service in this location. The server guarantees that exactly one - * `HiveMetastoreVersion` in the list will set `is_default`. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion supported_hive_metastore_versions = 1; - * @param array<\Google\Cloud\Metastore\V1beta\LocationMetadata\HiveMetastoreVersion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedHiveMetastoreVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\LocationMetadata\HiveMetastoreVersion::class); - $this->supported_hive_metastore_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/LocationMetadata/HiveMetastoreVersion.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/LocationMetadata/HiveMetastoreVersion.php deleted file mode 100644 index 6e8fc8b023e8..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/LocationMetadata/HiveMetastoreVersion.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion - */ -class HiveMetastoreVersion extends \Google\Protobuf\Internal\Message -{ - /** - * The semantic version of the Hive Metastore software. - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * - * Generated from protobuf field bool is_default = 2; - */ - protected $is_default = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The semantic version of the Hive Metastore software. - * @type bool $is_default - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The semantic version of the Hive Metastore software. - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The semantic version of the Hive Metastore software. - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * - * Generated from protobuf field bool is_default = 2; - * @return bool - */ - public function getIsDefault() - { - return $this->is_default; - } - - /** - * Whether `version` will be chosen by the server if a metastore service is - * created with a `HiveMetastoreConfig` that omits the `version`. - * - * Generated from protobuf field bool is_default = 2; - * @param bool $var - * @return $this - */ - public function setIsDefault($var) - { - GPBUtil::checkBool($var); - $this->is_default = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(HiveMetastoreVersion::class, \Google\Cloud\Metastore\V1beta\LocationMetadata_HiveMetastoreVersion::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MaintenanceWindow.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MaintenanceWindow.php deleted file mode 100644 index 0fde87bf554d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MaintenanceWindow.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.metastore.v1beta.MaintenanceWindow - */ -class MaintenanceWindow extends \Google\Protobuf\Internal\Message -{ - /** - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - */ - protected $hour_of_day = null; - /** - * The day of week, when the window starts. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - */ - protected $day_of_week = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Int32Value $hour_of_day - * The hour of day (0-23) when the window starts. - * @type int $day_of_week - * The day of week, when the window starts. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @return \Google\Protobuf\Int32Value|null - */ - public function getHourOfDay() - { - return $this->hour_of_day; - } - - public function hasHourOfDay() - { - return isset($this->hour_of_day); - } - - public function clearHourOfDay() - { - unset($this->hour_of_day); - } - - /** - * Returns the unboxed value from getHourOfDay() - - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @return int|null - */ - public function getHourOfDayUnwrapped() - { - return $this->readWrapperValue("hour_of_day"); - } - - /** - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setHourOfDay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->hour_of_day = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The hour of day (0-23) when the window starts. - * - * Generated from protobuf field .google.protobuf.Int32Value hour_of_day = 1; - * @param int|null $var - * @return $this - */ - public function setHourOfDayUnwrapped($var) - { - $this->writeWrapperValue("hour_of_day", $var); - return $this;} - - /** - * The day of week, when the window starts. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - * @return int - */ - public function getDayOfWeek() - { - return $this->day_of_week; - } - - /** - * The day of week, when the window starts. - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - * @param int $var - * @return $this - */ - public function setDayOfWeek($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->day_of_week = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataExport.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataExport.php deleted file mode 100644 index 08d2d19f3979..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataExport.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.metastore.v1beta.MetadataExport - */ -class MetadataExport extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time when the export started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time when the export ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the export. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The type of the database dump. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $database_dump_type = 0; - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $destination_gcs_uri - * Output only. A Cloud Storage URI of a folder that metadata are exported - * to, in the form of - * `gs:////`, where - * `` is automatically generated. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time when the export started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the export ended. - * @type int $state - * Output only. The current state of the export. - * @type int $database_dump_type - * Output only. The type of the database dump. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Output only. A Cloud Storage URI of a folder that metadata are exported - * to, in the form of - * `gs:////`, where - * `` is automatically generated. - * - * Generated from protobuf field string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDestinationGcsUri() - { - return $this->readOneof(4); - } - - public function hasDestinationGcsUri() - { - return $this->hasOneof(4); - } - - /** - * Output only. A Cloud Storage URI of a folder that metadata are exported - * to, in the form of - * `gs:////`, where - * `` is automatically generated. - * - * Generated from protobuf field string destination_gcs_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDestinationGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Output only. The time when the export started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The time when the export started. - * - * 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. The time when the export ended. - * - * 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 when the export ended. - * - * 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 current state of the export. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the export. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataExport.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\MetadataExport\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The type of the database dump. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getDatabaseDumpType() - { - return $this->database_dump_type; - } - - /** - * Output only. The type of the database dump. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DatabaseDumpSpec.Type database_dump_type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setDatabaseDumpType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\DatabaseDumpSpec\Type::class); - $this->database_dump_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataExport/State.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataExport/State.php deleted file mode 100644 index 92bac47ffdc6..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataExport/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.metastore.v1beta.MetadataExport.State - */ -class State -{ - /** - * The state of the metadata export is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metadata export is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The metadata export completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The metadata export failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * The metadata export is cancelled. - * - * Generated from protobuf enum CANCELLED = 4; - */ - const CANCELLED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::CANCELLED => '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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1beta\MetadataExport_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport.php deleted file mode 100644 index 1baa14288a20..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport.php +++ /dev/null @@ -1,313 +0,0 @@ -google.cloud.metastore.v1beta.MetadataImport - */ -class MetadataImport extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * The description of the metadata import. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Output only. The time when the metadata import was started. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the metadata import was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The time when the metadata import finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the metadata import. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - protected $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1beta\MetadataImport\DatabaseDump $database_dump - * Immutable. A database dump from a pre-existing metastore's database. - * @type string $name - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * @type string $description - * The description of the metadata import. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the metadata import was started. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the metadata import was last updated. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the metadata import finished. - * @type int $state - * Output only. The current state of the metadata import. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. A database dump from a pre-existing metastore's database. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport.DatabaseDump database_dump = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Metastore\V1beta\MetadataImport\DatabaseDump|null - */ - public function getDatabaseDump() - { - return $this->readOneof(6); - } - - public function hasDatabaseDump() - { - return $this->hasOneof(6); - } - - /** - * Immutable. A database dump from a pre-existing metastore's database. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport.DatabaseDump database_dump = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Metastore\V1beta\MetadataImport\DatabaseDump $var - * @return $this - */ - public function setDatabaseDump($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\MetadataImport\DatabaseDump::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the metadata import, of the form: - * `projects/{project_number}/locations/{location_id}/services/{service_id}/metadataImports/{metadata_import_id}`. - * - * 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 description of the metadata import. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the metadata import. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The time when the metadata import was started. - * - * 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 the metadata import was started. - * - * 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 time when the metadata import was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The time when the metadata import was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. The time when the metadata import finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.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 when the metadata import finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 7 [(.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 current state of the metadata import. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the metadata import. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport.State state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\MetadataImport\State::class); - $this->state = $var; - - return $this; - } - - /** - * @return string - */ - public function getMetadata() - { - return $this->whichOneof("metadata"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/DatabaseDump.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/DatabaseDump.php deleted file mode 100644 index b70a092e0864..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/DatabaseDump.php +++ /dev/null @@ -1,191 +0,0 @@ -google.cloud.metastore.v1beta.MetadataImport.DatabaseDump - */ -class DatabaseDump extends \Google\Protobuf\Internal\Message -{ - /** - * The type of the database. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true]; - * @deprecated - */ - protected $database_type = 0; - /** - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * - * Generated from protobuf field string gcs_uri = 2; - */ - protected $gcs_uri = ''; - /** - * The name of the source database. - * - * Generated from protobuf field string source_database = 3 [deprecated = true]; - * @deprecated - */ - protected $source_database = ''; - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $database_type - * The type of the database. - * @type string $gcs_uri - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * @type string $source_database - * The name of the source database. - * @type int $type - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The type of the database. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true]; - * @return int - * @deprecated - */ - public function getDatabaseType() - { - @trigger_error('database_type is deprecated.', E_USER_DEPRECATED); - return $this->database_type; - } - - /** - * The type of the database. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType database_type = 1 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setDatabaseType($var) - { - @trigger_error('database_type is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\MetadataImport\DatabaseDump\DatabaseType::class); - $this->database_type = $var; - - return $this; - } - - /** - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * - * Generated from protobuf field string gcs_uri = 2; - * @return string - */ - public function getGcsUri() - { - return $this->gcs_uri; - } - - /** - * A Cloud Storage object or folder URI that specifies the source from which - * to import metadata. It must begin with `gs://`. - * - * Generated from protobuf field string gcs_uri = 2; - * @param string $var - * @return $this - */ - public function setGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->gcs_uri = $var; - - return $this; - } - - /** - * The name of the source database. - * - * Generated from protobuf field string source_database = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getSourceDatabase() - { - @trigger_error('source_database is deprecated.', E_USER_DEPRECATED); - return $this->source_database; - } - - /** - * The name of the source database. - * - * Generated from protobuf field string source_database = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setSourceDatabase($var) - { - @trigger_error('source_database is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->source_database = $var; - - return $this; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Optional. The type of the database dump. If unspecified, defaults to - * `MYSQL`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DatabaseDumpSpec.Type type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\DatabaseDumpSpec\Type::class); - $this->type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DatabaseDump::class, \Google\Cloud\Metastore\V1beta\MetadataImport_DatabaseDump::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/DatabaseDump/DatabaseType.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/DatabaseDump/DatabaseType.php deleted file mode 100644 index d217a3fd64c5..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/DatabaseDump/DatabaseType.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.metastore.v1beta.MetadataImport.DatabaseDump.DatabaseType - */ -class DatabaseType -{ - /** - * The type of the source database is unknown. - * - * Generated from protobuf enum DATABASE_TYPE_UNSPECIFIED = 0; - */ - const DATABASE_TYPE_UNSPECIFIED = 0; - /** - * The type of the source database is MySQL. - * - * Generated from protobuf enum MYSQL = 1; - */ - const MYSQL = 1; - - private static $valueToName = [ - self::DATABASE_TYPE_UNSPECIFIED => 'DATABASE_TYPE_UNSPECIFIED', - 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\Metastore\V1beta\MetadataImport_DatabaseDump_DatabaseType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/State.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/State.php deleted file mode 100644 index 317ecb495509..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataImport/State.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.metastore.v1beta.MetadataImport.State - */ -class State -{ - /** - * The state of the metadata import is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metadata import is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The metadata import completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The metadata import is being updated. - * - * Generated from protobuf enum UPDATING = 3; - */ - const UPDATING = 3; - /** - * The metadata import failed, and attempted metadata changes were rolled - * back. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::UPDATING => 'UPDATING', - 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\Metastore\V1beta\MetadataImport_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataIntegration.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataIntegration.php deleted file mode 100644 index c766d5879807..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataIntegration.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.metastore.v1beta.MetadataIntegration - */ -class MetadataIntegration extends \Google\Protobuf\Internal\Message -{ - /** - * The integration config for the Data Catalog service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; - */ - protected $data_catalog_config = null; - /** - * The integration config for the Dataplex service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; - */ - protected $dataplex_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1beta\DataCatalogConfig $data_catalog_config - * The integration config for the Data Catalog service. - * @type \Google\Cloud\Metastore\V1beta\DataplexConfig $dataplex_config - * The integration config for the Dataplex service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The integration config for the Data Catalog service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; - * @return \Google\Cloud\Metastore\V1beta\DataCatalogConfig|null - */ - public function getDataCatalogConfig() - { - return $this->data_catalog_config; - } - - public function hasDataCatalogConfig() - { - return isset($this->data_catalog_config); - } - - public function clearDataCatalogConfig() - { - unset($this->data_catalog_config); - } - - /** - * The integration config for the Data Catalog service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DataCatalogConfig data_catalog_config = 1; - * @param \Google\Cloud\Metastore\V1beta\DataCatalogConfig $var - * @return $this - */ - public function setDataCatalogConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\DataCatalogConfig::class); - $this->data_catalog_config = $var; - - return $this; - } - - /** - * The integration config for the Dataplex service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; - * @return \Google\Cloud\Metastore\V1beta\DataplexConfig|null - */ - public function getDataplexConfig() - { - return $this->dataplex_config; - } - - public function hasDataplexConfig() - { - return isset($this->dataplex_config); - } - - public function clearDataplexConfig() - { - unset($this->dataplex_config); - } - - /** - * The integration config for the Dataplex service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.DataplexConfig dataplex_config = 2; - * @param \Google\Cloud\Metastore\V1beta\DataplexConfig $var - * @return $this - */ - public function setDataplexConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\DataplexConfig::class); - $this->dataplex_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataManagementActivity.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataManagementActivity.php deleted file mode 100644 index 379ac929fda8..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MetadataManagementActivity.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.metastore.v1beta.MetadataManagementActivity - */ -class MetadataManagementActivity extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The latest metadata exports of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $metadata_exports; - /** - * Output only. The latest restores of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $restores; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Metastore\V1beta\MetadataExport>|\Google\Protobuf\Internal\RepeatedField $metadata_exports - * Output only. The latest metadata exports of the metastore service. - * @type array<\Google\Cloud\Metastore\V1beta\Restore>|\Google\Protobuf\Internal\RepeatedField $restores - * Output only. The latest restores of the metastore service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The latest metadata exports of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMetadataExports() - { - return $this->metadata_exports; - } - - /** - * Output only. The latest metadata exports of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.MetadataExport metadata_exports = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Metastore\V1beta\MetadataExport>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMetadataExports($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\MetadataExport::class); - $this->metadata_exports = $arr; - - return $this; - } - - /** - * Output only. The latest restores of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestores() - { - return $this->restores; - } - - /** - * Output only. The latest restores of the metastore service. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.Restore restores = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Metastore\V1beta\Restore>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestores($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\Restore::class); - $this->restores = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MoveTableToDatabaseRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MoveTableToDatabaseRequest.php deleted file mode 100644 index cb5c97e47bce..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MoveTableToDatabaseRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.metastore.v1beta.MoveTableToDatabaseRequest - */ -class MoveTableToDatabaseRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. The name of the table to be moved. - * - * Generated from protobuf field string table_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_name = ''; - /** - * Required. The name of the database where the table resides. - * - * Generated from protobuf field string db_name = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $db_name = ''; - /** - * Required. The name of the database where the table should be moved. - * - * Generated from protobuf field string destination_db_name = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $destination_db_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $table_name - * Required. The name of the table to be moved. - * @type string $db_name - * Required. The name of the database where the table resides. - * @type string $destination_db_name - * Required. The name of the database where the table should be moved. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to mutate - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. The name of the table to be moved. - * - * Generated from protobuf field string table_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableName() - { - return $this->table_name; - } - - /** - * Required. The name of the table to be moved. - * - * Generated from protobuf field string table_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableName($var) - { - GPBUtil::checkString($var, True); - $this->table_name = $var; - - return $this; - } - - /** - * Required. The name of the database where the table resides. - * - * Generated from protobuf field string db_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDbName() - { - return $this->db_name; - } - - /** - * Required. The name of the database where the table resides. - * - * Generated from protobuf field string db_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDbName($var) - { - GPBUtil::checkString($var, True); - $this->db_name = $var; - - return $this; - } - - /** - * Required. The name of the database where the table should be moved. - * - * Generated from protobuf field string destination_db_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDestinationDbName() - { - return $this->destination_db_name; - } - - /** - * Required. The name of the database where the table should be moved. - * - * Generated from protobuf field string destination_db_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDestinationDbName($var) - { - GPBUtil::checkString($var, True); - $this->destination_db_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MoveTableToDatabaseResponse.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MoveTableToDatabaseResponse.php deleted file mode 100644 index d37cfad3e623..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/MoveTableToDatabaseResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.cloud.metastore.v1beta.MoveTableToDatabaseResponse - */ -class MoveTableToDatabaseResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/NetworkConfig.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/NetworkConfig.php deleted file mode 100644 index 234b8b9add3b..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/NetworkConfig.php +++ /dev/null @@ -1,110 +0,0 @@ -google.cloud.metastore.v1beta.NetworkConfig - */ -class NetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private $consumers; - /** - * Enables custom routes to be imported and exported for the Dataproc - * Metastore service's peered VPC network. - * - * Generated from protobuf field bool custom_routes_enabled = 2; - */ - protected $custom_routes_enabled = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Metastore\V1beta\NetworkConfig\Consumer>|\Google\Protobuf\Internal\RepeatedField $consumers - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * @type bool $custom_routes_enabled - * Enables custom routes to be imported and exported for the Dataproc - * Metastore service's peered VPC network. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConsumers() - { - return $this->consumers; - } - - /** - * Immutable. The consumer-side network configuration for the Dataproc - * Metastore instance. - * - * Generated from protobuf field repeated .google.cloud.metastore.v1beta.NetworkConfig.Consumer consumers = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @param array<\Google\Cloud\Metastore\V1beta\NetworkConfig\Consumer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConsumers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Metastore\V1beta\NetworkConfig\Consumer::class); - $this->consumers = $arr; - - return $this; - } - - /** - * Enables custom routes to be imported and exported for the Dataproc - * Metastore service's peered VPC network. - * - * Generated from protobuf field bool custom_routes_enabled = 2; - * @return bool - */ - public function getCustomRoutesEnabled() - { - return $this->custom_routes_enabled; - } - - /** - * Enables custom routes to be imported and exported for the Dataproc - * Metastore service's peered VPC network. - * - * Generated from protobuf field bool custom_routes_enabled = 2; - * @param bool $var - * @return $this - */ - public function setCustomRoutesEnabled($var) - { - GPBUtil::checkBool($var); - $this->custom_routes_enabled = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/NetworkConfig/Consumer.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/NetworkConfig/Consumer.php deleted file mode 100644 index 7ad730ff786a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/NetworkConfig/Consumer.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.metastore.v1beta.NetworkConfig.Consumer - */ -class Consumer extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The URI of the endpoint used to access the metastore - * service. - * - * Generated from protobuf field string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint_uri = ''; - /** - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $endpoint_location = ''; - protected $vpc_resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subnetwork - * Immutable. The subnetwork of the customer project from which an IP - * address is reserved and used as the Dataproc Metastore service's - * endpoint. It is accessible to hosts in the subnet and to all - * hosts in a subnet in the same region and same network. There must - * be at least one IP address available in the subnet's primary range. The - * subnet is specified in the following form: - * `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}` - * @type string $endpoint_uri - * Output only. The URI of the endpoint used to access the metastore - * service. - * @type string $endpoint_location - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The subnetwork of the customer project from which an IP - * address is reserved and used as the Dataproc Metastore service's - * endpoint. It is accessible to hosts in the subnet and to all - * hosts in a subnet in the same region and same network. There must - * be at least one IP address available in the subnet's primary range. The - * subnet is specified in the following form: - * `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}` - * - * Generated from protobuf field string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getSubnetwork() - { - return $this->readOneof(1); - } - - public function hasSubnetwork() - { - return $this->hasOneof(1); - } - - /** - * Immutable. The subnetwork of the customer project from which an IP - * address is reserved and used as the Dataproc Metastore service's - * endpoint. It is accessible to hosts in the subnet and to all - * hosts in a subnet in the same region and same network. There must - * be at least one IP address available in the subnet's primary range. The - * subnet is specified in the following form: - * `projects/{project_number}/regions/{region_id}/subnetworks/{subnetwork_id}` - * - * Generated from protobuf field string subnetwork = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Output only. The URI of the endpoint used to access the metastore - * service. - * - * Generated from protobuf field string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpointUri() - { - return $this->endpoint_uri; - } - - /** - * Output only. The URI of the endpoint used to access the metastore - * service. - * - * Generated from protobuf field string endpoint_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_uri = $var; - - return $this; - } - - /** - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getEndpointLocation() - { - return $this->endpoint_location; - } - - /** - * Output only. The location of the endpoint URI. Format: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string endpoint_location = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEndpointLocation($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_location = $var; - - return $this; - } - - /** - * @return string - */ - public function getVpcResource() - { - return $this->whichOneof("vpc_resource"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Consumer::class, \Google\Cloud\Metastore\V1beta\NetworkConfig_Consumer::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/OperationMetadata.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/OperationMetadata.php deleted file mode 100644 index e0a817144fa2..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.metastore.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 caller 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 = ''; - - /** - * 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 caller 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\Metastore\V1Beta\Metastore::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 caller 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 caller 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; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/QueryMetadataRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/QueryMetadataRequest.php deleted file mode 100644 index fcab55a190ee..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/QueryMetadataRequest.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.metastore.v1beta.QueryMetadataRequest - */ -class QueryMetadataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $query - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to query - * metadata, in the following format: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. A read-only SQL query to execute against the metadata database. - * The query cannot change or mutate the data. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/QueryMetadataResponse.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/QueryMetadataResponse.php deleted file mode 100644 index c9ce754485c8..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/QueryMetadataResponse.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.metastore.v1beta.QueryMetadataResponse - */ -class QueryMetadataResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * - * Generated from protobuf field string result_manifest_uri = 1; - */ - protected $result_manifest_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $result_manifest_uri - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * - * Generated from protobuf field string result_manifest_uri = 1; - * @return string - */ - public function getResultManifestUri() - { - return $this->result_manifest_uri; - } - - /** - * The manifest URI is link to a JSON instance in Cloud Storage. - * This instance manifests immediately along with QueryMetadataResponse. The - * content of the URI is not retriable until the long-running operation query - * against the metadata finishes. - * - * Generated from protobuf field string result_manifest_uri = 1; - * @param string $var - * @return $this - */ - public function setResultManifestUri($var) - { - GPBUtil::checkString($var, True); - $this->result_manifest_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RemoveIamPolicyRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RemoveIamPolicyRequest.php deleted file mode 100644 index ef9bdbaada41..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RemoveIamPolicyRequest.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.metastore.v1beta.RemoveIamPolicyRequest - */ -class RemoveIamPolicyRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the dataplane resource to remove - * IAM policy, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}` - * or - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $resource = ''; - /** - * Optional. Removes IAM policy attached to database or table asynchronously - * when it is set. The default is false. - * - * Generated from protobuf field bool asynchronous = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $asynchronous = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource - * Required. The relative resource name of the dataplane resource to remove - * IAM policy, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}` - * or - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`. - * @type bool $asynchronous - * Optional. Removes IAM policy attached to database or table asynchronously - * when it is set. The default is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the dataplane resource to remove - * IAM policy, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}` - * or - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Required. The relative resource name of the dataplane resource to remove - * IAM policy, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}` - * or - * `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`. - * - * Generated from protobuf field string resource = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * Optional. Removes IAM policy attached to database or table asynchronously - * when it is set. The default is false. - * - * Generated from protobuf field bool asynchronous = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAsynchronous() - { - return $this->asynchronous; - } - - /** - * Optional. Removes IAM policy attached to database or table asynchronously - * when it is set. The default is false. - * - * Generated from protobuf field bool asynchronous = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAsynchronous($var) - { - GPBUtil::checkBool($var); - $this->asynchronous = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RemoveIamPolicyResponse.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RemoveIamPolicyResponse.php deleted file mode 100644 index 97cd799fd970..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RemoveIamPolicyResponse.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.metastore.v1beta.RemoveIamPolicyResponse - */ -class RemoveIamPolicyResponse extends \Google\Protobuf\Internal\Message -{ - /** - * True if the policy is successfully removed. - * - * Generated from protobuf field bool success = 1; - */ - protected $success = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $success - * True if the policy is successfully removed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * True if the policy is successfully removed. - * - * Generated from protobuf field bool success = 1; - * @return bool - */ - public function getSuccess() - { - return $this->success; - } - - /** - * True if the policy is successfully removed. - * - * Generated from protobuf field bool success = 1; - * @param bool $var - * @return $this - */ - public function setSuccess($var) - { - GPBUtil::checkBool($var); - $this->success = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore.php deleted file mode 100644 index 08b45e5feddb..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.metastore.v1beta.Restore - */ -class Restore extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time when the restore started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time when the restore ended. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. The current state of the restore. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - */ - protected $backup = ''; - /** - * Output only. The type of restore. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = 0; - /** - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * - * Generated from protobuf field string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $details = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time when the restore started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time when the restore ended. - * @type int $state - * Output only. The current state of the restore. - * @type string $backup - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * @type int $type - * Output only. The type of restore. - * @type string $details - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time when the restore started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The time when the restore started. - * - * 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. The time when the restore ended. - * - * 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 when the restore ended. - * - * 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 current state of the restore. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the restore. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Restore.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\Restore\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @return string - */ - public function getBackup() - { - return $this->backup; - } - - /** - * Output only. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkString($var, True); - $this->backup = $var; - - return $this; - } - - /** - * Output only. The type of restore. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The type of restore. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Restore.RestoreType type = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\Restore\RestoreType::class); - $this->type = $var; - - return $this; - } - - /** - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * - * Generated from protobuf field string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDetails() - { - return $this->details; - } - - /** - * Output only. The restore details containing the revision of the service to - * be restored to, in format of JSON. - * - * Generated from protobuf field string details = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkString($var, True); - $this->details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore/RestoreType.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore/RestoreType.php deleted file mode 100644 index 72d5ccd06ea4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore/RestoreType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1beta.Restore.RestoreType - */ -class RestoreType -{ - /** - * The restore type is unknown. - * - * Generated from protobuf enum RESTORE_TYPE_UNSPECIFIED = 0; - */ - const RESTORE_TYPE_UNSPECIFIED = 0; - /** - * The service's metadata and configuration are restored. - * - * Generated from protobuf enum FULL = 1; - */ - const FULL = 1; - /** - * Only the service's metadata is restored. - * - * Generated from protobuf enum METADATA_ONLY = 2; - */ - const METADATA_ONLY = 2; - - private static $valueToName = [ - self::RESTORE_TYPE_UNSPECIFIED => 'RESTORE_TYPE_UNSPECIFIED', - self::FULL => 'FULL', - self::METADATA_ONLY => 'METADATA_ONLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RestoreType::class, \Google\Cloud\Metastore\V1beta\Restore_RestoreType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore/State.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore/State.php deleted file mode 100644 index 9d8d0bc75bfa..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Restore/State.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.metastore.v1beta.Restore.State - */ -class State -{ - /** - * The state of the metadata restore is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metadata restore is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The metadata restore completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - /** - * The metadata restore failed. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * The metadata restore is cancelled. - * - * Generated from protobuf enum CANCELLED = 4; - */ - const CANCELLED = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::CANCELLED => '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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1beta\Restore_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RestoreServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RestoreServiceRequest.php deleted file mode 100644 index 1e6550943029..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/RestoreServiceRequest.php +++ /dev/null @@ -1,244 +0,0 @@ -google.cloud.metastore.v1beta.RestoreServiceRequest - */ -class RestoreServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $backup = ''; - /** - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $restore_type = 0; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $service Required. The relative resource name of the metastore service to run - * restore, in the following form: - * - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. Please see - * {@see DataprocMetastoreClient::serviceName()} for help formatting this field. - * @param string $backup Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. Please see - * {@see DataprocMetastoreClient::backupName()} for help formatting this field. - * - * @return \Google\Cloud\Metastore\V1beta\RestoreServiceRequest - * - * @experimental - */ - public static function build(string $service, string $backup): self - { - return (new self()) - ->setService($service) - ->setBackup($backup); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * @type string $backup - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * @type int $restore_type - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The relative resource name of the metastore service to run - * restore, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getBackup() - { - return $this->backup; - } - - /** - * Required. The relative resource name of the metastore service backup to - * restore from, in the following form: - * `projects/{project_id}/locations/{location_id}/services/{service_id}/backups/{backup_id}`. - * - * Generated from protobuf field string backup = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBackup($var) - { - GPBUtil::checkString($var, True); - $this->backup = $var; - - return $this; - } - - /** - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getRestoreType() - { - return $this->restore_type; - } - - /** - * Optional. The type of restore. If unspecified, defaults to `METADATA_ONLY`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Restore.RestoreType restore_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setRestoreType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\Restore\RestoreType::class); - $this->restore_type = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format). - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ScalingConfig.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ScalingConfig.php deleted file mode 100644 index e186117be2c7..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ScalingConfig.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.metastore.v1beta.ScalingConfig - */ -class ScalingConfig extends \Google\Protobuf\Internal\Message -{ - protected $scaling_model; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $instance_size - * An enum of readable instance sizes, with each instance size mapping to a - * float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) - * @type float $scaling_factor - * Scaling factor, increments of 0.1 for values less than 1.0, and - * increments of 1.0 for values greater than 1.0. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * An enum of readable instance sizes, with each instance size mapping to a - * float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) - * - * Generated from protobuf field .google.cloud.metastore.v1beta.ScalingConfig.InstanceSize instance_size = 1; - * @return int - */ - public function getInstanceSize() - { - return $this->readOneof(1); - } - - public function hasInstanceSize() - { - return $this->hasOneof(1); - } - - /** - * An enum of readable instance sizes, with each instance size mapping to a - * float value (e.g. InstanceSize.EXTRA_SMALL = scaling_factor(0.1)) - * - * Generated from protobuf field .google.cloud.metastore.v1beta.ScalingConfig.InstanceSize instance_size = 1; - * @param int $var - * @return $this - */ - public function setInstanceSize($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\ScalingConfig\InstanceSize::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Scaling factor, increments of 0.1 for values less than 1.0, and - * increments of 1.0 for values greater than 1.0. - * - * Generated from protobuf field float scaling_factor = 2; - * @return float - */ - public function getScalingFactor() - { - return $this->readOneof(2); - } - - public function hasScalingFactor() - { - return $this->hasOneof(2); - } - - /** - * Scaling factor, increments of 0.1 for values less than 1.0, and - * increments of 1.0 for values greater than 1.0. - * - * Generated from protobuf field float scaling_factor = 2; - * @param float $var - * @return $this - */ - public function setScalingFactor($var) - { - GPBUtil::checkFloat($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getScalingModel() - { - return $this->whichOneof("scaling_model"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ScalingConfig/InstanceSize.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ScalingConfig/InstanceSize.php deleted file mode 100644 index 5b62c489ed94..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/ScalingConfig/InstanceSize.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.metastore.v1beta.ScalingConfig.InstanceSize - */ -class InstanceSize -{ - /** - * Unspecified instance size - * - * Generated from protobuf enum INSTANCE_SIZE_UNSPECIFIED = 0; - */ - const INSTANCE_SIZE_UNSPECIFIED = 0; - /** - * Extra small instance size, maps to a scaling factor of 0.1. - * - * Generated from protobuf enum EXTRA_SMALL = 1; - */ - const EXTRA_SMALL = 1; - /** - * Small instance size, maps to a scaling factor of 0.5. - * - * Generated from protobuf enum SMALL = 2; - */ - const SMALL = 2; - /** - * Medium instance size, maps to a scaling factor of 1.0. - * - * Generated from protobuf enum MEDIUM = 3; - */ - const MEDIUM = 3; - /** - * Large instance size, maps to a scaling factor of 3.0. - * - * Generated from protobuf enum LARGE = 4; - */ - const LARGE = 4; - /** - * Extra large instance size, maps to a scaling factor of 6.0. - * - * Generated from protobuf enum EXTRA_LARGE = 5; - */ - const EXTRA_LARGE = 5; - - private static $valueToName = [ - self::INSTANCE_SIZE_UNSPECIFIED => 'INSTANCE_SIZE_UNSPECIFIED', - self::EXTRA_SMALL => 'EXTRA_SMALL', - self::SMALL => 'SMALL', - self::MEDIUM => 'MEDIUM', - self::LARGE => 'LARGE', - self::EXTRA_LARGE => 'EXTRA_LARGE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InstanceSize::class, \Google\Cloud\Metastore\V1beta\ScalingConfig_InstanceSize::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Secret.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Secret.php deleted file mode 100644 index 6ce2915dba4f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Secret.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.metastore.v1beta.Secret - */ -class Secret extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cloud_secret - * The relative resource name of a Secret Manager secret version, in the - * following form: - * `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The relative resource name of a Secret Manager secret version, in the - * following form: - * `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. - * - * Generated from protobuf field string cloud_secret = 2; - * @return string - */ - public function getCloudSecret() - { - return $this->readOneof(2); - } - - public function hasCloudSecret() - { - return $this->hasOneof(2); - } - - /** - * The relative resource name of a Secret Manager secret version, in the - * following form: - * `projects/{project_number}/secrets/{secret_id}/versions/{version_id}`. - * - * Generated from protobuf field string cloud_secret = 2; - * @param string $var - * @return $this - */ - public function setCloudSecret($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service.php deleted file mode 100644 index 5c9d221a90af..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service.php +++ /dev/null @@ -1,942 +0,0 @@ -google.cloud.metastore.v1beta.Service - */ -class Service extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Output only. The time when the metastore service was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the metastore service was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * User-defined labels for the metastore service. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * - * Generated from protobuf field string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - */ - protected $network = ''; - /** - * Output only. The URI of the endpoint used to access the metastore service. - * - * Generated from protobuf field string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $endpoint_uri = ''; - /** - * The TCP port at which the metastore service is reached. Default: 9083. - * - * Generated from protobuf field int32 port = 9; - */ - protected $port = 0; - /** - * Output only. The current state of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. Additional information about the current state of the - * metastore service, if available. - * - * Generated from protobuf field string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state_message = ''; - /** - * Output only. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * - * Generated from protobuf field string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $artifact_gcs_uri = ''; - /** - * The tier of the service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.Tier tier = 13; - */ - protected $tier = 0; - /** - * The setting that defines how metastore metadata should be integrated with - * external services and systems. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14; - */ - protected $metadata_integration = null; - /** - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15; - */ - protected $maintenance_window = null; - /** - * Output only. The globally unique resource identifier of the metastore - * service. - * - * Generated from protobuf field string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The metadata management activities of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $metadata_management_activity = null; - /** - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $release_channel = 0; - /** - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $encryption_config = null; - /** - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.NetworkConfig network_config = 21; - */ - protected $network_config = null; - /** - * Immutable. The database type that the Metastore service stores its data. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $database_type = 0; - /** - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23; - */ - protected $telemetry_config = null; - /** - * Scaling configuration of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24; - */ - protected $scaling_config = null; - protected $metastore_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Metastore\V1beta\HiveMetastoreConfig $hive_metastore_config - * Configuration information specific to running Hive metastore - * software as the metastore service. - * @type string $name - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the metastore service was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the metastore service was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * User-defined labels for the metastore service. - * @type string $network - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * @type string $endpoint_uri - * Output only. The URI of the endpoint used to access the metastore service. - * @type int $port - * The TCP port at which the metastore service is reached. Default: 9083. - * @type int $state - * Output only. The current state of the metastore service. - * @type string $state_message - * Output only. Additional information about the current state of the - * metastore service, if available. - * @type string $artifact_gcs_uri - * Output only. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * @type int $tier - * The tier of the service. - * @type \Google\Cloud\Metastore\V1beta\MetadataIntegration $metadata_integration - * The setting that defines how metastore metadata should be integrated with - * external services and systems. - * @type \Google\Cloud\Metastore\V1beta\MaintenanceWindow $maintenance_window - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * @type string $uid - * Output only. The globally unique resource identifier of the metastore - * service. - * @type \Google\Cloud\Metastore\V1beta\MetadataManagementActivity $metadata_management_activity - * Output only. The metadata management activities of the metastore service. - * @type int $release_channel - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * @type \Google\Cloud\Metastore\V1beta\EncryptionConfig $encryption_config - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * @type \Google\Cloud\Metastore\V1beta\NetworkConfig $network_config - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * @type int $database_type - * Immutable. The database type that the Metastore service stores its data. - * @type \Google\Cloud\Metastore\V1beta\TelemetryConfig $telemetry_config - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * @type \Google\Cloud\Metastore\V1beta\ScalingConfig $scaling_config - * Scaling configuration of the metastore service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Configuration information specific to running Hive metastore - * software as the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5; - * @return \Google\Cloud\Metastore\V1beta\HiveMetastoreConfig|null - */ - public function getHiveMetastoreConfig() - { - return $this->readOneof(5); - } - - public function hasHiveMetastoreConfig() - { - return $this->hasOneof(5); - } - - /** - * Configuration information specific to running Hive metastore - * software as the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.HiveMetastoreConfig hive_metastore_config = 5; - * @param \Google\Cloud\Metastore\V1beta\HiveMetastoreConfig $var - * @return $this - */ - public function setHiveMetastoreConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\HiveMetastoreConfig::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The relative resource name of the metastore service, in the - * following format: - * `projects/{project_number}/locations/{location_id}/services/{service_id}`. - * - * 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 when the metastore service was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the metastore service was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the metastore service was 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 when the metastore service was 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; - } - - /** - * User-defined labels for the metastore service. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * User-defined labels for the metastore service. - * - * 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; - } - - /** - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * - * Generated from protobuf field string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Immutable. The relative resource name of the VPC network on which the - * instance can be accessed. It is specified in the following form: - * `projects/{project_number}/global/networks/{network_id}`. - * - * Generated from protobuf field string network = 7 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Output only. The URI of the endpoint used to access the metastore service. - * - * Generated from protobuf field string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEndpointUri() - { - return $this->endpoint_uri; - } - - /** - * Output only. The URI of the endpoint used to access the metastore service. - * - * Generated from protobuf field string endpoint_uri = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEndpointUri($var) - { - GPBUtil::checkString($var, True); - $this->endpoint_uri = $var; - - return $this; - } - - /** - * The TCP port at which the metastore service is reached. Default: 9083. - * - * Generated from protobuf field int32 port = 9; - * @return int - */ - public function getPort() - { - return $this->port; - } - - /** - * The TCP port at which the metastore service is reached. Default: 9083. - * - * Generated from protobuf field int32 port = 9; - * @param int $var - * @return $this - */ - public function setPort($var) - { - GPBUtil::checkInt32($var); - $this->port = $var; - - return $this; - } - - /** - * Output only. The current state of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The current state of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\Service\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Additional information about the current state of the - * metastore service, if available. - * - * Generated from protobuf field string state_message = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * Output only. Additional information about the current state of the - * metastore service, if available. - * - * Generated from protobuf field string state_message = 11 [(.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. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * - * Generated from protobuf field string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getArtifactGcsUri() - { - return $this->artifact_gcs_uri; - } - - /** - * Output only. A Cloud Storage URI (starting with `gs://`) that specifies - * where artifacts related to the metastore service are stored. - * - * Generated from protobuf field string artifact_gcs_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setArtifactGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->artifact_gcs_uri = $var; - - return $this; - } - - /** - * The tier of the service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.Tier tier = 13; - * @return int - */ - public function getTier() - { - return $this->tier; - } - - /** - * The tier of the service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.Tier tier = 13; - * @param int $var - * @return $this - */ - public function setTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\Service\Tier::class); - $this->tier = $var; - - return $this; - } - - /** - * The setting that defines how metastore metadata should be integrated with - * external services and systems. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14; - * @return \Google\Cloud\Metastore\V1beta\MetadataIntegration|null - */ - public function getMetadataIntegration() - { - return $this->metadata_integration; - } - - public function hasMetadataIntegration() - { - return isset($this->metadata_integration); - } - - public function clearMetadataIntegration() - { - unset($this->metadata_integration); - } - - /** - * The setting that defines how metastore metadata should be integrated with - * external services and systems. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataIntegration metadata_integration = 14; - * @param \Google\Cloud\Metastore\V1beta\MetadataIntegration $var - * @return $this - */ - public function setMetadataIntegration($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\MetadataIntegration::class); - $this->metadata_integration = $var; - - return $this; - } - - /** - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15; - * @return \Google\Cloud\Metastore\V1beta\MaintenanceWindow|null - */ - public function getMaintenanceWindow() - { - return $this->maintenance_window; - } - - public function hasMaintenanceWindow() - { - return isset($this->maintenance_window); - } - - public function clearMaintenanceWindow() - { - unset($this->maintenance_window); - } - - /** - * The one hour maintenance window of the metastore service. This specifies - * when the service can be restarted for maintenance purposes in UTC time. - * Maintenance window is not needed for services with the SPANNER - * database type. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MaintenanceWindow maintenance_window = 15; - * @param \Google\Cloud\Metastore\V1beta\MaintenanceWindow $var - * @return $this - */ - public function setMaintenanceWindow($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\MaintenanceWindow::class); - $this->maintenance_window = $var; - - return $this; - } - - /** - * Output only. The globally unique resource identifier of the metastore - * service. - * - * Generated from protobuf field string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. The globally unique resource identifier of the metastore - * service. - * - * Generated from protobuf field string uid = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The metadata management activities of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Metastore\V1beta\MetadataManagementActivity|null - */ - public function getMetadataManagementActivity() - { - return $this->metadata_management_activity; - } - - public function hasMetadataManagementActivity() - { - return isset($this->metadata_management_activity); - } - - public function clearMetadataManagementActivity() - { - unset($this->metadata_management_activity); - } - - /** - * Output only. The metadata management activities of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataManagementActivity metadata_management_activity = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Metastore\V1beta\MetadataManagementActivity $var - * @return $this - */ - public function setMetadataManagementActivity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\MetadataManagementActivity::class); - $this->metadata_management_activity = $var; - - return $this; - } - - /** - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getReleaseChannel() - { - return $this->release_channel; - } - - /** - * Immutable. The release channel of the service. - * If unspecified, defaults to `STABLE`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.ReleaseChannel release_channel = 19 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setReleaseChannel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\Service\ReleaseChannel::class); - $this->release_channel = $var; - - return $this; - } - - /** - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE]; - * @return \Google\Cloud\Metastore\V1beta\EncryptionConfig|null - */ - public function getEncryptionConfig() - { - return $this->encryption_config; - } - - public function hasEncryptionConfig() - { - return isset($this->encryption_config); - } - - public function clearEncryptionConfig() - { - unset($this->encryption_config); - } - - /** - * Immutable. Information used to configure the Dataproc Metastore service to - * encrypt customer data at rest. Cannot be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.EncryptionConfig encryption_config = 20 [(.google.api.field_behavior) = IMMUTABLE]; - * @param \Google\Cloud\Metastore\V1beta\EncryptionConfig $var - * @return $this - */ - public function setEncryptionConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\EncryptionConfig::class); - $this->encryption_config = $var; - - return $this; - } - - /** - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.NetworkConfig network_config = 21; - * @return \Google\Cloud\Metastore\V1beta\NetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * The configuration specifying the network settings for the - * Dataproc Metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.NetworkConfig network_config = 21; - * @param \Google\Cloud\Metastore\V1beta\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * Immutable. The database type that the Metastore service stores its data. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getDatabaseType() - { - return $this->database_type; - } - - /** - * Immutable. The database type that the Metastore service stores its data. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service.DatabaseType database_type = 22 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setDatabaseType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\Service\DatabaseType::class); - $this->database_type = $var; - - return $this; - } - - /** - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23; - * @return \Google\Cloud\Metastore\V1beta\TelemetryConfig|null - */ - public function getTelemetryConfig() - { - return $this->telemetry_config; - } - - public function hasTelemetryConfig() - { - return isset($this->telemetry_config); - } - - public function clearTelemetryConfig() - { - unset($this->telemetry_config); - } - - /** - * The configuration specifying telemetry settings for the Dataproc Metastore - * service. If unspecified defaults to `JSON`. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.TelemetryConfig telemetry_config = 23; - * @param \Google\Cloud\Metastore\V1beta\TelemetryConfig $var - * @return $this - */ - public function setTelemetryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\TelemetryConfig::class); - $this->telemetry_config = $var; - - return $this; - } - - /** - * Scaling configuration of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24; - * @return \Google\Cloud\Metastore\V1beta\ScalingConfig|null - */ - public function getScalingConfig() - { - return $this->scaling_config; - } - - public function hasScalingConfig() - { - return isset($this->scaling_config); - } - - public function clearScalingConfig() - { - unset($this->scaling_config); - } - - /** - * Scaling configuration of the metastore service. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.ScalingConfig scaling_config = 24; - * @param \Google\Cloud\Metastore\V1beta\ScalingConfig $var - * @return $this - */ - public function setScalingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\ScalingConfig::class); - $this->scaling_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getMetastoreConfig() - { - return $this->whichOneof("metastore_config"); - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/DatabaseType.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/DatabaseType.php deleted file mode 100644 index d4c91edc9267..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/DatabaseType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.metastore.v1beta.Service.DatabaseType - */ -class DatabaseType -{ - /** - * The DATABASE_TYPE is not set. - * - * Generated from protobuf enum DATABASE_TYPE_UNSPECIFIED = 0; - */ - const DATABASE_TYPE_UNSPECIFIED = 0; - /** - * MySQL is used to persist the metastore data. - * - * Generated from protobuf enum MYSQL = 1; - */ - const MYSQL = 1; - /** - * Spanner is used to persist the metastore data. - * - * Generated from protobuf enum SPANNER = 2; - */ - const SPANNER = 2; - - private static $valueToName = [ - self::DATABASE_TYPE_UNSPECIFIED => 'DATABASE_TYPE_UNSPECIFIED', - self::MYSQL => 'MYSQL', - self::SPANNER => 'SPANNER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Metastore\V1beta\Service_DatabaseType::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/ReleaseChannel.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/ReleaseChannel.php deleted file mode 100644 index 1faf78badb2d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/ReleaseChannel.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.metastore.v1beta.Service.ReleaseChannel - */ -class ReleaseChannel -{ - /** - * Release channel is not specified. - * - * Generated from protobuf enum RELEASE_CHANNEL_UNSPECIFIED = 0; - */ - const RELEASE_CHANNEL_UNSPECIFIED = 0; - /** - * The `CANARY` release channel contains the newest features, which may be - * unstable and subject to unresolved issues with no known workarounds. - * Services using the `CANARY` release channel are not subject to any SLAs. - * - * Generated from protobuf enum CANARY = 1; - */ - const CANARY = 1; - /** - * The `STABLE` release channel contains features that are considered stable - * and have been validated for production use. - * - * Generated from protobuf enum STABLE = 2; - */ - const STABLE = 2; - - private static $valueToName = [ - self::RELEASE_CHANNEL_UNSPECIFIED => 'RELEASE_CHANNEL_UNSPECIFIED', - self::CANARY => 'CANARY', - self::STABLE => 'STABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReleaseChannel::class, \Google\Cloud\Metastore\V1beta\Service_ReleaseChannel::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/State.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/State.php deleted file mode 100644 index fb8f23bdab4f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/State.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.metastore.v1beta.Service.State - */ -class State -{ - /** - * The state of the metastore service is unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The metastore service is in the process of being created. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The metastore service is running and ready to serve queries. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The metastore service is entering suspension. Its query-serving - * availability may cease unexpectedly. - * - * Generated from protobuf enum SUSPENDING = 3; - */ - const SUSPENDING = 3; - /** - * The metastore service is suspended and unable to serve queries. - * - * Generated from protobuf enum SUSPENDED = 4; - */ - const SUSPENDED = 4; - /** - * The metastore service is being updated. It remains usable but cannot - * accept additional update requests or be deleted at this time. - * - * Generated from protobuf enum UPDATING = 5; - */ - const UPDATING = 5; - /** - * The metastore service is undergoing deletion. It cannot be used. - * - * Generated from protobuf enum DELETING = 6; - */ - const DELETING = 6; - /** - * The metastore service has encountered an error and cannot be used. The - * metastore service should be deleted. - * - * Generated from protobuf enum ERROR = 7; - */ - const ERROR = 7; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::ACTIVE => 'ACTIVE', - self::SUSPENDING => 'SUSPENDING', - self::SUSPENDED => 'SUSPENDED', - self::UPDATING => 'UPDATING', - self::DELETING => 'DELETING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Metastore\V1beta\Service_State::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/Tier.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/Tier.php deleted file mode 100644 index efef7c59b6c1..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/Service/Tier.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.metastore.v1beta.Service.Tier - */ -class Tier -{ - /** - * The tier is not set. - * - * Generated from protobuf enum TIER_UNSPECIFIED = 0; - */ - const TIER_UNSPECIFIED = 0; - /** - * The developer tier provides limited scalability and no fault tolerance. - * Good for low-cost proof-of-concept. - * - * Generated from protobuf enum DEVELOPER = 1; - */ - const DEVELOPER = 1; - /** - * The enterprise tier provides multi-zone high availability, and sufficient - * scalability for enterprise-level Dataproc Metastore workloads. - * - * Generated from protobuf enum ENTERPRISE = 3; - */ - const ENTERPRISE = 3; - - private static $valueToName = [ - self::TIER_UNSPECIFIED => 'TIER_UNSPECIFIED', - self::DEVELOPER => 'DEVELOPER', - self::ENTERPRISE => 'ENTERPRISE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Tier::class, \Google\Cloud\Metastore\V1beta\Service_Tier::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/TelemetryConfig.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/TelemetryConfig.php deleted file mode 100644 index 01e916b9bdc0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/TelemetryConfig.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.metastore.v1beta.TelemetryConfig - */ -class TelemetryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The output format of the Dataproc Metastore service's logs. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.TelemetryConfig.LogFormat log_format = 1; - */ - protected $log_format = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $log_format - * The output format of the Dataproc Metastore service's logs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * The output format of the Dataproc Metastore service's logs. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.TelemetryConfig.LogFormat log_format = 1; - * @return int - */ - public function getLogFormat() - { - return $this->log_format; - } - - /** - * The output format of the Dataproc Metastore service's logs. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.TelemetryConfig.LogFormat log_format = 1; - * @param int $var - * @return $this - */ - public function setLogFormat($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Metastore\V1beta\TelemetryConfig\LogFormat::class); - $this->log_format = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/TelemetryConfig/LogFormat.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/TelemetryConfig/LogFormat.php deleted file mode 100644 index 31a5ac103767..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/TelemetryConfig/LogFormat.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.metastore.v1beta.TelemetryConfig.LogFormat - */ -class LogFormat -{ - /** - * The LOG_FORMAT is not set. - * - * Generated from protobuf enum LOG_FORMAT_UNSPECIFIED = 0; - */ - const LOG_FORMAT_UNSPECIFIED = 0; - /** - * Logging output uses the legacy `textPayload` format. - * - * Generated from protobuf enum LEGACY = 1; - */ - const LEGACY = 1; - /** - * Logging output uses the `jsonPayload` format. - * - * Generated from protobuf enum JSON = 2; - */ - const JSON = 2; - - private static $valueToName = [ - self::LOG_FORMAT_UNSPECIFIED => 'LOG_FORMAT_UNSPECIFIED', - self::LEGACY => 'LEGACY', - self::JSON => 'JSON', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LogFormat::class, \Google\Cloud\Metastore\V1beta\TelemetryConfig_LogFormat::class); - diff --git a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateFederationRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateFederationRequest.php deleted file mode 100644 index 5a5e93df79ba..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateFederationRequest.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.metastore.v1beta.UpdateFederationRequest - */ -class UpdateFederationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Federation federation = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $federation = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Metastore\V1beta\Federation $federation Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * @return \Google\Cloud\Metastore\V1beta\UpdateFederationRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Metastore\V1beta\Federation $federation, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setFederation($federation) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * @type \Google\Cloud\Metastore\V1beta\Federation $federation - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\MetastoreFederation::initOnce(); - parent::__construct($data); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore federation resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Federation federation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1beta\Federation|null - */ - public function getFederation() - { - return $this->federation; - } - - public function hasFederation() - { - return isset($this->federation); - } - - public function clearFederation() - { - unset($this->federation); - } - - /** - * Required. The metastore federation to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore federation's `name` field is used to identify the - * metastore service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Federation federation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1beta\Federation $var - * @return $this - */ - public function setFederation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\Federation::class); - $this->federation = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateMetadataImportRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateMetadataImportRequest.php deleted file mode 100644 index 1dba72563598..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateMetadataImportRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.cloud.metastore.v1beta.UpdateMetadataImportRequest - */ -class UpdateMetadataImportRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport metadata_import = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $metadata_import = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Metastore\V1beta\MetadataImport $metadataImport Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * @return \Google\Cloud\Metastore\V1beta\UpdateMetadataImportRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Metastore\V1beta\MetadataImport $metadataImport, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMetadataImport($metadataImport) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * @type \Google\Cloud\Metastore\V1beta\MetadataImport $metadata_import - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metadata import resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport metadata_import = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1beta\MetadataImport|null - */ - public function getMetadataImport() - { - return $this->metadata_import; - } - - public function hasMetadataImport() - { - return isset($this->metadata_import); - } - - public function clearMetadataImport() - { - unset($this->metadata_import); - } - - /** - * Required. The metadata import to update. The server only merges fields - * in the import if they are specified in `update_mask`. - * The metadata import's `name` field is used to identify the metastore - * import to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.MetadataImport metadata_import = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1beta\MetadataImport $var - * @return $this - */ - public function setMetadataImport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\MetadataImport::class); - $this->metadata_import = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateServiceRequest.php b/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateServiceRequest.php deleted file mode 100644 index 204f163672f2..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/proto/src/Google/Cloud/Metastore/V1beta/UpdateServiceRequest.php +++ /dev/null @@ -1,238 +0,0 @@ -google.cloud.metastore.v1beta.UpdateServiceRequest - */ -class UpdateServiceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = null; - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param \Google\Cloud\Metastore\V1beta\Service $service Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * @return \Google\Cloud\Metastore\V1beta\UpdateServiceRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Metastore\V1beta\Service $service, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setService($service) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * @type \Google\Cloud\Metastore\V1beta\Service $service - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * @type string $request_id - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Metastore\V1Beta\Metastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. A field mask used to specify the fields to be overwritten in the - * metastore service resource by the update. - * Fields specified in the `update_mask` are relative to the resource (not - * to the full request). A field is overwritten if it is in the mask. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Metastore\V1beta\Service|null - */ - public function getService() - { - return $this->service; - } - - public function hasService() - { - return isset($this->service); - } - - public function clearService() - { - unset($this->service); - } - - /** - * Required. The metastore service to update. The server only merges fields - * in the service if they are specified in `update_mask`. - * The metastore service's `name` field is used to identify the metastore - * service to be updated. - * - * Generated from protobuf field .google.cloud.metastore.v1beta.Service service = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Metastore\V1beta\Service $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Metastore\V1beta\Service::class); - $this->service = $var; - - return $this; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * Generated from protobuf field string request_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. A request ID. Specify a unique request ID to allow the server to - * ignore the request if it has completed. The server will ignore subsequent - * requests that provide a duplicate request ID for at least 60 minutes after - * the first request. - * For example, if an initial request times out, followed by another request - * with the same request ID, the server ignores the second request to prevent - * the creation of duplicate commitments. - * The request ID must be a valid - * [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Format) - * A zero UUID (00000000-0000-0000-0000-000000000000) is not supported. - * - * 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/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/alter_metadata_resource_location.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/alter_metadata_resource_location.php deleted file mode 100644 index 360ac3361c66..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/alter_metadata_resource_location.php +++ /dev/null @@ -1,104 +0,0 @@ -setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->alterMetadataResourceLocation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var AlterMetadataResourceLocationResponse $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = '[RESOURCE_NAME]'; - $locationUri = '[LOCATION_URI]'; - - alter_metadata_resource_location_sample($formattedService, $resourceName, $locationUri); -} -// [END metastore_v1beta_generated_DataprocMetastore_AlterMetadataResourceLocation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_backup.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_backup.php deleted file mode 100644 index 9689bde340b9..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_backup.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->createBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Backup $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $backupId = '[BACKUP_ID]'; - - create_backup_sample($formattedParent, $backupId); -} -// [END metastore_v1beta_generated_DataprocMetastore_CreateBackup_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_metadata_import.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_metadata_import.php deleted file mode 100644 index dfa0129e1da2..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_metadata_import.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setMetadataImportId($metadataImportId) - ->setMetadataImport($metadataImport); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->createMetadataImport($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataImport $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 = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $metadataImportId = '[METADATA_IMPORT_ID]'; - - create_metadata_import_sample($formattedParent, $metadataImportId); -} -// [END metastore_v1beta_generated_DataprocMetastore_CreateMetadataImport_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_service.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_service.php deleted file mode 100644 index 748364535523..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/create_service.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->createService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Service $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::locationName('[PROJECT]', '[LOCATION]'); - $serviceId = '[SERVICE_ID]'; - - create_service_sample($formattedParent, $serviceId); -} -// [END metastore_v1beta_generated_DataprocMetastore_CreateService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/delete_backup.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/delete_backup.php deleted file mode 100644 index 48d0e9063f86..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/delete_backup.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->deleteBackup($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[BACKUP]' - ); - - delete_backup_sample($formattedName); -} -// [END metastore_v1beta_generated_DataprocMetastore_DeleteBackup_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/delete_service.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/delete_service.php deleted file mode 100644 index d2a0f8a63b82..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/delete_service.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->deleteService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - printf('Operation completed successfully.' . PHP_EOL); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - delete_service_sample($formattedName); -} -// [END metastore_v1beta_generated_DataprocMetastore_DeleteService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/export_metadata.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/export_metadata.php deleted file mode 100644 index e311ae1564a3..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/export_metadata.php +++ /dev/null @@ -1,86 +0,0 @@ -setService($formattedService); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->exportMetadata($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataExport $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - export_metadata_sample($formattedService); -} -// [END metastore_v1beta_generated_DataprocMetastore_ExportMetadata_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_backup.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_backup.php deleted file mode 100644 index 180f6d7e757c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_backup.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Backup $response */ - $response = $dataprocMetastoreClient->getBackup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[BACKUP]' - ); - - get_backup_sample($formattedName); -} -// [END metastore_v1beta_generated_DataprocMetastore_GetBackup_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_iam_policy.php deleted file mode 100644 index e1a08650d76a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreClient->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 metastore_v1beta_generated_DataprocMetastore_GetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_location.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_location.php deleted file mode 100644 index 19eef4ea436d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1beta_generated_DataprocMetastore_GetLocation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_metadata_import.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_metadata_import.php deleted file mode 100644 index 2fe7f9017cbf..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_metadata_import.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MetadataImport $response */ - $response = $dataprocMetastoreClient->getMetadataImport($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::metadataImportName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[METADATA_IMPORT]' - ); - - get_metadata_import_sample($formattedName); -} -// [END metastore_v1beta_generated_DataprocMetastore_GetMetadataImport_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_service.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_service.php deleted file mode 100644 index cd8a11d85202..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/get_service.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Service $response */ - $response = $dataprocMetastoreClient->getService($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - get_service_sample($formattedName); -} -// [END metastore_v1beta_generated_DataprocMetastore_GetService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_backups.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_backups.php deleted file mode 100644 index cd2255121610..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_backups.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreClient->listBackups($request); - - /** @var Backup $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - list_backups_sample($formattedParent); -} -// [END metastore_v1beta_generated_DataprocMetastore_ListBackups_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_locations.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_locations.php deleted file mode 100644 index 8dca42bf4582..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1beta_generated_DataprocMetastore_ListLocations_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_metadata_imports.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_metadata_imports.php deleted file mode 100644 index f3783b4f4d1d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_metadata_imports.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreClient->listMetadataImports($request); - - /** @var MetadataImport $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 = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - - list_metadata_imports_sample($formattedParent); -} -// [END metastore_v1beta_generated_DataprocMetastore_ListMetadataImports_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_services.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_services.php deleted file mode 100644 index 6a19d5e792df..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/list_services.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreClient->listServices($request); - - /** @var Service $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DataprocMetastoreClient::locationName('[PROJECT]', '[LOCATION]'); - - list_services_sample($formattedParent); -} -// [END metastore_v1beta_generated_DataprocMetastore_ListServices_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/move_table_to_database.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/move_table_to_database.php deleted file mode 100644 index 92bef5174388..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/move_table_to_database.php +++ /dev/null @@ -1,99 +0,0 @@ -setService($formattedService) - ->setTableName($tableName) - ->setDbName($dbName) - ->setDestinationDbName($destinationDbName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->moveTableToDatabase($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MoveTableToDatabaseResponse $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $tableName = '[TABLE_NAME]'; - $dbName = '[DB_NAME]'; - $destinationDbName = '[DESTINATION_DB_NAME]'; - - move_table_to_database_sample($formattedService, $tableName, $dbName, $destinationDbName); -} -// [END metastore_v1beta_generated_DataprocMetastore_MoveTableToDatabase_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/query_metadata.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/query_metadata.php deleted file mode 100644 index e06584427f7a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/query_metadata.php +++ /dev/null @@ -1,90 +0,0 @@ -setService($formattedService) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->queryMetadata($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var QueryMetadataResponse $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $query = '[QUERY]'; - - query_metadata_sample($formattedService, $query); -} -// [END metastore_v1beta_generated_DataprocMetastore_QueryMetadata_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/remove_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/remove_iam_policy.php deleted file mode 100644 index 2897a65d2812..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/remove_iam_policy.php +++ /dev/null @@ -1,75 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var RemoveIamPolicyResponse $response */ - $response = $dataprocMetastoreClient->removeIamPolicy($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - 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]'; - - remove_iam_policy_sample($resource); -} -// [END metastore_v1beta_generated_DataprocMetastore_RemoveIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/restore_service.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/restore_service.php deleted file mode 100644 index 648a723bc91a..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/restore_service.php +++ /dev/null @@ -1,98 +0,0 @@ -setService($formattedService) - ->setBackup($formattedBackup); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->restoreService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Restore $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 -{ - $formattedService = DataprocMetastoreClient::serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $formattedBackup = DataprocMetastoreClient::backupName( - '[PROJECT]', - '[LOCATION]', - '[SERVICE]', - '[BACKUP]' - ); - - restore_service_sample($formattedService, $formattedBackup); -} -// [END metastore_v1beta_generated_DataprocMetastore_RestoreService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/set_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/set_iam_policy.php deleted file mode 100644 index 99e7b55c265d..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreClient->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 metastore_v1beta_generated_DataprocMetastore_SetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/test_iam_permissions.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/test_iam_permissions.php deleted file mode 100644 index 44a563d5c886..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataprocMetastoreClient->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 metastore_v1beta_generated_DataprocMetastore_TestIamPermissions_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/update_metadata_import.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/update_metadata_import.php deleted file mode 100644 index 9499a2b35572..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/update_metadata_import.php +++ /dev/null @@ -1,75 +0,0 @@ -setUpdateMask($updateMask) - ->setMetadataImport($metadataImport); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->updateMetadataImport($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MetadataImport $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 metastore_v1beta_generated_DataprocMetastore_UpdateMetadataImport_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/update_service.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/update_service.php deleted file mode 100644 index 1ee9b384155f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreClient/update_service.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setService($service); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreClient->updateService($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Service $result */ - $result = $response->getResult(); - printf('Operation successful with response data: %s' . PHP_EOL, $result->serializeToJsonString()); - } else { - /** @var Status $error */ - $error = $response->getError(); - printf('Operation failed with error data: %s' . PHP_EOL, $error->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1beta_generated_DataprocMetastore_UpdateService_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/create_federation.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/create_federation.php deleted file mode 100644 index d4a6ea5a274c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/create_federation.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreFederationClient->createFederation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Federation $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 = DataprocMetastoreFederationClient::locationName('[PROJECT]', '[LOCATION]'); - $federationId = '[FEDERATION_ID]'; - - create_federation_sample($formattedParent, $federationId); -} -// [END metastore_v1beta_generated_DataprocMetastoreFederation_CreateFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/delete_federation.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/delete_federation.php deleted file mode 100644 index 5a2ed8bf9898..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/delete_federation.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreFederationClient->deleteFederation($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 = DataprocMetastoreFederationClient::federationName( - '[PROJECT]', - '[LOCATION]', - '[FEDERATION]' - ); - - delete_federation_sample($formattedName); -} -// [END metastore_v1beta_generated_DataprocMetastoreFederation_DeleteFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_federation.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_federation.php deleted file mode 100644 index c81d93f03b33..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_federation.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Federation $response */ - $response = $dataprocMetastoreFederationClient->getFederation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataprocMetastoreFederationClient::federationName( - '[PROJECT]', - '[LOCATION]', - '[FEDERATION]' - ); - - get_federation_sample($formattedName); -} -// [END metastore_v1beta_generated_DataprocMetastoreFederation_GetFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_iam_policy.php deleted file mode 100644 index d8e13fd71bd3..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreFederationClient->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 metastore_v1beta_generated_DataprocMetastoreFederation_GetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_location.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_location.php deleted file mode 100644 index d5787fe1ff75..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1beta_generated_DataprocMetastoreFederation_GetLocation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/list_federations.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/list_federations.php deleted file mode 100644 index 80bfbffe8e59..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/list_federations.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataprocMetastoreFederationClient->listFederations($request); - - /** @var Federation $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 = DataprocMetastoreFederationClient::locationName('[PROJECT]', '[LOCATION]'); - - list_federations_sample($formattedParent); -} -// [END metastore_v1beta_generated_DataprocMetastoreFederation_ListFederations_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/list_locations.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/list_locations.php deleted file mode 100644 index f11549a39232..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END metastore_v1beta_generated_DataprocMetastoreFederation_ListLocations_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/set_iam_policy.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/set_iam_policy.php deleted file mode 100644 index 2f7b2f1443bc..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $dataprocMetastoreFederationClient->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 metastore_v1beta_generated_DataprocMetastoreFederation_SetIamPolicy_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/test_iam_permissions.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/test_iam_permissions.php deleted file mode 100644 index a0641a009999..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $dataprocMetastoreFederationClient->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 metastore_v1beta_generated_DataprocMetastoreFederation_TestIamPermissions_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/update_federation.php b/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/update_federation.php deleted file mode 100644 index 982086159c4c..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/samples/V1beta/DataprocMetastoreFederationClient/update_federation.php +++ /dev/null @@ -1,74 +0,0 @@ -setUpdateMask($updateMask) - ->setFederation($federation); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataprocMetastoreFederationClient->updateFederation($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Federation $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 metastore_v1beta_generated_DataprocMetastoreFederation_UpdateFederation_sync] diff --git a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/Client/DataprocMetastoreClient.php b/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/Client/DataprocMetastoreClient.php deleted file mode 100644 index 9d38843186c5..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/Client/DataprocMetastoreClient.php +++ /dev/null @@ -1,1175 +0,0 @@ - alterMetadataResourceLocationAsync(AlterMetadataResourceLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createBackupAsync(CreateBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMetadataImportAsync(CreateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface createServiceAsync(CreateServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteBackupAsync(DeleteBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteServiceAsync(DeleteServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportMetadataAsync(ExportMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBackupAsync(GetBackupRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMetadataImportAsync(GetMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface getServiceAsync(GetServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBackupsAsync(ListBackupsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMetadataImportsAsync(ListMetadataImportsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listServicesAsync(ListServicesRequest $request, array $optionalArgs = []) - * @method PromiseInterface moveTableToDatabaseAsync(MoveTableToDatabaseRequest $request, array $optionalArgs = []) - * @method PromiseInterface queryMetadataAsync(QueryMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface removeIamPolicyAsync(RemoveIamPolicyRequest $request, array $optionalArgs = []) - * @method PromiseInterface restoreServiceAsync(RestoreServiceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMetadataImportAsync(UpdateMetadataImportRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateServiceAsync(UpdateServiceRequest $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 DataprocMetastoreClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.metastore.v1beta.DataprocMetastore'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'metastore.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'metastore.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/dataproc_metastore_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dataproc_metastore_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dataproc_metastore_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataproc_metastore_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - * - * @experimental - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a backup - * resource. - * - * @param string $project - * @param string $location - * @param string $service - * @param string $backup - * - * @return string The formatted backup resource. - * - * @experimental - */ - public static function backupName(string $project, string $location, string $service, string $backup): string - { - return self::getPathTemplate('backup')->render([ - 'project' => $project, - 'location' => $location, - 'service' => $service, - 'backup' => $backup, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a lake - * resource. - * - * @param string $project - * @param string $location - * @param string $lake - * - * @return string The formatted lake resource. - * - * @experimental - */ - public static function lakeName(string $project, string $location, string $lake): string - { - return self::getPathTemplate('lake')->render([ - 'project' => $project, - 'location' => $location, - 'lake' => $lake, - ]); - } - - /** - * 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. - * - * @experimental - */ - 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 - * metadata_import resource. - * - * @param string $project - * @param string $location - * @param string $service - * @param string $metadataImport - * - * @return string The formatted metadata_import resource. - * - * @experimental - */ - public static function metadataImportName(string $project, string $location, string $service, string $metadataImport): string - { - return self::getPathTemplate('metadataImport')->render([ - 'project' => $project, - 'location' => $location, - 'service' => $service, - 'metadata_import' => $metadataImport, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $project - * @param string $network - * - * @return string The formatted network resource. - * - * @experimental - */ - public static function networkName(string $project, string $network): string - { - return self::getPathTemplate('network')->render([ - 'project' => $project, - 'network' => $network, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a service - * resource. - * - * @param string $project - * @param string $location - * @param string $service - * - * @return string The formatted service resource. - * - * @experimental - */ - public static function serviceName(string $project, string $location, string $service): string - { - return self::getPathTemplate('service')->render([ - 'project' => $project, - 'location' => $location, - 'service' => $service, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a subnetwork - * resource. - * - * @param string $project - * @param string $region - * @param string $subnetwork - * - * @return string The formatted subnetwork resource. - * - * @experimental - */ - public static function subnetworkName(string $project, string $region, string $subnetwork): string - { - return self::getPathTemplate('subnetwork')->render([ - 'project' => $project, - 'region' => $region, - 'subnetwork' => $subnetwork, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - backup: projects/{project}/locations/{location}/services/{service}/backups/{backup} - * - lake: projects/{project}/locations/{location}/lakes/{lake} - * - location: projects/{project}/locations/{location} - * - metadataImport: projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import} - * - network: projects/{project}/global/networks/{network} - * - service: projects/{project}/locations/{location}/services/{service} - * - subnetwork: projects/{project}/regions/{region}/subnetworks/{subnetwork} - * - * 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 'metastore.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Alter metadata resource location. The metadata resource can be a database, - * table, or partition. This functionality only updates the parent directory - * for the respective metadata resource and does not transfer any existing - * data to the new location. - * - * The async variant is - * {@see DataprocMetastoreClient::alterMetadataResourceLocationAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/alter_metadata_resource_location.php - * - * @param AlterMetadataResourceLocationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function alterMetadataResourceLocation(AlterMetadataResourceLocationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('AlterMetadataResourceLocation', $request, $callOptions)->wait(); - } - - /** - * Creates a new backup in a given project and location. - * - * The async variant is {@see DataprocMetastoreClient::createBackupAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/create_backup.php - * - * @param CreateBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createBackup(CreateBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateBackup', $request, $callOptions)->wait(); - } - - /** - * Creates a new MetadataImport in a given project and location. - * - * The async variant is {@see DataprocMetastoreClient::createMetadataImportAsync()} - * . - * - * @example samples/V1beta/DataprocMetastoreClient/create_metadata_import.php - * - * @param CreateMetadataImportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createMetadataImport(CreateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateMetadataImport', $request, $callOptions)->wait(); - } - - /** - * Creates a metastore service in a project and location. - * - * The async variant is {@see DataprocMetastoreClient::createServiceAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/create_service.php - * - * @param CreateServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createService(CreateServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateService', $request, $callOptions)->wait(); - } - - /** - * Deletes a single backup. - * - * The async variant is {@see DataprocMetastoreClient::deleteBackupAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/delete_backup.php - * - * @param DeleteBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteBackup(DeleteBackupRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteBackup', $request, $callOptions)->wait(); - } - - /** - * Deletes a single service. - * - * The async variant is {@see DataprocMetastoreClient::deleteServiceAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/delete_service.php - * - * @param DeleteServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteService(DeleteServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteService', $request, $callOptions)->wait(); - } - - /** - * Exports metadata from a service. - * - * The async variant is {@see DataprocMetastoreClient::exportMetadataAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/export_metadata.php - * - * @param ExportMetadataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function exportMetadata(ExportMetadataRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ExportMetadata', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single backup. - * - * The async variant is {@see DataprocMetastoreClient::getBackupAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/get_backup.php - * - * @param GetBackupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Backup - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getBackup(GetBackupRequest $request, array $callOptions = []): Backup - { - return $this->startApiCall('GetBackup', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single import. - * - * The async variant is {@see DataprocMetastoreClient::getMetadataImportAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/get_metadata_import.php - * - * @param GetMetadataImportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MetadataImport - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getMetadataImport(GetMetadataImportRequest $request, array $callOptions = []): MetadataImport - { - return $this->startApiCall('GetMetadataImport', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a single service. - * - * The async variant is {@see DataprocMetastoreClient::getServiceAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/get_service.php - * - * @param GetServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Service - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getService(GetServiceRequest $request, array $callOptions = []): Service - { - return $this->startApiCall('GetService', $request, $callOptions)->wait(); - } - - /** - * Lists backups in a service. - * - * The async variant is {@see DataprocMetastoreClient::listBackupsAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/list_backups.php - * - * @param ListBackupsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listBackups(ListBackupsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListBackups', $request, $callOptions); - } - - /** - * Lists imports in a service. - * - * The async variant is {@see DataprocMetastoreClient::listMetadataImportsAsync()} - * . - * - * @example samples/V1beta/DataprocMetastoreClient/list_metadata_imports.php - * - * @param ListMetadataImportsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listMetadataImports(ListMetadataImportsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMetadataImports', $request, $callOptions); - } - - /** - * Lists services in a project and location. - * - * The async variant is {@see DataprocMetastoreClient::listServicesAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/list_services.php - * - * @param ListServicesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function listServices(ListServicesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListServices', $request, $callOptions); - } - - /** - * Move a table to another database. - * - * The async variant is {@see DataprocMetastoreClient::moveTableToDatabaseAsync()} - * . - * - * @example samples/V1beta/DataprocMetastoreClient/move_table_to_database.php - * - * @param MoveTableToDatabaseRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function moveTableToDatabase(MoveTableToDatabaseRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('MoveTableToDatabase', $request, $callOptions)->wait(); - } - - /** - * Query DPMS metadata. - * - * The async variant is {@see DataprocMetastoreClient::queryMetadataAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/query_metadata.php - * - * @param QueryMetadataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function queryMetadata(QueryMetadataRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('QueryMetadata', $request, $callOptions)->wait(); - } - - /** - * Removes the attached IAM policies for a resource - * - * The async variant is {@see DataprocMetastoreClient::removeIamPolicyAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/remove_iam_policy.php - * - * @param RemoveIamPolicyRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RemoveIamPolicyResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function removeIamPolicy(RemoveIamPolicyRequest $request, array $callOptions = []): RemoveIamPolicyResponse - { - return $this->startApiCall('RemoveIamPolicy', $request, $callOptions)->wait(); - } - - /** - * Restores a service from a backup. - * - * The async variant is {@see DataprocMetastoreClient::restoreServiceAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/restore_service.php - * - * @param RestoreServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function restoreService(RestoreServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RestoreService', $request, $callOptions)->wait(); - } - - /** - * Updates a single import. - * Only the description field of MetadataImport is supported to be updated. - * - * The async variant is {@see DataprocMetastoreClient::updateMetadataImportAsync()} - * . - * - * @example samples/V1beta/DataprocMetastoreClient/update_metadata_import.php - * - * @param UpdateMetadataImportRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateMetadataImport(UpdateMetadataImportRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateMetadataImport', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single service. - * - * The async variant is {@see DataprocMetastoreClient::updateServiceAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/update_service.php - * - * @param UpdateServiceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateService(UpdateServiceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateService', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DataprocMetastoreClient::getLocationAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/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. - * - * @experimental - */ - 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 DataprocMetastoreClient::listLocationsAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/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. - * - * @experimental - */ - 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 DataprocMetastoreClient::getIamPolicyAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/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. - * - * @experimental - */ - 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 DataprocMetastoreClient::setIamPolicyAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/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. - * - * @experimental - */ - 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 DataprocMetastoreClient::testIamPermissionsAsync()} . - * - * @example samples/V1beta/DataprocMetastoreClient/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. - * - * @experimental - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/Client/DataprocMetastoreFederationClient.php b/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/Client/DataprocMetastoreFederationClient.php deleted file mode 100644 index c7d194155696..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/Client/DataprocMetastoreFederationClient.php +++ /dev/null @@ -1,636 +0,0 @@ - createFederationAsync(CreateFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFederationAsync(DeleteFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFederationAsync(GetFederationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFederationsAsync(ListFederationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateFederationAsync(UpdateFederationRequest $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 DataprocMetastoreFederationClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.metastore.v1beta.DataprocMetastoreFederation'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'metastore.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'metastore.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/dataproc_metastore_federation_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dataproc_metastore_federation_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - * - * @experimental - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - * - * @experimental - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a federation - * resource. - * - * @param string $project - * @param string $location - * @param string $federation - * - * @return string The formatted federation resource. - * - * @experimental - */ - public static function federationName(string $project, string $location, string $federation): string - { - return self::getPathTemplate('federation')->render([ - 'project' => $project, - 'location' => $location, - 'federation' => $federation, - ]); - } - - /** - * 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. - * - * @experimental - */ - 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 - * - federation: projects/{project}/locations/{location}/federations/{federation} - * - 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. - * - * @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 'metastore.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - * - * @experimental - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Creates a metastore federation in a project and location. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::createFederationAsync()} . - * - * @example samples/V1beta/DataprocMetastoreFederationClient/create_federation.php - * - * @param CreateFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function createFederation(CreateFederationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateFederation', $request, $callOptions)->wait(); - } - - /** - * Deletes a single federation. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::deleteFederationAsync()} . - * - * @example samples/V1beta/DataprocMetastoreFederationClient/delete_federation.php - * - * @param DeleteFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteFederation(DeleteFederationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteFederation', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a single federation. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::getFederationAsync()} . - * - * @example samples/V1beta/DataprocMetastoreFederationClient/get_federation.php - * - * @param GetFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Federation - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getFederation(GetFederationRequest $request, array $callOptions = []): Federation - { - return $this->startApiCall('GetFederation', $request, $callOptions)->wait(); - } - - /** - * Lists federations in a project and location. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::listFederationsAsync()} . - * - * @example samples/V1beta/DataprocMetastoreFederationClient/list_federations.php - * - * @param ListFederationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listFederations(ListFederationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFederations', $request, $callOptions); - } - - /** - * Updates the fields of a federation. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::updateFederationAsync()} . - * - * @example samples/V1beta/DataprocMetastoreFederationClient/update_federation.php - * - * @param UpdateFederationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return OperationResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateFederation(UpdateFederationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateFederation', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is - * {@see DataprocMetastoreFederationClient::getLocationAsync()} . - * - * @example samples/V1beta/DataprocMetastoreFederationClient/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. - * - * @experimental - */ - 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 DataprocMetastoreFederationClient::listLocationsAsync()} . - * - * @example samples/V1beta/DataprocMetastoreFederationClient/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. - * - * @experimental - */ - 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 DataprocMetastoreFederationClient::getIamPolicyAsync()} . - * - * @example samples/V1beta/DataprocMetastoreFederationClient/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. - * - * @experimental - */ - 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 DataprocMetastoreFederationClient::setIamPolicyAsync()} . - * - * @example samples/V1beta/DataprocMetastoreFederationClient/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. - * - * @experimental - */ - 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 DataprocMetastoreFederationClient::testIamPermissionsAsync()} . - * - * @example samples/V1beta/DataprocMetastoreFederationClient/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. - * - * @experimental - */ - public function testIamPermissions(TestIamPermissionsRequest $request, array $callOptions = []): TestIamPermissionsResponse - { - return $this->startApiCall('TestIamPermissions', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/gapic_metadata.json b/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/gapic_metadata.json deleted file mode 100644 index 1e01d02ccb35..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/gapic_metadata.json +++ /dev/null @@ -1,197 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.metastore.v1beta", - "libraryPackage": "Google\\Cloud\\Metastore\\V1beta", - "services": { - "DataprocMetastore": { - "clients": { - "grpc": { - "libraryClient": "DataprocMetastoreGapicClient", - "rpcs": { - "AlterMetadataResourceLocation": { - "methods": [ - "alterMetadataResourceLocation" - ] - }, - "CreateBackup": { - "methods": [ - "createBackup" - ] - }, - "CreateMetadataImport": { - "methods": [ - "createMetadataImport" - ] - }, - "CreateService": { - "methods": [ - "createService" - ] - }, - "DeleteBackup": { - "methods": [ - "deleteBackup" - ] - }, - "DeleteService": { - "methods": [ - "deleteService" - ] - }, - "ExportMetadata": { - "methods": [ - "exportMetadata" - ] - }, - "GetBackup": { - "methods": [ - "getBackup" - ] - }, - "GetMetadataImport": { - "methods": [ - "getMetadataImport" - ] - }, - "GetService": { - "methods": [ - "getService" - ] - }, - "ListBackups": { - "methods": [ - "listBackups" - ] - }, - "ListMetadataImports": { - "methods": [ - "listMetadataImports" - ] - }, - "ListServices": { - "methods": [ - "listServices" - ] - }, - "MoveTableToDatabase": { - "methods": [ - "moveTableToDatabase" - ] - }, - "QueryMetadata": { - "methods": [ - "queryMetadata" - ] - }, - "RemoveIamPolicy": { - "methods": [ - "removeIamPolicy" - ] - }, - "RestoreService": { - "methods": [ - "restoreService" - ] - }, - "UpdateMetadataImport": { - "methods": [ - "updateMetadataImport" - ] - }, - "UpdateService": { - "methods": [ - "updateService" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - }, - "GetIamPolicy": { - "methods": [ - "getIamPolicy" - ] - }, - "SetIamPolicy": { - "methods": [ - "setIamPolicy" - ] - }, - "TestIamPermissions": { - "methods": [ - "testIamPermissions" - ] - } - } - } - } - }, - "DataprocMetastoreFederation": { - "clients": { - "grpc": { - "libraryClient": "DataprocMetastoreFederationGapicClient", - "rpcs": { - "CreateFederation": { - "methods": [ - "createFederation" - ] - }, - "DeleteFederation": { - "methods": [ - "deleteFederation" - ] - }, - "GetFederation": { - "methods": [ - "getFederation" - ] - }, - "ListFederations": { - "methods": [ - "listFederations" - ] - }, - "UpdateFederation": { - "methods": [ - "updateFederation" - ] - }, - "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/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_client_config.json b/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_client_config.json deleted file mode 100644 index f641af0265f2..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_client_config.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "interfaces": { - "google.cloud.metastore.v1beta.DataprocMetastore": { - "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": { - "AlterMetadataResourceLocation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "CreateBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateMetadataImport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteBackup": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ExportMetadata": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetBackup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMetadataImport": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetService": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListBackups": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMetadataImports": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListServices": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "MoveTableToDatabase": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "QueryMetadata": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RemoveIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RestoreService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateMetadataImport": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateService": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListLocations": { - "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" - }, - "SetIamPolicy": { - "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" - } - } - } - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_descriptor_config.php b/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_descriptor_config.php deleted file mode 100644 index 1958fc4c5cc0..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_descriptor_config.php +++ /dev/null @@ -1,448 +0,0 @@ - [ - 'google.cloud.metastore.v1beta.DataprocMetastore' => [ - 'AlterMetadataResourceLocation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\AlterMetadataResourceLocationResponse', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'CreateBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\Backup', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMetadataImport' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\MetadataImport', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\Service', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteBackup' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ExportMetadata' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\MetadataExport', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'MoveTableToDatabase' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\MoveTableToDatabaseResponse', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'QueryMetadata' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\QueryMetadataResponse', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'RestoreService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\Restore', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service', - 'fieldAccessors' => [ - 'getService', - ], - ], - ], - ], - 'UpdateMetadataImport' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\MetadataImport', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'metadata_import.name', - 'fieldAccessors' => [ - 'getMetadataImport', - 'getName', - ], - ], - ], - ], - 'UpdateService' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\Service', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'service.name', - 'fieldAccessors' => [ - 'getService', - 'getName', - ], - ], - ], - ], - 'GetBackup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1beta\Backup', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadataImport' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1beta\MetadataImport', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetService' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1beta\Service', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListBackups' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getBackups', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1beta\ListBackupsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMetadataImports' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMetadataImports', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1beta\ListMetadataImportsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListServices' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getServices', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1beta\ListServicesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RemoveIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1beta\RemoveIamPolicyResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'backup' => 'projects/{project}/locations/{location}/services/{service}/backups/{backup}', - 'lake' => 'projects/{project}/locations/{location}/lakes/{lake}', - 'location' => 'projects/{project}/locations/{location}', - 'metadataImport' => 'projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}', - 'network' => 'projects/{project}/global/networks/{network}', - 'service' => 'projects/{project}/locations/{location}/services/{service}', - 'subnetwork' => 'projects/{project}/regions/{region}/subnetworks/{subnetwork}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_client_config.json b/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_client_config.json deleted file mode 100644 index 79bcf744ef44..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_client_config.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "interfaces": { - "google.cloud.metastore.v1beta.DataprocMetastoreFederation": { - "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": { - "CreateFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListFederations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateFederation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_descriptor_config.php b/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_descriptor_config.php deleted file mode 100644 index 722e438b0bf9..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_descriptor_config.php +++ /dev/null @@ -1,195 +0,0 @@ - [ - 'google.cloud.metastore.v1beta.DataprocMetastoreFederation' => [ - 'CreateFederation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\Federation', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteFederation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateFederation' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Metastore\V1beta\Federation', - 'metadataReturnType' => '\Google\Cloud\Metastore\V1beta\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'federation.name', - 'fieldAccessors' => [ - 'getFederation', - 'getName', - ], - ], - ], - ], - 'GetFederation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1beta\Federation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListFederations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFederations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Metastore\V1beta\ListFederationsResponse', - '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' => [ - 'federation' => 'projects/{project}/locations/{location}/federations/{federation}', - 'location' => 'projects/{project}/locations/{location}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_rest_client_config.php b/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_rest_client_config.php deleted file mode 100644 index 687939a6e5a4..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_federation_rest_client_config.php +++ /dev/null @@ -1,263 +0,0 @@ - [ - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.metastore.v1beta.DataprocMetastoreFederation' => [ - 'CreateFederation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/federations', - 'body' => 'federation', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'federation_id', - ], - ], - 'DeleteFederation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/federations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFederation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/federations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListFederations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/federations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateFederation' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{federation.name=projects/*/locations/*/federations/*}', - 'body' => 'federation', - 'placeholders' => [ - 'federation.name' => [ - 'getters' => [ - 'getFederation', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/backups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/federations/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/backups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/federations/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/backups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/federations/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_rest_client_config.php b/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_rest_client_config.php deleted file mode 100644 index 848d3380831f..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/src/V1beta/resources/dataproc_metastore_rest_client_config.php +++ /dev/null @@ -1,436 +0,0 @@ - [ - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.metastore.v1beta.DataprocMetastore' => [ - 'AlterMetadataResourceLocation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{service=projects/*/locations/*/services/*}:alterLocation', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'CreateBackup' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*/services/*}/backups', - 'body' => 'backup', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'backup_id', - ], - ], - 'CreateMetadataImport' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*/services/*}/metadataImports', - 'body' => 'metadata_import', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'metadata_import_id', - ], - ], - 'CreateService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/services', - 'body' => 'service', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'service_id', - ], - ], - 'DeleteBackup' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/services/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteService' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/services/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ExportMetadata' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{service=projects/*/locations/*/services/*}:exportMetadata', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'GetBackup' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/services/*/backups/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMetadataImport' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/services/*/metadataImports/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetService' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/services/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListBackups' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*/services/*}/backups', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMetadataImports' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*/services/*}/metadataImports', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListServices' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{parent=projects/*/locations/*}/services', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'MoveTableToDatabase' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{service=projects/*/locations/*/services/*}:moveTableToDatabase', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'QueryMetadata' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{service=projects/*/locations/*/services/*}:queryMetadata', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'RemoveIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/**}:removeIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'RestoreService' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{service=projects/*/locations/*/services/*}:restore', - 'body' => '*', - 'placeholders' => [ - 'service' => [ - 'getters' => [ - 'getService', - ], - ], - ], - ], - 'UpdateMetadataImport' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{metadata_import.name=projects/*/locations/*/services/*/metadataImports/*}', - 'body' => 'metadata_import', - 'placeholders' => [ - 'metadata_import.name' => [ - 'getters' => [ - 'getMetadataImport', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateService' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1beta/{service.name=projects/*/locations/*/services/*}', - 'body' => 'service', - 'placeholders' => [ - 'service.name' => [ - 'getters' => [ - 'getService', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/backups/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/federations/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/backups/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/federations/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/backups/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/services/*/databases/*/tables/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{resource=projects/*/locations/*/federations/*}:testIamPermissions', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DataprocMetastore/v1beta/tests/Unit/V1beta/Client/DataprocMetastoreClientTest.php b/owl-bot-staging/DataprocMetastore/v1beta/tests/Unit/V1beta/Client/DataprocMetastoreClientTest.php deleted file mode 100644 index 41fdc2e281de..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/tests/Unit/V1beta/Client/DataprocMetastoreClientTest.php +++ /dev/null @@ -1,2586 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataprocMetastoreClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataprocMetastoreClient($options); - } - - /** @test */ - public function alterMetadataResourceLocationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/alterMetadataResourceLocationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new AlterMetadataResourceLocationResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/alterMetadataResourceLocationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = 'resourceName979421212'; - $locationUri = 'locationUri-57953822'; - $request = (new AlterMetadataResourceLocationRequest()) - ->setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - $response = $gapicClient->alterMetadataResourceLocation($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.metastore.v1beta.DataprocMetastore/AlterMetadataResourceLocation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getResourceName(); - $this->assertProtobufEquals($resourceName, $actualValue); - $actualValue = $actualApiRequestObject->getLocationUri(); - $this->assertProtobufEquals($locationUri, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/alterMetadataResourceLocationTest'); - $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 alterMetadataResourceLocationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/alterMetadataResourceLocationTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = 'resourceName979421212'; - $locationUri = 'locationUri-57953822'; - $request = (new AlterMetadataResourceLocationRequest()) - ->setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - $response = $gapicClient->alterMetadataResourceLocation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/alterMetadataResourceLocationTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new Backup(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $backupId = 'backupId1355353272'; - $backup = new Backup(); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - $response = $gapicClient->createBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastore/CreateBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getBackupId(); - $this->assertProtobufEquals($backupId, $actualValue); - $actualValue = $actualApiRequestObject->getBackup(); - $this->assertProtobufEquals($backup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $backupId = 'backupId1355353272'; - $backup = new Backup(); - $request = (new CreateBackupRequest()) - ->setParent($formattedParent) - ->setBackupId($backupId) - ->setBackup($backup); - $response = $gapicClient->createBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createMetadataImportTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createMetadataImportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new MetadataImport(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createMetadataImportTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $metadataImportId = 'metadataImportId-476076315'; - $metadataImport = new MetadataImport(); - $request = (new CreateMetadataImportRequest()) - ->setParent($formattedParent) - ->setMetadataImportId($metadataImportId) - ->setMetadataImport($metadataImport); - $response = $gapicClient->createMetadataImport($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.metastore.v1beta.DataprocMetastore/CreateMetadataImport', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataImportId(); - $this->assertProtobufEquals($metadataImportId, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataImport(); - $this->assertProtobufEquals($metadataImport, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMetadataImportTest'); - $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 createMetadataImportExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createMetadataImportTest'); - $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->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $metadataImportId = 'metadataImportId-476076315'; - $metadataImport = new MetadataImport(); - $request = (new CreateMetadataImportRequest()) - ->setParent($formattedParent) - ->setMetadataImportId($metadataImportId) - ->setMetadataImport($metadataImport); - $response = $gapicClient->createMetadataImport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMetadataImportTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $network = 'network1843485230'; - $endpointUri = 'endpointUri-850313278'; - $port = 3446913; - $stateMessage = 'stateMessage29641305'; - $artifactGcsUri = 'artifactGcsUri1337121495'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name); - $expectedResponse->setNetwork($network); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setPort($port); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setArtifactGcsUri($artifactGcsUri); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $serviceId = 'serviceId-1724763419'; - $service = new Service(); - $request = (new CreateServiceRequest()) - ->setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - $response = $gapicClient->createService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastore/CreateService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getServiceId(); - $this->assertProtobufEquals($serviceId, $actualValue); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($service, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function createServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $serviceId = 'serviceId-1724763419'; - $service = new Service(); - $request = (new CreateServiceRequest()) - ->setParent($formattedParent) - ->setServiceId($serviceId) - ->setService($service); - $response = $gapicClient->createService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteBackupTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastore/DeleteBackup', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteBackupExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteBackupTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new DeleteBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteBackup($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteBackupTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new DeleteServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastore/DeleteService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function deleteServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new DeleteServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function exportMetadataTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportMetadataTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $destinationGcsUri = 'destinationGcsUri1386421523'; - $expectedResponse = new MetadataExport(); - $expectedResponse->setDestinationGcsUri($destinationGcsUri); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/exportMetadataTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ExportMetadataRequest()) - ->setService($formattedService); - $response = $gapicClient->exportMetadata($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.metastore.v1beta.DataprocMetastore/ExportMetadata', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportMetadataTest'); - $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 exportMetadataExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportMetadataTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ExportMetadataRequest()) - ->setService($formattedService); - $response = $gapicClient->exportMetadata($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportMetadataTest'); - 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 getBackupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $expectedResponse = new Backup(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - $response = $gapicClient->getBackup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastore/GetBackup', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBackupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new GetBackupRequest()) - ->setName($formattedName); - try { - $gapicClient->getBackup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataImportTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $expectedResponse = new MetadataImport(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->metadataImportName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[METADATA_IMPORT]'); - $request = (new GetMetadataImportRequest()) - ->setName($formattedName); - $response = $gapicClient->getMetadataImport($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.metastore.v1beta.DataprocMetastore/GetMetadataImport', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMetadataImportExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->metadataImportName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[METADATA_IMPORT]'); - $request = (new GetMetadataImportRequest()) - ->setName($formattedName); - try { - $gapicClient->getMetadataImport($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $network = 'network1843485230'; - $endpointUri = 'endpointUri-850313278'; - $port = 3446913; - $stateMessage = 'stateMessage29641305'; - $artifactGcsUri = 'artifactGcsUri1337121495'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name2); - $expectedResponse->setNetwork($network); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setPort($port); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setArtifactGcsUri($artifactGcsUri); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new GetServiceRequest()) - ->setName($formattedName); - $response = $gapicClient->getService($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastore/GetService', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getServiceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new GetServiceRequest()) - ->setName($formattedName); - try { - $gapicClient->getService($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $backupsElement = new Backup(); - $backups = [ - $backupsElement, - ]; - $expectedResponse = new ListBackupsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setBackups($backups); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listBackups($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getBackups()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastore/ListBackups', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBackupsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListBackupsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listBackups($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMetadataImportsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $metadataImportsElement = new MetadataImport(); - $metadataImports = [ - $metadataImportsElement, - ]; - $expectedResponse = new ListMetadataImportsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMetadataImports($metadataImports); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListMetadataImportsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMetadataImports($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMetadataImports()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastore/ListMetadataImports', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMetadataImportsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $request = (new ListMetadataImportsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMetadataImports($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $servicesElement = new Service(); - $services = [ - $servicesElement, - ]; - $expectedResponse = new ListServicesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setServices($services); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListServicesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listServices($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getServices()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastore/ListServices', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listServicesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListServicesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listServices($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function moveTableToDatabaseTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveTableToDatabaseTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new MoveTableToDatabaseResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/moveTableToDatabaseTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $tableName = 'tableName-1504630692'; - $dbName = 'dbName1452819884'; - $destinationDbName = 'destinationDbName-1322761605'; - $request = (new MoveTableToDatabaseRequest()) - ->setService($formattedService) - ->setTableName($tableName) - ->setDbName($dbName) - ->setDestinationDbName($destinationDbName); - $response = $gapicClient->moveTableToDatabase($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.metastore.v1beta.DataprocMetastore/MoveTableToDatabase', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getTableName(); - $this->assertProtobufEquals($tableName, $actualValue); - $actualValue = $actualApiRequestObject->getDbName(); - $this->assertProtobufEquals($dbName, $actualValue); - $actualValue = $actualApiRequestObject->getDestinationDbName(); - $this->assertProtobufEquals($destinationDbName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveTableToDatabaseTest'); - $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 moveTableToDatabaseExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/moveTableToDatabaseTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $tableName = 'tableName-1504630692'; - $dbName = 'dbName1452819884'; - $destinationDbName = 'destinationDbName-1322761605'; - $request = (new MoveTableToDatabaseRequest()) - ->setService($formattedService) - ->setTableName($tableName) - ->setDbName($dbName) - ->setDestinationDbName($destinationDbName); - $response = $gapicClient->moveTableToDatabase($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/moveTableToDatabaseTest'); - 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 queryMetadataTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/queryMetadataTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $resultManifestUri = 'resultManifestUri-1050940354'; - $expectedResponse = new QueryMetadataResponse(); - $expectedResponse->setResultManifestUri($resultManifestUri); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/queryMetadataTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $query = 'query107944136'; - $request = (new QueryMetadataRequest()) - ->setService($formattedService) - ->setQuery($query); - $response = $gapicClient->queryMetadata($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.metastore.v1beta.DataprocMetastore/QueryMetadata', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/queryMetadataTest'); - $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 queryMetadataExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/queryMetadataTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $query = 'query107944136'; - $request = (new QueryMetadataRequest()) - ->setService($formattedService) - ->setQuery($query); - $response = $gapicClient->queryMetadata($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/queryMetadataTest'); - 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 removeIamPolicyTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $success = false; - $expectedResponse = new RemoveIamPolicyResponse(); - $expectedResponse->setSuccess($success); - $transport->addResponse($expectedResponse); - // Mock request - $resource = 'resource-341064690'; - $request = (new RemoveIamPolicyRequest()) - ->setResource($resource); - $response = $gapicClient->removeIamPolicy($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.metastore.v1beta.DataprocMetastore/RemoveIamPolicy', $actualFuncCall); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($resource, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function removeIamPolicyExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 RemoveIamPolicyRequest()) - ->setResource($resource); - try { - $gapicClient->removeIamPolicy($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function restoreServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $backup2 = 'backup22121930997'; - $details = 'details1557721666'; - $expectedResponse = new Restore(); - $expectedResponse->setBackup($backup2); - $expectedResponse->setDetails($details); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/restoreServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new RestoreServiceRequest()) - ->setService($formattedService) - ->setBackup($formattedBackup); - $response = $gapicClient->restoreService($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.metastore.v1beta.DataprocMetastore/RestoreService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getBackup(); - $this->assertProtobufEquals($formattedBackup, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreServiceTest'); - $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 restoreServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/restoreServiceTest'); - $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 - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $formattedBackup = $gapicClient->backupName('[PROJECT]', '[LOCATION]', '[SERVICE]', '[BACKUP]'); - $request = (new RestoreServiceRequest()) - ->setService($formattedService) - ->setBackup($formattedBackup); - $response = $gapicClient->restoreService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/restoreServiceTest'); - 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 updateMetadataImportTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateMetadataImportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $expectedResponse = new MetadataImport(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateMetadataImportTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $metadataImport = new MetadataImport(); - $request = (new UpdateMetadataImportRequest()) - ->setUpdateMask($updateMask) - ->setMetadataImport($metadataImport); - $response = $gapicClient->updateMetadataImport($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.metastore.v1beta.DataprocMetastore/UpdateMetadataImport', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getMetadataImport(); - $this->assertProtobufEquals($metadataImport, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMetadataImportTest'); - $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 updateMetadataImportExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateMetadataImportTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $metadataImport = new MetadataImport(); - $request = (new UpdateMetadataImportRequest()) - ->setUpdateMask($updateMask) - ->setMetadataImport($metadataImport); - $response = $gapicClient->updateMetadataImport($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMetadataImportTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateServiceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $network = 'network1843485230'; - $endpointUri = 'endpointUri-850313278'; - $port = 3446913; - $stateMessage = 'stateMessage29641305'; - $artifactGcsUri = 'artifactGcsUri1337121495'; - $uid = 'uid115792'; - $expectedResponse = new Service(); - $expectedResponse->setName($name); - $expectedResponse->setNetwork($network); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setPort($port); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setArtifactGcsUri($artifactGcsUri); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateServiceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $service = new Service(); - $request = (new UpdateServiceRequest()) - ->setUpdateMask($updateMask) - ->setService($service); - $response = $gapicClient->updateService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $apiRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($apiRequests)); - $operationsRequestsEmpty = $operationsTransport->popReceivedCalls(); - $this->assertSame(0, count($operationsRequestsEmpty)); - $actualApiFuncCall = $apiRequests[0]->getFuncCall(); - $actualApiRequestObject = $apiRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastore/UpdateService', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($service, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServiceTest'); - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - $this->assertTrue($response->isDone()); - $this->assertEquals($expectedResponse, $response->getResult()); - $apiRequestsEmpty = $transport->popReceivedCalls(); - $this->assertSame(0, count($apiRequestsEmpty)); - $operationsRequests = $operationsTransport->popReceivedCalls(); - $this->assertSame(1, count($operationsRequests)); - $actualOperationsFuncCall = $operationsRequests[0]->getFuncCall(); - $actualOperationsRequestObject = $operationsRequests[0]->getRequestObject(); - $this->assertSame('/google.longrunning.Operations/GetOperation', $actualOperationsFuncCall); - $this->assertEquals($expectedOperationsRequestObject, $actualOperationsRequestObject); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function updateServiceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateServiceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $service = new Service(); - $request = (new UpdateServiceRequest()) - ->setUpdateMask($updateMask) - ->setService($service); - $response = $gapicClient->updateService($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateServiceTest'); - try { - $response->pollUntilComplete([ - 'initialPollDelayMillis' => 1, - ]); - // If the pollUntilComplete() method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stubs are exhausted - $transport->popReceivedCalls(); - $operationsTransport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - } - - /** @test */ - public function 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 alterMetadataResourceLocationAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/alterMetadataResourceLocationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new AlterMetadataResourceLocationResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/alterMetadataResourceLocationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedService = $gapicClient->serviceName('[PROJECT]', '[LOCATION]', '[SERVICE]'); - $resourceName = 'resourceName979421212'; - $locationUri = 'locationUri-57953822'; - $request = (new AlterMetadataResourceLocationRequest()) - ->setService($formattedService) - ->setResourceName($resourceName) - ->setLocationUri($locationUri); - $response = $gapicClient->alterMetadataResourceLocationAsync($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.metastore.v1beta.DataprocMetastore/AlterMetadataResourceLocation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getService(); - $this->assertProtobufEquals($formattedService, $actualValue); - $actualValue = $actualApiRequestObject->getResourceName(); - $this->assertProtobufEquals($resourceName, $actualValue); - $actualValue = $actualApiRequestObject->getLocationUri(); - $this->assertProtobufEquals($locationUri, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/alterMetadataResourceLocationTest'); - $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/DataprocMetastore/v1beta/tests/Unit/V1beta/Client/DataprocMetastoreFederationClientTest.php b/owl-bot-staging/DataprocMetastore/v1beta/tests/Unit/V1beta/Client/DataprocMetastoreFederationClientTest.php deleted file mode 100644 index d31ea3bb73b8..000000000000 --- a/owl-bot-staging/DataprocMetastore/v1beta/tests/Unit/V1beta/Client/DataprocMetastoreFederationClientTest.php +++ /dev/null @@ -1,1039 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataprocMetastoreFederationClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataprocMetastoreFederationClient($options); - } - - /** @test */ - public function createFederationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $federationId = 'federationId-1338699881'; - $federation = new Federation(); - $request = (new CreateFederationRequest()) - ->setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - $response = $gapicClient->createFederation($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.metastore.v1beta.DataprocMetastoreFederation/CreateFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFederationId(); - $this->assertProtobufEquals($federationId, $actualValue); - $actualValue = $actualApiRequestObject->getFederation(); - $this->assertProtobufEquals($federation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFederationTest'); - $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 createFederationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFederationTest'); - $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]'); - $federationId = 'federationId-1338699881'; - $federation = new Federation(); - $request = (new CreateFederationRequest()) - ->setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - $response = $gapicClient->createFederation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFederationTest'); - 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 deleteFederationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new DeleteFederationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFederation($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.metastore.v1beta.DataprocMetastoreFederation/DeleteFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFederationTest'); - $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 deleteFederationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteFederationTest'); - $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->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new DeleteFederationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteFederation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteFederationTest'); - 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 getFederationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name2); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new GetFederationRequest()) - ->setName($formattedName); - $response = $gapicClient->getFederation($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.metastore.v1beta.DataprocMetastoreFederation/GetFederation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFederationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->federationName('[PROJECT]', '[LOCATION]', '[FEDERATION]'); - $request = (new GetFederationRequest()) - ->setName($formattedName); - try { - $gapicClient->getFederation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFederationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $federationsElement = new Federation(); - $federations = [ - $federationsElement, - ]; - $expectedResponse = new ListFederationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFederations($federations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListFederationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFederations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFederations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.metastore.v1beta.DataprocMetastoreFederation/ListFederations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFederationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListFederationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFederations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateFederationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $federation = new Federation(); - $request = (new UpdateFederationRequest()) - ->setUpdateMask($updateMask) - ->setFederation($federation); - $response = $gapicClient->updateFederation($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.metastore.v1beta.DataprocMetastoreFederation/UpdateFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getFederation(); - $this->assertProtobufEquals($federation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateFederationTest'); - $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 updateFederationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $federation = new Federation(); - $request = (new UpdateFederationRequest()) - ->setUpdateMask($updateMask) - ->setFederation($federation); - $response = $gapicClient->updateFederation($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateFederationTest'); - 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 createFederationAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createFederationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $version = 'version351608024'; - $endpointUri = 'endpointUri-850313278'; - $stateMessage = 'stateMessage29641305'; - $uid = 'uid115792'; - $expectedResponse = new Federation(); - $expectedResponse->setName($name); - $expectedResponse->setVersion($version); - $expectedResponse->setEndpointUri($endpointUri); - $expectedResponse->setStateMessage($stateMessage); - $expectedResponse->setUid($uid); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createFederationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $federationId = 'federationId-1338699881'; - $federation = new Federation(); - $request = (new CreateFederationRequest()) - ->setParent($formattedParent) - ->setFederationId($federationId) - ->setFederation($federation); - $response = $gapicClient->createFederationAsync($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.metastore.v1beta.DataprocMetastoreFederation/CreateFederation', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFederationId(); - $this->assertProtobufEquals($federationId, $actualValue); - $actualValue = $actualApiRequestObject->getFederation(); - $this->assertProtobufEquals($federation, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createFederationTest'); - $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/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/AggregationResult.php b/owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/AggregationResult.php deleted file mode 100644 index ca7de2ad9eef..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/AggregationResult.php +++ /dev/null @@ -1,39 +0,0 @@ -internalAddGeneratedFile( - ' -€ -,google/datastore/v1/aggregation_result.protogoogle.datastore.v1google/datastore/v1/query.protogoogle/protobuf/timestamp.proto"Ê -AggregationResult] -aggregate_properties ( 2?.google.datastore.v1.AggregationResult.AggregatePropertiesEntryV -AggregatePropertiesEntry -key ( ) -value ( 2.google.datastore.v1.Value:8"Ù -AggregationResultBatchC -aggregation_results ( 2&.google.datastore.v1.AggregationResultK - more_results (25.google.datastore.v1.QueryResultBatch.MoreResultsType- - read_time ( 2.google.protobuf.TimestampBÇ -com.google.datastore.v1BAggregationResultProtoPZ;cloud.google.com/go/datastore/apiv1/datastorepb;datastorepbªGoogle.Cloud.Datastore.V1ÊGoogle\\Cloud\\Datastore\\V1êGoogle::Cloud::Datastore::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/Datastore.php b/owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/Datastore.php deleted file mode 100644 index 5fd0a98c20b1eccf60b4003d2554ea7d8db9aa71..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8218 zcmcgx%X1rP5s&0Y?3Vl*=b<=B?d&AkI9XeY1q+L^0VG>-RK$Py-$m&`hr%rNm%d%Pq$uu-ib3Mx;nZvd2f6`1IfT^{KYio5PZ|)Yhh^JBV>Lz2Y zZuqR#{k8i5bwhJqIrtGi0U7_;otmN7W!KX@{OhLfs=BFrx@PF#N9`ZTP0er#au3or zJ7(R}EmNipJ7%3M-;udYN_*3`(Ao#GugorW02*H{nI3UW&8Th=x9;dR+O~_Nxm=5Q zf!pXW%Xh@FRGi+Fm${C)+<=k~WY6i4@aeMb5U=By_nF>Qz^mY2)d*MRZM~W|O^bTL zGTmIRYg1RmFvfL5C#LsiJP&nZGz#QEJJc=b%~;D;$J5Q$=uAP#5eLmyr z#`8nL36wv_VCJ!9J?q$If&yGmx(tBS-y?NT)f=fPIkr4q82d{;E-gZWYE;u)LcdJY zFVdGF=@6}u=(8Zc?M7eBcevi!yI{O8=7tgxK1+O80;l1YpXl z-jPj|-^5_P8yx|}FTzAk^Xdm8XKqExX2x(F7AUcF2ZY;rd`@s%G_F4C+SVqXqt{)Q z$%*WVwqct?NtGXt!4eu0y3mAzXzW>P$LET;0xX29GK-HuU$pc4%{(IzBjA*HD>(fv z23I4aAdr>oMb`U~$O;)3#uuWJJBH(HG{^iup!VY!TrQB7ZdSUr@obfC0~SN|HArb* z4yv~!y%RcAb)44RCXgO64sMIG}l4- zR~%;6t#(`Y&UV@dFy6Krgxx>0*&%-EIUv1-^wPx$EiqF{aEV@-22nfMFoXh-dPB#f zta~us?ua=dHOcPa=<>fMsFa5=&Xl_V^IJO`MfK_S-fnTd^srRim_H{iz)Yo_-`>lw zS4unE`N#7yv|?d`2AcfBp$@8CanDPUHz1O6Ut)k`CZ`9XrLySAj#VEL*lsD#`_cwg9O)*gNWZgLF+IGB4qh4T&r7V6ZaGzMYCn#0E~^Hi`n3j))7nM+3bgrp79-- zUKbM3;X=Tk;FkuvGdfQUYsbSqz4QncQDZ(0u-t4~PTNf-Sy^~5QX!weLa!1^&YCo( z3`-|yn1Ty?SPm-1&5!%a$2=tWisk)cS>4Y+epF4d!%8&e+s9f%Hh#sVC$Q)etO6DmAxsuWJ=Ba2VQuNhRE$&s+N@)v`P?(3=0F=D>|1Vw@enwy-;QB|p1!Fk<3YQN}XlV}4 z`*)WX$WkC^o%mIbrf zdy&x(@v;R2CbZ9o2=D7nXiuBOp9?T&k{3Nq37alg1-d5RrN zynsDm$VnV)pT=orBEGtKX!IXme3)B`ni85*vc(undv2 zgM5$9E!}}>>Io(lGwg!x5ZuXj+@6TAc6aG3FhxlzWA9FcTM-~{(Bp+k-q2?MIs?-i z{t{67Weg_yN=Q;7UEuGF*hsq+-MjfTqI+l`=dYmxVrjO*d~NYf*9u*8{owci_(}Yh zBGbj7pmQ^ybU9w-47P*I#qR!yl3vG9hqiE-GvU>n^s^W`MJ#)yn~_HNpGE(-6g|gv zse~cBOw;OZMH#NDBTgPs*+0Z!5zh&Yn@{K}Q_2j}yPwiGAsT2AqOr)bRiE-5W=&RE zJ<*u{^G3AmkGRw6p9iItNTd46e2Z2`q!#9o<9rAd%(jejcerh}zUg^H!*FLh$w!+Z z3F6N^CnbnaBUJx1cAUS}#rp~!G*`UtV87D#$GhYFm43S5+v#b7$idTmo(%G3z7KnTaJWZ4`CO1b0K?z zl6F_QH5`7}fcaDCh^G8H27t*cWsm+unzb_}sNOepMV9OonLxTD-0Zif?SG@2Pp zhp+RgZX?8BLh!xGO(Qygm;cs*=h<#9lX>ytg$RKEF{5?71ALaUI*nCaKYMgiSvie7 zIH~Xp+?e4JQBf_-1{dHiZTfa&-@ebz@rjWy)3Umc-5Jy={P=Cx?gt0iwV%hYY_j+6 z^g2~G9SBeFuf6uaRjce{HS{KqkD>pLU*oK~9Q&Nh1f&q5RD|;u|}$m(nh1I0kU;nM9v3QC1?=Pb%UsK9ivVxAchYC0bxn5WF{1s zST2pIh5t}*J@rzc_x_aL`VTt0OHyj1w9!T6%)FU5vu`=yJV`DR_<|g~&czLpif`GJu#)S(;Fvk)vV%Ig?byxKV5Ek!^BCZ%5Oj7 zV|V_l!Ky)hg||72qLGHS8rbv399f)={Q^UDJQBJAA9;9H7>#p~8q~URDA`Py$Q|k^ zR12R#GvIjVS#DRSQ9=9Huvs2@?gDfzP%jCTQb*W*sJ~&e9I&bZt);!<)J^qNiZGt! zh>sCbNBcH_7jZAQT4-&e)rQRpn%13DeO&4PR)HJ1zLqiQHw*P>Q4B=Mx#lHORX%Ec>4>_KUY6J(yPq=PA3@@3(Y?7{ZaT_S3BK>b%*=z&+1JB obsX(>oD%Ff=RI#t3;N;h@+*4JtdWJS^WKf4Bh6;Gf-8W(0fv}&dH?_b diff --git a/owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/Query.php b/owl-bot-staging/Datastore/v1/proto/src/GPBMetadata/Google/Datastore/V1/Query.php deleted file mode 100644 index a42f6011f29891340783c73ac1e44cf2d3b47cc8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4897 zcmbVQPjlPW5jRPZ7MB#oJSQ=&I0=lnjojK$B-gD&)p7X;l2}tDO;YZ-!x;=jK2nGw z00BUyYR4a;hu+$mUVG^!(_3eH$UV1AzCaE+$7AYBL;KhqpX9H$94)=VixJ zYv>!cB{7AzHKglzBw>@u-ga!<Y!-3JfVIR zF7{^qPOvO9XN;wF;bXac&dEoT?@sCb>XPJAf9hJ>+;3*!W%S=5CQKE_80;9-998L& zeqz{exjfs|%t)N-e1r$8nlf5=^L0tUq5y(q5B6{cO2?^@v1x#_dYX%uvbQ- zD9SsCy!9w9EJ`24KPC9^6_6v>gn$xZQaRaNiv=p>@eoK|3+-~;A`~|KaMOXn2f@OT zz?Z?!#CQ2`Nyv)`cd0iueez4lh!si+DY2g0dQXY*Oc5$%6|SCOln}9{C6rE)4af~$ ziq)wxM@kuPVl6ZgI-x|VVG2_RHytRXU#U=l%y8;@wp&V}Y+il}AUyA%I+VNz*Sl)( zpxM{@&pWDi(CT&6T4Sf7){9rjGA!*JG@Hc)DFAf3?cb}lexuzgCP^NapQz8ZcB}ck zn3BIrL7LYyxetIoe@=N(mXcBm1M*?GoB32Jok)yq!qN-F8lito{G(X$Cn%u)$#JR2 zg2#eBHcTvH9>$*vI${e&(0M<|=-3&^nxpg)LT|Fq2{$u{IhhUXi|E*j=4!xevi zp<b8gj_ZCeI+6Pumr`*Wa82ZQm$=@ zjD9h5FSM z$cc4D>i?5~)rCdKr;xNAp8CSpz1ML|X$QC>cj2nA?gd>XzRe16Z@ByiDV%y z^wKPTjaD&3a2Y&31m?2L++L-pRa!N*htV(QumxtA01B_j-yzq}^(AEJ)e|f!+torC zz8Q}(HcXNSkQe+TYz2gWK?sFf8;Y#o>)5`vW2$>oS46+C^+_yF=N!kf7K-~qPZ&fR z7oD7qc^7wbq3|;(MIK;3$H{UQ2R7u1K0zJLUA^% zAJqCd3jQkz%e!Bgd^})-kVuB-yM{Fpq>tz;=%#6ZshP-CE*|Z8l9sXA7g%c;X@@wi zptu*zYw;Nf7g1VFry8i>nC+gD8eHQ{h?9+O&de=cFvW%DI=YMY(66<@07#7O9Hd^* z(_kwP!b%lP8Q*cwnJywL#?zdl$eK3A=c9u;05B zF1j32Rox#Rk?XMPy)f{&Hqr#rJPx2V%S`xT{>XrtA>xP=$aC8PkHinternalAddGeneratedFile( - ' -ã -\'google/datastore/v1/query_profile.protogoogle.datastore.v1google/protobuf/duration.protogoogle/protobuf/struct.proto"& -ExplainOptions -analyze (BàA"† -ExplainMetrics6 - plan_summary ( 2 .google.datastore.v1.PlanSummary< -execution_stats ( 2#.google.datastore.v1.ExecutionStats"< - PlanSummary- - indexes_used ( 2.google.protobuf.Struct"¨ -ExecutionStats -results_returned (5 -execution_duration ( 2.google.protobuf.Duration -read_operations (, - debug_stats ( 2.google.protobuf.StructB -com.google.datastore.v1BQueryProfileProtoPZ;cloud.google.com/go/datastore/apiv1/datastorepb;datastorepbªGoogle.Cloud.Datastore.V1ÊGoogle\\Cloud\\Datastore\\V1êGoogle::Cloud::Datastore::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery.php deleted file mode 100644 index 7417e426db56..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery.php +++ /dev/null @@ -1,122 +0,0 @@ -google.datastore.v1.AggregationQuery - */ -class AggregationQuery extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Series of aggregations to apply over the results of the - * `nested_query`. - * Requires: - * * A minimum of one and maximum of five aggregations per query. - * - * Generated from protobuf field repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $aggregations; - protected $query_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\Query $nested_query - * Nested query for aggregation - * @type array<\Google\Cloud\Datastore\V1\AggregationQuery\Aggregation>|\Google\Protobuf\Internal\RepeatedField $aggregations - * Optional. Series of aggregations to apply over the results of the - * `nested_query`. - * Requires: - * * A minimum of one and maximum of five aggregations per query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * Nested query for aggregation - * - * Generated from protobuf field .google.datastore.v1.Query nested_query = 1; - * @return \Google\Cloud\Datastore\V1\Query|null - */ - public function getNestedQuery() - { - return $this->readOneof(1); - } - - public function hasNestedQuery() - { - return $this->hasOneof(1); - } - - /** - * Nested query for aggregation - * - * Generated from protobuf field .google.datastore.v1.Query nested_query = 1; - * @param \Google\Cloud\Datastore\V1\Query $var - * @return $this - */ - public function setNestedQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Query::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. Series of aggregations to apply over the results of the - * `nested_query`. - * Requires: - * * A minimum of one and maximum of five aggregations per query. - * - * Generated from protobuf field repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAggregations() - { - return $this->aggregations; - } - - /** - * Optional. Series of aggregations to apply over the results of the - * `nested_query`. - * Requires: - * * A minimum of one and maximum of five aggregations per query. - * - * Generated from protobuf field repeated .google.datastore.v1.AggregationQuery.Aggregation aggregations = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\Datastore\V1\AggregationQuery\Aggregation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAggregations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation::class); - $this->aggregations = $arr; - - return $this; - } - - /** - * @return string - */ - public function getQueryType() - { - return $this->whichOneof("query_type"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation.php deleted file mode 100644 index e8c7cc0360ae..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation.php +++ /dev/null @@ -1,290 +0,0 @@ -google.datastore.v1.AggregationQuery.Aggregation - */ -class Aggregation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Optional name of the property to store the result of the - * aggregation. - * If not provided, Datastore will pick a default name following the format - * `property_`. For example: - * ``` - * AGGREGATE - * COUNT_UP_TO(1) AS count_up_to_1, - * COUNT_UP_TO(2), - * COUNT_UP_TO(3) AS count_up_to_3, - * COUNT(*) - * OVER ( - * ... - * ); - * ``` - * becomes: - * ``` - * AGGREGATE - * COUNT_UP_TO(1) AS count_up_to_1, - * COUNT_UP_TO(2) AS property_1, - * COUNT_UP_TO(3) AS count_up_to_3, - * COUNT(*) AS property_2 - * OVER ( - * ... - * ); - * ``` - * Requires: - * * Must be unique across all aggregation aliases. - * * Conform to [entity property - * name][google.datastore.v1.Entity.properties] limitations. - * - * Generated from protobuf field string alias = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $alias = ''; - protected $operator; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Count $count - * Count aggregator. - * @type \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Sum $sum - * Sum aggregator. - * @type \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Avg $avg - * Average aggregator. - * @type string $alias - * Optional. Optional name of the property to store the result of the - * aggregation. - * If not provided, Datastore will pick a default name following the format - * `property_`. For example: - * ``` - * AGGREGATE - * COUNT_UP_TO(1) AS count_up_to_1, - * COUNT_UP_TO(2), - * COUNT_UP_TO(3) AS count_up_to_3, - * COUNT(*) - * OVER ( - * ... - * ); - * ``` - * becomes: - * ``` - * AGGREGATE - * COUNT_UP_TO(1) AS count_up_to_1, - * COUNT_UP_TO(2) AS property_1, - * COUNT_UP_TO(3) AS count_up_to_3, - * COUNT(*) AS property_2 - * OVER ( - * ... - * ); - * ``` - * Requires: - * * Must be unique across all aggregation aliases. - * * Conform to [entity property - * name][google.datastore.v1.Entity.properties] limitations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * Count aggregator. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery.Aggregation.Count count = 1; - * @return \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Count|null - */ - public function getCount() - { - return $this->readOneof(1); - } - - public function hasCount() - { - return $this->hasOneof(1); - } - - /** - * Count aggregator. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery.Aggregation.Count count = 1; - * @param \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Count $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Count::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Sum aggregator. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2; - * @return \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Sum|null - */ - public function getSum() - { - return $this->readOneof(2); - } - - public function hasSum() - { - return $this->hasOneof(2); - } - - /** - * Sum aggregator. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery.Aggregation.Sum sum = 2; - * @param \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Sum $var - * @return $this - */ - public function setSum($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Sum::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Average aggregator. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3; - * @return \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Avg|null - */ - public function getAvg() - { - return $this->readOneof(3); - } - - public function hasAvg() - { - return $this->hasOneof(3); - } - - /** - * Average aggregator. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery.Aggregation.Avg avg = 3; - * @param \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Avg $var - * @return $this - */ - public function setAvg($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\AggregationQuery\Aggregation\Avg::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Optional. Optional name of the property to store the result of the - * aggregation. - * If not provided, Datastore will pick a default name following the format - * `property_`. For example: - * ``` - * AGGREGATE - * COUNT_UP_TO(1) AS count_up_to_1, - * COUNT_UP_TO(2), - * COUNT_UP_TO(3) AS count_up_to_3, - * COUNT(*) - * OVER ( - * ... - * ); - * ``` - * becomes: - * ``` - * AGGREGATE - * COUNT_UP_TO(1) AS count_up_to_1, - * COUNT_UP_TO(2) AS property_1, - * COUNT_UP_TO(3) AS count_up_to_3, - * COUNT(*) AS property_2 - * OVER ( - * ... - * ); - * ``` - * Requires: - * * Must be unique across all aggregation aliases. - * * Conform to [entity property - * name][google.datastore.v1.Entity.properties] limitations. - * - * Generated from protobuf field string alias = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAlias() - { - return $this->alias; - } - - /** - * Optional. Optional name of the property to store the result of the - * aggregation. - * If not provided, Datastore will pick a default name following the format - * `property_`. For example: - * ``` - * AGGREGATE - * COUNT_UP_TO(1) AS count_up_to_1, - * COUNT_UP_TO(2), - * COUNT_UP_TO(3) AS count_up_to_3, - * COUNT(*) - * OVER ( - * ... - * ); - * ``` - * becomes: - * ``` - * AGGREGATE - * COUNT_UP_TO(1) AS count_up_to_1, - * COUNT_UP_TO(2) AS property_1, - * COUNT_UP_TO(3) AS count_up_to_3, - * COUNT(*) AS property_2 - * OVER ( - * ... - * ); - * ``` - * Requires: - * * Must be unique across all aggregation aliases. - * * Conform to [entity property - * name][google.datastore.v1.Entity.properties] limitations. - * - * Generated from protobuf field string alias = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAlias($var) - { - GPBUtil::checkString($var, True); - $this->alias = $var; - - return $this; - } - - /** - * @return string - */ - public function getOperator() - { - return $this->whichOneof("operator"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Aggregation::class, \Google\Cloud\Datastore\V1\AggregationQuery_Aggregation::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Avg.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Avg.php deleted file mode 100644 index 3cc34c0639bc..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Avg.php +++ /dev/null @@ -1,86 +0,0 @@ -google.datastore.v1.AggregationQuery.Aggregation.Avg - */ -class Avg extends \Google\Protobuf\Internal\Message -{ - /** - * The property to aggregate on. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - */ - protected $property = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\PropertyReference $property - * The property to aggregate on. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * The property to aggregate on. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - * @return \Google\Cloud\Datastore\V1\PropertyReference|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * The property to aggregate on. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - * @param \Google\Cloud\Datastore\V1\PropertyReference $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PropertyReference::class); - $this->property = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Avg::class, \Google\Cloud\Datastore\V1\AggregationQuery_Aggregation_Avg::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Count.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Count.php deleted file mode 100644 index 209b170896c9..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Count.php +++ /dev/null @@ -1,181 +0,0 @@ -google.datastore.v1.AggregationQuery.Aggregation.Count - */ -class Count extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Optional constraint on the maximum number of entities to - * count. - * This provides a way to set an upper bound on the number of entities - * to scan, limiting latency, and cost. - * Unspecified is interpreted as no bound. - * If a zero value is provided, a count result of zero should always be - * expected. - * High-Level Example: - * ``` - * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); - * ``` - * Requires: - * * Must be non-negative when present. - * - * Generated from protobuf field .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $up_to = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Int64Value $up_to - * Optional. Optional constraint on the maximum number of entities to - * count. - * This provides a way to set an upper bound on the number of entities - * to scan, limiting latency, and cost. - * Unspecified is interpreted as no bound. - * If a zero value is provided, a count result of zero should always be - * expected. - * High-Level Example: - * ``` - * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); - * ``` - * Requires: - * * Must be non-negative when present. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Optional constraint on the maximum number of entities to - * count. - * This provides a way to set an upper bound on the number of entities - * to scan, limiting latency, and cost. - * Unspecified is interpreted as no bound. - * If a zero value is provided, a count result of zero should always be - * expected. - * High-Level Example: - * ``` - * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); - * ``` - * Requires: - * * Must be non-negative when present. - * - * Generated from protobuf field .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Int64Value|null - */ - public function getUpTo() - { - return $this->up_to; - } - - public function hasUpTo() - { - return isset($this->up_to); - } - - public function clearUpTo() - { - unset($this->up_to); - } - - /** - * Returns the unboxed value from getUpTo() - - * Optional. Optional constraint on the maximum number of entities to - * count. - * This provides a way to set an upper bound on the number of entities - * to scan, limiting latency, and cost. - * Unspecified is interpreted as no bound. - * If a zero value is provided, a count result of zero should always be - * expected. - * High-Level Example: - * ``` - * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); - * ``` - * Requires: - * * Must be non-negative when present. - * - * Generated from protobuf field .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int|string|null - */ - public function getUpToUnwrapped() - { - return $this->readWrapperValue("up_to"); - } - - /** - * Optional. Optional constraint on the maximum number of entities to - * count. - * This provides a way to set an upper bound on the number of entities - * to scan, limiting latency, and cost. - * Unspecified is interpreted as no bound. - * If a zero value is provided, a count result of zero should always be - * expected. - * High-Level Example: - * ``` - * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); - * ``` - * Requires: - * * Must be non-negative when present. - * - * Generated from protobuf field .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Int64Value $var - * @return $this - */ - public function setUpTo($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int64Value::class); - $this->up_to = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int64Value object. - - * Optional. Optional constraint on the maximum number of entities to - * count. - * This provides a way to set an upper bound on the number of entities - * to scan, limiting latency, and cost. - * Unspecified is interpreted as no bound. - * If a zero value is provided, a count result of zero should always be - * expected. - * High-Level Example: - * ``` - * AGGREGATE COUNT_UP_TO(1000) OVER ( SELECT * FROM k ); - * ``` - * Requires: - * * Must be non-negative when present. - * - * Generated from protobuf field .google.protobuf.Int64Value up_to = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int|string|null $var - * @return $this - */ - public function setUpToUnwrapped($var) - { - $this->writeWrapperValue("up_to", $var); - return $this;} - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Count::class, \Google\Cloud\Datastore\V1\AggregationQuery_Aggregation_Count::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Sum.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Sum.php deleted file mode 100644 index 1743020e7294..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationQuery/Aggregation/Sum.php +++ /dev/null @@ -1,95 +0,0 @@ -google.datastore.v1.AggregationQuery.Aggregation.Sum - */ -class Sum extends \Google\Protobuf\Internal\Message -{ - /** - * The property to aggregate on. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - */ - protected $property = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\PropertyReference $property - * The property to aggregate on. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * The property to aggregate on. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - * @return \Google\Cloud\Datastore\V1\PropertyReference|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * The property to aggregate on. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - * @param \Google\Cloud\Datastore\V1\PropertyReference $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PropertyReference::class); - $this->property = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Sum::class, \Google\Cloud\Datastore\V1\AggregationQuery_Aggregation_Sum::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationResult.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationResult.php deleted file mode 100644 index a88234102734..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationResult.php +++ /dev/null @@ -1,86 +0,0 @@ -google.datastore.v1.AggregationResult - */ -class AggregationResult extends \Google\Protobuf\Internal\Message -{ - /** - * The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. - * The key is the - * [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to - * the aggregation function on input and the size of this map equals the - * number of aggregation functions in the query. - * - * Generated from protobuf field map aggregate_properties = 2; - */ - private $aggregate_properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\MapField $aggregate_properties - * The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. - * The key is the - * [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to - * the aggregation function on input and the size of this map equals the - * number of aggregation functions in the query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\AggregationResult::initOnce(); - parent::__construct($data); - } - - /** - * The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. - * The key is the - * [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to - * the aggregation function on input and the size of this map equals the - * number of aggregation functions in the query. - * - * Generated from protobuf field map aggregate_properties = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAggregateProperties() - { - return $this->aggregate_properties; - } - - /** - * The result of the aggregation functions, ex: `COUNT(*) AS total_entities`. - * The key is the - * [alias][google.datastore.v1.AggregationQuery.Aggregation.alias] assigned to - * the aggregation function on input and the size of this map equals the - * number of aggregation functions in the query. - * - * Generated from protobuf field map aggregate_properties = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAggregateProperties($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Value::class); - $this->aggregate_properties = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationResultBatch.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationResultBatch.php deleted file mode 100644 index 5dd97e690dc6..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AggregationResultBatch.php +++ /dev/null @@ -1,165 +0,0 @@ -google.datastore.v1.AggregationResultBatch - */ -class AggregationResultBatch extends \Google\Protobuf\Internal\Message -{ - /** - * The aggregation results for this batch. - * - * Generated from protobuf field repeated .google.datastore.v1.AggregationResult aggregation_results = 1; - */ - private $aggregation_results; - /** - * The state of the query after the current batch. - * Only COUNT(*) aggregations are supported in the initial launch. Therefore, - * expected result type is limited to `NO_MORE_RESULTS`. - * - * Generated from protobuf field .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2; - */ - protected $more_results = 0; - /** - * Read timestamp this batch was returned from. - * In a single transaction, subsequent query result batches for the same query - * can have a greater timestamp. Each batch's read timestamp - * is valid for all preceding batches. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 3; - */ - protected $read_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Datastore\V1\AggregationResult>|\Google\Protobuf\Internal\RepeatedField $aggregation_results - * The aggregation results for this batch. - * @type int $more_results - * The state of the query after the current batch. - * Only COUNT(*) aggregations are supported in the initial launch. Therefore, - * expected result type is limited to `NO_MORE_RESULTS`. - * @type \Google\Protobuf\Timestamp $read_time - * Read timestamp this batch was returned from. - * In a single transaction, subsequent query result batches for the same query - * can have a greater timestamp. Each batch's read timestamp - * is valid for all preceding batches. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\AggregationResult::initOnce(); - parent::__construct($data); - } - - /** - * The aggregation results for this batch. - * - * Generated from protobuf field repeated .google.datastore.v1.AggregationResult aggregation_results = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAggregationResults() - { - return $this->aggregation_results; - } - - /** - * The aggregation results for this batch. - * - * Generated from protobuf field repeated .google.datastore.v1.AggregationResult aggregation_results = 1; - * @param array<\Google\Cloud\Datastore\V1\AggregationResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAggregationResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\AggregationResult::class); - $this->aggregation_results = $arr; - - return $this; - } - - /** - * The state of the query after the current batch. - * Only COUNT(*) aggregations are supported in the initial launch. Therefore, - * expected result type is limited to `NO_MORE_RESULTS`. - * - * Generated from protobuf field .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2; - * @return int - */ - public function getMoreResults() - { - return $this->more_results; - } - - /** - * The state of the query after the current batch. - * Only COUNT(*) aggregations are supported in the initial launch. Therefore, - * expected result type is limited to `NO_MORE_RESULTS`. - * - * Generated from protobuf field .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 2; - * @param int $var - * @return $this - */ - public function setMoreResults($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\QueryResultBatch\MoreResultsType::class); - $this->more_results = $var; - - return $this; - } - - /** - * Read timestamp this batch was returned from. - * In a single transaction, subsequent query result batches for the same query - * can have a greater timestamp. Each batch's read timestamp - * is valid for all preceding batches. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReadTime() - { - return $this->read_time; - } - - public function hasReadTime() - { - return isset($this->read_time); - } - - public function clearReadTime() - { - unset($this->read_time); - } - - /** - * Read timestamp this batch was returned from. - * In a single transaction, subsequent query result batches for the same query - * can have a greater timestamp. Each batch's read timestamp - * is valid for all preceding batches. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->read_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AllocateIdsRequest.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AllocateIdsRequest.php deleted file mode 100644 index df1f2e88eb08..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AllocateIdsRequest.php +++ /dev/null @@ -1,164 +0,0 @@ -google.datastore.v1.AllocateIdsRequest - */ -class AllocateIdsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - */ - protected $database_id = ''; - /** - * Required. A list of keys with incomplete key paths for which to allocate - * IDs. No key may be reserved/read-only. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $keys; - - /** - * @param string $projectId Required. The ID of the project against which to make the request. - * @param \Google\Cloud\Datastore\V1\Key[] $keys Required. A list of keys with incomplete key paths for which to allocate - * IDs. No key may be reserved/read-only. - * - * @return \Google\Cloud\Datastore\V1\AllocateIdsRequest - * - * @experimental - */ - public static function build(string $projectId, array $keys): self - { - return (new self()) - ->setProjectId($projectId) - ->setKeys($keys); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the project against which to make the request. - * @type string $database_id - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type array<\Google\Cloud\Datastore\V1\Key>|\Google\Protobuf\Internal\RepeatedField $keys - * Required. A list of keys with incomplete key paths for which to allocate - * IDs. No key may be reserved/read-only. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Required. A list of keys with incomplete key paths for which to allocate - * IDs. No key may be reserved/read-only. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeys() - { - return $this->keys; - } - - /** - * Required. A list of keys with incomplete key paths for which to allocate - * IDs. No key may be reserved/read-only. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Datastore\V1\Key>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Key::class); - $this->keys = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AllocateIdsResponse.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AllocateIdsResponse.php deleted file mode 100644 index e0b747b6a67d..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/AllocateIdsResponse.php +++ /dev/null @@ -1,72 +0,0 @@ -google.datastore.v1.AllocateIdsResponse - */ -class AllocateIdsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The keys specified in the request (in the same order), each with - * its key path completed with a newly allocated ID. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1; - */ - private $keys; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Datastore\V1\Key>|\Google\Protobuf\Internal\RepeatedField $keys - * The keys specified in the request (in the same order), each with - * its key path completed with a newly allocated ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * The keys specified in the request (in the same order), each with - * its key path completed with a newly allocated ID. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeys() - { - return $this->keys; - } - - /** - * The keys specified in the request (in the same order), each with - * its key path completed with a newly allocated ID. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1; - * @param array<\Google\Cloud\Datastore\V1\Key>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Key::class); - $this->keys = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ArrayValue.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ArrayValue.php deleted file mode 100644 index 54d0bbf39feb..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ArrayValue.php +++ /dev/null @@ -1,75 +0,0 @@ -google.datastore.v1.ArrayValue - */ -class ArrayValue extends \Google\Protobuf\Internal\Message -{ - /** - * Values in the array. - * The order of values in an array is preserved as long as all values have - * identical settings for 'exclude_from_indexes'. - * - * Generated from protobuf field repeated .google.datastore.v1.Value values = 1; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Datastore\V1\Value>|\Google\Protobuf\Internal\RepeatedField $values - * Values in the array. - * The order of values in an array is preserved as long as all values have - * identical settings for 'exclude_from_indexes'. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Values in the array. - * The order of values in an array is preserved as long as all values have - * identical settings for 'exclude_from_indexes'. - * - * Generated from protobuf field repeated .google.datastore.v1.Value values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Values in the array. - * The order of values in an array is preserved as long as all values have - * identical settings for 'exclude_from_indexes'. - * - * Generated from protobuf field repeated .google.datastore.v1.Value values = 1; - * @param array<\Google\Cloud\Datastore\V1\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Value::class); - $this->values = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/BeginTransactionRequest.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/BeginTransactionRequest.php deleted file mode 100644 index 03c7ca69e5e0..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/BeginTransactionRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.datastore.v1.BeginTransactionRequest - */ -class BeginTransactionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - */ - protected $database_id = ''; - /** - * Options for a new transaction. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions transaction_options = 10; - */ - protected $transaction_options = null; - - /** - * @param string $projectId Required. The ID of the project against which to make the request. - * - * @return \Google\Cloud\Datastore\V1\BeginTransactionRequest - * - * @experimental - */ - public static function build(string $projectId): self - { - return (new self()) - ->setProjectId($projectId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the project against which to make the request. - * @type string $database_id - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type \Google\Cloud\Datastore\V1\TransactionOptions $transaction_options - * Options for a new transaction. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Options for a new transaction. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions transaction_options = 10; - * @return \Google\Cloud\Datastore\V1\TransactionOptions|null - */ - public function getTransactionOptions() - { - return $this->transaction_options; - } - - public function hasTransactionOptions() - { - return isset($this->transaction_options); - } - - public function clearTransactionOptions() - { - unset($this->transaction_options); - } - - /** - * Options for a new transaction. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions transaction_options = 10; - * @param \Google\Cloud\Datastore\V1\TransactionOptions $var - * @return $this - */ - public function setTransactionOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\TransactionOptions::class); - $this->transaction_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/BeginTransactionResponse.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/BeginTransactionResponse.php deleted file mode 100644 index 09b15c04119b..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/BeginTransactionResponse.php +++ /dev/null @@ -1,68 +0,0 @@ -google.datastore.v1.BeginTransactionResponse - */ -class BeginTransactionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The transaction identifier (always present). - * - * Generated from protobuf field bytes transaction = 1; - */ - protected $transaction = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $transaction - * The transaction identifier (always present). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * The transaction identifier (always present). - * - * Generated from protobuf field bytes transaction = 1; - * @return string - */ - public function getTransaction() - { - return $this->transaction; - } - - /** - * The transaction identifier (always present). - * - * Generated from protobuf field bytes transaction = 1; - * @param string $var - * @return $this - */ - public function setTransaction($var) - { - GPBUtil::checkString($var, False); - $this->transaction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitRequest.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitRequest.php deleted file mode 100644 index 3d25a236d48b..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitRequest.php +++ /dev/null @@ -1,367 +0,0 @@ -google.datastore.v1.CommitRequest - */ -class CommitRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - */ - protected $database_id = ''; - /** - * The type of commit to perform. Defaults to `TRANSACTIONAL`. - * - * Generated from protobuf field .google.datastore.v1.CommitRequest.Mode mode = 5; - */ - protected $mode = 0; - /** - * The mutations to perform. - * When mode is `TRANSACTIONAL`, mutations affecting a single entity are - * applied in order. The following sequences of mutations affecting a single - * entity are not permitted in a single `Commit` request: - * - `insert` followed by `insert` - * - `update` followed by `insert` - * - `upsert` followed by `insert` - * - `delete` followed by `update` - * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single - * entity. - * - * Generated from protobuf field repeated .google.datastore.v1.Mutation mutations = 6; - */ - private $mutations; - protected $transaction_selector; - - /** - * @param string $projectId Required. The ID of the project against which to make the request. - * @param int $mode The type of commit to perform. Defaults to `TRANSACTIONAL`. - * For allowed values, use constants defined on {@see \Google\Cloud\Datastore\V1\CommitRequest\Mode} - * @param string $transaction The identifier of the transaction associated with the commit. A - * transaction identifier is returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * @param \Google\Cloud\Datastore\V1\Mutation[] $mutations The mutations to perform. - * - * When mode is `TRANSACTIONAL`, mutations affecting a single entity are - * applied in order. The following sequences of mutations affecting a single - * entity are not permitted in a single `Commit` request: - * - * - `insert` followed by `insert` - * - `update` followed by `insert` - * - `upsert` followed by `insert` - * - `delete` followed by `update` - * - * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single - * entity. - * - * @return \Google\Cloud\Datastore\V1\CommitRequest - * - * @experimental - */ - public static function build(string $projectId, int $mode, string $transaction, array $mutations): self - { - return (new self()) - ->setProjectId($projectId) - ->setMode($mode) - ->setTransaction($transaction) - ->setMutations($mutations); - } - - /** - * @param string $projectId Required. The ID of the project against which to make the request. - * @param int $mode The type of commit to perform. Defaults to `TRANSACTIONAL`. - * For allowed values, use constants defined on {@see \Google\Cloud\Datastore\V1\CommitRequest\Mode} - * @param \Google\Cloud\Datastore\V1\Mutation[] $mutations The mutations to perform. - * - * When mode is `TRANSACTIONAL`, mutations affecting a single entity are - * applied in order. The following sequences of mutations affecting a single - * entity are not permitted in a single `Commit` request: - * - * - `insert` followed by `insert` - * - `update` followed by `insert` - * - `upsert` followed by `insert` - * - `delete` followed by `update` - * - * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single - * entity. - * - * @return \Google\Cloud\Datastore\V1\CommitRequest - * - * @experimental - */ - public static function buildFromProjectIdModeMutations(string $projectId, int $mode, array $mutations): self - { - return (new self()) - ->setProjectId($projectId) - ->setMode($mode) - ->setMutations($mutations); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the project against which to make the request. - * @type string $database_id - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type int $mode - * The type of commit to perform. Defaults to `TRANSACTIONAL`. - * @type string $transaction - * The identifier of the transaction associated with the commit. A - * transaction identifier is returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * @type \Google\Cloud\Datastore\V1\TransactionOptions $single_use_transaction - * Options for beginning a new transaction for this request. - * The transaction is committed when the request completes. If specified, - * [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be - * [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite]. - * @type array<\Google\Cloud\Datastore\V1\Mutation>|\Google\Protobuf\Internal\RepeatedField $mutations - * The mutations to perform. - * When mode is `TRANSACTIONAL`, mutations affecting a single entity are - * applied in order. The following sequences of mutations affecting a single - * entity are not permitted in a single `Commit` request: - * - `insert` followed by `insert` - * - `update` followed by `insert` - * - `upsert` followed by `insert` - * - `delete` followed by `update` - * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single - * entity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * The type of commit to perform. Defaults to `TRANSACTIONAL`. - * - * Generated from protobuf field .google.datastore.v1.CommitRequest.Mode mode = 5; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * The type of commit to perform. Defaults to `TRANSACTIONAL`. - * - * Generated from protobuf field .google.datastore.v1.CommitRequest.Mode mode = 5; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\CommitRequest\Mode::class); - $this->mode = $var; - - return $this; - } - - /** - * The identifier of the transaction associated with the commit. A - * transaction identifier is returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * - * Generated from protobuf field bytes transaction = 1; - * @return string - */ - public function getTransaction() - { - return $this->readOneof(1); - } - - public function hasTransaction() - { - return $this->hasOneof(1); - } - - /** - * The identifier of the transaction associated with the commit. A - * transaction identifier is returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * - * Generated from protobuf field bytes transaction = 1; - * @param string $var - * @return $this - */ - public function setTransaction($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Options for beginning a new transaction for this request. - * The transaction is committed when the request completes. If specified, - * [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be - * [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite]. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions single_use_transaction = 10; - * @return \Google\Cloud\Datastore\V1\TransactionOptions|null - */ - public function getSingleUseTransaction() - { - return $this->readOneof(10); - } - - public function hasSingleUseTransaction() - { - return $this->hasOneof(10); - } - - /** - * Options for beginning a new transaction for this request. - * The transaction is committed when the request completes. If specified, - * [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be - * [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite]. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions single_use_transaction = 10; - * @param \Google\Cloud\Datastore\V1\TransactionOptions $var - * @return $this - */ - public function setSingleUseTransaction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\TransactionOptions::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * The mutations to perform. - * When mode is `TRANSACTIONAL`, mutations affecting a single entity are - * applied in order. The following sequences of mutations affecting a single - * entity are not permitted in a single `Commit` request: - * - `insert` followed by `insert` - * - `update` followed by `insert` - * - `upsert` followed by `insert` - * - `delete` followed by `update` - * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single - * entity. - * - * Generated from protobuf field repeated .google.datastore.v1.Mutation mutations = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMutations() - { - return $this->mutations; - } - - /** - * The mutations to perform. - * When mode is `TRANSACTIONAL`, mutations affecting a single entity are - * applied in order. The following sequences of mutations affecting a single - * entity are not permitted in a single `Commit` request: - * - `insert` followed by `insert` - * - `update` followed by `insert` - * - `upsert` followed by `insert` - * - `delete` followed by `update` - * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single - * entity. - * - * Generated from protobuf field repeated .google.datastore.v1.Mutation mutations = 6; - * @param array<\Google\Cloud\Datastore\V1\Mutation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMutations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Mutation::class); - $this->mutations = $arr; - - return $this; - } - - /** - * @return string - */ - public function getTransactionSelector() - { - return $this->whichOneof("transaction_selector"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitRequest/Mode.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitRequest/Mode.php deleted file mode 100644 index b4e9acbd6eb8..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitRequest/Mode.php +++ /dev/null @@ -1,66 +0,0 @@ -google.datastore.v1.CommitRequest.Mode - */ -class Mode -{ - /** - * Unspecified. This value must not be used. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * Transactional: The mutations are either all applied, or none are applied. - * Learn about transactions - * [here](https://cloud.google.com/datastore/docs/concepts/transactions). - * - * Generated from protobuf enum TRANSACTIONAL = 1; - */ - const TRANSACTIONAL = 1; - /** - * Non-transactional: The mutations may not apply as all or none. - * - * Generated from protobuf enum NON_TRANSACTIONAL = 2; - */ - const NON_TRANSACTIONAL = 2; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::TRANSACTIONAL => 'TRANSACTIONAL', - self::NON_TRANSACTIONAL => 'NON_TRANSACTIONAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Datastore\V1\CommitRequest_Mode::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitResponse.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitResponse.php deleted file mode 100644 index 9c468d874e9e..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CommitResponse.php +++ /dev/null @@ -1,153 +0,0 @@ -google.datastore.v1.CommitResponse - */ -class CommitResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The result of performing the mutations. - * The i-th mutation result corresponds to the i-th mutation in the request. - * - * Generated from protobuf field repeated .google.datastore.v1.MutationResult mutation_results = 3; - */ - private $mutation_results; - /** - * The number of index entries updated during the commit, or zero if none were - * updated. - * - * Generated from protobuf field int32 index_updates = 4; - */ - protected $index_updates = 0; - /** - * The transaction commit timestamp. Not set for non-transactional commits. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_time = 8; - */ - protected $commit_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Datastore\V1\MutationResult>|\Google\Protobuf\Internal\RepeatedField $mutation_results - * The result of performing the mutations. - * The i-th mutation result corresponds to the i-th mutation in the request. - * @type int $index_updates - * The number of index entries updated during the commit, or zero if none were - * updated. - * @type \Google\Protobuf\Timestamp $commit_time - * The transaction commit timestamp. Not set for non-transactional commits. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * The result of performing the mutations. - * The i-th mutation result corresponds to the i-th mutation in the request. - * - * Generated from protobuf field repeated .google.datastore.v1.MutationResult mutation_results = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMutationResults() - { - return $this->mutation_results; - } - - /** - * The result of performing the mutations. - * The i-th mutation result corresponds to the i-th mutation in the request. - * - * Generated from protobuf field repeated .google.datastore.v1.MutationResult mutation_results = 3; - * @param array<\Google\Cloud\Datastore\V1\MutationResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMutationResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\MutationResult::class); - $this->mutation_results = $arr; - - return $this; - } - - /** - * The number of index entries updated during the commit, or zero if none were - * updated. - * - * Generated from protobuf field int32 index_updates = 4; - * @return int - */ - public function getIndexUpdates() - { - return $this->index_updates; - } - - /** - * The number of index entries updated during the commit, or zero if none were - * updated. - * - * Generated from protobuf field int32 index_updates = 4; - * @param int $var - * @return $this - */ - public function setIndexUpdates($var) - { - GPBUtil::checkInt32($var); - $this->index_updates = $var; - - return $this; - } - - /** - * The transaction commit timestamp. Not set for non-transactional commits. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCommitTime() - { - return $this->commit_time; - } - - public function hasCommitTime() - { - return isset($this->commit_time); - } - - public function clearCommitTime() - { - unset($this->commit_time); - } - - /** - * The transaction commit timestamp. Not set for non-transactional commits. - * - * Generated from protobuf field .google.protobuf.Timestamp commit_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCommitTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->commit_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CompositeFilter.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CompositeFilter.php deleted file mode 100644 index 8426fe7cea32..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CompositeFilter.php +++ /dev/null @@ -1,109 +0,0 @@ -google.datastore.v1.CompositeFilter - */ -class CompositeFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The operator for combining multiple filters. - * - * Generated from protobuf field .google.datastore.v1.CompositeFilter.Operator op = 1; - */ - protected $op = 0; - /** - * The list of filters to combine. - * Requires: - * * At least one filter is present. - * - * Generated from protobuf field repeated .google.datastore.v1.Filter filters = 2; - */ - private $filters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $op - * The operator for combining multiple filters. - * @type array<\Google\Cloud\Datastore\V1\Filter>|\Google\Protobuf\Internal\RepeatedField $filters - * The list of filters to combine. - * Requires: - * * At least one filter is present. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * The operator for combining multiple filters. - * - * Generated from protobuf field .google.datastore.v1.CompositeFilter.Operator op = 1; - * @return int - */ - public function getOp() - { - return $this->op; - } - - /** - * The operator for combining multiple filters. - * - * Generated from protobuf field .google.datastore.v1.CompositeFilter.Operator op = 1; - * @param int $var - * @return $this - */ - public function setOp($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\CompositeFilter\Operator::class); - $this->op = $var; - - return $this; - } - - /** - * The list of filters to combine. - * Requires: - * * At least one filter is present. - * - * Generated from protobuf field repeated .google.datastore.v1.Filter filters = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilters() - { - return $this->filters; - } - - /** - * The list of filters to combine. - * Requires: - * * At least one filter is present. - * - * Generated from protobuf field repeated .google.datastore.v1.Filter filters = 2; - * @param array<\Google\Cloud\Datastore\V1\Filter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Filter::class); - $this->filters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CompositeFilter/Operator.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CompositeFilter/Operator.php deleted file mode 100644 index 4cd871b7ed94..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/CompositeFilter/Operator.php +++ /dev/null @@ -1,68 +0,0 @@ -google.datastore.v1.CompositeFilter.Operator - */ -class Operator -{ - /** - * Unspecified. This value must not be used. - * - * Generated from protobuf enum OPERATOR_UNSPECIFIED = 0; - */ - const OPERATOR_UNSPECIFIED = 0; - /** - * The results are required to satisfy each of the combined filters. - * - * Generated from protobuf enum AND = 1; - */ - const PBAND = 1; - /** - * Documents are required to satisfy at least one of the combined filters. - * - * Generated from protobuf enum OR = 2; - */ - const PBOR = 2; - - private static $valueToName = [ - self::OPERATOR_UNSPECIFIED => 'OPERATOR_UNSPECIFIED', - self::PBAND => 'AND', - self::PBOR => 'OR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has 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(Operator::class, \Google\Cloud\Datastore\V1\CompositeFilter_Operator::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Entity.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Entity.php deleted file mode 100644 index 53b46087f3a6..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Entity.php +++ /dev/null @@ -1,148 +0,0 @@ -google.datastore.v1.Entity - */ -class Entity extends \Google\Protobuf\Internal\Message -{ - /** - * The entity's key. - * An entity must have a key, unless otherwise documented (for example, - * an entity in `Value.entity_value` may have no key). - * An entity's kind is its key path's last element's kind, - * or null if it has no key. - * - * Generated from protobuf field .google.datastore.v1.Key key = 1; - */ - protected $key = null; - /** - * The entity's properties. - * The map's keys are property names. - * A property name matching regex `__.*__` is reserved. - * A reserved property name is forbidden in certain documented contexts. - * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot - * be empty. - * - * Generated from protobuf field map properties = 3; - */ - private $properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\Key $key - * The entity's key. - * An entity must have a key, unless otherwise documented (for example, - * an entity in `Value.entity_value` may have no key). - * An entity's kind is its key path's last element's kind, - * or null if it has no key. - * @type array|\Google\Protobuf\Internal\MapField $properties - * The entity's properties. - * The map's keys are property names. - * A property name matching regex `__.*__` is reserved. - * A reserved property name is forbidden in certain documented contexts. - * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot - * be empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * The entity's key. - * An entity must have a key, unless otherwise documented (for example, - * an entity in `Value.entity_value` may have no key). - * An entity's kind is its key path's last element's kind, - * or null if it has no key. - * - * Generated from protobuf field .google.datastore.v1.Key key = 1; - * @return \Google\Cloud\Datastore\V1\Key|null - */ - public function getKey() - { - return $this->key; - } - - public function hasKey() - { - return isset($this->key); - } - - public function clearKey() - { - unset($this->key); - } - - /** - * The entity's key. - * An entity must have a key, unless otherwise documented (for example, - * an entity in `Value.entity_value` may have no key). - * An entity's kind is its key path's last element's kind, - * or null if it has no key. - * - * Generated from protobuf field .google.datastore.v1.Key key = 1; - * @param \Google\Cloud\Datastore\V1\Key $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Key::class); - $this->key = $var; - - return $this; - } - - /** - * The entity's properties. - * The map's keys are property names. - * A property name matching regex `__.*__` is reserved. - * A reserved property name is forbidden in certain documented contexts. - * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot - * be empty. - * - * Generated from protobuf field map properties = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * The entity's properties. - * The map's keys are property names. - * A property name matching regex `__.*__` is reserved. - * A reserved property name is forbidden in certain documented contexts. - * The map keys, represented as UTF-8, must not exceed 1,500 bytes and cannot - * be empty. - * - * Generated from protobuf field map properties = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Value::class); - $this->properties = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/EntityResult.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/EntityResult.php deleted file mode 100644 index 2fb16860fbd9..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/EntityResult.php +++ /dev/null @@ -1,285 +0,0 @@ -google.datastore.v1.EntityResult - */ -class EntityResult extends \Google\Protobuf\Internal\Message -{ - /** - * The resulting entity. - * - * Generated from protobuf field .google.datastore.v1.Entity entity = 1; - */ - protected $entity = null; - /** - * The version of the entity, a strictly positive number that monotonically - * increases with changes to the entity. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * For [missing][google.datastore.v1.LookupResponse.missing] entities in - * `LookupResponse`, this is the version of the snapshot that was used to look - * up the entity, and it is always set except for eventually consistent reads. - * - * Generated from protobuf field int64 version = 4; - */ - protected $version = 0; - /** - * The time at which the entity was created. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * If this entity is missing, this field will not be set. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - */ - protected $create_time = null; - /** - * The time at which the entity was last changed. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * If this entity is missing, this field will not be set. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - */ - protected $update_time = null; - /** - * A cursor that points to the position after the result entity. - * Set only when the `EntityResult` is part of a `QueryResultBatch` message. - * - * Generated from protobuf field bytes cursor = 3; - */ - protected $cursor = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\Entity $entity - * The resulting entity. - * @type int|string $version - * The version of the entity, a strictly positive number that monotonically - * increases with changes to the entity. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * For [missing][google.datastore.v1.LookupResponse.missing] entities in - * `LookupResponse`, this is the version of the snapshot that was used to look - * up the entity, and it is always set except for eventually consistent reads. - * @type \Google\Protobuf\Timestamp $create_time - * The time at which the entity was created. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * If this entity is missing, this field will not be set. - * @type \Google\Protobuf\Timestamp $update_time - * The time at which the entity was last changed. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * If this entity is missing, this field will not be set. - * @type string $cursor - * A cursor that points to the position after the result entity. - * Set only when the `EntityResult` is part of a `QueryResultBatch` message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * The resulting entity. - * - * Generated from protobuf field .google.datastore.v1.Entity entity = 1; - * @return \Google\Cloud\Datastore\V1\Entity|null - */ - public function getEntity() - { - return $this->entity; - } - - public function hasEntity() - { - return isset($this->entity); - } - - public function clearEntity() - { - unset($this->entity); - } - - /** - * The resulting entity. - * - * Generated from protobuf field .google.datastore.v1.Entity entity = 1; - * @param \Google\Cloud\Datastore\V1\Entity $var - * @return $this - */ - public function setEntity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Entity::class); - $this->entity = $var; - - return $this; - } - - /** - * The version of the entity, a strictly positive number that monotonically - * increases with changes to the entity. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * For [missing][google.datastore.v1.LookupResponse.missing] entities in - * `LookupResponse`, this is the version of the snapshot that was used to look - * up the entity, and it is always set except for eventually consistent reads. - * - * Generated from protobuf field int64 version = 4; - * @return int|string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of the entity, a strictly positive number that monotonically - * increases with changes to the entity. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * For [missing][google.datastore.v1.LookupResponse.missing] entities in - * `LookupResponse`, this is the version of the snapshot that was used to look - * up the entity, and it is always set except for eventually consistent reads. - * - * Generated from protobuf field int64 version = 4; - * @param int|string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkInt64($var); - $this->version = $var; - - return $this; - } - - /** - * The time at which the entity was created. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * If this entity is missing, this field will not be set. - * - * 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); - } - - /** - * The time at which the entity was created. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * If this entity is missing, this field will not be set. - * - * 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; - } - - /** - * The time at which the entity was last changed. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * If this entity is missing, this field will not be set. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - * @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 time at which the entity was last changed. - * This field is set for - * [`FULL`][google.datastore.v1.EntityResult.ResultType.FULL] entity results. - * If this entity is missing, this field will not be set. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5; - * @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 cursor that points to the position after the result entity. - * Set only when the `EntityResult` is part of a `QueryResultBatch` message. - * - * Generated from protobuf field bytes cursor = 3; - * @return string - */ - public function getCursor() - { - return $this->cursor; - } - - /** - * A cursor that points to the position after the result entity. - * Set only when the `EntityResult` is part of a `QueryResultBatch` message. - * - * Generated from protobuf field bytes cursor = 3; - * @param string $var - * @return $this - */ - public function setCursor($var) - { - GPBUtil::checkString($var, False); - $this->cursor = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/EntityResult/ResultType.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/EntityResult/ResultType.php deleted file mode 100644 index 2e2471e78e19..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/EntityResult/ResultType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.datastore.v1.EntityResult.ResultType - */ -class ResultType -{ - /** - * Unspecified. This value is never used. - * - * Generated from protobuf enum RESULT_TYPE_UNSPECIFIED = 0; - */ - const RESULT_TYPE_UNSPECIFIED = 0; - /** - * The key and properties. - * - * Generated from protobuf enum FULL = 1; - */ - const FULL = 1; - /** - * A projected subset of properties. The entity may have no key. - * - * Generated from protobuf enum PROJECTION = 2; - */ - const PROJECTION = 2; - /** - * Only the key. - * - * Generated from protobuf enum KEY_ONLY = 3; - */ - const KEY_ONLY = 3; - - private static $valueToName = [ - self::RESULT_TYPE_UNSPECIFIED => 'RESULT_TYPE_UNSPECIFIED', - self::FULL => 'FULL', - self::PROJECTION => 'PROJECTION', - self::KEY_ONLY => 'KEY_ONLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ResultType::class, \Google\Cloud\Datastore\V1\EntityResult_ResultType::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExecutionStats.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExecutionStats.php deleted file mode 100644 index 4de843f075e3..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExecutionStats.php +++ /dev/null @@ -1,237 +0,0 @@ -google.datastore.v1.ExecutionStats - */ -class ExecutionStats extends \Google\Protobuf\Internal\Message -{ - /** - * Total number of results returned, including documents, projections, - * aggregation results, keys. - * - * Generated from protobuf field int64 results_returned = 1; - */ - protected $results_returned = 0; - /** - * Total time to execute the query in the backend. - * - * Generated from protobuf field .google.protobuf.Duration execution_duration = 3; - */ - protected $execution_duration = null; - /** - * Total billable read operations. - * - * Generated from protobuf field int64 read_operations = 4; - */ - protected $read_operations = 0; - /** - * Debugging statistics from the execution of the query. Note that the - * debugging stats are subject to change as Firestore evolves. It could - * include: - * { - * "indexes_entries_scanned": "1000", - * "documents_scanned": "20", - * "billing_details" : { - * "documents_billable": "20", - * "index_entries_billable": "1000", - * "min_query_cost": "0" - * } - * } - * - * Generated from protobuf field .google.protobuf.Struct debug_stats = 5; - */ - protected $debug_stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $results_returned - * Total number of results returned, including documents, projections, - * aggregation results, keys. - * @type \Google\Protobuf\Duration $execution_duration - * Total time to execute the query in the backend. - * @type int|string $read_operations - * Total billable read operations. - * @type \Google\Protobuf\Struct $debug_stats - * Debugging statistics from the execution of the query. Note that the - * debugging stats are subject to change as Firestore evolves. It could - * include: - * { - * "indexes_entries_scanned": "1000", - * "documents_scanned": "20", - * "billing_details" : { - * "documents_billable": "20", - * "index_entries_billable": "1000", - * "min_query_cost": "0" - * } - * } - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\QueryProfile::initOnce(); - parent::__construct($data); - } - - /** - * Total number of results returned, including documents, projections, - * aggregation results, keys. - * - * Generated from protobuf field int64 results_returned = 1; - * @return int|string - */ - public function getResultsReturned() - { - return $this->results_returned; - } - - /** - * Total number of results returned, including documents, projections, - * aggregation results, keys. - * - * Generated from protobuf field int64 results_returned = 1; - * @param int|string $var - * @return $this - */ - public function setResultsReturned($var) - { - GPBUtil::checkInt64($var); - $this->results_returned = $var; - - return $this; - } - - /** - * Total time to execute the query in the backend. - * - * Generated from protobuf field .google.protobuf.Duration execution_duration = 3; - * @return \Google\Protobuf\Duration|null - */ - public function getExecutionDuration() - { - return $this->execution_duration; - } - - public function hasExecutionDuration() - { - return isset($this->execution_duration); - } - - public function clearExecutionDuration() - { - unset($this->execution_duration); - } - - /** - * Total time to execute the query in the backend. - * - * Generated from protobuf field .google.protobuf.Duration execution_duration = 3; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setExecutionDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->execution_duration = $var; - - return $this; - } - - /** - * Total billable read operations. - * - * Generated from protobuf field int64 read_operations = 4; - * @return int|string - */ - public function getReadOperations() - { - return $this->read_operations; - } - - /** - * Total billable read operations. - * - * Generated from protobuf field int64 read_operations = 4; - * @param int|string $var - * @return $this - */ - public function setReadOperations($var) - { - GPBUtil::checkInt64($var); - $this->read_operations = $var; - - return $this; - } - - /** - * Debugging statistics from the execution of the query. Note that the - * debugging stats are subject to change as Firestore evolves. It could - * include: - * { - * "indexes_entries_scanned": "1000", - * "documents_scanned": "20", - * "billing_details" : { - * "documents_billable": "20", - * "index_entries_billable": "1000", - * "min_query_cost": "0" - * } - * } - * - * Generated from protobuf field .google.protobuf.Struct debug_stats = 5; - * @return \Google\Protobuf\Struct|null - */ - public function getDebugStats() - { - return $this->debug_stats; - } - - public function hasDebugStats() - { - return isset($this->debug_stats); - } - - public function clearDebugStats() - { - unset($this->debug_stats); - } - - /** - * Debugging statistics from the execution of the query. Note that the - * debugging stats are subject to change as Firestore evolves. It could - * include: - * { - * "indexes_entries_scanned": "1000", - * "documents_scanned": "20", - * "billing_details" : { - * "documents_billable": "20", - * "index_entries_billable": "1000", - * "min_query_cost": "0" - * } - * } - * - * Generated from protobuf field .google.protobuf.Struct debug_stats = 5; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setDebugStats($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->debug_stats = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExplainMetrics.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExplainMetrics.php deleted file mode 100644 index 99decd220a7d..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExplainMetrics.php +++ /dev/null @@ -1,129 +0,0 @@ -google.datastore.v1.ExplainMetrics - */ -class ExplainMetrics extends \Google\Protobuf\Internal\Message -{ - /** - * Planning phase information for the query. - * - * Generated from protobuf field .google.datastore.v1.PlanSummary plan_summary = 1; - */ - protected $plan_summary = null; - /** - * Aggregated stats from the execution of the query. Only present when - * [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] is set - * to true. - * - * Generated from protobuf field .google.datastore.v1.ExecutionStats execution_stats = 2; - */ - protected $execution_stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\PlanSummary $plan_summary - * Planning phase information for the query. - * @type \Google\Cloud\Datastore\V1\ExecutionStats $execution_stats - * Aggregated stats from the execution of the query. Only present when - * [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] is set - * to true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\QueryProfile::initOnce(); - parent::__construct($data); - } - - /** - * Planning phase information for the query. - * - * Generated from protobuf field .google.datastore.v1.PlanSummary plan_summary = 1; - * @return \Google\Cloud\Datastore\V1\PlanSummary|null - */ - public function getPlanSummary() - { - return $this->plan_summary; - } - - public function hasPlanSummary() - { - return isset($this->plan_summary); - } - - public function clearPlanSummary() - { - unset($this->plan_summary); - } - - /** - * Planning phase information for the query. - * - * Generated from protobuf field .google.datastore.v1.PlanSummary plan_summary = 1; - * @param \Google\Cloud\Datastore\V1\PlanSummary $var - * @return $this - */ - public function setPlanSummary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PlanSummary::class); - $this->plan_summary = $var; - - return $this; - } - - /** - * Aggregated stats from the execution of the query. Only present when - * [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] is set - * to true. - * - * Generated from protobuf field .google.datastore.v1.ExecutionStats execution_stats = 2; - * @return \Google\Cloud\Datastore\V1\ExecutionStats|null - */ - public function getExecutionStats() - { - return $this->execution_stats; - } - - public function hasExecutionStats() - { - return isset($this->execution_stats); - } - - public function clearExecutionStats() - { - unset($this->execution_stats); - } - - /** - * Aggregated stats from the execution of the query. Only present when - * [ExplainOptions.analyze][google.datastore.v1.ExplainOptions.analyze] is set - * to true. - * - * Generated from protobuf field .google.datastore.v1.ExecutionStats execution_stats = 2; - * @param \Google\Cloud\Datastore\V1\ExecutionStats $var - * @return $this - */ - public function setExecutionStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ExecutionStats::class); - $this->execution_stats = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExplainOptions.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExplainOptions.php deleted file mode 100644 index d903d204f9ea..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ExplainOptions.php +++ /dev/null @@ -1,83 +0,0 @@ -google.datastore.v1.ExplainOptions - */ -class ExplainOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Whether to execute this query. - * When false (the default), the query will be planned, returning only - * metrics from the planning stages. - * When true, the query will be planned and executed, returning the full - * query results along with both planning and execution stage metrics. - * - * Generated from protobuf field bool analyze = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $analyze = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $analyze - * Optional. Whether to execute this query. - * When false (the default), the query will be planned, returning only - * metrics from the planning stages. - * When true, the query will be planned and executed, returning the full - * query results along with both planning and execution stage metrics. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\QueryProfile::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Whether to execute this query. - * When false (the default), the query will be planned, returning only - * metrics from the planning stages. - * When true, the query will be planned and executed, returning the full - * query results along with both planning and execution stage metrics. - * - * Generated from protobuf field bool analyze = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAnalyze() - { - return $this->analyze; - } - - /** - * Optional. Whether to execute this query. - * When false (the default), the query will be planned, returning only - * metrics from the planning stages. - * When true, the query will be planned and executed, returning the full - * query results along with both planning and execution stage metrics. - * - * Generated from protobuf field bool analyze = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAnalyze($var) - { - GPBUtil::checkBool($var); - $this->analyze = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Filter.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Filter.php deleted file mode 100644 index a4d1b4c8b575..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Filter.php +++ /dev/null @@ -1,108 +0,0 @@ -google.datastore.v1.Filter - */ -class Filter extends \Google\Protobuf\Internal\Message -{ - protected $filter_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\CompositeFilter $composite_filter - * A composite filter. - * @type \Google\Cloud\Datastore\V1\PropertyFilter $property_filter - * A filter on a property. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * A composite filter. - * - * Generated from protobuf field .google.datastore.v1.CompositeFilter composite_filter = 1; - * @return \Google\Cloud\Datastore\V1\CompositeFilter|null - */ - public function getCompositeFilter() - { - return $this->readOneof(1); - } - - public function hasCompositeFilter() - { - return $this->hasOneof(1); - } - - /** - * A composite filter. - * - * Generated from protobuf field .google.datastore.v1.CompositeFilter composite_filter = 1; - * @param \Google\Cloud\Datastore\V1\CompositeFilter $var - * @return $this - */ - public function setCompositeFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\CompositeFilter::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A filter on a property. - * - * Generated from protobuf field .google.datastore.v1.PropertyFilter property_filter = 2; - * @return \Google\Cloud\Datastore\V1\PropertyFilter|null - */ - public function getPropertyFilter() - { - return $this->readOneof(2); - } - - public function hasPropertyFilter() - { - return $this->hasOneof(2); - } - - /** - * A filter on a property. - * - * Generated from protobuf field .google.datastore.v1.PropertyFilter property_filter = 2; - * @param \Google\Cloud\Datastore\V1\PropertyFilter $var - * @return $this - */ - public function setPropertyFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PropertyFilter::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilterType() - { - return $this->whichOneof("filter_type"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/FindNearest.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/FindNearest.php deleted file mode 100644 index 93efe15d4d17..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/FindNearest.php +++ /dev/null @@ -1,390 +0,0 @@ -google.datastore.v1.FindNearest - */ -class FindNearest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. An indexed vector property to search upon. Only documents which - * contain vectors whose dimensionality match the query_vector can be - * returned. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference vector_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vector_property = null; - /** - * Required. The query vector that we are searching on. Must be a vector of no - * more than 2048 dimensions. - * - * Generated from protobuf field .google.datastore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query_vector = null; - /** - * Required. The Distance Measure to use, required. - * - * Generated from protobuf field .google.datastore.v1.FindNearest.DistanceMeasure distance_measure = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $distance_measure = 0; - /** - * Required. The number of nearest neighbors to return. Must be a positive - * integer of no more than 100. - * - * Generated from protobuf field .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $limit = null; - /** - * Optional. Optional name of the field to output the result of the vector - * distance calculation. Must conform to [entity - * property][google.datastore.v1.Entity.properties] limitations. - * - * Generated from protobuf field string distance_result_property = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $distance_result_property = ''; - /** - * Optional. Option to specify a threshold for which no less similar documents - * will be returned. The behavior of the specified `distance_measure` will - * affect the meaning of the distance threshold. Since DOT_PRODUCT distances - * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold - * - * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $distance_threshold = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\PropertyReference $vector_property - * Required. An indexed vector property to search upon. Only documents which - * contain vectors whose dimensionality match the query_vector can be - * returned. - * @type \Google\Cloud\Datastore\V1\Value $query_vector - * Required. The query vector that we are searching on. Must be a vector of no - * more than 2048 dimensions. - * @type int $distance_measure - * Required. The Distance Measure to use, required. - * @type \Google\Protobuf\Int32Value $limit - * Required. The number of nearest neighbors to return. Must be a positive - * integer of no more than 100. - * @type string $distance_result_property - * Optional. Optional name of the field to output the result of the vector - * distance calculation. Must conform to [entity - * property][google.datastore.v1.Entity.properties] limitations. - * @type \Google\Protobuf\DoubleValue $distance_threshold - * Optional. Option to specify a threshold for which no less similar documents - * will be returned. The behavior of the specified `distance_measure` will - * affect the meaning of the distance threshold. Since DOT_PRODUCT distances - * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * Required. An indexed vector property to search upon. Only documents which - * contain vectors whose dimensionality match the query_vector can be - * returned. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference vector_property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Datastore\V1\PropertyReference|null - */ - public function getVectorProperty() - { - return $this->vector_property; - } - - public function hasVectorProperty() - { - return isset($this->vector_property); - } - - public function clearVectorProperty() - { - unset($this->vector_property); - } - - /** - * Required. An indexed vector property to search upon. Only documents which - * contain vectors whose dimensionality match the query_vector can be - * returned. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference vector_property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Datastore\V1\PropertyReference $var - * @return $this - */ - public function setVectorProperty($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PropertyReference::class); - $this->vector_property = $var; - - return $this; - } - - /** - * Required. The query vector that we are searching on. Must be a vector of no - * more than 2048 dimensions. - * - * Generated from protobuf field .google.datastore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Datastore\V1\Value|null - */ - public function getQueryVector() - { - return $this->query_vector; - } - - public function hasQueryVector() - { - return isset($this->query_vector); - } - - public function clearQueryVector() - { - unset($this->query_vector); - } - - /** - * Required. The query vector that we are searching on. Must be a vector of no - * more than 2048 dimensions. - * - * Generated from protobuf field .google.datastore.v1.Value query_vector = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Datastore\V1\Value $var - * @return $this - */ - public function setQueryVector($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Value::class); - $this->query_vector = $var; - - return $this; - } - - /** - * Required. The Distance Measure to use, required. - * - * Generated from protobuf field .google.datastore.v1.FindNearest.DistanceMeasure distance_measure = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getDistanceMeasure() - { - return $this->distance_measure; - } - - /** - * Required. The Distance Measure to use, required. - * - * Generated from protobuf field .google.datastore.v1.FindNearest.DistanceMeasure distance_measure = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setDistanceMeasure($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\FindNearest\DistanceMeasure::class); - $this->distance_measure = $var; - - return $this; - } - - /** - * Required. The number of nearest neighbors to return. Must be a positive - * integer of no more than 100. - * - * Generated from protobuf field .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Int32Value|null - */ - public function getLimit() - { - return $this->limit; - } - - public function hasLimit() - { - return isset($this->limit); - } - - public function clearLimit() - { - unset($this->limit); - } - - /** - * Returns the unboxed value from getLimit() - - * Required. The number of nearest neighbors to return. Must be a positive - * integer of no more than 100. - * - * Generated from protobuf field .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int|null - */ - public function getLimitUnwrapped() - { - return $this->readWrapperValue("limit"); - } - - /** - * Required. The number of nearest neighbors to return. Must be a positive - * integer of no more than 100. - * - * Generated from protobuf field .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->limit = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Required. The number of nearest neighbors to return. Must be a positive - * integer of no more than 100. - * - * Generated from protobuf field .google.protobuf.Int32Value limit = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int|null $var - * @return $this - */ - public function setLimitUnwrapped($var) - { - $this->writeWrapperValue("limit", $var); - return $this;} - - /** - * Optional. Optional name of the field to output the result of the vector - * distance calculation. Must conform to [entity - * property][google.datastore.v1.Entity.properties] limitations. - * - * Generated from protobuf field string distance_result_property = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDistanceResultProperty() - { - return $this->distance_result_property; - } - - /** - * Optional. Optional name of the field to output the result of the vector - * distance calculation. Must conform to [entity - * property][google.datastore.v1.Entity.properties] limitations. - * - * Generated from protobuf field string distance_result_property = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDistanceResultProperty($var) - { - GPBUtil::checkString($var, True); - $this->distance_result_property = $var; - - return $this; - } - - /** - * Optional. Option to specify a threshold for which no less similar documents - * will be returned. The behavior of the specified `distance_measure` will - * affect the meaning of the distance threshold. Since DOT_PRODUCT distances - * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold - * - * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\DoubleValue|null - */ - public function getDistanceThreshold() - { - return $this->distance_threshold; - } - - public function hasDistanceThreshold() - { - return isset($this->distance_threshold); - } - - public function clearDistanceThreshold() - { - unset($this->distance_threshold); - } - - /** - * Returns the unboxed value from getDistanceThreshold() - - * Optional. Option to specify a threshold for which no less similar documents - * will be returned. The behavior of the specified `distance_measure` will - * affect the meaning of the distance threshold. Since DOT_PRODUCT distances - * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold - * - * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return float|null - */ - public function getDistanceThresholdUnwrapped() - { - return $this->readWrapperValue("distance_threshold"); - } - - /** - * Optional. Option to specify a threshold for which no less similar documents - * will be returned. The behavior of the specified `distance_measure` will - * affect the meaning of the distance threshold. Since DOT_PRODUCT distances - * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold - * - * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\DoubleValue $var - * @return $this - */ - public function setDistanceThreshold($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\DoubleValue::class); - $this->distance_threshold = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\DoubleValue object. - - * Optional. Option to specify a threshold for which no less similar documents - * will be returned. The behavior of the specified `distance_measure` will - * affect the meaning of the distance threshold. Since DOT_PRODUCT distances - * increase when the vectors are more similar, the comparison is inverted. - * For EUCLIDEAN, COSINE: WHERE distance <= distance_threshold - * For DOT_PRODUCT: WHERE distance >= distance_threshold - * - * Generated from protobuf field .google.protobuf.DoubleValue distance_threshold = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param float|null $var - * @return $this - */ - public function setDistanceThresholdUnwrapped($var) - { - $this->writeWrapperValue("distance_threshold", $var); - return $this;} - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/FindNearest/DistanceMeasure.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/FindNearest/DistanceMeasure.php deleted file mode 100644 index 5eb0ccc00196..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/FindNearest/DistanceMeasure.php +++ /dev/null @@ -1,82 +0,0 @@ -google.datastore.v1.FindNearest.DistanceMeasure - */ -class DistanceMeasure -{ - /** - * Should not be set. - * - * Generated from protobuf enum DISTANCE_MEASURE_UNSPECIFIED = 0; - */ - const DISTANCE_MEASURE_UNSPECIFIED = 0; - /** - * Measures the EUCLIDEAN distance between the vectors. See - * [Euclidean](https://en.wikipedia.org/wiki/Euclidean_distance) to learn - * more. The resulting distance decreases the more similar two vectors are. - * - * Generated from protobuf enum EUCLIDEAN = 1; - */ - const EUCLIDEAN = 1; - /** - * COSINE distance compares vectors based on the angle between them, which - * allows you to measure similarity that isn't based on the vectors - * magnitude. We recommend using DOT_PRODUCT with unit normalized vectors - * instead of COSINE distance, which is mathematically equivalent with - * better performance. See [Cosine - * Similarity](https://en.wikipedia.org/wiki/Cosine_similarity) to learn - * more about COSINE similarity and COSINE distance. The resulting COSINE - * distance decreases the more similar two vectors are. - * - * Generated from protobuf enum COSINE = 2; - */ - const COSINE = 2; - /** - * Similar to cosine but is affected by the magnitude of the vectors. See - * [Dot Product](https://en.wikipedia.org/wiki/Dot_product) to learn more. - * The resulting distance increases the more similar two vectors are. - * - * Generated from protobuf enum DOT_PRODUCT = 3; - */ - const DOT_PRODUCT = 3; - - private static $valueToName = [ - self::DISTANCE_MEASURE_UNSPECIFIED => 'DISTANCE_MEASURE_UNSPECIFIED', - self::EUCLIDEAN => 'EUCLIDEAN', - self::COSINE => 'COSINE', - self::DOT_PRODUCT => 'DOT_PRODUCT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DistanceMeasure::class, \Google\Cloud\Datastore\V1\FindNearest_DistanceMeasure::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/GqlQuery.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/GqlQuery.php deleted file mode 100644 index ba0e57d29944..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/GqlQuery.php +++ /dev/null @@ -1,210 +0,0 @@ -google.datastore.v1.GqlQuery - */ -class GqlQuery extends \Google\Protobuf\Internal\Message -{ - /** - * A string of the format described - * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). - * - * Generated from protobuf field string query_string = 1; - */ - protected $query_string = ''; - /** - * When false, the query string must not contain any literals and instead must - * bind all values. For example, - * `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while - * `SELECT * FROM Kind WHERE a = @value` is. - * - * Generated from protobuf field bool allow_literals = 2; - */ - protected $allow_literals = false; - /** - * For each non-reserved named binding site in the query string, there must be - * a named parameter with that name, but not necessarily the inverse. - * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex - * `__.*__`, and must not be `""`. - * - * Generated from protobuf field map named_bindings = 5; - */ - private $named_bindings; - /** - * Numbered binding site @1 references the first numbered parameter, - * effectively using 1-based indexing, rather than the usual 0. - * For each binding site numbered i in `query_string`, there must be an i-th - * numbered parameter. The inverse must also be true. - * - * Generated from protobuf field repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4; - */ - private $positional_bindings; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query_string - * A string of the format described - * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). - * @type bool $allow_literals - * When false, the query string must not contain any literals and instead must - * bind all values. For example, - * `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while - * `SELECT * FROM Kind WHERE a = @value` is. - * @type array|\Google\Protobuf\Internal\MapField $named_bindings - * For each non-reserved named binding site in the query string, there must be - * a named parameter with that name, but not necessarily the inverse. - * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex - * `__.*__`, and must not be `""`. - * @type array<\Google\Cloud\Datastore\V1\GqlQueryParameter>|\Google\Protobuf\Internal\RepeatedField $positional_bindings - * Numbered binding site @1 references the first numbered parameter, - * effectively using 1-based indexing, rather than the usual 0. - * For each binding site numbered i in `query_string`, there must be an i-th - * numbered parameter. The inverse must also be true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * A string of the format described - * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). - * - * Generated from protobuf field string query_string = 1; - * @return string - */ - public function getQueryString() - { - return $this->query_string; - } - - /** - * A string of the format described - * [here](https://cloud.google.com/datastore/docs/apis/gql/gql_reference). - * - * Generated from protobuf field string query_string = 1; - * @param string $var - * @return $this - */ - public function setQueryString($var) - { - GPBUtil::checkString($var, True); - $this->query_string = $var; - - return $this; - } - - /** - * When false, the query string must not contain any literals and instead must - * bind all values. For example, - * `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while - * `SELECT * FROM Kind WHERE a = @value` is. - * - * Generated from protobuf field bool allow_literals = 2; - * @return bool - */ - public function getAllowLiterals() - { - return $this->allow_literals; - } - - /** - * When false, the query string must not contain any literals and instead must - * bind all values. For example, - * `SELECT * FROM Kind WHERE a = 'string literal'` is not allowed, while - * `SELECT * FROM Kind WHERE a = @value` is. - * - * Generated from protobuf field bool allow_literals = 2; - * @param bool $var - * @return $this - */ - public function setAllowLiterals($var) - { - GPBUtil::checkBool($var); - $this->allow_literals = $var; - - return $this; - } - - /** - * For each non-reserved named binding site in the query string, there must be - * a named parameter with that name, but not necessarily the inverse. - * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex - * `__.*__`, and must not be `""`. - * - * Generated from protobuf field map named_bindings = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getNamedBindings() - { - return $this->named_bindings; - } - - /** - * For each non-reserved named binding site in the query string, there must be - * a named parameter with that name, but not necessarily the inverse. - * Key must match regex `[A-Za-z_$][A-Za-z_$0-9]*`, must not match regex - * `__.*__`, and must not be `""`. - * - * Generated from protobuf field map named_bindings = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setNamedBindings($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\GqlQueryParameter::class); - $this->named_bindings = $arr; - - return $this; - } - - /** - * Numbered binding site @1 references the first numbered parameter, - * effectively using 1-based indexing, rather than the usual 0. - * For each binding site numbered i in `query_string`, there must be an i-th - * numbered parameter. The inverse must also be true. - * - * Generated from protobuf field repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPositionalBindings() - { - return $this->positional_bindings; - } - - /** - * Numbered binding site @1 references the first numbered parameter, - * effectively using 1-based indexing, rather than the usual 0. - * For each binding site numbered i in `query_string`, there must be an i-th - * numbered parameter. The inverse must also be true. - * - * Generated from protobuf field repeated .google.datastore.v1.GqlQueryParameter positional_bindings = 4; - * @param array<\Google\Cloud\Datastore\V1\GqlQueryParameter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPositionalBindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\GqlQueryParameter::class); - $this->positional_bindings = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/GqlQueryParameter.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/GqlQueryParameter.php deleted file mode 100644 index c180d0429d80..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/GqlQueryParameter.php +++ /dev/null @@ -1,111 +0,0 @@ -google.datastore.v1.GqlQueryParameter - */ -class GqlQueryParameter extends \Google\Protobuf\Internal\Message -{ - protected $parameter_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\Value $value - * A value parameter. - * @type string $cursor - * A query cursor. Query cursors are returned in query - * result batches. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * A value parameter. - * - * Generated from protobuf field .google.datastore.v1.Value value = 2; - * @return \Google\Cloud\Datastore\V1\Value|null - */ - public function getValue() - { - return $this->readOneof(2); - } - - public function hasValue() - { - return $this->hasOneof(2); - } - - /** - * A value parameter. - * - * Generated from protobuf field .google.datastore.v1.Value value = 2; - * @param \Google\Cloud\Datastore\V1\Value $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Value::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A query cursor. Query cursors are returned in query - * result batches. - * - * Generated from protobuf field bytes cursor = 3; - * @return string - */ - public function getCursor() - { - return $this->readOneof(3); - } - - public function hasCursor() - { - return $this->hasOneof(3); - } - - /** - * A query cursor. Query cursors are returned in query - * result batches. - * - * Generated from protobuf field bytes cursor = 3; - * @param string $var - * @return $this - */ - public function setCursor($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getParameterType() - { - return $this->whichOneof("parameter_type"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Key.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Key.php deleted file mode 100644 index a399e216a16d..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Key.php +++ /dev/null @@ -1,174 +0,0 @@ -google.datastore.v1.Key - */ -class Key extends \Google\Protobuf\Internal\Message -{ - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * - * Generated from protobuf field .google.datastore.v1.PartitionId partition_id = 1; - */ - protected $partition_id = null; - /** - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * An entity path is always fully complete: *all* of the entity's ancestors - * are required to be in the path along with the entity identifier itself. - * The only exception is that in some documented cases, the identifier in the - * last path element (for the entity) itself may be omitted. For example, - * the last path element of the key of `Mutation.insert` may have no - * identifier. - * A path can never be empty, and a path can have at most 100 elements. - * - * Generated from protobuf field repeated .google.datastore.v1.Key.PathElement path = 2; - */ - private $path; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\PartitionId $partition_id - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * @type array<\Google\Cloud\Datastore\V1\Key\PathElement>|\Google\Protobuf\Internal\RepeatedField $path - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * An entity path is always fully complete: *all* of the entity's ancestors - * are required to be in the path along with the entity identifier itself. - * The only exception is that in some documented cases, the identifier in the - * last path element (for the entity) itself may be omitted. For example, - * the last path element of the key of `Mutation.insert` may have no - * identifier. - * A path can never be empty, and a path can have at most 100 elements. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * - * Generated from protobuf field .google.datastore.v1.PartitionId partition_id = 1; - * @return \Google\Cloud\Datastore\V1\PartitionId|null - */ - public function getPartitionId() - { - return $this->partition_id; - } - - public function hasPartitionId() - { - return isset($this->partition_id); - } - - public function clearPartitionId() - { - unset($this->partition_id); - } - - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * - * Generated from protobuf field .google.datastore.v1.PartitionId partition_id = 1; - * @param \Google\Cloud\Datastore\V1\PartitionId $var - * @return $this - */ - public function setPartitionId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PartitionId::class); - $this->partition_id = $var; - - return $this; - } - - /** - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * An entity path is always fully complete: *all* of the entity's ancestors - * are required to be in the path along with the entity identifier itself. - * The only exception is that in some documented cases, the identifier in the - * last path element (for the entity) itself may be omitted. For example, - * the last path element of the key of `Mutation.insert` may have no - * identifier. - * A path can never be empty, and a path can have at most 100 elements. - * - * Generated from protobuf field repeated .google.datastore.v1.Key.PathElement path = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPath() - { - return $this->path; - } - - /** - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * An entity path is always fully complete: *all* of the entity's ancestors - * are required to be in the path along with the entity identifier itself. - * The only exception is that in some documented cases, the identifier in the - * last path element (for the entity) itself may be omitted. For example, - * the last path element of the key of `Mutation.insert` may have no - * identifier. - * A path can never be empty, and a path can have at most 100 elements. - * - * Generated from protobuf field repeated .google.datastore.v1.Key.PathElement path = 2; - * @param array<\Google\Cloud\Datastore\V1\Key\PathElement>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Key\PathElement::class); - $this->path = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Key/PathElement.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Key/PathElement.php deleted file mode 100644 index df942e9128e1..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Key/PathElement.php +++ /dev/null @@ -1,195 +0,0 @@ -google.datastore.v1.Key.PathElement - */ -class PathElement extends \Google\Protobuf\Internal\Message -{ - /** - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are - * encoded as `__bytes__` where `` is the base-64 encoding of the - * bytes. - * - * Generated from protobuf field string kind = 1; - */ - protected $kind = ''; - protected $id_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kind - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are - * encoded as `__bytes__` where `` is the base-64 encoding of the - * bytes. - * @type int|string $id - * The auto-allocated ID of the entity. - * Never equal to zero. Values less than zero are discouraged and may not - * be supported in the future. - * @type string $name - * The name of the entity. - * A name matching regex `__.*__` is reserved/read-only. - * A name must not be more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are - * encoded as `__bytes__` where `` is the base-64 encoding of the - * bytes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are - * encoded as `__bytes__` where `` is the base-64 encoding of the - * bytes. - * - * Generated from protobuf field string kind = 1; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are - * encoded as `__bytes__` where `` is the base-64 encoding of the - * bytes. - * - * Generated from protobuf field string kind = 1; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * The auto-allocated ID of the entity. - * Never equal to zero. Values less than zero are discouraged and may not - * be supported in the future. - * - * Generated from protobuf field int64 id = 2; - * @return int|string - */ - public function getId() - { - return $this->readOneof(2); - } - - public function hasId() - { - return $this->hasOneof(2); - } - - /** - * The auto-allocated ID of the entity. - * Never equal to zero. Values less than zero are discouraged and may not - * be supported in the future. - * - * Generated from protobuf field int64 id = 2; - * @param int|string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The name of the entity. - * A name matching regex `__.*__` is reserved/read-only. - * A name must not be more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are - * encoded as `__bytes__` where `` is the base-64 encoding of the - * bytes. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->readOneof(3); - } - - public function hasName() - { - return $this->hasOneof(3); - } - - /** - * The name of the entity. - * A name matching regex `__.*__` is reserved/read-only. - * A name must not be more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * Must be valid UTF-8 bytes. Legacy values that are not valid UTF-8 are - * encoded as `__bytes__` where `` is the base-64 encoding of the - * bytes. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getIdType() - { - return $this->whichOneof("id_type"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PathElement::class, \Google\Cloud\Datastore\V1\Key_PathElement::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/KindExpression.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/KindExpression.php deleted file mode 100644 index be49b78b627c..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/KindExpression.php +++ /dev/null @@ -1,67 +0,0 @@ -google.datastore.v1.KindExpression - */ -class KindExpression extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the kind. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the kind. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * The name of the kind. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the kind. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/LookupRequest.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/LookupRequest.php deleted file mode 100644 index de73e6c97ef1..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/LookupRequest.php +++ /dev/null @@ -1,260 +0,0 @@ -google.datastore.v1.LookupRequest - */ -class LookupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - */ - protected $database_id = ''; - /** - * The options for this lookup request. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions read_options = 1; - */ - protected $read_options = null; - /** - * Required. Keys of entities to look up. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $keys; - /** - * The properties to return. Defaults to returning all properties. - * If this field is set and an entity has a property not referenced in the - * mask, it will be absent from [LookupResponse.found.entity.properties][]. - * The entity's key is always returned. - * - * Generated from protobuf field .google.datastore.v1.PropertyMask property_mask = 5; - */ - protected $property_mask = null; - - /** - * @param string $projectId Required. The ID of the project against which to make the request. - * @param \Google\Cloud\Datastore\V1\ReadOptions $readOptions The options for this lookup request. - * @param \Google\Cloud\Datastore\V1\Key[] $keys Required. Keys of entities to look up. - * - * @return \Google\Cloud\Datastore\V1\LookupRequest - * - * @experimental - */ - public static function build(string $projectId, \Google\Cloud\Datastore\V1\ReadOptions $readOptions, array $keys): self - { - return (new self()) - ->setProjectId($projectId) - ->setReadOptions($readOptions) - ->setKeys($keys); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the project against which to make the request. - * @type string $database_id - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type \Google\Cloud\Datastore\V1\ReadOptions $read_options - * The options for this lookup request. - * @type array<\Google\Cloud\Datastore\V1\Key>|\Google\Protobuf\Internal\RepeatedField $keys - * Required. Keys of entities to look up. - * @type \Google\Cloud\Datastore\V1\PropertyMask $property_mask - * The properties to return. Defaults to returning all properties. - * If this field is set and an entity has a property not referenced in the - * mask, it will be absent from [LookupResponse.found.entity.properties][]. - * The entity's key is always returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * The options for this lookup request. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions read_options = 1; - * @return \Google\Cloud\Datastore\V1\ReadOptions|null - */ - public function getReadOptions() - { - return $this->read_options; - } - - public function hasReadOptions() - { - return isset($this->read_options); - } - - public function clearReadOptions() - { - unset($this->read_options); - } - - /** - * The options for this lookup request. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions read_options = 1; - * @param \Google\Cloud\Datastore\V1\ReadOptions $var - * @return $this - */ - public function setReadOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ReadOptions::class); - $this->read_options = $var; - - return $this; - } - - /** - * Required. Keys of entities to look up. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeys() - { - return $this->keys; - } - - /** - * Required. Keys of entities to look up. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Datastore\V1\Key>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Key::class); - $this->keys = $arr; - - return $this; - } - - /** - * The properties to return. Defaults to returning all properties. - * If this field is set and an entity has a property not referenced in the - * mask, it will be absent from [LookupResponse.found.entity.properties][]. - * The entity's key is always returned. - * - * Generated from protobuf field .google.datastore.v1.PropertyMask property_mask = 5; - * @return \Google\Cloud\Datastore\V1\PropertyMask|null - */ - public function getPropertyMask() - { - return $this->property_mask; - } - - public function hasPropertyMask() - { - return isset($this->property_mask); - } - - public function clearPropertyMask() - { - unset($this->property_mask); - } - - /** - * The properties to return. Defaults to returning all properties. - * If this field is set and an entity has a property not referenced in the - * mask, it will be absent from [LookupResponse.found.entity.properties][]. - * The entity's key is always returned. - * - * Generated from protobuf field .google.datastore.v1.PropertyMask property_mask = 5; - * @param \Google\Cloud\Datastore\V1\PropertyMask $var - * @return $this - */ - public function setPropertyMask($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PropertyMask::class); - $this->property_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/LookupResponse.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/LookupResponse.php deleted file mode 100644 index e33d8a7f8742..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/LookupResponse.php +++ /dev/null @@ -1,257 +0,0 @@ -google.datastore.v1.LookupResponse - */ -class LookupResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Entities found as `ResultType.FULL` entities. The order of results in this - * field is undefined and has no relation to the order of the keys in the - * input. - * - * Generated from protobuf field repeated .google.datastore.v1.EntityResult found = 1; - */ - private $found; - /** - * Entities not found as `ResultType.KEY_ONLY` entities. The order of results - * in this field is undefined and has no relation to the order of the keys - * in the input. - * - * Generated from protobuf field repeated .google.datastore.v1.EntityResult missing = 2; - */ - private $missing; - /** - * A list of keys that were not looked up due to resource constraints. The - * order of results in this field is undefined and has no relation to the - * order of the keys in the input. - * - * Generated from protobuf field repeated .google.datastore.v1.Key deferred = 3; - */ - private $deferred; - /** - * The identifier of the transaction that was started as part of this Lookup - * request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [LookupRequest.read_options][google.datastore.v1.LookupRequest.read_options]. - * - * Generated from protobuf field bytes transaction = 5; - */ - protected $transaction = ''; - /** - * The time at which these entities were read or found missing. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 7; - */ - protected $read_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Datastore\V1\EntityResult>|\Google\Protobuf\Internal\RepeatedField $found - * Entities found as `ResultType.FULL` entities. The order of results in this - * field is undefined and has no relation to the order of the keys in the - * input. - * @type array<\Google\Cloud\Datastore\V1\EntityResult>|\Google\Protobuf\Internal\RepeatedField $missing - * Entities not found as `ResultType.KEY_ONLY` entities. The order of results - * in this field is undefined and has no relation to the order of the keys - * in the input. - * @type array<\Google\Cloud\Datastore\V1\Key>|\Google\Protobuf\Internal\RepeatedField $deferred - * A list of keys that were not looked up due to resource constraints. The - * order of results in this field is undefined and has no relation to the - * order of the keys in the input. - * @type string $transaction - * The identifier of the transaction that was started as part of this Lookup - * request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [LookupRequest.read_options][google.datastore.v1.LookupRequest.read_options]. - * @type \Google\Protobuf\Timestamp $read_time - * The time at which these entities were read or found missing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Entities found as `ResultType.FULL` entities. The order of results in this - * field is undefined and has no relation to the order of the keys in the - * input. - * - * Generated from protobuf field repeated .google.datastore.v1.EntityResult found = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFound() - { - return $this->found; - } - - /** - * Entities found as `ResultType.FULL` entities. The order of results in this - * field is undefined and has no relation to the order of the keys in the - * input. - * - * Generated from protobuf field repeated .google.datastore.v1.EntityResult found = 1; - * @param array<\Google\Cloud\Datastore\V1\EntityResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFound($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\EntityResult::class); - $this->found = $arr; - - return $this; - } - - /** - * Entities not found as `ResultType.KEY_ONLY` entities. The order of results - * in this field is undefined and has no relation to the order of the keys - * in the input. - * - * Generated from protobuf field repeated .google.datastore.v1.EntityResult missing = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMissing() - { - return $this->missing; - } - - /** - * Entities not found as `ResultType.KEY_ONLY` entities. The order of results - * in this field is undefined and has no relation to the order of the keys - * in the input. - * - * Generated from protobuf field repeated .google.datastore.v1.EntityResult missing = 2; - * @param array<\Google\Cloud\Datastore\V1\EntityResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMissing($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\EntityResult::class); - $this->missing = $arr; - - return $this; - } - - /** - * A list of keys that were not looked up due to resource constraints. The - * order of results in this field is undefined and has no relation to the - * order of the keys in the input. - * - * Generated from protobuf field repeated .google.datastore.v1.Key deferred = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeferred() - { - return $this->deferred; - } - - /** - * A list of keys that were not looked up due to resource constraints. The - * order of results in this field is undefined and has no relation to the - * order of the keys in the input. - * - * Generated from protobuf field repeated .google.datastore.v1.Key deferred = 3; - * @param array<\Google\Cloud\Datastore\V1\Key>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeferred($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Key::class); - $this->deferred = $arr; - - return $this; - } - - /** - * The identifier of the transaction that was started as part of this Lookup - * request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [LookupRequest.read_options][google.datastore.v1.LookupRequest.read_options]. - * - * Generated from protobuf field bytes transaction = 5; - * @return string - */ - public function getTransaction() - { - return $this->transaction; - } - - /** - * The identifier of the transaction that was started as part of this Lookup - * request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [LookupRequest.read_options][google.datastore.v1.LookupRequest.read_options]. - * - * Generated from protobuf field bytes transaction = 5; - * @param string $var - * @return $this - */ - public function setTransaction($var) - { - GPBUtil::checkString($var, False); - $this->transaction = $var; - - return $this; - } - - /** - * The time at which these entities were read or found missing. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReadTime() - { - return $this->read_time; - } - - public function hasReadTime() - { - return isset($this->read_time); - } - - public function clearReadTime() - { - unset($this->read_time); - } - - /** - * The time at which these entities were read or found missing. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->read_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Mutation.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Mutation.php deleted file mode 100644 index 8721321c562a..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Mutation.php +++ /dev/null @@ -1,429 +0,0 @@ -google.datastore.v1.Mutation - */ -class Mutation extends \Google\Protobuf\Internal\Message -{ - /** - * The strategy to use when a conflict is detected. Defaults to - * `SERVER_VALUE`. - * If this is set, then `conflict_detection_strategy` must also be set. - * - * Generated from protobuf field .google.datastore.v1.Mutation.ConflictResolutionStrategy conflict_resolution_strategy = 10; - */ - protected $conflict_resolution_strategy = 0; - /** - * The properties to write in this mutation. - * None of the properties in the mask may have a reserved name, except for - * `__key__`. - * This field is ignored for `delete`. - * If the entity already exists, only properties referenced in the mask are - * updated, others are left untouched. - * Properties referenced in the mask but not in the entity are deleted. - * - * Generated from protobuf field .google.datastore.v1.PropertyMask property_mask = 9; - */ - protected $property_mask = null; - /** - * Optional. The transforms to perform on the entity. - * This field can be set only when the operation is `insert`, `update`, - * or `upsert`. If present, the transforms are be applied to the entity - * regardless of the property mask, in order, after the operation. - * - * Generated from protobuf field repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $property_transforms; - protected $operation; - protected $conflict_detection_strategy; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\Entity $insert - * The entity to insert. The entity must not already exist. - * The entity key's final path element may be incomplete. - * @type \Google\Cloud\Datastore\V1\Entity $update - * The entity to update. The entity must already exist. - * Must have a complete key path. - * @type \Google\Cloud\Datastore\V1\Entity $upsert - * The entity to upsert. The entity may or may not already exist. - * The entity key's final path element may be incomplete. - * @type \Google\Cloud\Datastore\V1\Key $delete - * The key of the entity to delete. The entity may or may not already exist. - * Must have a complete key path and must not be reserved/read-only. - * @type int|string $base_version - * The version of the entity that this mutation is being applied - * to. If this does not match the current version on the server, the - * mutation conflicts. - * @type \Google\Protobuf\Timestamp $update_time - * The update time of the entity that this mutation is being applied - * to. If this does not match the current update time on the server, the - * mutation conflicts. - * @type int $conflict_resolution_strategy - * The strategy to use when a conflict is detected. Defaults to - * `SERVER_VALUE`. - * If this is set, then `conflict_detection_strategy` must also be set. - * @type \Google\Cloud\Datastore\V1\PropertyMask $property_mask - * The properties to write in this mutation. - * None of the properties in the mask may have a reserved name, except for - * `__key__`. - * This field is ignored for `delete`. - * If the entity already exists, only properties referenced in the mask are - * updated, others are left untouched. - * Properties referenced in the mask but not in the entity are deleted. - * @type array<\Google\Cloud\Datastore\V1\PropertyTransform>|\Google\Protobuf\Internal\RepeatedField $property_transforms - * Optional. The transforms to perform on the entity. - * This field can be set only when the operation is `insert`, `update`, - * or `upsert`. If present, the transforms are be applied to the entity - * regardless of the property mask, in order, after the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * The entity to insert. The entity must not already exist. - * The entity key's final path element may be incomplete. - * - * Generated from protobuf field .google.datastore.v1.Entity insert = 4; - * @return \Google\Cloud\Datastore\V1\Entity|null - */ - public function getInsert() - { - return $this->readOneof(4); - } - - public function hasInsert() - { - return $this->hasOneof(4); - } - - /** - * The entity to insert. The entity must not already exist. - * The entity key's final path element may be incomplete. - * - * Generated from protobuf field .google.datastore.v1.Entity insert = 4; - * @param \Google\Cloud\Datastore\V1\Entity $var - * @return $this - */ - public function setInsert($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Entity::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * The entity to update. The entity must already exist. - * Must have a complete key path. - * - * Generated from protobuf field .google.datastore.v1.Entity update = 5; - * @return \Google\Cloud\Datastore\V1\Entity|null - */ - public function getUpdate() - { - return $this->readOneof(5); - } - - public function hasUpdate() - { - return $this->hasOneof(5); - } - - /** - * The entity to update. The entity must already exist. - * Must have a complete key path. - * - * Generated from protobuf field .google.datastore.v1.Entity update = 5; - * @param \Google\Cloud\Datastore\V1\Entity $var - * @return $this - */ - public function setUpdate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Entity::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The entity to upsert. The entity may or may not already exist. - * The entity key's final path element may be incomplete. - * - * Generated from protobuf field .google.datastore.v1.Entity upsert = 6; - * @return \Google\Cloud\Datastore\V1\Entity|null - */ - public function getUpsert() - { - return $this->readOneof(6); - } - - public function hasUpsert() - { - return $this->hasOneof(6); - } - - /** - * The entity to upsert. The entity may or may not already exist. - * The entity key's final path element may be incomplete. - * - * Generated from protobuf field .google.datastore.v1.Entity upsert = 6; - * @param \Google\Cloud\Datastore\V1\Entity $var - * @return $this - */ - public function setUpsert($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Entity::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The key of the entity to delete. The entity may or may not already exist. - * Must have a complete key path and must not be reserved/read-only. - * - * Generated from protobuf field .google.datastore.v1.Key delete = 7; - * @return \Google\Cloud\Datastore\V1\Key|null - */ - public function getDelete() - { - return $this->readOneof(7); - } - - public function hasDelete() - { - return $this->hasOneof(7); - } - - /** - * The key of the entity to delete. The entity may or may not already exist. - * Must have a complete key path and must not be reserved/read-only. - * - * Generated from protobuf field .google.datastore.v1.Key delete = 7; - * @param \Google\Cloud\Datastore\V1\Key $var - * @return $this - */ - public function setDelete($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Key::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * The version of the entity that this mutation is being applied - * to. If this does not match the current version on the server, the - * mutation conflicts. - * - * Generated from protobuf field int64 base_version = 8; - * @return int|string - */ - public function getBaseVersion() - { - return $this->readOneof(8); - } - - public function hasBaseVersion() - { - return $this->hasOneof(8); - } - - /** - * The version of the entity that this mutation is being applied - * to. If this does not match the current version on the server, the - * mutation conflicts. - * - * Generated from protobuf field int64 base_version = 8; - * @param int|string $var - * @return $this - */ - public function setBaseVersion($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * The update time of the entity that this mutation is being applied - * to. If this does not match the current update time on the server, the - * mutation conflicts. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->readOneof(11); - } - - public function hasUpdateTime() - { - return $this->hasOneof(11); - } - - /** - * The update time of the entity that this mutation is being applied - * to. If this does not match the current update time on the server, the - * mutation conflicts. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 11; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * The strategy to use when a conflict is detected. Defaults to - * `SERVER_VALUE`. - * If this is set, then `conflict_detection_strategy` must also be set. - * - * Generated from protobuf field .google.datastore.v1.Mutation.ConflictResolutionStrategy conflict_resolution_strategy = 10; - * @return int - */ - public function getConflictResolutionStrategy() - { - return $this->conflict_resolution_strategy; - } - - /** - * The strategy to use when a conflict is detected. Defaults to - * `SERVER_VALUE`. - * If this is set, then `conflict_detection_strategy` must also be set. - * - * Generated from protobuf field .google.datastore.v1.Mutation.ConflictResolutionStrategy conflict_resolution_strategy = 10; - * @param int $var - * @return $this - */ - public function setConflictResolutionStrategy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\Mutation\ConflictResolutionStrategy::class); - $this->conflict_resolution_strategy = $var; - - return $this; - } - - /** - * The properties to write in this mutation. - * None of the properties in the mask may have a reserved name, except for - * `__key__`. - * This field is ignored for `delete`. - * If the entity already exists, only properties referenced in the mask are - * updated, others are left untouched. - * Properties referenced in the mask but not in the entity are deleted. - * - * Generated from protobuf field .google.datastore.v1.PropertyMask property_mask = 9; - * @return \Google\Cloud\Datastore\V1\PropertyMask|null - */ - public function getPropertyMask() - { - return $this->property_mask; - } - - public function hasPropertyMask() - { - return isset($this->property_mask); - } - - public function clearPropertyMask() - { - unset($this->property_mask); - } - - /** - * The properties to write in this mutation. - * None of the properties in the mask may have a reserved name, except for - * `__key__`. - * This field is ignored for `delete`. - * If the entity already exists, only properties referenced in the mask are - * updated, others are left untouched. - * Properties referenced in the mask but not in the entity are deleted. - * - * Generated from protobuf field .google.datastore.v1.PropertyMask property_mask = 9; - * @param \Google\Cloud\Datastore\V1\PropertyMask $var - * @return $this - */ - public function setPropertyMask($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PropertyMask::class); - $this->property_mask = $var; - - return $this; - } - - /** - * Optional. The transforms to perform on the entity. - * This field can be set only when the operation is `insert`, `update`, - * or `upsert`. If present, the transforms are be applied to the entity - * regardless of the property mask, in order, after the operation. - * - * Generated from protobuf field repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPropertyTransforms() - { - return $this->property_transforms; - } - - /** - * Optional. The transforms to perform on the entity. - * This field can be set only when the operation is `insert`, `update`, - * or `upsert`. If present, the transforms are be applied to the entity - * regardless of the property mask, in order, after the operation. - * - * Generated from protobuf field repeated .google.datastore.v1.PropertyTransform property_transforms = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\Datastore\V1\PropertyTransform>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPropertyTransforms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\PropertyTransform::class); - $this->property_transforms = $arr; - - return $this; - } - - /** - * @return string - */ - public function getOperation() - { - return $this->whichOneof("operation"); - } - - /** - * @return string - */ - public function getConflictDetectionStrategy() - { - return $this->whichOneof("conflict_detection_strategy"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Mutation/ConflictResolutionStrategy.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Mutation/ConflictResolutionStrategy.php deleted file mode 100644 index f2809890ebe1..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Mutation/ConflictResolutionStrategy.php +++ /dev/null @@ -1,64 +0,0 @@ -google.datastore.v1.Mutation.ConflictResolutionStrategy - */ -class ConflictResolutionStrategy -{ - /** - * Unspecified. Defaults to `SERVER_VALUE`. - * - * Generated from protobuf enum STRATEGY_UNSPECIFIED = 0; - */ - const STRATEGY_UNSPECIFIED = 0; - /** - * The server entity is kept. - * - * Generated from protobuf enum SERVER_VALUE = 1; - */ - const SERVER_VALUE = 1; - /** - * The whole commit request fails. - * - * Generated from protobuf enum FAIL = 3; - */ - const FAIL = 3; - - private static $valueToName = [ - self::STRATEGY_UNSPECIFIED => 'STRATEGY_UNSPECIFIED', - self::SERVER_VALUE => 'SERVER_VALUE', - self::FAIL => 'FAIL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConflictResolutionStrategy::class, \Google\Cloud\Datastore\V1\Mutation_ConflictResolutionStrategy::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/MutationResult.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/MutationResult.php deleted file mode 100644 index 8dad8eba89fa..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/MutationResult.php +++ /dev/null @@ -1,311 +0,0 @@ -google.datastore.v1.MutationResult - */ -class MutationResult extends \Google\Protobuf\Internal\Message -{ - /** - * The automatically allocated key. - * Set only when the mutation allocated a key. - * - * Generated from protobuf field .google.datastore.v1.Key key = 3; - */ - protected $key = null; - /** - * The version of the entity on the server after processing the mutation. If - * the mutation doesn't change anything on the server, then the version will - * be the version of the current entity or, if no entity is present, a version - * that is strictly greater than the version of any previous entity and less - * than the version of any possible future entity. - * - * Generated from protobuf field int64 version = 4; - */ - protected $version = 0; - /** - * The create time of the entity. This field will not be set after a 'delete'. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - */ - protected $create_time = null; - /** - * The update time of the entity on the server after processing the mutation. - * If the mutation doesn't change anything on the server, then the timestamp - * will be the update timestamp of the current entity. This field will not be - * set after a 'delete'. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - */ - protected $update_time = null; - /** - * Whether a conflict was detected for this mutation. Always false when a - * conflict detection strategy field is not set in the mutation. - * - * Generated from protobuf field bool conflict_detected = 5; - */ - protected $conflict_detected = false; - /** - * The results of applying each - * [PropertyTransform][google.datastore.v1.PropertyTransform], in the same - * order of the request. - * - * Generated from protobuf field repeated .google.datastore.v1.Value transform_results = 8; - */ - private $transform_results; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\Key $key - * The automatically allocated key. - * Set only when the mutation allocated a key. - * @type int|string $version - * The version of the entity on the server after processing the mutation. If - * the mutation doesn't change anything on the server, then the version will - * be the version of the current entity or, if no entity is present, a version - * that is strictly greater than the version of any previous entity and less - * than the version of any possible future entity. - * @type \Google\Protobuf\Timestamp $create_time - * The create time of the entity. This field will not be set after a 'delete'. - * @type \Google\Protobuf\Timestamp $update_time - * The update time of the entity on the server after processing the mutation. - * If the mutation doesn't change anything on the server, then the timestamp - * will be the update timestamp of the current entity. This field will not be - * set after a 'delete'. - * @type bool $conflict_detected - * Whether a conflict was detected for this mutation. Always false when a - * conflict detection strategy field is not set in the mutation. - * @type array<\Google\Cloud\Datastore\V1\Value>|\Google\Protobuf\Internal\RepeatedField $transform_results - * The results of applying each - * [PropertyTransform][google.datastore.v1.PropertyTransform], in the same - * order of the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * The automatically allocated key. - * Set only when the mutation allocated a key. - * - * Generated from protobuf field .google.datastore.v1.Key key = 3; - * @return \Google\Cloud\Datastore\V1\Key|null - */ - public function getKey() - { - return $this->key; - } - - public function hasKey() - { - return isset($this->key); - } - - public function clearKey() - { - unset($this->key); - } - - /** - * The automatically allocated key. - * Set only when the mutation allocated a key. - * - * Generated from protobuf field .google.datastore.v1.Key key = 3; - * @param \Google\Cloud\Datastore\V1\Key $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Key::class); - $this->key = $var; - - return $this; - } - - /** - * The version of the entity on the server after processing the mutation. If - * the mutation doesn't change anything on the server, then the version will - * be the version of the current entity or, if no entity is present, a version - * that is strictly greater than the version of any previous entity and less - * than the version of any possible future entity. - * - * Generated from protobuf field int64 version = 4; - * @return int|string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of the entity on the server after processing the mutation. If - * the mutation doesn't change anything on the server, then the version will - * be the version of the current entity or, if no entity is present, a version - * that is strictly greater than the version of any previous entity and less - * than the version of any possible future entity. - * - * Generated from protobuf field int64 version = 4; - * @param int|string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkInt64($var); - $this->version = $var; - - return $this; - } - - /** - * The create time of the entity. This field will not be set after a 'delete'. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The create time of the entity. This field will not be set after a 'delete'. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The update time of the entity on the server after processing the mutation. - * If the mutation doesn't change anything on the server, then the timestamp - * will be the update timestamp of the current entity. This field will not be - * set after a 'delete'. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - * @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 update time of the entity on the server after processing the mutation. - * If the mutation doesn't change anything on the server, then the timestamp - * will be the update timestamp of the current entity. This field will not be - * set after a 'delete'. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Whether a conflict was detected for this mutation. Always false when a - * conflict detection strategy field is not set in the mutation. - * - * Generated from protobuf field bool conflict_detected = 5; - * @return bool - */ - public function getConflictDetected() - { - return $this->conflict_detected; - } - - /** - * Whether a conflict was detected for this mutation. Always false when a - * conflict detection strategy field is not set in the mutation. - * - * Generated from protobuf field bool conflict_detected = 5; - * @param bool $var - * @return $this - */ - public function setConflictDetected($var) - { - GPBUtil::checkBool($var); - $this->conflict_detected = $var; - - return $this; - } - - /** - * The results of applying each - * [PropertyTransform][google.datastore.v1.PropertyTransform], in the same - * order of the request. - * - * Generated from protobuf field repeated .google.datastore.v1.Value transform_results = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransformResults() - { - return $this->transform_results; - } - - /** - * The results of applying each - * [PropertyTransform][google.datastore.v1.PropertyTransform], in the same - * order of the request. - * - * Generated from protobuf field repeated .google.datastore.v1.Value transform_results = 8; - * @param array<\Google\Cloud\Datastore\V1\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransformResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Value::class); - $this->transform_results = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PartitionId.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PartitionId.php deleted file mode 100644 index c2f4e7864f4b..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PartitionId.php +++ /dev/null @@ -1,154 +0,0 @@ -google.datastore.v1.PartitionId - */ -class PartitionId extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the project to which the entities belong. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * If not empty, the ID of the database to which the entities - * belong. - * - * Generated from protobuf field string database_id = 3; - */ - protected $database_id = ''; - /** - * If not empty, the ID of the namespace to which the entities belong. - * - * Generated from protobuf field string namespace_id = 4; - */ - protected $namespace_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The ID of the project to which the entities belong. - * @type string $database_id - * If not empty, the ID of the database to which the entities - * belong. - * @type string $namespace_id - * If not empty, the ID of the namespace to which the entities belong. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the project to which the entities belong. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the project to which the entities belong. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * If not empty, the ID of the database to which the entities - * belong. - * - * Generated from protobuf field string database_id = 3; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * If not empty, the ID of the database to which the entities - * belong. - * - * Generated from protobuf field string database_id = 3; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * If not empty, the ID of the namespace to which the entities belong. - * - * Generated from protobuf field string namespace_id = 4; - * @return string - */ - public function getNamespaceId() - { - return $this->namespace_id; - } - - /** - * If not empty, the ID of the namespace to which the entities belong. - * - * Generated from protobuf field string namespace_id = 4; - * @param string $var - * @return $this - */ - public function setNamespaceId($var) - { - GPBUtil::checkString($var, True); - $this->namespace_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PlanSummary.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PlanSummary.php deleted file mode 100644 index 92b12043c889..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PlanSummary.php +++ /dev/null @@ -1,83 +0,0 @@ -google.datastore.v1.PlanSummary - */ -class PlanSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The indexes selected for the query. For example: - * [ - * {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, - * {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} - * ] - * - * Generated from protobuf field repeated .google.protobuf.Struct indexes_used = 1; - */ - private $indexes_used; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Protobuf\Struct>|\Google\Protobuf\Internal\RepeatedField $indexes_used - * The indexes selected for the query. For example: - * [ - * {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, - * {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} - * ] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\QueryProfile::initOnce(); - parent::__construct($data); - } - - /** - * The indexes selected for the query. For example: - * [ - * {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, - * {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} - * ] - * - * Generated from protobuf field repeated .google.protobuf.Struct indexes_used = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIndexesUsed() - { - return $this->indexes_used; - } - - /** - * The indexes selected for the query. For example: - * [ - * {"query_scope": "Collection", "properties": "(foo ASC, __name__ ASC)"}, - * {"query_scope": "Collection", "properties": "(bar ASC, __name__ ASC)"} - * ] - * - * Generated from protobuf field repeated .google.protobuf.Struct indexes_used = 1; - * @param array<\Google\Protobuf\Struct>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIndexesUsed($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Struct::class); - $this->indexes_used = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Projection.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Projection.php deleted file mode 100644 index 614ebde6d27f..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Projection.php +++ /dev/null @@ -1,77 +0,0 @@ -google.datastore.v1.Projection - */ -class Projection extends \Google\Protobuf\Internal\Message -{ - /** - * The property to project. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - */ - protected $property = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\PropertyReference $property - * The property to project. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * The property to project. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - * @return \Google\Cloud\Datastore\V1\PropertyReference|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * The property to project. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - * @param \Google\Cloud\Datastore\V1\PropertyReference $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PropertyReference::class); - $this->property = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyFilter.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyFilter.php deleted file mode 100644 index 9e303711f8aa..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyFilter.php +++ /dev/null @@ -1,155 +0,0 @@ -google.datastore.v1.PropertyFilter - */ -class PropertyFilter extends \Google\Protobuf\Internal\Message -{ - /** - * The property to filter by. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - */ - protected $property = null; - /** - * The operator to filter by. - * - * Generated from protobuf field .google.datastore.v1.PropertyFilter.Operator op = 2; - */ - protected $op = 0; - /** - * The value to compare the property to. - * - * Generated from protobuf field .google.datastore.v1.Value value = 3; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\PropertyReference $property - * The property to filter by. - * @type int $op - * The operator to filter by. - * @type \Google\Cloud\Datastore\V1\Value $value - * The value to compare the property to. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * The property to filter by. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - * @return \Google\Cloud\Datastore\V1\PropertyReference|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * The property to filter by. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - * @param \Google\Cloud\Datastore\V1\PropertyReference $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PropertyReference::class); - $this->property = $var; - - return $this; - } - - /** - * The operator to filter by. - * - * Generated from protobuf field .google.datastore.v1.PropertyFilter.Operator op = 2; - * @return int - */ - public function getOp() - { - return $this->op; - } - - /** - * The operator to filter by. - * - * Generated from protobuf field .google.datastore.v1.PropertyFilter.Operator op = 2; - * @param int $var - * @return $this - */ - public function setOp($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\PropertyFilter\Operator::class); - $this->op = $var; - - return $this; - } - - /** - * The value to compare the property to. - * - * Generated from protobuf field .google.datastore.v1.Value value = 3; - * @return \Google\Cloud\Datastore\V1\Value|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * The value to compare the property to. - * - * Generated from protobuf field .google.datastore.v1.Value value = 3; - * @param \Google\Cloud\Datastore\V1\Value $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Value::class); - $this->value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyFilter/Operator.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyFilter/Operator.php deleted file mode 100644 index b1188ff2d39a..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyFilter/Operator.php +++ /dev/null @@ -1,135 +0,0 @@ -google.datastore.v1.PropertyFilter.Operator - */ -class Operator -{ - /** - * Unspecified. This value must not be used. - * - * Generated from protobuf enum OPERATOR_UNSPECIFIED = 0; - */ - const OPERATOR_UNSPECIFIED = 0; - /** - * The given `property` is less than the given `value`. - * Requires: - * * That `property` comes first in `order_by`. - * - * Generated from protobuf enum LESS_THAN = 1; - */ - const LESS_THAN = 1; - /** - * The given `property` is less than or equal to the given `value`. - * Requires: - * * That `property` comes first in `order_by`. - * - * Generated from protobuf enum LESS_THAN_OR_EQUAL = 2; - */ - const LESS_THAN_OR_EQUAL = 2; - /** - * The given `property` is greater than the given `value`. - * Requires: - * * That `property` comes first in `order_by`. - * - * Generated from protobuf enum GREATER_THAN = 3; - */ - const GREATER_THAN = 3; - /** - * The given `property` is greater than or equal to the given `value`. - * Requires: - * * That `property` comes first in `order_by`. - * - * Generated from protobuf enum GREATER_THAN_OR_EQUAL = 4; - */ - const GREATER_THAN_OR_EQUAL = 4; - /** - * The given `property` is equal to the given `value`. - * - * Generated from protobuf enum EQUAL = 5; - */ - const EQUAL = 5; - /** - * The given `property` is equal to at least one value in the given array. - * Requires: - * * That `value` is a non-empty `ArrayValue`, subject to disjunction - * limits. - * * No `NOT_IN` is in the same query. - * - * Generated from protobuf enum IN = 6; - */ - const IN = 6; - /** - * The given `property` is not equal to the given `value`. - * Requires: - * * No other `NOT_EQUAL` or `NOT_IN` is in the same query. - * * That `property` comes first in the `order_by`. - * - * Generated from protobuf enum NOT_EQUAL = 9; - */ - const NOT_EQUAL = 9; - /** - * Limit the result set to the given entity and its descendants. - * Requires: - * * That `value` is an entity key. - * * All evaluated disjunctions must have the same `HAS_ANCESTOR` filter. - * - * Generated from protobuf enum HAS_ANCESTOR = 11; - */ - const HAS_ANCESTOR = 11; - /** - * The value of the `property` is not in the given array. - * Requires: - * * That `value` is a non-empty `ArrayValue` with at most 10 values. - * * No other `OR`, `IN`, `NOT_IN`, `NOT_EQUAL` is in the same query. - * * That `field` comes first in the `order_by`. - * - * Generated from protobuf enum NOT_IN = 13; - */ - const NOT_IN = 13; - - private static $valueToName = [ - self::OPERATOR_UNSPECIFIED => 'OPERATOR_UNSPECIFIED', - self::LESS_THAN => 'LESS_THAN', - self::LESS_THAN_OR_EQUAL => 'LESS_THAN_OR_EQUAL', - self::GREATER_THAN => 'GREATER_THAN', - self::GREATER_THAN_OR_EQUAL => 'GREATER_THAN_OR_EQUAL', - self::EQUAL => 'EQUAL', - self::IN => 'IN', - self::NOT_EQUAL => 'NOT_EQUAL', - self::HAS_ANCESTOR => 'HAS_ANCESTOR', - self::NOT_IN => 'NOT_IN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Operator::class, \Google\Cloud\Datastore\V1\PropertyFilter_Operator::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyMask.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyMask.php deleted file mode 100644 index 1768924cdfb4..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyMask.php +++ /dev/null @@ -1,96 +0,0 @@ -google.datastore.v1.PropertyMask - */ -class PropertyMask extends \Google\Protobuf\Internal\Message -{ - /** - * The paths to the properties covered by this mask. - * A path is a list of property names separated by dots (`.`), for example - * `foo.bar` means the property `bar` inside the entity property `foo` inside - * the entity associated with this path. - * If a property name contains a dot `.` or a backslash `\`, then that - * name must be escaped. - * A path must not be empty, and may not reference a value inside an - * [array value][google.datastore.v1.Value.array_value]. - * - * Generated from protobuf field repeated string paths = 1; - */ - private $paths; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $paths - * The paths to the properties covered by this mask. - * A path is a list of property names separated by dots (`.`), for example - * `foo.bar` means the property `bar` inside the entity property `foo` inside - * the entity associated with this path. - * If a property name contains a dot `.` or a backslash `\`, then that - * name must be escaped. - * A path must not be empty, and may not reference a value inside an - * [array value][google.datastore.v1.Value.array_value]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * The paths to the properties covered by this mask. - * A path is a list of property names separated by dots (`.`), for example - * `foo.bar` means the property `bar` inside the entity property `foo` inside - * the entity associated with this path. - * If a property name contains a dot `.` or a backslash `\`, then that - * name must be escaped. - * A path must not be empty, and may not reference a value inside an - * [array value][google.datastore.v1.Value.array_value]. - * - * Generated from protobuf field repeated string paths = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPaths() - { - return $this->paths; - } - - /** - * The paths to the properties covered by this mask. - * A path is a list of property names separated by dots (`.`), for example - * `foo.bar` means the property `bar` inside the entity property `foo` inside - * the entity associated with this path. - * If a property name contains a dot `.` or a backslash `\`, then that - * name must be escaped. - * A path must not be empty, and may not reference a value inside an - * [array value][google.datastore.v1.Value.array_value]. - * - * Generated from protobuf field repeated string paths = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->paths = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyOrder.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyOrder.php deleted file mode 100644 index 836cc807daf0..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyOrder.php +++ /dev/null @@ -1,111 +0,0 @@ -google.datastore.v1.PropertyOrder - */ -class PropertyOrder extends \Google\Protobuf\Internal\Message -{ - /** - * The property to order by. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - */ - protected $property = null; - /** - * The direction to order by. Defaults to `ASCENDING`. - * - * Generated from protobuf field .google.datastore.v1.PropertyOrder.Direction direction = 2; - */ - protected $direction = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\PropertyReference $property - * The property to order by. - * @type int $direction - * The direction to order by. Defaults to `ASCENDING`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * The property to order by. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - * @return \Google\Cloud\Datastore\V1\PropertyReference|null - */ - public function getProperty() - { - return $this->property; - } - - public function hasProperty() - { - return isset($this->property); - } - - public function clearProperty() - { - unset($this->property); - } - - /** - * The property to order by. - * - * Generated from protobuf field .google.datastore.v1.PropertyReference property = 1; - * @param \Google\Cloud\Datastore\V1\PropertyReference $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PropertyReference::class); - $this->property = $var; - - return $this; - } - - /** - * The direction to order by. Defaults to `ASCENDING`. - * - * Generated from protobuf field .google.datastore.v1.PropertyOrder.Direction direction = 2; - * @return int - */ - public function getDirection() - { - return $this->direction; - } - - /** - * The direction to order by. Defaults to `ASCENDING`. - * - * Generated from protobuf field .google.datastore.v1.PropertyOrder.Direction direction = 2; - * @param int $var - * @return $this - */ - public function setDirection($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\PropertyOrder\Direction::class); - $this->direction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyOrder/Direction.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyOrder/Direction.php deleted file mode 100644 index 6534ba280732..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyOrder/Direction.php +++ /dev/null @@ -1,64 +0,0 @@ -google.datastore.v1.PropertyOrder.Direction - */ -class Direction -{ - /** - * Unspecified. This value must not be used. - * - * Generated from protobuf enum DIRECTION_UNSPECIFIED = 0; - */ - const DIRECTION_UNSPECIFIED = 0; - /** - * Ascending. - * - * Generated from protobuf enum ASCENDING = 1; - */ - const ASCENDING = 1; - /** - * Descending. - * - * Generated from protobuf enum DESCENDING = 2; - */ - const DESCENDING = 2; - - private static $valueToName = [ - self::DIRECTION_UNSPECIFIED => 'DIRECTION_UNSPECIFIED', - self::ASCENDING => 'ASCENDING', - self::DESCENDING => 'DESCENDING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Direction::class, \Google\Cloud\Datastore\V1\PropertyOrder_Direction::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyReference.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyReference.php deleted file mode 100644 index ea6acf710a57..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyReference.php +++ /dev/null @@ -1,83 +0,0 @@ -google.datastore.v1.PropertyReference - */ -class PropertyReference extends \Google\Protobuf\Internal\Message -{ - /** - * A reference to a property. - * Requires: - * * MUST be a dot-delimited (`.`) string of segments, where each segment - * conforms to [entity property name][google.datastore.v1.Entity.properties] - * limitations. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * A reference to a property. - * Requires: - * * MUST be a dot-delimited (`.`) string of segments, where each segment - * conforms to [entity property name][google.datastore.v1.Entity.properties] - * limitations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * A reference to a property. - * Requires: - * * MUST be a dot-delimited (`.`) string of segments, where each segment - * conforms to [entity property name][google.datastore.v1.Entity.properties] - * limitations. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * A reference to a property. - * Requires: - * * MUST be a dot-delimited (`.`) string of segments, where each segment - * conforms to [entity property name][google.datastore.v1.Entity.properties] - * limitations. - * - * 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/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyTransform.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyTransform.php deleted file mode 100644 index 1114cd9027ae..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyTransform.php +++ /dev/null @@ -1,432 +0,0 @@ -google.datastore.v1.PropertyTransform - */ -class PropertyTransform extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The name of the property. - * Property paths (a list of property names separated by dots (`.`)) may be - * used to refer to properties inside entity values. For example `foo.bar` - * means the property `bar` inside the entity property `foo`. - * If a property name contains a dot `.` or a backlslash `\`, then that name - * must be escaped. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $property = ''; - protected $transform_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $property - * Optional. The name of the property. - * Property paths (a list of property names separated by dots (`.`)) may be - * used to refer to properties inside entity values. For example `foo.bar` - * means the property `bar` inside the entity property `foo`. - * If a property name contains a dot `.` or a backlslash `\`, then that name - * must be escaped. - * @type int $set_to_server_value - * Sets the property to the given server value. - * @type \Google\Cloud\Datastore\V1\Value $increment - * Adds the given value to the property's current value. - * This must be an integer or a double value. - * If the property is not an integer or double, or if the property does not - * yet exist, the transformation will set the property to the given value. - * If either of the given value or the current property value are doubles, - * both values will be interpreted as doubles. Double arithmetic and - * representation of double values follows IEEE 754 semantics. - * If there is positive/negative integer overflow, the property is resolved - * to the largest magnitude positive/negative integer. - * @type \Google\Cloud\Datastore\V1\Value $maximum - * Sets the property to the maximum of its current value and the given - * value. - * This must be an integer or a double value. - * If the property is not an integer or double, or if the property does not - * yet exist, the transformation will set the property to the given value. - * If a maximum operation is applied where the property and the input value - * are of mixed types (that is - one is an integer and one is a double) - * the property takes on the type of the larger operand. If the operands are - * equivalent (e.g. 3 and 3.0), the property does not change. - * 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and - * zero input value is always the stored value. - * The maximum of any numeric value x and NaN is NaN. - * @type \Google\Cloud\Datastore\V1\Value $minimum - * Sets the property to the minimum of its current value and the given - * value. - * This must be an integer or a double value. - * If the property is not an integer or double, or if the property does not - * yet exist, the transformation will set the property to the input value. - * If a minimum operation is applied where the property and the input value - * are of mixed types (that is - one is an integer and one is a double) - * the property takes on the type of the smaller operand. If the operands - * are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, - * and -0.0 are all zero. The minimum of a zero stored value and zero input - * value is always the stored value. The minimum of any numeric value x and - * NaN is NaN. - * @type \Google\Cloud\Datastore\V1\ArrayValue $append_missing_elements - * Appends the given elements in order if they are not already present in - * the current property value. - * If the property is not an array, or if the property does not yet exist, - * it is first set to the empty array. - * Equivalent numbers of different types (e.g. 3L and 3.0) are - * considered equal when checking if a value is missing. - * NaN is equal to NaN, and the null value is equal to the null value. - * If the input contains multiple equivalent values, only the first will - * be considered. - * The corresponding transform result will be the null value. - * @type \Google\Cloud\Datastore\V1\ArrayValue $remove_all_from_array - * Removes all of the given elements from the array in the property. - * If the property is not an array, or if the property does not yet exist, - * it is set to the empty array. - * Equivalent numbers of different types (e.g. 3L and 3.0) are - * considered equal when deciding whether an element should be removed. - * NaN is equal to NaN, and the null value is equal to the null value. - * This will remove all equivalent values if there are duplicates. - * The corresponding transform result will be the null value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The name of the property. - * Property paths (a list of property names separated by dots (`.`)) may be - * used to refer to properties inside entity values. For example `foo.bar` - * means the property `bar` inside the entity property `foo`. - * If a property name contains a dot `.` or a backlslash `\`, then that name - * must be escaped. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getProperty() - { - return $this->property; - } - - /** - * Optional. The name of the property. - * Property paths (a list of property names separated by dots (`.`)) may be - * used to refer to properties inside entity values. For example `foo.bar` - * means the property `bar` inside the entity property `foo`. - * If a property name contains a dot `.` or a backlslash `\`, then that name - * must be escaped. - * - * Generated from protobuf field string property = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setProperty($var) - { - GPBUtil::checkString($var, True); - $this->property = $var; - - return $this; - } - - /** - * Sets the property to the given server value. - * - * Generated from protobuf field .google.datastore.v1.PropertyTransform.ServerValue set_to_server_value = 2; - * @return int - */ - public function getSetToServerValue() - { - return $this->readOneof(2); - } - - public function hasSetToServerValue() - { - return $this->hasOneof(2); - } - - /** - * Sets the property to the given server value. - * - * Generated from protobuf field .google.datastore.v1.PropertyTransform.ServerValue set_to_server_value = 2; - * @param int $var - * @return $this - */ - public function setSetToServerValue($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\PropertyTransform\ServerValue::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Adds the given value to the property's current value. - * This must be an integer or a double value. - * If the property is not an integer or double, or if the property does not - * yet exist, the transformation will set the property to the given value. - * If either of the given value or the current property value are doubles, - * both values will be interpreted as doubles. Double arithmetic and - * representation of double values follows IEEE 754 semantics. - * If there is positive/negative integer overflow, the property is resolved - * to the largest magnitude positive/negative integer. - * - * Generated from protobuf field .google.datastore.v1.Value increment = 3; - * @return \Google\Cloud\Datastore\V1\Value|null - */ - public function getIncrement() - { - return $this->readOneof(3); - } - - public function hasIncrement() - { - return $this->hasOneof(3); - } - - /** - * Adds the given value to the property's current value. - * This must be an integer or a double value. - * If the property is not an integer or double, or if the property does not - * yet exist, the transformation will set the property to the given value. - * If either of the given value or the current property value are doubles, - * both values will be interpreted as doubles. Double arithmetic and - * representation of double values follows IEEE 754 semantics. - * If there is positive/negative integer overflow, the property is resolved - * to the largest magnitude positive/negative integer. - * - * Generated from protobuf field .google.datastore.v1.Value increment = 3; - * @param \Google\Cloud\Datastore\V1\Value $var - * @return $this - */ - public function setIncrement($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Value::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Sets the property to the maximum of its current value and the given - * value. - * This must be an integer or a double value. - * If the property is not an integer or double, or if the property does not - * yet exist, the transformation will set the property to the given value. - * If a maximum operation is applied where the property and the input value - * are of mixed types (that is - one is an integer and one is a double) - * the property takes on the type of the larger operand. If the operands are - * equivalent (e.g. 3 and 3.0), the property does not change. - * 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and - * zero input value is always the stored value. - * The maximum of any numeric value x and NaN is NaN. - * - * Generated from protobuf field .google.datastore.v1.Value maximum = 4; - * @return \Google\Cloud\Datastore\V1\Value|null - */ - public function getMaximum() - { - return $this->readOneof(4); - } - - public function hasMaximum() - { - return $this->hasOneof(4); - } - - /** - * Sets the property to the maximum of its current value and the given - * value. - * This must be an integer or a double value. - * If the property is not an integer or double, or if the property does not - * yet exist, the transformation will set the property to the given value. - * If a maximum operation is applied where the property and the input value - * are of mixed types (that is - one is an integer and one is a double) - * the property takes on the type of the larger operand. If the operands are - * equivalent (e.g. 3 and 3.0), the property does not change. - * 0, 0.0, and -0.0 are all zero. The maximum of a zero stored value and - * zero input value is always the stored value. - * The maximum of any numeric value x and NaN is NaN. - * - * Generated from protobuf field .google.datastore.v1.Value maximum = 4; - * @param \Google\Cloud\Datastore\V1\Value $var - * @return $this - */ - public function setMaximum($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Value::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Sets the property to the minimum of its current value and the given - * value. - * This must be an integer or a double value. - * If the property is not an integer or double, or if the property does not - * yet exist, the transformation will set the property to the input value. - * If a minimum operation is applied where the property and the input value - * are of mixed types (that is - one is an integer and one is a double) - * the property takes on the type of the smaller operand. If the operands - * are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, - * and -0.0 are all zero. The minimum of a zero stored value and zero input - * value is always the stored value. The minimum of any numeric value x and - * NaN is NaN. - * - * Generated from protobuf field .google.datastore.v1.Value minimum = 5; - * @return \Google\Cloud\Datastore\V1\Value|null - */ - public function getMinimum() - { - return $this->readOneof(5); - } - - public function hasMinimum() - { - return $this->hasOneof(5); - } - - /** - * Sets the property to the minimum of its current value and the given - * value. - * This must be an integer or a double value. - * If the property is not an integer or double, or if the property does not - * yet exist, the transformation will set the property to the input value. - * If a minimum operation is applied where the property and the input value - * are of mixed types (that is - one is an integer and one is a double) - * the property takes on the type of the smaller operand. If the operands - * are equivalent (e.g. 3 and 3.0), the property does not change. 0, 0.0, - * and -0.0 are all zero. The minimum of a zero stored value and zero input - * value is always the stored value. The minimum of any numeric value x and - * NaN is NaN. - * - * Generated from protobuf field .google.datastore.v1.Value minimum = 5; - * @param \Google\Cloud\Datastore\V1\Value $var - * @return $this - */ - public function setMinimum($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Value::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Appends the given elements in order if they are not already present in - * the current property value. - * If the property is not an array, or if the property does not yet exist, - * it is first set to the empty array. - * Equivalent numbers of different types (e.g. 3L and 3.0) are - * considered equal when checking if a value is missing. - * NaN is equal to NaN, and the null value is equal to the null value. - * If the input contains multiple equivalent values, only the first will - * be considered. - * The corresponding transform result will be the null value. - * - * Generated from protobuf field .google.datastore.v1.ArrayValue append_missing_elements = 6; - * @return \Google\Cloud\Datastore\V1\ArrayValue|null - */ - public function getAppendMissingElements() - { - return $this->readOneof(6); - } - - public function hasAppendMissingElements() - { - return $this->hasOneof(6); - } - - /** - * Appends the given elements in order if they are not already present in - * the current property value. - * If the property is not an array, or if the property does not yet exist, - * it is first set to the empty array. - * Equivalent numbers of different types (e.g. 3L and 3.0) are - * considered equal when checking if a value is missing. - * NaN is equal to NaN, and the null value is equal to the null value. - * If the input contains multiple equivalent values, only the first will - * be considered. - * The corresponding transform result will be the null value. - * - * Generated from protobuf field .google.datastore.v1.ArrayValue append_missing_elements = 6; - * @param \Google\Cloud\Datastore\V1\ArrayValue $var - * @return $this - */ - public function setAppendMissingElements($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ArrayValue::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Removes all of the given elements from the array in the property. - * If the property is not an array, or if the property does not yet exist, - * it is set to the empty array. - * Equivalent numbers of different types (e.g. 3L and 3.0) are - * considered equal when deciding whether an element should be removed. - * NaN is equal to NaN, and the null value is equal to the null value. - * This will remove all equivalent values if there are duplicates. - * The corresponding transform result will be the null value. - * - * Generated from protobuf field .google.datastore.v1.ArrayValue remove_all_from_array = 7; - * @return \Google\Cloud\Datastore\V1\ArrayValue|null - */ - public function getRemoveAllFromArray() - { - return $this->readOneof(7); - } - - public function hasRemoveAllFromArray() - { - return $this->hasOneof(7); - } - - /** - * Removes all of the given elements from the array in the property. - * If the property is not an array, or if the property does not yet exist, - * it is set to the empty array. - * Equivalent numbers of different types (e.g. 3L and 3.0) are - * considered equal when deciding whether an element should be removed. - * NaN is equal to NaN, and the null value is equal to the null value. - * This will remove all equivalent values if there are duplicates. - * The corresponding transform result will be the null value. - * - * Generated from protobuf field .google.datastore.v1.ArrayValue remove_all_from_array = 7; - * @param \Google\Cloud\Datastore\V1\ArrayValue $var - * @return $this - */ - public function setRemoveAllFromArray($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ArrayValue::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getTransformType() - { - return $this->whichOneof("transform_type"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyTransform/ServerValue.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyTransform/ServerValue.php deleted file mode 100644 index 6162f10f4c4d..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/PropertyTransform/ServerValue.php +++ /dev/null @@ -1,59 +0,0 @@ -google.datastore.v1.PropertyTransform.ServerValue - */ -class ServerValue -{ - /** - * Unspecified. This value must not be used. - * - * Generated from protobuf enum SERVER_VALUE_UNSPECIFIED = 0; - */ - const SERVER_VALUE_UNSPECIFIED = 0; - /** - * The time at which the server processed the request, with millisecond - * precision. If used on multiple properties (same or different entities) - * in a transaction, all the properties will get the same server timestamp. - * - * Generated from protobuf enum REQUEST_TIME = 1; - */ - const REQUEST_TIME = 1; - - private static $valueToName = [ - self::SERVER_VALUE_UNSPECIFIED => 'SERVER_VALUE_UNSPECIFIED', - self::REQUEST_TIME => 'REQUEST_TIME', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ServerValue::class, \Google\Cloud\Datastore\V1\PropertyTransform_ServerValue::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Query.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Query.php deleted file mode 100644 index 5d1def8847b7..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Query.php +++ /dev/null @@ -1,516 +0,0 @@ -google.datastore.v1.Query - */ -class Query extends \Google\Protobuf\Internal\Message -{ - /** - * The projection to return. Defaults to returning all properties. - * - * Generated from protobuf field repeated .google.datastore.v1.Projection projection = 2; - */ - private $projection; - /** - * The kinds to query (if empty, returns entities of all kinds). - * Currently at most 1 kind may be specified. - * - * Generated from protobuf field repeated .google.datastore.v1.KindExpression kind = 3; - */ - private $kind; - /** - * The filter to apply. - * - * Generated from protobuf field .google.datastore.v1.Filter filter = 4; - */ - protected $filter = null; - /** - * The order to apply to the query results (if empty, order is unspecified). - * - * Generated from protobuf field repeated .google.datastore.v1.PropertyOrder order = 5; - */ - private $order; - /** - * The properties to make distinct. The query results will contain the first - * result for each distinct combination of values for the given properties - * (if empty, all results are returned). - * Requires: - * * If `order` is specified, the set of distinct on properties must appear - * before the non-distinct on properties in `order`. - * - * Generated from protobuf field repeated .google.datastore.v1.PropertyReference distinct_on = 6; - */ - private $distinct_on; - /** - * A starting point for the query results. Query cursors are - * returned in query result batches and - * [can only be used to continue the same - * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). - * - * Generated from protobuf field bytes start_cursor = 7; - */ - protected $start_cursor = ''; - /** - * An ending point for the query results. Query cursors are - * returned in query result batches and - * [can only be used to limit the same - * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). - * - * Generated from protobuf field bytes end_cursor = 8; - */ - protected $end_cursor = ''; - /** - * The number of results to skip. Applies before limit, but after all other - * constraints. Optional. Must be >= 0 if specified. - * - * Generated from protobuf field int32 offset = 10; - */ - protected $offset = 0; - /** - * The maximum number of results to return. Applies after all other - * constraints. Optional. - * Unspecified is interpreted as no limit. - * Must be >= 0 if specified. - * - * Generated from protobuf field .google.protobuf.Int32Value limit = 12; - */ - protected $limit = null; - /** - * Optional. A potential Nearest Neighbors Search. - * Applies after all other filters and ordering. - * Finds the closest vector embeddings to the given query vector. - * - * Generated from protobuf field .google.datastore.v1.FindNearest find_nearest = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $find_nearest = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Datastore\V1\Projection>|\Google\Protobuf\Internal\RepeatedField $projection - * The projection to return. Defaults to returning all properties. - * @type array<\Google\Cloud\Datastore\V1\KindExpression>|\Google\Protobuf\Internal\RepeatedField $kind - * The kinds to query (if empty, returns entities of all kinds). - * Currently at most 1 kind may be specified. - * @type \Google\Cloud\Datastore\V1\Filter $filter - * The filter to apply. - * @type array<\Google\Cloud\Datastore\V1\PropertyOrder>|\Google\Protobuf\Internal\RepeatedField $order - * The order to apply to the query results (if empty, order is unspecified). - * @type array<\Google\Cloud\Datastore\V1\PropertyReference>|\Google\Protobuf\Internal\RepeatedField $distinct_on - * The properties to make distinct. The query results will contain the first - * result for each distinct combination of values for the given properties - * (if empty, all results are returned). - * Requires: - * * If `order` is specified, the set of distinct on properties must appear - * before the non-distinct on properties in `order`. - * @type string $start_cursor - * A starting point for the query results. Query cursors are - * returned in query result batches and - * [can only be used to continue the same - * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). - * @type string $end_cursor - * An ending point for the query results. Query cursors are - * returned in query result batches and - * [can only be used to limit the same - * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). - * @type int $offset - * The number of results to skip. Applies before limit, but after all other - * constraints. Optional. Must be >= 0 if specified. - * @type \Google\Protobuf\Int32Value $limit - * The maximum number of results to return. Applies after all other - * constraints. Optional. - * Unspecified is interpreted as no limit. - * Must be >= 0 if specified. - * @type \Google\Cloud\Datastore\V1\FindNearest $find_nearest - * Optional. A potential Nearest Neighbors Search. - * Applies after all other filters and ordering. - * Finds the closest vector embeddings to the given query vector. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * The projection to return. Defaults to returning all properties. - * - * Generated from protobuf field repeated .google.datastore.v1.Projection projection = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProjection() - { - return $this->projection; - } - - /** - * The projection to return. Defaults to returning all properties. - * - * Generated from protobuf field repeated .google.datastore.v1.Projection projection = 2; - * @param array<\Google\Cloud\Datastore\V1\Projection>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProjection($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Projection::class); - $this->projection = $arr; - - return $this; - } - - /** - * The kinds to query (if empty, returns entities of all kinds). - * Currently at most 1 kind may be specified. - * - * Generated from protobuf field repeated .google.datastore.v1.KindExpression kind = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKind() - { - return $this->kind; - } - - /** - * The kinds to query (if empty, returns entities of all kinds). - * Currently at most 1 kind may be specified. - * - * Generated from protobuf field repeated .google.datastore.v1.KindExpression kind = 3; - * @param array<\Google\Cloud\Datastore\V1\KindExpression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKind($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\KindExpression::class); - $this->kind = $arr; - - return $this; - } - - /** - * The filter to apply. - * - * Generated from protobuf field .google.datastore.v1.Filter filter = 4; - * @return \Google\Cloud\Datastore\V1\Filter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * The filter to apply. - * - * Generated from protobuf field .google.datastore.v1.Filter filter = 4; - * @param \Google\Cloud\Datastore\V1\Filter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Filter::class); - $this->filter = $var; - - return $this; - } - - /** - * The order to apply to the query results (if empty, order is unspecified). - * - * Generated from protobuf field repeated .google.datastore.v1.PropertyOrder order = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOrder() - { - return $this->order; - } - - /** - * The order to apply to the query results (if empty, order is unspecified). - * - * Generated from protobuf field repeated .google.datastore.v1.PropertyOrder order = 5; - * @param array<\Google\Cloud\Datastore\V1\PropertyOrder>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOrder($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\PropertyOrder::class); - $this->order = $arr; - - return $this; - } - - /** - * The properties to make distinct. The query results will contain the first - * result for each distinct combination of values for the given properties - * (if empty, all results are returned). - * Requires: - * * If `order` is specified, the set of distinct on properties must appear - * before the non-distinct on properties in `order`. - * - * Generated from protobuf field repeated .google.datastore.v1.PropertyReference distinct_on = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDistinctOn() - { - return $this->distinct_on; - } - - /** - * The properties to make distinct. The query results will contain the first - * result for each distinct combination of values for the given properties - * (if empty, all results are returned). - * Requires: - * * If `order` is specified, the set of distinct on properties must appear - * before the non-distinct on properties in `order`. - * - * Generated from protobuf field repeated .google.datastore.v1.PropertyReference distinct_on = 6; - * @param array<\Google\Cloud\Datastore\V1\PropertyReference>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDistinctOn($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\PropertyReference::class); - $this->distinct_on = $arr; - - return $this; - } - - /** - * A starting point for the query results. Query cursors are - * returned in query result batches and - * [can only be used to continue the same - * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). - * - * Generated from protobuf field bytes start_cursor = 7; - * @return string - */ - public function getStartCursor() - { - return $this->start_cursor; - } - - /** - * A starting point for the query results. Query cursors are - * returned in query result batches and - * [can only be used to continue the same - * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). - * - * Generated from protobuf field bytes start_cursor = 7; - * @param string $var - * @return $this - */ - public function setStartCursor($var) - { - GPBUtil::checkString($var, False); - $this->start_cursor = $var; - - return $this; - } - - /** - * An ending point for the query results. Query cursors are - * returned in query result batches and - * [can only be used to limit the same - * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). - * - * Generated from protobuf field bytes end_cursor = 8; - * @return string - */ - public function getEndCursor() - { - return $this->end_cursor; - } - - /** - * An ending point for the query results. Query cursors are - * returned in query result batches and - * [can only be used to limit the same - * query](https://cloud.google.com/datastore/docs/concepts/queries#cursors_limits_and_offsets). - * - * Generated from protobuf field bytes end_cursor = 8; - * @param string $var - * @return $this - */ - public function setEndCursor($var) - { - GPBUtil::checkString($var, False); - $this->end_cursor = $var; - - return $this; - } - - /** - * The number of results to skip. Applies before limit, but after all other - * constraints. Optional. Must be >= 0 if specified. - * - * Generated from protobuf field int32 offset = 10; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * The number of results to skip. Applies before limit, but after all other - * constraints. Optional. Must be >= 0 if specified. - * - * Generated from protobuf field int32 offset = 10; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt32($var); - $this->offset = $var; - - return $this; - } - - /** - * The maximum number of results to return. Applies after all other - * constraints. Optional. - * Unspecified is interpreted as no limit. - * Must be >= 0 if specified. - * - * Generated from protobuf field .google.protobuf.Int32Value limit = 12; - * @return \Google\Protobuf\Int32Value|null - */ - public function getLimit() - { - return $this->limit; - } - - public function hasLimit() - { - return isset($this->limit); - } - - public function clearLimit() - { - unset($this->limit); - } - - /** - * Returns the unboxed value from getLimit() - - * The maximum number of results to return. Applies after all other - * constraints. Optional. - * Unspecified is interpreted as no limit. - * Must be >= 0 if specified. - * - * Generated from protobuf field .google.protobuf.Int32Value limit = 12; - * @return int|null - */ - public function getLimitUnwrapped() - { - return $this->readWrapperValue("limit"); - } - - /** - * The maximum number of results to return. Applies after all other - * constraints. Optional. - * Unspecified is interpreted as no limit. - * Must be >= 0 if specified. - * - * Generated from protobuf field .google.protobuf.Int32Value limit = 12; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->limit = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * The maximum number of results to return. Applies after all other - * constraints. Optional. - * Unspecified is interpreted as no limit. - * Must be >= 0 if specified. - * - * Generated from protobuf field .google.protobuf.Int32Value limit = 12; - * @param int|null $var - * @return $this - */ - public function setLimitUnwrapped($var) - { - $this->writeWrapperValue("limit", $var); - return $this;} - - /** - * Optional. A potential Nearest Neighbors Search. - * Applies after all other filters and ordering. - * Finds the closest vector embeddings to the given query vector. - * - * Generated from protobuf field .google.datastore.v1.FindNearest find_nearest = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Datastore\V1\FindNearest|null - */ - public function getFindNearest() - { - return $this->find_nearest; - } - - public function hasFindNearest() - { - return isset($this->find_nearest); - } - - public function clearFindNearest() - { - unset($this->find_nearest); - } - - /** - * Optional. A potential Nearest Neighbors Search. - * Applies after all other filters and ordering. - * Finds the closest vector embeddings to the given query vector. - * - * Generated from protobuf field .google.datastore.v1.FindNearest find_nearest = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Datastore\V1\FindNearest $var - * @return $this - */ - public function setFindNearest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\FindNearest::class); - $this->find_nearest = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/QueryResultBatch.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/QueryResultBatch.php deleted file mode 100644 index 04cc35cb4ad8..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/QueryResultBatch.php +++ /dev/null @@ -1,379 +0,0 @@ -google.datastore.v1.QueryResultBatch - */ -class QueryResultBatch extends \Google\Protobuf\Internal\Message -{ - /** - * The number of results skipped, typically because of an offset. - * - * Generated from protobuf field int32 skipped_results = 6; - */ - protected $skipped_results = 0; - /** - * A cursor that points to the position after the last skipped result. - * Will be set when `skipped_results` != 0. - * - * Generated from protobuf field bytes skipped_cursor = 3; - */ - protected $skipped_cursor = ''; - /** - * The result type for every entity in `entity_results`. - * - * Generated from protobuf field .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - */ - protected $entity_result_type = 0; - /** - * The results for this batch. - * - * Generated from protobuf field repeated .google.datastore.v1.EntityResult entity_results = 2; - */ - private $entity_results; - /** - * A cursor that points to the position after the last result in the batch. - * - * Generated from protobuf field bytes end_cursor = 4; - */ - protected $end_cursor = ''; - /** - * The state of the query after the current batch. - * - * Generated from protobuf field .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - */ - protected $more_results = 0; - /** - * The version number of the snapshot this batch was returned from. - * This applies to the range of results from the query's `start_cursor` (or - * the beginning of the query if no cursor was given) to this batch's - * `end_cursor` (not the query's `end_cursor`). - * In a single transaction, subsequent query result batches for the same query - * can have a greater snapshot version number. Each batch's snapshot version - * is valid for all preceding batches. - * The value will be zero for eventually consistent queries. - * - * Generated from protobuf field int64 snapshot_version = 7; - */ - protected $snapshot_version = 0; - /** - * Read timestamp this batch was returned from. - * This applies to the range of results from the query's `start_cursor` (or - * the beginning of the query if no cursor was given) to this batch's - * `end_cursor` (not the query's `end_cursor`). - * In a single transaction, subsequent query result batches for the same query - * can have a greater timestamp. Each batch's read timestamp - * is valid for all preceding batches. - * This value will not be set for eventually consistent queries in Cloud - * Datastore. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 8; - */ - protected $read_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $skipped_results - * The number of results skipped, typically because of an offset. - * @type string $skipped_cursor - * A cursor that points to the position after the last skipped result. - * Will be set when `skipped_results` != 0. - * @type int $entity_result_type - * The result type for every entity in `entity_results`. - * @type array<\Google\Cloud\Datastore\V1\EntityResult>|\Google\Protobuf\Internal\RepeatedField $entity_results - * The results for this batch. - * @type string $end_cursor - * A cursor that points to the position after the last result in the batch. - * @type int $more_results - * The state of the query after the current batch. - * @type int|string $snapshot_version - * The version number of the snapshot this batch was returned from. - * This applies to the range of results from the query's `start_cursor` (or - * the beginning of the query if no cursor was given) to this batch's - * `end_cursor` (not the query's `end_cursor`). - * In a single transaction, subsequent query result batches for the same query - * can have a greater snapshot version number. Each batch's snapshot version - * is valid for all preceding batches. - * The value will be zero for eventually consistent queries. - * @type \Google\Protobuf\Timestamp $read_time - * Read timestamp this batch was returned from. - * This applies to the range of results from the query's `start_cursor` (or - * the beginning of the query if no cursor was given) to this batch's - * `end_cursor` (not the query's `end_cursor`). - * In a single transaction, subsequent query result batches for the same query - * can have a greater timestamp. Each batch's read timestamp - * is valid for all preceding batches. - * This value will not be set for eventually consistent queries in Cloud - * Datastore. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Query::initOnce(); - parent::__construct($data); - } - - /** - * The number of results skipped, typically because of an offset. - * - * Generated from protobuf field int32 skipped_results = 6; - * @return int - */ - public function getSkippedResults() - { - return $this->skipped_results; - } - - /** - * The number of results skipped, typically because of an offset. - * - * Generated from protobuf field int32 skipped_results = 6; - * @param int $var - * @return $this - */ - public function setSkippedResults($var) - { - GPBUtil::checkInt32($var); - $this->skipped_results = $var; - - return $this; - } - - /** - * A cursor that points to the position after the last skipped result. - * Will be set when `skipped_results` != 0. - * - * Generated from protobuf field bytes skipped_cursor = 3; - * @return string - */ - public function getSkippedCursor() - { - return $this->skipped_cursor; - } - - /** - * A cursor that points to the position after the last skipped result. - * Will be set when `skipped_results` != 0. - * - * Generated from protobuf field bytes skipped_cursor = 3; - * @param string $var - * @return $this - */ - public function setSkippedCursor($var) - { - GPBUtil::checkString($var, False); - $this->skipped_cursor = $var; - - return $this; - } - - /** - * The result type for every entity in `entity_results`. - * - * Generated from protobuf field .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * @return int - */ - public function getEntityResultType() - { - return $this->entity_result_type; - } - - /** - * The result type for every entity in `entity_results`. - * - * Generated from protobuf field .google.datastore.v1.EntityResult.ResultType entity_result_type = 1; - * @param int $var - * @return $this - */ - public function setEntityResultType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\EntityResult\ResultType::class); - $this->entity_result_type = $var; - - return $this; - } - - /** - * The results for this batch. - * - * Generated from protobuf field repeated .google.datastore.v1.EntityResult entity_results = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntityResults() - { - return $this->entity_results; - } - - /** - * The results for this batch. - * - * Generated from protobuf field repeated .google.datastore.v1.EntityResult entity_results = 2; - * @param array<\Google\Cloud\Datastore\V1\EntityResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntityResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\EntityResult::class); - $this->entity_results = $arr; - - return $this; - } - - /** - * A cursor that points to the position after the last result in the batch. - * - * Generated from protobuf field bytes end_cursor = 4; - * @return string - */ - public function getEndCursor() - { - return $this->end_cursor; - } - - /** - * A cursor that points to the position after the last result in the batch. - * - * Generated from protobuf field bytes end_cursor = 4; - * @param string $var - * @return $this - */ - public function setEndCursor($var) - { - GPBUtil::checkString($var, False); - $this->end_cursor = $var; - - return $this; - } - - /** - * The state of the query after the current batch. - * - * Generated from protobuf field .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * @return int - */ - public function getMoreResults() - { - return $this->more_results; - } - - /** - * The state of the query after the current batch. - * - * Generated from protobuf field .google.datastore.v1.QueryResultBatch.MoreResultsType more_results = 5; - * @param int $var - * @return $this - */ - public function setMoreResults($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\QueryResultBatch\MoreResultsType::class); - $this->more_results = $var; - - return $this; - } - - /** - * The version number of the snapshot this batch was returned from. - * This applies to the range of results from the query's `start_cursor` (or - * the beginning of the query if no cursor was given) to this batch's - * `end_cursor` (not the query's `end_cursor`). - * In a single transaction, subsequent query result batches for the same query - * can have a greater snapshot version number. Each batch's snapshot version - * is valid for all preceding batches. - * The value will be zero for eventually consistent queries. - * - * Generated from protobuf field int64 snapshot_version = 7; - * @return int|string - */ - public function getSnapshotVersion() - { - return $this->snapshot_version; - } - - /** - * The version number of the snapshot this batch was returned from. - * This applies to the range of results from the query's `start_cursor` (or - * the beginning of the query if no cursor was given) to this batch's - * `end_cursor` (not the query's `end_cursor`). - * In a single transaction, subsequent query result batches for the same query - * can have a greater snapshot version number. Each batch's snapshot version - * is valid for all preceding batches. - * The value will be zero for eventually consistent queries. - * - * Generated from protobuf field int64 snapshot_version = 7; - * @param int|string $var - * @return $this - */ - public function setSnapshotVersion($var) - { - GPBUtil::checkInt64($var); - $this->snapshot_version = $var; - - return $this; - } - - /** - * Read timestamp this batch was returned from. - * This applies to the range of results from the query's `start_cursor` (or - * the beginning of the query if no cursor was given) to this batch's - * `end_cursor` (not the query's `end_cursor`). - * In a single transaction, subsequent query result batches for the same query - * can have a greater timestamp. Each batch's read timestamp - * is valid for all preceding batches. - * This value will not be set for eventually consistent queries in Cloud - * Datastore. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReadTime() - { - return $this->read_time; - } - - public function hasReadTime() - { - return isset($this->read_time); - } - - public function clearReadTime() - { - unset($this->read_time); - } - - /** - * Read timestamp this batch was returned from. - * This applies to the range of results from the query's `start_cursor` (or - * the beginning of the query if no cursor was given) to this batch's - * `end_cursor` (not the query's `end_cursor`). - * In a single transaction, subsequent query result batches for the same query - * can have a greater timestamp. Each batch's read timestamp - * is valid for all preceding batches. - * This value will not be set for eventually consistent queries in Cloud - * Datastore. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->read_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/QueryResultBatch/MoreResultsType.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/QueryResultBatch/MoreResultsType.php deleted file mode 100644 index 6f4a9d2dd046..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/QueryResultBatch/MoreResultsType.php +++ /dev/null @@ -1,79 +0,0 @@ -google.datastore.v1.QueryResultBatch.MoreResultsType - */ -class MoreResultsType -{ - /** - * Unspecified. This value is never used. - * - * Generated from protobuf enum MORE_RESULTS_TYPE_UNSPECIFIED = 0; - */ - const MORE_RESULTS_TYPE_UNSPECIFIED = 0; - /** - * There may be additional batches to fetch from this query. - * - * Generated from protobuf enum NOT_FINISHED = 1; - */ - const NOT_FINISHED = 1; - /** - * The query is finished, but there may be more results after the limit. - * - * Generated from protobuf enum MORE_RESULTS_AFTER_LIMIT = 2; - */ - const MORE_RESULTS_AFTER_LIMIT = 2; - /** - * The query is finished, but there may be more results after the end - * cursor. - * - * Generated from protobuf enum MORE_RESULTS_AFTER_CURSOR = 4; - */ - const MORE_RESULTS_AFTER_CURSOR = 4; - /** - * The query is finished, and there are no more results. - * - * Generated from protobuf enum NO_MORE_RESULTS = 3; - */ - const NO_MORE_RESULTS = 3; - - private static $valueToName = [ - self::MORE_RESULTS_TYPE_UNSPECIFIED => 'MORE_RESULTS_TYPE_UNSPECIFIED', - self::NOT_FINISHED => 'NOT_FINISHED', - self::MORE_RESULTS_AFTER_LIMIT => 'MORE_RESULTS_AFTER_LIMIT', - self::MORE_RESULTS_AFTER_CURSOR => 'MORE_RESULTS_AFTER_CURSOR', - self::NO_MORE_RESULTS => 'NO_MORE_RESULTS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MoreResultsType::class, \Google\Cloud\Datastore\V1\QueryResultBatch_MoreResultsType::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReadOptions.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReadOptions.php deleted file mode 100644 index 8de51a5f93b4..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReadOptions.php +++ /dev/null @@ -1,207 +0,0 @@ -google.datastore.v1.ReadOptions - */ -class ReadOptions extends \Google\Protobuf\Internal\Message -{ - protected $consistency_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $read_consistency - * The non-transactional read consistency to use. - * @type string $transaction - * The identifier of the transaction in which to read. A - * transaction identifier is returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * @type \Google\Cloud\Datastore\V1\TransactionOptions $new_transaction - * Options for beginning a new transaction for this request. - * The new transaction identifier will be returned in the corresponding - * response as either - * [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] - * or - * [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction]. - * @type \Google\Protobuf\Timestamp $read_time - * Reads entities as they were at the given time. This value is only - * supported for Cloud Firestore in Datastore mode. - * This must be a microsecond precision timestamp within the past one hour, - * or if Point-in-Time Recovery is enabled, can additionally be a whole - * minute timestamp within the past 7 days. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * The non-transactional read consistency to use. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * @return int - */ - public function getReadConsistency() - { - return $this->readOneof(1); - } - - public function hasReadConsistency() - { - return $this->hasOneof(1); - } - - /** - * The non-transactional read consistency to use. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions.ReadConsistency read_consistency = 1; - * @param int $var - * @return $this - */ - public function setReadConsistency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\V1\ReadOptions\ReadConsistency::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The identifier of the transaction in which to read. A - * transaction identifier is returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * - * Generated from protobuf field bytes transaction = 2; - * @return string - */ - public function getTransaction() - { - return $this->readOneof(2); - } - - public function hasTransaction() - { - return $this->hasOneof(2); - } - - /** - * The identifier of the transaction in which to read. A - * transaction identifier is returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * - * Generated from protobuf field bytes transaction = 2; - * @param string $var - * @return $this - */ - public function setTransaction($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Options for beginning a new transaction for this request. - * The new transaction identifier will be returned in the corresponding - * response as either - * [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] - * or - * [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction]. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions new_transaction = 3; - * @return \Google\Cloud\Datastore\V1\TransactionOptions|null - */ - public function getNewTransaction() - { - return $this->readOneof(3); - } - - public function hasNewTransaction() - { - return $this->hasOneof(3); - } - - /** - * Options for beginning a new transaction for this request. - * The new transaction identifier will be returned in the corresponding - * response as either - * [LookupResponse.transaction][google.datastore.v1.LookupResponse.transaction] - * or - * [RunQueryResponse.transaction][google.datastore.v1.RunQueryResponse.transaction]. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions new_transaction = 3; - * @param \Google\Cloud\Datastore\V1\TransactionOptions $var - * @return $this - */ - public function setNewTransaction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\TransactionOptions::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Reads entities as they were at the given time. This value is only - * supported for Cloud Firestore in Datastore mode. - * This must be a microsecond precision timestamp within the past one hour, - * or if Point-in-Time Recovery is enabled, can additionally be a whole - * minute timestamp within the past 7 days. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReadTime() - { - return $this->readOneof(4); - } - - public function hasReadTime() - { - return $this->hasOneof(4); - } - - /** - * Reads entities as they were at the given time. This value is only - * supported for Cloud Firestore in Datastore mode. - * This must be a microsecond precision timestamp within the past one hour, - * or if Point-in-Time Recovery is enabled, can additionally be a whole - * minute timestamp within the past 7 days. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getConsistencyType() - { - return $this->whichOneof("consistency_type"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReadOptions/ReadConsistency.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReadOptions/ReadConsistency.php deleted file mode 100644 index 631a403de9f1..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReadOptions/ReadConsistency.php +++ /dev/null @@ -1,64 +0,0 @@ -google.datastore.v1.ReadOptions.ReadConsistency - */ -class ReadConsistency -{ - /** - * Unspecified. This value must not be used. - * - * Generated from protobuf enum READ_CONSISTENCY_UNSPECIFIED = 0; - */ - const READ_CONSISTENCY_UNSPECIFIED = 0; - /** - * Strong consistency. - * - * Generated from protobuf enum STRONG = 1; - */ - const STRONG = 1; - /** - * Eventual consistency. - * - * Generated from protobuf enum EVENTUAL = 2; - */ - const EVENTUAL = 2; - - private static $valueToName = [ - self::READ_CONSISTENCY_UNSPECIFIED => 'READ_CONSISTENCY_UNSPECIFIED', - self::STRONG => 'STRONG', - self::EVENTUAL => 'EVENTUAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReadConsistency::class, \Google\Cloud\Datastore\V1\ReadOptions_ReadConsistency::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReserveIdsRequest.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReserveIdsRequest.php deleted file mode 100644 index 756b9acee543..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReserveIdsRequest.php +++ /dev/null @@ -1,164 +0,0 @@ -google.datastore.v1.ReserveIdsRequest - */ -class ReserveIdsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - */ - protected $database_id = ''; - /** - * Required. A list of keys with complete key paths whose numeric IDs should - * not be auto-allocated. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $keys; - - /** - * @param string $projectId Required. The ID of the project against which to make the request. - * @param \Google\Cloud\Datastore\V1\Key[] $keys Required. A list of keys with complete key paths whose numeric IDs should - * not be auto-allocated. - * - * @return \Google\Cloud\Datastore\V1\ReserveIdsRequest - * - * @experimental - */ - public static function build(string $projectId, array $keys): self - { - return (new self()) - ->setProjectId($projectId) - ->setKeys($keys); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the project against which to make the request. - * @type string $database_id - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type array<\Google\Cloud\Datastore\V1\Key>|\Google\Protobuf\Internal\RepeatedField $keys - * Required. A list of keys with complete key paths whose numeric IDs should - * not be auto-allocated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Required. A list of keys with complete key paths whose numeric IDs should - * not be auto-allocated. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKeys() - { - return $this->keys; - } - - /** - * Required. A list of keys with complete key paths whose numeric IDs should - * not be auto-allocated. - * - * Generated from protobuf field repeated .google.datastore.v1.Key keys = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Datastore\V1\Key>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\V1\Key::class); - $this->keys = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReserveIdsResponse.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReserveIdsResponse.php deleted file mode 100644 index d890d0cbb735..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/ReserveIdsResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.datastore.v1.ReserveIdsResponse - */ -class ReserveIdsResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RollbackRequest.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RollbackRequest.php deleted file mode 100644 index 8e823c1778c8..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RollbackRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.datastore.v1.RollbackRequest - */ -class RollbackRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - */ - protected $database_id = ''; - /** - * Required. The transaction identifier, returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * - * Generated from protobuf field bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $transaction = ''; - - /** - * @param string $projectId Required. The ID of the project against which to make the request. - * @param string $transaction Required. The transaction identifier, returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * - * @return \Google\Cloud\Datastore\V1\RollbackRequest - * - * @experimental - */ - public static function build(string $projectId, string $transaction): self - { - return (new self()) - ->setProjectId($projectId) - ->setTransaction($transaction); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the project against which to make the request. - * @type string $database_id - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type string $transaction - * Required. The transaction identifier, returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Required. The transaction identifier, returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * - * Generated from protobuf field bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTransaction() - { - return $this->transaction; - } - - /** - * Required. The transaction identifier, returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * - * Generated from protobuf field bytes transaction = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTransaction($var) - { - GPBUtil::checkString($var, False); - $this->transaction = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RollbackResponse.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RollbackResponse.php deleted file mode 100644 index 4a043aebfbd5..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RollbackResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -google.datastore.v1.RollbackResponse - */ -class RollbackResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunAggregationQueryRequest.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunAggregationQueryRequest.php deleted file mode 100644 index 85f561b5e40b..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunAggregationQueryRequest.php +++ /dev/null @@ -1,333 +0,0 @@ -google.datastore.v1.RunAggregationQueryRequest - */ -class RunAggregationQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - */ - protected $database_id = ''; - /** - * Entities are partitioned into subsets, identified by a partition ID. - * Queries are scoped to a single partition. - * This partition ID is normalized with the standard default context - * partition ID. - * - * Generated from protobuf field .google.datastore.v1.PartitionId partition_id = 2; - */ - protected $partition_id = null; - /** - * The options for this query. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions read_options = 1; - */ - protected $read_options = null; - /** - * Optional. Explain options for the query. If set, additional query - * statistics will be returned. If not, only query results will be returned. - * - * Generated from protobuf field .google.datastore.v1.ExplainOptions explain_options = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $explain_options = null; - protected $query_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the project against which to make the request. - * @type string $database_id - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type \Google\Cloud\Datastore\V1\PartitionId $partition_id - * Entities are partitioned into subsets, identified by a partition ID. - * Queries are scoped to a single partition. - * This partition ID is normalized with the standard default context - * partition ID. - * @type \Google\Cloud\Datastore\V1\ReadOptions $read_options - * The options for this query. - * @type \Google\Cloud\Datastore\V1\AggregationQuery $aggregation_query - * The query to run. - * @type \Google\Cloud\Datastore\V1\GqlQuery $gql_query - * The GQL query to run. This query must be an aggregation query. - * @type \Google\Cloud\Datastore\V1\ExplainOptions $explain_options - * Optional. Explain options for the query. If set, additional query - * statistics will be returned. If not, only query results will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Entities are partitioned into subsets, identified by a partition ID. - * Queries are scoped to a single partition. - * This partition ID is normalized with the standard default context - * partition ID. - * - * Generated from protobuf field .google.datastore.v1.PartitionId partition_id = 2; - * @return \Google\Cloud\Datastore\V1\PartitionId|null - */ - public function getPartitionId() - { - return $this->partition_id; - } - - public function hasPartitionId() - { - return isset($this->partition_id); - } - - public function clearPartitionId() - { - unset($this->partition_id); - } - - /** - * Entities are partitioned into subsets, identified by a partition ID. - * Queries are scoped to a single partition. - * This partition ID is normalized with the standard default context - * partition ID. - * - * Generated from protobuf field .google.datastore.v1.PartitionId partition_id = 2; - * @param \Google\Cloud\Datastore\V1\PartitionId $var - * @return $this - */ - public function setPartitionId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PartitionId::class); - $this->partition_id = $var; - - return $this; - } - - /** - * The options for this query. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions read_options = 1; - * @return \Google\Cloud\Datastore\V1\ReadOptions|null - */ - public function getReadOptions() - { - return $this->read_options; - } - - public function hasReadOptions() - { - return isset($this->read_options); - } - - public function clearReadOptions() - { - unset($this->read_options); - } - - /** - * The options for this query. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions read_options = 1; - * @param \Google\Cloud\Datastore\V1\ReadOptions $var - * @return $this - */ - public function setReadOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ReadOptions::class); - $this->read_options = $var; - - return $this; - } - - /** - * The query to run. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery aggregation_query = 3; - * @return \Google\Cloud\Datastore\V1\AggregationQuery|null - */ - public function getAggregationQuery() - { - return $this->readOneof(3); - } - - public function hasAggregationQuery() - { - return $this->hasOneof(3); - } - - /** - * The query to run. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery aggregation_query = 3; - * @param \Google\Cloud\Datastore\V1\AggregationQuery $var - * @return $this - */ - public function setAggregationQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\AggregationQuery::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The GQL query to run. This query must be an aggregation query. - * - * Generated from protobuf field .google.datastore.v1.GqlQuery gql_query = 7; - * @return \Google\Cloud\Datastore\V1\GqlQuery|null - */ - public function getGqlQuery() - { - return $this->readOneof(7); - } - - public function hasGqlQuery() - { - return $this->hasOneof(7); - } - - /** - * The GQL query to run. This query must be an aggregation query. - * - * Generated from protobuf field .google.datastore.v1.GqlQuery gql_query = 7; - * @param \Google\Cloud\Datastore\V1\GqlQuery $var - * @return $this - */ - public function setGqlQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\GqlQuery::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Optional. Explain options for the query. If set, additional query - * statistics will be returned. If not, only query results will be returned. - * - * Generated from protobuf field .google.datastore.v1.ExplainOptions explain_options = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Datastore\V1\ExplainOptions|null - */ - public function getExplainOptions() - { - return $this->explain_options; - } - - public function hasExplainOptions() - { - return isset($this->explain_options); - } - - public function clearExplainOptions() - { - unset($this->explain_options); - } - - /** - * Optional. Explain options for the query. If set, additional query - * statistics will be returned. If not, only query results will be returned. - * - * Generated from protobuf field .google.datastore.v1.ExplainOptions explain_options = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Datastore\V1\ExplainOptions $var - * @return $this - */ - public function setExplainOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ExplainOptions::class); - $this->explain_options = $var; - - return $this; - } - - /** - * @return string - */ - public function getQueryType() - { - return $this->whichOneof("query_type"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunAggregationQueryResponse.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunAggregationQueryResponse.php deleted file mode 100644 index 0ebff5e68fa2..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunAggregationQueryResponse.php +++ /dev/null @@ -1,228 +0,0 @@ -google.datastore.v1.RunAggregationQueryResponse - */ -class RunAggregationQueryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A batch of aggregation results. Always present. - * - * Generated from protobuf field .google.datastore.v1.AggregationResultBatch batch = 1; - */ - protected $batch = null; - /** - * The parsed form of the `GqlQuery` from the request, if it was set. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery query = 2; - */ - protected $query = null; - /** - * The identifier of the transaction that was started as part of this - * RunAggregationQuery request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [RunAggregationQueryRequest.read_options][google.datastore.v1.RunAggregationQueryRequest.read_options]. - * - * Generated from protobuf field bytes transaction = 5; - */ - protected $transaction = ''; - /** - * Query explain metrics. This is only present when the - * [RunAggregationQueryRequest.explain_options][google.datastore.v1.RunAggregationQueryRequest.explain_options] - * is provided, and it is sent only once with the last response in the stream. - * - * Generated from protobuf field .google.datastore.v1.ExplainMetrics explain_metrics = 9; - */ - protected $explain_metrics = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\AggregationResultBatch $batch - * A batch of aggregation results. Always present. - * @type \Google\Cloud\Datastore\V1\AggregationQuery $query - * The parsed form of the `GqlQuery` from the request, if it was set. - * @type string $transaction - * The identifier of the transaction that was started as part of this - * RunAggregationQuery request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [RunAggregationQueryRequest.read_options][google.datastore.v1.RunAggregationQueryRequest.read_options]. - * @type \Google\Cloud\Datastore\V1\ExplainMetrics $explain_metrics - * Query explain metrics. This is only present when the - * [RunAggregationQueryRequest.explain_options][google.datastore.v1.RunAggregationQueryRequest.explain_options] - * is provided, and it is sent only once with the last response in the stream. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * A batch of aggregation results. Always present. - * - * Generated from protobuf field .google.datastore.v1.AggregationResultBatch batch = 1; - * @return \Google\Cloud\Datastore\V1\AggregationResultBatch|null - */ - public function getBatch() - { - return $this->batch; - } - - public function hasBatch() - { - return isset($this->batch); - } - - public function clearBatch() - { - unset($this->batch); - } - - /** - * A batch of aggregation results. Always present. - * - * Generated from protobuf field .google.datastore.v1.AggregationResultBatch batch = 1; - * @param \Google\Cloud\Datastore\V1\AggregationResultBatch $var - * @return $this - */ - public function setBatch($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\AggregationResultBatch::class); - $this->batch = $var; - - return $this; - } - - /** - * The parsed form of the `GqlQuery` from the request, if it was set. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery query = 2; - * @return \Google\Cloud\Datastore\V1\AggregationQuery|null - */ - public function getQuery() - { - return $this->query; - } - - public function hasQuery() - { - return isset($this->query); - } - - public function clearQuery() - { - unset($this->query); - } - - /** - * The parsed form of the `GqlQuery` from the request, if it was set. - * - * Generated from protobuf field .google.datastore.v1.AggregationQuery query = 2; - * @param \Google\Cloud\Datastore\V1\AggregationQuery $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\AggregationQuery::class); - $this->query = $var; - - return $this; - } - - /** - * The identifier of the transaction that was started as part of this - * RunAggregationQuery request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [RunAggregationQueryRequest.read_options][google.datastore.v1.RunAggregationQueryRequest.read_options]. - * - * Generated from protobuf field bytes transaction = 5; - * @return string - */ - public function getTransaction() - { - return $this->transaction; - } - - /** - * The identifier of the transaction that was started as part of this - * RunAggregationQuery request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [RunAggregationQueryRequest.read_options][google.datastore.v1.RunAggregationQueryRequest.read_options]. - * - * Generated from protobuf field bytes transaction = 5; - * @param string $var - * @return $this - */ - public function setTransaction($var) - { - GPBUtil::checkString($var, False); - $this->transaction = $var; - - return $this; - } - - /** - * Query explain metrics. This is only present when the - * [RunAggregationQueryRequest.explain_options][google.datastore.v1.RunAggregationQueryRequest.explain_options] - * is provided, and it is sent only once with the last response in the stream. - * - * Generated from protobuf field .google.datastore.v1.ExplainMetrics explain_metrics = 9; - * @return \Google\Cloud\Datastore\V1\ExplainMetrics|null - */ - public function getExplainMetrics() - { - return $this->explain_metrics; - } - - public function hasExplainMetrics() - { - return isset($this->explain_metrics); - } - - public function clearExplainMetrics() - { - unset($this->explain_metrics); - } - - /** - * Query explain metrics. This is only present when the - * [RunAggregationQueryRequest.explain_options][google.datastore.v1.RunAggregationQueryRequest.explain_options] - * is provided, and it is sent only once with the last response in the stream. - * - * Generated from protobuf field .google.datastore.v1.ExplainMetrics explain_metrics = 9; - * @param \Google\Cloud\Datastore\V1\ExplainMetrics $var - * @return $this - */ - public function setExplainMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ExplainMetrics::class); - $this->explain_metrics = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunQueryRequest.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunQueryRequest.php deleted file mode 100644 index a622f98a1e1e..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunQueryRequest.php +++ /dev/null @@ -1,388 +0,0 @@ -google.datastore.v1.RunQueryRequest - */ -class RunQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - */ - protected $database_id = ''; - /** - * Entities are partitioned into subsets, identified by a partition ID. - * Queries are scoped to a single partition. - * This partition ID is normalized with the standard default context - * partition ID. - * - * Generated from protobuf field .google.datastore.v1.PartitionId partition_id = 2; - */ - protected $partition_id = null; - /** - * The options for this query. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions read_options = 1; - */ - protected $read_options = null; - /** - * The properties to return. - * This field must not be set for a projection query. - * See - * [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask]. - * - * Generated from protobuf field .google.datastore.v1.PropertyMask property_mask = 10; - */ - protected $property_mask = null; - /** - * Optional. Explain options for the query. If set, additional query - * statistics will be returned. If not, only query results will be returned. - * - * Generated from protobuf field .google.datastore.v1.ExplainOptions explain_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $explain_options = null; - protected $query_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. The ID of the project against which to make the request. - * @type string $database_id - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type \Google\Cloud\Datastore\V1\PartitionId $partition_id - * Entities are partitioned into subsets, identified by a partition ID. - * Queries are scoped to a single partition. - * This partition ID is normalized with the standard default context - * partition ID. - * @type \Google\Cloud\Datastore\V1\ReadOptions $read_options - * The options for this query. - * @type \Google\Cloud\Datastore\V1\Query $query - * The query to run. - * @type \Google\Cloud\Datastore\V1\GqlQuery $gql_query - * The GQL query to run. This query must be a non-aggregation query. - * @type \Google\Cloud\Datastore\V1\PropertyMask $property_mask - * The properties to return. - * This field must not be set for a projection query. - * See - * [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask]. - * @type \Google\Cloud\Datastore\V1\ExplainOptions $explain_options - * Optional. Explain options for the query. If set, additional query - * statistics will be returned. If not, only query results will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. The ID of the project against which to make the request. - * - * Generated from protobuf field string project_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * The ID of the database against which to make the request. - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * - * Generated from protobuf field string database_id = 9; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Entities are partitioned into subsets, identified by a partition ID. - * Queries are scoped to a single partition. - * This partition ID is normalized with the standard default context - * partition ID. - * - * Generated from protobuf field .google.datastore.v1.PartitionId partition_id = 2; - * @return \Google\Cloud\Datastore\V1\PartitionId|null - */ - public function getPartitionId() - { - return $this->partition_id; - } - - public function hasPartitionId() - { - return isset($this->partition_id); - } - - public function clearPartitionId() - { - unset($this->partition_id); - } - - /** - * Entities are partitioned into subsets, identified by a partition ID. - * Queries are scoped to a single partition. - * This partition ID is normalized with the standard default context - * partition ID. - * - * Generated from protobuf field .google.datastore.v1.PartitionId partition_id = 2; - * @param \Google\Cloud\Datastore\V1\PartitionId $var - * @return $this - */ - public function setPartitionId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PartitionId::class); - $this->partition_id = $var; - - return $this; - } - - /** - * The options for this query. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions read_options = 1; - * @return \Google\Cloud\Datastore\V1\ReadOptions|null - */ - public function getReadOptions() - { - return $this->read_options; - } - - public function hasReadOptions() - { - return isset($this->read_options); - } - - public function clearReadOptions() - { - unset($this->read_options); - } - - /** - * The options for this query. - * - * Generated from protobuf field .google.datastore.v1.ReadOptions read_options = 1; - * @param \Google\Cloud\Datastore\V1\ReadOptions $var - * @return $this - */ - public function setReadOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ReadOptions::class); - $this->read_options = $var; - - return $this; - } - - /** - * The query to run. - * - * Generated from protobuf field .google.datastore.v1.Query query = 3; - * @return \Google\Cloud\Datastore\V1\Query|null - */ - public function getQuery() - { - return $this->readOneof(3); - } - - public function hasQuery() - { - return $this->hasOneof(3); - } - - /** - * The query to run. - * - * Generated from protobuf field .google.datastore.v1.Query query = 3; - * @param \Google\Cloud\Datastore\V1\Query $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Query::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The GQL query to run. This query must be a non-aggregation query. - * - * Generated from protobuf field .google.datastore.v1.GqlQuery gql_query = 7; - * @return \Google\Cloud\Datastore\V1\GqlQuery|null - */ - public function getGqlQuery() - { - return $this->readOneof(7); - } - - public function hasGqlQuery() - { - return $this->hasOneof(7); - } - - /** - * The GQL query to run. This query must be a non-aggregation query. - * - * Generated from protobuf field .google.datastore.v1.GqlQuery gql_query = 7; - * @param \Google\Cloud\Datastore\V1\GqlQuery $var - * @return $this - */ - public function setGqlQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\GqlQuery::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * The properties to return. - * This field must not be set for a projection query. - * See - * [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask]. - * - * Generated from protobuf field .google.datastore.v1.PropertyMask property_mask = 10; - * @return \Google\Cloud\Datastore\V1\PropertyMask|null - */ - public function getPropertyMask() - { - return $this->property_mask; - } - - public function hasPropertyMask() - { - return isset($this->property_mask); - } - - public function clearPropertyMask() - { - unset($this->property_mask); - } - - /** - * The properties to return. - * This field must not be set for a projection query. - * See - * [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask]. - * - * Generated from protobuf field .google.datastore.v1.PropertyMask property_mask = 10; - * @param \Google\Cloud\Datastore\V1\PropertyMask $var - * @return $this - */ - public function setPropertyMask($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\PropertyMask::class); - $this->property_mask = $var; - - return $this; - } - - /** - * Optional. Explain options for the query. If set, additional query - * statistics will be returned. If not, only query results will be returned. - * - * Generated from protobuf field .google.datastore.v1.ExplainOptions explain_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Datastore\V1\ExplainOptions|null - */ - public function getExplainOptions() - { - return $this->explain_options; - } - - public function hasExplainOptions() - { - return isset($this->explain_options); - } - - public function clearExplainOptions() - { - unset($this->explain_options); - } - - /** - * Optional. Explain options for the query. If set, additional query - * statistics will be returned. If not, only query results will be returned. - * - * Generated from protobuf field .google.datastore.v1.ExplainOptions explain_options = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Datastore\V1\ExplainOptions $var - * @return $this - */ - public function setExplainOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ExplainOptions::class); - $this->explain_options = $var; - - return $this; - } - - /** - * @return string - */ - public function getQueryType() - { - return $this->whichOneof("query_type"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunQueryResponse.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunQueryResponse.php deleted file mode 100644 index 752570362949..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/RunQueryResponse.php +++ /dev/null @@ -1,228 +0,0 @@ -google.datastore.v1.RunQueryResponse - */ -class RunQueryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A batch of query results (always present). - * - * Generated from protobuf field .google.datastore.v1.QueryResultBatch batch = 1; - */ - protected $batch = null; - /** - * The parsed form of the `GqlQuery` from the request, if it was set. - * - * Generated from protobuf field .google.datastore.v1.Query query = 2; - */ - protected $query = null; - /** - * The identifier of the transaction that was started as part of this - * RunQuery request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [RunQueryRequest.read_options][google.datastore.v1.RunQueryRequest.read_options]. - * - * Generated from protobuf field bytes transaction = 5; - */ - protected $transaction = ''; - /** - * Query explain metrics. This is only present when the - * [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] - * is provided, and it is sent only once with the last response in the stream. - * - * Generated from protobuf field .google.datastore.v1.ExplainMetrics explain_metrics = 9; - */ - protected $explain_metrics = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\QueryResultBatch $batch - * A batch of query results (always present). - * @type \Google\Cloud\Datastore\V1\Query $query - * The parsed form of the `GqlQuery` from the request, if it was set. - * @type string $transaction - * The identifier of the transaction that was started as part of this - * RunQuery request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [RunQueryRequest.read_options][google.datastore.v1.RunQueryRequest.read_options]. - * @type \Google\Cloud\Datastore\V1\ExplainMetrics $explain_metrics - * Query explain metrics. This is only present when the - * [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] - * is provided, and it is sent only once with the last response in the stream. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * A batch of query results (always present). - * - * Generated from protobuf field .google.datastore.v1.QueryResultBatch batch = 1; - * @return \Google\Cloud\Datastore\V1\QueryResultBatch|null - */ - public function getBatch() - { - return $this->batch; - } - - public function hasBatch() - { - return isset($this->batch); - } - - public function clearBatch() - { - unset($this->batch); - } - - /** - * A batch of query results (always present). - * - * Generated from protobuf field .google.datastore.v1.QueryResultBatch batch = 1; - * @param \Google\Cloud\Datastore\V1\QueryResultBatch $var - * @return $this - */ - public function setBatch($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\QueryResultBatch::class); - $this->batch = $var; - - return $this; - } - - /** - * The parsed form of the `GqlQuery` from the request, if it was set. - * - * Generated from protobuf field .google.datastore.v1.Query query = 2; - * @return \Google\Cloud\Datastore\V1\Query|null - */ - public function getQuery() - { - return $this->query; - } - - public function hasQuery() - { - return isset($this->query); - } - - public function clearQuery() - { - unset($this->query); - } - - /** - * The parsed form of the `GqlQuery` from the request, if it was set. - * - * Generated from protobuf field .google.datastore.v1.Query query = 2; - * @param \Google\Cloud\Datastore\V1\Query $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Query::class); - $this->query = $var; - - return $this; - } - - /** - * The identifier of the transaction that was started as part of this - * RunQuery request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [RunQueryRequest.read_options][google.datastore.v1.RunQueryRequest.read_options]. - * - * Generated from protobuf field bytes transaction = 5; - * @return string - */ - public function getTransaction() - { - return $this->transaction; - } - - /** - * The identifier of the transaction that was started as part of this - * RunQuery request. - * Set only when - * [ReadOptions.new_transaction][google.datastore.v1.ReadOptions.new_transaction] - * was set in - * [RunQueryRequest.read_options][google.datastore.v1.RunQueryRequest.read_options]. - * - * Generated from protobuf field bytes transaction = 5; - * @param string $var - * @return $this - */ - public function setTransaction($var) - { - GPBUtil::checkString($var, False); - $this->transaction = $var; - - return $this; - } - - /** - * Query explain metrics. This is only present when the - * [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] - * is provided, and it is sent only once with the last response in the stream. - * - * Generated from protobuf field .google.datastore.v1.ExplainMetrics explain_metrics = 9; - * @return \Google\Cloud\Datastore\V1\ExplainMetrics|null - */ - public function getExplainMetrics() - { - return $this->explain_metrics; - } - - public function hasExplainMetrics() - { - return isset($this->explain_metrics); - } - - public function clearExplainMetrics() - { - unset($this->explain_metrics); - } - - /** - * Query explain metrics. This is only present when the - * [RunQueryRequest.explain_options][google.datastore.v1.RunQueryRequest.explain_options] - * is provided, and it is sent only once with the last response in the stream. - * - * Generated from protobuf field .google.datastore.v1.ExplainMetrics explain_metrics = 9; - * @param \Google\Cloud\Datastore\V1\ExplainMetrics $var - * @return $this - */ - public function setExplainMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ExplainMetrics::class); - $this->explain_metrics = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions.php deleted file mode 100644 index f1d2d422af6d..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions.php +++ /dev/null @@ -1,113 +0,0 @@ -google.datastore.v1.TransactionOptions - */ -class TransactionOptions extends \Google\Protobuf\Internal\Message -{ - protected $mode; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\V1\TransactionOptions\ReadWrite $read_write - * The transaction should allow both reads and writes. - * @type \Google\Cloud\Datastore\V1\TransactionOptions\PBReadOnly $read_only - * The transaction should only allow reads. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * The transaction should allow both reads and writes. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; - * @return \Google\Cloud\Datastore\V1\TransactionOptions\ReadWrite|null - */ - public function getReadWrite() - { - return $this->readOneof(1); - } - - public function hasReadWrite() - { - return $this->hasOneof(1); - } - - /** - * The transaction should allow both reads and writes. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions.ReadWrite read_write = 1; - * @param \Google\Cloud\Datastore\V1\TransactionOptions\ReadWrite $var - * @return $this - */ - public function setReadWrite($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\TransactionOptions\ReadWrite::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The transaction should only allow reads. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; - * @return \Google\Cloud\Datastore\V1\TransactionOptions\PBReadOnly|null - */ - public function getReadOnly() - { - return $this->readOneof(2); - } - - public function hasReadOnly() - { - return $this->hasOneof(2); - } - - /** - * The transaction should only allow reads. - * - * Generated from protobuf field .google.datastore.v1.TransactionOptions.ReadOnly read_only = 2; - * @param \Google\Cloud\Datastore\V1\TransactionOptions\PBReadOnly $var - * @return $this - */ - public function setReadOnly($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\TransactionOptions\PBReadOnly::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getMode() - { - return $this->whichOneof("mode"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions/PBReadOnly.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions/PBReadOnly.php deleted file mode 100644 index 77e0b253f413..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions/PBReadOnly.php +++ /dev/null @@ -1,95 +0,0 @@ -google.datastore.v1.TransactionOptions.ReadOnly - */ -class PBReadOnly extends \Google\Protobuf\Internal\Message -{ - /** - * Reads entities at the given time. - * This must be a microsecond precision timestamp within the past one hour, - * or if Point-in-Time Recovery is enabled, can additionally be a whole - * minute timestamp within the past 7 days. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 1; - */ - protected $read_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $read_time - * Reads entities at the given time. - * This must be a microsecond precision timestamp within the past one hour, - * or if Point-in-Time Recovery is enabled, can additionally be a whole - * minute timestamp within the past 7 days. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * Reads entities at the given time. - * This must be a microsecond precision timestamp within the past one hour, - * or if Point-in-Time Recovery is enabled, can additionally be a whole - * minute timestamp within the past 7 days. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getReadTime() - { - return $this->read_time; - } - - public function hasReadTime() - { - return isset($this->read_time); - } - - public function clearReadTime() - { - unset($this->read_time); - } - - /** - * Reads entities at the given time. - * This must be a microsecond precision timestamp within the past one hour, - * or if Point-in-Time Recovery is enabled, can additionally be a whole - * minute timestamp within the past 7 days. - * - * Generated from protobuf field .google.protobuf.Timestamp read_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setReadTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->read_time = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PBReadOnly::class, \Google\Cloud\Datastore\V1\TransactionOptions_ReadOnly::class); - -// Adding a class alias for backwards compatibility with the "readonly" keyword. -class_alias(PBReadOnly::class, __NAMESPACE__ . '\ReadOnly'); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions/ReadOnly.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions/ReadOnly.php deleted file mode 100644 index f6ef4bbabdcc..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/TransactionOptions/ReadOnly.php +++ /dev/null @@ -1,9 +0,0 @@ -google.datastore.v1.TransactionOptions.ReadWrite - */ -class ReadWrite extends \Google\Protobuf\Internal\Message -{ - /** - * The transaction identifier of the transaction being retried. - * - * Generated from protobuf field bytes previous_transaction = 1; - */ - protected $previous_transaction = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $previous_transaction - * The transaction identifier of the transaction being retried. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Datastore::initOnce(); - parent::__construct($data); - } - - /** - * The transaction identifier of the transaction being retried. - * - * Generated from protobuf field bytes previous_transaction = 1; - * @return string - */ - public function getPreviousTransaction() - { - return $this->previous_transaction; - } - - /** - * The transaction identifier of the transaction being retried. - * - * Generated from protobuf field bytes previous_transaction = 1; - * @param string $var - * @return $this - */ - public function setPreviousTransaction($var) - { - GPBUtil::checkString($var, False); - $this->previous_transaction = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReadWrite::class, \Google\Cloud\Datastore\V1\TransactionOptions_ReadWrite::class); - diff --git a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Value.php b/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Value.php deleted file mode 100644 index 2b2ef2edcd88..000000000000 --- a/owl-bot-staging/Datastore/v1/proto/src/Google/Cloud/Datastore/V1/Value.php +++ /dev/null @@ -1,517 +0,0 @@ -google.datastore.v1.Value - */ -class Value extends \Google\Protobuf\Internal\Message -{ - /** - * The `meaning` field should only be populated for backwards compatibility. - * - * Generated from protobuf field int32 meaning = 14; - */ - protected $meaning = 0; - /** - * If the value should be excluded from all indexes including those defined - * explicitly. - * - * Generated from protobuf field bool exclude_from_indexes = 19; - */ - protected $exclude_from_indexes = false; - protected $value_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $null_value - * A null value. - * @type bool $boolean_value - * A boolean value. - * @type int|string $integer_value - * An integer value. - * @type float $double_value - * A double value. - * @type \Google\Protobuf\Timestamp $timestamp_value - * A timestamp value. - * When stored in the Datastore, precise only to microseconds; - * any additional precision is rounded down. - * @type \Google\Cloud\Datastore\V1\Key $key_value - * A key value. - * @type string $string_value - * A UTF-8 encoded string value. - * When `exclude_from_indexes` is false (it is indexed) , may have at most - * 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. - * @type string $blob_value - * A blob value. - * May have at most 1,000,000 bytes. - * When `exclude_from_indexes` is false, may have at most 1500 bytes. - * In JSON requests, must be base64-encoded. - * @type \Google\Type\LatLng $geo_point_value - * A geo point value representing a point on the surface of Earth. - * @type \Google\Cloud\Datastore\V1\Entity $entity_value - * An entity value. - * - May have no key. - * - May have a key with an incomplete key path. - * - May have a reserved/read-only key. - * @type \Google\Cloud\Datastore\V1\ArrayValue $array_value - * An array value. - * Cannot contain another array value. - * A `Value` instance that sets field `array_value` must not set fields - * `meaning` or `exclude_from_indexes`. - * @type int $meaning - * The `meaning` field should only be populated for backwards compatibility. - * @type bool $exclude_from_indexes - * If the value should be excluded from all indexes including those defined - * explicitly. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\V1\Entity::initOnce(); - parent::__construct($data); - } - - /** - * A null value. - * - * Generated from protobuf field .google.protobuf.NullValue null_value = 11; - * @return int - */ - public function getNullValue() - { - return $this->readOneof(11); - } - - public function hasNullValue() - { - return $this->hasOneof(11); - } - - /** - * A null value. - * - * Generated from protobuf field .google.protobuf.NullValue null_value = 11; - * @param int $var - * @return $this - */ - public function setNullValue($var) - { - GPBUtil::checkEnum($var, \Google\Protobuf\NullValue::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * A boolean value. - * - * Generated from protobuf field bool boolean_value = 1; - * @return bool - */ - public function getBooleanValue() - { - return $this->readOneof(1); - } - - public function hasBooleanValue() - { - return $this->hasOneof(1); - } - - /** - * A boolean value. - * - * Generated from protobuf field bool boolean_value = 1; - * @param bool $var - * @return $this - */ - public function setBooleanValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * An integer value. - * - * Generated from protobuf field int64 integer_value = 2; - * @return int|string - */ - public function getIntegerValue() - { - return $this->readOneof(2); - } - - public function hasIntegerValue() - { - return $this->hasOneof(2); - } - - /** - * An integer value. - * - * Generated from protobuf field int64 integer_value = 2; - * @param int|string $var - * @return $this - */ - public function setIntegerValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * 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); - } - - /** - * 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; - } - - /** - * A timestamp value. - * When stored in the Datastore, precise only to microseconds; - * any additional precision is rounded down. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 10; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestampValue() - { - return $this->readOneof(10); - } - - public function hasTimestampValue() - { - return $this->hasOneof(10); - } - - /** - * A timestamp value. - * When stored in the Datastore, precise only to microseconds; - * any additional precision is rounded down. - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp_value = 10; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestampValue($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * A key value. - * - * Generated from protobuf field .google.datastore.v1.Key key_value = 5; - * @return \Google\Cloud\Datastore\V1\Key|null - */ - public function getKeyValue() - { - return $this->readOneof(5); - } - - public function hasKeyValue() - { - return $this->hasOneof(5); - } - - /** - * A key value. - * - * Generated from protobuf field .google.datastore.v1.Key key_value = 5; - * @param \Google\Cloud\Datastore\V1\Key $var - * @return $this - */ - public function setKeyValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Key::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * A UTF-8 encoded string value. - * When `exclude_from_indexes` is false (it is indexed) , may have at most - * 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. - * - * Generated from protobuf field string string_value = 17; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(17); - } - - public function hasStringValue() - { - return $this->hasOneof(17); - } - - /** - * A UTF-8 encoded string value. - * When `exclude_from_indexes` is false (it is indexed) , may have at most - * 1500 bytes. Otherwise, may be set to at most 1,000,000 bytes. - * - * Generated from protobuf field string string_value = 17; - * @param string $var - * @return $this - */ - public function setStringValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(17, $var); - - return $this; - } - - /** - * A blob value. - * May have at most 1,000,000 bytes. - * When `exclude_from_indexes` is false, may have at most 1500 bytes. - * In JSON requests, must be base64-encoded. - * - * Generated from protobuf field bytes blob_value = 18; - * @return string - */ - public function getBlobValue() - { - return $this->readOneof(18); - } - - public function hasBlobValue() - { - return $this->hasOneof(18); - } - - /** - * A blob value. - * May have at most 1,000,000 bytes. - * When `exclude_from_indexes` is false, may have at most 1500 bytes. - * In JSON requests, must be base64-encoded. - * - * Generated from protobuf field bytes blob_value = 18; - * @param string $var - * @return $this - */ - public function setBlobValue($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(18, $var); - - return $this; - } - - /** - * A geo point value representing a point on the surface of Earth. - * - * Generated from protobuf field .google.type.LatLng geo_point_value = 8; - * @return \Google\Type\LatLng|null - */ - public function getGeoPointValue() - { - return $this->readOneof(8); - } - - public function hasGeoPointValue() - { - return $this->hasOneof(8); - } - - /** - * A geo point value representing a point on the surface of Earth. - * - * Generated from protobuf field .google.type.LatLng geo_point_value = 8; - * @param \Google\Type\LatLng $var - * @return $this - */ - public function setGeoPointValue($var) - { - GPBUtil::checkMessage($var, \Google\Type\LatLng::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * An entity value. - * - May have no key. - * - May have a key with an incomplete key path. - * - May have a reserved/read-only key. - * - * Generated from protobuf field .google.datastore.v1.Entity entity_value = 6; - * @return \Google\Cloud\Datastore\V1\Entity|null - */ - public function getEntityValue() - { - return $this->readOneof(6); - } - - public function hasEntityValue() - { - return $this->hasOneof(6); - } - - /** - * An entity value. - * - May have no key. - * - May have a key with an incomplete key path. - * - May have a reserved/read-only key. - * - * Generated from protobuf field .google.datastore.v1.Entity entity_value = 6; - * @param \Google\Cloud\Datastore\V1\Entity $var - * @return $this - */ - public function setEntityValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\Entity::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * An array value. - * Cannot contain another array value. - * A `Value` instance that sets field `array_value` must not set fields - * `meaning` or `exclude_from_indexes`. - * - * Generated from protobuf field .google.datastore.v1.ArrayValue array_value = 9; - * @return \Google\Cloud\Datastore\V1\ArrayValue|null - */ - public function getArrayValue() - { - return $this->readOneof(9); - } - - public function hasArrayValue() - { - return $this->hasOneof(9); - } - - /** - * An array value. - * Cannot contain another array value. - * A `Value` instance that sets field `array_value` must not set fields - * `meaning` or `exclude_from_indexes`. - * - * Generated from protobuf field .google.datastore.v1.ArrayValue array_value = 9; - * @param \Google\Cloud\Datastore\V1\ArrayValue $var - * @return $this - */ - public function setArrayValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\V1\ArrayValue::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * The `meaning` field should only be populated for backwards compatibility. - * - * Generated from protobuf field int32 meaning = 14; - * @return int - */ - public function getMeaning() - { - return $this->meaning; - } - - /** - * The `meaning` field should only be populated for backwards compatibility. - * - * Generated from protobuf field int32 meaning = 14; - * @param int $var - * @return $this - */ - public function setMeaning($var) - { - GPBUtil::checkInt32($var); - $this->meaning = $var; - - return $this; - } - - /** - * If the value should be excluded from all indexes including those defined - * explicitly. - * - * Generated from protobuf field bool exclude_from_indexes = 19; - * @return bool - */ - public function getExcludeFromIndexes() - { - return $this->exclude_from_indexes; - } - - /** - * If the value should be excluded from all indexes including those defined - * explicitly. - * - * Generated from protobuf field bool exclude_from_indexes = 19; - * @param bool $var - * @return $this - */ - public function setExcludeFromIndexes($var) - { - GPBUtil::checkBool($var); - $this->exclude_from_indexes = $var; - - return $this; - } - - /** - * @return string - */ - public function getValueType() - { - return $this->whichOneof("value_type"); - } - -} - diff --git a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/allocate_ids.php b/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/allocate_ids.php deleted file mode 100644 index f7de5fa7ff80..000000000000 --- a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/allocate_ids.php +++ /dev/null @@ -1,74 +0,0 @@ -setProjectId($projectId) - ->setKeys($keys); - - // Call the API and handle any network failures. - try { - /** @var AllocateIdsResponse $response */ - $response = $datastoreClient->allocateIds($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - - allocate_ids_sample($projectId); -} -// [END datastore_v1_generated_Datastore_AllocateIds_sync] diff --git a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/begin_transaction.php b/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/begin_transaction.php deleted file mode 100644 index ab644ee65011..000000000000 --- a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/begin_transaction.php +++ /dev/null @@ -1,70 +0,0 @@ -setProjectId($projectId); - - // Call the API and handle any network failures. - try { - /** @var BeginTransactionResponse $response */ - $response = $datastoreClient->beginTransaction($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - - begin_transaction_sample($projectId); -} -// [END datastore_v1_generated_Datastore_BeginTransaction_sync] diff --git a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/commit.php b/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/commit.php deleted file mode 100644 index fd3d7d4a7577..000000000000 --- a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/commit.php +++ /dev/null @@ -1,78 +0,0 @@ -setProjectId($projectId) - ->setMode($mode) - ->setMutations($mutations); - - // Call the API and handle any network failures. - try { - /** @var CommitResponse $response */ - $response = $datastoreClient->commit($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - $mode = Mode::MODE_UNSPECIFIED; - - commit_sample($projectId, $mode); -} -// [END datastore_v1_generated_Datastore_Commit_sync] diff --git a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/lookup.php b/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/lookup.php deleted file mode 100644 index ecfeb42175fa..000000000000 --- a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/lookup.php +++ /dev/null @@ -1,73 +0,0 @@ -setProjectId($projectId) - ->setKeys($keys); - - // Call the API and handle any network failures. - try { - /** @var LookupResponse $response */ - $response = $datastoreClient->lookup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - - lookup_sample($projectId); -} -// [END datastore_v1_generated_Datastore_Lookup_sync] diff --git a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/reserve_ids.php b/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/reserve_ids.php deleted file mode 100644 index 3fce8684f055..000000000000 --- a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/reserve_ids.php +++ /dev/null @@ -1,74 +0,0 @@ -setProjectId($projectId) - ->setKeys($keys); - - // Call the API and handle any network failures. - try { - /** @var ReserveIdsResponse $response */ - $response = $datastoreClient->reserveIds($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - - reserve_ids_sample($projectId); -} -// [END datastore_v1_generated_Datastore_ReserveIds_sync] diff --git a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/rollback.php b/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/rollback.php deleted file mode 100644 index 657d32ada50e..000000000000 --- a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/rollback.php +++ /dev/null @@ -1,74 +0,0 @@ -setProjectId($projectId) - ->setTransaction($transaction); - - // Call the API and handle any network failures. - try { - /** @var RollbackResponse $response */ - $response = $datastoreClient->rollback($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - $transaction = '...'; - - rollback_sample($projectId, $transaction); -} -// [END datastore_v1_generated_Datastore_Rollback_sync] diff --git a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/run_aggregation_query.php b/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/run_aggregation_query.php deleted file mode 100644 index f7c99caf4ac4..000000000000 --- a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/run_aggregation_query.php +++ /dev/null @@ -1,70 +0,0 @@ -setProjectId($projectId); - - // Call the API and handle any network failures. - try { - /** @var RunAggregationQueryResponse $response */ - $response = $datastoreClient->runAggregationQuery($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - - run_aggregation_query_sample($projectId); -} -// [END datastore_v1_generated_Datastore_RunAggregationQuery_sync] diff --git a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/run_query.php b/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/run_query.php deleted file mode 100644 index 0fe2c0b5e241..000000000000 --- a/owl-bot-staging/Datastore/v1/samples/V1/DatastoreClient/run_query.php +++ /dev/null @@ -1,73 +0,0 @@ -setProjectId($projectId) - ->setPartitionId($partitionId); - - // Call the API and handle any network failures. - try { - /** @var RunQueryResponse $response */ - $response = $datastoreClient->runQuery($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $projectId = '[PROJECT_ID]'; - - run_query_sample($projectId); -} -// [END datastore_v1_generated_Datastore_RunQuery_sync] diff --git a/owl-bot-staging/Datastore/v1/src/V1/Client/DatastoreClient.php b/owl-bot-staging/Datastore/v1/src/V1/Client/DatastoreClient.php deleted file mode 100644 index bd08b43e8169..000000000000 --- a/owl-bot-staging/Datastore/v1/src/V1/Client/DatastoreClient.php +++ /dev/null @@ -1,403 +0,0 @@ - allocateIdsAsync(AllocateIdsRequest $request, array $optionalArgs = []) - * @method PromiseInterface beginTransactionAsync(BeginTransactionRequest $request, array $optionalArgs = []) - * @method PromiseInterface commitAsync(CommitRequest $request, array $optionalArgs = []) - * @method PromiseInterface lookupAsync(LookupRequest $request, array $optionalArgs = []) - * @method PromiseInterface reserveIdsAsync(ReserveIdsRequest $request, array $optionalArgs = []) - * @method PromiseInterface rollbackAsync(RollbackRequest $request, array $optionalArgs = []) - * @method PromiseInterface runAggregationQueryAsync(RunAggregationQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface runQueryAsync(RunQueryRequest $request, array $optionalArgs = []) - */ -final class DatastoreClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.datastore.v1.Datastore'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'datastore.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'datastore.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/datastore', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/datastore_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/datastore_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/datastore_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/datastore_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'datastore.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); - } - - /** - * Allocates IDs for the given keys, which is useful for referencing an entity - * before it is inserted. - * - * The async variant is {@see DatastoreClient::allocateIdsAsync()} . - * - * @example samples/V1/DatastoreClient/allocate_ids.php - * - * @param AllocateIdsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AllocateIdsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function allocateIds(AllocateIdsRequest $request, array $callOptions = []): AllocateIdsResponse - { - return $this->startApiCall('AllocateIds', $request, $callOptions)->wait(); - } - - /** - * Begins a new transaction. - * - * The async variant is {@see DatastoreClient::beginTransactionAsync()} . - * - * @example samples/V1/DatastoreClient/begin_transaction.php - * - * @param BeginTransactionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BeginTransactionResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function beginTransaction(BeginTransactionRequest $request, array $callOptions = []): BeginTransactionResponse - { - return $this->startApiCall('BeginTransaction', $request, $callOptions)->wait(); - } - - /** - * Commits a transaction, optionally creating, deleting or modifying some - * entities. - * - * The async variant is {@see DatastoreClient::commitAsync()} . - * - * @example samples/V1/DatastoreClient/commit.php - * - * @param CommitRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CommitResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function commit(CommitRequest $request, array $callOptions = []): CommitResponse - { - return $this->startApiCall('Commit', $request, $callOptions)->wait(); - } - - /** - * Looks up entities by key. - * - * The async variant is {@see DatastoreClient::lookupAsync()} . - * - * @example samples/V1/DatastoreClient/lookup.php - * - * @param LookupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return LookupResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function lookup(LookupRequest $request, array $callOptions = []): LookupResponse - { - return $this->startApiCall('Lookup', $request, $callOptions)->wait(); - } - - /** - * Prevents the supplied keys' IDs from being auto-allocated by Cloud - * Datastore. - * - * The async variant is {@see DatastoreClient::reserveIdsAsync()} . - * - * @example samples/V1/DatastoreClient/reserve_ids.php - * - * @param ReserveIdsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReserveIdsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function reserveIds(ReserveIdsRequest $request, array $callOptions = []): ReserveIdsResponse - { - return $this->startApiCall('ReserveIds', $request, $callOptions)->wait(); - } - - /** - * Rolls back a transaction. - * - * The async variant is {@see DatastoreClient::rollbackAsync()} . - * - * @example samples/V1/DatastoreClient/rollback.php - * - * @param RollbackRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RollbackResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function rollback(RollbackRequest $request, array $callOptions = []): RollbackResponse - { - return $this->startApiCall('Rollback', $request, $callOptions)->wait(); - } - - /** - * Runs an aggregation query. - * - * The async variant is {@see DatastoreClient::runAggregationQueryAsync()} . - * - * @example samples/V1/DatastoreClient/run_aggregation_query.php - * - * @param RunAggregationQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunAggregationQueryResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function runAggregationQuery(RunAggregationQueryRequest $request, array $callOptions = []): RunAggregationQueryResponse - { - return $this->startApiCall('RunAggregationQuery', $request, $callOptions)->wait(); - } - - /** - * Queries for entities. - * - * The async variant is {@see DatastoreClient::runQueryAsync()} . - * - * @example samples/V1/DatastoreClient/run_query.php - * - * @param RunQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RunQueryResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function runQuery(RunQueryRequest $request, array $callOptions = []): RunQueryResponse - { - return $this->startApiCall('RunQuery', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Datastore/v1/src/V1/DatastoreClient.php b/owl-bot-staging/Datastore/v1/src/V1/DatastoreClient.php deleted file mode 100644 index 5e5ff92d748a..000000000000 --- a/owl-bot-staging/Datastore/v1/src/V1/DatastoreClient.php +++ /dev/null @@ -1,34 +0,0 @@ -allocateIds($projectId, $keys); - * } finally { - * $datastoreClient->close(); - * } - * ``` - * - * @deprecated Please use the new service client {@see \Google\Cloud\Datastore\V1\Client\DatastoreClient}. - */ -class DatastoreGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.datastore.v1.Datastore'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'datastore.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'datastore.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/datastore', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/datastore_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/datastore_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/datastore_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/datastore_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'datastore.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); - } - - /** - * Allocates IDs for the given keys, which is useful for referencing an entity - * before it is inserted. - * - * Sample code: - * ``` - * $datastoreClient = new DatastoreClient(); - * try { - * $projectId = 'project_id'; - * $keys = []; - * $response = $datastoreClient->allocateIds($projectId, $keys); - * } finally { - * $datastoreClient->close(); - * } - * ``` - * - * @param string $projectId Required. The ID of the project against which to make the request. - * @param Key[] $keys Required. A list of keys with incomplete key paths for which to allocate - * IDs. No key may be reserved/read-only. - * @param array $optionalArgs { - * Optional. - * - * @type string $databaseId - * The ID of the database against which to make the request. - * - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Datastore\V1\AllocateIdsResponse - * - * @throws ApiException if the remote call fails - */ - public function allocateIds($projectId, $keys, array $optionalArgs = []) - { - $request = new AllocateIdsRequest(); - $requestParamHeaders = []; - $request->setProjectId($projectId); - $request->setKeys($keys); - $requestParamHeaders['project_id'] = $projectId; - if (isset($optionalArgs['databaseId'])) { - $request->setDatabaseId($optionalArgs['databaseId']); - $requestParamHeaders['database_id'] = $optionalArgs['databaseId']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('AllocateIds', AllocateIdsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Begins a new transaction. - * - * Sample code: - * ``` - * $datastoreClient = new DatastoreClient(); - * try { - * $projectId = 'project_id'; - * $response = $datastoreClient->beginTransaction($projectId); - * } finally { - * $datastoreClient->close(); - * } - * ``` - * - * @param string $projectId Required. The ID of the project against which to make the request. - * @param array $optionalArgs { - * Optional. - * - * @type string $databaseId - * The ID of the database against which to make the request. - * - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type TransactionOptions $transactionOptions - * Options for a new transaction. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Datastore\V1\BeginTransactionResponse - * - * @throws ApiException if the remote call fails - */ - public function beginTransaction($projectId, array $optionalArgs = []) - { - $request = new BeginTransactionRequest(); - $requestParamHeaders = []; - $request->setProjectId($projectId); - $requestParamHeaders['project_id'] = $projectId; - if (isset($optionalArgs['databaseId'])) { - $request->setDatabaseId($optionalArgs['databaseId']); - $requestParamHeaders['database_id'] = $optionalArgs['databaseId']; - } - - if (isset($optionalArgs['transactionOptions'])) { - $request->setTransactionOptions($optionalArgs['transactionOptions']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('BeginTransaction', BeginTransactionResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Commits a transaction, optionally creating, deleting or modifying some - * entities. - * - * Sample code: - * ``` - * $datastoreClient = new DatastoreClient(); - * try { - * $projectId = 'project_id'; - * $mode = Mode::MODE_UNSPECIFIED; - * $mutations = []; - * $response = $datastoreClient->commit($projectId, $mode, $mutations); - * } finally { - * $datastoreClient->close(); - * } - * ``` - * - * @param string $projectId Required. The ID of the project against which to make the request. - * @param int $mode The type of commit to perform. Defaults to `TRANSACTIONAL`. - * For allowed values, use constants defined on {@see \Google\Cloud\Datastore\V1\CommitRequest\Mode} - * @param Mutation[] $mutations The mutations to perform. - * - * When mode is `TRANSACTIONAL`, mutations affecting a single entity are - * applied in order. The following sequences of mutations affecting a single - * entity are not permitted in a single `Commit` request: - * - * - `insert` followed by `insert` - * - `update` followed by `insert` - * - `upsert` followed by `insert` - * - `delete` followed by `update` - * - * When mode is `NON_TRANSACTIONAL`, no two mutations may affect a single - * entity. - * @param array $optionalArgs { - * Optional. - * - * @type string $databaseId - * The ID of the database against which to make the request. - * - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type string $transaction - * The identifier of the transaction associated with the commit. A - * transaction identifier is returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * @type TransactionOptions $singleUseTransaction - * Options for beginning a new transaction for this request. - * The transaction is committed when the request completes. If specified, - * [TransactionOptions.mode][google.datastore.v1.TransactionOptions] must be - * [TransactionOptions.ReadWrite][google.datastore.v1.TransactionOptions.ReadWrite]. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Datastore\V1\CommitResponse - * - * @throws ApiException if the remote call fails - */ - public function commit($projectId, $mode, $mutations, array $optionalArgs = []) - { - $request = new CommitRequest(); - $requestParamHeaders = []; - $request->setProjectId($projectId); - $request->setMode($mode); - $request->setMutations($mutations); - $requestParamHeaders['project_id'] = $projectId; - if (isset($optionalArgs['databaseId'])) { - $request->setDatabaseId($optionalArgs['databaseId']); - $requestParamHeaders['database_id'] = $optionalArgs['databaseId']; - } - - if (isset($optionalArgs['transaction'])) { - $request->setTransaction($optionalArgs['transaction']); - } - - if (isset($optionalArgs['singleUseTransaction'])) { - $request->setSingleUseTransaction($optionalArgs['singleUseTransaction']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('Commit', CommitResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Looks up entities by key. - * - * Sample code: - * ``` - * $datastoreClient = new DatastoreClient(); - * try { - * $projectId = 'project_id'; - * $keys = []; - * $response = $datastoreClient->lookup($projectId, $keys); - * } finally { - * $datastoreClient->close(); - * } - * ``` - * - * @param string $projectId Required. The ID of the project against which to make the request. - * @param Key[] $keys Required. Keys of entities to look up. - * @param array $optionalArgs { - * Optional. - * - * @type string $databaseId - * The ID of the database against which to make the request. - * - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type ReadOptions $readOptions - * The options for this lookup request. - * @type PropertyMask $propertyMask - * The properties to return. Defaults to returning all properties. - * - * If this field is set and an entity has a property not referenced in the - * mask, it will be absent from [LookupResponse.found.entity.properties][]. - * - * The entity's key is always returned. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Datastore\V1\LookupResponse - * - * @throws ApiException if the remote call fails - */ - public function lookup($projectId, $keys, array $optionalArgs = []) - { - $request = new LookupRequest(); - $requestParamHeaders = []; - $request->setProjectId($projectId); - $request->setKeys($keys); - $requestParamHeaders['project_id'] = $projectId; - if (isset($optionalArgs['databaseId'])) { - $request->setDatabaseId($optionalArgs['databaseId']); - $requestParamHeaders['database_id'] = $optionalArgs['databaseId']; - } - - if (isset($optionalArgs['readOptions'])) { - $request->setReadOptions($optionalArgs['readOptions']); - } - - if (isset($optionalArgs['propertyMask'])) { - $request->setPropertyMask($optionalArgs['propertyMask']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('Lookup', LookupResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Prevents the supplied keys' IDs from being auto-allocated by Cloud - * Datastore. - * - * Sample code: - * ``` - * $datastoreClient = new DatastoreClient(); - * try { - * $projectId = 'project_id'; - * $keys = []; - * $response = $datastoreClient->reserveIds($projectId, $keys); - * } finally { - * $datastoreClient->close(); - * } - * ``` - * - * @param string $projectId Required. The ID of the project against which to make the request. - * @param Key[] $keys Required. A list of keys with complete key paths whose numeric IDs should - * not be auto-allocated. - * @param array $optionalArgs { - * Optional. - * - * @type string $databaseId - * The ID of the database against which to make the request. - * - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Datastore\V1\ReserveIdsResponse - * - * @throws ApiException if the remote call fails - */ - public function reserveIds($projectId, $keys, array $optionalArgs = []) - { - $request = new ReserveIdsRequest(); - $requestParamHeaders = []; - $request->setProjectId($projectId); - $request->setKeys($keys); - $requestParamHeaders['project_id'] = $projectId; - if (isset($optionalArgs['databaseId'])) { - $request->setDatabaseId($optionalArgs['databaseId']); - $requestParamHeaders['database_id'] = $optionalArgs['databaseId']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ReserveIds', ReserveIdsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Rolls back a transaction. - * - * Sample code: - * ``` - * $datastoreClient = new DatastoreClient(); - * try { - * $projectId = 'project_id'; - * $transaction = '...'; - * $response = $datastoreClient->rollback($projectId, $transaction); - * } finally { - * $datastoreClient->close(); - * } - * ``` - * - * @param string $projectId Required. The ID of the project against which to make the request. - * @param string $transaction Required. The transaction identifier, returned by a call to - * [Datastore.BeginTransaction][google.datastore.v1.Datastore.BeginTransaction]. - * @param array $optionalArgs { - * Optional. - * - * @type string $databaseId - * The ID of the database against which to make the request. - * - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Datastore\V1\RollbackResponse - * - * @throws ApiException if the remote call fails - */ - public function rollback($projectId, $transaction, array $optionalArgs = []) - { - $request = new RollbackRequest(); - $requestParamHeaders = []; - $request->setProjectId($projectId); - $request->setTransaction($transaction); - $requestParamHeaders['project_id'] = $projectId; - if (isset($optionalArgs['databaseId'])) { - $request->setDatabaseId($optionalArgs['databaseId']); - $requestParamHeaders['database_id'] = $optionalArgs['databaseId']; - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('Rollback', RollbackResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Runs an aggregation query. - * - * Sample code: - * ``` - * $datastoreClient = new DatastoreClient(); - * try { - * $projectId = 'project_id'; - * $response = $datastoreClient->runAggregationQuery($projectId); - * } finally { - * $datastoreClient->close(); - * } - * ``` - * - * @param string $projectId Required. The ID of the project against which to make the request. - * @param array $optionalArgs { - * Optional. - * - * @type string $databaseId - * The ID of the database against which to make the request. - * - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type PartitionId $partitionId - * Entities are partitioned into subsets, identified by a partition ID. - * Queries are scoped to a single partition. - * This partition ID is normalized with the standard default context - * partition ID. - * @type ReadOptions $readOptions - * The options for this query. - * @type AggregationQuery $aggregationQuery - * The query to run. - * @type GqlQuery $gqlQuery - * The GQL query to run. This query must be an aggregation query. - * @type ExplainOptions $explainOptions - * Optional. Explain options for the query. If set, additional query - * statistics will be returned. If not, only query results will be returned. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Datastore\V1\RunAggregationQueryResponse - * - * @throws ApiException if the remote call fails - */ - public function runAggregationQuery($projectId, array $optionalArgs = []) - { - $request = new RunAggregationQueryRequest(); - $requestParamHeaders = []; - $request->setProjectId($projectId); - $requestParamHeaders['project_id'] = $projectId; - if (isset($optionalArgs['databaseId'])) { - $request->setDatabaseId($optionalArgs['databaseId']); - $requestParamHeaders['database_id'] = $optionalArgs['databaseId']; - } - - if (isset($optionalArgs['partitionId'])) { - $request->setPartitionId($optionalArgs['partitionId']); - } - - if (isset($optionalArgs['readOptions'])) { - $request->setReadOptions($optionalArgs['readOptions']); - } - - if (isset($optionalArgs['aggregationQuery'])) { - $request->setAggregationQuery($optionalArgs['aggregationQuery']); - } - - if (isset($optionalArgs['gqlQuery'])) { - $request->setGqlQuery($optionalArgs['gqlQuery']); - } - - if (isset($optionalArgs['explainOptions'])) { - $request->setExplainOptions($optionalArgs['explainOptions']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunAggregationQuery', RunAggregationQueryResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Queries for entities. - * - * Sample code: - * ``` - * $datastoreClient = new DatastoreClient(); - * try { - * $projectId = 'project_id'; - * $partitionId = new PartitionId(); - * $response = $datastoreClient->runQuery($projectId, $partitionId); - * } finally { - * $datastoreClient->close(); - * } - * ``` - * - * @param string $projectId Required. The ID of the project against which to make the request. - * @param PartitionId $partitionId Entities are partitioned into subsets, identified by a partition ID. - * Queries are scoped to a single partition. - * This partition ID is normalized with the standard default context - * partition ID. - * @param array $optionalArgs { - * Optional. - * - * @type string $databaseId - * The ID of the database against which to make the request. - * - * '(default)' is not allowed; please use empty string '' to refer the default - * database. - * @type ReadOptions $readOptions - * The options for this query. - * @type Query $query - * The query to run. - * @type GqlQuery $gqlQuery - * The GQL query to run. This query must be a non-aggregation query. - * @type PropertyMask $propertyMask - * The properties to return. - * This field must not be set for a projection query. - * - * See - * [LookupRequest.property_mask][google.datastore.v1.LookupRequest.property_mask]. - * @type ExplainOptions $explainOptions - * Optional. Explain options for the query. If set, additional query - * statistics will be returned. If not, only query results will be returned. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Datastore\V1\RunQueryResponse - * - * @throws ApiException if the remote call fails - */ - public function runQuery($projectId, $partitionId, array $optionalArgs = []) - { - $request = new RunQueryRequest(); - $requestParamHeaders = []; - $request->setProjectId($projectId); - $request->setPartitionId($partitionId); - $requestParamHeaders['project_id'] = $projectId; - if (isset($optionalArgs['databaseId'])) { - $request->setDatabaseId($optionalArgs['databaseId']); - $requestParamHeaders['database_id'] = $optionalArgs['databaseId']; - } - - if (isset($optionalArgs['readOptions'])) { - $request->setReadOptions($optionalArgs['readOptions']); - } - - if (isset($optionalArgs['query'])) { - $request->setQuery($optionalArgs['query']); - } - - if (isset($optionalArgs['gqlQuery'])) { - $request->setGqlQuery($optionalArgs['gqlQuery']); - } - - if (isset($optionalArgs['propertyMask'])) { - $request->setPropertyMask($optionalArgs['propertyMask']); - } - - if (isset($optionalArgs['explainOptions'])) { - $request->setExplainOptions($optionalArgs['explainOptions']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('RunQuery', RunQueryResponse::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/Datastore/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Datastore/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 7cfff6525f13..000000000000 --- a/owl-bot-staging/Datastore/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.datastore.v1", - "libraryPackage": "Google\\Cloud\\Datastore\\V1", - "services": { - "Datastore": { - "clients": { - "grpc": { - "libraryClient": "DatastoreGapicClient", - "rpcs": { - "AllocateIds": { - "methods": [ - "allocateIds" - ] - }, - "BeginTransaction": { - "methods": [ - "beginTransaction" - ] - }, - "Commit": { - "methods": [ - "commit" - ] - }, - "Lookup": { - "methods": [ - "lookup" - ] - }, - "ReserveIds": { - "methods": [ - "reserveIds" - ] - }, - "Rollback": { - "methods": [ - "rollback" - ] - }, - "RunAggregationQuery": { - "methods": [ - "runAggregationQuery" - ] - }, - "RunQuery": { - "methods": [ - "runQuery" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Datastore/v1/src/V1/resources/datastore_client_config.json b/owl-bot-staging/Datastore/v1/src/V1/resources/datastore_client_config.json deleted file mode 100644 index 081d5f9f6b62..000000000000 --- a/owl-bot-staging/Datastore/v1/src/V1/resources/datastore_client_config.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "interfaces": { - "google.datastore.v1.Datastore": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ], - "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 - }, - "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 - }, - "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": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - } - }, - "methods": { - "AllocateIds": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "BeginTransaction": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "Commit": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "Lookup": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ReserveIds": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "Rollback": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "RunAggregationQuery": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RunQuery": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Datastore/v1/src/V1/resources/datastore_descriptor_config.php b/owl-bot-staging/Datastore/v1/src/V1/resources/datastore_descriptor_config.php deleted file mode 100644 index 533cf81dbb42..000000000000 --- a/owl-bot-staging/Datastore/v1/src/V1/resources/datastore_descriptor_config.php +++ /dev/null @@ -1,172 +0,0 @@ - [ - 'google.datastore.v1.Datastore' => [ - 'AllocateIds' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Datastore\V1\AllocateIdsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'database_id', - 'fieldAccessors' => [ - 'getDatabaseId', - ], - ], - ], - ], - 'BeginTransaction' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Datastore\V1\BeginTransactionResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'database_id', - 'fieldAccessors' => [ - 'getDatabaseId', - ], - ], - ], - ], - 'Commit' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Datastore\V1\CommitResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'database_id', - 'fieldAccessors' => [ - 'getDatabaseId', - ], - ], - ], - ], - 'Lookup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Datastore\V1\LookupResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'database_id', - 'fieldAccessors' => [ - 'getDatabaseId', - ], - ], - ], - ], - 'ReserveIds' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Datastore\V1\ReserveIdsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'database_id', - 'fieldAccessors' => [ - 'getDatabaseId', - ], - ], - ], - ], - 'Rollback' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Datastore\V1\RollbackResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'database_id', - 'fieldAccessors' => [ - 'getDatabaseId', - ], - ], - ], - ], - 'RunAggregationQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Datastore\V1\RunAggregationQueryResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'database_id', - 'fieldAccessors' => [ - 'getDatabaseId', - ], - ], - ], - ], - 'RunQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Datastore\V1\RunQueryResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'database_id', - 'fieldAccessors' => [ - 'getDatabaseId', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/Datastore/v1/src/V1/resources/datastore_rest_client_config.php b/owl-bot-staging/Datastore/v1/src/V1/resources/datastore_rest_client_config.php deleted file mode 100644 index b3e9cc385e70..000000000000 --- a/owl-bot-staging/Datastore/v1/src/V1/resources/datastore_rest_client_config.php +++ /dev/null @@ -1,171 +0,0 @@ - [ - 'google.datastore.v1.Datastore' => [ - 'AllocateIds' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}:allocateIds', - 'body' => '*', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'BeginTransaction' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}:beginTransaction', - 'body' => '*', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'Commit' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}:commit', - 'body' => '*', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'Lookup' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}:lookup', - 'body' => '*', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'ReserveIds' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}:reserveIds', - 'body' => '*', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'Rollback' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}:rollback', - 'body' => '*', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'RunAggregationQuery' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}:runAggregationQuery', - 'body' => '*', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'RunQuery' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}:runQuery', - 'body' => '*', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Datastore/v1/tests/Unit/V1/Client/DatastoreClientTest.php b/owl-bot-staging/Datastore/v1/tests/Unit/V1/Client/DatastoreClientTest.php deleted file mode 100644 index 57ffe283b6f1..000000000000 --- a/owl-bot-staging/Datastore/v1/tests/Unit/V1/Client/DatastoreClientTest.php +++ /dev/null @@ -1,657 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DatastoreClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DatastoreClient($options); - } - - /** @test */ - public function allocateIdsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AllocateIdsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - $request = (new AllocateIdsRequest()) - ->setProjectId($projectId) - ->setKeys($keys); - $response = $gapicClient->allocateIds($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/AllocateIds', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getKeys(); - $this->assertProtobufEquals($keys, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function allocateIdsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - $request = (new AllocateIdsRequest()) - ->setProjectId($projectId) - ->setKeys($keys); - try { - $gapicClient->allocateIds($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function beginTransactionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $transaction = '-34'; - $expectedResponse = new BeginTransactionResponse(); - $expectedResponse->setTransaction($transaction); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $request = (new BeginTransactionRequest()) - ->setProjectId($projectId); - $response = $gapicClient->beginTransaction($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/BeginTransaction', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function beginTransactionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $request = (new BeginTransactionRequest()) - ->setProjectId($projectId); - try { - $gapicClient->beginTransaction($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $indexUpdates = 1425228195; - $expectedResponse = new CommitResponse(); - $expectedResponse->setIndexUpdates($indexUpdates); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $mode = Mode::MODE_UNSPECIFIED; - $mutations = []; - $request = (new CommitRequest()) - ->setProjectId($projectId) - ->setMode($mode) - ->setMutations($mutations); - $response = $gapicClient->commit($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/Commit', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getMode(); - $this->assertProtobufEquals($mode, $actualValue); - $actualValue = $actualRequestObject->getMutations(); - $this->assertProtobufEquals($mutations, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $mode = Mode::MODE_UNSPECIFIED; - $mutations = []; - $request = (new CommitRequest()) - ->setProjectId($projectId) - ->setMode($mode) - ->setMutations($mutations); - try { - $gapicClient->commit($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $transaction = '-34'; - $expectedResponse = new LookupResponse(); - $expectedResponse->setTransaction($transaction); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - $request = (new LookupRequest()) - ->setProjectId($projectId) - ->setKeys($keys); - $response = $gapicClient->lookup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/Lookup', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getKeys(); - $this->assertProtobufEquals($keys, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - $request = (new LookupRequest()) - ->setProjectId($projectId) - ->setKeys($keys); - try { - $gapicClient->lookup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reserveIdsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ReserveIdsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - $request = (new ReserveIdsRequest()) - ->setProjectId($projectId) - ->setKeys($keys); - $response = $gapicClient->reserveIds($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/ReserveIds', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getKeys(); - $this->assertProtobufEquals($keys, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reserveIdsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - $request = (new ReserveIdsRequest()) - ->setProjectId($projectId) - ->setKeys($keys); - try { - $gapicClient->reserveIds($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RollbackResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $transaction = '-34'; - $request = (new RollbackRequest()) - ->setProjectId($projectId) - ->setTransaction($transaction); - $response = $gapicClient->rollback($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/Rollback', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getTransaction(); - $this->assertProtobufEquals($transaction, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $transaction = '-34'; - $request = (new RollbackRequest()) - ->setProjectId($projectId) - ->setTransaction($transaction); - try { - $gapicClient->rollback($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAggregationQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $transaction = '-34'; - $expectedResponse = new RunAggregationQueryResponse(); - $expectedResponse->setTransaction($transaction); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $request = (new RunAggregationQueryRequest()) - ->setProjectId($projectId); - $response = $gapicClient->runAggregationQuery($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/RunAggregationQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAggregationQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $request = (new RunAggregationQueryRequest()) - ->setProjectId($projectId); - try { - $gapicClient->runAggregationQuery($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $transaction = '-34'; - $expectedResponse = new RunQueryResponse(); - $expectedResponse->setTransaction($transaction); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $partitionId = new PartitionId(); - $request = (new RunQueryRequest()) - ->setProjectId($projectId) - ->setPartitionId($partitionId); - $response = $gapicClient->runQuery($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/RunQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getPartitionId(); - $this->assertProtobufEquals($partitionId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $partitionId = new PartitionId(); - $request = (new RunQueryRequest()) - ->setProjectId($projectId) - ->setPartitionId($partitionId); - try { - $gapicClient->runQuery($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function allocateIdsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AllocateIdsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - $request = (new AllocateIdsRequest()) - ->setProjectId($projectId) - ->setKeys($keys); - $response = $gapicClient->allocateIdsAsync($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.datastore.v1.Datastore/AllocateIds', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getKeys(); - $this->assertProtobufEquals($keys, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Datastore/v1/tests/Unit/V1/DatastoreClientTest.php b/owl-bot-staging/Datastore/v1/tests/Unit/V1/DatastoreClientTest.php deleted file mode 100644 index fa2f88b51f95..000000000000 --- a/owl-bot-staging/Datastore/v1/tests/Unit/V1/DatastoreClientTest.php +++ /dev/null @@ -1,572 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DatastoreClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DatastoreClient($options); - } - - /** @test */ - public function allocateIdsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new AllocateIdsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - $response = $gapicClient->allocateIds($projectId, $keys); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/AllocateIds', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getKeys(); - $this->assertProtobufEquals($keys, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function allocateIdsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - try { - $gapicClient->allocateIds($projectId, $keys); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function beginTransactionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $transaction = '-34'; - $expectedResponse = new BeginTransactionResponse(); - $expectedResponse->setTransaction($transaction); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $response = $gapicClient->beginTransaction($projectId); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/BeginTransaction', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function beginTransactionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - try { - $gapicClient->beginTransaction($projectId); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $indexUpdates = 1425228195; - $expectedResponse = new CommitResponse(); - $expectedResponse->setIndexUpdates($indexUpdates); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $mode = Mode::MODE_UNSPECIFIED; - $mutations = []; - $response = $gapicClient->commit($projectId, $mode, $mutations); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/Commit', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getMode(); - $this->assertProtobufEquals($mode, $actualValue); - $actualValue = $actualRequestObject->getMutations(); - $this->assertProtobufEquals($mutations, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function commitExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $mode = Mode::MODE_UNSPECIFIED; - $mutations = []; - try { - $gapicClient->commit($projectId, $mode, $mutations); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $transaction = '-34'; - $expectedResponse = new LookupResponse(); - $expectedResponse->setTransaction($transaction); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - $response = $gapicClient->lookup($projectId, $keys); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/Lookup', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getKeys(); - $this->assertProtobufEquals($keys, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function lookupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - try { - $gapicClient->lookup($projectId, $keys); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reserveIdsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ReserveIdsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - $response = $gapicClient->reserveIds($projectId, $keys); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/ReserveIds', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getKeys(); - $this->assertProtobufEquals($keys, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reserveIdsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $keys = []; - try { - $gapicClient->reserveIds($projectId, $keys); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RollbackResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $transaction = '-34'; - $response = $gapicClient->rollback($projectId, $transaction); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/Rollback', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getTransaction(); - $this->assertProtobufEquals($transaction, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rollbackExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $transaction = '-34'; - try { - $gapicClient->rollback($projectId, $transaction); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAggregationQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $transaction = '-34'; - $expectedResponse = new RunAggregationQueryResponse(); - $expectedResponse->setTransaction($transaction); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $response = $gapicClient->runAggregationQuery($projectId); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/RunAggregationQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runAggregationQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - try { - $gapicClient->runAggregationQuery($projectId); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $transaction = '-34'; - $expectedResponse = new RunQueryResponse(); - $expectedResponse->setTransaction($transaction); - $transport->addResponse($expectedResponse); - // Mock request - $projectId = 'projectId-1969970175'; - $partitionId = new PartitionId(); - $response = $gapicClient->runQuery($projectId, $partitionId); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.v1.Datastore/RunQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualRequestObject->getPartitionId(); - $this->assertProtobufEquals($partitionId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function runQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $projectId = 'projectId-1969970175'; - $partitionId = new PartitionId(); - try { - $gapicClient->runQuery($projectId, $partitionId); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/GPBMetadata/Google/Datastore/Admin/V1/DatastoreAdmin.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/GPBMetadata/Google/Datastore/Admin/V1/DatastoreAdmin.php deleted file mode 100644 index 829af1f13365d0c27d09f96f04bd9d78f234f8c5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5468 zcmeHL&2Jl35XW|t#xISNY}Gc6)OPE%Y7!;uCKN$8ZDC_?B1^7gC2rJKmR4)~*;%sQ zU3Q=IL6r-F143|s1AhSGLJu7HFLH!ixp3fw#0|lfd2c_wb{yNGLgGL#>8@wy&HQHO zH?!}-yVj0{X83h%U|S`)%9js$vV(ccHi=m=b-vuJ)v(Q1%!Z}u*cNy`v%%*#ioBf3 z7H@*8V>ayy7Wukq)^(h!szh~&Y2%byZD>YnZ>jZ4VXp*c8zDn&V8>D`m|rifKE_0) zs-<;irj+r`lq71Vw7s-~P(@cAhYx;Yzn~Y0hksVHtZNnCAu54Cw=_r542@{2u6+nW zJ>+Yu?qD!+QnuDKDnv64o+@k@6+An~yEdupEz1ND9`e3l1&Rw`Qpy?x+lH!_GT5ou zngt;jKvWd#m;`9jH?wozvDBPa<7ZtTMe&4_4|!rYarktew=rqj#tQSB8aN96SL%YA zWN9VIFieVqX*ip#J5w!Nk4E1oUY(oz+cWVZ#UZ-joR(M&33FO{Ca?bE%` zXudqLxzoiOeo{Qq8BbJiA)hh>{Nu0%#JQk3+`#I78nwOJaG$X1RGUXI@(wIJ(LK%RLG%)r(&R!Sf2GyI0?HD6jTx9 zIT;P>Y8mU!)Hyx|zP;5$vpqB+$Mj@_*oWLBG(`CWPYtp2Q-fRCqH5ENXf$kY6vcM& zA%iQu^?i>duT_kK_?oECYJm> ziZ00qmT40J5+(z7Ht`2dkm9Z&1cmlKt`J3Yt;APjzerIo7o;r8Qud$+*j-I`WNr-T zRU?N=P19j^unHPoF5T&6l_>y4fIN2{O`1(&HHp%+b;YuAO*?>Mf>beg&zjm#0FZ3s zUjwA8={7(vqqt^x;V>{f*dL(|plFO|0P3tjETGGs*>fzIo|uDLY$5J8N%Cd1Q#_!c z`)C-d5lG3SpSd2HZEtaC>q)3VR@n-x5~xpBxTDK6J*))Xu!0hSe)*7qGUcZMm0uTd z?rOKnqy!aDegkl|m%{&WO@<5Kh3Ou;z-Z~v>vf>wU6`;AR8nj<4&*x)Y|B7Wv^3y# z@)_dNHU^So%ahM%P_>f6g zWAYCa6~yH<$JK1{bGLXBXgI{8aSkB0)H+riSoawx4$4-AcQ10N72bOf84$!{Z2@N_o{#{Ykz;7=y$WdzLxYxtT5GnIa{ z1v_-$^eP$;b~wddJ?L_kSnkDcff;vqfbA)416z#RdT&o56WE$RLSq4*Y@ND}rZ)=m zrc}&snB*ihh2 zM$XB>n{&$_Ba{fhVxOJdpAnR39~<1=9$nQg>b2_hHD4pN4!8Ek0S>2Bw^*@TZ~ zHk~@AmY=a#(o(Da7u=n5p>6Y6Xbm-Qjri!NU%!gpPV)3?-BWf_FIr}fM9fwvF*48n z4uQ8bde6YyMF$N0QwThTE_H72a>F8r+$ryvHCExU)I*HNY5}7Cm7M$@y*x zJwj*`ciTBR$DEwu`saCi?^v2@RiE1>@Nw@5uzvn1J>4P1a>P_>e}CWe!T&L(Hpvd$ z0hrC|qNS^(X4;K~e&WGNt3OB3H8|q*z*aA|vt)tZmK7q;@3SL)Jum^+8?9?W@1_u( z1o~mO7FK!1`}=ke{Ar2Gb5m1Ja&f%3sG~HTA4Q$IcNizwD+n{X7uIy%5Uj%Y5DYzBacyeHG>CA;c29_3IjvTR z@8ZvjPz3Pp6C8)OgV8~&c7&u%B=8X@G<^q`w@{+Vu^VB)I^ILma$0-{ zYyg(&QylrWXX!Y0A`-IxS`4bHLrl}r@kn`Vl9tPn0V*dos_L~O_YjT7_;PlHB234T zzboqI0_W*J>mS3?LSpR`?71~OvQJ46sp>^n7b2pm?bl?|g66tu#rtfdO> zYDp4Vp5B^8pE5+1Yj0ux@)YD%SkW4Fqtk7+dq+*(=)G%nT1MU6Hx0dbN1lURquDTu z8CK7Nc6ivEf;&ZN&45CxF0a6{Znlkj*K9Vfh%7)s>(q^gZZ-~>(jtIvr0>#N3-V$V zZ23!_uGYO;!#vE@+lJOn*agV57yW%vlGz8{I5fnEtjs?aOAiy1QtCn?wJJqem2zDDF-2IG zfLNF8Y~p9k(Edp4iH@oYl&Ypmsw$*Z^|;!fVYh|`FE-QL`7H5^OZIZ3wFqQl0OxQH F@E2iu&aMCe diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/GPBMetadata/Google/Datastore/Admin/V1/Migration.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/GPBMetadata/Google/Datastore/Admin/V1/Migration.php deleted file mode 100644 index 53596831cf26ce0da4d8498da618d631c07c1f87..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1926 zcmcJQQE!`86vu0)N!ODuwdho}S-ak*(dtwimOE+c$g+t5anNEwfSq}>gfLvYNEqk^ zr|YJCn7!_!>;vp+Z+qLP*a2+fB#o3l%r6*p&hP)f=N_H&?f1#+1fG!&jVN<7>XXqs zlD(!RVR06FaY#n9@t88=#nU7RDdP!|b)xAuQDoJAim7QlV;&XAB#tK`ZTW8IrdiBr z%k`&0)H-RmrojZ+K^*Y~6(Dk_G)-KOl8&+8rJ0*24Lb#3C@%m*F$WC$?Ogybbkme{ z7a;fz2>z1UC=5K3W=QwQc91$j6l8%L2EXD-_Q==`Q;OM_W5=_|%N>zCL61Dz+#w}1 zkKImUJoz43STgcrU?GNTlu;JB;ZUZj$ASdUX<(=zOlVe>F#pornak$5U`(2&M?tt` za*t$eMwitIVKkeuXt(g415T@dg|jce3+6sV->+m3@Oqk6V4n6I{s!2&_PuZq%TT_$ zLcX{{{-nL7!@a8b7M7bTCp5~qSFoBNj6SH5T65#&4u2(qKcBw!`zqY8K4E<)jHYP` z{Tgnj8BONQ=Jl8~;e7ZcVKi|Wb@F`2$Hof6^g$iHt-qA7!#QV!H%gj?Fu7zM-r!Pr z#Hb%I>SfMb7GyL%ueMUC{qW&x=A3$5K+lP8z5(vC8SZCjcyZ*-7^9K*&Y8yk;v&Qk zmzT~+T?B3Z0uQfr^uH=^y@k6M%y0xANxCNWOjFUMfz#Dx#p!95p-Ae1s>qES++A2V z6w6Y(s%5KEqsDCj=!U&`uX9h~@!7j`tlEc;qS>lFa5|>mGpxqS{s!DxZk!iC!ba7i zMbmRn;M1Wu^ellNr$Gc={@Uc z(746j!(!^jz!5ds=_{ssFhDa+*fw!|n~G#RN*~M66ORyqCAP49`0kjBC}T;u&ta>I zv~1*d-WPW>m#N}PCymwpziRLp_r}$|xPMmPV#FG?pT6google.datastore.admin.v1.CommonMetadata - */ -class CommonMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The time that work began on the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * The time the operation ended, either successfully or otherwise. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - /** - * The type of the operation. Can be used as a filter in - * ListOperationsRequest. - * - * Generated from protobuf field .google.datastore.admin.v1.OperationType operation_type = 3; - */ - protected $operation_type = 0; - /** - * The client-assigned labels which were provided when the operation was - * created. May also include additional labels. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * The current state of the Operation. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata.State state = 5; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * The time that work began on the operation. - * @type \Google\Protobuf\Timestamp $end_time - * The time the operation ended, either successfully or otherwise. - * @type int $operation_type - * The type of the operation. Can be used as a filter in - * ListOperationsRequest. - * @type array|\Google\Protobuf\Internal\MapField $labels - * The client-assigned labels which were provided when the operation was - * created. May also include additional labels. - * @type int $state - * The current state of the Operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The time that work began on the operation. - * - * 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 time that work began on the operation. - * - * 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 time the operation ended, either successfully or otherwise. - * - * 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 ended, either successfully or otherwise. - * - * 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 type of the operation. Can be used as a filter in - * ListOperationsRequest. - * - * Generated from protobuf field .google.datastore.admin.v1.OperationType operation_type = 3; - * @return int - */ - public function getOperationType() - { - return $this->operation_type; - } - - /** - * The type of the operation. Can be used as a filter in - * ListOperationsRequest. - * - * Generated from protobuf field .google.datastore.admin.v1.OperationType operation_type = 3; - * @param int $var - * @return $this - */ - public function setOperationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\OperationType::class); - $this->operation_type = $var; - - return $this; - } - - /** - * The client-assigned labels which were provided when the operation was - * created. May also include additional labels. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The client-assigned labels which were provided when the operation was - * created. May also include additional labels. - * - * Generated from protobuf field map labels = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * The current state of the Operation. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata.State state = 5; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The current state of the Operation. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata.State state = 5; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\CommonMetadata\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/CommonMetadata/State.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/CommonMetadata/State.php deleted file mode 100644 index d4285dea144b..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/CommonMetadata/State.php +++ /dev/null @@ -1,101 +0,0 @@ -google.datastore.admin.v1.CommonMetadata.State - */ -class State -{ - /** - * Unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Request is being prepared for processing. - * - * Generated from protobuf enum INITIALIZING = 1; - */ - const INITIALIZING = 1; - /** - * Request is actively being processed. - * - * Generated from protobuf enum PROCESSING = 2; - */ - const PROCESSING = 2; - /** - * Request is in the process of being cancelled after user called - * google.longrunning.Operations.CancelOperation on the operation. - * - * Generated from protobuf enum CANCELLING = 3; - */ - const CANCELLING = 3; - /** - * Request has been processed and is in its finalization stage. - * - * Generated from protobuf enum FINALIZING = 4; - */ - const FINALIZING = 4; - /** - * Request has completed successfully. - * - * Generated from protobuf enum SUCCESSFUL = 5; - */ - const SUCCESSFUL = 5; - /** - * Request has finished being processed, but encountered an error. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - /** - * Request has finished being cancelled after user called - * google.longrunning.Operations.CancelOperation. - * - * Generated from protobuf enum CANCELLED = 7; - */ - const CANCELLED = 7; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::INITIALIZING => 'INITIALIZING', - self::PROCESSING => 'PROCESSING', - self::CANCELLING => 'CANCELLING', - self::FINALIZING => 'FINALIZING', - self::SUCCESSFUL => 'SUCCESSFUL', - self::FAILED => 'FAILED', - self::CANCELLED => '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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Datastore\Admin\V1\CommonMetadata_State::class); - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/CreateIndexRequest.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/CreateIndexRequest.php deleted file mode 100644 index 45f67c62b736..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/CreateIndexRequest.php +++ /dev/null @@ -1,116 +0,0 @@ -google.datastore.admin.v1.CreateIndexRequest - */ -class CreateIndexRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The index to create. The name and state fields are output only and will be - * ignored. Single property indexes cannot be created or deleted. - * - * Generated from protobuf field .google.datastore.admin.v1.Index index = 3; - */ - protected $index = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Project ID against which to make the request. - * @type \Google\Cloud\Datastore\Admin\V1\Index $index - * The index to create. The name and state fields are output only and will be - * ignored. Single property indexes cannot be created or deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The index to create. The name and state fields are output only and will be - * ignored. Single property indexes cannot be created or deleted. - * - * Generated from protobuf field .google.datastore.admin.v1.Index index = 3; - * @return \Google\Cloud\Datastore\Admin\V1\Index|null - */ - public function getIndex() - { - return $this->index; - } - - public function hasIndex() - { - return isset($this->index); - } - - public function clearIndex() - { - unset($this->index); - } - - /** - * The index to create. The name and state fields are output only and will be - * ignored. Single property indexes cannot be created or deleted. - * - * Generated from protobuf field .google.datastore.admin.v1.Index index = 3; - * @param \Google\Cloud\Datastore\Admin\V1\Index $var - * @return $this - */ - public function setIndex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\Index::class); - $this->index = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/DatastoreFirestoreMigrationMetadata.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/DatastoreFirestoreMigrationMetadata.php deleted file mode 100644 index eac72af58463..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/DatastoreFirestoreMigrationMetadata.php +++ /dev/null @@ -1,114 +0,0 @@ -google.datastore.admin.v1.DatastoreFirestoreMigrationMetadata - */ -class DatastoreFirestoreMigrationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The current state of migration from Cloud Datastore to Cloud Firestore in - * Datastore mode. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationState migration_state = 1; - */ - protected $migration_state = 0; - /** - * The current step of migration from Cloud Datastore to Cloud Firestore in - * Datastore mode. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationStep migration_step = 2; - */ - protected $migration_step = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $migration_state - * The current state of migration from Cloud Datastore to Cloud Firestore in - * Datastore mode. - * @type int $migration_step - * The current step of migration from Cloud Datastore to Cloud Firestore in - * Datastore mode. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The current state of migration from Cloud Datastore to Cloud Firestore in - * Datastore mode. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationState migration_state = 1; - * @return int - */ - public function getMigrationState() - { - return $this->migration_state; - } - - /** - * The current state of migration from Cloud Datastore to Cloud Firestore in - * Datastore mode. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationState migration_state = 1; - * @param int $var - * @return $this - */ - public function setMigrationState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\MigrationState::class); - $this->migration_state = $var; - - return $this; - } - - /** - * The current step of migration from Cloud Datastore to Cloud Firestore in - * Datastore mode. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationStep migration_step = 2; - * @return int - */ - public function getMigrationStep() - { - return $this->migration_step; - } - - /** - * The current step of migration from Cloud Datastore to Cloud Firestore in - * Datastore mode. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationStep migration_step = 2; - * @param int $var - * @return $this - */ - public function setMigrationStep($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\MigrationStep::class); - $this->migration_step = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/DeleteIndexRequest.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/DeleteIndexRequest.php deleted file mode 100644 index 330322229f48..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/DeleteIndexRequest.php +++ /dev/null @@ -1,102 +0,0 @@ -google.datastore.admin.v1.DeleteIndexRequest - */ -class DeleteIndexRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The resource ID of the index to delete. - * - * Generated from protobuf field string index_id = 3; - */ - protected $index_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Project ID against which to make the request. - * @type string $index_id - * The resource ID of the index to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The resource ID of the index to delete. - * - * Generated from protobuf field string index_id = 3; - * @return string - */ - public function getIndexId() - { - return $this->index_id; - } - - /** - * The resource ID of the index to delete. - * - * Generated from protobuf field string index_id = 3; - * @param string $var - * @return $this - */ - public function setIndexId($var) - { - GPBUtil::checkString($var, True); - $this->index_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/EntityFilter.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/EntityFilter.php deleted file mode 100644 index c03b62ee37e7..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/EntityFilter.php +++ /dev/null @@ -1,134 +0,0 @@ -google.datastore.admin.v1.EntityFilter - */ -class EntityFilter extends \Google\Protobuf\Internal\Message -{ - /** - * If empty, then this represents all kinds. - * - * Generated from protobuf field repeated string kinds = 1; - */ - private $kinds; - /** - * An empty list represents all namespaces. This is the preferred - * usage for projects that don't use namespaces. - * An empty string element represents the default namespace. This should be - * used if the project has data in non-default namespaces, but doesn't want to - * include them. - * Each namespace in this list must be unique. - * - * Generated from protobuf field repeated string namespace_ids = 2; - */ - private $namespace_ids; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $kinds - * If empty, then this represents all kinds. - * @type array|\Google\Protobuf\Internal\RepeatedField $namespace_ids - * An empty list represents all namespaces. This is the preferred - * usage for projects that don't use namespaces. - * An empty string element represents the default namespace. This should be - * used if the project has data in non-default namespaces, but doesn't want to - * include them. - * Each namespace in this list must be unique. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * If empty, then this represents all kinds. - * - * Generated from protobuf field repeated string kinds = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKinds() - { - return $this->kinds; - } - - /** - * If empty, then this represents all kinds. - * - * Generated from protobuf field repeated string kinds = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKinds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->kinds = $arr; - - return $this; - } - - /** - * An empty list represents all namespaces. This is the preferred - * usage for projects that don't use namespaces. - * An empty string element represents the default namespace. This should be - * used if the project has data in non-default namespaces, but doesn't want to - * include them. - * Each namespace in this list must be unique. - * - * Generated from protobuf field repeated string namespace_ids = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNamespaceIds() - { - return $this->namespace_ids; - } - - /** - * An empty list represents all namespaces. This is the preferred - * usage for projects that don't use namespaces. - * An empty string element represents the default namespace. This should be - * used if the project has data in non-default namespaces, but doesn't want to - * include them. - * Each namespace in this list must be unique. - * - * Generated from protobuf field repeated string namespace_ids = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNamespaceIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->namespace_ids = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesMetadata.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesMetadata.php deleted file mode 100644 index 72554a9ea05e..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesMetadata.php +++ /dev/null @@ -1,259 +0,0 @@ -google.datastore.admin.v1.ExportEntitiesMetadata - */ -class ExportEntitiesMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Metadata common to all Datastore Admin operations. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata common = 1; - */ - protected $common = null; - /** - * An estimate of the number of entities processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_entities = 2; - */ - protected $progress_entities = null; - /** - * An estimate of the number of bytes processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_bytes = 3; - */ - protected $progress_bytes = null; - /** - * Description of which entities are being exported. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 4; - */ - protected $entity_filter = null; - /** - * Location for the export metadata and data files. This will be the same - * value as the - * [google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix] - * field. The final output location is provided in - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. - * - * Generated from protobuf field string output_url_prefix = 5; - */ - protected $output_url_prefix = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\Admin\V1\CommonMetadata $common - * Metadata common to all Datastore Admin operations. - * @type \Google\Cloud\Datastore\Admin\V1\Progress $progress_entities - * An estimate of the number of entities processed. - * @type \Google\Cloud\Datastore\Admin\V1\Progress $progress_bytes - * An estimate of the number of bytes processed. - * @type \Google\Cloud\Datastore\Admin\V1\EntityFilter $entity_filter - * Description of which entities are being exported. - * @type string $output_url_prefix - * Location for the export metadata and data files. This will be the same - * value as the - * [google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix] - * field. The final output location is provided in - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Metadata common to all Datastore Admin operations. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata common = 1; - * @return \Google\Cloud\Datastore\Admin\V1\CommonMetadata|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Metadata common to all Datastore Admin operations. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata common = 1; - * @param \Google\Cloud\Datastore\Admin\V1\CommonMetadata $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\CommonMetadata::class); - $this->common = $var; - - return $this; - } - - /** - * An estimate of the number of entities processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_entities = 2; - * @return \Google\Cloud\Datastore\Admin\V1\Progress|null - */ - public function getProgressEntities() - { - return $this->progress_entities; - } - - public function hasProgressEntities() - { - return isset($this->progress_entities); - } - - public function clearProgressEntities() - { - unset($this->progress_entities); - } - - /** - * An estimate of the number of entities processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_entities = 2; - * @param \Google\Cloud\Datastore\Admin\V1\Progress $var - * @return $this - */ - public function setProgressEntities($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\Progress::class); - $this->progress_entities = $var; - - return $this; - } - - /** - * An estimate of the number of bytes processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_bytes = 3; - * @return \Google\Cloud\Datastore\Admin\V1\Progress|null - */ - public function getProgressBytes() - { - return $this->progress_bytes; - } - - public function hasProgressBytes() - { - return isset($this->progress_bytes); - } - - public function clearProgressBytes() - { - unset($this->progress_bytes); - } - - /** - * An estimate of the number of bytes processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_bytes = 3; - * @param \Google\Cloud\Datastore\Admin\V1\Progress $var - * @return $this - */ - public function setProgressBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\Progress::class); - $this->progress_bytes = $var; - - return $this; - } - - /** - * Description of which entities are being exported. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * @return \Google\Cloud\Datastore\Admin\V1\EntityFilter|null - */ - public function getEntityFilter() - { - return $this->entity_filter; - } - - public function hasEntityFilter() - { - return isset($this->entity_filter); - } - - public function clearEntityFilter() - { - unset($this->entity_filter); - } - - /** - * Description of which entities are being exported. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * @param \Google\Cloud\Datastore\Admin\V1\EntityFilter $var - * @return $this - */ - public function setEntityFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\EntityFilter::class); - $this->entity_filter = $var; - - return $this; - } - - /** - * Location for the export metadata and data files. This will be the same - * value as the - * [google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix] - * field. The final output location is provided in - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. - * - * Generated from protobuf field string output_url_prefix = 5; - * @return string - */ - public function getOutputUrlPrefix() - { - return $this->output_url_prefix; - } - - /** - * Location for the export metadata and data files. This will be the same - * value as the - * [google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix][google.datastore.admin.v1.ExportEntitiesRequest.output_url_prefix] - * field. The final output location is provided in - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. - * - * Generated from protobuf field string output_url_prefix = 5; - * @param string $var - * @return $this - */ - public function setOutputUrlPrefix($var) - { - GPBUtil::checkString($var, True); - $this->output_url_prefix = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesRequest.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesRequest.php deleted file mode 100644 index 983ecc49e75d..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesRequest.php +++ /dev/null @@ -1,272 +0,0 @@ -google.datastore.admin.v1.ExportEntitiesRequest - */ -class ExportEntitiesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Client-assigned labels. - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - /** - * Description of what data from the project is included in the export. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 3; - */ - protected $entity_filter = null; - /** - * Required. Location for the export metadata and data files. - * The full resource URL of the external storage location. Currently, only - * Google Cloud Storage is supported. So output_url_prefix should be of the - * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the - * name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud - * Storage namespace path (this is not a Cloud Datastore namespace). For more - * information about Cloud Storage namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - * The resulting files will be nested deeper than the specified URL prefix. - * The final output URL will be provided in the - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] - * field. That value should be used for subsequent ImportEntities operations. - * By nesting the data files deeper, the same Cloud Storage bucket can be used - * in multiple ExportEntities operations without conflict. - * - * Generated from protobuf field string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $output_url_prefix = ''; - - /** - * @param string $projectId Required. Project ID against which to make the request. - * @param array $labels Client-assigned labels. - * @param \Google\Cloud\Datastore\Admin\V1\EntityFilter $entityFilter Description of what data from the project is included in the export. - * @param string $outputUrlPrefix Required. Location for the export metadata and data files. - * - * The full resource URL of the external storage location. Currently, only - * Google Cloud Storage is supported. So output_url_prefix should be of the - * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the - * name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud - * Storage namespace path (this is not a Cloud Datastore namespace). For more - * information about Cloud Storage namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - * - * The resulting files will be nested deeper than the specified URL prefix. - * The final output URL will be provided in the - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] - * field. That value should be used for subsequent ImportEntities operations. - * - * By nesting the data files deeper, the same Cloud Storage bucket can be used - * in multiple ExportEntities operations without conflict. - * - * @return \Google\Cloud\Datastore\Admin\V1\ExportEntitiesRequest - * - * @experimental - */ - public static function build(string $projectId, array $labels, \Google\Cloud\Datastore\Admin\V1\EntityFilter $entityFilter, string $outputUrlPrefix): self - { - return (new self()) - ->setProjectId($projectId) - ->setLabels($labels) - ->setEntityFilter($entityFilter) - ->setOutputUrlPrefix($outputUrlPrefix); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. Project ID against which to make the request. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Client-assigned labels. - * @type \Google\Cloud\Datastore\Admin\V1\EntityFilter $entity_filter - * Description of what data from the project is included in the export. - * @type string $output_url_prefix - * Required. Location for the export metadata and data files. - * The full resource URL of the external storage location. Currently, only - * Google Cloud Storage is supported. So output_url_prefix should be of the - * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the - * name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud - * Storage namespace path (this is not a Cloud Datastore namespace). For more - * information about Cloud Storage namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - * The resulting files will be nested deeper than the specified URL prefix. - * The final output URL will be provided in the - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] - * field. That value should be used for subsequent ImportEntities operations. - * By nesting the data files deeper, the same Cloud Storage bucket can be used - * in multiple ExportEntities operations without conflict. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Client-assigned labels. - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Client-assigned labels. - * - * Generated from protobuf field map labels = 2; - * @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; - } - - /** - * Description of what data from the project is included in the export. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 3; - * @return \Google\Cloud\Datastore\Admin\V1\EntityFilter|null - */ - public function getEntityFilter() - { - return $this->entity_filter; - } - - public function hasEntityFilter() - { - return isset($this->entity_filter); - } - - public function clearEntityFilter() - { - unset($this->entity_filter); - } - - /** - * Description of what data from the project is included in the export. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 3; - * @param \Google\Cloud\Datastore\Admin\V1\EntityFilter $var - * @return $this - */ - public function setEntityFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\EntityFilter::class); - $this->entity_filter = $var; - - return $this; - } - - /** - * Required. Location for the export metadata and data files. - * The full resource URL of the external storage location. Currently, only - * Google Cloud Storage is supported. So output_url_prefix should be of the - * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the - * name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud - * Storage namespace path (this is not a Cloud Datastore namespace). For more - * information about Cloud Storage namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - * The resulting files will be nested deeper than the specified URL prefix. - * The final output URL will be provided in the - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] - * field. That value should be used for subsequent ImportEntities operations. - * By nesting the data files deeper, the same Cloud Storage bucket can be used - * in multiple ExportEntities operations without conflict. - * - * Generated from protobuf field string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getOutputUrlPrefix() - { - return $this->output_url_prefix; - } - - /** - * Required. Location for the export metadata and data files. - * The full resource URL of the external storage location. Currently, only - * Google Cloud Storage is supported. So output_url_prefix should be of the - * form: `gs://BUCKET_NAME[/NAMESPACE_PATH]`, where `BUCKET_NAME` is the - * name of the Cloud Storage bucket and `NAMESPACE_PATH` is an optional Cloud - * Storage namespace path (this is not a Cloud Datastore namespace). For more - * information about Cloud Storage namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - * The resulting files will be nested deeper than the specified URL prefix. - * The final output URL will be provided in the - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] - * field. That value should be used for subsequent ImportEntities operations. - * By nesting the data files deeper, the same Cloud Storage bucket can be used - * in multiple ExportEntities operations without conflict. - * - * Generated from protobuf field string output_url_prefix = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setOutputUrlPrefix($var) - { - GPBUtil::checkString($var, True); - $this->output_url_prefix = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesResponse.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesResponse.php deleted file mode 100644 index f7e9ac101543..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ExportEntitiesResponse.php +++ /dev/null @@ -1,80 +0,0 @@ -google.datastore.admin.v1.ExportEntitiesResponse - */ -class ExportEntitiesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Location of the output metadata file. This can be used to begin an import - * into Cloud Datastore (this project or another project). See - * [google.datastore.admin.v1.ImportEntitiesRequest.input_url][google.datastore.admin.v1.ImportEntitiesRequest.input_url]. - * Only present if the operation completed successfully. - * - * Generated from protobuf field string output_url = 1; - */ - protected $output_url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $output_url - * Location of the output metadata file. This can be used to begin an import - * into Cloud Datastore (this project or another project). See - * [google.datastore.admin.v1.ImportEntitiesRequest.input_url][google.datastore.admin.v1.ImportEntitiesRequest.input_url]. - * Only present if the operation completed successfully. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Location of the output metadata file. This can be used to begin an import - * into Cloud Datastore (this project or another project). See - * [google.datastore.admin.v1.ImportEntitiesRequest.input_url][google.datastore.admin.v1.ImportEntitiesRequest.input_url]. - * Only present if the operation completed successfully. - * - * Generated from protobuf field string output_url = 1; - * @return string - */ - public function getOutputUrl() - { - return $this->output_url; - } - - /** - * Location of the output metadata file. This can be used to begin an import - * into Cloud Datastore (this project or another project). See - * [google.datastore.admin.v1.ImportEntitiesRequest.input_url][google.datastore.admin.v1.ImportEntitiesRequest.input_url]. - * Only present if the operation completed successfully. - * - * Generated from protobuf field string output_url = 1; - * @param string $var - * @return $this - */ - public function setOutputUrl($var) - { - GPBUtil::checkString($var, True); - $this->output_url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/GetIndexRequest.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/GetIndexRequest.php deleted file mode 100644 index 70a5ea9f6459..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/GetIndexRequest.php +++ /dev/null @@ -1,102 +0,0 @@ -google.datastore.admin.v1.GetIndexRequest - */ -class GetIndexRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The resource ID of the index to get. - * - * Generated from protobuf field string index_id = 3; - */ - protected $index_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Project ID against which to make the request. - * @type string $index_id - * The resource ID of the index to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The resource ID of the index to get. - * - * Generated from protobuf field string index_id = 3; - * @return string - */ - public function getIndexId() - { - return $this->index_id; - } - - /** - * The resource ID of the index to get. - * - * Generated from protobuf field string index_id = 3; - * @param string $var - * @return $this - */ - public function setIndexId($var) - { - GPBUtil::checkString($var, True); - $this->index_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ImportEntitiesMetadata.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ImportEntitiesMetadata.php deleted file mode 100644 index fbd091964aaf..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ImportEntitiesMetadata.php +++ /dev/null @@ -1,255 +0,0 @@ -google.datastore.admin.v1.ImportEntitiesMetadata - */ -class ImportEntitiesMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Metadata common to all Datastore Admin operations. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata common = 1; - */ - protected $common = null; - /** - * An estimate of the number of entities processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_entities = 2; - */ - protected $progress_entities = null; - /** - * An estimate of the number of bytes processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_bytes = 3; - */ - protected $progress_bytes = null; - /** - * Description of which entities are being imported. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 4; - */ - protected $entity_filter = null; - /** - * The location of the import metadata file. This will be the same value as - * the - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] - * field. - * - * Generated from protobuf field string input_url = 5; - */ - protected $input_url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\Admin\V1\CommonMetadata $common - * Metadata common to all Datastore Admin operations. - * @type \Google\Cloud\Datastore\Admin\V1\Progress $progress_entities - * An estimate of the number of entities processed. - * @type \Google\Cloud\Datastore\Admin\V1\Progress $progress_bytes - * An estimate of the number of bytes processed. - * @type \Google\Cloud\Datastore\Admin\V1\EntityFilter $entity_filter - * Description of which entities are being imported. - * @type string $input_url - * The location of the import metadata file. This will be the same value as - * the - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] - * field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Metadata common to all Datastore Admin operations. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata common = 1; - * @return \Google\Cloud\Datastore\Admin\V1\CommonMetadata|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Metadata common to all Datastore Admin operations. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata common = 1; - * @param \Google\Cloud\Datastore\Admin\V1\CommonMetadata $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\CommonMetadata::class); - $this->common = $var; - - return $this; - } - - /** - * An estimate of the number of entities processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_entities = 2; - * @return \Google\Cloud\Datastore\Admin\V1\Progress|null - */ - public function getProgressEntities() - { - return $this->progress_entities; - } - - public function hasProgressEntities() - { - return isset($this->progress_entities); - } - - public function clearProgressEntities() - { - unset($this->progress_entities); - } - - /** - * An estimate of the number of entities processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_entities = 2; - * @param \Google\Cloud\Datastore\Admin\V1\Progress $var - * @return $this - */ - public function setProgressEntities($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\Progress::class); - $this->progress_entities = $var; - - return $this; - } - - /** - * An estimate of the number of bytes processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_bytes = 3; - * @return \Google\Cloud\Datastore\Admin\V1\Progress|null - */ - public function getProgressBytes() - { - return $this->progress_bytes; - } - - public function hasProgressBytes() - { - return isset($this->progress_bytes); - } - - public function clearProgressBytes() - { - unset($this->progress_bytes); - } - - /** - * An estimate of the number of bytes processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_bytes = 3; - * @param \Google\Cloud\Datastore\Admin\V1\Progress $var - * @return $this - */ - public function setProgressBytes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\Progress::class); - $this->progress_bytes = $var; - - return $this; - } - - /** - * Description of which entities are being imported. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * @return \Google\Cloud\Datastore\Admin\V1\EntityFilter|null - */ - public function getEntityFilter() - { - return $this->entity_filter; - } - - public function hasEntityFilter() - { - return isset($this->entity_filter); - } - - public function clearEntityFilter() - { - unset($this->entity_filter); - } - - /** - * Description of which entities are being imported. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * @param \Google\Cloud\Datastore\Admin\V1\EntityFilter $var - * @return $this - */ - public function setEntityFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\EntityFilter::class); - $this->entity_filter = $var; - - return $this; - } - - /** - * The location of the import metadata file. This will be the same value as - * the - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] - * field. - * - * Generated from protobuf field string input_url = 5; - * @return string - */ - public function getInputUrl() - { - return $this->input_url; - } - - /** - * The location of the import metadata file. This will be the same value as - * the - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url] - * field. - * - * Generated from protobuf field string input_url = 5; - * @param string $var - * @return $this - */ - public function setInputUrl($var) - { - GPBUtil::checkString($var, True); - $this->input_url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ImportEntitiesRequest.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ImportEntitiesRequest.php deleted file mode 100644 index 2b1c1675a9f3..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ImportEntitiesRequest.php +++ /dev/null @@ -1,275 +0,0 @@ -google.datastore.admin.v1.ImportEntitiesRequest - */ -class ImportEntitiesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Client-assigned labels. - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - /** - * Required. The full resource URL of the external storage location. - * Currently, only Google Cloud Storage is supported. So input_url should be - * of the form: - * `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where - * `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is - * an optional Cloud Storage namespace path (this is not a Cloud Datastore - * namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written - * by the ExportEntities operation. For more information about Cloud Storage - * namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - * For more information, see - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. - * - * Generated from protobuf field string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $input_url = ''; - /** - * Optionally specify which kinds/namespaces are to be imported. If provided, - * the list must be a subset of the EntityFilter used in creating the export, - * otherwise a FAILED_PRECONDITION error will be returned. If no filter is - * specified then all entities from the export are imported. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 4; - */ - protected $entity_filter = null; - - /** - * @param string $projectId Required. Project ID against which to make the request. - * @param array $labels Client-assigned labels. - * @param string $inputUrl Required. The full resource URL of the external storage location. - * Currently, only Google Cloud Storage is supported. So input_url should be - * of the form: - * `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where - * `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is - * an optional Cloud Storage namespace path (this is not a Cloud Datastore - * namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written - * by the ExportEntities operation. For more information about Cloud Storage - * namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - * - * For more information, see - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. - * @param \Google\Cloud\Datastore\Admin\V1\EntityFilter $entityFilter Optionally specify which kinds/namespaces are to be imported. If provided, - * the list must be a subset of the EntityFilter used in creating the export, - * otherwise a FAILED_PRECONDITION error will be returned. If no filter is - * specified then all entities from the export are imported. - * - * @return \Google\Cloud\Datastore\Admin\V1\ImportEntitiesRequest - * - * @experimental - */ - public static function build(string $projectId, array $labels, string $inputUrl, \Google\Cloud\Datastore\Admin\V1\EntityFilter $entityFilter): self - { - return (new self()) - ->setProjectId($projectId) - ->setLabels($labels) - ->setInputUrl($inputUrl) - ->setEntityFilter($entityFilter); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. Project ID against which to make the request. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Client-assigned labels. - * @type string $input_url - * Required. The full resource URL of the external storage location. - * Currently, only Google Cloud Storage is supported. So input_url should be - * of the form: - * `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where - * `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is - * an optional Cloud Storage namespace path (this is not a Cloud Datastore - * namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written - * by the ExportEntities operation. For more information about Cloud Storage - * namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - * For more information, see - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. - * @type \Google\Cloud\Datastore\Admin\V1\EntityFilter $entity_filter - * Optionally specify which kinds/namespaces are to be imported. If provided, - * the list must be a subset of the EntityFilter used in creating the export, - * otherwise a FAILED_PRECONDITION error will be returned. If no filter is - * specified then all entities from the export are imported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Required. Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Client-assigned labels. - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Client-assigned labels. - * - * Generated from protobuf field map labels = 2; - * @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; - } - - /** - * Required. The full resource URL of the external storage location. - * Currently, only Google Cloud Storage is supported. So input_url should be - * of the form: - * `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where - * `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is - * an optional Cloud Storage namespace path (this is not a Cloud Datastore - * namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written - * by the ExportEntities operation. For more information about Cloud Storage - * namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - * For more information, see - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. - * - * Generated from protobuf field string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInputUrl() - { - return $this->input_url; - } - - /** - * Required. The full resource URL of the external storage location. - * Currently, only Google Cloud Storage is supported. So input_url should be - * of the form: - * `gs://BUCKET_NAME[/NAMESPACE_PATH]/OVERALL_EXPORT_METADATA_FILE`, where - * `BUCKET_NAME` is the name of the Cloud Storage bucket, `NAMESPACE_PATH` is - * an optional Cloud Storage namespace path (this is not a Cloud Datastore - * namespace), and `OVERALL_EXPORT_METADATA_FILE` is the metadata file written - * by the ExportEntities operation. For more information about Cloud Storage - * namespace paths, see - * [Object name - * considerations](https://cloud.google.com/storage/docs/naming#object-considerations). - * For more information, see - * [google.datastore.admin.v1.ExportEntitiesResponse.output_url][google.datastore.admin.v1.ExportEntitiesResponse.output_url]. - * - * Generated from protobuf field string input_url = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInputUrl($var) - { - GPBUtil::checkString($var, True); - $this->input_url = $var; - - return $this; - } - - /** - * Optionally specify which kinds/namespaces are to be imported. If provided, - * the list must be a subset of the EntityFilter used in creating the export, - * otherwise a FAILED_PRECONDITION error will be returned. If no filter is - * specified then all entities from the export are imported. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * @return \Google\Cloud\Datastore\Admin\V1\EntityFilter|null - */ - public function getEntityFilter() - { - return $this->entity_filter; - } - - public function hasEntityFilter() - { - return isset($this->entity_filter); - } - - public function clearEntityFilter() - { - unset($this->entity_filter); - } - - /** - * Optionally specify which kinds/namespaces are to be imported. If provided, - * the list must be a subset of the EntityFilter used in creating the export, - * otherwise a FAILED_PRECONDITION error will be returned. If no filter is - * specified then all entities from the export are imported. - * - * Generated from protobuf field .google.datastore.admin.v1.EntityFilter entity_filter = 4; - * @param \Google\Cloud\Datastore\Admin\V1\EntityFilter $var - * @return $this - */ - public function setEntityFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\EntityFilter::class); - $this->entity_filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index.php deleted file mode 100644 index e8c9de9eee94..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index.php +++ /dev/null @@ -1,249 +0,0 @@ -google.datastore.admin.v1.Index - */ -class Index extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Project ID. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $project_id = ''; - /** - * Output only. The resource ID of the index. - * - * Generated from protobuf field string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $index_id = ''; - /** - * Required. The entity kind to which this index applies. - * - * Generated from protobuf field string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $kind = ''; - /** - * Required. The index's ancestor mode. Must not be - * ANCESTOR_MODE_UNSPECIFIED. - * - * Generated from protobuf field .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ancestor = 0; - /** - * Required. An ordered sequence of property names and their index attributes. - * Requires: - * * A maximum of 100 properties. - * - * Generated from protobuf field repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - private $properties; - /** - * Output only. The state of the index. - * - * Generated from protobuf field .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Output only. Project ID. - * @type string $index_id - * Output only. The resource ID of the index. - * @type string $kind - * Required. The entity kind to which this index applies. - * @type int $ancestor - * Required. The index's ancestor mode. Must not be - * ANCESTOR_MODE_UNSPECIFIED. - * @type array<\Google\Cloud\Datastore\Admin\V1\Index\IndexedProperty>|\Google\Protobuf\Internal\RepeatedField $properties - * Required. An ordered sequence of property names and their index attributes. - * Requires: - * * A maximum of 100 properties. - * @type int $state - * Output only. The state of the index. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\Index::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Project ID. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Output only. Project ID. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Output only. The resource ID of the index. - * - * Generated from protobuf field string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getIndexId() - { - return $this->index_id; - } - - /** - * Output only. The resource ID of the index. - * - * Generated from protobuf field string index_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setIndexId($var) - { - GPBUtil::checkString($var, True); - $this->index_id = $var; - - return $this; - } - - /** - * Required. The entity kind to which this index applies. - * - * Generated from protobuf field string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * Required. The entity kind to which this index applies. - * - * Generated from protobuf field string kind = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * Required. The index's ancestor mode. Must not be - * ANCESTOR_MODE_UNSPECIFIED. - * - * Generated from protobuf field .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getAncestor() - { - return $this->ancestor; - } - - /** - * Required. The index's ancestor mode. Must not be - * ANCESTOR_MODE_UNSPECIFIED. - * - * Generated from protobuf field .google.datastore.admin.v1.Index.AncestorMode ancestor = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setAncestor($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\Index\AncestorMode::class); - $this->ancestor = $var; - - return $this; - } - - /** - * Required. An ordered sequence of property names and their index attributes. - * Requires: - * * A maximum of 100 properties. - * - * Generated from protobuf field repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Required. An ordered sequence of property names and their index attributes. - * Requires: - * * A maximum of 100 properties. - * - * Generated from protobuf field repeated .google.datastore.admin.v1.Index.IndexedProperty properties = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Datastore\Admin\V1\Index\IndexedProperty>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\Admin\V1\Index\IndexedProperty::class); - $this->properties = $arr; - - return $this; - } - - /** - * Output only. The state of the index. - * - * Generated from protobuf field .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The state of the index. - * - * Generated from protobuf field .google.datastore.admin.v1.Index.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\Index\State::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/AncestorMode.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/AncestorMode.php deleted file mode 100644 index 24e87cb45bf3..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/AncestorMode.php +++ /dev/null @@ -1,65 +0,0 @@ -google.datastore.admin.v1.Index.AncestorMode - */ -class AncestorMode -{ - /** - * The ancestor mode is unspecified. - * - * Generated from protobuf enum ANCESTOR_MODE_UNSPECIFIED = 0; - */ - const ANCESTOR_MODE_UNSPECIFIED = 0; - /** - * Do not include the entity's ancestors in the index. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * Include all the entity's ancestors in the index. - * - * Generated from protobuf enum ALL_ANCESTORS = 2; - */ - const ALL_ANCESTORS = 2; - - private static $valueToName = [ - self::ANCESTOR_MODE_UNSPECIFIED => 'ANCESTOR_MODE_UNSPECIFIED', - self::NONE => 'NONE', - self::ALL_ANCESTORS => 'ALL_ANCESTORS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AncestorMode::class, \Google\Cloud\Datastore\Admin\V1\Index_AncestorMode::class); - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/Direction.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/Direction.php deleted file mode 100644 index bee71a7181e5..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/Direction.php +++ /dev/null @@ -1,66 +0,0 @@ -google.datastore.admin.v1.Index.Direction - */ -class Direction -{ - /** - * The direction is unspecified. - * - * Generated from protobuf enum DIRECTION_UNSPECIFIED = 0; - */ - const DIRECTION_UNSPECIFIED = 0; - /** - * The property's values are indexed so as to support sequencing in - * ascending order and also query by <, >, <=, >=, and =. - * - * Generated from protobuf enum ASCENDING = 1; - */ - const ASCENDING = 1; - /** - * The property's values are indexed so as to support sequencing in - * descending order and also query by <, >, <=, >=, and =. - * - * Generated from protobuf enum DESCENDING = 2; - */ - const DESCENDING = 2; - - private static $valueToName = [ - self::DIRECTION_UNSPECIFIED => 'DIRECTION_UNSPECIFIED', - self::ASCENDING => 'ASCENDING', - self::DESCENDING => 'DESCENDING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Direction::class, \Google\Cloud\Datastore\Admin\V1\Index_Direction::class); - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/IndexedProperty.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/IndexedProperty.php deleted file mode 100644 index 546eb72565ea..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/IndexedProperty.php +++ /dev/null @@ -1,108 +0,0 @@ -google.datastore.admin.v1.Index.IndexedProperty - */ -class IndexedProperty extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The property name to index. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Required. The indexed property's direction. Must not be - * DIRECTION_UNSPECIFIED. - * - * Generated from protobuf field .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $direction = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The property name to index. - * @type int $direction - * Required. The indexed property's direction. Must not be - * DIRECTION_UNSPECIFIED. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\Index::initOnce(); - parent::__construct($data); - } - - /** - * Required. The property name to index. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The property name to index. - * - * 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 indexed property's direction. Must not be - * DIRECTION_UNSPECIFIED. - * - * Generated from protobuf field .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getDirection() - { - return $this->direction; - } - - /** - * Required. The indexed property's direction. Must not be - * DIRECTION_UNSPECIFIED. - * - * Generated from protobuf field .google.datastore.admin.v1.Index.Direction direction = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setDirection($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\Index\Direction::class); - $this->direction = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IndexedProperty::class, \Google\Cloud\Datastore\Admin\V1\Index_IndexedProperty::class); - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/State.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/State.php deleted file mode 100644 index 6d8678652c21..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Index/State.php +++ /dev/null @@ -1,91 +0,0 @@ -google.datastore.admin.v1.Index.State - */ -class State -{ - /** - * The state is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The index is being created, and cannot be used by queries. - * There is an active long-running operation for the index. - * The index is updated when writing an entity. - * Some index data may exist. - * - * Generated from protobuf enum CREATING = 1; - */ - const CREATING = 1; - /** - * The index is ready to be used. - * The index is updated when writing an entity. - * The index is fully populated from all stored entities it applies to. - * - * Generated from protobuf enum READY = 2; - */ - const READY = 2; - /** - * The index is being deleted, and cannot be used by queries. - * There is an active long-running operation for the index. - * The index is not updated when writing an entity. - * Some index data may exist. - * - * Generated from protobuf enum DELETING = 3; - */ - const DELETING = 3; - /** - * The index was being created or deleted, but something went wrong. - * The index cannot by used by queries. - * There is no active long-running operation for the index, - * and the most recently finished long-running operation failed. - * The index is not updated when writing an entity. - * Some index data may exist. - * - * Generated from protobuf enum ERROR = 4; - */ - const ERROR = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::CREATING => 'CREATING', - self::READY => 'READY', - self::DELETING => 'DELETING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Datastore\Admin\V1\Index_State::class); - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/IndexOperationMetadata.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/IndexOperationMetadata.php deleted file mode 100644 index 78ebf07e1ff0..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/IndexOperationMetadata.php +++ /dev/null @@ -1,155 +0,0 @@ -google.datastore.admin.v1.IndexOperationMetadata - */ -class IndexOperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Metadata common to all Datastore Admin operations. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata common = 1; - */ - protected $common = null; - /** - * An estimate of the number of entities processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_entities = 2; - */ - protected $progress_entities = null; - /** - * The index resource ID that this operation is acting on. - * - * Generated from protobuf field string index_id = 3; - */ - protected $index_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Datastore\Admin\V1\CommonMetadata $common - * Metadata common to all Datastore Admin operations. - * @type \Google\Cloud\Datastore\Admin\V1\Progress $progress_entities - * An estimate of the number of entities processed. - * @type string $index_id - * The index resource ID that this operation is acting on. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Metadata common to all Datastore Admin operations. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata common = 1; - * @return \Google\Cloud\Datastore\Admin\V1\CommonMetadata|null - */ - public function getCommon() - { - return $this->common; - } - - public function hasCommon() - { - return isset($this->common); - } - - public function clearCommon() - { - unset($this->common); - } - - /** - * Metadata common to all Datastore Admin operations. - * - * Generated from protobuf field .google.datastore.admin.v1.CommonMetadata common = 1; - * @param \Google\Cloud\Datastore\Admin\V1\CommonMetadata $var - * @return $this - */ - public function setCommon($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\CommonMetadata::class); - $this->common = $var; - - return $this; - } - - /** - * An estimate of the number of entities processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_entities = 2; - * @return \Google\Cloud\Datastore\Admin\V1\Progress|null - */ - public function getProgressEntities() - { - return $this->progress_entities; - } - - public function hasProgressEntities() - { - return isset($this->progress_entities); - } - - public function clearProgressEntities() - { - unset($this->progress_entities); - } - - /** - * An estimate of the number of entities processed. - * - * Generated from protobuf field .google.datastore.admin.v1.Progress progress_entities = 2; - * @param \Google\Cloud\Datastore\Admin\V1\Progress $var - * @return $this - */ - public function setProgressEntities($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\Progress::class); - $this->progress_entities = $var; - - return $this; - } - - /** - * The index resource ID that this operation is acting on. - * - * Generated from protobuf field string index_id = 3; - * @return string - */ - public function getIndexId() - { - return $this->index_id; - } - - /** - * The index resource ID that this operation is acting on. - * - * Generated from protobuf field string index_id = 3; - * @param string $var - * @return $this - */ - public function setIndexId($var) - { - GPBUtil::checkString($var, True); - $this->index_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ListIndexesRequest.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ListIndexesRequest.php deleted file mode 100644 index 137986ae7661..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ListIndexesRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.datastore.admin.v1.ListIndexesRequest - */ -class ListIndexesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Generated from protobuf field string filter = 3; - */ - protected $filter = ''; - /** - * The maximum number of items to return. If zero, then all results will be - * returned. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * The next_page_token value returned from a previous List request, if any. - * - * Generated from protobuf field string page_token = 5; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Project ID against which to make the request. - * @type string $filter - * @type int $page_size - * The maximum number of items to return. If zero, then all results will be - * returned. - * @type string $page_token - * The next_page_token value returned from a previous List request, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project ID against which to make the request. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Generated from protobuf field string filter = 3; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Generated from protobuf field string filter = 3; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The maximum number of items to return. If zero, then all results will be - * returned. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of items to return. If zero, then all results will be - * returned. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The next_page_token value returned from a previous List request, if any. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The next_page_token value returned from a previous List request, if any. - * - * Generated from protobuf field string page_token = 5; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ListIndexesResponse.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ListIndexesResponse.php deleted file mode 100644 index 24c9caf57fab..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/ListIndexesResponse.php +++ /dev/null @@ -1,102 +0,0 @@ -google.datastore.admin.v1.ListIndexesResponse - */ -class ListIndexesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The indexes. - * - * Generated from protobuf field repeated .google.datastore.admin.v1.Index indexes = 1; - */ - private $indexes; - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Datastore\Admin\V1\Index>|\Google\Protobuf\Internal\RepeatedField $indexes - * The indexes. - * @type string $next_page_token - * The standard List next-page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The indexes. - * - * Generated from protobuf field repeated .google.datastore.admin.v1.Index indexes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIndexes() - { - return $this->indexes; - } - - /** - * The indexes. - * - * Generated from protobuf field repeated .google.datastore.admin.v1.Index indexes = 1; - * @param array<\Google\Cloud\Datastore\Admin\V1\Index>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIndexes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Datastore\Admin\V1\Index::class); - $this->indexes = $arr; - - return $this; - } - - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent.php deleted file mode 100644 index ad713f55b622..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent.php +++ /dev/null @@ -1,152 +0,0 @@ -google.datastore.admin.v1.MigrationProgressEvent - */ -class MigrationProgressEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The step that is starting. - * An event with step set to `START` indicates that the migration - * has been reverted back to the initial pre-migration state. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationStep step = 1; - */ - protected $step = 0; - protected $step_details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $step - * The step that is starting. - * An event with step set to `START` indicates that the migration - * has been reverted back to the initial pre-migration state. - * @type \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\PrepareStepDetails $prepare_step_details - * Details for the `PREPARE` step. - * @type \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\RedirectWritesStepDetails $redirect_writes_step_details - * Details for the `REDIRECT_WRITES` step. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\Migration::initOnce(); - parent::__construct($data); - } - - /** - * The step that is starting. - * An event with step set to `START` indicates that the migration - * has been reverted back to the initial pre-migration state. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationStep step = 1; - * @return int - */ - public function getStep() - { - return $this->step; - } - - /** - * The step that is starting. - * An event with step set to `START` indicates that the migration - * has been reverted back to the initial pre-migration state. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationStep step = 1; - * @param int $var - * @return $this - */ - public function setStep($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\MigrationStep::class); - $this->step = $var; - - return $this; - } - - /** - * Details for the `PREPARE` step. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * @return \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\PrepareStepDetails|null - */ - public function getPrepareStepDetails() - { - return $this->readOneof(2); - } - - public function hasPrepareStepDetails() - { - return $this->hasOneof(2); - } - - /** - * Details for the `PREPARE` step. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails prepare_step_details = 2; - * @param \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\PrepareStepDetails $var - * @return $this - */ - public function setPrepareStepDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\PrepareStepDetails::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Details for the `REDIRECT_WRITES` step. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * @return \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\RedirectWritesStepDetails|null - */ - public function getRedirectWritesStepDetails() - { - return $this->readOneof(3); - } - - public function hasRedirectWritesStepDetails() - { - return $this->hasOneof(3); - } - - /** - * Details for the `REDIRECT_WRITES` step. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails redirect_writes_step_details = 3; - * @param \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\RedirectWritesStepDetails $var - * @return $this - */ - public function setRedirectWritesStepDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\RedirectWritesStepDetails::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getStepDetails() - { - return $this->whichOneof("step_details"); - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/ConcurrencyMode.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/ConcurrencyMode.php deleted file mode 100644 index 6ac75957b07a..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/ConcurrencyMode.php +++ /dev/null @@ -1,71 +0,0 @@ -google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode - */ -class ConcurrencyMode -{ - /** - * Unspecified. - * - * Generated from protobuf enum CONCURRENCY_MODE_UNSPECIFIED = 0; - */ - const CONCURRENCY_MODE_UNSPECIFIED = 0; - /** - * Pessimistic concurrency. - * - * Generated from protobuf enum PESSIMISTIC = 1; - */ - const PESSIMISTIC = 1; - /** - * Optimistic concurrency. - * - * Generated from protobuf enum OPTIMISTIC = 2; - */ - const OPTIMISTIC = 2; - /** - * Optimistic concurrency with entity groups. - * - * Generated from protobuf enum OPTIMISTIC_WITH_ENTITY_GROUPS = 3; - */ - const OPTIMISTIC_WITH_ENTITY_GROUPS = 3; - - private static $valueToName = [ - self::CONCURRENCY_MODE_UNSPECIFIED => 'CONCURRENCY_MODE_UNSPECIFIED', - self::PESSIMISTIC => 'PESSIMISTIC', - self::OPTIMISTIC => 'OPTIMISTIC', - self::OPTIMISTIC_WITH_ENTITY_GROUPS => 'OPTIMISTIC_WITH_ENTITY_GROUPS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConcurrencyMode::class, \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent_ConcurrencyMode::class); - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/PrepareStepDetails.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/PrepareStepDetails.php deleted file mode 100644 index 9182ec0e8fc2..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/PrepareStepDetails.php +++ /dev/null @@ -1,74 +0,0 @@ -google.datastore.admin.v1.MigrationProgressEvent.PrepareStepDetails - */ -class PrepareStepDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The concurrency mode this database will use when it reaches the - * `REDIRECT_WRITES` step. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - */ - protected $concurrency_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $concurrency_mode - * The concurrency mode this database will use when it reaches the - * `REDIRECT_WRITES` step. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\Migration::initOnce(); - parent::__construct($data); - } - - /** - * The concurrency mode this database will use when it reaches the - * `REDIRECT_WRITES` step. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * @return int - */ - public function getConcurrencyMode() - { - return $this->concurrency_mode; - } - - /** - * The concurrency mode this database will use when it reaches the - * `REDIRECT_WRITES` step. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * @param int $var - * @return $this - */ - public function setConcurrencyMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\ConcurrencyMode::class); - $this->concurrency_mode = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PrepareStepDetails::class, \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent_PrepareStepDetails::class); - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/RedirectWritesStepDetails.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/RedirectWritesStepDetails.php deleted file mode 100644 index 62927870dda3..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationProgressEvent/RedirectWritesStepDetails.php +++ /dev/null @@ -1,70 +0,0 @@ -google.datastore.admin.v1.MigrationProgressEvent.RedirectWritesStepDetails - */ -class RedirectWritesStepDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Ths concurrency mode for this database. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - */ - protected $concurrency_mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $concurrency_mode - * Ths concurrency mode for this database. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\Migration::initOnce(); - parent::__construct($data); - } - - /** - * Ths concurrency mode for this database. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * @return int - */ - public function getConcurrencyMode() - { - return $this->concurrency_mode; - } - - /** - * Ths concurrency mode for this database. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode concurrency_mode = 1; - * @param int $var - * @return $this - */ - public function setConcurrencyMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent\ConcurrencyMode::class); - $this->concurrency_mode = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RedirectWritesStepDetails::class, \Google\Cloud\Datastore\Admin\V1\MigrationProgressEvent_RedirectWritesStepDetails::class); - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationState.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationState.php deleted file mode 100644 index 73ed2294dfc9..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationState.php +++ /dev/null @@ -1,68 +0,0 @@ -google.datastore.admin.v1.MigrationState - */ -class MigrationState -{ - /** - * Unspecified. - * - * Generated from protobuf enum MIGRATION_STATE_UNSPECIFIED = 0; - */ - const MIGRATION_STATE_UNSPECIFIED = 0; - /** - * The migration is running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The migration is paused. - * - * Generated from protobuf enum PAUSED = 2; - */ - const PAUSED = 2; - /** - * The migration is complete. - * - * Generated from protobuf enum COMPLETE = 3; - */ - const COMPLETE = 3; - - private static $valueToName = [ - self::MIGRATION_STATE_UNSPECIFIED => 'MIGRATION_STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::PAUSED => 'PAUSED', - self::COMPLETE => 'COMPLETE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationStateEvent.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationStateEvent.php deleted file mode 100644 index 12ce4113a770..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationStateEvent.php +++ /dev/null @@ -1,69 +0,0 @@ -google.datastore.admin.v1.MigrationStateEvent - */ -class MigrationStateEvent extends \Google\Protobuf\Internal\Message -{ - /** - * The new state of the migration. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationState state = 1; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The new state of the migration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\Migration::initOnce(); - parent::__construct($data); - } - - /** - * The new state of the migration. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationState state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The new state of the migration. - * - * Generated from protobuf field .google.datastore.admin.v1.MigrationState state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Datastore\Admin\V1\MigrationState::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationStep.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationStep.php deleted file mode 100644 index b20fab7b5f1a..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/MigrationStep.php +++ /dev/null @@ -1,97 +0,0 @@ -google.datastore.admin.v1.MigrationStep - */ -class MigrationStep -{ - /** - * Unspecified. - * - * Generated from protobuf enum MIGRATION_STEP_UNSPECIFIED = 0; - */ - const MIGRATION_STEP_UNSPECIFIED = 0; - /** - * Pre-migration: the database is prepared for migration. - * - * Generated from protobuf enum PREPARE = 6; - */ - const PREPARE = 6; - /** - * Start of migration. - * - * Generated from protobuf enum START = 1; - */ - const START = 1; - /** - * Writes are applied synchronously to at least one replica. - * - * Generated from protobuf enum APPLY_WRITES_SYNCHRONOUSLY = 7; - */ - const APPLY_WRITES_SYNCHRONOUSLY = 7; - /** - * Data is copied to Cloud Firestore and then verified to match the data in - * Cloud Datastore. - * - * Generated from protobuf enum COPY_AND_VERIFY = 2; - */ - const COPY_AND_VERIFY = 2; - /** - * Eventually-consistent reads are redirected to Cloud Firestore. - * - * Generated from protobuf enum REDIRECT_EVENTUALLY_CONSISTENT_READS = 3; - */ - const REDIRECT_EVENTUALLY_CONSISTENT_READS = 3; - /** - * Strongly-consistent reads are redirected to Cloud Firestore. - * - * Generated from protobuf enum REDIRECT_STRONGLY_CONSISTENT_READS = 4; - */ - const REDIRECT_STRONGLY_CONSISTENT_READS = 4; - /** - * Writes are redirected to Cloud Firestore. - * - * Generated from protobuf enum REDIRECT_WRITES = 5; - */ - const REDIRECT_WRITES = 5; - - private static $valueToName = [ - self::MIGRATION_STEP_UNSPECIFIED => 'MIGRATION_STEP_UNSPECIFIED', - self::PREPARE => 'PREPARE', - self::START => 'START', - self::APPLY_WRITES_SYNCHRONOUSLY => 'APPLY_WRITES_SYNCHRONOUSLY', - self::COPY_AND_VERIFY => 'COPY_AND_VERIFY', - self::REDIRECT_EVENTUALLY_CONSISTENT_READS => 'REDIRECT_EVENTUALLY_CONSISTENT_READS', - self::REDIRECT_STRONGLY_CONSISTENT_READS => 'REDIRECT_STRONGLY_CONSISTENT_READS', - self::REDIRECT_WRITES => 'REDIRECT_WRITES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/OperationType.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/OperationType.php deleted file mode 100644 index f4a310a591f4..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/OperationType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.datastore.admin.v1.OperationType - */ -class OperationType -{ - /** - * Unspecified. - * - * Generated from protobuf enum OPERATION_TYPE_UNSPECIFIED = 0; - */ - const OPERATION_TYPE_UNSPECIFIED = 0; - /** - * ExportEntities. - * - * Generated from protobuf enum EXPORT_ENTITIES = 1; - */ - const EXPORT_ENTITIES = 1; - /** - * ImportEntities. - * - * Generated from protobuf enum IMPORT_ENTITIES = 2; - */ - const IMPORT_ENTITIES = 2; - /** - * CreateIndex. - * - * Generated from protobuf enum CREATE_INDEX = 3; - */ - const CREATE_INDEX = 3; - /** - * DeleteIndex. - * - * Generated from protobuf enum DELETE_INDEX = 4; - */ - const DELETE_INDEX = 4; - - private static $valueToName = [ - self::OPERATION_TYPE_UNSPECIFIED => 'OPERATION_TYPE_UNSPECIFIED', - self::EXPORT_ENTITIES => 'EXPORT_ENTITIES', - self::IMPORT_ENTITIES => 'IMPORT_ENTITIES', - self::CREATE_INDEX => 'CREATE_INDEX', - self::DELETE_INDEX => 'DELETE_INDEX', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Progress.php b/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Progress.php deleted file mode 100644 index 698275844e5b..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/proto/src/Google/Cloud/Datastore/Admin/V1/Progress.php +++ /dev/null @@ -1,109 +0,0 @@ -google.datastore.admin.v1.Progress - */ -class Progress extends \Google\Protobuf\Internal\Message -{ - /** - * The amount of work that has been completed. Note that this may be greater - * than work_estimated. - * - * Generated from protobuf field int64 work_completed = 1; - */ - protected $work_completed = 0; - /** - * An estimate of how much work needs to be performed. May be zero if the - * work estimate is unavailable. - * - * Generated from protobuf field int64 work_estimated = 2; - */ - protected $work_estimated = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $work_completed - * The amount of work that has been completed. Note that this may be greater - * than work_estimated. - * @type int|string $work_estimated - * An estimate of how much work needs to be performed. May be zero if the - * work estimate is unavailable. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Datastore\Admin\V1\DatastoreAdmin::initOnce(); - parent::__construct($data); - } - - /** - * The amount of work that has been completed. Note that this may be greater - * than work_estimated. - * - * Generated from protobuf field int64 work_completed = 1; - * @return int|string - */ - public function getWorkCompleted() - { - return $this->work_completed; - } - - /** - * The amount of work that has been completed. Note that this may be greater - * than work_estimated. - * - * Generated from protobuf field int64 work_completed = 1; - * @param int|string $var - * @return $this - */ - public function setWorkCompleted($var) - { - GPBUtil::checkInt64($var); - $this->work_completed = $var; - - return $this; - } - - /** - * An estimate of how much work needs to be performed. May be zero if the - * work estimate is unavailable. - * - * Generated from protobuf field int64 work_estimated = 2; - * @return int|string - */ - public function getWorkEstimated() - { - return $this->work_estimated; - } - - /** - * An estimate of how much work needs to be performed. May be zero if the - * work estimate is unavailable. - * - * Generated from protobuf field int64 work_estimated = 2; - * @param int|string $var - * @return $this - */ - public function setWorkEstimated($var) - { - GPBUtil::checkInt64($var); - $this->work_estimated = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/create_index.php b/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/create_index.php deleted file mode 100644 index 7b209bf65a06..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/create_index.php +++ /dev/null @@ -1,82 +0,0 @@ -createIndex($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Index $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 datastore_v1_generated_DatastoreAdmin_CreateIndex_sync] diff --git a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/delete_index.php b/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/delete_index.php deleted file mode 100644 index 2d1416125fc5..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/delete_index.php +++ /dev/null @@ -1,79 +0,0 @@ -deleteIndex($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Index $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 datastore_v1_generated_DatastoreAdmin_DeleteIndex_sync] diff --git a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/export_entities.php b/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/export_entities.php deleted file mode 100644 index 62f2ca4f74fb..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/export_entities.php +++ /dev/null @@ -1,109 +0,0 @@ -setProjectId($projectId) - ->setOutputUrlPrefix($outputUrlPrefix); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $datastoreAdminClient->exportEntities($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ExportEntitiesResponse $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 -{ - $projectId = '[PROJECT_ID]'; - $outputUrlPrefix = '[OUTPUT_URL_PREFIX]'; - - export_entities_sample($projectId, $outputUrlPrefix); -} -// [END datastore_v1_generated_DatastoreAdmin_ExportEntities_sync] diff --git a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/get_index.php b/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/get_index.php deleted file mode 100644 index 60071dee4053..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/get_index.php +++ /dev/null @@ -1,57 +0,0 @@ -getIndex($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END datastore_v1_generated_DatastoreAdmin_GetIndex_sync] diff --git a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/import_entities.php b/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/import_entities.php deleted file mode 100644 index 1728cdcafbe0..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/import_entities.php +++ /dev/null @@ -1,99 +0,0 @@ -setProjectId($projectId) - ->setInputUrl($inputUrl); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $datastoreAdminClient->importEntities($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 -{ - $projectId = '[PROJECT_ID]'; - $inputUrl = '[INPUT_URL]'; - - import_entities_sample($projectId, $inputUrl); -} -// [END datastore_v1_generated_DatastoreAdmin_ImportEntities_sync] diff --git a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/list_indexes.php b/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/list_indexes.php deleted file mode 100644 index c8d54e75d8a7..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/samples/V1/DatastoreAdminClient/list_indexes.php +++ /dev/null @@ -1,64 +0,0 @@ -listIndexes($request); - - /** @var Index $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 datastore_v1_generated_DatastoreAdmin_ListIndexes_sync] diff --git a/owl-bot-staging/DatastoreAdmin/v1/src/V1/Client/DatastoreAdminClient.php b/owl-bot-staging/DatastoreAdmin/v1/src/V1/Client/DatastoreAdminClient.php deleted file mode 100644 index bed7927089fa..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/src/V1/Client/DatastoreAdminClient.php +++ /dev/null @@ -1,467 +0,0 @@ - createIndexAsync(CreateIndexRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteIndexAsync(DeleteIndexRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportEntitiesAsync(ExportEntitiesRequest $request, array $optionalArgs = []) - * @method PromiseInterface getIndexAsync(GetIndexRequest $request, array $optionalArgs = []) - * @method PromiseInterface importEntitiesAsync(ImportEntitiesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listIndexesAsync(ListIndexesRequest $request, array $optionalArgs = []) - */ -final class DatastoreAdminClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.datastore.admin.v1.DatastoreAdmin'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'datastore.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'datastore.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/datastore', - ]; - - private $operationsClient; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/datastore_admin_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/datastore_admin_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/datastore_admin_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/datastore_admin_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * 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 'datastore.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 the specified index. - * A newly created index's initial state is `CREATING`. On completion of the - * returned [google.longrunning.Operation][google.longrunning.Operation], the - * state will be `READY`. If the index already exists, the call will return an - * `ALREADY_EXISTS` status. - * - * During index creation, the process could result in an error, in which - * case the index will move to the `ERROR` state. The process can be recovered - * by fixing the data that caused the error, removing the index with - * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex], then - * re-creating the index with [create] - * [google.datastore.admin.v1.DatastoreAdmin.CreateIndex]. - * - * Indexes with a single property cannot be created. - * - * The async variant is {@see DatastoreAdminClient::createIndexAsync()} . - * - * @example samples/V1/DatastoreAdminClient/create_index.php - * - * @param CreateIndexRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createIndex(CreateIndexRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateIndex', $request, $callOptions)->wait(); - } - - /** - * Deletes an existing index. - * An index can only be deleted if it is in a `READY` or `ERROR` state. On - * successful execution of the request, the index will be in a `DELETING` - * [state][google.datastore.admin.v1.Index.State]. And on completion of the - * returned [google.longrunning.Operation][google.longrunning.Operation], the - * index will be removed. - * - * During index deletion, the process could result in an error, in which - * case the index will move to the `ERROR` state. The process can be recovered - * by fixing the data that caused the error, followed by calling - * [delete][google.datastore.admin.v1.DatastoreAdmin.DeleteIndex] again. - * - * The async variant is {@see DatastoreAdminClient::deleteIndexAsync()} . - * - * @example samples/V1/DatastoreAdminClient/delete_index.php - * - * @param DeleteIndexRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteIndex(DeleteIndexRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteIndex', $request, $callOptions)->wait(); - } - - /** - * Exports a copy of all or a subset of entities from Google Cloud Datastore - * to another storage system, such as Google Cloud Storage. Recent updates to - * entities may not be reflected in the export. The export occurs in the - * background and its progress can be monitored and managed via the - * Operation resource that is created. The output of an export may only be - * used once the associated operation is done. If an export operation is - * cancelled before completion it may leave partial data behind in Google - * Cloud Storage. - * - * The async variant is {@see DatastoreAdminClient::exportEntitiesAsync()} . - * - * @example samples/V1/DatastoreAdminClient/export_entities.php - * - * @param ExportEntitiesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 exportEntities(ExportEntitiesRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ExportEntities', $request, $callOptions)->wait(); - } - - /** - * Gets an index. - * - * The async variant is {@see DatastoreAdminClient::getIndexAsync()} . - * - * @example samples/V1/DatastoreAdminClient/get_index.php - * - * @param GetIndexRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Index - * - * @throws ApiException Thrown if the API call fails. - */ - public function getIndex(GetIndexRequest $request, array $callOptions = []): Index - { - return $this->startApiCall('GetIndex', $request, $callOptions)->wait(); - } - - /** - * Imports entities into Google Cloud Datastore. Existing entities with the - * same key are overwritten. The import occurs in the background and its - * progress can be monitored and managed via the Operation resource that is - * created. If an ImportEntities operation is cancelled, it is possible - * that a subset of the data has already been imported to Cloud Datastore. - * - * The async variant is {@see DatastoreAdminClient::importEntitiesAsync()} . - * - * @example samples/V1/DatastoreAdminClient/import_entities.php - * - * @param ImportEntitiesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 importEntities(ImportEntitiesRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ImportEntities', $request, $callOptions)->wait(); - } - - /** - * Lists the indexes that match the specified filters. Datastore uses an - * eventually consistent query to fetch the list of indexes and may - * occasionally return stale results. - * - * The async variant is {@see DatastoreAdminClient::listIndexesAsync()} . - * - * @example samples/V1/DatastoreAdminClient/list_indexes.php - * - * @param ListIndexesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listIndexes(ListIndexesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListIndexes', $request, $callOptions); - } -} diff --git a/owl-bot-staging/DatastoreAdmin/v1/src/V1/gapic_metadata.json b/owl-bot-staging/DatastoreAdmin/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 3f24235779cc..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.datastore.admin.v1", - "libraryPackage": "Google\\Cloud\\Datastore\\Admin\\V1", - "services": { - "DatastoreAdmin": { - "clients": { - "grpc": { - "libraryClient": "DatastoreAdminGapicClient", - "rpcs": { - "CreateIndex": { - "methods": [ - "createIndex" - ] - }, - "DeleteIndex": { - "methods": [ - "deleteIndex" - ] - }, - "ExportEntities": { - "methods": [ - "exportEntities" - ] - }, - "GetIndex": { - "methods": [ - "getIndex" - ] - }, - "ImportEntities": { - "methods": [ - "importEntities" - ] - }, - "ListIndexes": { - "methods": [ - "listIndexes" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_client_config.json b/owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_client_config.json deleted file mode 100644 index 42085b1e5e25..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_client_config.json +++ /dev/null @@ -1,75 +0,0 @@ -{ - "interfaces": { - "google.datastore.admin.v1.DatastoreAdmin": { - "retry_codes": { - "no_retry_codes": [], - "no_retry_1_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateIndex": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteIndex": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ExportEntities": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetIndex": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ImportEntities": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListIndexes": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_descriptor_config.php b/owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_descriptor_config.php deleted file mode 100644 index 3f6eb7ac9f33..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_descriptor_config.php +++ /dev/null @@ -1,148 +0,0 @@ - [ - 'google.datastore.admin.v1.DatastoreAdmin' => [ - 'CreateIndex' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Datastore\Admin\V1\Index', - 'metadataReturnType' => '\Google\Cloud\Datastore\Admin\V1\IndexOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - ], - ], - 'DeleteIndex' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Datastore\Admin\V1\Index', - 'metadataReturnType' => '\Google\Cloud\Datastore\Admin\V1\IndexOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'index_id', - 'fieldAccessors' => [ - 'getIndexId', - ], - ], - ], - ], - 'ExportEntities' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Datastore\Admin\V1\ExportEntitiesResponse', - 'metadataReturnType' => '\Google\Cloud\Datastore\Admin\V1\ExportEntitiesMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - ], - ], - 'ImportEntities' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Datastore\Admin\V1\ImportEntitiesMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - ], - ], - 'GetIndex' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Datastore\Admin\V1\Index', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - [ - 'keyName' => 'index_id', - 'fieldAccessors' => [ - 'getIndexId', - ], - ], - ], - ], - 'ListIndexes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getIndexes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Datastore\Admin\V1\ListIndexesResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_id', - 'fieldAccessors' => [ - 'getProjectId', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_rest_client_config.php b/owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_rest_client_config.php deleted file mode 100644 index 71c74dbe495f..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/src/V1/resources/datastore_admin_rest_client_config.php +++ /dev/null @@ -1,154 +0,0 @@ - [ - 'google.datastore.admin.v1.DatastoreAdmin' => [ - 'CreateIndex' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}/indexes', - 'body' => 'index', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'DeleteIndex' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/projects/{project_id}/indexes/{index_id}', - 'placeholders' => [ - 'index_id' => [ - 'getters' => [ - 'getIndexId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'ExportEntities' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}:export', - 'body' => '*', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'GetIndex' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/indexes/{index_id}', - 'placeholders' => [ - 'index_id' => [ - 'getters' => [ - 'getIndexId', - ], - ], - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'ImportEntities' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/projects/{project_id}:import', - 'body' => '*', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - 'ListIndexes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/projects/{project_id}/indexes', - 'placeholders' => [ - 'project_id' => [ - 'getters' => [ - 'getProjectId', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DatastoreAdmin/v1/tests/Unit/V1/Client/DatastoreAdminClientTest.php b/owl-bot-staging/DatastoreAdmin/v1/tests/Unit/V1/Client/DatastoreAdminClientTest.php deleted file mode 100644 index 0e4cbf4f0d57..000000000000 --- a/owl-bot-staging/DatastoreAdmin/v1/tests/Unit/V1/Client/DatastoreAdminClientTest.php +++ /dev/null @@ -1,757 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DatastoreAdminClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DatastoreAdminClient($options); - } - - /** @test */ - public function createIndexTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createIndexTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $projectId2 = 'projectId2939242356'; - $indexId = 'indexId112508840'; - $kind = 'kind3292052'; - $expectedResponse = new Index(); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setIndexId($indexId); - $expectedResponse->setKind($kind); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createIndexTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new CreateIndexRequest(); - $response = $gapicClient->createIndex($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.datastore.admin.v1.DatastoreAdmin/CreateIndex', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createIndexTest'); - $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 createIndexExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createIndexTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new CreateIndexRequest(); - $response = $gapicClient->createIndex($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createIndexTest'); - 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 deleteIndexTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteIndexTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $projectId2 = 'projectId2939242356'; - $indexId2 = 'indexId2746815835'; - $kind = 'kind3292052'; - $expectedResponse = new Index(); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setIndexId($indexId2); - $expectedResponse->setKind($kind); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteIndexTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new DeleteIndexRequest(); - $response = $gapicClient->deleteIndex($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.datastore.admin.v1.DatastoreAdmin/DeleteIndex', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteIndexTest'); - $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 deleteIndexExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteIndexTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new DeleteIndexRequest(); - $response = $gapicClient->deleteIndex($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteIndexTest'); - 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 exportEntitiesTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportEntitiesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $outputUrl = 'outputUrl-1273518799'; - $expectedResponse = new ExportEntitiesResponse(); - $expectedResponse->setOutputUrl($outputUrl); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/exportEntitiesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $projectId = 'projectId-1969970175'; - $outputUrlPrefix = 'outputUrlPrefix1058210144'; - $request = (new ExportEntitiesRequest()) - ->setProjectId($projectId) - ->setOutputUrlPrefix($outputUrlPrefix); - $response = $gapicClient->exportEntities($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.datastore.admin.v1.DatastoreAdmin/ExportEntities', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualApiRequestObject->getOutputUrlPrefix(); - $this->assertProtobufEquals($outputUrlPrefix, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportEntitiesTest'); - $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 exportEntitiesExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportEntitiesTest'); - $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 - $projectId = 'projectId-1969970175'; - $outputUrlPrefix = 'outputUrlPrefix1058210144'; - $request = (new ExportEntitiesRequest()) - ->setProjectId($projectId) - ->setOutputUrlPrefix($outputUrlPrefix); - $response = $gapicClient->exportEntities($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportEntitiesTest'); - 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 getIndexTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $projectId2 = 'projectId2939242356'; - $indexId2 = 'indexId2746815835'; - $kind = 'kind3292052'; - $expectedResponse = new Index(); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setIndexId($indexId2); - $expectedResponse->setKind($kind); - $transport->addResponse($expectedResponse); - $request = new GetIndexRequest(); - $response = $gapicClient->getIndex($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.admin.v1.DatastoreAdmin/GetIndex', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getIndexExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 GetIndexRequest(); - try { - $gapicClient->getIndex($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function importEntitiesTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importEntitiesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/importEntitiesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $projectId = 'projectId-1969970175'; - $inputUrl = 'inputUrl1707300730'; - $request = (new ImportEntitiesRequest()) - ->setProjectId($projectId) - ->setInputUrl($inputUrl); - $response = $gapicClient->importEntities($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.datastore.admin.v1.DatastoreAdmin/ImportEntities', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getProjectId(); - $this->assertProtobufEquals($projectId, $actualValue); - $actualValue = $actualApiRequestObject->getInputUrl(); - $this->assertProtobufEquals($inputUrl, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importEntitiesTest'); - $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 importEntitiesExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importEntitiesTest'); - $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 - $projectId = 'projectId-1969970175'; - $inputUrl = 'inputUrl1707300730'; - $request = (new ImportEntitiesRequest()) - ->setProjectId($projectId) - ->setInputUrl($inputUrl); - $response = $gapicClient->importEntities($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importEntitiesTest'); - 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 listIndexesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $indexesElement = new Index(); - $indexes = [ - $indexesElement, - ]; - $expectedResponse = new ListIndexesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setIndexes($indexes); - $transport->addResponse($expectedResponse); - $request = new ListIndexesRequest(); - $response = $gapicClient->listIndexes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getIndexes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.datastore.admin.v1.DatastoreAdmin/ListIndexes', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listIndexesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 ListIndexesRequest(); - try { - $gapicClient->listIndexes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createIndexAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createIndexTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $projectId2 = 'projectId2939242356'; - $indexId = 'indexId112508840'; - $kind = 'kind3292052'; - $expectedResponse = new Index(); - $expectedResponse->setProjectId($projectId2); - $expectedResponse->setIndexId($indexId); - $expectedResponse->setKind($kind); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createIndexTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new CreateIndexRequest(); - $response = $gapicClient->createIndexAsync($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.datastore.admin.v1.DatastoreAdmin/CreateIndex', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createIndexTest'); - $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/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Clouddebugger/V2/Controller.php b/owl-bot-staging/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Clouddebugger/V2/Controller.php deleted file mode 100644 index 6a96e1766ba4..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Clouddebugger/V2/Controller.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' -ª -1google/devtools/clouddebugger/v2/controller.proto google.devtools.clouddebugger.v2google/api/client.protogoogle/api/field_behavior.proto+google/devtools/clouddebugger/v2/data.proto"\\ -RegisterDebuggeeRequestA -debuggee ( 2*.google.devtools.clouddebugger.v2.DebuggeeBàA"X -RegisterDebuggeeResponse< -debuggee ( 2*.google.devtools.clouddebugger.v2.Debuggee"h -ListActiveBreakpointsRequest - debuggee_id ( BàA - -wait_token (  -success_on_timeout ("‘ -ListActiveBreakpointsResponseA - breakpoints ( 2,.google.devtools.clouddebugger.v2.Breakpoint -next_wait_token (  - wait_expired ("€ -UpdateActiveBreakpointRequest - debuggee_id ( BàAE - -breakpoint ( 2,.google.devtools.clouddebugger.v2.BreakpointBàA" -UpdateActiveBreakpointResponse2¾ - Controller2 -RegisterDebuggee9.google.devtools.clouddebugger.v2.RegisterDebuggeeRequest:.google.devtools.clouddebugger.v2.RegisterDebuggeeResponse"7ÚAdebuggee‚Óä“&"!/v2/controller/debuggees/register:*â -ListActiveBreakpoints>.google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest?.google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse"HÚA debuggee_id‚Óä“42/v2/controller/debuggees/{debuggee_id}/breakpointsƒ -UpdateActiveBreakpoint?.google.devtools.clouddebugger.v2.UpdateActiveBreakpointRequest@.google.devtools.clouddebugger.v2.UpdateActiveBreakpointResponse"fÚAdebuggee_id,breakpoint‚Óä“GB/v2/controller/debuggees/{debuggee_id}/breakpoints/{breakpoint.id}:*ÊAclouddebugger.googleapis.comÒA]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud_debuggerBÇ -$com.google.devtools.clouddebugger.v2BControllerProtoPZ8cloud.google.com/go/debugger/apiv2/debuggerpb;debuggerpbªGoogle.Cloud.Debugger.V2ÊGoogle\\Cloud\\Debugger\\V2êGoogle::Cloud::Debugger::V2bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Clouddebugger/V2/Data.php b/owl-bot-staging/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Clouddebugger/V2/Data.php deleted file mode 100644 index c3bf2a72ecb715aef0e975e09233a9fab0688d5e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3439 zcmb_f-E!MR6vj^C*vF0Is)P~gOc5qCb)l81158m`I<}*v9$eeliOVpa(a7@J6_F*e zl1u{A3!Z{^V0a9!cn5|XZr};Hgl1m-mF&s-81fvn5lHp8T(;`%sq}`U(Y#m7IZvEhWRP~&I8bp!Cjx)AM zX-KBN<5*tFu$*8xB!gf)CbTpymxj8p%iJ!2txt&O>IRYa+tsJU*V$%&pPT6KMke~T zMHBsAc?ZC-bkCD^Q5t>(3IE(+V3~&G`MQt)woFemZPPb(%lrYOc_fW=%Oj|GUUn4N zhHpBy#1vY#L5g>z&?b}Jaxn_jkDY3>gkUoIb=xP@)-80?GpOnM4sD~TqKt_@OCwt; z-ieN7=FE{)41H9Tb51^zd>W9&($49NR&?@QJ$7J-;2y~Fk($hejICv&&^wB1-_303ik`!u(s#WiS9ooo~MtA zkb~5SFNg^#QOpPefU8pkIby{VlhRT#Q}`bNF!ber4HqKX`ulbO0eHN z&38~OQOuP;mqTY>9*=y=s@!1)2;y1Th3qf_DdJpQLVMYA>2iCgVk`WbfXv+HI%E%< z-L_h*@72}a{9D2;*sONc%9rg{y?LN@TZf&Rsx?}*%0a!=%r6NdyuGkrYc-KK*v_)> zE^I99s9(1`YPZX_Rxy9Mg{{iInokSYVXar`)GO77sx>Q5)%*$*n=SP!jYBn`Dm;W- z2>pg*ASXDsa1EAS-G3gH2EQ!RCOo?M3!6eMiO5yJWq(>y!p6Ih?>RP))PNMA#8EH3j}-HeUI zNR^R&w#z-{hVU3tj8OtlTzTEXo&rkYj|2d&7)N^ysRE)gro<@XDx|F_i9B7|^2f15 zFKsUQO!6N=MyKOoLTvv{QlmhMxnOyikt?RP@bfA_l@k5Pb&zYYC6nebimV1Hos++~ zhPlg?w=a)tZb`0iRpI|g&vnQcjy=R1D{9b;a09aB*rmuUxE98p5jH`voUw+K%=ku& z$R@|J_XIL*&mvP|iR(O`Pp=eD!x=Z2vhWV%kdQ_uUT+%17U9rJ3nj=Jm`I;!j48z| z$J=In#tfXZD?^Y0LMvSU+NJVXoWLVgBNN@U#5@mcj&I=luR&a=@QwAkhCvud+KA!X z6IVHc?#6Dv0>bmAsKW+fUC(ACZLuurtHKf8$zhjsW(iwe%v{;V6Kn^4K(HOIbKM7* z2eW|N23J*WpPp>qgY3emkcFiqa&jTlDai+k!YxQesL#S`tKX!@2IJ|`T0 zkp{N;U0{w(Lir8G8)WfXV^ql(`RvEqdK%+)1JX*h2z9^zMgzlQ`84-QDgPr-$e-nvclHxvpKgj&q5Jy4fUitTUs~internalAddGeneratedFile( - ' -î -/google/devtools/clouddebugger/v2/debugger.proto google.devtools.clouddebugger.v2google/api/field_behavior.proto+google/devtools/clouddebugger/v2/data.protogoogle/protobuf/empty.protogoogle/api/annotations.proto"” -SetBreakpointRequest - debuggee_id ( BàAE - -breakpoint ( 2,.google.devtools.clouddebugger.v2.BreakpointBàA -client_version ( BàA"Y -SetBreakpointResponse@ - -breakpoint ( 2,.google.devtools.clouddebugger.v2.Breakpoint"i -GetBreakpointRequest - debuggee_id ( BàA - breakpoint_id ( BàA -client_version ( BàA"Y -GetBreakpointResponse@ - -breakpoint ( 2,.google.devtools.clouddebugger.v2.Breakpoint"l -DeleteBreakpointRequest - debuggee_id ( BàA - breakpoint_id ( BàA -client_version ( BàA"ð -ListBreakpointsRequest - debuggee_id ( BàA -include_all_users ( -include_inactive (^ -action ( 2N.google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue - strip_results (B - -wait_token (  -client_version ( BàA[ -BreakpointActionValueB -value (23.google.devtools.clouddebugger.v2.Breakpoint.Action"u -ListBreakpointsResponseA - breakpoints ( 2,.google.devtools.clouddebugger.v2.Breakpoint -next_wait_token ( "c -ListDebuggeesRequest -project ( BàA -include_inactive ( -client_version ( BàA"V -ListDebuggeesResponse= - debuggees ( 2*.google.devtools.clouddebugger.v2.Debuggee2ò - Debugger2ò - SetBreakpoint6.google.devtools.clouddebugger.v2.SetBreakpointRequest7.google.devtools.clouddebugger.v2.SetBreakpointResponse"pÚA%debuggee_id,breakpoint,client_version‚Óä“B"4/v2/debugger/debuggees/{debuggee_id}/breakpoints/set: -breakpointõ - GetBreakpoint6.google.devtools.clouddebugger.v2.GetBreakpointRequest7.google.devtools.clouddebugger.v2.GetBreakpointResponse"sÚA(debuggee_id,breakpoint_id,client_version‚Óä“B@/v2/debugger/debuggees/{debuggee_id}/breakpoints/{breakpoint_id}Ú -DeleteBreakpoint9.google.devtools.clouddebugger.v2.DeleteBreakpointRequest.google.protobuf.Empty"sÚA(debuggee_id,breakpoint_id,client_version‚Óä“B*@/v2/debugger/debuggees/{debuggee_id}/breakpoints/{breakpoint_id}Ý -ListBreakpoints8.google.devtools.clouddebugger.v2.ListBreakpointsRequest9.google.devtools.clouddebugger.v2.ListBreakpointsResponse"UÚAdebuggee_id,client_version‚Óä“20/v2/debugger/debuggees/{debuggee_id}/breakpoints¹ - ListDebuggees6.google.devtools.clouddebugger.v2.ListDebuggeesRequest7.google.devtools.clouddebugger.v2.ListDebuggeesResponse"7ÚAproject,client_version‚Óä“/v2/debugger/debuggeesÊAclouddebugger.googleapis.comÒA]https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud_debuggerBÅ -$com.google.devtools.clouddebugger.v2B DebuggerProtoPZ8cloud.google.com/go/debugger/apiv2/debuggerpb;debuggerpbªGoogle.Cloud.Debugger.V2ÊGoogle\\Cloud\\Debugger\\V2êGoogle::Cloud::Debugger::V2bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Source/V1/SourceContext.php b/owl-bot-staging/Debugger/v2/proto/src/GPBMetadata/Google/Devtools/Source/V1/SourceContext.php deleted file mode 100644 index 878aeb39817c7a09ac2679a58b13cfb6931115c3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2318 zcmbtW-EJC36!rqf;b0QFQ6k!^>V!rzQIkcGDr#}k1Z;w>IKfSkn?x(2Wp}_+Z+2F* zvovnyH|Ue}y0`5Ev=_bZoAk2tvtYoOsx3F{&Yts~bH4M-JPzR#)WHE}4#yrE zoFaaVQOGE#F7?qM9u6@>E`1vkA2SP~-7b33?V9z%b7Qp&<4Km-? z_SU4KmTssuu9bgIL1C^9W=D31#$KP{kd_Q&RPyy&5^)KFwIhvR3fnoDy*2YIxTb-= zqwGY@5n~B3BjX6xwiw(PCvK@ z`I%QU59t$ps&dMi1y~vvb=GV5kN z6F%l9WaOEk;mdW%sMQTfH($Iiu9-Plf4cvwy<0RyS{u*1N6pqjyO@&e-QHgNWieC! z-GH0Rm1WjpLrSwxbZ+_jtrfXRVeWh84ahS*CXqNEq@UDbPDr!_APyEM>Z@#}rgE)R z$q-+jKtX>=I$p{s#n@XbV$Jffx7Grnu)jO*%&h&4w%QZ)f#3_m{5GT30l(_Z( zMcijl>@4g=Ddm{?N#dgJ3Crho4Ies-4o<83lM|9?$yH!GQsewD!}uxnaYv1MJqj!_@O$#wVCjI? wQSG;hg>9?SZFwnBHumIJAg%?2tO|R7YdY}m>Nz?yb}t>d%2H3)GdKhI8%_M!#sB~S diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint.php deleted file mode 100644 index e44d89bb6ed4..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint.php +++ /dev/null @@ -1,781 +0,0 @@ -google.devtools.clouddebugger.v2.Breakpoint - */ -class Breakpoint extends \Google\Protobuf\Internal\Message -{ - /** - * Breakpoint identifier, unique in the scope of the debuggee. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Action that the agent should perform when the code at the - * breakpoint location is hit. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint.Action action = 13; - */ - protected $action = 0; - /** - * Breakpoint source location. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.SourceLocation location = 2; - */ - protected $location = null; - /** - * Condition that triggers the breakpoint. - * The condition is a compound boolean expression composed using expressions - * in a programming language at the source location. - * - * Generated from protobuf field string condition = 3; - */ - protected $condition = ''; - /** - * List of read-only expressions to evaluate at the breakpoint location. - * The expressions are composed using expressions in the programming language - * at the source location. If the breakpoint action is `LOG`, the evaluated - * expressions are included in log statements. - * - * Generated from protobuf field repeated string expressions = 4; - */ - private $expressions; - /** - * Only relevant when action is `LOG`. Defines the message to log when - * the breakpoint hits. The message may include parameter placeholders `$0`, - * `$1`, etc. These placeholders are replaced with the evaluated value - * of the appropriate expression. Expressions not referenced in - * `log_message_format` are not logged. - * Example: `Message received, id = $0, count = $1` with - * `expressions` = `[ message.id, message.count ]`. - * - * Generated from protobuf field string log_message_format = 14; - */ - protected $log_message_format = ''; - /** - * Indicates the severity of the log. Only relevant when action is `LOG`. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint.LogLevel log_level = 15; - */ - protected $log_level = 0; - /** - * When true, indicates that this is a final result and the - * breakpoint state will not change from here on. - * - * Generated from protobuf field bool is_final_state = 5; - */ - protected $is_final_state = false; - /** - * Time this breakpoint was created by the server in seconds resolution. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11; - */ - protected $create_time = null; - /** - * Time this breakpoint was finalized as seen by the server in seconds - * resolution. - * - * Generated from protobuf field .google.protobuf.Timestamp final_time = 12; - */ - protected $final_time = null; - /** - * E-mail address of the user that created this breakpoint - * - * Generated from protobuf field string user_email = 16; - */ - protected $user_email = ''; - /** - * Breakpoint status. - * The status includes an error flag and a human readable message. - * This field is usually unset. The message can be either - * informational or an error message. Regardless, clients should always - * display the text message back to the user. - * Error status indicates complete failure of the breakpoint. - * Example (non-final state): `Still loading symbols...` - * Examples (final state): - * * `Invalid line number` referring to location - * * `Field f not found in class C` referring to condition - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage status = 10; - */ - protected $status = null; - /** - * The stack at breakpoint time, where stack_frames[0] represents the most - * recently entered function. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.StackFrame stack_frames = 7; - */ - private $stack_frames; - /** - * Values of evaluated expressions at breakpoint time. - * The evaluated expressions appear in exactly the same order they - * are listed in the `expressions` field. - * The `name` field holds the original expression text, the `value` or - * `members` field holds the result of the evaluated expression. - * If the expression cannot be evaluated, the `status` inside the `Variable` - * will indicate an error and contain the error text. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable evaluated_expressions = 8; - */ - private $evaluated_expressions; - /** - * The `variable_table` exists to aid with computation, memory and network - * traffic optimization. It enables storing a variable once and reference - * it from multiple variables, including variables stored in the - * `variable_table` itself. - * For example, the same `this` object, which may appear at many levels of - * the stack, can have all of its data stored once in this table. The - * stack frame variables then would hold only a reference to it. - * The variable `var_table_index` field is an index into this repeated field. - * The stored objects are nameless and get their name from the referencing - * variable. The effective variable is a merge of the referencing variable - * and the referenced variable. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable variable_table = 9; - */ - private $variable_table; - /** - * A set of custom breakpoint properties, populated by the agent, to be - * displayed to the user. - * - * Generated from protobuf field map labels = 17; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Breakpoint identifier, unique in the scope of the debuggee. - * @type int $action - * Action that the agent should perform when the code at the - * breakpoint location is hit. - * @type \Google\Cloud\Debugger\V2\SourceLocation $location - * Breakpoint source location. - * @type string $condition - * Condition that triggers the breakpoint. - * The condition is a compound boolean expression composed using expressions - * in a programming language at the source location. - * @type array|\Google\Protobuf\Internal\RepeatedField $expressions - * List of read-only expressions to evaluate at the breakpoint location. - * The expressions are composed using expressions in the programming language - * at the source location. If the breakpoint action is `LOG`, the evaluated - * expressions are included in log statements. - * @type string $log_message_format - * Only relevant when action is `LOG`. Defines the message to log when - * the breakpoint hits. The message may include parameter placeholders `$0`, - * `$1`, etc. These placeholders are replaced with the evaluated value - * of the appropriate expression. Expressions not referenced in - * `log_message_format` are not logged. - * Example: `Message received, id = $0, count = $1` with - * `expressions` = `[ message.id, message.count ]`. - * @type int $log_level - * Indicates the severity of the log. Only relevant when action is `LOG`. - * @type bool $is_final_state - * When true, indicates that this is a final result and the - * breakpoint state will not change from here on. - * @type \Google\Protobuf\Timestamp $create_time - * Time this breakpoint was created by the server in seconds resolution. - * @type \Google\Protobuf\Timestamp $final_time - * Time this breakpoint was finalized as seen by the server in seconds - * resolution. - * @type string $user_email - * E-mail address of the user that created this breakpoint - * @type \Google\Cloud\Debugger\V2\StatusMessage $status - * Breakpoint status. - * The status includes an error flag and a human readable message. - * This field is usually unset. The message can be either - * informational or an error message. Regardless, clients should always - * display the text message back to the user. - * Error status indicates complete failure of the breakpoint. - * Example (non-final state): `Still loading symbols...` - * Examples (final state): - * * `Invalid line number` referring to location - * * `Field f not found in class C` referring to condition - * @type array<\Google\Cloud\Debugger\V2\StackFrame>|\Google\Protobuf\Internal\RepeatedField $stack_frames - * The stack at breakpoint time, where stack_frames[0] represents the most - * recently entered function. - * @type array<\Google\Cloud\Debugger\V2\Variable>|\Google\Protobuf\Internal\RepeatedField $evaluated_expressions - * Values of evaluated expressions at breakpoint time. - * The evaluated expressions appear in exactly the same order they - * are listed in the `expressions` field. - * The `name` field holds the original expression text, the `value` or - * `members` field holds the result of the evaluated expression. - * If the expression cannot be evaluated, the `status` inside the `Variable` - * will indicate an error and contain the error text. - * @type array<\Google\Cloud\Debugger\V2\Variable>|\Google\Protobuf\Internal\RepeatedField $variable_table - * The `variable_table` exists to aid with computation, memory and network - * traffic optimization. It enables storing a variable once and reference - * it from multiple variables, including variables stored in the - * `variable_table` itself. - * For example, the same `this` object, which may appear at many levels of - * the stack, can have all of its data stored once in this table. The - * stack frame variables then would hold only a reference to it. - * The variable `var_table_index` field is an index into this repeated field. - * The stored objects are nameless and get their name from the referencing - * variable. The effective variable is a merge of the referencing variable - * and the referenced variable. - * @type array|\Google\Protobuf\Internal\MapField $labels - * A set of custom breakpoint properties, populated by the agent, to be - * displayed to the user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Breakpoint identifier, unique in the scope of the debuggee. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Breakpoint identifier, unique in the scope of the debuggee. - * - * 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; - } - - /** - * Action that the agent should perform when the code at the - * breakpoint location is hit. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint.Action action = 13; - * @return int - */ - public function getAction() - { - return $this->action; - } - - /** - * Action that the agent should perform when the code at the - * breakpoint location is hit. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint.Action action = 13; - * @param int $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Debugger\V2\Breakpoint\Action::class); - $this->action = $var; - - return $this; - } - - /** - * Breakpoint source location. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.SourceLocation location = 2; - * @return \Google\Cloud\Debugger\V2\SourceLocation|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Breakpoint source location. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.SourceLocation location = 2; - * @param \Google\Cloud\Debugger\V2\SourceLocation $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\SourceLocation::class); - $this->location = $var; - - return $this; - } - - /** - * Condition that triggers the breakpoint. - * The condition is a compound boolean expression composed using expressions - * in a programming language at the source location. - * - * Generated from protobuf field string condition = 3; - * @return string - */ - public function getCondition() - { - return $this->condition; - } - - /** - * Condition that triggers the breakpoint. - * The condition is a compound boolean expression composed using expressions - * in a programming language at the source location. - * - * Generated from protobuf field string condition = 3; - * @param string $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkString($var, True); - $this->condition = $var; - - return $this; - } - - /** - * List of read-only expressions to evaluate at the breakpoint location. - * The expressions are composed using expressions in the programming language - * at the source location. If the breakpoint action is `LOG`, the evaluated - * expressions are included in log statements. - * - * Generated from protobuf field repeated string expressions = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExpressions() - { - return $this->expressions; - } - - /** - * List of read-only expressions to evaluate at the breakpoint location. - * The expressions are composed using expressions in the programming language - * at the source location. If the breakpoint action is `LOG`, the evaluated - * expressions are included in log statements. - * - * Generated from protobuf field repeated string expressions = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->expressions = $arr; - - return $this; - } - - /** - * Only relevant when action is `LOG`. Defines the message to log when - * the breakpoint hits. The message may include parameter placeholders `$0`, - * `$1`, etc. These placeholders are replaced with the evaluated value - * of the appropriate expression. Expressions not referenced in - * `log_message_format` are not logged. - * Example: `Message received, id = $0, count = $1` with - * `expressions` = `[ message.id, message.count ]`. - * - * Generated from protobuf field string log_message_format = 14; - * @return string - */ - public function getLogMessageFormat() - { - return $this->log_message_format; - } - - /** - * Only relevant when action is `LOG`. Defines the message to log when - * the breakpoint hits. The message may include parameter placeholders `$0`, - * `$1`, etc. These placeholders are replaced with the evaluated value - * of the appropriate expression. Expressions not referenced in - * `log_message_format` are not logged. - * Example: `Message received, id = $0, count = $1` with - * `expressions` = `[ message.id, message.count ]`. - * - * Generated from protobuf field string log_message_format = 14; - * @param string $var - * @return $this - */ - public function setLogMessageFormat($var) - { - GPBUtil::checkString($var, True); - $this->log_message_format = $var; - - return $this; - } - - /** - * Indicates the severity of the log. Only relevant when action is `LOG`. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint.LogLevel log_level = 15; - * @return int - */ - public function getLogLevel() - { - return $this->log_level; - } - - /** - * Indicates the severity of the log. Only relevant when action is `LOG`. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint.LogLevel log_level = 15; - * @param int $var - * @return $this - */ - public function setLogLevel($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Debugger\V2\Breakpoint\LogLevel::class); - $this->log_level = $var; - - return $this; - } - - /** - * When true, indicates that this is a final result and the - * breakpoint state will not change from here on. - * - * Generated from protobuf field bool is_final_state = 5; - * @return bool - */ - public function getIsFinalState() - { - return $this->is_final_state; - } - - /** - * When true, indicates that this is a final result and the - * breakpoint state will not change from here on. - * - * Generated from protobuf field bool is_final_state = 5; - * @param bool $var - * @return $this - */ - public function setIsFinalState($var) - { - GPBUtil::checkBool($var); - $this->is_final_state = $var; - - return $this; - } - - /** - * Time this breakpoint was created by the server in seconds resolution. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Time this breakpoint was created by the server in seconds resolution. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 11; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Time this breakpoint was finalized as seen by the server in seconds - * resolution. - * - * Generated from protobuf field .google.protobuf.Timestamp final_time = 12; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFinalTime() - { - return $this->final_time; - } - - public function hasFinalTime() - { - return isset($this->final_time); - } - - public function clearFinalTime() - { - unset($this->final_time); - } - - /** - * Time this breakpoint was finalized as seen by the server in seconds - * resolution. - * - * Generated from protobuf field .google.protobuf.Timestamp final_time = 12; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFinalTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->final_time = $var; - - return $this; - } - - /** - * E-mail address of the user that created this breakpoint - * - * Generated from protobuf field string user_email = 16; - * @return string - */ - public function getUserEmail() - { - return $this->user_email; - } - - /** - * E-mail address of the user that created this breakpoint - * - * Generated from protobuf field string user_email = 16; - * @param string $var - * @return $this - */ - public function setUserEmail($var) - { - GPBUtil::checkString($var, True); - $this->user_email = $var; - - return $this; - } - - /** - * Breakpoint status. - * The status includes an error flag and a human readable message. - * This field is usually unset. The message can be either - * informational or an error message. Regardless, clients should always - * display the text message back to the user. - * Error status indicates complete failure of the breakpoint. - * Example (non-final state): `Still loading symbols...` - * Examples (final state): - * * `Invalid line number` referring to location - * * `Field f not found in class C` referring to condition - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage status = 10; - * @return \Google\Cloud\Debugger\V2\StatusMessage|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Breakpoint status. - * The status includes an error flag and a human readable message. - * This field is usually unset. The message can be either - * informational or an error message. Regardless, clients should always - * display the text message back to the user. - * Error status indicates complete failure of the breakpoint. - * Example (non-final state): `Still loading symbols...` - * Examples (final state): - * * `Invalid line number` referring to location - * * `Field f not found in class C` referring to condition - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage status = 10; - * @param \Google\Cloud\Debugger\V2\StatusMessage $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\StatusMessage::class); - $this->status = $var; - - return $this; - } - - /** - * The stack at breakpoint time, where stack_frames[0] represents the most - * recently entered function. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.StackFrame stack_frames = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStackFrames() - { - return $this->stack_frames; - } - - /** - * The stack at breakpoint time, where stack_frames[0] represents the most - * recently entered function. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.StackFrame stack_frames = 7; - * @param array<\Google\Cloud\Debugger\V2\StackFrame>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStackFrames($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\StackFrame::class); - $this->stack_frames = $arr; - - return $this; - } - - /** - * Values of evaluated expressions at breakpoint time. - * The evaluated expressions appear in exactly the same order they - * are listed in the `expressions` field. - * The `name` field holds the original expression text, the `value` or - * `members` field holds the result of the evaluated expression. - * If the expression cannot be evaluated, the `status` inside the `Variable` - * will indicate an error and contain the error text. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable evaluated_expressions = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEvaluatedExpressions() - { - return $this->evaluated_expressions; - } - - /** - * Values of evaluated expressions at breakpoint time. - * The evaluated expressions appear in exactly the same order they - * are listed in the `expressions` field. - * The `name` field holds the original expression text, the `value` or - * `members` field holds the result of the evaluated expression. - * If the expression cannot be evaluated, the `status` inside the `Variable` - * will indicate an error and contain the error text. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable evaluated_expressions = 8; - * @param array<\Google\Cloud\Debugger\V2\Variable>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEvaluatedExpressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Variable::class); - $this->evaluated_expressions = $arr; - - return $this; - } - - /** - * The `variable_table` exists to aid with computation, memory and network - * traffic optimization. It enables storing a variable once and reference - * it from multiple variables, including variables stored in the - * `variable_table` itself. - * For example, the same `this` object, which may appear at many levels of - * the stack, can have all of its data stored once in this table. The - * stack frame variables then would hold only a reference to it. - * The variable `var_table_index` field is an index into this repeated field. - * The stored objects are nameless and get their name from the referencing - * variable. The effective variable is a merge of the referencing variable - * and the referenced variable. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable variable_table = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVariableTable() - { - return $this->variable_table; - } - - /** - * The `variable_table` exists to aid with computation, memory and network - * traffic optimization. It enables storing a variable once and reference - * it from multiple variables, including variables stored in the - * `variable_table` itself. - * For example, the same `this` object, which may appear at many levels of - * the stack, can have all of its data stored once in this table. The - * stack frame variables then would hold only a reference to it. - * The variable `var_table_index` field is an index into this repeated field. - * The stored objects are nameless and get their name from the referencing - * variable. The effective variable is a merge of the referencing variable - * and the referenced variable. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable variable_table = 9; - * @param array<\Google\Cloud\Debugger\V2\Variable>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVariableTable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Variable::class); - $this->variable_table = $arr; - - return $this; - } - - /** - * A set of custom breakpoint properties, populated by the agent, to be - * displayed to the user. - * - * Generated from protobuf field map labels = 17; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * A set of custom breakpoint properties, populated by the agent, to be - * displayed to the user. - * - * Generated from protobuf field map labels = 17; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint/Action.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint/Action.php deleted file mode 100644 index 5d6b5daee935..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint/Action.php +++ /dev/null @@ -1,61 +0,0 @@ -google.devtools.clouddebugger.v2.Breakpoint.Action - */ -class Action -{ - /** - * Capture stack frame and variables and update the breakpoint. - * The data is only captured once. After that the breakpoint is set - * in a final state. - * - * Generated from protobuf enum CAPTURE = 0; - */ - const CAPTURE = 0; - /** - * Log each breakpoint hit. The breakpoint remains active until - * deleted or expired. - * - * Generated from protobuf enum LOG = 1; - */ - const LOG = 1; - - private static $valueToName = [ - self::CAPTURE => 'CAPTURE', - self::LOG => 'LOG', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Debugger\V2\Breakpoint_Action::class); - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint/LogLevel.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint/LogLevel.php deleted file mode 100644 index 29e405216636..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Breakpoint/LogLevel.php +++ /dev/null @@ -1,64 +0,0 @@ -google.devtools.clouddebugger.v2.Breakpoint.LogLevel - */ -class LogLevel -{ - /** - * Information log message. - * - * Generated from protobuf enum INFO = 0; - */ - const INFO = 0; - /** - * Warning log message. - * - * Generated from protobuf enum WARNING = 1; - */ - const WARNING = 1; - /** - * Error log message. - * - * Generated from protobuf enum ERROR = 2; - */ - const ERROR = 2; - - private static $valueToName = [ - self::INFO => 'INFO', - self::WARNING => 'WARNING', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LogLevel::class, \Google\Cloud\Debugger\V2\Breakpoint_LogLevel::class); - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Debuggee.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Debuggee.php deleted file mode 100644 index 77ffced22849..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Debuggee.php +++ /dev/null @@ -1,494 +0,0 @@ -google.devtools.clouddebugger.v2.Debuggee - */ -class Debuggee extends \Google\Protobuf\Internal\Message -{ - /** - * Unique identifier for the debuggee generated by the controller service. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Project the debuggee is associated with. - * Use project number or id when registering a Google Cloud Platform project. - * - * Generated from protobuf field string project = 2; - */ - protected $project = ''; - /** - * Uniquifier to further distinguish the application. - * It is possible that different applications might have identical values in - * the debuggee message, thus, incorrectly identified as a single application - * by the Controller service. This field adds salt to further distinguish the - * application. Agents should consider seeding this field with value that - * identifies the code, binary, configuration and environment. - * - * Generated from protobuf field string uniquifier = 3; - */ - protected $uniquifier = ''; - /** - * Human readable description of the debuggee. - * Including a human-readable project name, environment name and version - * information is recommended. - * - * Generated from protobuf field string description = 4; - */ - protected $description = ''; - /** - * If set to `true`, indicates that Controller service does not detect any - * activity from the debuggee agents and the application is possibly stopped. - * - * Generated from protobuf field bool is_inactive = 5; - */ - protected $is_inactive = false; - /** - * Version ID of the agent. - * Schema: `domain/language-platform/vmajor.minor` (for example - * `google.com/java-gcp/v1.1`). - * - * Generated from protobuf field string agent_version = 6; - */ - protected $agent_version = ''; - /** - * If set to `true`, indicates that the agent should disable itself and - * detach from the debuggee. - * - * Generated from protobuf field bool is_disabled = 7; - */ - protected $is_disabled = false; - /** - * Human readable message to be displayed to the user about this debuggee. - * Absence of this field indicates no status. The message can be either - * informational or an error status. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage status = 8; - */ - protected $status = null; - /** - * References to the locations and revisions of the source code used in the - * deployed application. - * - * Generated from protobuf field repeated .google.devtools.source.v1.SourceContext source_contexts = 9; - */ - private $source_contexts; - /** - * References to the locations and revisions of the source code used in the - * deployed application. - * - * Generated from protobuf field repeated .google.devtools.source.v1.ExtendedSourceContext ext_source_contexts = 13 [deprecated = true]; - * @deprecated - */ - private $ext_source_contexts; - /** - * A set of custom debuggee properties, populated by the agent, to be - * displayed to the user. - * - * Generated from protobuf field map labels = 11; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Unique identifier for the debuggee generated by the controller service. - * @type string $project - * Project the debuggee is associated with. - * Use project number or id when registering a Google Cloud Platform project. - * @type string $uniquifier - * Uniquifier to further distinguish the application. - * It is possible that different applications might have identical values in - * the debuggee message, thus, incorrectly identified as a single application - * by the Controller service. This field adds salt to further distinguish the - * application. Agents should consider seeding this field with value that - * identifies the code, binary, configuration and environment. - * @type string $description - * Human readable description of the debuggee. - * Including a human-readable project name, environment name and version - * information is recommended. - * @type bool $is_inactive - * If set to `true`, indicates that Controller service does not detect any - * activity from the debuggee agents and the application is possibly stopped. - * @type string $agent_version - * Version ID of the agent. - * Schema: `domain/language-platform/vmajor.minor` (for example - * `google.com/java-gcp/v1.1`). - * @type bool $is_disabled - * If set to `true`, indicates that the agent should disable itself and - * detach from the debuggee. - * @type \Google\Cloud\Debugger\V2\StatusMessage $status - * Human readable message to be displayed to the user about this debuggee. - * Absence of this field indicates no status. The message can be either - * informational or an error status. - * @type array<\Google\Cloud\DevTools\Source\V1\SourceContext>|\Google\Protobuf\Internal\RepeatedField $source_contexts - * References to the locations and revisions of the source code used in the - * deployed application. - * @type array<\Google\Cloud\DevTools\Source\V1\ExtendedSourceContext>|\Google\Protobuf\Internal\RepeatedField $ext_source_contexts - * References to the locations and revisions of the source code used in the - * deployed application. - * @type array|\Google\Protobuf\Internal\MapField $labels - * A set of custom debuggee properties, populated by the agent, to be - * displayed to the user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Unique identifier for the debuggee generated by the controller service. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Unique identifier for the debuggee generated by the controller service. - * - * 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; - } - - /** - * Project the debuggee is associated with. - * Use project number or id when registering a Google Cloud Platform project. - * - * Generated from protobuf field string project = 2; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Project the debuggee is associated with. - * Use project number or id when registering a Google Cloud Platform project. - * - * Generated from protobuf field string project = 2; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * Uniquifier to further distinguish the application. - * It is possible that different applications might have identical values in - * the debuggee message, thus, incorrectly identified as a single application - * by the Controller service. This field adds salt to further distinguish the - * application. Agents should consider seeding this field with value that - * identifies the code, binary, configuration and environment. - * - * Generated from protobuf field string uniquifier = 3; - * @return string - */ - public function getUniquifier() - { - return $this->uniquifier; - } - - /** - * Uniquifier to further distinguish the application. - * It is possible that different applications might have identical values in - * the debuggee message, thus, incorrectly identified as a single application - * by the Controller service. This field adds salt to further distinguish the - * application. Agents should consider seeding this field with value that - * identifies the code, binary, configuration and environment. - * - * Generated from protobuf field string uniquifier = 3; - * @param string $var - * @return $this - */ - public function setUniquifier($var) - { - GPBUtil::checkString($var, True); - $this->uniquifier = $var; - - return $this; - } - - /** - * Human readable description of the debuggee. - * Including a human-readable project name, environment name and version - * information is recommended. - * - * Generated from protobuf field string description = 4; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Human readable description of the debuggee. - * Including a human-readable project name, environment name and version - * information is recommended. - * - * 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; - } - - /** - * If set to `true`, indicates that Controller service does not detect any - * activity from the debuggee agents and the application is possibly stopped. - * - * Generated from protobuf field bool is_inactive = 5; - * @return bool - */ - public function getIsInactive() - { - return $this->is_inactive; - } - - /** - * If set to `true`, indicates that Controller service does not detect any - * activity from the debuggee agents and the application is possibly stopped. - * - * Generated from protobuf field bool is_inactive = 5; - * @param bool $var - * @return $this - */ - public function setIsInactive($var) - { - GPBUtil::checkBool($var); - $this->is_inactive = $var; - - return $this; - } - - /** - * Version ID of the agent. - * Schema: `domain/language-platform/vmajor.minor` (for example - * `google.com/java-gcp/v1.1`). - * - * Generated from protobuf field string agent_version = 6; - * @return string - */ - public function getAgentVersion() - { - return $this->agent_version; - } - - /** - * Version ID of the agent. - * Schema: `domain/language-platform/vmajor.minor` (for example - * `google.com/java-gcp/v1.1`). - * - * Generated from protobuf field string agent_version = 6; - * @param string $var - * @return $this - */ - public function setAgentVersion($var) - { - GPBUtil::checkString($var, True); - $this->agent_version = $var; - - return $this; - } - - /** - * If set to `true`, indicates that the agent should disable itself and - * detach from the debuggee. - * - * Generated from protobuf field bool is_disabled = 7; - * @return bool - */ - public function getIsDisabled() - { - return $this->is_disabled; - } - - /** - * If set to `true`, indicates that the agent should disable itself and - * detach from the debuggee. - * - * Generated from protobuf field bool is_disabled = 7; - * @param bool $var - * @return $this - */ - public function setIsDisabled($var) - { - GPBUtil::checkBool($var); - $this->is_disabled = $var; - - return $this; - } - - /** - * Human readable message to be displayed to the user about this debuggee. - * Absence of this field indicates no status. The message can be either - * informational or an error status. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage status = 8; - * @return \Google\Cloud\Debugger\V2\StatusMessage|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Human readable message to be displayed to the user about this debuggee. - * Absence of this field indicates no status. The message can be either - * informational or an error status. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage status = 8; - * @param \Google\Cloud\Debugger\V2\StatusMessage $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\StatusMessage::class); - $this->status = $var; - - return $this; - } - - /** - * References to the locations and revisions of the source code used in the - * deployed application. - * - * Generated from protobuf field repeated .google.devtools.source.v1.SourceContext source_contexts = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSourceContexts() - { - return $this->source_contexts; - } - - /** - * References to the locations and revisions of the source code used in the - * deployed application. - * - * Generated from protobuf field repeated .google.devtools.source.v1.SourceContext source_contexts = 9; - * @param array<\Google\Cloud\DevTools\Source\V1\SourceContext>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSourceContexts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DevTools\Source\V1\SourceContext::class); - $this->source_contexts = $arr; - - return $this; - } - - /** - * References to the locations and revisions of the source code used in the - * deployed application. - * - * Generated from protobuf field repeated .google.devtools.source.v1.ExtendedSourceContext ext_source_contexts = 13 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getExtSourceContexts() - { - @trigger_error('ext_source_contexts is deprecated.', E_USER_DEPRECATED); - return $this->ext_source_contexts; - } - - /** - * References to the locations and revisions of the source code used in the - * deployed application. - * - * Generated from protobuf field repeated .google.devtools.source.v1.ExtendedSourceContext ext_source_contexts = 13 [deprecated = true]; - * @param array<\Google\Cloud\DevTools\Source\V1\ExtendedSourceContext>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setExtSourceContexts($var) - { - @trigger_error('ext_source_contexts is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DevTools\Source\V1\ExtendedSourceContext::class); - $this->ext_source_contexts = $arr; - - return $this; - } - - /** - * A set of custom debuggee properties, populated by the agent, to be - * displayed to the user. - * - * Generated from protobuf field map labels = 11; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * A set of custom debuggee properties, populated by the agent, to be - * displayed to the user. - * - * Generated from protobuf field map labels = 11; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/DeleteBreakpointRequest.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/DeleteBreakpointRequest.php deleted file mode 100644 index dfa52c1268ea..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/DeleteBreakpointRequest.php +++ /dev/null @@ -1,157 +0,0 @@ -google.devtools.clouddebugger.v2.DeleteBreakpointRequest - */ -class DeleteBreakpointRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. ID of the debuggee whose breakpoint to delete. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $debuggee_id = ''; - /** - * Required. ID of the breakpoint to delete. - * - * Generated from protobuf field string breakpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $breakpoint_id = ''; - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $client_version = ''; - - /** - * @param string $debuggeeId Required. ID of the debuggee whose breakpoint to delete. - * @param string $breakpointId Required. ID of the breakpoint to delete. - * @param string $clientVersion Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * @return \Google\Cloud\Debugger\V2\DeleteBreakpointRequest - * - * @experimental - */ - public static function build(string $debuggeeId, string $breakpointId, string $clientVersion): self - { - return (new self()) - ->setDebuggeeId($debuggeeId) - ->setBreakpointId($breakpointId) - ->setClientVersion($clientVersion); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $debuggee_id - * Required. ID of the debuggee whose breakpoint to delete. - * @type string $breakpoint_id - * Required. ID of the breakpoint to delete. - * @type string $client_version - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce(); - parent::__construct($data); - } - - /** - * Required. ID of the debuggee whose breakpoint to delete. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDebuggeeId() - { - return $this->debuggee_id; - } - - /** - * Required. ID of the debuggee whose breakpoint to delete. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDebuggeeId($var) - { - GPBUtil::checkString($var, True); - $this->debuggee_id = $var; - - return $this; - } - - /** - * Required. ID of the breakpoint to delete. - * - * Generated from protobuf field string breakpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBreakpointId() - { - return $this->breakpoint_id; - } - - /** - * Required. ID of the breakpoint to delete. - * - * Generated from protobuf field string breakpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBreakpointId($var) - { - GPBUtil::checkString($var, True); - $this->breakpoint_id = $var; - - return $this; - } - - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClientVersion() - { - return $this->client_version; - } - - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClientVersion($var) - { - GPBUtil::checkString($var, True); - $this->client_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/FormatMessage.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/FormatMessage.php deleted file mode 100644 index 818dbebf984b..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/FormatMessage.php +++ /dev/null @@ -1,125 +0,0 @@ -google.devtools.clouddebugger.v2.FormatMessage - */ -class FormatMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Format template for the message. The `format` uses placeholders `$0`, - * `$1`, etc. to reference parameters. `$$` can be used to denote the `$` - * character. - * Examples: - * * `Failed to load '$0' which helps debug $1 the first time it - * is loaded. Again, $0 is very important.` - * * `Please pay $$10 to use $0 instead of $1.` - * - * Generated from protobuf field string format = 1; - */ - protected $format = ''; - /** - * Optional parameters to be embedded into the message. - * - * Generated from protobuf field repeated string parameters = 2; - */ - private $parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $format - * Format template for the message. The `format` uses placeholders `$0`, - * `$1`, etc. to reference parameters. `$$` can be used to denote the `$` - * character. - * Examples: - * * `Failed to load '$0' which helps debug $1 the first time it - * is loaded. Again, $0 is very important.` - * * `Please pay $$10 to use $0 instead of $1.` - * @type array|\Google\Protobuf\Internal\RepeatedField $parameters - * Optional parameters to be embedded into the message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Format template for the message. The `format` uses placeholders `$0`, - * `$1`, etc. to reference parameters. `$$` can be used to denote the `$` - * character. - * Examples: - * * `Failed to load '$0' which helps debug $1 the first time it - * is loaded. Again, $0 is very important.` - * * `Please pay $$10 to use $0 instead of $1.` - * - * Generated from protobuf field string format = 1; - * @return string - */ - public function getFormat() - { - return $this->format; - } - - /** - * Format template for the message. The `format` uses placeholders `$0`, - * `$1`, etc. to reference parameters. `$$` can be used to denote the `$` - * character. - * Examples: - * * `Failed to load '$0' which helps debug $1 the first time it - * is loaded. Again, $0 is very important.` - * * `Please pay $$10 to use $0 instead of $1.` - * - * Generated from protobuf field string format = 1; - * @param string $var - * @return $this - */ - public function setFormat($var) - { - GPBUtil::checkString($var, True); - $this->format = $var; - - return $this; - } - - /** - * Optional parameters to be embedded into the message. - * - * Generated from protobuf field repeated string parameters = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParameters() - { - return $this->parameters; - } - - /** - * Optional parameters to be embedded into the message. - * - * Generated from protobuf field repeated string parameters = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/GetBreakpointRequest.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/GetBreakpointRequest.php deleted file mode 100644 index fbe7c193c166..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/GetBreakpointRequest.php +++ /dev/null @@ -1,157 +0,0 @@ -google.devtools.clouddebugger.v2.GetBreakpointRequest - */ -class GetBreakpointRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. ID of the debuggee whose breakpoint to get. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $debuggee_id = ''; - /** - * Required. ID of the breakpoint to get. - * - * Generated from protobuf field string breakpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $breakpoint_id = ''; - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $client_version = ''; - - /** - * @param string $debuggeeId Required. ID of the debuggee whose breakpoint to get. - * @param string $breakpointId Required. ID of the breakpoint to get. - * @param string $clientVersion Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * @return \Google\Cloud\Debugger\V2\GetBreakpointRequest - * - * @experimental - */ - public static function build(string $debuggeeId, string $breakpointId, string $clientVersion): self - { - return (new self()) - ->setDebuggeeId($debuggeeId) - ->setBreakpointId($breakpointId) - ->setClientVersion($clientVersion); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $debuggee_id - * Required. ID of the debuggee whose breakpoint to get. - * @type string $breakpoint_id - * Required. ID of the breakpoint to get. - * @type string $client_version - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce(); - parent::__construct($data); - } - - /** - * Required. ID of the debuggee whose breakpoint to get. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDebuggeeId() - { - return $this->debuggee_id; - } - - /** - * Required. ID of the debuggee whose breakpoint to get. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDebuggeeId($var) - { - GPBUtil::checkString($var, True); - $this->debuggee_id = $var; - - return $this; - } - - /** - * Required. ID of the breakpoint to get. - * - * Generated from protobuf field string breakpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBreakpointId() - { - return $this->breakpoint_id; - } - - /** - * Required. ID of the breakpoint to get. - * - * Generated from protobuf field string breakpoint_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBreakpointId($var) - { - GPBUtil::checkString($var, True); - $this->breakpoint_id = $var; - - return $this; - } - - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClientVersion() - { - return $this->client_version; - } - - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClientVersion($var) - { - GPBUtil::checkString($var, True); - $this->client_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/GetBreakpointResponse.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/GetBreakpointResponse.php deleted file mode 100644 index 1ce985b290ae..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/GetBreakpointResponse.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.clouddebugger.v2.GetBreakpointResponse - */ -class GetBreakpointResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Complete breakpoint state. - * The fields `id` and `location` are guaranteed to be set. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 1; - */ - protected $breakpoint = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Debugger\V2\Breakpoint $breakpoint - * Complete breakpoint state. - * The fields `id` and `location` are guaranteed to be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce(); - parent::__construct($data); - } - - /** - * Complete breakpoint state. - * The fields `id` and `location` are guaranteed to be set. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 1; - * @return \Google\Cloud\Debugger\V2\Breakpoint|null - */ - public function getBreakpoint() - { - return $this->breakpoint; - } - - public function hasBreakpoint() - { - return isset($this->breakpoint); - } - - public function clearBreakpoint() - { - unset($this->breakpoint); - } - - /** - * Complete breakpoint state. - * The fields `id` and `location` are guaranteed to be set. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 1; - * @param \Google\Cloud\Debugger\V2\Breakpoint $var - * @return $this - */ - public function setBreakpoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\Breakpoint::class); - $this->breakpoint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListActiveBreakpointsRequest.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListActiveBreakpointsRequest.php deleted file mode 100644 index 31b30451d82b..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListActiveBreakpointsRequest.php +++ /dev/null @@ -1,176 +0,0 @@ -google.devtools.clouddebugger.v2.ListActiveBreakpointsRequest - */ -class ListActiveBreakpointsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Identifies the debuggee. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $debuggee_id = ''; - /** - * A token that, if specified, blocks the method call until the list - * of active breakpoints has changed, or a server-selected timeout has - * expired. The value should be set from the `next_wait_token` field in - * the last response. The initial value should be set to `"init"`. - * - * Generated from protobuf field string wait_token = 2; - */ - protected $wait_token = ''; - /** - * If set to `true` (recommended), returns `google.rpc.Code.OK` status and - * sets the `wait_expired` response field to `true` when the server-selected - * timeout has expired. - * If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status - * when the server-selected timeout has expired. - * - * Generated from protobuf field bool success_on_timeout = 3; - */ - protected $success_on_timeout = false; - - /** - * @param string $debuggeeId Required. Identifies the debuggee. - * - * @return \Google\Cloud\Debugger\V2\ListActiveBreakpointsRequest - * - * @experimental - */ - public static function build(string $debuggeeId): self - { - return (new self()) - ->setDebuggeeId($debuggeeId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $debuggee_id - * Required. Identifies the debuggee. - * @type string $wait_token - * A token that, if specified, blocks the method call until the list - * of active breakpoints has changed, or a server-selected timeout has - * expired. The value should be set from the `next_wait_token` field in - * the last response. The initial value should be set to `"init"`. - * @type bool $success_on_timeout - * If set to `true` (recommended), returns `google.rpc.Code.OK` status and - * sets the `wait_expired` response field to `true` when the server-selected - * timeout has expired. - * If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status - * when the server-selected timeout has expired. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Controller::initOnce(); - parent::__construct($data); - } - - /** - * Required. Identifies the debuggee. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDebuggeeId() - { - return $this->debuggee_id; - } - - /** - * Required. Identifies the debuggee. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDebuggeeId($var) - { - GPBUtil::checkString($var, True); - $this->debuggee_id = $var; - - return $this; - } - - /** - * A token that, if specified, blocks the method call until the list - * of active breakpoints has changed, or a server-selected timeout has - * expired. The value should be set from the `next_wait_token` field in - * the last response. The initial value should be set to `"init"`. - * - * Generated from protobuf field string wait_token = 2; - * @return string - */ - public function getWaitToken() - { - return $this->wait_token; - } - - /** - * A token that, if specified, blocks the method call until the list - * of active breakpoints has changed, or a server-selected timeout has - * expired. The value should be set from the `next_wait_token` field in - * the last response. The initial value should be set to `"init"`. - * - * Generated from protobuf field string wait_token = 2; - * @param string $var - * @return $this - */ - public function setWaitToken($var) - { - GPBUtil::checkString($var, True); - $this->wait_token = $var; - - return $this; - } - - /** - * If set to `true` (recommended), returns `google.rpc.Code.OK` status and - * sets the `wait_expired` response field to `true` when the server-selected - * timeout has expired. - * If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status - * when the server-selected timeout has expired. - * - * Generated from protobuf field bool success_on_timeout = 3; - * @return bool - */ - public function getSuccessOnTimeout() - { - return $this->success_on_timeout; - } - - /** - * If set to `true` (recommended), returns `google.rpc.Code.OK` status and - * sets the `wait_expired` response field to `true` when the server-selected - * timeout has expired. - * If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status - * when the server-selected timeout has expired. - * - * Generated from protobuf field bool success_on_timeout = 3; - * @param bool $var - * @return $this - */ - public function setSuccessOnTimeout($var) - { - GPBUtil::checkBool($var); - $this->success_on_timeout = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListActiveBreakpointsResponse.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListActiveBreakpointsResponse.php deleted file mode 100644 index b81c574df60f..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListActiveBreakpointsResponse.php +++ /dev/null @@ -1,151 +0,0 @@ -google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse - */ -class ListActiveBreakpointsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of all active breakpoints. - * The fields `id` and `location` are guaranteed to be set on each breakpoint. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Breakpoint breakpoints = 1; - */ - private $breakpoints; - /** - * A token that can be used in the next method call to block until - * the list of breakpoints changes. - * - * Generated from protobuf field string next_wait_token = 2; - */ - protected $next_wait_token = ''; - /** - * If set to `true`, indicates that there is no change to the - * list of active breakpoints and the server-selected timeout has expired. - * The `breakpoints` field would be empty and should be ignored. - * - * Generated from protobuf field bool wait_expired = 3; - */ - protected $wait_expired = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Debugger\V2\Breakpoint>|\Google\Protobuf\Internal\RepeatedField $breakpoints - * List of all active breakpoints. - * The fields `id` and `location` are guaranteed to be set on each breakpoint. - * @type string $next_wait_token - * A token that can be used in the next method call to block until - * the list of breakpoints changes. - * @type bool $wait_expired - * If set to `true`, indicates that there is no change to the - * list of active breakpoints and the server-selected timeout has expired. - * The `breakpoints` field would be empty and should be ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Controller::initOnce(); - parent::__construct($data); - } - - /** - * List of all active breakpoints. - * The fields `id` and `location` are guaranteed to be set on each breakpoint. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Breakpoint breakpoints = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBreakpoints() - { - return $this->breakpoints; - } - - /** - * List of all active breakpoints. - * The fields `id` and `location` are guaranteed to be set on each breakpoint. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Breakpoint breakpoints = 1; - * @param array<\Google\Cloud\Debugger\V2\Breakpoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBreakpoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Breakpoint::class); - $this->breakpoints = $arr; - - return $this; - } - - /** - * A token that can be used in the next method call to block until - * the list of breakpoints changes. - * - * Generated from protobuf field string next_wait_token = 2; - * @return string - */ - public function getNextWaitToken() - { - return $this->next_wait_token; - } - - /** - * A token that can be used in the next method call to block until - * the list of breakpoints changes. - * - * Generated from protobuf field string next_wait_token = 2; - * @param string $var - * @return $this - */ - public function setNextWaitToken($var) - { - GPBUtil::checkString($var, True); - $this->next_wait_token = $var; - - return $this; - } - - /** - * If set to `true`, indicates that there is no change to the - * list of active breakpoints and the server-selected timeout has expired. - * The `breakpoints` field would be empty and should be ignored. - * - * Generated from protobuf field bool wait_expired = 3; - * @return bool - */ - public function getWaitExpired() - { - return $this->wait_expired; - } - - /** - * If set to `true`, indicates that there is no change to the - * list of active breakpoints and the server-selected timeout has expired. - * The `breakpoints` field would be empty and should be ignored. - * - * Generated from protobuf field bool wait_expired = 3; - * @param bool $var - * @return $this - */ - public function setWaitExpired($var) - { - GPBUtil::checkBool($var); - $this->wait_expired = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsRequest.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsRequest.php deleted file mode 100644 index 62bfc6be9d18..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsRequest.php +++ /dev/null @@ -1,334 +0,0 @@ -google.devtools.clouddebugger.v2.ListBreakpointsRequest - */ -class ListBreakpointsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. ID of the debuggee whose breakpoints to list. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $debuggee_id = ''; - /** - * When set to `true`, the response includes the list of breakpoints set by - * any user. Otherwise, it includes only breakpoints set by the caller. - * - * Generated from protobuf field bool include_all_users = 2; - */ - protected $include_all_users = false; - /** - * When set to `true`, the response includes active and inactive - * breakpoints. Otherwise, it includes only active breakpoints. - * - * Generated from protobuf field bool include_inactive = 3; - */ - protected $include_inactive = false; - /** - * When set, the response includes only breakpoints with the specified action. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue action = 4; - */ - protected $action = null; - /** - * This field is deprecated. The following fields are always stripped out of - * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. - * - * Generated from protobuf field bool strip_results = 5 [deprecated = true]; - * @deprecated - */ - protected $strip_results = false; - /** - * A wait token that, if specified, blocks the call until the breakpoints - * list has changed, or a server selected timeout has expired. The value - * should be set from the last response. The error code - * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which - * should be called again with the same `wait_token`. - * - * Generated from protobuf field string wait_token = 6; - */ - protected $wait_token = ''; - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $client_version = ''; - - /** - * @param string $debuggeeId Required. ID of the debuggee whose breakpoints to list. - * @param string $clientVersion Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * @return \Google\Cloud\Debugger\V2\ListBreakpointsRequest - * - * @experimental - */ - public static function build(string $debuggeeId, string $clientVersion): self - { - return (new self()) - ->setDebuggeeId($debuggeeId) - ->setClientVersion($clientVersion); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $debuggee_id - * Required. ID of the debuggee whose breakpoints to list. - * @type bool $include_all_users - * When set to `true`, the response includes the list of breakpoints set by - * any user. Otherwise, it includes only breakpoints set by the caller. - * @type bool $include_inactive - * When set to `true`, the response includes active and inactive - * breakpoints. Otherwise, it includes only active breakpoints. - * @type \Google\Cloud\Debugger\V2\ListBreakpointsRequest\BreakpointActionValue $action - * When set, the response includes only breakpoints with the specified action. - * @type bool $strip_results - * This field is deprecated. The following fields are always stripped out of - * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. - * @type string $wait_token - * A wait token that, if specified, blocks the call until the breakpoints - * list has changed, or a server selected timeout has expired. The value - * should be set from the last response. The error code - * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which - * should be called again with the same `wait_token`. - * @type string $client_version - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce(); - parent::__construct($data); - } - - /** - * Required. ID of the debuggee whose breakpoints to list. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDebuggeeId() - { - return $this->debuggee_id; - } - - /** - * Required. ID of the debuggee whose breakpoints to list. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDebuggeeId($var) - { - GPBUtil::checkString($var, True); - $this->debuggee_id = $var; - - return $this; - } - - /** - * When set to `true`, the response includes the list of breakpoints set by - * any user. Otherwise, it includes only breakpoints set by the caller. - * - * Generated from protobuf field bool include_all_users = 2; - * @return bool - */ - public function getIncludeAllUsers() - { - return $this->include_all_users; - } - - /** - * When set to `true`, the response includes the list of breakpoints set by - * any user. Otherwise, it includes only breakpoints set by the caller. - * - * Generated from protobuf field bool include_all_users = 2; - * @param bool $var - * @return $this - */ - public function setIncludeAllUsers($var) - { - GPBUtil::checkBool($var); - $this->include_all_users = $var; - - return $this; - } - - /** - * When set to `true`, the response includes active and inactive - * breakpoints. Otherwise, it includes only active breakpoints. - * - * Generated from protobuf field bool include_inactive = 3; - * @return bool - */ - public function getIncludeInactive() - { - return $this->include_inactive; - } - - /** - * When set to `true`, the response includes active and inactive - * breakpoints. Otherwise, it includes only active breakpoints. - * - * Generated from protobuf field bool include_inactive = 3; - * @param bool $var - * @return $this - */ - public function setIncludeInactive($var) - { - GPBUtil::checkBool($var); - $this->include_inactive = $var; - - return $this; - } - - /** - * When set, the response includes only breakpoints with the specified action. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue action = 4; - * @return \Google\Cloud\Debugger\V2\ListBreakpointsRequest\BreakpointActionValue|null - */ - public function getAction() - { - return $this->action; - } - - public function hasAction() - { - return isset($this->action); - } - - public function clearAction() - { - unset($this->action); - } - - /** - * When set, the response includes only breakpoints with the specified action. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue action = 4; - * @param \Google\Cloud\Debugger\V2\ListBreakpointsRequest\BreakpointActionValue $var - * @return $this - */ - public function setAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\ListBreakpointsRequest\BreakpointActionValue::class); - $this->action = $var; - - return $this; - } - - /** - * This field is deprecated. The following fields are always stripped out of - * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. - * - * Generated from protobuf field bool strip_results = 5 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getStripResults() - { - @trigger_error('strip_results is deprecated.', E_USER_DEPRECATED); - return $this->strip_results; - } - - /** - * This field is deprecated. The following fields are always stripped out of - * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. - * - * Generated from protobuf field bool strip_results = 5 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setStripResults($var) - { - @trigger_error('strip_results is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->strip_results = $var; - - return $this; - } - - /** - * A wait token that, if specified, blocks the call until the breakpoints - * list has changed, or a server selected timeout has expired. The value - * should be set from the last response. The error code - * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which - * should be called again with the same `wait_token`. - * - * Generated from protobuf field string wait_token = 6; - * @return string - */ - public function getWaitToken() - { - return $this->wait_token; - } - - /** - * A wait token that, if specified, blocks the call until the breakpoints - * list has changed, or a server selected timeout has expired. The value - * should be set from the last response. The error code - * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which - * should be called again with the same `wait_token`. - * - * Generated from protobuf field string wait_token = 6; - * @param string $var - * @return $this - */ - public function setWaitToken($var) - { - GPBUtil::checkString($var, True); - $this->wait_token = $var; - - return $this; - } - - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClientVersion() - { - return $this->client_version; - } - - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClientVersion($var) - { - GPBUtil::checkString($var, True); - $this->client_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsRequest/BreakpointActionValue.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsRequest/BreakpointActionValue.php deleted file mode 100644 index 450a08cf2b18..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsRequest/BreakpointActionValue.php +++ /dev/null @@ -1,71 +0,0 @@ -google.devtools.clouddebugger.v2.ListBreakpointsRequest.BreakpointActionValue - */ -class BreakpointActionValue extends \Google\Protobuf\Internal\Message -{ - /** - * Only breakpoints with the specified action will pass the filter. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint.Action value = 1; - */ - protected $value = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $value - * Only breakpoints with the specified action will pass the filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce(); - parent::__construct($data); - } - - /** - * Only breakpoints with the specified action will pass the filter. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint.Action value = 1; - * @return int - */ - public function getValue() - { - return $this->value; - } - - /** - * Only breakpoints with the specified action will pass the filter. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint.Action value = 1; - * @param int $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Debugger\V2\Breakpoint\Action::class); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BreakpointActionValue::class, \Google\Cloud\Debugger\V2\ListBreakpointsRequest_BreakpointActionValue::class); - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsResponse.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsResponse.php deleted file mode 100644 index 36f87fc85002..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListBreakpointsResponse.php +++ /dev/null @@ -1,117 +0,0 @@ -google.devtools.clouddebugger.v2.ListBreakpointsResponse - */ -class ListBreakpointsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of breakpoints matching the request. - * The fields `id` and `location` are guaranteed to be set on each breakpoint. - * The fields: `stack_frames`, `evaluated_expressions` and `variable_table` - * are cleared on each breakpoint regardless of its status. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Breakpoint breakpoints = 1; - */ - private $breakpoints; - /** - * A wait token that can be used in the next call to `list` (REST) or - * `ListBreakpoints` (RPC) to block until the list of breakpoints has changes. - * - * Generated from protobuf field string next_wait_token = 2; - */ - protected $next_wait_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Debugger\V2\Breakpoint>|\Google\Protobuf\Internal\RepeatedField $breakpoints - * List of breakpoints matching the request. - * The fields `id` and `location` are guaranteed to be set on each breakpoint. - * The fields: `stack_frames`, `evaluated_expressions` and `variable_table` - * are cleared on each breakpoint regardless of its status. - * @type string $next_wait_token - * A wait token that can be used in the next call to `list` (REST) or - * `ListBreakpoints` (RPC) to block until the list of breakpoints has changes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce(); - parent::__construct($data); - } - - /** - * List of breakpoints matching the request. - * The fields `id` and `location` are guaranteed to be set on each breakpoint. - * The fields: `stack_frames`, `evaluated_expressions` and `variable_table` - * are cleared on each breakpoint regardless of its status. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Breakpoint breakpoints = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBreakpoints() - { - return $this->breakpoints; - } - - /** - * List of breakpoints matching the request. - * The fields `id` and `location` are guaranteed to be set on each breakpoint. - * The fields: `stack_frames`, `evaluated_expressions` and `variable_table` - * are cleared on each breakpoint regardless of its status. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Breakpoint breakpoints = 1; - * @param array<\Google\Cloud\Debugger\V2\Breakpoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBreakpoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Breakpoint::class); - $this->breakpoints = $arr; - - return $this; - } - - /** - * A wait token that can be used in the next call to `list` (REST) or - * `ListBreakpoints` (RPC) to block until the list of breakpoints has changes. - * - * Generated from protobuf field string next_wait_token = 2; - * @return string - */ - public function getNextWaitToken() - { - return $this->next_wait_token; - } - - /** - * A wait token that can be used in the next call to `list` (REST) or - * `ListBreakpoints` (RPC) to block until the list of breakpoints has changes. - * - * Generated from protobuf field string next_wait_token = 2; - * @param string $var - * @return $this - */ - public function setNextWaitToken($var) - { - GPBUtil::checkString($var, True); - $this->next_wait_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListDebuggeesRequest.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListDebuggeesRequest.php deleted file mode 100644 index e16c15042d77..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListDebuggeesRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.devtools.clouddebugger.v2.ListDebuggeesRequest - */ -class ListDebuggeesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Project number of a Google Cloud project whose debuggees to list. - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project = ''; - /** - * When set to `true`, the result includes all debuggees. Otherwise, the - * result includes only debuggees that are active. - * - * Generated from protobuf field bool include_inactive = 3; - */ - protected $include_inactive = false; - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $client_version = ''; - - /** - * @param string $project Required. Project number of a Google Cloud project whose debuggees to list. - * @param string $clientVersion Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * @return \Google\Cloud\Debugger\V2\ListDebuggeesRequest - * - * @experimental - */ - public static function build(string $project, string $clientVersion): self - { - return (new self()) - ->setProject($project) - ->setClientVersion($clientVersion); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project - * Required. Project number of a Google Cloud project whose debuggees to list. - * @type bool $include_inactive - * When set to `true`, the result includes all debuggees. Otherwise, the - * result includes only debuggees that are active. - * @type string $client_version - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce(); - parent::__construct($data); - } - - /** - * Required. Project number of a Google Cloud project whose debuggees to list. - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProject() - { - return $this->project; - } - - /** - * Required. Project number of a Google Cloud project whose debuggees to list. - * - * Generated from protobuf field string project = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProject($var) - { - GPBUtil::checkString($var, True); - $this->project = $var; - - return $this; - } - - /** - * When set to `true`, the result includes all debuggees. Otherwise, the - * result includes only debuggees that are active. - * - * Generated from protobuf field bool include_inactive = 3; - * @return bool - */ - public function getIncludeInactive() - { - return $this->include_inactive; - } - - /** - * When set to `true`, the result includes all debuggees. Otherwise, the - * result includes only debuggees that are active. - * - * Generated from protobuf field bool include_inactive = 3; - * @param bool $var - * @return $this - */ - public function setIncludeInactive($var) - { - GPBUtil::checkBool($var); - $this->include_inactive = $var; - - return $this; - } - - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClientVersion() - { - return $this->client_version; - } - - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClientVersion($var) - { - GPBUtil::checkString($var, True); - $this->client_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListDebuggeesResponse.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListDebuggeesResponse.php deleted file mode 100644 index 905fbfcc2178..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/ListDebuggeesResponse.php +++ /dev/null @@ -1,79 +0,0 @@ -google.devtools.clouddebugger.v2.ListDebuggeesResponse - */ -class ListDebuggeesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of debuggees accessible to the calling user. - * The fields `debuggee.id` and `description` are guaranteed to be set. - * The `description` field is a human readable field provided by agents and - * can be displayed to users. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Debuggee debuggees = 1; - */ - private $debuggees; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Debugger\V2\Debuggee>|\Google\Protobuf\Internal\RepeatedField $debuggees - * List of debuggees accessible to the calling user. - * The fields `debuggee.id` and `description` are guaranteed to be set. - * The `description` field is a human readable field provided by agents and - * can be displayed to users. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce(); - parent::__construct($data); - } - - /** - * List of debuggees accessible to the calling user. - * The fields `debuggee.id` and `description` are guaranteed to be set. - * The `description` field is a human readable field provided by agents and - * can be displayed to users. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Debuggee debuggees = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDebuggees() - { - return $this->debuggees; - } - - /** - * List of debuggees accessible to the calling user. - * The fields `debuggee.id` and `description` are guaranteed to be set. - * The `description` field is a human readable field provided by agents and - * can be displayed to users. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Debuggee debuggees = 1; - * @param array<\Google\Cloud\Debugger\V2\Debuggee>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDebuggees($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Debuggee::class); - $this->debuggees = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/RegisterDebuggeeRequest.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/RegisterDebuggeeRequest.php deleted file mode 100644 index bae3811acfda..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/RegisterDebuggeeRequest.php +++ /dev/null @@ -1,100 +0,0 @@ -google.devtools.clouddebugger.v2.RegisterDebuggeeRequest - */ -class RegisterDebuggeeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Debuggee information to register. - * The fields `project`, `uniquifier`, `description` and `agent_version` - * of the debuggee must be set. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Debuggee debuggee = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $debuggee = null; - - /** - * @param \Google\Cloud\Debugger\V2\Debuggee $debuggee Required. Debuggee information to register. - * The fields `project`, `uniquifier`, `description` and `agent_version` - * of the debuggee must be set. - * - * @return \Google\Cloud\Debugger\V2\RegisterDebuggeeRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Debugger\V2\Debuggee $debuggee): self - { - return (new self()) - ->setDebuggee($debuggee); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Debugger\V2\Debuggee $debuggee - * Required. Debuggee information to register. - * The fields `project`, `uniquifier`, `description` and `agent_version` - * of the debuggee must be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Controller::initOnce(); - parent::__construct($data); - } - - /** - * Required. Debuggee information to register. - * The fields `project`, `uniquifier`, `description` and `agent_version` - * of the debuggee must be set. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Debuggee debuggee = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Debugger\V2\Debuggee|null - */ - public function getDebuggee() - { - return $this->debuggee; - } - - public function hasDebuggee() - { - return isset($this->debuggee); - } - - public function clearDebuggee() - { - unset($this->debuggee); - } - - /** - * Required. Debuggee information to register. - * The fields `project`, `uniquifier`, `description` and `agent_version` - * of the debuggee must be set. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Debuggee debuggee = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Debugger\V2\Debuggee $var - * @return $this - */ - public function setDebuggee($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\Debuggee::class); - $this->debuggee = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/RegisterDebuggeeResponse.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/RegisterDebuggeeResponse.php deleted file mode 100644 index 7521fd4c6780..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/RegisterDebuggeeResponse.php +++ /dev/null @@ -1,93 +0,0 @@ -google.devtools.clouddebugger.v2.RegisterDebuggeeResponse - */ -class RegisterDebuggeeResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Debuggee resource. - * The field `id` is guaranteed to be set (in addition to the echoed fields). - * If the field `is_disabled` is set to `true`, the agent should disable - * itself by removing all breakpoints and detaching from the application. - * It should however continue to poll `RegisterDebuggee` until reenabled. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Debuggee debuggee = 1; - */ - protected $debuggee = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Debugger\V2\Debuggee $debuggee - * Debuggee resource. - * The field `id` is guaranteed to be set (in addition to the echoed fields). - * If the field `is_disabled` is set to `true`, the agent should disable - * itself by removing all breakpoints and detaching from the application. - * It should however continue to poll `RegisterDebuggee` until reenabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Controller::initOnce(); - parent::__construct($data); - } - - /** - * Debuggee resource. - * The field `id` is guaranteed to be set (in addition to the echoed fields). - * If the field `is_disabled` is set to `true`, the agent should disable - * itself by removing all breakpoints and detaching from the application. - * It should however continue to poll `RegisterDebuggee` until reenabled. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Debuggee debuggee = 1; - * @return \Google\Cloud\Debugger\V2\Debuggee|null - */ - public function getDebuggee() - { - return $this->debuggee; - } - - public function hasDebuggee() - { - return isset($this->debuggee); - } - - public function clearDebuggee() - { - unset($this->debuggee); - } - - /** - * Debuggee resource. - * The field `id` is guaranteed to be set (in addition to the echoed fields). - * If the field `is_disabled` is set to `true`, the agent should disable - * itself by removing all breakpoints and detaching from the application. - * It should however continue to poll `RegisterDebuggee` until reenabled. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Debuggee debuggee = 1; - * @param \Google\Cloud\Debugger\V2\Debuggee $var - * @return $this - */ - public function setDebuggee($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\Debuggee::class); - $this->debuggee = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SetBreakpointRequest.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SetBreakpointRequest.php deleted file mode 100644 index 3f308cd0595b..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SetBreakpointRequest.php +++ /dev/null @@ -1,172 +0,0 @@ -google.devtools.clouddebugger.v2.SetBreakpointRequest - */ -class SetBreakpointRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. ID of the debuggee where the breakpoint is to be set. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $debuggee_id = ''; - /** - * Required. Breakpoint specification to set. - * The field `location` of the breakpoint must be set. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $breakpoint = null; - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $client_version = ''; - - /** - * @param string $debuggeeId Required. ID of the debuggee where the breakpoint is to be set. - * @param \Google\Cloud\Debugger\V2\Breakpoint $breakpoint Required. Breakpoint specification to set. - * The field `location` of the breakpoint must be set. - * @param string $clientVersion Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * @return \Google\Cloud\Debugger\V2\SetBreakpointRequest - * - * @experimental - */ - public static function build(string $debuggeeId, \Google\Cloud\Debugger\V2\Breakpoint $breakpoint, string $clientVersion): self - { - return (new self()) - ->setDebuggeeId($debuggeeId) - ->setBreakpoint($breakpoint) - ->setClientVersion($clientVersion); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $debuggee_id - * Required. ID of the debuggee where the breakpoint is to be set. - * @type \Google\Cloud\Debugger\V2\Breakpoint $breakpoint - * Required. Breakpoint specification to set. - * The field `location` of the breakpoint must be set. - * @type string $client_version - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce(); - parent::__construct($data); - } - - /** - * Required. ID of the debuggee where the breakpoint is to be set. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDebuggeeId() - { - return $this->debuggee_id; - } - - /** - * Required. ID of the debuggee where the breakpoint is to be set. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDebuggeeId($var) - { - GPBUtil::checkString($var, True); - $this->debuggee_id = $var; - - return $this; - } - - /** - * Required. Breakpoint specification to set. - * The field `location` of the breakpoint must be set. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Debugger\V2\Breakpoint|null - */ - public function getBreakpoint() - { - return $this->breakpoint; - } - - public function hasBreakpoint() - { - return isset($this->breakpoint); - } - - public function clearBreakpoint() - { - unset($this->breakpoint); - } - - /** - * Required. Breakpoint specification to set. - * The field `location` of the breakpoint must be set. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Debugger\V2\Breakpoint $var - * @return $this - */ - public function setBreakpoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\Breakpoint::class); - $this->breakpoint = $var; - - return $this; - } - - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClientVersion() - { - return $this->client_version; - } - - /** - * Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * - * Generated from protobuf field string client_version = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClientVersion($var) - { - GPBUtil::checkString($var, True); - $this->client_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SetBreakpointResponse.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SetBreakpointResponse.php deleted file mode 100644 index e1f2926aec5b..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SetBreakpointResponse.php +++ /dev/null @@ -1,81 +0,0 @@ -google.devtools.clouddebugger.v2.SetBreakpointResponse - */ -class SetBreakpointResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Breakpoint resource. - * The field `id` is guaranteed to be set (in addition to the echoed fileds). - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 1; - */ - protected $breakpoint = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Debugger\V2\Breakpoint $breakpoint - * Breakpoint resource. - * The field `id` is guaranteed to be set (in addition to the echoed fileds). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Debugger::initOnce(); - parent::__construct($data); - } - - /** - * Breakpoint resource. - * The field `id` is guaranteed to be set (in addition to the echoed fileds). - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 1; - * @return \Google\Cloud\Debugger\V2\Breakpoint|null - */ - public function getBreakpoint() - { - return $this->breakpoint; - } - - public function hasBreakpoint() - { - return isset($this->breakpoint); - } - - public function clearBreakpoint() - { - unset($this->breakpoint); - } - - /** - * Breakpoint resource. - * The field `id` is guaranteed to be set (in addition to the echoed fileds). - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 1; - * @param \Google\Cloud\Debugger\V2\Breakpoint $var - * @return $this - */ - public function setBreakpoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\Breakpoint::class); - $this->breakpoint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SourceLocation.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SourceLocation.php deleted file mode 100644 index 48083ccd2787..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/SourceLocation.php +++ /dev/null @@ -1,143 +0,0 @@ -google.devtools.clouddebugger.v2.SourceLocation - */ -class SourceLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Path to the source file within the source context of the target binary. - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - /** - * Line inside the file. The first line in the file has the value `1`. - * - * Generated from protobuf field int32 line = 2; - */ - protected $line = 0; - /** - * Column within a line. The first column in a line as the value `1`. - * Agents that do not support setting breakpoints on specific columns ignore - * this field. - * - * Generated from protobuf field int32 column = 3; - */ - protected $column = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * Path to the source file within the source context of the target binary. - * @type int $line - * Line inside the file. The first line in the file has the value `1`. - * @type int $column - * Column within a line. The first column in a line as the value `1`. - * Agents that do not support setting breakpoints on specific columns ignore - * this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Path to the source file within the source context of the target binary. - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Path to the source file within the source context of the target binary. - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Line inside the file. The first line in the file has the value `1`. - * - * Generated from protobuf field int32 line = 2; - * @return int - */ - public function getLine() - { - return $this->line; - } - - /** - * Line inside the file. The first line in the file has the value `1`. - * - * Generated from protobuf field int32 line = 2; - * @param int $var - * @return $this - */ - public function setLine($var) - { - GPBUtil::checkInt32($var); - $this->line = $var; - - return $this; - } - - /** - * Column within a line. The first column in a line as the value `1`. - * Agents that do not support setting breakpoints on specific columns ignore - * this field. - * - * Generated from protobuf field int32 column = 3; - * @return int - */ - public function getColumn() - { - return $this->column; - } - - /** - * Column within a line. The first column in a line as the value `1`. - * Agents that do not support setting breakpoints on specific columns ignore - * this field. - * - * Generated from protobuf field int32 column = 3; - * @param int $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkInt32($var); - $this->column = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StackFrame.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StackFrame.php deleted file mode 100644 index 5858b5bf0d08..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StackFrame.php +++ /dev/null @@ -1,187 +0,0 @@ -google.devtools.clouddebugger.v2.StackFrame - */ -class StackFrame extends \Google\Protobuf\Internal\Message -{ - /** - * Demangled function name at the call site. - * - * Generated from protobuf field string function = 1; - */ - protected $function = ''; - /** - * Source location of the call site. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.SourceLocation location = 2; - */ - protected $location = null; - /** - * Set of arguments passed to this function. - * Note that this might not be populated for all stack frames. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable arguments = 3; - */ - private $arguments; - /** - * Set of local variables at the stack frame location. - * Note that this might not be populated for all stack frames. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable locals = 4; - */ - private $locals; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $function - * Demangled function name at the call site. - * @type \Google\Cloud\Debugger\V2\SourceLocation $location - * Source location of the call site. - * @type array<\Google\Cloud\Debugger\V2\Variable>|\Google\Protobuf\Internal\RepeatedField $arguments - * Set of arguments passed to this function. - * Note that this might not be populated for all stack frames. - * @type array<\Google\Cloud\Debugger\V2\Variable>|\Google\Protobuf\Internal\RepeatedField $locals - * Set of local variables at the stack frame location. - * Note that this might not be populated for all stack frames. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Demangled function name at the call site. - * - * Generated from protobuf field string function = 1; - * @return string - */ - public function getFunction() - { - return $this->function; - } - - /** - * Demangled function name at the call site. - * - * Generated from protobuf field string function = 1; - * @param string $var - * @return $this - */ - public function setFunction($var) - { - GPBUtil::checkString($var, True); - $this->function = $var; - - return $this; - } - - /** - * Source location of the call site. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.SourceLocation location = 2; - * @return \Google\Cloud\Debugger\V2\SourceLocation|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Source location of the call site. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.SourceLocation location = 2; - * @param \Google\Cloud\Debugger\V2\SourceLocation $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\SourceLocation::class); - $this->location = $var; - - return $this; - } - - /** - * Set of arguments passed to this function. - * Note that this might not be populated for all stack frames. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable arguments = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getArguments() - { - return $this->arguments; - } - - /** - * Set of arguments passed to this function. - * Note that this might not be populated for all stack frames. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable arguments = 3; - * @param array<\Google\Cloud\Debugger\V2\Variable>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setArguments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Variable::class); - $this->arguments = $arr; - - return $this; - } - - /** - * Set of local variables at the stack frame location. - * Note that this might not be populated for all stack frames. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable locals = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLocals() - { - return $this->locals; - } - - /** - * Set of local variables at the stack frame location. - * Note that this might not be populated for all stack frames. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable locals = 4; - * @param array<\Google\Cloud\Debugger\V2\Variable>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLocals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Variable::class); - $this->locals = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StatusMessage.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StatusMessage.php deleted file mode 100644 index a8b84b2e6778..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StatusMessage.php +++ /dev/null @@ -1,149 +0,0 @@ -google.devtools.clouddebugger.v2.StatusMessage - */ -class StatusMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Distinguishes errors from informational messages. - * - * Generated from protobuf field bool is_error = 1; - */ - protected $is_error = false; - /** - * Reference to which the message applies. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage.Reference refers_to = 2; - */ - protected $refers_to = 0; - /** - * Status message text. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.FormatMessage description = 3; - */ - protected $description = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $is_error - * Distinguishes errors from informational messages. - * @type int $refers_to - * Reference to which the message applies. - * @type \Google\Cloud\Debugger\V2\FormatMessage $description - * Status message text. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Distinguishes errors from informational messages. - * - * Generated from protobuf field bool is_error = 1; - * @return bool - */ - public function getIsError() - { - return $this->is_error; - } - - /** - * Distinguishes errors from informational messages. - * - * Generated from protobuf field bool is_error = 1; - * @param bool $var - * @return $this - */ - public function setIsError($var) - { - GPBUtil::checkBool($var); - $this->is_error = $var; - - return $this; - } - - /** - * Reference to which the message applies. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage.Reference refers_to = 2; - * @return int - */ - public function getRefersTo() - { - return $this->refers_to; - } - - /** - * Reference to which the message applies. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage.Reference refers_to = 2; - * @param int $var - * @return $this - */ - public function setRefersTo($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Debugger\V2\StatusMessage\Reference::class); - $this->refers_to = $var; - - return $this; - } - - /** - * Status message text. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.FormatMessage description = 3; - * @return \Google\Cloud\Debugger\V2\FormatMessage|null - */ - public function getDescription() - { - return $this->description; - } - - public function hasDescription() - { - return isset($this->description); - } - - public function clearDescription() - { - unset($this->description); - } - - /** - * Status message text. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.FormatMessage description = 3; - * @param \Google\Cloud\Debugger\V2\FormatMessage $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\FormatMessage::class); - $this->description = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StatusMessage/Reference.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StatusMessage/Reference.php deleted file mode 100644 index e7ac49f34b82..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/StatusMessage/Reference.php +++ /dev/null @@ -1,92 +0,0 @@ -google.devtools.clouddebugger.v2.StatusMessage.Reference - */ -class Reference -{ - /** - * Status doesn't refer to any particular input. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * Status applies to the breakpoint and is related to its location. - * - * Generated from protobuf enum BREAKPOINT_SOURCE_LOCATION = 3; - */ - const BREAKPOINT_SOURCE_LOCATION = 3; - /** - * Status applies to the breakpoint and is related to its condition. - * - * Generated from protobuf enum BREAKPOINT_CONDITION = 4; - */ - const BREAKPOINT_CONDITION = 4; - /** - * Status applies to the breakpoint and is related to its expressions. - * - * Generated from protobuf enum BREAKPOINT_EXPRESSION = 7; - */ - const BREAKPOINT_EXPRESSION = 7; - /** - * Status applies to the breakpoint and is related to its age. - * - * Generated from protobuf enum BREAKPOINT_AGE = 8; - */ - const BREAKPOINT_AGE = 8; - /** - * Status applies to the entire variable. - * - * Generated from protobuf enum VARIABLE_NAME = 5; - */ - const VARIABLE_NAME = 5; - /** - * Status applies to variable value (variable name is valid). - * - * Generated from protobuf enum VARIABLE_VALUE = 6; - */ - const VARIABLE_VALUE = 6; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::BREAKPOINT_SOURCE_LOCATION => 'BREAKPOINT_SOURCE_LOCATION', - self::BREAKPOINT_CONDITION => 'BREAKPOINT_CONDITION', - self::BREAKPOINT_EXPRESSION => 'BREAKPOINT_EXPRESSION', - self::BREAKPOINT_AGE => 'BREAKPOINT_AGE', - self::VARIABLE_NAME => 'VARIABLE_NAME', - self::VARIABLE_VALUE => 'VARIABLE_VALUE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Reference::class, \Google\Cloud\Debugger\V2\StatusMessage_Reference::class); - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/UpdateActiveBreakpointRequest.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/UpdateActiveBreakpointRequest.php deleted file mode 100644 index 1ea286928138..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/UpdateActiveBreakpointRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.devtools.clouddebugger.v2.UpdateActiveBreakpointRequest - */ -class UpdateActiveBreakpointRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Identifies the debuggee being debugged. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $debuggee_id = ''; - /** - * Required. Updated breakpoint information. - * The field `id` must be set. - * The agent must echo all Breakpoint specification fields in the update. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $breakpoint = null; - - /** - * @param string $debuggeeId Required. Identifies the debuggee being debugged. - * @param \Google\Cloud\Debugger\V2\Breakpoint $breakpoint Required. Updated breakpoint information. - * The field `id` must be set. - * The agent must echo all Breakpoint specification fields in the update. - * - * @return \Google\Cloud\Debugger\V2\UpdateActiveBreakpointRequest - * - * @experimental - */ - public static function build(string $debuggeeId, \Google\Cloud\Debugger\V2\Breakpoint $breakpoint): self - { - return (new self()) - ->setDebuggeeId($debuggeeId) - ->setBreakpoint($breakpoint); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $debuggee_id - * Required. Identifies the debuggee being debugged. - * @type \Google\Cloud\Debugger\V2\Breakpoint $breakpoint - * Required. Updated breakpoint information. - * The field `id` must be set. - * The agent must echo all Breakpoint specification fields in the update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Controller::initOnce(); - parent::__construct($data); - } - - /** - * Required. Identifies the debuggee being debugged. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDebuggeeId() - { - return $this->debuggee_id; - } - - /** - * Required. Identifies the debuggee being debugged. - * - * Generated from protobuf field string debuggee_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDebuggeeId($var) - { - GPBUtil::checkString($var, True); - $this->debuggee_id = $var; - - return $this; - } - - /** - * Required. Updated breakpoint information. - * The field `id` must be set. - * The agent must echo all Breakpoint specification fields in the update. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Debugger\V2\Breakpoint|null - */ - public function getBreakpoint() - { - return $this->breakpoint; - } - - public function hasBreakpoint() - { - return isset($this->breakpoint); - } - - public function clearBreakpoint() - { - unset($this->breakpoint); - } - - /** - * Required. Updated breakpoint information. - * The field `id` must be set. - * The agent must echo all Breakpoint specification fields in the update. - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.Breakpoint breakpoint = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Debugger\V2\Breakpoint $var - * @return $this - */ - public function setBreakpoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\Breakpoint::class); - $this->breakpoint = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/UpdateActiveBreakpointResponse.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/UpdateActiveBreakpointResponse.php deleted file mode 100644 index e3124d04a8e9..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/UpdateActiveBreakpointResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.devtools.clouddebugger.v2.UpdateActiveBreakpointResponse - */ -class UpdateActiveBreakpointResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Controller::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Variable.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Variable.php deleted file mode 100644 index 20293c6f58d9..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/Debugger/V2/Variable.php +++ /dev/null @@ -1,441 +0,0 @@ -`, ``, ``. - * Note that a null pointer should not have members. - * 5) An unnamed value: - * int* p = new int(7); - * { // Captured variable - * name: "p", - * value: "0x00500500", - * type: "int*", - * members { value: "7", type: "int" } } - * 6) An unnamed pointer where the pointee was not captured: - * int* p = new int(7); - * int** pp = &p; - * { // Captured variable - * name: "pp", - * value: "0x00500500", - * type: "int**", - * members { - * value: "0x00400400", - * type: "int*" - * status { - * is_error: true, - * description: { format: "unavailable" } } - * } - * } - * } - * To optimize computation, memory and network traffic, variables that - * repeat in the output multiple times can be stored once in a shared - * variable table and be referenced using the `var_table_index` field. The - * variables stored in the shared table are nameless and are essentially - * a partition of the complete variable. To reconstruct the complete - * variable, merge the referencing variable with the referenced variable. - * When using the shared variable table, the following variables: - * T x = { 3, 7 }; - * T* p = &x; - * T& r = x; - * { name: "x", var_table_index: 3, type: "T" } // Captured variables - * { name: "p", value "0x00500500", type="T*", var_table_index: 3 } - * { name: "r", type="T&", var_table_index: 3 } - * { // Shared variable table entry #3: - * members { name: "m1", value: "3", type: "int" }, - * members { name: "m2", value: "7", type: "int" } - * } - * Note that the pointer address is stored with the referencing variable - * and not with the referenced variable. This allows the referenced variable - * to be shared between pointers and references. - * The type field is optional. The debugger agent may or may not support it. - * - * Generated from protobuf message google.devtools.clouddebugger.v2.Variable - */ -class Variable extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the variable, if any. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Simple value of the variable. - * - * Generated from protobuf field string value = 2; - */ - protected $value = ''; - /** - * Variable type (e.g. `MyClass`). If the variable is split with - * `var_table_index`, `type` goes next to `value`. The interpretation of - * a type is agent specific. It is recommended to include the dynamic type - * rather than a static type of an object. - * - * Generated from protobuf field string type = 6; - */ - protected $type = ''; - /** - * Members contained or pointed to by the variable. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable members = 3; - */ - private $members; - /** - * Reference to a variable in the shared variable table. More than - * one variable can reference the same variable in the table. The - * `var_table_index` field is an index into `variable_table` in Breakpoint. - * - * Generated from protobuf field .google.protobuf.Int32Value var_table_index = 4; - */ - protected $var_table_index = null; - /** - * Status associated with the variable. This field will usually stay - * unset. A status of a single variable only applies to that variable or - * expression. The rest of breakpoint data still remains valid. Variables - * might be reported in error state even when breakpoint is not in final - * state. - * The message may refer to variable name with `refers_to` set to - * `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`. - * In either case variable value and members will be unset. - * Example of error message applied to name: `Invalid expression syntax`. - * Example of information message applied to value: `Not captured`. - * Examples of error message applied to value: - * * `Malformed string`, - * * `Field f not found in class C` - * * `Null pointer dereference` - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage status = 5; - */ - protected $status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the variable, if any. - * @type string $value - * Simple value of the variable. - * @type string $type - * Variable type (e.g. `MyClass`). If the variable is split with - * `var_table_index`, `type` goes next to `value`. The interpretation of - * a type is agent specific. It is recommended to include the dynamic type - * rather than a static type of an object. - * @type array<\Google\Cloud\Debugger\V2\Variable>|\Google\Protobuf\Internal\RepeatedField $members - * Members contained or pointed to by the variable. - * @type \Google\Protobuf\Int32Value $var_table_index - * Reference to a variable in the shared variable table. More than - * one variable can reference the same variable in the table. The - * `var_table_index` field is an index into `variable_table` in Breakpoint. - * @type \Google\Cloud\Debugger\V2\StatusMessage $status - * Status associated with the variable. This field will usually stay - * unset. A status of a single variable only applies to that variable or - * expression. The rest of breakpoint data still remains valid. Variables - * might be reported in error state even when breakpoint is not in final - * state. - * The message may refer to variable name with `refers_to` set to - * `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`. - * In either case variable value and members will be unset. - * Example of error message applied to name: `Invalid expression syntax`. - * Example of information message applied to value: `Not captured`. - * Examples of error message applied to value: - * * `Malformed string`, - * * `Field f not found in class C` - * * `Null pointer dereference` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouddebugger\V2\Data::initOnce(); - parent::__construct($data); - } - - /** - * Name of the variable, if any. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the variable, if any. - * - * 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; - } - - /** - * Simple value of the variable. - * - * Generated from protobuf field string value = 2; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Simple value of the variable. - * - * Generated from protobuf field string value = 2; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Variable type (e.g. `MyClass`). If the variable is split with - * `var_table_index`, `type` goes next to `value`. The interpretation of - * a type is agent specific. It is recommended to include the dynamic type - * rather than a static type of an object. - * - * Generated from protobuf field string type = 6; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Variable type (e.g. `MyClass`). If the variable is split with - * `var_table_index`, `type` goes next to `value`. The interpretation of - * a type is agent specific. It is recommended to include the dynamic type - * rather than a static type of an object. - * - * Generated from protobuf field string type = 6; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Members contained or pointed to by the variable. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable members = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMembers() - { - return $this->members; - } - - /** - * Members contained or pointed to by the variable. - * - * Generated from protobuf field repeated .google.devtools.clouddebugger.v2.Variable members = 3; - * @param array<\Google\Cloud\Debugger\V2\Variable>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMembers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Variable::class); - $this->members = $arr; - - return $this; - } - - /** - * Reference to a variable in the shared variable table. More than - * one variable can reference the same variable in the table. The - * `var_table_index` field is an index into `variable_table` in Breakpoint. - * - * Generated from protobuf field .google.protobuf.Int32Value var_table_index = 4; - * @return \Google\Protobuf\Int32Value|null - */ - public function getVarTableIndex() - { - return $this->var_table_index; - } - - public function hasVarTableIndex() - { - return isset($this->var_table_index); - } - - public function clearVarTableIndex() - { - unset($this->var_table_index); - } - - /** - * Returns the unboxed value from getVarTableIndex() - - * Reference to a variable in the shared variable table. More than - * one variable can reference the same variable in the table. The - * `var_table_index` field is an index into `variable_table` in Breakpoint. - * - * Generated from protobuf field .google.protobuf.Int32Value var_table_index = 4; - * @return int|null - */ - public function getVarTableIndexUnwrapped() - { - return $this->readWrapperValue("var_table_index"); - } - - /** - * Reference to a variable in the shared variable table. More than - * one variable can reference the same variable in the table. The - * `var_table_index` field is an index into `variable_table` in Breakpoint. - * - * Generated from protobuf field .google.protobuf.Int32Value var_table_index = 4; - * @param \Google\Protobuf\Int32Value $var - * @return $this - */ - public function setVarTableIndex($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Int32Value::class); - $this->var_table_index = $var; - - return $this; - } - - /** - * Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object. - - * Reference to a variable in the shared variable table. More than - * one variable can reference the same variable in the table. The - * `var_table_index` field is an index into `variable_table` in Breakpoint. - * - * Generated from protobuf field .google.protobuf.Int32Value var_table_index = 4; - * @param int|null $var - * @return $this - */ - public function setVarTableIndexUnwrapped($var) - { - $this->writeWrapperValue("var_table_index", $var); - return $this;} - - /** - * Status associated with the variable. This field will usually stay - * unset. A status of a single variable only applies to that variable or - * expression. The rest of breakpoint data still remains valid. Variables - * might be reported in error state even when breakpoint is not in final - * state. - * The message may refer to variable name with `refers_to` set to - * `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`. - * In either case variable value and members will be unset. - * Example of error message applied to name: `Invalid expression syntax`. - * Example of information message applied to value: `Not captured`. - * Examples of error message applied to value: - * * `Malformed string`, - * * `Field f not found in class C` - * * `Null pointer dereference` - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage status = 5; - * @return \Google\Cloud\Debugger\V2\StatusMessage|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Status associated with the variable. This field will usually stay - * unset. A status of a single variable only applies to that variable or - * expression. The rest of breakpoint data still remains valid. Variables - * might be reported in error state even when breakpoint is not in final - * state. - * The message may refer to variable name with `refers_to` set to - * `VARIABLE_NAME`. Alternatively `refers_to` will be set to `VARIABLE_VALUE`. - * In either case variable value and members will be unset. - * Example of error message applied to name: `Invalid expression syntax`. - * Example of information message applied to value: `Not captured`. - * Examples of error message applied to value: - * * `Malformed string`, - * * `Field f not found in class C` - * * `Null pointer dereference` - * - * Generated from protobuf field .google.devtools.clouddebugger.v2.StatusMessage status = 5; - * @param \Google\Cloud\Debugger\V2\StatusMessage $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Debugger\V2\StatusMessage::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/AliasContext.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/AliasContext.php deleted file mode 100644 index cc55ef219e77..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/AliasContext.php +++ /dev/null @@ -1,101 +0,0 @@ -google.devtools.source.v1.AliasContext - */ -class AliasContext extends \Google\Protobuf\Internal\Message -{ - /** - * The alias kind. - * - * Generated from protobuf field .google.devtools.source.v1.AliasContext.Kind kind = 1; - */ - protected $kind = 0; - /** - * The alias name. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $kind - * The alias kind. - * @type string $name - * The alias name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); - parent::__construct($data); - } - - /** - * The alias kind. - * - * Generated from protobuf field .google.devtools.source.v1.AliasContext.Kind kind = 1; - * @return int - */ - public function getKind() - { - return $this->kind; - } - - /** - * The alias kind. - * - * Generated from protobuf field .google.devtools.source.v1.AliasContext.Kind kind = 1; - * @param int $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DevTools\Source\V1\AliasContext\Kind::class); - $this->kind = $var; - - return $this; - } - - /** - * The alias name. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The alias name. - * - * 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/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/AliasContext/Kind.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/AliasContext/Kind.php deleted file mode 100644 index 5c1e1278e49d..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/AliasContext/Kind.php +++ /dev/null @@ -1,73 +0,0 @@ -google.devtools.source.v1.AliasContext.Kind - */ -class Kind -{ - /** - * Do not use. - * - * Generated from protobuf enum ANY = 0; - */ - const ANY = 0; - /** - * Git tag - * - * Generated from protobuf enum FIXED = 1; - */ - const FIXED = 1; - /** - * Git branch - * - * Generated from protobuf enum MOVABLE = 2; - */ - const MOVABLE = 2; - /** - * OTHER is used to specify non-standard aliases, those not of the kinds - * above. For example, if a Git repo has a ref named "refs/foo/bar", it - * is considered to be of kind OTHER. - * - * Generated from protobuf enum OTHER = 4; - */ - const OTHER = 4; - - private static $valueToName = [ - self::ANY => 'ANY', - self::FIXED => 'FIXED', - self::MOVABLE => 'MOVABLE', - 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(Kind::class, \Google\Cloud\DevTools\Source\V1\AliasContext_Kind::class); - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudRepoSourceContext.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudRepoSourceContext.php deleted file mode 100644 index 7e533c37fa0e..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudRepoSourceContext.php +++ /dev/null @@ -1,191 +0,0 @@ -google.devtools.source.v1.CloudRepoSourceContext - */ -class CloudRepoSourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the repo. - * - * Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1; - */ - protected $repo_id = null; - protected $revision; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DevTools\Source\V1\RepoId $repo_id - * The ID of the repo. - * @type string $revision_id - * A revision ID. - * @type string $alias_name - * The name of an alias (branch, tag, etc.). - * @type \Google\Cloud\DevTools\Source\V1\AliasContext $alias_context - * An alias, which may be a branch or tag. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the repo. - * - * Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1; - * @return \Google\Cloud\DevTools\Source\V1\RepoId|null - */ - public function getRepoId() - { - return $this->repo_id; - } - - public function hasRepoId() - { - return isset($this->repo_id); - } - - public function clearRepoId() - { - unset($this->repo_id); - } - - /** - * The ID of the repo. - * - * Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1; - * @param \Google\Cloud\DevTools\Source\V1\RepoId $var - * @return $this - */ - public function setRepoId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\RepoId::class); - $this->repo_id = $var; - - return $this; - } - - /** - * A revision ID. - * - * Generated from protobuf field string revision_id = 2; - * @return string - */ - public function getRevisionId() - { - return $this->readOneof(2); - } - - public function hasRevisionId() - { - return $this->hasOneof(2); - } - - /** - * A revision ID. - * - * Generated from protobuf field string revision_id = 2; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The name of an alias (branch, tag, etc.). - * - * Generated from protobuf field string alias_name = 3 [deprecated = true]; - * @return string - * @deprecated - */ - public function getAliasName() - { - @trigger_error('alias_name is deprecated.', E_USER_DEPRECATED); - return $this->readOneof(3); - } - - public function hasAliasName() - { - @trigger_error('alias_name is deprecated.', E_USER_DEPRECATED); - return $this->hasOneof(3); - } - - /** - * The name of an alias (branch, tag, etc.). - * - * Generated from protobuf field string alias_name = 3 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setAliasName($var) - { - @trigger_error('alias_name is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * An alias, which may be a branch or tag. - * - * Generated from protobuf field .google.devtools.source.v1.AliasContext alias_context = 4; - * @return \Google\Cloud\DevTools\Source\V1\AliasContext|null - */ - public function getAliasContext() - { - return $this->readOneof(4); - } - - public function hasAliasContext() - { - return $this->hasOneof(4); - } - - /** - * An alias, which may be a branch or tag. - * - * Generated from protobuf field .google.devtools.source.v1.AliasContext alias_context = 4; - * @param \Google\Cloud\DevTools\Source\V1\AliasContext $var - * @return $this - */ - public function setAliasContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\AliasContext::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getRevision() - { - return $this->whichOneof("revision"); - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudWorkspaceId.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudWorkspaceId.php deleted file mode 100644 index 9f90d12d11e7..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudWorkspaceId.php +++ /dev/null @@ -1,117 +0,0 @@ -google.devtools.source.v1.CloudWorkspaceId - */ -class CloudWorkspaceId extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the repo containing the workspace. - * - * Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1; - */ - protected $repo_id = null; - /** - * The unique name of the workspace within the repo. This is the name - * chosen by the client in the Source API's CreateWorkspace method. - * - * Generated from protobuf field string name = 2; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DevTools\Source\V1\RepoId $repo_id - * The ID of the repo containing the workspace. - * @type string $name - * The unique name of the workspace within the repo. This is the name - * chosen by the client in the Source API's CreateWorkspace method. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the repo containing the workspace. - * - * Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1; - * @return \Google\Cloud\DevTools\Source\V1\RepoId|null - */ - public function getRepoId() - { - return $this->repo_id; - } - - public function hasRepoId() - { - return isset($this->repo_id); - } - - public function clearRepoId() - { - unset($this->repo_id); - } - - /** - * The ID of the repo containing the workspace. - * - * Generated from protobuf field .google.devtools.source.v1.RepoId repo_id = 1; - * @param \Google\Cloud\DevTools\Source\V1\RepoId $var - * @return $this - */ - public function setRepoId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\RepoId::class); - $this->repo_id = $var; - - return $this; - } - - /** - * The unique name of the workspace within the repo. This is the name - * chosen by the client in the Source API's CreateWorkspace method. - * - * Generated from protobuf field string name = 2; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The unique name of the workspace within the repo. This is the name - * chosen by the client in the Source API's CreateWorkspace method. - * - * 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/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudWorkspaceSourceContext.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudWorkspaceSourceContext.php deleted file mode 100644 index f29e6b804628..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/CloudWorkspaceSourceContext.php +++ /dev/null @@ -1,115 +0,0 @@ -google.devtools.source.v1.CloudWorkspaceSourceContext - */ -class CloudWorkspaceSourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the workspace. - * - * Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceId workspace_id = 1; - */ - protected $workspace_id = null; - /** - * The ID of the snapshot. - * An empty snapshot_id refers to the most recent snapshot. - * - * Generated from protobuf field string snapshot_id = 2; - */ - protected $snapshot_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DevTools\Source\V1\CloudWorkspaceId $workspace_id - * The ID of the workspace. - * @type string $snapshot_id - * The ID of the snapshot. - * An empty snapshot_id refers to the most recent snapshot. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the workspace. - * - * Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceId workspace_id = 1; - * @return \Google\Cloud\DevTools\Source\V1\CloudWorkspaceId|null - */ - public function getWorkspaceId() - { - return $this->workspace_id; - } - - public function hasWorkspaceId() - { - return isset($this->workspace_id); - } - - public function clearWorkspaceId() - { - unset($this->workspace_id); - } - - /** - * The ID of the workspace. - * - * Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceId workspace_id = 1; - * @param \Google\Cloud\DevTools\Source\V1\CloudWorkspaceId $var - * @return $this - */ - public function setWorkspaceId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\CloudWorkspaceId::class); - $this->workspace_id = $var; - - return $this; - } - - /** - * The ID of the snapshot. - * An empty snapshot_id refers to the most recent snapshot. - * - * Generated from protobuf field string snapshot_id = 2; - * @return string - */ - public function getSnapshotId() - { - return $this->snapshot_id; - } - - /** - * The ID of the snapshot. - * An empty snapshot_id refers to the most recent snapshot. - * - * Generated from protobuf field string snapshot_id = 2; - * @param string $var - * @return $this - */ - public function setSnapshotId($var) - { - GPBUtil::checkString($var, True); - $this->snapshot_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/ExtendedSourceContext.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/ExtendedSourceContext.php deleted file mode 100644 index afe813dda634..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/ExtendedSourceContext.php +++ /dev/null @@ -1,112 +0,0 @@ -google.devtools.source.v1.ExtendedSourceContext - */ -class ExtendedSourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * Any source context. - * - * Generated from protobuf field .google.devtools.source.v1.SourceContext context = 1; - */ - protected $context = null; - /** - * Labels with user defined metadata. - * - * Generated from protobuf field map labels = 2; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DevTools\Source\V1\SourceContext $context - * Any source context. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels with user defined metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); - parent::__construct($data); - } - - /** - * Any source context. - * - * Generated from protobuf field .google.devtools.source.v1.SourceContext context = 1; - * @return \Google\Cloud\DevTools\Source\V1\SourceContext|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * Any source context. - * - * Generated from protobuf field .google.devtools.source.v1.SourceContext context = 1; - * @param \Google\Cloud\DevTools\Source\V1\SourceContext $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\SourceContext::class); - $this->context = $var; - - return $this; - } - - /** - * Labels with user defined metadata. - * - * Generated from protobuf field map labels = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels with user defined metadata. - * - * Generated from protobuf field map labels = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/GerritSourceContext.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/GerritSourceContext.php deleted file mode 100644 index e61cceab8f00..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/GerritSourceContext.php +++ /dev/null @@ -1,222 +0,0 @@ -google.devtools.source.v1.GerritSourceContext - */ -class GerritSourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * The URI of a running Gerrit instance. - * - * Generated from protobuf field string host_uri = 1; - */ - protected $host_uri = ''; - /** - * The full project name within the host. Projects may be nested, so - * "project/subproject" is a valid project name. - * The "repo name" is hostURI/project. - * - * Generated from protobuf field string gerrit_project = 2; - */ - protected $gerrit_project = ''; - protected $revision; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $host_uri - * The URI of a running Gerrit instance. - * @type string $gerrit_project - * The full project name within the host. Projects may be nested, so - * "project/subproject" is a valid project name. - * The "repo name" is hostURI/project. - * @type string $revision_id - * A revision (commit) ID. - * @type string $alias_name - * The name of an alias (branch, tag, etc.). - * @type \Google\Cloud\DevTools\Source\V1\AliasContext $alias_context - * An alias, which may be a branch or tag. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); - parent::__construct($data); - } - - /** - * The URI of a running Gerrit instance. - * - * Generated from protobuf field string host_uri = 1; - * @return string - */ - public function getHostUri() - { - return $this->host_uri; - } - - /** - * The URI of a running Gerrit instance. - * - * Generated from protobuf field string host_uri = 1; - * @param string $var - * @return $this - */ - public function setHostUri($var) - { - GPBUtil::checkString($var, True); - $this->host_uri = $var; - - return $this; - } - - /** - * The full project name within the host. Projects may be nested, so - * "project/subproject" is a valid project name. - * The "repo name" is hostURI/project. - * - * Generated from protobuf field string gerrit_project = 2; - * @return string - */ - public function getGerritProject() - { - return $this->gerrit_project; - } - - /** - * The full project name within the host. Projects may be nested, so - * "project/subproject" is a valid project name. - * The "repo name" is hostURI/project. - * - * Generated from protobuf field string gerrit_project = 2; - * @param string $var - * @return $this - */ - public function setGerritProject($var) - { - GPBUtil::checkString($var, True); - $this->gerrit_project = $var; - - return $this; - } - - /** - * A revision (commit) ID. - * - * Generated from protobuf field string revision_id = 3; - * @return string - */ - public function getRevisionId() - { - return $this->readOneof(3); - } - - public function hasRevisionId() - { - return $this->hasOneof(3); - } - - /** - * A revision (commit) ID. - * - * Generated from protobuf field string revision_id = 3; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The name of an alias (branch, tag, etc.). - * - * Generated from protobuf field string alias_name = 4 [deprecated = true]; - * @return string - * @deprecated - */ - public function getAliasName() - { - @trigger_error('alias_name is deprecated.', E_USER_DEPRECATED); - return $this->readOneof(4); - } - - public function hasAliasName() - { - @trigger_error('alias_name is deprecated.', E_USER_DEPRECATED); - return $this->hasOneof(4); - } - - /** - * The name of an alias (branch, tag, etc.). - * - * Generated from protobuf field string alias_name = 4 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setAliasName($var) - { - @trigger_error('alias_name is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * An alias, which may be a branch or tag. - * - * Generated from protobuf field .google.devtools.source.v1.AliasContext alias_context = 5; - * @return \Google\Cloud\DevTools\Source\V1\AliasContext|null - */ - public function getAliasContext() - { - return $this->readOneof(5); - } - - public function hasAliasContext() - { - return $this->hasOneof(5); - } - - /** - * An alias, which may be a branch or tag. - * - * Generated from protobuf field .google.devtools.source.v1.AliasContext alias_context = 5; - * @param \Google\Cloud\DevTools\Source\V1\AliasContext $var - * @return $this - */ - public function setAliasContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\AliasContext::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getRevision() - { - return $this->whichOneof("revision"); - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/GitSourceContext.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/GitSourceContext.php deleted file mode 100644 index b4f42b3ba9b8..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/GitSourceContext.php +++ /dev/null @@ -1,106 +0,0 @@ -google.devtools.source.v1.GitSourceContext - */ -class GitSourceContext extends \Google\Protobuf\Internal\Message -{ - /** - * Git repository URL. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - /** - * Git commit hash. - * required. - * - * Generated from protobuf field string revision_id = 2; - */ - protected $revision_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * Git repository URL. - * @type string $revision_id - * Git commit hash. - * required. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); - parent::__construct($data); - } - - /** - * Git repository URL. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * Git repository URL. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * Git commit hash. - * required. - * - * Generated from protobuf field string revision_id = 2; - * @return string - */ - public function getRevisionId() - { - return $this->revision_id; - } - - /** - * Git commit hash. - * required. - * - * Generated from protobuf field string revision_id = 2; - * @param string $var - * @return $this - */ - public function setRevisionId($var) - { - GPBUtil::checkString($var, True); - $this->revision_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/ProjectRepoId.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/ProjectRepoId.php deleted file mode 100644 index b1d3a1f5f5b3..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/ProjectRepoId.php +++ /dev/null @@ -1,102 +0,0 @@ -google.devtools.source.v1.ProjectRepoId - */ -class ProjectRepoId extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the project. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * The name of the repo. Leave empty for the default repo. - * - * Generated from protobuf field string repo_name = 2; - */ - protected $repo_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The ID of the project. - * @type string $repo_name - * The name of the repo. Leave empty for the default repo. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the project. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the project. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The name of the repo. Leave empty for the default repo. - * - * Generated from protobuf field string repo_name = 2; - * @return string - */ - public function getRepoName() - { - return $this->repo_name; - } - - /** - * The name of the repo. Leave empty for the default repo. - * - * Generated from protobuf field string repo_name = 2; - * @param string $var - * @return $this - */ - public function setRepoName($var) - { - GPBUtil::checkString($var, True); - $this->repo_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/RepoId.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/RepoId.php deleted file mode 100644 index a77098ec6585..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/RepoId.php +++ /dev/null @@ -1,108 +0,0 @@ -google.devtools.source.v1.RepoId - */ -class RepoId extends \Google\Protobuf\Internal\Message -{ - protected $id; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DevTools\Source\V1\ProjectRepoId $project_repo_id - * A combination of a project ID and a repo name. - * @type string $uid - * A server-assigned, globally unique identifier. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); - parent::__construct($data); - } - - /** - * A combination of a project ID and a repo name. - * - * Generated from protobuf field .google.devtools.source.v1.ProjectRepoId project_repo_id = 1; - * @return \Google\Cloud\DevTools\Source\V1\ProjectRepoId|null - */ - public function getProjectRepoId() - { - return $this->readOneof(1); - } - - public function hasProjectRepoId() - { - return $this->hasOneof(1); - } - - /** - * A combination of a project ID and a repo name. - * - * Generated from protobuf field .google.devtools.source.v1.ProjectRepoId project_repo_id = 1; - * @param \Google\Cloud\DevTools\Source\V1\ProjectRepoId $var - * @return $this - */ - public function setProjectRepoId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\ProjectRepoId::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A server-assigned, globally unique identifier. - * - * Generated from protobuf field string uid = 2; - * @return string - */ - public function getUid() - { - return $this->readOneof(2); - } - - public function hasUid() - { - return $this->hasOneof(2); - } - - /** - * A server-assigned, globally unique identifier. - * - * Generated from protobuf field string uid = 2; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getId() - { - return $this->whichOneof("id"); - } - -} - diff --git a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/SourceContext.php b/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/SourceContext.php deleted file mode 100644 index df3d221ec0a6..000000000000 --- a/owl-bot-staging/Debugger/v2/proto/src/Google/Cloud/DevTools/Source/V1/SourceContext.php +++ /dev/null @@ -1,175 +0,0 @@ -google.devtools.source.v1.SourceContext - */ -class SourceContext extends \Google\Protobuf\Internal\Message -{ - protected $context; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DevTools\Source\V1\CloudRepoSourceContext $cloud_repo - * A SourceContext referring to a revision in a cloud repo. - * @type \Google\Cloud\DevTools\Source\V1\CloudWorkspaceSourceContext $cloud_workspace - * A SourceContext referring to a snapshot in a cloud workspace. - * @type \Google\Cloud\DevTools\Source\V1\GerritSourceContext $gerrit - * A SourceContext referring to a Gerrit project. - * @type \Google\Cloud\DevTools\Source\V1\GitSourceContext $git - * A SourceContext referring to any third party Git repo (e.g. GitHub). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Source\V1\SourceContext::initOnce(); - parent::__construct($data); - } - - /** - * A SourceContext referring to a revision in a cloud repo. - * - * Generated from protobuf field .google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1; - * @return \Google\Cloud\DevTools\Source\V1\CloudRepoSourceContext|null - */ - public function getCloudRepo() - { - return $this->readOneof(1); - } - - public function hasCloudRepo() - { - return $this->hasOneof(1); - } - - /** - * A SourceContext referring to a revision in a cloud repo. - * - * Generated from protobuf field .google.devtools.source.v1.CloudRepoSourceContext cloud_repo = 1; - * @param \Google\Cloud\DevTools\Source\V1\CloudRepoSourceContext $var - * @return $this - */ - public function setCloudRepo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\CloudRepoSourceContext::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * A SourceContext referring to a snapshot in a cloud workspace. - * - * Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2; - * @return \Google\Cloud\DevTools\Source\V1\CloudWorkspaceSourceContext|null - */ - public function getCloudWorkspace() - { - return $this->readOneof(2); - } - - public function hasCloudWorkspace() - { - return $this->hasOneof(2); - } - - /** - * A SourceContext referring to a snapshot in a cloud workspace. - * - * Generated from protobuf field .google.devtools.source.v1.CloudWorkspaceSourceContext cloud_workspace = 2; - * @param \Google\Cloud\DevTools\Source\V1\CloudWorkspaceSourceContext $var - * @return $this - */ - public function setCloudWorkspace($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\CloudWorkspaceSourceContext::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A SourceContext referring to a Gerrit project. - * - * Generated from protobuf field .google.devtools.source.v1.GerritSourceContext gerrit = 3; - * @return \Google\Cloud\DevTools\Source\V1\GerritSourceContext|null - */ - public function getGerrit() - { - return $this->readOneof(3); - } - - public function hasGerrit() - { - return $this->hasOneof(3); - } - - /** - * A SourceContext referring to a Gerrit project. - * - * Generated from protobuf field .google.devtools.source.v1.GerritSourceContext gerrit = 3; - * @param \Google\Cloud\DevTools\Source\V1\GerritSourceContext $var - * @return $this - */ - public function setGerrit($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\GerritSourceContext::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * A SourceContext referring to any third party Git repo (e.g. GitHub). - * - * Generated from protobuf field .google.devtools.source.v1.GitSourceContext git = 6; - * @return \Google\Cloud\DevTools\Source\V1\GitSourceContext|null - */ - public function getGit() - { - return $this->readOneof(6); - } - - public function hasGit() - { - return $this->hasOneof(6); - } - - /** - * A SourceContext referring to any third party Git repo (e.g. GitHub). - * - * Generated from protobuf field .google.devtools.source.v1.GitSourceContext git = 6; - * @param \Google\Cloud\DevTools\Source\V1\GitSourceContext $var - * @return $this - */ - public function setGit($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\GitSourceContext::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getContext() - { - return $this->whichOneof("context"); - } - -} - diff --git a/owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/list_active_breakpoints.php b/owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/list_active_breakpoints.php deleted file mode 100644 index b3369a61ac22..000000000000 --- a/owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/list_active_breakpoints.php +++ /dev/null @@ -1,82 +0,0 @@ -setDebuggeeId($debuggeeId); - - // Call the API and handle any network failures. - try { - /** @var ListActiveBreakpointsResponse $response */ - $response = $controller2Client->listActiveBreakpoints($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $debuggeeId = '[DEBUGGEE_ID]'; - - list_active_breakpoints_sample($debuggeeId); -} -// [END clouddebugger_v2_generated_Controller2_ListActiveBreakpoints_sync] diff --git a/owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/register_debuggee.php b/owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/register_debuggee.php deleted file mode 100644 index cb4393d7d74e..000000000000 --- a/owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/register_debuggee.php +++ /dev/null @@ -1,69 +0,0 @@ -setDebuggee($debuggee); - - // Call the API and handle any network failures. - try { - /** @var RegisterDebuggeeResponse $response */ - $response = $controller2Client->registerDebuggee($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END clouddebugger_v2_generated_Controller2_RegisterDebuggee_sync] diff --git a/owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/update_active_breakpoint.php b/owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/update_active_breakpoint.php deleted file mode 100644 index 6db3e16faca2..000000000000 --- a/owl-bot-staging/Debugger/v2/samples/V2/Controller2Client/update_active_breakpoint.php +++ /dev/null @@ -1,80 +0,0 @@ -setDebuggeeId($debuggeeId) - ->setBreakpoint($breakpoint); - - // Call the API and handle any network failures. - try { - /** @var UpdateActiveBreakpointResponse $response */ - $response = $controller2Client->updateActiveBreakpoint($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $debuggeeId = '[DEBUGGEE_ID]'; - - update_active_breakpoint_sample($debuggeeId); -} -// [END clouddebugger_v2_generated_Controller2_UpdateActiveBreakpoint_sync] diff --git a/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/delete_breakpoint.php b/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/delete_breakpoint.php deleted file mode 100644 index a3b4799a65db..000000000000 --- a/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/delete_breakpoint.php +++ /dev/null @@ -1,78 +0,0 @@ -setDebuggeeId($debuggeeId) - ->setBreakpointId($breakpointId) - ->setClientVersion($clientVersion); - - // Call the API and handle any network failures. - try { - $debugger2Client->deleteBreakpoint($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 -{ - $debuggeeId = '[DEBUGGEE_ID]'; - $breakpointId = '[BREAKPOINT_ID]'; - $clientVersion = '[CLIENT_VERSION]'; - - delete_breakpoint_sample($debuggeeId, $breakpointId, $clientVersion); -} -// [END clouddebugger_v2_generated_Debugger2_DeleteBreakpoint_sync] diff --git a/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/get_breakpoint.php b/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/get_breakpoint.php deleted file mode 100644 index 3c05314cd3a9..000000000000 --- a/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/get_breakpoint.php +++ /dev/null @@ -1,80 +0,0 @@ -setDebuggeeId($debuggeeId) - ->setBreakpointId($breakpointId) - ->setClientVersion($clientVersion); - - // Call the API and handle any network failures. - try { - /** @var GetBreakpointResponse $response */ - $response = $debugger2Client->getBreakpoint($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $debuggeeId = '[DEBUGGEE_ID]'; - $breakpointId = '[BREAKPOINT_ID]'; - $clientVersion = '[CLIENT_VERSION]'; - - get_breakpoint_sample($debuggeeId, $breakpointId, $clientVersion); -} -// [END clouddebugger_v2_generated_Debugger2_GetBreakpoint_sync] diff --git a/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/list_breakpoints.php b/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/list_breakpoints.php deleted file mode 100644 index a1d21ad9cfbc..000000000000 --- a/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/list_breakpoints.php +++ /dev/null @@ -1,74 +0,0 @@ -setDebuggeeId($debuggeeId) - ->setClientVersion($clientVersion); - - // Call the API and handle any network failures. - try { - /** @var ListBreakpointsResponse $response */ - $response = $debugger2Client->listBreakpoints($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $debuggeeId = '[DEBUGGEE_ID]'; - $clientVersion = '[CLIENT_VERSION]'; - - list_breakpoints_sample($debuggeeId, $clientVersion); -} -// [END clouddebugger_v2_generated_Debugger2_ListBreakpoints_sync] diff --git a/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/list_debuggees.php b/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/list_debuggees.php deleted file mode 100644 index 1bbd9e55e1ef..000000000000 --- a/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/list_debuggees.php +++ /dev/null @@ -1,74 +0,0 @@ -setProject($project) - ->setClientVersion($clientVersion); - - // Call the API and handle any network failures. - try { - /** @var ListDebuggeesResponse $response */ - $response = $debugger2Client->listDebuggees($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $project = '[PROJECT]'; - $clientVersion = '[CLIENT_VERSION]'; - - list_debuggees_sample($project, $clientVersion); -} -// [END clouddebugger_v2_generated_Debugger2_ListDebuggees_sync] diff --git a/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/set_breakpoint.php b/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/set_breakpoint.php deleted file mode 100644 index 2c87bad7d0d8..000000000000 --- a/owl-bot-staging/Debugger/v2/samples/V2/Debugger2Client/set_breakpoint.php +++ /dev/null @@ -1,77 +0,0 @@ -setDebuggeeId($debuggeeId) - ->setBreakpoint($breakpoint) - ->setClientVersion($clientVersion); - - // Call the API and handle any network failures. - try { - /** @var SetBreakpointResponse $response */ - $response = $debugger2Client->setBreakpoint($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $debuggeeId = '[DEBUGGEE_ID]'; - $clientVersion = '[CLIENT_VERSION]'; - - set_breakpoint_sample($debuggeeId, $clientVersion); -} -// [END clouddebugger_v2_generated_Debugger2_SetBreakpoint_sync] diff --git a/owl-bot-staging/Debugger/v2/src/V2/Client/Controller2Client.php b/owl-bot-staging/Debugger/v2/src/V2/Client/Controller2Client.php deleted file mode 100644 index 996c64d0b213..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/Client/Controller2Client.php +++ /dev/null @@ -1,295 +0,0 @@ - listActiveBreakpointsAsync(ListActiveBreakpointsRequest $request, array $optionalArgs = []) - * @method PromiseInterface registerDebuggeeAsync(RegisterDebuggeeRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateActiveBreakpointAsync(UpdateActiveBreakpointRequest $request, array $optionalArgs = []) - */ -final class Controller2Client -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.devtools.clouddebugger.v2.Controller2'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'clouddebugger.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouddebugger.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud_debugger', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/controller2_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/controller2_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/controller2_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/controller2_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'clouddebugger.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); - } - - /** - * Returns the list of all active breakpoints for the debuggee. - * - * The breakpoint specification (`location`, `condition`, and `expressions` - * fields) is semantically immutable, although the field values may - * change. For example, an agent may update the location line number - * to reflect the actual line where the breakpoint was set, but this - * doesn't change the breakpoint semantics. - * - * This means that an agent does not need to check if a breakpoint has changed - * when it encounters the same breakpoint on a successive call. - * Moreover, an agent should remember the breakpoints that are completed - * until the controller removes them from the active list to avoid - * setting those breakpoints again. - * - * The async variant is {@see Controller2Client::listActiveBreakpointsAsync()} . - * - * @example samples/V2/Controller2Client/list_active_breakpoints.php - * - * @param ListActiveBreakpointsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListActiveBreakpointsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listActiveBreakpoints(ListActiveBreakpointsRequest $request, array $callOptions = []): ListActiveBreakpointsResponse - { - return $this->startApiCall('ListActiveBreakpoints', $request, $callOptions)->wait(); - } - - /** - * Registers the debuggee with the controller service. - * - * All agents attached to the same application must call this method with - * exactly the same request content to get back the same stable `debuggee_id`. - * Agents should call this method again whenever `google.rpc.Code.NOT_FOUND` - * is returned from any controller method. - * - * This protocol allows the controller service to disable debuggees, recover - * from data loss, or change the `debuggee_id` format. Agents must handle - * `debuggee_id` value changing upon re-registration. - * - * The async variant is {@see Controller2Client::registerDebuggeeAsync()} . - * - * @example samples/V2/Controller2Client/register_debuggee.php - * - * @param RegisterDebuggeeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RegisterDebuggeeResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function registerDebuggee(RegisterDebuggeeRequest $request, array $callOptions = []): RegisterDebuggeeResponse - { - return $this->startApiCall('RegisterDebuggee', $request, $callOptions)->wait(); - } - - /** - * Updates the breakpoint state or mutable fields. - * The entire Breakpoint message must be sent back to the controller service. - * - * Updates to active breakpoint fields are only allowed if the new value - * does not change the breakpoint specification. Updates to the `location`, - * `condition` and `expressions` fields should not alter the breakpoint - * semantics. These may only make changes such as canonicalizing a value - * or snapping the location to the correct line of code. - * - * The async variant is {@see Controller2Client::updateActiveBreakpointAsync()} . - * - * @example samples/V2/Controller2Client/update_active_breakpoint.php - * - * @param UpdateActiveBreakpointRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return UpdateActiveBreakpointResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateActiveBreakpoint(UpdateActiveBreakpointRequest $request, array $callOptions = []): UpdateActiveBreakpointResponse - { - return $this->startApiCall('UpdateActiveBreakpoint', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Debugger/v2/src/V2/Client/Debugger2Client.php b/owl-bot-staging/Debugger/v2/src/V2/Client/Debugger2Client.php deleted file mode 100644 index 77b7ad049090..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/Client/Debugger2Client.php +++ /dev/null @@ -1,314 +0,0 @@ - deleteBreakpointAsync(DeleteBreakpointRequest $request, array $optionalArgs = []) - * @method PromiseInterface getBreakpointAsync(GetBreakpointRequest $request, array $optionalArgs = []) - * @method PromiseInterface listBreakpointsAsync(ListBreakpointsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDebuggeesAsync(ListDebuggeesRequest $request, array $optionalArgs = []) - * @method PromiseInterface setBreakpointAsync(SetBreakpointRequest $request, array $optionalArgs = []) - */ -final class Debugger2Client -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.devtools.clouddebugger.v2.Debugger2'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'clouddebugger.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouddebugger.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - private const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - private const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud_debugger', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/debugger2_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/debugger2_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/debugger2_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/debugger2_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'clouddebugger.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); - } - - /** - * Deletes the breakpoint from the debuggee. - * - * The async variant is {@see Debugger2Client::deleteBreakpointAsync()} . - * - * @example samples/V2/Debugger2Client/delete_breakpoint.php - * - * @param DeleteBreakpointRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteBreakpoint(DeleteBreakpointRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteBreakpoint', $request, $callOptions)->wait(); - } - - /** - * Gets breakpoint information. - * - * The async variant is {@see Debugger2Client::getBreakpointAsync()} . - * - * @example samples/V2/Debugger2Client/get_breakpoint.php - * - * @param GetBreakpointRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GetBreakpointResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function getBreakpoint(GetBreakpointRequest $request, array $callOptions = []): GetBreakpointResponse - { - return $this->startApiCall('GetBreakpoint', $request, $callOptions)->wait(); - } - - /** - * Lists all breakpoints for the debuggee. - * - * The async variant is {@see Debugger2Client::listBreakpointsAsync()} . - * - * @example samples/V2/Debugger2Client/list_breakpoints.php - * - * @param ListBreakpointsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListBreakpointsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listBreakpoints(ListBreakpointsRequest $request, array $callOptions = []): ListBreakpointsResponse - { - return $this->startApiCall('ListBreakpoints', $request, $callOptions)->wait(); - } - - /** - * Lists all the debuggees that the user has access to. - * - * The async variant is {@see Debugger2Client::listDebuggeesAsync()} . - * - * @example samples/V2/Debugger2Client/list_debuggees.php - * - * @param ListDebuggeesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListDebuggeesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listDebuggees(ListDebuggeesRequest $request, array $callOptions = []): ListDebuggeesResponse - { - return $this->startApiCall('ListDebuggees', $request, $callOptions)->wait(); - } - - /** - * Sets the breakpoint to the debuggee. - * - * The async variant is {@see Debugger2Client::setBreakpointAsync()} . - * - * @example samples/V2/Debugger2Client/set_breakpoint.php - * - * @param SetBreakpointRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SetBreakpointResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function setBreakpoint(SetBreakpointRequest $request, array $callOptions = []): SetBreakpointResponse - { - return $this->startApiCall('SetBreakpoint', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Debugger/v2/src/V2/Controller2Client.php b/owl-bot-staging/Debugger/v2/src/V2/Controller2Client.php deleted file mode 100644 index 8c0c8508778a..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/Controller2Client.php +++ /dev/null @@ -1,34 +0,0 @@ -listActiveBreakpoints($debuggeeId); - * } finally { - * $controller2Client->close(); - * } - * ``` - * - * @deprecated Please use the new service client {@see \Google\Cloud\Debugger\V2\Client\Controller2Client}. - */ -class Controller2GapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.devtools.clouddebugger.v2.Controller2'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'clouddebugger.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouddebugger.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud_debugger', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/controller2_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/controller2_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/controller2_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/controller2_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'clouddebugger.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); - } - - /** - * Returns the list of all active breakpoints for the debuggee. - * - * The breakpoint specification (`location`, `condition`, and `expressions` - * fields) is semantically immutable, although the field values may - * change. For example, an agent may update the location line number - * to reflect the actual line where the breakpoint was set, but this - * doesn't change the breakpoint semantics. - * - * This means that an agent does not need to check if a breakpoint has changed - * when it encounters the same breakpoint on a successive call. - * Moreover, an agent should remember the breakpoints that are completed - * until the controller removes them from the active list to avoid - * setting those breakpoints again. - * - * Sample code: - * ``` - * $controller2Client = new Controller2Client(); - * try { - * $debuggeeId = 'debuggee_id'; - * $response = $controller2Client->listActiveBreakpoints($debuggeeId); - * } finally { - * $controller2Client->close(); - * } - * ``` - * - * @param string $debuggeeId Required. Identifies the debuggee. - * @param array $optionalArgs { - * Optional. - * - * @type string $waitToken - * A token that, if specified, blocks the method call until the list - * of active breakpoints has changed, or a server-selected timeout has - * expired. The value should be set from the `next_wait_token` field in - * the last response. The initial value should be set to `"init"`. - * @type bool $successOnTimeout - * If set to `true` (recommended), returns `google.rpc.Code.OK` status and - * sets the `wait_expired` response field to `true` when the server-selected - * timeout has expired. - * - * If set to `false` (deprecated), returns `google.rpc.Code.ABORTED` status - * when the server-selected timeout has expired. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Debugger\V2\ListActiveBreakpointsResponse - * - * @throws ApiException if the remote call fails - */ - public function listActiveBreakpoints($debuggeeId, array $optionalArgs = []) - { - $request = new ListActiveBreakpointsRequest(); - $requestParamHeaders = []; - $request->setDebuggeeId($debuggeeId); - $requestParamHeaders['debuggee_id'] = $debuggeeId; - if (isset($optionalArgs['waitToken'])) { - $request->setWaitToken($optionalArgs['waitToken']); - } - - if (isset($optionalArgs['successOnTimeout'])) { - $request->setSuccessOnTimeout($optionalArgs['successOnTimeout']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ListActiveBreakpoints', ListActiveBreakpointsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Registers the debuggee with the controller service. - * - * All agents attached to the same application must call this method with - * exactly the same request content to get back the same stable `debuggee_id`. - * Agents should call this method again whenever `google.rpc.Code.NOT_FOUND` - * is returned from any controller method. - * - * This protocol allows the controller service to disable debuggees, recover - * from data loss, or change the `debuggee_id` format. Agents must handle - * `debuggee_id` value changing upon re-registration. - * - * Sample code: - * ``` - * $controller2Client = new Controller2Client(); - * try { - * $debuggee = new Debuggee(); - * $response = $controller2Client->registerDebuggee($debuggee); - * } finally { - * $controller2Client->close(); - * } - * ``` - * - * @param Debuggee $debuggee Required. Debuggee information to register. - * The fields `project`, `uniquifier`, `description` and `agent_version` - * of the debuggee must be set. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Debugger\V2\RegisterDebuggeeResponse - * - * @throws ApiException if the remote call fails - */ - public function registerDebuggee($debuggee, array $optionalArgs = []) - { - $request = new RegisterDebuggeeRequest(); - $request->setDebuggee($debuggee); - return $this->startCall('RegisterDebuggee', RegisterDebuggeeResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Updates the breakpoint state or mutable fields. - * The entire Breakpoint message must be sent back to the controller service. - * - * Updates to active breakpoint fields are only allowed if the new value - * does not change the breakpoint specification. Updates to the `location`, - * `condition` and `expressions` fields should not alter the breakpoint - * semantics. These may only make changes such as canonicalizing a value - * or snapping the location to the correct line of code. - * - * Sample code: - * ``` - * $controller2Client = new Controller2Client(); - * try { - * $debuggeeId = 'debuggee_id'; - * $breakpoint = new Breakpoint(); - * $response = $controller2Client->updateActiveBreakpoint($debuggeeId, $breakpoint); - * } finally { - * $controller2Client->close(); - * } - * ``` - * - * @param string $debuggeeId Required. Identifies the debuggee being debugged. - * @param Breakpoint $breakpoint Required. Updated breakpoint information. - * The field `id` must be set. - * The agent must echo all Breakpoint specification fields in the update. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Debugger\V2\UpdateActiveBreakpointResponse - * - * @throws ApiException if the remote call fails - */ - public function updateActiveBreakpoint($debuggeeId, $breakpoint, array $optionalArgs = []) - { - $request = new UpdateActiveBreakpointRequest(); - $requestParamHeaders = []; - $request->setDebuggeeId($debuggeeId); - $request->setBreakpoint($breakpoint); - $requestParamHeaders['debuggee_id'] = $debuggeeId; - $requestParamHeaders['breakpoint.id'] = $breakpoint->getId(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateActiveBreakpoint', UpdateActiveBreakpointResponse::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/Debugger/v2/src/V2/Gapic/Debugger2GapicClient.php b/owl-bot-staging/Debugger/v2/src/V2/Gapic/Debugger2GapicClient.php deleted file mode 100644 index 62247df2bdec..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/Gapic/Debugger2GapicClient.php +++ /dev/null @@ -1,451 +0,0 @@ -deleteBreakpoint($debuggeeId, $breakpointId, $clientVersion); - * } finally { - * $debugger2Client->close(); - * } - * ``` - * - * @deprecated Please use the new service client {@see \Google\Cloud\Debugger\V2\Client\Debugger2Client}. - */ -class Debugger2GapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.devtools.clouddebugger.v2.Debugger2'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'clouddebugger.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouddebugger.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - 'https://www.googleapis.com/auth/cloud_debugger', - ]; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/debugger2_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/debugger2_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/debugger2_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/debugger2_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'clouddebugger.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); - } - - /** - * Deletes the breakpoint from the debuggee. - * - * Sample code: - * ``` - * $debugger2Client = new Debugger2Client(); - * try { - * $debuggeeId = 'debuggee_id'; - * $breakpointId = 'breakpoint_id'; - * $clientVersion = 'client_version'; - * $debugger2Client->deleteBreakpoint($debuggeeId, $breakpointId, $clientVersion); - * } finally { - * $debugger2Client->close(); - * } - * ``` - * - * @param string $debuggeeId Required. ID of the debuggee whose breakpoint to delete. - * @param string $breakpointId Required. ID of the breakpoint to delete. - * @param string $clientVersion Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @throws ApiException if the remote call fails - */ - public function deleteBreakpoint($debuggeeId, $breakpointId, $clientVersion, array $optionalArgs = []) - { - $request = new DeleteBreakpointRequest(); - $requestParamHeaders = []; - $request->setDebuggeeId($debuggeeId); - $request->setBreakpointId($breakpointId); - $request->setClientVersion($clientVersion); - $requestParamHeaders['debuggee_id'] = $debuggeeId; - $requestParamHeaders['breakpoint_id'] = $breakpointId; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteBreakpoint', GPBEmpty::class, $optionalArgs, $request)->wait(); - } - - /** - * Gets breakpoint information. - * - * Sample code: - * ``` - * $debugger2Client = new Debugger2Client(); - * try { - * $debuggeeId = 'debuggee_id'; - * $breakpointId = 'breakpoint_id'; - * $clientVersion = 'client_version'; - * $response = $debugger2Client->getBreakpoint($debuggeeId, $breakpointId, $clientVersion); - * } finally { - * $debugger2Client->close(); - * } - * ``` - * - * @param string $debuggeeId Required. ID of the debuggee whose breakpoint to get. - * @param string $breakpointId Required. ID of the breakpoint to get. - * @param string $clientVersion Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Debugger\V2\GetBreakpointResponse - * - * @throws ApiException if the remote call fails - */ - public function getBreakpoint($debuggeeId, $breakpointId, $clientVersion, array $optionalArgs = []) - { - $request = new GetBreakpointRequest(); - $requestParamHeaders = []; - $request->setDebuggeeId($debuggeeId); - $request->setBreakpointId($breakpointId); - $request->setClientVersion($clientVersion); - $requestParamHeaders['debuggee_id'] = $debuggeeId; - $requestParamHeaders['breakpoint_id'] = $breakpointId; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetBreakpoint', GetBreakpointResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all breakpoints for the debuggee. - * - * Sample code: - * ``` - * $debugger2Client = new Debugger2Client(); - * try { - * $debuggeeId = 'debuggee_id'; - * $clientVersion = 'client_version'; - * $response = $debugger2Client->listBreakpoints($debuggeeId, $clientVersion); - * } finally { - * $debugger2Client->close(); - * } - * ``` - * - * @param string $debuggeeId Required. ID of the debuggee whose breakpoints to list. - * @param string $clientVersion Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * @param array $optionalArgs { - * Optional. - * - * @type bool $includeAllUsers - * When set to `true`, the response includes the list of breakpoints set by - * any user. Otherwise, it includes only breakpoints set by the caller. - * @type bool $includeInactive - * When set to `true`, the response includes active and inactive - * breakpoints. Otherwise, it includes only active breakpoints. - * @type BreakpointActionValue $action - * When set, the response includes only breakpoints with the specified action. - * @type bool $stripResults - * This field is deprecated. The following fields are always stripped out of - * the result: `stack_frames`, `evaluated_expressions` and `variable_table`. - * @type string $waitToken - * A wait token that, if specified, blocks the call until the breakpoints - * list has changed, or a server selected timeout has expired. The value - * should be set from the last response. The error code - * `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which - * should be called again with the same `wait_token`. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Debugger\V2\ListBreakpointsResponse - * - * @throws ApiException if the remote call fails - */ - public function listBreakpoints($debuggeeId, $clientVersion, array $optionalArgs = []) - { - $request = new ListBreakpointsRequest(); - $requestParamHeaders = []; - $request->setDebuggeeId($debuggeeId); - $request->setClientVersion($clientVersion); - $requestParamHeaders['debuggee_id'] = $debuggeeId; - if (isset($optionalArgs['includeAllUsers'])) { - $request->setIncludeAllUsers($optionalArgs['includeAllUsers']); - } - - if (isset($optionalArgs['includeInactive'])) { - $request->setIncludeInactive($optionalArgs['includeInactive']); - } - - if (isset($optionalArgs['action'])) { - $request->setAction($optionalArgs['action']); - } - - if (isset($optionalArgs['stripResults'])) { - $request->setStripResults($optionalArgs['stripResults']); - } - - if (isset($optionalArgs['waitToken'])) { - $request->setWaitToken($optionalArgs['waitToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ListBreakpoints', ListBreakpointsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists all the debuggees that the user has access to. - * - * Sample code: - * ``` - * $debugger2Client = new Debugger2Client(); - * try { - * $project = 'project'; - * $clientVersion = 'client_version'; - * $response = $debugger2Client->listDebuggees($project, $clientVersion); - * } finally { - * $debugger2Client->close(); - * } - * ``` - * - * @param string $project Required. Project number of a Google Cloud project whose debuggees to list. - * @param string $clientVersion Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * @param array $optionalArgs { - * Optional. - * - * @type bool $includeInactive - * When set to `true`, the result includes all debuggees. Otherwise, the - * result includes only debuggees that are active. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Debugger\V2\ListDebuggeesResponse - * - * @throws ApiException if the remote call fails - */ - public function listDebuggees($project, $clientVersion, array $optionalArgs = []) - { - $request = new ListDebuggeesRequest(); - $request->setProject($project); - $request->setClientVersion($clientVersion); - if (isset($optionalArgs['includeInactive'])) { - $request->setIncludeInactive($optionalArgs['includeInactive']); - } - - return $this->startCall('ListDebuggees', ListDebuggeesResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Sets the breakpoint to the debuggee. - * - * Sample code: - * ``` - * $debugger2Client = new Debugger2Client(); - * try { - * $debuggeeId = 'debuggee_id'; - * $breakpoint = new Breakpoint(); - * $clientVersion = 'client_version'; - * $response = $debugger2Client->setBreakpoint($debuggeeId, $breakpoint, $clientVersion); - * } finally { - * $debugger2Client->close(); - * } - * ``` - * - * @param string $debuggeeId Required. ID of the debuggee where the breakpoint is to be set. - * @param Breakpoint $breakpoint Required. Breakpoint specification to set. - * The field `location` of the breakpoint must be set. - * @param string $clientVersion Required. The client version making the call. - * Schema: `domain/type/version` (e.g., `google.com/intellij/v1`). - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\Debugger\V2\SetBreakpointResponse - * - * @throws ApiException if the remote call fails - */ - public function setBreakpoint($debuggeeId, $breakpoint, $clientVersion, array $optionalArgs = []) - { - $request = new SetBreakpointRequest(); - $requestParamHeaders = []; - $request->setDebuggeeId($debuggeeId); - $request->setBreakpoint($breakpoint); - $request->setClientVersion($clientVersion); - $requestParamHeaders['debuggee_id'] = $debuggeeId; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('SetBreakpoint', SetBreakpointResponse::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/Debugger/v2/src/V2/gapic_metadata.json b/owl-bot-staging/Debugger/v2/src/V2/gapic_metadata.json deleted file mode 100644 index 6d2fde4b8bd0..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/gapic_metadata.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.devtools.clouddebugger.v2", - "libraryPackage": "Google\\Cloud\\Debugger\\V2", - "services": { - "Controller2": { - "clients": { - "grpc": { - "libraryClient": "Controller2GapicClient", - "rpcs": { - "ListActiveBreakpoints": { - "methods": [ - "listActiveBreakpoints" - ] - }, - "RegisterDebuggee": { - "methods": [ - "registerDebuggee" - ] - }, - "UpdateActiveBreakpoint": { - "methods": [ - "updateActiveBreakpoint" - ] - } - } - } - } - }, - "Debugger2": { - "clients": { - "grpc": { - "libraryClient": "Debugger2GapicClient", - "rpcs": { - "DeleteBreakpoint": { - "methods": [ - "deleteBreakpoint" - ] - }, - "GetBreakpoint": { - "methods": [ - "getBreakpoint" - ] - }, - "ListBreakpoints": { - "methods": [ - "listBreakpoints" - ] - }, - "ListDebuggees": { - "methods": [ - "listDebuggees" - ] - }, - "SetBreakpoint": { - "methods": [ - "setBreakpoint" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Debugger/v2/src/V2/resources/controller2_client_config.json b/owl-bot-staging/Debugger/v2/src/V2/resources/controller2_client_config.json deleted file mode 100644 index aee42ba0c4f7..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/resources/controller2_client_config.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "interfaces": { - "google.devtools.clouddebugger.v2.Controller2": { - "retry_codes": { - "no_retry_codes": [], - "no_retry_2_codes": [], - "retry_policy_2_codes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ] - }, - "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": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - }, - "retry_policy_2_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "ListActiveBreakpoints": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "RegisterDebuggee": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_2_codes", - "retry_params_name": "no_retry_2_params" - }, - "UpdateActiveBreakpoint": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/Debugger/v2/src/V2/resources/controller2_descriptor_config.php b/owl-bot-staging/Debugger/v2/src/V2/resources/controller2_descriptor_config.php deleted file mode 100644 index 49819ecc8316..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/resources/controller2_descriptor_config.php +++ /dev/null @@ -1,63 +0,0 @@ - [ - 'google.devtools.clouddebugger.v2.Controller2' => [ - 'ListActiveBreakpoints' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Debugger\V2\ListActiveBreakpointsResponse', - 'headerParams' => [ - [ - 'keyName' => 'debuggee_id', - 'fieldAccessors' => [ - 'getDebuggeeId', - ], - ], - ], - ], - 'RegisterDebuggee' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Debugger\V2\RegisterDebuggeeResponse', - ], - 'UpdateActiveBreakpoint' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Debugger\V2\UpdateActiveBreakpointResponse', - 'headerParams' => [ - [ - 'keyName' => 'debuggee_id', - 'fieldAccessors' => [ - 'getDebuggeeId', - ], - ], - [ - 'keyName' => 'breakpoint.id', - 'fieldAccessors' => [ - 'getBreakpoint', - 'getId', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/Debugger/v2/src/V2/resources/controller2_rest_client_config.php b/owl-bot-staging/Debugger/v2/src/V2/resources/controller2_rest_client_config.php deleted file mode 100644 index 7ec2797d0957..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/resources/controller2_rest_client_config.php +++ /dev/null @@ -1,63 +0,0 @@ - [ - 'google.devtools.clouddebugger.v2.Controller2' => [ - 'ListActiveBreakpoints' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/controller/debuggees/{debuggee_id}/breakpoints', - 'placeholders' => [ - 'debuggee_id' => [ - 'getters' => [ - 'getDebuggeeId', - ], - ], - ], - ], - 'RegisterDebuggee' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/controller/debuggees/register', - 'body' => '*', - ], - 'UpdateActiveBreakpoint' => [ - 'method' => 'put', - 'uriTemplate' => '/v2/controller/debuggees/{debuggee_id}/breakpoints/{breakpoint.id}', - 'body' => '*', - 'placeholders' => [ - 'breakpoint.id' => [ - 'getters' => [ - 'getBreakpoint', - 'getId', - ], - ], - 'debuggee_id' => [ - 'getters' => [ - 'getDebuggeeId', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_client_config.json b/owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_client_config.json deleted file mode 100644 index 1575623b3cec..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_client_config.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "interfaces": { - "google.devtools.clouddebugger.v2.Debugger2": { - "retry_codes": { - "no_retry_codes": [], - "no_retry_1_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ] - }, - "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": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "DeleteBreakpoint": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetBreakpoint": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListBreakpoints": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDebuggees": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SetBreakpoint": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_descriptor_config.php b/owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_descriptor_config.php deleted file mode 100644 index eabff40bca70..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_descriptor_config.php +++ /dev/null @@ -1,92 +0,0 @@ - [ - 'google.devtools.clouddebugger.v2.Debugger2' => [ - 'DeleteBreakpoint' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'debuggee_id', - 'fieldAccessors' => [ - 'getDebuggeeId', - ], - ], - [ - 'keyName' => 'breakpoint_id', - 'fieldAccessors' => [ - 'getBreakpointId', - ], - ], - ], - ], - 'GetBreakpoint' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Debugger\V2\GetBreakpointResponse', - 'headerParams' => [ - [ - 'keyName' => 'debuggee_id', - 'fieldAccessors' => [ - 'getDebuggeeId', - ], - ], - [ - 'keyName' => 'breakpoint_id', - 'fieldAccessors' => [ - 'getBreakpointId', - ], - ], - ], - ], - 'ListBreakpoints' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Debugger\V2\ListBreakpointsResponse', - 'headerParams' => [ - [ - 'keyName' => 'debuggee_id', - 'fieldAccessors' => [ - 'getDebuggeeId', - ], - ], - ], - ], - 'ListDebuggees' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Debugger\V2\ListDebuggeesResponse', - ], - 'SetBreakpoint' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Debugger\V2\SetBreakpointResponse', - 'headerParams' => [ - [ - 'keyName' => 'debuggee_id', - 'fieldAccessors' => [ - 'getDebuggeeId', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_rest_client_config.php b/owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_rest_client_config.php deleted file mode 100644 index de4456585cef..000000000000 --- a/owl-bot-staging/Debugger/v2/src/V2/resources/debugger2_rest_client_config.php +++ /dev/null @@ -1,104 +0,0 @@ - [ - 'google.devtools.clouddebugger.v2.Debugger2' => [ - 'DeleteBreakpoint' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/debugger/debuggees/{debuggee_id}/breakpoints/{breakpoint_id}', - 'placeholders' => [ - 'breakpoint_id' => [ - 'getters' => [ - 'getBreakpointId', - ], - ], - 'debuggee_id' => [ - 'getters' => [ - 'getDebuggeeId', - ], - ], - ], - 'queryParams' => [ - 'client_version', - ], - ], - 'GetBreakpoint' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/debugger/debuggees/{debuggee_id}/breakpoints/{breakpoint_id}', - 'placeholders' => [ - 'breakpoint_id' => [ - 'getters' => [ - 'getBreakpointId', - ], - ], - 'debuggee_id' => [ - 'getters' => [ - 'getDebuggeeId', - ], - ], - ], - 'queryParams' => [ - 'client_version', - ], - ], - 'ListBreakpoints' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/debugger/debuggees/{debuggee_id}/breakpoints', - 'placeholders' => [ - 'debuggee_id' => [ - 'getters' => [ - 'getDebuggeeId', - ], - ], - ], - 'queryParams' => [ - 'client_version', - ], - ], - 'ListDebuggees' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/debugger/debuggees', - 'queryParams' => [ - 'project', - 'client_version', - ], - ], - 'SetBreakpoint' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/debugger/debuggees/{debuggee_id}/breakpoints/set', - 'body' => 'breakpoint', - 'placeholders' => [ - 'debuggee_id' => [ - 'getters' => [ - 'getDebuggeeId', - ], - ], - ], - 'queryParams' => [ - 'client_version', - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Debugger/v2/tests/Unit/V2/Client/Controller2ClientTest.php b/owl-bot-staging/Debugger/v2/tests/Unit/V2/Client/Controller2ClientTest.php deleted file mode 100644 index 3fec390c53d5..000000000000 --- a/owl-bot-staging/Debugger/v2/tests/Unit/V2/Client/Controller2ClientTest.php +++ /dev/null @@ -1,295 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return Controller2Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new Controller2Client($options); - } - - /** @test */ - public function listActiveBreakpointsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextWaitToken = 'nextWaitToken1006864251'; - $waitExpired = false; - $expectedResponse = new ListActiveBreakpointsResponse(); - $expectedResponse->setNextWaitToken($nextWaitToken); - $expectedResponse->setWaitExpired($waitExpired); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $request = (new ListActiveBreakpointsRequest()) - ->setDebuggeeId($debuggeeId); - $response = $gapicClient->listActiveBreakpoints($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Controller2/ListActiveBreakpoints', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listActiveBreakpointsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $request = (new ListActiveBreakpointsRequest()) - ->setDebuggeeId($debuggeeId); - try { - $gapicClient->listActiveBreakpoints($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function registerDebuggeeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RegisterDebuggeeResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggee = new Debuggee(); - $request = (new RegisterDebuggeeRequest()) - ->setDebuggee($debuggee); - $response = $gapicClient->registerDebuggee($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Controller2/RegisterDebuggee', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggee(); - $this->assertProtobufEquals($debuggee, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function registerDebuggeeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggee = new Debuggee(); - $request = (new RegisterDebuggeeRequest()) - ->setDebuggee($debuggee); - try { - $gapicClient->registerDebuggee($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateActiveBreakpointTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new UpdateActiveBreakpointResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpoint = new Breakpoint(); - $request = (new UpdateActiveBreakpointRequest()) - ->setDebuggeeId($debuggeeId) - ->setBreakpoint($breakpoint); - $response = $gapicClient->updateActiveBreakpoint($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Controller2/UpdateActiveBreakpoint', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getBreakpoint(); - $this->assertProtobufEquals($breakpoint, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateActiveBreakpointExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpoint = new Breakpoint(); - $request = (new UpdateActiveBreakpointRequest()) - ->setDebuggeeId($debuggeeId) - ->setBreakpoint($breakpoint); - try { - $gapicClient->updateActiveBreakpoint($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listActiveBreakpointsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextWaitToken = 'nextWaitToken1006864251'; - $waitExpired = false; - $expectedResponse = new ListActiveBreakpointsResponse(); - $expectedResponse->setNextWaitToken($nextWaitToken); - $expectedResponse->setWaitExpired($waitExpired); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $request = (new ListActiveBreakpointsRequest()) - ->setDebuggeeId($debuggeeId); - $response = $gapicClient->listActiveBreakpointsAsync($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.devtools.clouddebugger.v2.Controller2/ListActiveBreakpoints', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Debugger/v2/tests/Unit/V2/Client/Debugger2ClientTest.php b/owl-bot-staging/Debugger/v2/tests/Unit/V2/Client/Debugger2ClientTest.php deleted file mode 100644 index d625889d109a..000000000000 --- a/owl-bot-staging/Debugger/v2/tests/Unit/V2/Client/Debugger2ClientTest.php +++ /dev/null @@ -1,464 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return Debugger2Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new Debugger2Client($options); - } - - /** @test */ - public function deleteBreakpointTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpointId = 'breakpointId498424873'; - $clientVersion = 'clientVersion-1506231196'; - $request = (new DeleteBreakpointRequest()) - ->setDebuggeeId($debuggeeId) - ->setBreakpointId($breakpointId) - ->setClientVersion($clientVersion); - $gapicClient->deleteBreakpoint($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/DeleteBreakpoint', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getBreakpointId(); - $this->assertProtobufEquals($breakpointId, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteBreakpointExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpointId = 'breakpointId498424873'; - $clientVersion = 'clientVersion-1506231196'; - $request = (new DeleteBreakpointRequest()) - ->setDebuggeeId($debuggeeId) - ->setBreakpointId($breakpointId) - ->setClientVersion($clientVersion); - try { - $gapicClient->deleteBreakpoint($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBreakpointTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GetBreakpointResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpointId = 'breakpointId498424873'; - $clientVersion = 'clientVersion-1506231196'; - $request = (new GetBreakpointRequest()) - ->setDebuggeeId($debuggeeId) - ->setBreakpointId($breakpointId) - ->setClientVersion($clientVersion); - $response = $gapicClient->getBreakpoint($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/GetBreakpoint', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getBreakpointId(); - $this->assertProtobufEquals($breakpointId, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBreakpointExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpointId = 'breakpointId498424873'; - $clientVersion = 'clientVersion-1506231196'; - $request = (new GetBreakpointRequest()) - ->setDebuggeeId($debuggeeId) - ->setBreakpointId($breakpointId) - ->setClientVersion($clientVersion); - try { - $gapicClient->getBreakpoint($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBreakpointsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextWaitToken = 'nextWaitToken1006864251'; - $expectedResponse = new ListBreakpointsResponse(); - $expectedResponse->setNextWaitToken($nextWaitToken); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $clientVersion = 'clientVersion-1506231196'; - $request = (new ListBreakpointsRequest()) - ->setDebuggeeId($debuggeeId) - ->setClientVersion($clientVersion); - $response = $gapicClient->listBreakpoints($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/ListBreakpoints', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBreakpointsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $clientVersion = 'clientVersion-1506231196'; - $request = (new ListBreakpointsRequest()) - ->setDebuggeeId($debuggeeId) - ->setClientVersion($clientVersion); - try { - $gapicClient->listBreakpoints($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDebuggeesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListDebuggeesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $project = 'project-309310695'; - $clientVersion = 'clientVersion-1506231196'; - $request = (new ListDebuggeesRequest()) - ->setProject($project) - ->setClientVersion($clientVersion); - $response = $gapicClient->listDebuggees($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/ListDebuggees', $actualFuncCall); - $actualValue = $actualRequestObject->getProject(); - $this->assertProtobufEquals($project, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDebuggeesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $project = 'project-309310695'; - $clientVersion = 'clientVersion-1506231196'; - $request = (new ListDebuggeesRequest()) - ->setProject($project) - ->setClientVersion($clientVersion); - try { - $gapicClient->listDebuggees($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setBreakpointTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new SetBreakpointResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpoint = new Breakpoint(); - $clientVersion = 'clientVersion-1506231196'; - $request = (new SetBreakpointRequest()) - ->setDebuggeeId($debuggeeId) - ->setBreakpoint($breakpoint) - ->setClientVersion($clientVersion); - $response = $gapicClient->setBreakpoint($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/SetBreakpoint', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getBreakpoint(); - $this->assertProtobufEquals($breakpoint, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setBreakpointExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpoint = new Breakpoint(); - $clientVersion = 'clientVersion-1506231196'; - $request = (new SetBreakpointRequest()) - ->setDebuggeeId($debuggeeId) - ->setBreakpoint($breakpoint) - ->setClientVersion($clientVersion); - try { - $gapicClient->setBreakpoint($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteBreakpointAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpointId = 'breakpointId498424873'; - $clientVersion = 'clientVersion-1506231196'; - $request = (new DeleteBreakpointRequest()) - ->setDebuggeeId($debuggeeId) - ->setBreakpointId($breakpointId) - ->setClientVersion($clientVersion); - $gapicClient->deleteBreakpointAsync($request)->wait(); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/DeleteBreakpoint', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getBreakpointId(); - $this->assertProtobufEquals($breakpointId, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Debugger/v2/tests/Unit/V2/Controller2ClientTest.php b/owl-bot-staging/Debugger/v2/tests/Unit/V2/Controller2ClientTest.php deleted file mode 100644 index 0ff20a42dee0..000000000000 --- a/owl-bot-staging/Debugger/v2/tests/Unit/V2/Controller2ClientTest.php +++ /dev/null @@ -1,247 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return Controller2Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new Controller2Client($options); - } - - /** @test */ - public function listActiveBreakpointsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextWaitToken = 'nextWaitToken1006864251'; - $waitExpired = false; - $expectedResponse = new ListActiveBreakpointsResponse(); - $expectedResponse->setNextWaitToken($nextWaitToken); - $expectedResponse->setWaitExpired($waitExpired); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $response = $gapicClient->listActiveBreakpoints($debuggeeId); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Controller2/ListActiveBreakpoints', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listActiveBreakpointsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - try { - $gapicClient->listActiveBreakpoints($debuggeeId); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function registerDebuggeeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RegisterDebuggeeResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggee = new Debuggee(); - $response = $gapicClient->registerDebuggee($debuggee); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Controller2/RegisterDebuggee', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggee(); - $this->assertProtobufEquals($debuggee, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function registerDebuggeeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggee = new Debuggee(); - try { - $gapicClient->registerDebuggee($debuggee); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateActiveBreakpointTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new UpdateActiveBreakpointResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpoint = new Breakpoint(); - $response = $gapicClient->updateActiveBreakpoint($debuggeeId, $breakpoint); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Controller2/UpdateActiveBreakpoint', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getBreakpoint(); - $this->assertProtobufEquals($breakpoint, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateActiveBreakpointExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpoint = new Breakpoint(); - try { - $gapicClient->updateActiveBreakpoint($debuggeeId, $breakpoint); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Debugger/v2/tests/Unit/V2/Debugger2ClientTest.php b/owl-bot-staging/Debugger/v2/tests/Unit/V2/Debugger2ClientTest.php deleted file mode 100644 index 5a8c837972b4..000000000000 --- a/owl-bot-staging/Debugger/v2/tests/Unit/V2/Debugger2ClientTest.php +++ /dev/null @@ -1,389 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return Debugger2Client */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new Debugger2Client($options); - } - - /** @test */ - public function deleteBreakpointTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpointId = 'breakpointId498424873'; - $clientVersion = 'clientVersion-1506231196'; - $gapicClient->deleteBreakpoint($debuggeeId, $breakpointId, $clientVersion); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/DeleteBreakpoint', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getBreakpointId(); - $this->assertProtobufEquals($breakpointId, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteBreakpointExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpointId = 'breakpointId498424873'; - $clientVersion = 'clientVersion-1506231196'; - try { - $gapicClient->deleteBreakpoint($debuggeeId, $breakpointId, $clientVersion); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBreakpointTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GetBreakpointResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpointId = 'breakpointId498424873'; - $clientVersion = 'clientVersion-1506231196'; - $response = $gapicClient->getBreakpoint($debuggeeId, $breakpointId, $clientVersion); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/GetBreakpoint', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getBreakpointId(); - $this->assertProtobufEquals($breakpointId, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getBreakpointExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpointId = 'breakpointId498424873'; - $clientVersion = 'clientVersion-1506231196'; - try { - $gapicClient->getBreakpoint($debuggeeId, $breakpointId, $clientVersion); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBreakpointsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextWaitToken = 'nextWaitToken1006864251'; - $expectedResponse = new ListBreakpointsResponse(); - $expectedResponse->setNextWaitToken($nextWaitToken); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $clientVersion = 'clientVersion-1506231196'; - $response = $gapicClient->listBreakpoints($debuggeeId, $clientVersion); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/ListBreakpoints', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listBreakpointsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $clientVersion = 'clientVersion-1506231196'; - try { - $gapicClient->listBreakpoints($debuggeeId, $clientVersion); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDebuggeesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListDebuggeesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $project = 'project-309310695'; - $clientVersion = 'clientVersion-1506231196'; - $response = $gapicClient->listDebuggees($project, $clientVersion); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/ListDebuggees', $actualFuncCall); - $actualValue = $actualRequestObject->getProject(); - $this->assertProtobufEquals($project, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDebuggeesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $project = 'project-309310695'; - $clientVersion = 'clientVersion-1506231196'; - try { - $gapicClient->listDebuggees($project, $clientVersion); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setBreakpointTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new SetBreakpointResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpoint = new Breakpoint(); - $clientVersion = 'clientVersion-1506231196'; - $response = $gapicClient->setBreakpoint($debuggeeId, $breakpoint, $clientVersion); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouddebugger.v2.Debugger2/SetBreakpoint', $actualFuncCall); - $actualValue = $actualRequestObject->getDebuggeeId(); - $this->assertProtobufEquals($debuggeeId, $actualValue); - $actualValue = $actualRequestObject->getBreakpoint(); - $this->assertProtobufEquals($breakpoint, $actualValue); - $actualValue = $actualRequestObject->getClientVersion(); - $this->assertProtobufEquals($clientVersion, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function setBreakpointExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $debuggeeId = 'debuggeeId-997255898'; - $breakpoint = new Breakpoint(); - $clientVersion = 'clientVersion-1506231196'; - try { - $gapicClient->setBreakpoint($debuggeeId, $breakpoint, $clientVersion); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Answer.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Answer.php deleted file mode 100644 index 693a36e0e65356aad5f7787876bcd7b1b35326f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5671 zcmcIo-*4O26^JSWala7*TMX4hyqU_A829Bn#ZKg8G zk(5_2^TP&g7%*UeM6s9ceZVmEFX-!@_E2EY{S*2y?A&`vT9&0+ZaTl1BJcg~Ip6ut z;oqu&? z(Rl~A2JXPONLku*-Mv03T77rWEB5Tbau11rM4Ua_A;rVhqUi*`!u<>wz%dU<;F%VY z>aEIi5}G|TG`n?%(XCR9ZtXNicWZSG!0MYpASnzBUW0^x-e9M1TT&33A^y8(2Zrs~ zp>6ild}oc> zO#zORtL_-i6wmIi+oa#CkbU#ecKves#H$mKNn6__isRI~5;}A=-3q5aF4@?zQ3IiQ z;EmtQ_p7fTU3Y{p$_xBNCc=VDxpWQb(2ykR%U#Z&fXQ` zeONqwM|cY^C(<(P9?u5xcL3QF-FP4l9G+(bAGzFkP=1Na5?gFpCl$6sBh`-H1 zVUmBs6Ih5TjH=Jd*UCfaJ{T>9y!>Dl3}n<=F+M}cL1y6FtV(5tD=-_{VV^_=$Av{s zo#kTvcEY&oyu7$~lN^v4uT_pOtWXit7m-0b39L?(%bW3ON&0ZA#8+_n)b6V=9~sK2 z5N^U%&)g%ZMKs>twTU13c^j@`^&*ER7C{4>9G`ofetPMTsZ>RPJl2F$kHx=cAe%@) z_%X~fVj{{Pey!Yxd*?9Db_+u`QYmJIZ!|^NgKKekjf1Gc!qQJ^*@$U5FK@?aSdPOV zH*MnIQ;;9M`TrHynBY*yvKJG<*kJu31vkd0)0?|AB2ivXCP}oCO(ZFPz5p}q6{p0V z0j+k6rP8!alcT5d6Tuqao)avp`#SGSNz8uwmIxl z*oG?sF@0;_;JEDIT=ik6s<9AppX4Fn$XRU95mfv#6I;b^2>H<( z{*6W1fy;qI8<*&v$s56+z9ChoOq6wg0PB}toqB)rhH>jVJ?*5fjwII{D|C~ROMC>m zVM9^>5iwEuzk%V5n4+!tfQAzbjQI26QjU@sD&-ff&*Q33WdY`RdMrJIS>Dcn53cDQ zrK1{~O}(X78|w|VmcN9D8!bG-@@gZ&s_STEm|i@t+yE zF`=V9f?K?2X5ZELp0ijI#Vr+W@}>^h_#!HrGe1MAY-(uWhPtIRJ4RJ& z(#82%iadtn1bI$C`>UIJM|+L|Is-f}bRWRo^BkZtS)e9tXfKU=Tia}6ibX-sXUo6O ze5GK|{q8ya9FKuuVORQ!SYc3n9bFw4`!3Hwycb^{7imYURF8$4a0R#S>1IO-bdg)i2@|-Dn7UG6m&px;O^?D!s&E%4LRAE{_0}%Ui2E jb4Y#YzW*Q@ldbR>bf|n diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Chunk.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Chunk.php deleted file mode 100644 index 0c04097483ae0768df4545f676809fc111c04c8b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2126 zcmb_dL2naB6lQHq!gC>EIpA8A7$7P}z%B+P)J;NCq)Q_z zJV^sGcthlvl2~xbeIAlQIvi3#e106WkP3^C_CDF$e@Qy+-Iq5oHQ}l7sY6Dbk3wqu zAx{H4V2RHsRJ@_lh(*+%G;M#JM&DZs7a;PEX%c%rCEZ@@Ih9`ENzd&n2zMugaNF-g zxJS)R06+ASgzRKc@D>RE#pxhqK1rk}@!tkZ`Yd9Sc_I4|)ohWW7bX-lmt%)%t=tckY&&M|Ge*OpMaSNRap5>~RdbNj zQV(d}#WQEk%5jL)efiSWjSlX za@M3-|2#+YVrGk6qIO{Yi~N)FBevB}ln(v%=HDw&Q6@7#gY%hJYX&hI7fpZ?3u+~` zUV{~%qq0cW%4*{VtO**@iHBC|qx}V~t>OoxRsL(c{O!4)48uHtD*^Y@V@&EF=dQ0+ zFsSSoXNtSF$zX9QBJ3NeaS-F0DoNoEzwsbF~@E-Gde)BW!_%bKAHeF2J$6)AKzc$d@QS$(t7?x%y498X&jwt2kEi(*)?z{N zqNPb+$xkr3jHiBiHreJTR3rL>ERsu~lI;9Zdbj<12{sljuN{PLPb_?|ZAIBkvGw0k zUnch3d^NR0?&EXGBit*NQ#-TGA--l5ce6Fx34cuOfj~!(vt7Ny$lQZjV7{E{_Z@ds zIi}_>##ztBDH9?;O=te&e diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Common.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Common.php deleted file mode 100644 index 47891dd4cd599bfc0288882f53d70b5a3efd46e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3076 zcmb_e-E!MR6t10=G@CGSR49Sc$u=p($pniGcMbt$S#dOte~^_hVLYRe<+ZIMOJ=n) zNjrKJZWyk36nGCV{0v-hw36-GX|Ovb7xC(xv)^~l+1+pV>u>wrKH9}4;u2~y(!$Lf z%(?{ksmDCab8s_gw+Y3T*X!F3p*f6;Ra~j+SShOdQ<&;|0kudTcRa7-5YckHpe43! z-|_~8-VnEAyF?ruiGa}a+#Cl+$TfS!@0%9ErCOm(nAtL!*(h<0h8$ruiqja4%cEn2 zEXVYHEORXM3Ss!`2TjMeu+K~eKhJF6uw9$krenW^dQNcLbbJC+Z^yO+*J8Hk;%GwE zwMcd!$Cy#qB(-Hft(u$I&^y19CGvAU8PLxke9o>jtJHY@(GOB-smkTPd8% zrq1pOkI^Q%ww%DX2gDdT(}^>RH?Mj85;vu0;uGg`>@3_zO8~)t%biDiTq>Hb%F?-UQK{DySv^&iV&X_>vhiwqCKnM^oj5U zeO#}eU+8MJV(3>jWdy)SV(^gVgD!f%PE2Zbp@XvN6JZ-Yj&Y5PIz&nEZ@LSgphvR-Ng^rX4Zea_ z{h_X8(gy}YF_Uf+3LE011VvXBZH6MMl-Fi(XI+<|3tAC+Fd^U`rJ^fZO;b66jMicT zI4xC|_d5oWibVsOK3&F#XfxqR+~?=zOseqLI@$&G%gs3-g|%4LxX#p4KbGTzG@9l0 z#Ey4MSk1l-+B$RC`px58mfzAFMYS$hVIN*8m6BRf{zz|^xZdWt-sXxUy;Zno=Pr-_ z97Qw|NuFqO9Mb?%9;SC4ffD>2^hYdE)3v(7_i#nL zAQtn*SIH<89nS)F_gt`zhM^c;8Fdg}0@i43zzL@$6q_6;vc{uOc(EuX+;|R9$4rxt zx8NE|J+wckP3>LuTX#qmSodQpPO!U4+U8(pG9JfkWWUrJ!8g5Q!#H8!AAStc^W!R&{sHdL1dC zzVH!z0FV3#5?{e9dKOr2+INBNN~wL z9^zio?}NY|KZWPwGNIe`&BGqf1#x7-4QWDblYOZbECt(cg`1#y^!o0LGoE~U14~m;O!%TD6Bd&PZ z#wVS1Qfd?}PLoLxjD$`dVo%UWa?w$#mKA`U5Sm7co8z)69PQ&`)}v*eYjPV)k-+Kd z7z>bzU|YKH6ySLB<@|xSN<^I<3ZY+x0U1&*ENeQ|6hsg8@EIMCQ1Sgq$2;nti<25@ z#SQdn7Crjk3pVa$CrrH(=9!f+hvn5DIdpSB2?B^y_Uph#FKH}oCdJ6Og%)}t_YU1? zAV>^_9L^Qzt25s#dBa1CM?`u9mq+Q+a#6^upNo%o%zqR#|5D7{P2t*OG+ku1g|7Y< zHSVI@yOnP3h1>4fdzEf`&wbU}@7T5GPSdV0Uoe)?75jCi)^&B(a?V&lbG3G>TWPlT zm-DM%bLiT1Wv7i8H_$>5@*W9YB^d#FmfVXA#tNG63wW0R^G1akHQ*#7oSdfqaT#x%uxR~-~ETg$V@Fa4nU$~?rE9goV$*Rq&V9vOMR!FFqS<)elDUS=6 z@r>ep5iJP94k-(ip!&S}F^|@inEyp~b!j@TmP{x2b~jsvlWXEfrGTIF3KCIe7iZQb z>TR8ie9kY`oBOr)fxY*}ZZ(=M`%C^_L)(X`?Zd2}*oUoc$UG>2JIQdy4l}iwEXPqE s^E1Di!C02Yv8*#dmUU3>&1xHavN4g$gG{`qwEkC}>z$LJWLU(A-uDF6Tf diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/CompletionService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/CompletionService.php deleted file mode 100644 index 38230127366f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/CompletionService.php +++ /dev/null @@ -1,59 +0,0 @@ -internalAddGeneratedFile( - ' -é -8google/cloud/discoveryengine/v1/completion_service.protogoogle.cloud.discoveryengine.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto3google/cloud/discoveryengine/v1/import_config.proto2google/cloud/discoveryengine/v1/purge_config.proto#google/longrunning/operations.proto"¿ -CompleteQueryRequestD - -data_store ( B0àAúA* -(discoveryengine.googleapis.com/DataStore -query ( BàA - query_model (  -user_pseudo_id (  -include_tail_suggestions ("à -CompleteQueryResponsea -query_suggestions ( 2F.google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion -tail_match_triggered (F -QuerySuggestion - -suggestion (  -completable_field_paths ( 2ï -CompletionService  - CompleteQuery5.google.cloud.discoveryengine.v1.CompleteQueryRequest6.google.cloud.discoveryengine.v1.CompleteQueryResponse"Ÿ‚Ó䓘B/v1/{data_store=projects/*/locations/*/dataStores/*}:completeQueryZRP/v1/{data_store=projects/*/locations/*/collections/*/dataStores/*}:completeQueryå -ImportSuggestionDenyListEntriesG.google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest.google.longrunning.Operation"ÙÊA’ -Ggoogle.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesResponseGgoogle.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesMetadata‚Ó䓼"_/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:import:*ZV"Q/v1/{parent=projects/*/locations/*/dataStores/*}/suggestionDenyListEntries:import:*à -PurgeSuggestionDenyListEntriesF.google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesRequest.google.longrunning.Operation"ÖÊA -Fgoogle.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesResponseFgoogle.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesMetadata‚Óä“»"^/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:purge:*ZV"Q/v1/{parent=projects/*/locations/*/dataStores/**}/suggestionDenyListEntries:purge:*Í -ImportCompletionSuggestionsC.google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest.google.longrunning.Operation"ÉÊAŠ -Cgoogle.cloud.discoveryengine.v1.ImportCompletionSuggestionsResponseCgoogle.cloud.discoveryengine.v1.ImportCompletionSuggestionsMetadata‚Óä“´"[/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:import:*ZR"M/v1/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:import:*Ç -PurgeCompletionSuggestionsB.google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsRequest.google.longrunning.Operation"ÅÊAˆ -Bgoogle.cloud.discoveryengine.v1.PurgeCompletionSuggestionsResponseBgoogle.cloud.discoveryengine.v1.PurgeCompletionSuggestionsMetadata‚Ó䓲"Z/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:purge:*ZQ"L/v1/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:purge:*RÊAdiscoveryengine.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB‰ -#com.google.cloud.discoveryengine.v1BCompletionServiceProtoPZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb¢DISCOVERYENGINEªGoogle.Cloud.DiscoveryEngine.V1ÊGoogle\\Cloud\\DiscoveryEngine\\V1ê"Google::Cloud::DiscoveryEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Control.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Control.php deleted file mode 100644 index d25197698c34beb86d7d0f7efeb474a00ced0da1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2913 zcmbtW-EQMV6ejMr+f09U*W6?yp&hy_Hd|Vo77&t47bQ)%RASqbmP#N?mSa!S0cXa{ z*b!mLTkr&2@(4TvH(YSb#a{0ta06$?c9Q;)R`jN>d%o|S`ObI7=hM&PvluA$sD2RM1@lHmDULg!WaoUb(fMwz*@aqYc9%VG4enfwS6K&&;A4vk(%dwr51qtO0 zE5IQONbMQUI92SEn1ce_xG3vLi2{PS`z#@X`H|ZsG7vOQxHy7P$LW$}B&B*&dzPnF zbhLwOS&fc!smN`dh?Gob$5@ag6>Lk_tq6vrC-(}`>M?a+P!fd=a_09b7mhPN)tKZu zXp7{XyfNy!F1b6r*W>Kw=|{SrP%uT}_u{Lux*zM$X|8@f3`b(W0CUzx@+h&MqTlYL z^;@~pe3XS-+Qilc6I=a_>cgDRkEtzk!7@iz*QTdZs^rmmCROMa-_!KGTcG4r}!s#>T#&bx$W`+k&?N=XHnCPJMwioBkm1ZQxd zQfIdu_i<7Bb>33V(sW>DK#%xZ=$;@U z6(krHSk{c6+?cVI<0m=gfN?hH$)ZYhOU~mQKjM6V?x;IGYp?46toaZv!VJZcKk)Rw zR9mz)409E|1NS%&sQT!5l88QKT`%CQL%SXgrFNu_oq_%=Ngk!DH(oM`iMH7C=K9q0 zALpnO05#@b*9}!v9hFl_yug=4R_4L?%bV78CgO|W>?=uj0A@ai&rmU%vNEe@XLTwE z^f#O4>Q884!ZR=mv)X@JIzvfkm~W%G%td-Ma?zRysjs9b;d`TIR;l>`ME_l1MYW5! zRdzSPMI|lxc-u_?9xEJ7+2W+dCQ|9i%<`X4l{N16soqD+=e?&aF>-S%=-4erbpz?oXv`O|n)|HDArnX0aOX>iyC>-T1wTaP#ePygp_zF6@tQjFpVWaWs$PTp)6s i(~b5Vh@S8dpN`gvwQM(=Smmx=<8)-UYz@&6p??7*L)h>D diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ControlService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ControlService.php deleted file mode 100644 index 466b78fa7df1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ControlService.php +++ /dev/null @@ -1,64 +0,0 @@ -internalAddGeneratedFile( - ' -‰ -5google/cloud/discoveryengine/v1/control_service.protogoogle.cloud.discoveryengine.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto-google/cloud/discoveryengine/v1/control.protogoogle/protobuf/empty.proto google/protobuf/field_mask.proto"¯ -CreateControlRequest> -parent ( B.àAúA(&discoveryengine.googleapis.com/Control> -control ( 2(.google.cloud.discoveryengine.v1.ControlBàA - -control_id ( BàA"Œ -UpdateControlRequest> -control ( 2(.google.cloud.discoveryengine.v1.ControlBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"T -DeleteControlRequest< -name ( B.àAúA( -&discoveryengine.googleapis.com/Control"Q -GetControlRequest< -name ( B.àAúA( -&discoveryengine.googleapis.com/Control"› -ListControlsRequest> -parent ( B.àAúA(&discoveryengine.googleapis.com/Control - page_size (BàA - -page_token ( BàA -filter ( BàA"k -ListControlsResponse: -controls ( 2(.google.cloud.discoveryengine.v1.Control -next_page_token ( 2å -ControlServiceÿ - CreateControl5.google.cloud.discoveryengine.v1.CreateControlRequest(.google.cloud.discoveryengine.v1.Control"ŒÚAparent,control,control_id‚Óä“é"9/v1/{parent=projects/*/locations/*/dataStores/*}/controls:controlZR"G/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/controls:controlZO"D/v1/{parent=projects/*/locations/*/collections/*/engines/*}/controls:control½ - DeleteControl5.google.cloud.discoveryengine.v1.DeleteControlRequest.google.protobuf.Empty"ÜÚAname‚Óä“Î*9/v1/{name=projects/*/locations/*/dataStores/*/controls/*}ZI*G/v1/{name=projects/*/locations/*/collections/*/dataStores/*/controls/*}ZF*D/v1/{name=projects/*/locations/*/collections/*/engines/*/controls/*}‘ - UpdateControl5.google.cloud.discoveryengine.v1.UpdateControlRequest(.google.cloud.discoveryengine.v1.Control"žÚAcontrol,update_mask‚Óä“2A/v1/{control.name=projects/*/locations/*/dataStores/*/controls/*}:controlZZ2O/v1/{control.name=projects/*/locations/*/collections/*/dataStores/*/controls/*}:controlZW2L/v1/{control.name=projects/*/locations/*/collections/*/engines/*/controls/*}:controlÉ - -GetControl2.google.cloud.discoveryengine.v1.GetControlRequest(.google.cloud.discoveryengine.v1.Control"ÜÚAname‚Óä“Î9/v1/{name=projects/*/locations/*/dataStores/*/controls/*}ZIG/v1/{name=projects/*/locations/*/collections/*/dataStores/*/controls/*}ZFD/v1/{name=projects/*/locations/*/collections/*/engines/*/controls/*}Ü - ListControls4.google.cloud.discoveryengine.v1.ListControlsRequest5.google.cloud.discoveryengine.v1.ListControlsResponse"ÞÚAparent‚Óä“Î9/v1/{parent=projects/*/locations/*/dataStores/*}/controlsZIG/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/controlsZFD/v1/{parent=projects/*/locations/*/collections/*/engines/*}/controlsRÊAdiscoveryengine.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB† -#com.google.cloud.discoveryengine.v1BControlServiceProtoPZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb¢DISCOVERYENGINEªGoogle.Cloud.DiscoveryEngine.V1ÊGoogle\\Cloud\\DiscoveryEngine\\V1ê"Google::Cloud::DiscoveryEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Conversation.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Conversation.php deleted file mode 100644 index 6057cbe0bd6a3045dd201cfe79db8a823bab68d0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2509 zcmbtW&2HO95RRlMj#f<^vuLaMlC2UnN`FX5HV}ZW(@GYt2&g4hR1LHsAW-B=-hv_t zaw*gebn7GZ33}|K^wu}%sfQeU=()38l9vA}yVYs5-1%nao1dM}zwl3d^b~i9O9GP- z8&6I#J0aK)Jmy)RgD25+N&;+obDugSkTGueaj!qZTDv>?5L81i3M``Hndi+MqF9a> z*@{g=%Uh7(l(;kM5@k_WEYF35&}7teC8kyYy$2ZTj|yBGV-0hXC$T)|w^r^X>Aj@=?B=7M^Gs-8u4 z26CP1kR&<1vDS5|GIU}F)`?Dn1%(>9Fi*7S2RgN)3!6t520FX z8B3hA=ji7LsB!x;m7WM4IWBGaLTSs3`u5`l)byzmB;<(_-`-tkFN_%)hk~L+E3v4= zZ31Pcu#^XJq55YLy|Y^W(iXbQo2in+xmu}J_@h~rTByitj8yV)_OP)duL(n51(bEJ zD!q>$M&R1m4@qQuV`^6l+<gYakZJ~1SMk>`;s3-z@4{hnA=13cV)6)mqLHDq$wIAJ)Hc`3T z8xMy4&QR0!M>**MDjoEX2486-_?}n)&cAK`l}DdkOunEL@*c`CA(d4ICBuLKz9$w7 zl{bmBR2mzviEG;tfQOpEbFiZXjB`%gD#| z-_jdKvZS1CDdLU+Ys%YvRlulfjH9X-fK>IkKDh_&#Jrv7*-Q1Qc>PzF1wO>7b;Y6( M-xSaJ5-kz>2Lk0;hX4Qo diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ConversationalSearchService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ConversationalSearchService.php deleted file mode 100644 index 2cd4e6bad36e1eabd9dd5c800c9a806d29cd6e90..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14097 zcmd5@+ix6K8PBfc#QvO%ed4B@O=z~$k~pq2#@kkHHy2pj8)qBGcD!*)+@;HS_t>6h zJ+sWrI(17Pid2Hc6I39iLb()*1QP!Ne*k@`P?1no3IeGT;wJIHQ^W(`xy zsQAV9?m55jJKz2L&dmAGS2io~SYnPE)Y2SUO04Z9oK2djSf*nZ&2nO`y1q`WMA6); z=w)iDiNx$;Vqx)mA~T!4{wQv>&8k(Tslf^AqdigfHuLSVABk5^2T)rEx1>Jk$liY}iu9BSct^Rv`0T6)DX zttDKVN^MZb6FU23?2IJK;PmyxnBXy$YGCq0!m+B@G%eu*hPo?wwvBr29Lcj*w3WEy2t#1Qc>ofT%?lI@G$Tq;5~eAC^?KijJX+S+)p8ak+DneX-8W zx3DJdS1vf_+i6K7m0wMSv957Tl&h0rtNoEv?s+O~PqXkEKO4S_TaF}hTrTIa8H3p* zWws%|bmP7Er4Z5OHZMGk6ET)sZ!e^Y1qrceJqlQj15jd`R8=>UivIN zQLiMy1ggPSF$qojk;p~pM=Wb67DbGqDwAVuA7Ts; z4Th@7WudIC(Xt)epXkG*&UXsjO!Vps;>~lojNw>2WDO43)vYbf+9}u-T8s^F=EG@- z$R!o3;!zxQAQ{dON6iV)9R5uX!M=69jM*?Y$Yf0B0oF{@b_7M>6rT+}RgmH|17PU! zDL7nzs3GXPMR$aGk%Q2`t(B{kTgqT6`fNn`cLYvI>DLL#u3%QA5Le@IhagrjrRX{MfC0RLG8V)MEk zfVX!~{Ub0~(KaxAVKvP~*-r=n|Hv_KQA0#mUnJPeBf&5Xm{tiR+}aKgn}f=$aI6WN z(k*A8_xR)M-Qz1^86I)15q!>p=dZvM)#-0>U&~HPGO(#WPAe79TdFz|!JS^7&pw#jRt- z56O@485q&*9izBunTA=l3tMK1##p8un2yFG7zUoqP`~-l{YOo@phPGA~CE!5(6pS|2dHuR~_QGgWm8}D?BjRv@$x|eS0G}u@OH>eU%e9xm=||v1p$%j44~Nm*YQ9&3gVLd~%F(u1-e3-Q zr5C-`U}b@|#33*5AzMHs6;Zeq%9w9uU9q?;q;MjFwH(Wjm-oc~5`_bT8NmUG1KHAE zK`pU?5dIRyBRgupFY)qJS670w)@LZ$a|urTXuvVAy5G6+Lkp3UpD12=F>`cjl590p?SKs2`pu!6IrL6L85aR=3bEak9B?N*k{}NS@Rc zANg5HJ&VNA8@`I8+0CkPOE4n><@y6ay)Z_2&gIFu(aCR`@ib}+r>4|&kGmt+W zQb@TcB-me8EnPH}tiN=02U8gzAdnwNV8lfif$|k>;r8-O`bOk|3ZT`2RhMz>EgYq@VBMmTzi|%95$HQ*yx|EoWA=hahdTr$_a)DHm$_Rr$|&b4o4W9U;otE6yD4V zs`xoLTrXs7GkAxgmr%Ak&d4lbY~(QPcM~WN#_v1|H{#FzQ zJ;DKlJNtei;8+KOE&Dys_+l17{b!ek$;5Db#wAU$pqk(zRaB z-khGwKb~PXU>+%6JiZ2_f(@KvZCVCur;F}UDi!h9XFu|%jggF}2p9An;s(IAJ?*HSQGi*cMgyzE%3E$5cWKcFMH_igea z3)xkOCm_f#`_TNw;50B)C*j>uvu)CO;uk`_z4>k-3*|e}kJ9|Hj|rZuzV^FM-i*E; zRp!_uBd@Xh!3#KQd6^a+dvbiTY>G_E{${Nnzja{$U@7HYz2X0NQt|_uij1$WDl4IA z_^3-6iLk+CSJ*Eo%UxoNCt|{wChztEX}qc-sc>nxy5EU+Hz8MkikdkhE`%oh^5rVJ z8&xjygNp^7DCtg6OR2zp>1sZ&%y$6TT2JlaZz|cY(LGJIg(km`0%^Pw>OfPCn_Qnd z>S`HnpFc;W^2aiie?&e?^GkECgFi;bg${allhuWBA@p_#twkPGD7xM1m2n~F&hb1U zH-M23&;=Ur06P$D<0ehuZFl_kaVzK)dh%v> z;9cmd&i~evH|~d2Yc&SxkiSOZaNPwbdB!#Ome)^pJ9<=Sz59^+b|13K?n8FbeeOkJ zgq0sN{@h5O3zc=l9#`7oxu?lindbk6kxM>ZAY+#le$V-1bwLWhJwj`bsEg{WSETT} z!Sl?%4vf6r2ScLm;5{CBGF0ro)vmyw>TZ)1^*d26;qOP4CGOGK_iwW+9gI-;pi(E9 zdQxsd%fTJIp3=m#lUPj^m6y7JZ7u$`M82%N*fSANC+#SZPjKSp^_OHSRMOsBS2-Ow z$jZGy*8XRN%{0Si;12BwkK9Jv+>(^mTY5dv0+`aqY+LYJU^X*WS6|B1rE zK+{d04wZFay({mITO{Rm%-V;97f(ppagX?0M0t*%uDyr*6Z9RlA#tjd`_RSevTRP; zqqG)%Gt5P0wgb+Bn4aXD0Fqy$*aLlh2VxJbcg5bS6#Y10)bB^eg=l*)>N~61@$hyp zcy_;zJQXpoxHK*V*^ZAOlqW_%4*6Ce91IL(I*?yry(_=Y&Gv29Z%K1&s54)WCez$P z=o zD%IHvK3BJHT3gd^M&U7h0zS;@r`x>-h0oJC=2B$!s_3-b$K~<4`VF(;r7h$Jhj4Yr zsH~l9_~a+i!?W4k%p%^M+{`S@WfwBPh@PC|FKwwa{LPD5_ob~2e;-V}G4-CiA}`94D2k14^ZCOs(zXQ<5i7d+(4;h&QBsFI2UBnToFzFFoCX HI{^O!3&TjA diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/CustomTuningModel.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/CustomTuningModel.php deleted file mode 100644 index 4a60172f88093a4b803fb1314e17ec35c0d130ad..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2160 zcmbtV&2HO95UwcyBx@&8nEt5lAzLRv6rdp^=g^d{8&DP{5U?adq6MTNKv2|5-j*VX zl;Q9eDUPJ@zQ zSR-fNj7Ch;&a*lPd7EjMEc^S;R;zN@6uQd2Nqn`(w2V)_qsyY{!{Mq%4VbjbDl3uW zBlI6a-@NyT$@eo;C7n*?(sU}b>fYx|Y%iuNTjrdN=ibs*O@|fwtnxguOkw};ZFF~S z2;~Oa5OZBF;6mkQ?fE~t^sjz^o?iBy`31L$0z0Oz<9v*E!6pv8xtroi0#E(~-AY%; zg(XX1RLeyW7v(P6$;4u!NO=Q#vMegZsy}K&<48aIF zn~PEr#vz%lCr3FL6e>r_Wvv( zbfGF=pwC*Jx^d$6Y~428({|4?j?IQ?)Jq@9_s|`?tD9}J-E=MevIq$6ymO-*I&AgPS@=j-9A8+Hr@bi=;jFkZpt#c-R`(%%j$OeM$2g1 zr7ao4GTYXv?e_H(v##4_r|m8cwzc1-*ZQy0d(7Y&bomG3^F)2Md@a-<^5L*XA;|LQ zLKTO*2X~KvRJ@`0@Ud7P{|h%7{_n37!b1MJ@UE_aoB{|bi{Sj@!(*uZBB2Mci`UIv z?bEfju>=)Zh3{M0tmbP6dp(ZUI1zRpXz|iLhzEyjlHa5|b+dO2P42!l+D)@<{2|?M zrtGMs?5Napb~IADRr=Mxat&umpyv#l={P{4uciGAM$=LpO}hl7Y5nS83p&E1XOC6~ Z`KyeSE^wH*Hq^g@zf#SNWfo|G(EmC;(wG1M diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DataStore.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DataStore.php deleted file mode 100644 index 878fa114d0ee1e299092250ede8de34da3748773..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3260 zcmb_eU31$+6vcMZPPeUNiw-z$p-bAK?o2B;1!h1^X#JrW(bRTrC#8%TjV!I51zD@n zM>?UCVfY=q@yG-Jf(QC57#_=?;O5^JQ?G93pZOmtk$*OM-b|>&@+jGM~sbZQZ{WC zT4js+COahF5phP;A?3r(vSkE@?gz{xvLHvuF~-Dq4U^zTyZVF#28Z+;f~Q~OJpKAf zp8o#k1B6W5@O@kdaF^4emk7h38xCx0Vm~kf__;}aojNq2hE0Ej&)UXA!}bY8pT-VD z#|$WQFb`-sCMn&<5husqbQz>!8z%>A^UOe2`kE6E&oS(No%p6lT{ue{po%gg!6cu2 zrF1*qmebK8E=6Zllv9V?#(@`-+1)YrNDz9?195Ina6EbHzaecEm-crkv8^gOFb*m6 z6lMBVQ<6oY9TJ!G%u$Q#)UUDem^o+Pej!nvncD-64kf%n<_oAQ#B%32(`9|uOesVM6+JLDFk2S+aP3#&K-e0P`fb>pxeL`ff_ zyhVmaXa{4L(+iSHZ-FSjX=j>y38rOFM_v{;6>7urw6J=BD@UNG+maXTbmyDrG@EhT@J1VM=dTEXyK}0{bDKWA{UY#p*3&<5E7&!s$1cj z;OyU8N*ei3@%J>!pGt&u4P611h9=lQv2;sZpKzB6oo7HT?}g4A-*d5Npat?T$iSyi z*J&u%c}9AOuFeOBE`ZLe0I7mLIKB5Q#i~faTSO#np~8vd%|>%szg2=8KcUMflnmJ@ z)>_S;+U)7@yQ4Mqy=J$q*0dc>t>@m6vIsR>{1u1fQqmQaOYj}_>7LdBR9ccyw!K%~ z)oS`Pwc6EsYA(Z(jaI9%tLo2MoyXmFrKaXqls{9iD}SU=Y2J1t0|CeNWw6llMCZ~& zXr%9n8TjRw@zZhHW~OKxSW6y{#h4_<8d!}A$7h^l>6^0>z|dyHM$nGHF#TsC^Tyw4 zv^L)}HMGK=OlU28|Ffk+o{N`-p%sy28U6wBbQAoRjo|?tO?a_X0u6>PtQgjqI=WB1 zLuwM;FijRZfp8(=BC(9 uI=vCmD2m`wlsO_r+20(T0~H7ClUtJk=uR~8&J4&4hhu?^M%ZI?jL^SO!#|7w diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DataStoreService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DataStoreService.php deleted file mode 100644 index 02f97b4acdad..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DataStoreService.php +++ /dev/null @@ -1,82 +0,0 @@ -internalAddGeneratedFile( - ' -¨ -8google/cloud/discoveryengine/v1/data_store_service.protogoogle.cloud.discoveryengine.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto0google/cloud/discoveryengine/v1/data_store.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"‡ -CreateDataStoreRequestA -parent ( B1àAúA+ -)discoveryengine.googleapis.com/CollectionC - -data_store ( 2*.google.cloud.discoveryengine.v1.DataStoreBàA - data_store_id ( BàA# -create_advanced_site_search ($ -skip_default_schema_creation ("U -GetDataStoreRequest> -name ( B0àAúA* -(discoveryengine.googleapis.com/DataStore"{ -CreateDataStoreMetadata/ - create_time ( 2.google.protobuf.Timestamp/ - update_time ( 2.google.protobuf.Timestamp"‘ -ListDataStoresRequestA -parent ( B1àAúA+ -)discoveryengine.googleapis.com/Collection - page_size ( - -page_token (  -filter ( "r -ListDataStoresResponse? - data_stores ( 2*.google.cloud.discoveryengine.v1.DataStore -next_page_token ( "X -DeleteDataStoreRequest> -name ( B0àAúA* -(discoveryengine.googleapis.com/DataStore"Ž -UpdateDataStoreRequestC - -data_store ( 2*.google.cloud.discoveryengine.v1.DataStoreBàA/ - update_mask ( 2.google.protobuf.FieldMask"{ -DeleteDataStoreMetadata/ - create_time ( 2.google.protobuf.Timestamp/ - update_time ( 2.google.protobuf.Timestamp2Ý -DataStoreService„ -CreateDataStore7.google.cloud.discoveryengine.v1.CreateDataStoreRequest.google.longrunning.Operation"˜ÊAd -)google.cloud.discoveryengine.v1.DataStore7google.cloud.discoveryengine.v1.CreateDataStoreMetadataÚAparent,data_store,data_store_id‚Ó䓈"./v1/{parent=projects/*/locations/*}/dataStores: -data_storeZJ"*`bat1d6#uj?s*9Gx`M#O?W|s5i*U2xKdz=Y2d7Exhi+&#g^C+E1=9h`p((3EF_P!~@)pG4Fl5zj&= zWGUfuDlTa}VKH^)Z71X;o6%U>ni`=vn9(!|2*v$j=QWi<7|6iuYZmWFv3T7NS-gw( zK0+i4(iC@dHuM%@_$ApWVg#o$kns1Mr9O+9WI@D!f|?HSIEYdT;OoBQEGCli7%RX@ zOlWHt8&2i>JmH|h0WR_yDp^1hZxBl=;vn+6G$n#1l8Yg@y6%L^QcPuO?dD+>9UJ48 z$_W4&V@6cfwmJN9YBit$_RD$lH zKM}J3+w59TjK8gC-M%vG_PpJEoD&8Kb40GHnfvA^`73=3V3M3vOP9aRnVs^jEcD48 z9_4V65I`ys%!{Y*Hqpn$rLb&NH?+RGRE>4K)~fG4%F8qW2yL6Lee;p^5Y^tKJT~6< zz`F*<2WVa0(Z-s3?o|Ieyk~8r3JV*RrQrdprDRHHfe-eovRfUrNjPX9%LW2NeXm`_ zy-hB=$lE?LK&y$YBoIL17hes$VzI`c>-%LM#sHkG@j1 zv855sBD+FzyBtXa8lw9KWaMsaYuFbB?B9zTsE}r0HDmKzv{@7i!i(Sse{?Bns&%~& z!f&B!CYX^^_n|g}e0_PD6wRoW8aJn?z7haBzgnVdU48E#O0;&-78QaEKZQFO=_INE zv5N9w&R|URW&5@A{_vLy@^-EcyctQD_0)zn;S}Ap#vth%N@VK1%})y_;sid?JO*2F zTsUe-&)^G6!K%*CSa?`CBN4#kT#b-g#0kH)LqTA*MnBw%$!PzY<+sXqcW`!e za?v~eu6NuY9QS^&Jn8GjY9Fb^YIh5go?g%PMf;D!!^?N?a`_q`54P|7%2Pw*x|+vz ouMoNJMSHXX?U4M%PWhev%q+H*J*ch{BRA|o?P)gE0xb~w8`yi|YXATM diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DocumentProcessingConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/DocumentProcessingConfig.php deleted file mode 100644 index e92ecd25efc2473ae200f0ba202b7a59d5c26a9f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2701 zcmb_e-E!MR6t10wY1e@;g0zl->Go%+I|K4KT)-#nWfa&3bigFIBWc zyE2#(E_=}{o}rh05H5I>z69(_vK=Y$6hd;7^=kL~&N+L2zAwKHMgh8m+u%b;B)GUg z!EyvR2)X2xd$=DB1`uM(j|1jGXky&#;DgR1+-mMWx}~lP9)%PvJmh@nL5+Gma%(OV zl#d~tfInnD)W-Fi%V~5BzH}5c1tFL}bSU=+Y-q-02>Ij~L_jFucDL~mByou(c00zk zcQvlv%;MU;`W8aeBSPS2ir<~V@5bop8N%u>i25F*SV$t(zq?F0%x97jkNv8=-o^vs z2~c2X&kiD=O2&PxFLZng)%!TX)MxJoTt#UcPwiCnlB=NE`@V$GC!XB|K|>Zu9(L7H z%Nl~5g57`csQ7{O_Fj6;x7=x@b#Yk-s4%04HGI{~vFF!0<4 zjL4Yr(6Z)U%|RAjJ%seN&%G6g;?u8K>iCZ9&is6!a;G}8Oxt-6{kev|`M*hH+)NP6 zIPJ__+L_~eWh12^0jq_n`ANdvezl6qi?YU8Maw!L%LQDhUNZ<L9>@QX}xpt6qMJI9K~4YV#N0XQzWjOy8&j>F3H0{S3haJG(& z5?Xo+le9DS(8`#25yV`j&CBW%R`H91^`iKC=Xnu*o^Pv3%Tpaym`WGa7Iiq|i5l!b z0+pinEM1+{Jg$6I(^TzEmnStn=#NzOfZEk-N0$<){RK1K`03vwD+%K%3lhTlkN-~D z_@jvKC~x1CmyM4Wg(Fr5-NN?|lUX&L8!CW9env2<;A+j3l{-Oy>&(u};#zb6Xt&dA z9e&q3Xzw4iUKMY)W6fm7nn@LYs>NEd7BhSGzosYbR94M(RdU8w!s>PLb^>ErF^*;B lfGn$5@4uxULh{e<&1U;2iAFgkX%@7%Q6t115ZN~ZQ(6p(m!qzS1r|nvCMJu@tV8>2s(flY*0*x$|&3bGvUGFZt z>x5Er;lhyvocI%PtWZJa&WTecIKTnK300i9a_fotUE6UTubZ@&I=l0}dGo#Ry?L{9 z{Z+eSgLBe6GLfTts3>jTk-Q3$Y{&8}%`&9TTB(E_Nwcc9ZXidNq|B1ExU?!|Gr85X z*wnRZj)sy_*|N$8ife{dE5?hut65vfxr5BIZld_sbi8P3wJI__#YN7Rt|6ID0f4Di zk!!0OlIEAw3&>N8s;3s_DOzEcpcOLBXodCZYXE45>bg>fqvjbXxCf!&+>#m}kx~Hp#{ytvfj8sw$7h#Onv89@+dAemv#9+zP(8Q#~Fv-~SwuLE~k%W88 zgeA;SA!mBXF;%0GL9XWLwr4rZcxWaOLSL4Sa#w$+SYryDF5tH61<4fmK__WsJz5)u<@9jFT57qH$%Di<}QQ)nMsx zCG%HuP;dG8%bmvSRFjHEMahj4os4Xvyk?to+{UQuD{lGv;=rf*AX=+&p^GD;ApTO6 zeE%imriyjKM+oBl5uOkO8xYF_IFCG$u`B4^8rBM&0lj2b7z;_EiT-r_?^O74Y7!L2 zcgKu5hoj=kcz=ounAiv4_)XpQVck0JVOw=@TsiV3id+~6FLppqJF2Nw;4#o|tC&X@ zZzE%2>|7s&0MJLCbsL#uJ;dRd2}XBK@7lQjB6uD27x{kWVi$TQB8f?^kG86m#j4;* zFl?gtJf&ei;zNJzK?sb_ItXvyV(dXJ_%(1;I84{ujlbz0%q|=Q5rLrSMMe;P6Z-~x zy=LRhzQyatS&0O?pLG-rs)k{0D^=Zfap9!SABAxcsnHn~qEYHhBoP%65F(ZRY8P7v zqZwqNRu}iH(9e5;lvX{h(x848pVtIN z^as&LA#g-sA}~NE#L;A{WMWy^|0)|+b>k4k(@@vNG$iXHi36CXfu9?P(*1t8Vqf=x zvwMVsmlF#>kz1Gp-Z}HSlHU&r4BxLjLYL78JzzwX81WEpgF#M=vZWd|Rv06Rx1WIn zLVfFG9{2|6Bh53Sc|4T3aR3wM2_C!(p2KGg4@CfmJlT zD;%*k(8rcF3XbJhQ>$5JZ85)`oz2bVvYC-XFanO`7Bks5@gE_00ziDWQ*w*SYHDRZ zyQ<`KtJ#q-903FTIUPIFllbxk7#3RKhcEa=7(^Nh8ob;wBn_i^)r$t-5o6zl{z}nK z;ltnm`6T>R2xiGa^DgNfW^grs2Wg%gpNbon#+qjQo5UxNPiKg{*reM!{plxCd}?Q7 z4dy!n;j^)U@kuWp5EgzP27^tF0erb5K~3WYMOV5tV+kF*kNM&qP%~q!E9#Q79sfx0 z`i$)j6o|71SoljA3^jK)u=CoR4FqRh$m$PF(`mMni$WLv58TC2?jD3n|rPRd^Q_A1)q;FpT~V78#*vbZ{S3NEj^{L>;nA_%NF#xyC27=oYBES8Xlpfq$>fO{q)w`)@Qtv+N z0mJMIN=BS|;8n4-wk_x`3&F`5Vc2k9mHqD_vHRhNDF<9-C&KoJsTOeFN_A@}x*t&r zZc>r$owor>0Xy3#LsPgEYy^M|B-qAU<4*uT?EypddsIC(ol9%8LBP=5!=bUoSDW^s z*^SL3!@u?fwQCB@524uW0ay$W82bH$#O1BntpJE!$3@`7|H9x@+s+@RL=v>kp0>6k zSn2&h@IK<#U46t)A-EQRm9{)@wmS)LAgBcZ4oG*~X`(9+Q_t`H3FxU7XJ?X77bxn5UO4@+`Szkuw4$ORsF? z_34LVM1kMK)GuP#m;%0u`8OP6Fv%pvNhWszC6nvZn}_L6c6r?YntPGmZZuqmkh7ew RJ>epRj${`WJ75QZ{{iqNWo`ff diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Engine.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Engine.php deleted file mode 100644 index 227b9d7477417f014f77341e25457a058d835614..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2669 zcmb7GUr!rH5U)*w!Ws-*Np!K)W}8sOQOQ}Rd8m%k7TbiNBtQeQ)X36leYZB-oNrHe zdsHU!Q$Ipq`_#vNlB%Dg&-oBlXaAf{4akHSmSyKRznS^X+W%ic#lRjA%X_D zJH+CY;yB@g`#i+mtka&Q}&gwONauhH^5gE`lCO*Y`M~&B1kbnr%*;5#uro`y9{*TdV*S8Sz zLz1R=SD~W!2*XdDbwlRkR1g8b)>-PYhzUkQb`J4u;~oi93Z|Fe_Oi$qj7L}+97aB^ zKEWDOzFm(w#J`PmR!1@=kdDrNBxn+mu+yTcpRic)iE%68SPxe< zN7ubXavO^zqZhqnoKTS^(U#&Z0Y>9f=Zc)|#H{n2(J*MxQ*y?5;<}TlCLq_DzM-a$ zH@3R2NS!7h40v>N_v5^tFwle`gZOG&Rgb6NF_ZnBAQ&h6IY_fQPLE91WAs-UZG4O- ztq1zGqZI5+DcCuySMD1)60=%j@}>1$ndu4o2a;l58&5UW3!tc)$RpPe9{yTF^IGFp z8(ID-5uR=z&*xE(_3aWaR7;!RI5Q|a8pLS=f<88t{fkemw`eV;B=JwDke3v)dsF0N zg)xQgp|y*g2d2I4#gD_Du+9fWWA2}wxfca%72T2p#4Z5fg1o$K-A9X1vN$9|PyMTy z|Ep*{LnS|>+LXcsP~!|EJAf}2@ApFfi>Lhx z?u9IR2N8kTD>3@?D#I0Yr<internalAddGeneratedFile( - ' -° -4google/cloud/discoveryengine/v1/engine_service.protogoogle.cloud.discoveryengine.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto,google/cloud/discoveryengine/v1/engine.proto#google/longrunning/operations.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"® -CreateEngineRequestA -parent ( B1àAúA+ -)discoveryengine.googleapis.com/Collection< -engine ( 2\'.google.cloud.discoveryengine.v1.EngineBàA - engine_id ( BàA"x -CreateEngineMetadata/ - create_time ( 2.google.protobuf.Timestamp/ - update_time ( 2.google.protobuf.Timestamp"R -DeleteEngineRequest; -name ( B-àAúA\' -%discoveryengine.googleapis.com/Engine"x -DeleteEngineMetadata/ - create_time ( 2.google.protobuf.Timestamp/ - update_time ( 2.google.protobuf.Timestamp"O -GetEngineRequest; -name ( B-àAúA\' -%discoveryengine.googleapis.com/Engine" -ListEnginesRequestA -parent ( B1àAúA+ -)discoveryengine.googleapis.com/Collection - page_size (BàA - -page_token ( BàA -filter ( BàA"h -ListEnginesResponse8 -engines ( 2\'.google.cloud.discoveryengine.v1.Engine -next_page_token ( "„ -UpdateEngineRequest< -engine ( 2\'.google.cloud.discoveryengine.v1.EngineBàA/ - update_mask ( 2.google.protobuf.FieldMask2ã - EngineServiceª - CreateEngine4.google.cloud.discoveryengine.v1.CreateEngineRequest.google.longrunning.Operation"ÄÊA^ -&google.cloud.discoveryengine.v1.Engine4google.cloud.discoveryengine.v1.CreateEngineMetadataÚAparent,engine,engine_id‚Óä“C"9/v1/{parent=projects/*/locations/*/collections/*}/engines:engineþ - DeleteEngine4.google.cloud.discoveryengine.v1.DeleteEngineRequest.google.longrunning.Operation"˜ÊAM -google.protobuf.Empty4google.cloud.discoveryengine.v1.DeleteEngineMetadataÚAname‚Óä“;*9/v1/{name=projects/*/locations/*/collections/*/engines/*}Ô - UpdateEngine4.google.cloud.discoveryengine.v1.UpdateEngineRequest\'.google.cloud.discoveryengine.v1.Engine"eÚAengine,update_mask‚Óä“J2@/v1/{engine.name=projects/*/locations/*/collections/*/engines/*}:engine± - GetEngine1.google.cloud.discoveryengine.v1.GetEngineRequest\'.google.cloud.discoveryengine.v1.Engine"HÚAname‚Óä“;9/v1/{name=projects/*/locations/*/collections/*/engines/*}Ä - ListEngines3.google.cloud.discoveryengine.v1.ListEnginesRequest4.google.cloud.discoveryengine.v1.ListEnginesResponse"JÚAparent‚Óä“;9/v1/{parent=projects/*/locations/*/collections/*}/enginesRÊAdiscoveryengine.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB… -#com.google.cloud.discoveryengine.v1BEngineServiceProtoPZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb¢DISCOVERYENGINEªGoogle.Cloud.DiscoveryEngine.V1ÊGoogle\\Cloud\\DiscoveryEngine\\V1ê"Google::Cloud::DiscoveryEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/GroundedGenerationService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/GroundedGenerationService.php deleted file mode 100644 index 47878d123b91f9edac117fb6f7cc596c5c29f55d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7834 zcmd5>%WoV>8BdQrethHD8Tm_ zy4~H|4<{xHpcSA6fdoQGz)B!-0r3xT;D9)?Hy#q#Js^8ko(^?kqZQJ;O&-E-k3WtH00(*xR2>PJejM-|s|0>^MHr5-k$)Kd)Sz%?!Esfx0^ zscdZCRVvHXyD#EV-w8c~7L=Cbv@Du8EGKN_8>VkKhtxZwcFVMB{%|4R@|@6a(1z9$ zyiCW|eCi#V230vX09!wxzN;HlS=}n#p@H7e1HHD&3D?SuaBaDpaBX+t7Jy;tzOSrC z3?f~S{*E9I4?)2{ZdkWWL-7MWz<*vgea*DZz|<}CYpC~<($p=VBDMa#&CoUiq^Gb0 zo3=scuPcHk+xxQXpq-YKSkNtIIy76YY6sM_b*r{aeZw=|!11Y!&clhcXW^`l4MkBeP z6?FUg#H7r?*Wf2Np?GS4Cszdtm4}Sl6Ef=If_y3Bp}Qu=6*Ikv6gfJXXA4bcU#%V) zINETzf?TuK?4 z&n&*F4pC7ZNLbxMI`S15W&e_C7!BxyKyX<*QyPO&h7Gwtor5d!O~s@l$+qb`A@u`N zgbB+rxVMYrrTmA*)JMhZP`lP^b0IBS)mIVl^6Sw#vJ1pN@&kH+kl|wlax|Drqsp1Z z!qe+W)?vaBc8o1{8fq<=X?0+$OO3e^F5<>;5hMIR-iB&qVg{*5l~9;&aj-=v(R{{d zl=HcBYCbVl&ZYsG5Ho~k>2+%Pb7S14Hc!jr9+F(=6f1V%9m#)4!E}#)S(rF*8r0Iv z2DjiOxd3M^-EM_?i)scgp?@=XpMwlKh09WB=uvKk)Y_T%B#9762ac<`+(}YvQpdOb zxp6$4UQ4lWS75g3F;BIPBh96lErO%D30zODjj;6>AnRfP<1$T_C;9Sdbo@YnpgCdS zhJhA1`_%U5fRj(-dTAP_vZo`JM!mNUUKRm;-qfW)|DZ ztK^3gjAP;Aqu5-~>BVn+OoFPrLJV>dCWAe6f<4D-aK{rqmb(e#@s>+)Znv_%Q{CLq z?rrRBRm#( z!op1x2{^j4TJ5x^=wYN*ITyio?F{4VQ{6N6V!kZQGKn4B!!rVFk{zUs>OtzK-mSD>G?!5FtSgNxNA+4vyevA2qR!Eq&_3bKb2sr(?p~S z)4XB8q=Q)#;YFM+Eqqi|;gun|oc98DOW+a$cb4H8232SUNG-Gj9$9IuG{%~yg@t>B z{O2I!>rD& zCf0xG%OW5?_w-g3RMm1!QvTO8OeX(heraOY`hdGyn%stQbUjx1a(6jh_4mon_{M%2 zD+q=+Q3de;Nc*Y|qGmWMv`zzvy$VMqID&uNam#<6g4yIYkHh8`V@lqWx}sL7jsC|vtmi9A;siT_sr>5^ znC-ueZ%Z-a@GzNP448bF9Ut&qG{S1S>c)C?qoS2JH}0~UE=6V_ z6K%Uw+}g>G%D=;0G)NfobM)?{9@i2Bu^v9N`1R*{dA%|vb$M(l`4=g8ap*3B)j?04 z{vGM#6+EfeF9AfxWlaS0x>FYHXCcFSG1fjIMfnZL_F)7TG#Q?d`)-oQqmVpCM}0K3I_%!0k=g)WT6;RlKkL1Y@?^K85PQWmDQ zuEi38tk%wF{6KCUNO_MM`)z4hjdB%;VT$o&yG`N1BJtk3bOFw3{X25M9Dxhn`5~H9T?-@?PCIGx3Y9%8^l!;ixK&c5~R!Q7i-ONR*yx9>#z!hjdl3= z=RAyKH1e-3D$?-)s58h|t;a@4*~FLQ_+mn)$){kh!)sZbU{mo35LCoZ7Aip zhTh5m*0C4mHs1Z~KYpBA%az%K)5Cb|yM)h6Z&Pfa^EdMGH~jsmfTP^O`V^!a^U`Y) z`KJVz2JroVPuK<-Lf0JOkJ37hDp*PZfAi@gy(yJOb!puqR$M zUv(`#Xgc0O=|?Ge2_FcCX<51=@&=7xlQ4Tn@x&hqx1=xK5syD2-S9_;mecooin5?T z_bB1kZ}oloRcdCrx>Mf7I`WH^ja4iWf1A201{ErQ8dI0!_tOf0m{oTdK8SbJq9@k& z8>`q;!$;PCr*eW!p}^@B3O$4hh24ev7=Ooo{aW%`_KJ9}?0DTA__E1&iWkU7@Ce|4 DW(aYC diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Grounding.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Grounding.php deleted file mode 100644 index 25019b5ab18a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Grounding.php +++ /dev/null @@ -1,45 +0,0 @@ -internalAddGeneratedFile( - ' -ö -/google/cloud/discoveryengine/v1/grounding.protogoogle.cloud.discoveryengine.v1google/api/resource.proto"© - GroundingFact - fact_text ( R - -attributes ( 2>.google.cloud.discoveryengine.v1.GroundingFact.AttributesEntry1 -AttributesEntry -key (  -value ( :8"Î - FactChunk - -chunk_text (  -source (  -index (W -source_metadata ( 2>.google.cloud.discoveryengine.v1.FactChunk.SourceMetadataEntry5 -SourceMetadataEntry -key (  -value ( :8B -#com.google.cloud.discoveryengine.v1BGroundingProtoPZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb¢DISCOVERYENGINEªGoogle.Cloud.DiscoveryEngine.V1ÊGoogle\\Cloud\\DiscoveryEngine\\V1ê"Google::Cloud::DiscoveryEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ImportConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ImportConfig.php deleted file mode 100644 index 067330e98b8a050ecd366918fc323414e8cfb92c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7903 zcmds6&2t-B5sxItmRqr{Oq@h(J~E7ViL=W}u@ucfa@DhxU;T+u}YkiKBX?Cw5On?}&)DV|kWl8DiJ(_lYBF*3i}s;$%g!QWtCW zwkTJs?Qh^#*YX{W6vTmL4Gfag49oB3db+Dw$HX}y=0G<|?szw+4{giw6wNaG`XI~X z1DNWNxVEYhalcVIB%az+J+-sXM0LtkRHrg7s`GUBK7eMZt}9lV$TE`%KLQc|*nZd0 zHPQ7{5C3{ycNN{#JzX{QPtmvsVqY~}f&!-3_I*?HbjuX!hPtVdojW3zN!Pw^TL{Jj zG1RR=@j+}lRnsGmsT!RMaWzM`J+CEET8s#T~9=p)jT71JQGQ zGJ3iwI>hrG^FGs?3V0Fyt1|<+qOEuKbYk>M_! zjB#TSitFMkoGGkgY5tIy-YXFG#3hb=d@fm$%NeqVs{6^}dPIBMItIL_4(-MFHf^ob z!g%)G#rL#NY|^P2I2!8O;b2(%|!oN%J!s@=}wiw9@ zHvx3h_C3XSbT<(? zV=fm`kig&yBB~9Sk5$7b%%7>e{9nSygQpO`7n44PCFY_{NVlIgWaUY%)sV~8y{cSE zUqa}XTkU4Gwx5pCf7hNImgHtSj>@f6Yi)TS|C10lAoaA^RKgES^h2q-ui$FASuLk8 z)8(al{Xj0((#t{;mL9k2we*TqfMgVB8Q7F-<$49rn$Q8)x8?7(xdx?bt=N2)j!VBE z34jZc!zcxe&{ZAM-5|{si|0Axt5p8(c|m94C;d1E8+%8()55-x1e!j?ti?}AiujGY zxbzmX_`i#9!1fVQ4ev-(9TFUfwb9LDvCBnbkc6j5l?OIbQdmY6nzt?{F4hR?*9aHu zs#?#D3&C}6E}fwwtu(6`9V=G9Z&+$CLpeVw{T6AyXc*Q>rTcQ#3`@hN9_!XP&0|H< z4By2re1hdCbRHr4QRg$Q&a73eEJ+^vP)A@#e2DolRU0P`94SRxu!an1U?mOo9|^e` zNHJBVdvKKxII`nd4xe&_O#oU?ZHM&rAM)6Fbg8t4r4H58O$LzkuLRuWTcbADZIb6c zE)hP0HQh9DCR1G2Q!LCWX9&zznKbS?Y#QF@3I@WdovHkrb8{zZaZtiz*uWe_ZJm=) zM+!(PpPMTN%fv{x!?an(h5|ddAkFTwG-eMPy39gxaWR(J$g2*p1bT!Vfo zKUbA0*KM`o$|zPs1yZLSChz7Jfhuw-3))f=mO0kaUt*A%c9LsjuR?@7u*S`BarQ8f z7-;jD$_t?#*pFuUkTGR3jpJ1Q0u~EjfomUI7-~JGK)Zgck%t4pN#!uuD~Ff6aWG%5R0Xgw1z08n);L-^Q*k*uYJC*@o+|=K7jO+;OGx zb6?dB-ywl5T-iUx!h{P)RQJoOD;*U)%TtZO0Lp&}>2IrWgU3!}Ku8!rm`xa!5bZO2 z+S&5H+T5+En zp{y%R)_hhRuly+N0Mh-io`u5J7Bw>57#UfG4VBh!rPmFGtuJWhSlvg(IQ8>6GN>RM z3mO?t2$5P3V4V8jX4K!g4R6fh{*r^k2K zj}Nz*Rs6EL_2ESQD#B`bqY{>rJ9CW*>4kU4Z4hRdu?@GHa=BhBR}ZSicC}tp4(pZ4 z*#xJIYOUOq59M0Bc!1*p4hnlu4i3`sk&^h?G%w@b=KroDN&V zw3!^TES#nNn~iz;6Q@^bxWV`~D&C!TAi!?urK1 z)DtYuw)hG=(fiol`%_`6AuTFGoBe3F&f>u&bx z?w`XIo#55>^x2lL>EOHVKjIP>Qz$Swg~EiOLgDFdcbScE@7#{wpuWYQLq}du>BEVx Q&3HLwEBX883wQzWA3M7TNdN!< diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Project.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/Project.php deleted file mode 100644 index 6ad84e8d39bca3f22f929946789a8448373f3aa9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1876 zcmbVN-EP}96rSz6U77SJ!V09mDVr9n3#`)IwZNb>D{MEIUhfs^Xz$Ykf3|G!(t|hVj&(M zVs*f9B83uEM0h-(Oqj$}%n}|kX=Ci|;@<8M`(Af=7hF>@mz249D#SEm4voY-bV8m| zv0(C$#Zw+LXVGu~@pnd*ogpI>lNn1BLK*J#TRTjVkSG##GLWFHK?3h%kYK;Di4cuQ zn&Q3zLvIm=FPV=cPI0P;g5^F>M?B_=lZgKT6>Z@OiBbl>XKg3*m?|z}tQ~e^%IXiX z!PK_*69Eit;UX=Fsss=cbYsP2OrpSJDV01?LiWMbb*D@%snk35hj~~H$0xXMa&+A@ zNp4{!=j>#3j3rZZ8EmJK*^0U2` zbPPG%r6RNB{D>KikAC4fY0WTPaj_$+lEKp% zX~*?4oUA;q*?C3yGitK?w7;1nWlK8QbhgpiXzsqR#jt_4uUluIReaTY zfvQ^C3=$~SuRq@Wss!wThOiv8LMUa4GIUfgqQm+Tt%i(7&}fXu<%>KvUZbjsbqlQx zhRvZrdes~B{dRY|>w7o9u`G0b=z)E~-TlV+GSH#KPY;%@=m*n|PjqiBZ%)tY+?l26uSe(zp%1Q-XW{?= diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ProjectService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ProjectService.php deleted file mode 100644 index 7330a9a5783d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/ProjectService.php +++ /dev/null @@ -1,42 +0,0 @@ -internalAddGeneratedFile( - ' -À -5google/cloud/discoveryengine/v1/project_service.protogoogle.cloud.discoveryengine.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto-google/cloud/discoveryengine/v1/project.proto#google/longrunning/operations.proto"  -ProvisionProjectRequest< -name ( B.àAúA( -&discoveryengine.googleapis.com/Project" -accept_data_use_terms (BàA# -data_use_terms_version ( BàA" -ProvisionProjectMetadata2ì -ProjectService… -ProvisionProject8.google.cloud.discoveryengine.v1.ProvisionProjectRequest.google.longrunning.Operation"—ÊAc -\'google.cloud.discoveryengine.v1.Project8google.cloud.discoveryengine.v1.ProvisionProjectMetadataÚAname‚Óä“$"/v1/{name=projects/*}:provision:*RÊAdiscoveryengine.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB† -#com.google.cloud.discoveryengine.v1BProjectServiceProtoPZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb¢DISCOVERYENGINEªGoogle.Cloud.DiscoveryEngine.V1ÊGoogle\\Cloud\\DiscoveryEngine\\V1ê"Google::Cloud::DiscoveryEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/PurgeConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/PurgeConfig.php deleted file mode 100644 index 1eedcbb127c05e36beed8accf7b55d13450fc635..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3237 zcmd5;%}yLg5cclI7&jnClQaa+sBX#mNCRqxR>|)SU|)MI7zYaAZ)M0we@Y-Y4^78D^tmGfp7p5#*!5K zC}nx<$3!A_h{X}638C0OZ1_AE3EoAF_DSLycmQa0fF+L*hTVSIg*%O908ko92{$xi%K(BO08}5I@1+DmnMIlUdPw9hp(G__TKj1z{ z6*t~MR@xxvYUUIMI?Brp?t&SaBZQ??{Oh1}5;aF1_al<#LJv57{GL8`KLhWZ+&V%q zVY|Tj5P$^9T`q8+d}o<`aici{reei8p=xk3>i$&&ca3G6q5R-%QH;6m(7Br?;KyZ# z7s<`*BDrP8^otu#7=jr>Q#F-$3zP|i(i)3$ZbV+sU=83`hE(&^s3u$hkH*NRDI$vY z&(};BOk>SqA^N#nCgR4`B0kOjS@F$pg6Y%YJ56vqE*V#~sVUX_CjLbbE{uu4ELC$7 zOju&w*F|rYf2r2GMB2*xwAH&*BQM3OX>1vz06I)>@2v$&1z@{D~@q&rsAY?4R(L7 zfJ_r zocvn7)9!7x)^|FauR3ep-dgAP>b+dH9J yzyGbe7A6P`P7n+M1;I{ZZ^CRM&lU#z)Dyebp4x)-8bZ)H8?d=)_tax>48VUaXf^!+ diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/RankService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/RankService.php deleted file mode 100644 index 9b9c7cdccf17..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/RankService.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' -ï -2google/cloud/discoveryengine/v1/rank_service.protogoogle.cloud.discoveryengine.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto"J - RankingRecord - -id (  -title (  -content (  -score ("ÿ - RankRequestL -ranking_config ( B4àAúA. -,discoveryengine.googleapis.com/RankingConfig -model (  -top_n ( -query ( D -records ( 2..google.cloud.discoveryengine.v1.RankingRecordBàA) -!ignore_record_details_in_response (Q - user_labels ( 2<.google.cloud.discoveryengine.v1.RankRequest.UserLabelsEntry1 -UserLabelsEntry -key (  -value ( :8"O - RankResponse? -records ( 2..google.cloud.discoveryengine.v1.RankingRecord2• - RankService± -Rank,.google.cloud.discoveryengine.v1.RankRequest-.google.cloud.discoveryengine.v1.RankResponse"L‚Óä“F"A/v1/{ranking_config=projects/*/locations/*/rankingConfigs/*}:rank:*RÊAdiscoveryengine.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBƒ -#com.google.cloud.discoveryengine.v1BRankServiceProtoPZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb¢DISCOVERYENGINEªGoogle.Cloud.DiscoveryEngine.V1ÊGoogle\\Cloud\\DiscoveryEngine\\V1ê"Google::Cloud::DiscoveryEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/RecommendationService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/RecommendationService.php deleted file mode 100644 index e13fd9b62d3e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/RecommendationService.php +++ /dev/null @@ -1,65 +0,0 @@ -internalAddGeneratedFile( - ' -¬ -O_nIwEf#W@WJ zETrzJc1FXr?d+I39yu~onnCt z0QDEey?_xY6;}GU$z+#>Ofej=&$^yH*vEmS`s%!IKMsjvJcQ;#GbFUQ4K1ee-Hf=d ze-DncY8gs29bO|;RD?M2s#FreBE>~ZyCO88YC@#36t}am29EV%(dLNIT#|cGiI`rE z4xykb7U6E1w*g2dEAJZ4$`SJp7!CXi9pVw=0-()b-&~ z4qv`w8DnMNpAdAQ+o?Dy$rQK+elLQZ|LLQ`n)PR=uI=HKJj@lBUq5lO;9~&CGV$R~;W1b~l{_5# zFKGY!+WZLIHGRL5GyBTIkMbh=mAfqe%z+oPsat5BwRH68xmhMH9qN=4CEbf`mAC;X zy776aZR2I)nrUk5zNFe})?H~fNj8MqXe&ty?6!zn3j!V42AXbeAF6T>EZL})KRK|W zs~Yon)8kc^ZP_g|c&*&0L+hBaZfF_sIi=B*X|b81GwSWmS-#{SRvYd8W~X-iv368% z9M!(&*XpSNIjI0S)v*B8QW0}HrEg;oFVm>0NLe3GtJGzF-NGQ0;vh5wgixo{ThhcU Z{$^`30XtR#t|-QhYLR-{nNC0gz+YW|`9J^w diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SchemaService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SchemaService.php deleted file mode 100644 index cbdefb44e95f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SchemaService.php +++ /dev/null @@ -1,76 +0,0 @@ -internalAddGeneratedFile( - ' -™ -4google/cloud/discoveryengine/v1/schema_service.protogoogle.cloud.discoveryengine.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto,google/cloud/discoveryengine/v1/schema.proto#google/longrunning/operations.protogoogle/protobuf/empty.protogoogle/protobuf/timestamp.proto"O -GetSchemaRequest; -name ( B-àAúA\' -%discoveryengine.googleapis.com/Schema"} -ListSchemasRequest@ -parent ( B0àAúA* -(discoveryengine.googleapis.com/DataStore - page_size ( - -page_token ( "h -ListSchemasResponse8 -schemas ( 2\'.google.cloud.discoveryengine.v1.Schema -next_page_token ( "­ -CreateSchemaRequest@ -parent ( B0àAúA* -(discoveryengine.googleapis.com/DataStore< -schema ( 2\'.google.cloud.discoveryengine.v1.SchemaBàA - schema_id ( BàA"j -UpdateSchemaRequest< -schema ( 2\'.google.cloud.discoveryengine.v1.SchemaBàA - allow_missing ("R -DeleteSchemaRequest; -name ( B-àAúA\' -%discoveryengine.googleapis.com/Schema"x -CreateSchemaMetadata/ - create_time ( 2.google.protobuf.Timestamp/ - update_time ( 2.google.protobuf.Timestamp"x -UpdateSchemaMetadata/ - create_time ( 2.google.protobuf.Timestamp/ - update_time ( 2.google.protobuf.Timestamp"x -DeleteSchemaMetadata/ - create_time ( 2.google.protobuf.Timestamp/ - update_time ( 2.google.protobuf.Timestamp2± - SchemaServiceü - GetSchema1.google.cloud.discoveryengine.v1.GetSchemaRequest\'.google.cloud.discoveryengine.v1.Schema"’ÚAname‚Óä“„8/v1/{name=projects/*/locations/*/dataStores/*/schemas/*}ZHF/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*} - ListSchemas3.google.cloud.discoveryengine.v1.ListSchemasRequest4.google.cloud.discoveryengine.v1.ListSchemasResponse"”ÚAparent‚Óä“„8/v1/{parent=projects/*/locations/*/dataStores/*}/schemasZHF/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/schemasü - CreateSchema4.google.cloud.discoveryengine.v1.CreateSchemaRequest.google.longrunning.Operation"–ÊA^ -&google.cloud.discoveryengine.v1.Schema4google.cloud.discoveryengine.v1.CreateSchemaMetadataÚAparent,schema,schema_id‚Óä“”"8/v1/{parent=projects/*/locations/*/dataStores/*}/schemas:schemaZP"F/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/schemas:schemað - UpdateSchema4.google.cloud.discoveryengine.v1.UpdateSchemaRequest.google.longrunning.Operation"ŠÊA^ -&google.cloud.discoveryengine.v1.Schema4google.cloud.discoveryengine.v1.UpdateSchemaMetadata‚Óä“¢2?/v1/{schema.name=projects/*/locations/*/dataStores/*/schemas/*}:schemaZW2M/v1/{schema.name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}:schemaÈ - DeleteSchema4.google.cloud.discoveryengine.v1.DeleteSchemaRequest.google.longrunning.Operation"âÊAM -google.protobuf.Empty4google.cloud.discoveryengine.v1.DeleteSchemaMetadataÚAname‚Óä“„*8/v1/{name=projects/*/locations/*/dataStores/*/schemas/*}ZH*F/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}RÊAdiscoveryengine.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB… -#com.google.cloud.discoveryengine.v1BSchemaServiceProtoPZMcloud.google.com/go/discoveryengine/apiv1/discoveryenginepb;discoveryenginepb¢DISCOVERYENGINEªGoogle.Cloud.DiscoveryEngine.V1ÊGoogle\\Cloud\\DiscoveryEngine\\V1ê"Google::Cloud::DiscoveryEngine::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SearchService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SearchService.php deleted file mode 100644 index b4d18f931ad410c7beb91cd97513a673cc5bc7b6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10580 zcmcIq&vP4h6_4cjhn^hU*~E#mO&V2cn;%VOB3dX)QjjdgQDaMvCA*Vix?M?M+ncO* z)!mg7x6=d6Fv9>t4?S>!VWwPw3+K-C#0-}nfjb@G#D74C1Mj`>cO}_!u$45q#M=FS zKkt3t@Avk5c_0GnI@RAL;)wXQmrIX1* zC0VZ2lEp%)_5yD8-Hz7~+2p3{ZrWn5VY{8?T+{L!?zZrDgtKWmVs87|oG(nTv1Rze z+qN1a%>)1(vnBkt*$~Nv<@}Ne%%&Nb>kEvvK2KQdh22=|YuBy=G;GuNlU2s7N=Wz+ zlK8LPsoPc~=?7+j|GjAWhUHj+W!lyUc)Xj*4b%1oA`GtG=s1nQa-Ae?s5lLA>2gwH z(%Ki>E{fx3GGuOB*(biY&od8_7$O z$82_h$(zZ*>xh2p$)qQOj^|uwz6s!??qBQsh%VQ*)^m>Ik`!FW&t`jP>Onkixxh|bZ90YXBg}ATOH@Y;i*3!$8EJ-=W75exQ$M0C}DQ( zs){zyc#Ia<7+-zUQl^({HoKN~3*Gcm*EYyfF2b+hg4dqJKeh96SDL*#y~nH5+t>8d z3f62}==x+f(zA87bBdTgH|_{ z!qob+YCVT5^!7QQwIbi9{(c#b$r!XE-tP!M&=z5eBb>8oG+bxH+Dt@}kxQ}sYhUJ~ zU**zpb*~I1K1#_?V~m~SSmtcb^Ik0rV|CAT8e54dqg?qaw|)^`IshZjTeM>^iadEc zi4oeXl_74m%uQj)hbQo1Jo6nTkH;!Fz3X`C5+U3rRP8v#+63ogTumHBv{6k1;75V` zKsbp}COZXV?#6~Mg2WiFIRnRCM;LYYkdiTRGXoQ@*A$*n-$_jHlN%80ph7W+ zY`BS8d=$@IK9HGJ+)=^}+AJKiO=q)1a%#9uk+{I1OAz0{lozNo#`uhH90QM#TdID1P9Q%oU0Bn8B@?fEVglQ;!aYyoXwbegVV zH51dU#2>&3^zZ;99@aFnv_WG_B$)8`h9r#sPDoP2O!frCeRBidfUy%N5q3hWLY#TA z&APDt#3@$Ln?uqf>s(|2siX#+RtGSBW5?|n!A@JcU*i0eNs(F3`S;vT4WalrH(=Zs zK3PEGGKnw$%2&Bd@bUqXtSYx?%P^^SOYL4^zJ|3-g+~17R{{EB*=!ga>pOw)WyrpL zBtH(L95VI$aBO!-DFF0Bl?w6S;1GWWE*)^FE|PYl8<;p&=10EFMfCqhA=dNldk~YM z;(^#x4D)y~36@u*>Unxd(KqJcDh%pN0{J7|k85*{z1rc6}_XQJ)n1C-gr@U?RlVW?&@bHztW;9OYtV8>??5NJ0JJILehZ z?$9u4V2KcTRs&lU1D{~7Rg7WCZhKKf6nV-tsf0q2Eb0J9zMA}ayps^LUU7PzN$p}emD&ss;M%a`? zvdqj6Q6izj+Agvs?KhsWo+%?rd&@*ozX_B5zqQja-BS{~nNr_Ln3N`Fw%m>*Lq;^U z1jlv@_<7KCwc1K4zgjCAwR_7&W3^meF3y*3m5PO#BWSp>^6FA?r8J*goQcrSTPwxt z?Q*eNor$LA;rO7KQt*7KTq~|DR~B=%Ql-2fEWp@esa(vh%tZ9Rp^o<{6yDwIMN>mN z?;vW=i?!$BRNHclj>DA>#ZU}b9UGNOmHR~MO^BhSrORVDo1L$eaehMQ*)5?-m?)I0 zx%?u^E22%n(cEgSG85H*AAu9-aRb%KDjaQ5VM$%aRAymF)7b|xy@YV7>u{9**G|IB zQl+q0jVEBby1KAXtnvXW<;8ouc>Qz|j+0sKE@%zD1Z5fzF%v!tJQIt}ZK~>32}re{47qDheWYR+KRhlSt_7N^ z)1+w`ta!@4Q<=L@O;eVhD{Qo^`gd{2Ms2o~Bo!#}%v(=Qh6gkxNBupB_p9z49B-MA zjL<|H9A?O>NAuA{MAKmkv%K&Gj^zy3v3I0j@jI;0+?Y_V-(3!&^N5o0)P@^!W9zG>M;-4kXX618{}TrFx3QEcd_ zwt)kRR$H}zQdvW%{?ORuP!)BQ?vozJ1sjJ`NQM1iptq&|KBnCVkPP|c5mZyfGf(dk z1B@^W&%p_7hp(C?NUw4 zLmR4TXZQC-)FN4HUm(Et_94y*`Yq~3IJ;+&FE(iys8&&Q8r4wO=au>P!G$YvjP40( z&)PYdbviB7w7?l_$H#Ls8r2O1ga%BnF#}OYs$P*PjOsbeKIF@x)ONursj;t71<(ai zFPP2LU6>gN5ty5+n04oG8<@pc7i-2oxdL;1p)!w2zg(+gmcUd!e|xoj2lKuD8RfKn zdPQR}R}Y&e_JQps>lBG&_+%W1@nTtK=BWNYh8EeJvP{vk*vV-;z_z1Zh4Vh2O%(!0 zn@r2cq=*4bS_upG_K}}NBKZ^~QD;0wP@!pHxn6{L|7<1R*JEif!Kf_PWX3xc#_4cu znO>uwDI0wwqF;mQy%T_4P}p4bpklNo_1Q_7k`l%I(8kXRLR*4y$!ORL9ezY75xRp# zs*=t27i=J)B*(7;P46B<- zPc$tW92p(YN=))oasl$8fl(&DP-7-6?_^Au1I61o+>m*O<99ss?P1wh@lAVgaA3xh z$6?1=O2)fORvt;-?Tu0xSowMm-`u^~v ziS{~-au7;rsF`@?O&~{n&GK{fhhemezA)OK@V@gwFf1>$rI1XX+ zRfWd~0K8N#nhqU`1HS zFdkYH+PAVxBS4E*k*S6AzOYDsKm|GVDyENajogf2F?sl48@jTD>y`@=b%jB-1{|kB zX0T&~ZpgD6(&z01_1QHm>E-HR=_&(udru#$j@j@`53OL!XsIvBoEnFj)9inuw-Gb^ zIIVvRGvQwPXz~sGe7@;=7S9i9>V%&iID1R6M)ggYnOB8nh=l{)Sg+WWGo_)eG89S( zuKx^2ap4b~F~;#Tvlrm-t0^9_35?K8NjOdQh*HLg_BO^a{*o^TYw^sjCsj^Jy2^0+ zWtiIiglddlEic)kcs!#297mrkVU6lODXwdYZ$KDyQ`~aL7V*)Nc*TOhr*SB+7$xjn%~3(8AG~ z$6+C+|APu7>0A94NC?W>6$1KLLz!03^kpgV#6A`(t!t~R0A00(MsoOB^d86R$}08G zD4bM>tnLaNFGH%jy0nyAxo1@Gl$Mu^1uQdj)q#=8IXIImtQA+Pxs_6G(YU)>#2uxD za%F{QC@;YaW!%$+Di-gQ$_smzMRCCWTxGRpRBjoC%2KXW-m_o?Cp`LcrG{lJ5y5Fx zY5tzER#H=`nWHq+SzKH)a)km?D_3epSS*gB!JjBskom>pTCQ9(aP~tuGh;;btz2o* z$m7BG;c6U9{xkEd)mjB-W`i`T?R@dTvl(ldnV4SMI~C(%06XXIyh;`{l%pmzY^-pa z<#eZ5eFf`?{%W`MWsFHU+BfIzFNDbeW0_x$gZf5ZmG^YCk4Iok26iodXkSD2{6L>O z^m=J;sozF_^w)oV68%*)wM>_gKE!Wd+tiYy2ja*1n^+&;$Li0YyE13H7{ReZq`&Fg z4u3zUA8HG_FYdqxA7y>6)U%N*?=({H4grhzsciX?awsD2rM~~fMCARe1CF8nW&}WL zWYG%5v)9TWrB;3yP1S}t*`c&T2O!OCrs_jLKY?aKLd}%%#Doskj-sNke35(p|7W?s zM?cfOk#~a;dx~O+&daj(`Gp zIr7euY|Z5T6~4Q&=?>icL;C1-dl+xmuMa%=G&+rQ@A(SG@q5Mc0#5V)5Iw)Z*8tOe zODkOnuK^bMN@05K+85!9b#+s)cU4fXS;xDA|Bj|4Og76n+3X&mY-MH7{(4ML`kVV zw9bT*3s-LN4>6oT&1TeYBWgm@3$c%=Wt!!>xmQ0jE9KhJ`y!N)h(hF;9YQ)j zvY}6+mfgY(l0KrRDCpn-+5I(}A&JD4?afI0Sj z{H>^U%WQi-Ljq@VZaWGf$0RUiKs|t{aL?43a_*gw2yV8_B*lG6m!Qh61su`9^W8FH zkm8UNx-X_WP6zP;$?{9#Uc9V?!)>#mb99`EB)3dXBQ(0YX;Q=^8f>b(CBWI>FZU7x ziy?N4K|mx6Bw&s+tZ4`_EpXe%DB#zN*}=$fl~C8~V?wVNdVpdTr)q(4kQvmG9O=xzn!Khk?9~u-GTu>xEZe`yhnw zq3C=xrSD40_dmw5aEq_Pq@?*@n7Pyi&J3!w=LK;RH z0O_3#A$^LnDKk}AD1G?6nEt1@3JT+N>nsJK%n}A~mqp;AjLUxsvXcw2P?!fYO5ld# zhY9q#!s7b6rD3MF)SB3c`Db%r`G|Tr7%3sCpaYB!WDPEd=A3`-M_Qe813={IfL3PSPE#33#oCIK_~OMo7i(BuPv&A!}M$mbjZppi02$>9FEP}bO(P`X` zn_#~0`4LiTPC4m~RQ|h34wL(jVS`0Tk+_yMq%$at#r0g0d}15c;82hOQ79x32WTQ+ z5U~E^Jb3ex+mrEY8f3;fFgB8vuR)tKrQEwotN9w%D!Nx2b8Ba)D6|^H= zJ2GMT```ckDg9agP~K0U4sCNwQ2P~voY||kPoO@n#oyvS?2FIx>=ysY`N}QDKW7df zb2BHkYCKPY%(#tSfyMEV*cfvU6BeiPKN+bR%0E$+ernWTzEWEsmAmqYWVwU$;(ISX zRemd4UCu-1*!IcENnFC<$nhfH)o+ITq3`iFp}o=%X|N)WqgmCKvX>}V-IVrIU+ij* z5=n`}twSbWB_a#a__6fE=H|qgpVPO>wZrZDapmCi%3ig$SNSDv-)vnc>C{nBfaX&vC^Q=C5>K!#Iw@ahx$A$2neW-cVcp!QH`C>;wHI7>#Eg;U>n74sLe_*lDx|cfeJ!g!{zC6UHVXvHXxFffZ2U zvqQp<0SGWWQCPOC-O<< zA=a46_Fl}O1KT)HtE-v<4RKqMBs}s$w?Tx@X)GD*KKB?*i zT!g#jP1C#}7c;{$`^w9>iIx*V_%IeE3D}SZau2`l5XLT=th4~8#u!^ z?S9wUY3;V0#>y4rI$CPAhuvPM*>n2+m4f}LcwGCth#p)3pL5-VKK)93DXb6KX=;Vc zhY`afxXX`IOAW3*OaKD6>O2(cW10^YS^4{sXj?I|j0GMCZ3B)>~d&(p`#p{h$f2XtO^nP~Q%~sp_vv|9it{^jA zL1rUgK~B2I%)RPgxrLi;sgpIOZCuz>$Hg@bW7{c?ZJz?N?Y-(~0SJ=p$@*;mJ=Qzm Vvz4Jn3-!-g7pbKl>QgjD=zkS9qgVg{ diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SiteSearchEngine.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SiteSearchEngine.php deleted file mode 100644 index ea682ab9f66bcb69af9482af464050b80a44ef83..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2932 zcmbVO&2HO95RPcojz@{&5KgPQ0m8}#>;NfQyFX}|CWU@zm#8DFmTWkI0D`7g@&+`? zkV_+OphMA1U!cA9(Du|mN}s}KAA0B$baqMoSe9!czL>k3`M%lNZ)WGKuY;oimX$5y zk_2ahIrjg^HknogvUFs3-WL=9WBUVK0&^fY_T~&|(c=j=g0^1?VR=xa;FuQFt zyR{|oS{07hs$Rrv?XN!ua9lfzlm_B91gs&r;0-AF7sQ7yb(DzN4F9dr$f6!))OP9j zc*-YA$95xvAeU`BvF9-AdkS~h@f@=DP)RVk?MmQdR-P#R`06}Sn535JF%o*V+p3bt z32DImu#Tp>-X(01UcR&TFs0>iw4jCYuhxX@ zl>*w@q{MBP$&r0R{ZQA3ry7D><+@AK+nw5Lkd7wBOJ(+PFqu)L@uR0SOSj2EnXq&XHIHXo!GhRUji6^Z*dsdRpN?G|SWZ7vz3NyHy-}pF9+Ld>y z4ms5(`pE^zk=M4vtYe!wM}=90xykvnauM!z`)%(+09g@$i19w$34NbgZU5M&9=9sM z@YfgcZp6D9Hagm&$;Dus>G*{?G|Fv!c5SpgH~S;rCORkCIe*96VERG5{ z5j4M{Ukf^t0yBkZ2!sUrQ^>^u%7j>4%Y}DDs7rlRyb{sR)Ik9!Ui*;m*wl?fVui$x ze6KJs9KY;4UR7PAH?o-^>VWwFN}j^Ar-rjzjzVy1NgwKRgD9)wq-S%rRHAaGFaWHRq=NO1DM?` zncK)B$+uy?u~(@WMirMc*lBK7jcudJ4YT@h(s}7u2_BC3xUo(%6o~wC+Kw=7kI~qm z=&>6m3yW7tPyR78E!nW+AjWVpefzmOisBytw}zP(m~lW^7X zO8sL@BJ&KpQQ^Ws_35c+Q~K5$)s{0Y?X z@x#$@Os>J<<4ZfgOLwYfqq2kXJ~wJxX3h9Zdaxx%L{*H4YPCNiCS#zwzy5dMqLogO z!!a_kY2h4sE)^3PT^BgIJ_e-g`|F3ZqAh;1Iv7hHC8OEMB*&FPoe5K%uuNvH9`peI E14oS9zW@LL diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SiteSearchEngineService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/SiteSearchEngineService.php deleted file mode 100644 index 9a1bc9de605154667014edc4df5c21e0c9e8d703..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10328 zcmc&)O>7)j9cOlv6hAlEeMxKAO`7Q>P{(a|Wk;yh1}9y6*Ty388n0tyv(+-5eY>7? zJTsk{wd)28r~uIus68Md4yfV)9C|?FP!%CANGK{o0&&R!<$zGdg+tXtIUxS;&6}MM z@9fO_i(F#Qy#L4ifB$d4FWodZO>|kDCpxiYhcv{EUD4SjqG=h9p%|LD(QY=0B`U_2 zscOW^iDIcDE>>2=a%o}Z86dTdwxy7Q*fNZkM)Hbgv>W+`YAePzv37~xQgxEwp3K{- zL+Un>EoHOrK84?`ZB-#TCJZ56-XgXsD@2@Mnz>CJxgk4pZJzP1%~HO#QkZXTb@Dnw ziYD8(SOxx7#=gvCR$b=k9unc7+1}7pMYJ8+f&Z?kc3ss~N0l}84fyD3u__5f{Lz?@vEZClb*d|8epVp(NlAY+6`=0ThJY1>9STU5nHiT(=n_iI9e#Q zh|{q)eKLNPi>2(;ra12ESSajMa$0n(HVH}>MT8I{(Hb*kQ{Gk$t3T3Z!aXasl5s9li@HX7MQ#~-%WCVo zs<&ztlZHrtcI&tUfKlEuo!#`JJESWrgoPt-ncZob2flDa<^EP|G&=4z2N65oaR}-j z&!V4x8NGbiP{o&A4mlR=xk#|*wkO9%xCq%)AtO+~af5t}Q|9T5CUuVb2KNqr;K=}` z#a)2EdZ~ZCIpt+esrhi`jSigr&{O;n%SI5wc|rl>FFn0GFC7mR_kg6Jv3cS|J#Cr1 z)&}r!8J(ipZB!72@qw8a9~LwJDNdqjn#{QxfNks?B;0(IoAgTojm%mE67`B~K_a0C zJQ4Hgj44}S=|c(uT?ZY;y>0{h(F~|OIQ1OYEf(^euhC2vzEAol8jY&z<#e1!g9`hM zIyECxcyMaW6XDr7*YSKx&^DnQ5SPH!sRx1dzJM;y$d0lZ)xkb;dsWb9Ef;1RjFkmr zz2tpKTzurBT5+XZ%Y6-<2Uqg#>1lj3H)bl+6SmE z4m2*Bs~^?nwDg_0C_h1H6!dglqB%0FNZaUAS(i67QfzF?(1SMo(%?mK6=9mM!!7n9 zYk?#oF-xGSAIzcP_L_m0%D3-jV-Lce8 z5;+d%!H=O+ZIHo=;s7gc_yQVYP72k(0j&zmU!$jKbknzj^idX_3n|9~XblZDWmRii z;N8#%YsAYeFDDk-F6?r1F0Tc>Y2b5ckg_I?y07Zk!web>9vVbhc5DZ2_wigw2^$CRK_bv!>7 z(B~7Bsg@2Jj=ekU!_HvGQ% z*MGc|d0W6Y={E2l9fzl3(z{C($IegWHN%CS{!I6NRalr2`U|ZW!M)zzdIjH3WC5#7 z4LH+nO(H}5K^6^1Co+8CA#UuVXQaToA=lX+Nq@@RFE-JHJEozyAWI&tlyQs&LHZ|y&sTbW#K<((G%S}aD2l< zB6bk(PUyLN0+N3NB)^4jBq13mgC~vY1JQdBGc-RGq_q_G?j2Vl3vc+llY%g@u1T#F z{11$0SQ`Fy2AvIUK=2n6fefAZ@at#tlztmZRPPBXvP@5d2JM-j*js-EyD`x#^YvlD z2z&e?B(do3B}Ed8l6a;|aQ(j@eG-dm;(7RkVlcHZe}5=Ux&9tVYq?%_?FXoECflBJ zJwL6agCiJ{i~pNJ!_kFP3OJ)ADdGGP!1-15IL}0#1uXlMMRNIx3iXlm3;%ndmkZzYej-A7{~M+ztsR5AboMo@EpA)FGYPeP9k=FfjD~DM(FL zNNHCaUez6}1uKx4wIHq9yOPtVuzpbPB^rO4MNh_V#c(k(j$&z3;{GY%{(S)zlX|Nj za=e-Dz$`+@ed269#BDn%^lwP*q8Vu~+@U=v=1E*8s`+LCmF1nV4 zO^7iEv>&1ngq<$?$RM=*O>D5sPS3xucnwR#|IYBaY2S`0?cB7FFeP}O2=|NM7E%sQ zU4(ET(+ytx=tG#k%JcEj6~6)-X7))1eCb?svF9QQmlH#!C%tF?xx=z?EewBOV^!-O z-aXD_((JVW99zC$d>YbC@H!d)I`5vuUy8X+$1&|fKEJcG6M31J+s>wYEA0hSlbxnv zZO!~JgD%4bizF+}T&PBtPyABZ620ZMB&^?d_X=JXf-4&>BYLTWUUh+mSL74SjqCfK zyqg&+EmUVKtL5dj^5Xo$V)<8@OY`jdTW*$Kf6J9TJGiU9-0I|g??jE?kn^v|xo2u{ zNA6!4$z@Y0Fg}Gsgi)ceI=OL%wf)zg?OYgo-o0-YxSke!HI1EguaNDbJ%s)TW;0bi diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/UserEvent.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/UserEvent.php deleted file mode 100644 index 4714d6db8f04ca86bf7c7330149a5545c5624b9f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3408 zcmbVPPjlN;5U=IfvDZnQC@pmYLshqsq_lEVE};IkV>b>nO+0PLOc~E;Wa-%vl_gbr zG8m=@Zd|zW2{`f*_y%y|BXDDekI)nQ-jn3SX~uzEl1RJ1xBJ`O-&;L+>>vAZL)j%R z2@Fasr8idSF;V=$qn_zGN-yg7NuZeC(6=2DsEX1&Q1%ZFl~!}_@H)DNUKE%_QwE+l za7fK`yvV9qc4&Gd5{!vEuw7CcZP%iZ1UeZJm#Q2bz%_;>^bM0JyPd`}LJiBHMt7Iv zbaxm|w|N?;d$fHYz;ui-RK7&K7K4NDLBStC>N&Qlgw&w;>!uy*wrf+{aP03et%pkA za6*FKXKnkDYf{^D73Of@nq+fJ5tz*OrtcvQ50xaa4r2yc>F&9d1g_z9nHqj zwTWXj$gwf9y+G3@SxrFBbA3+Ya$eZ$ygGGvyy4JuFMfQ=Ycs-5#B%%(*FzgSiW)=z z-M+k(cOKbs;p&!^*6ArW_h!m0<9P%AUWL2=wX5Z8!b9bApia$!I@(@eiy;l)t_3mO zVj|XW&pHjK5IK#lKa8#UG+{&5teCj?eH=+GeNPj1ghBPU0u<9JlCJ{r>D1}iCzXtn z*(^4)f7K=VeOThN>xU$=Jl(b`(&VKEc`@RZRsQhS+j@5cKAO&3go-JLD&|mYaaEA( z0Bq#-5J!hpE^~l8Z|k>UbB2Etydl8!loqDf`TPbkhCCK+}2L-57N_8Rn@mz-oq-GE!QUufQTs z)6f%9;^Srhcpo6C6A3FToPBNPX{@XG1*X>HB9pM?(qJq<0vHm@HbnID1?%yQxv;p` zO(;)8mLU6zjKx^Xk0CcQoQUv2F5R0=%ua+OI!rM&>9b7rB^1&|U4;^B^N~%yVZG1A zgOkO2-^9IQ;00qL8!|=`1vVemqI?+^0)qQRfV%;E$|kZ{Jp?$>8)y@E7fu_(2=rwr zc!7m(y##m_@?O6m63Vf2?MpvqGL0h4>*8s(4NFtKg5w+#2gjLMdKe7`ILkO^@c}q| z=}X@Wah1SVO!;!v-!o92?v<+vrz|{)D<_WtX(*TxCg_@Rph8vOgQZh_YQ>B!LzWuf zaw4R522+q%V9xYnm66&KdxVnA6*6+EE-K07MrvnS$_2=ahmAbU=?K=Chn&tJ8Y@uN zPdirs%)r7a9asPHX4B6dLWXuZVwB)QMMKj53us}U(I65~8d007KB+l$<$3__zQL-oI)t@k| zbVy|lu8JW?MH%2C5bDYO%^R?EZ!J-fJ164OU=Dh2#v6L!RhwZ+d%vaBZZG6olMs47o+4=Fd$F+Z|SNz`nGf#ez%FVqO zI|oOt=Pz6PyLrhqiKTZhyDM7Jg!BKX+m0mSU}b18)HS1rG@|WdHyG diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/UserEventService.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/GPBMetadata/Google/Cloud/Discoveryengine/V1/UserEventService.php deleted file mode 100644 index 8e5541ac8fcdb3bd799544f9a217b2b5a342d0c1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3784 zcmb_f&u<$=6lU!zA`_s|(kdYmbZ{!wjp%NZqBhzPz-zlnBpSO(8bq|nTCc~>pv}%Q zJL@P^xgZV|S1ueX4xA7t{sc}S;s&SA%>MANy0#&{c(ps<~ep5=I>2!g|0dZddkTxwN(SCWi(j zqz*D*i;$L!bjKxOLvP@~A#FrYkk`T<(%Z{=7$90hZRD{Ue`;d~X>t<)Jo^X*zU?5m zQ8n)&W;bkRTN{$kDhfWU)XQh>FRuaMxONc02b`@eXm=x4@DM=$^TWD}9T+g1@xQA$ zs9_H?Y`gd~e#&*&wA}!4lEJmj&~q3j9u$Cz=b-#`7;%cVSAD|0vJMmbs=`s+N!FIf z5cO==Dxtuk*k^=R`BKAZA(pyVyvbjWw-t1_3G^45h1vw1v)%EtUEBmVH3H77aZQdo8Qti~Jt00V(Sn z@8Vd*g+?RQ>|LJs`BY^>bJxI6m%!?OO?dT6gw$lI(E3V+)?Qwii>YlN^Lipg7?p~J z7^#a7O`)_}J(gO$;I%H~VXUWTe4?>v;!n3m9R*8e)Ep^|7_>49yD{*YpZQjzSSPeT+i^?fkq+mt(SUV%z}+PwKkA@grx3FP~| z9&N+@8fd)K>m^=+cXLvgkqvkW5WoBhbiv^~qP6 zzm;4;wAzPJ%-4B;{e*im(3fGw@1@I-$eDt44CbgjJi6~>HUzz?UxcH&jn4iB$KzK-0zWte^b=rXoH74 zICj**u6lnAnlas)kglq?N0atAGe)XkWWhz*tx`P)>Yc<7!>Y8_he#awdIIb!Sz6kD za$jf83KZNKRX_&F1D~r4sgnYe>!i$&$Nw`wWJNcWrGvfmOpAn7{W1$?qdQ1f97Zd- zA2Mbj9`iu3q>B%)lV-Ss*ODXNb&ROA& z=Qqh;3YxfL1ct63A0Nl6Pdlg`vcqT?y5YMvYZ7{7KFWYa-d&Rf8J1b*r-<4yLBzSTD}#H TJ6+S!(8)-yj3$^google.cloud.discoveryengine.v1.AlloyDbSource - */ -class AlloyDbSource extends \Google\Protobuf\Internal\Message -{ - /** - * The project ID that contains the AlloyDB source. - * Has a length limit of 128 characters. If not specified, inherits the - * project ID from the parent request. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Required. The AlloyDB location to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $location_id = ''; - /** - * Required. The AlloyDB cluster to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster_id = ''; - /** - * Required. The AlloyDB database to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_id = ''; - /** - * Required. The AlloyDB table to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_id = ''; - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * AlloyDB export to a specific Cloud Storage directory. - * Ensure that the AlloyDB service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 6; - */ - protected $gcs_staging_dir = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The project ID that contains the AlloyDB source. - * Has a length limit of 128 characters. If not specified, inherits the - * project ID from the parent request. - * @type string $location_id - * Required. The AlloyDB location to copy the data from with a length limit of - * 256 characters. - * @type string $cluster_id - * Required. The AlloyDB cluster to copy the data from with a length limit of - * 256 characters. - * @type string $database_id - * Required. The AlloyDB database to copy the data from with a length limit of - * 256 characters. - * @type string $table_id - * Required. The AlloyDB table to copy the data from with a length limit of - * 256 characters. - * @type string $gcs_staging_dir - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * AlloyDB export to a specific Cloud Storage directory. - * Ensure that the AlloyDB service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The project ID that contains the AlloyDB source. - * Has a length limit of 128 characters. If not specified, inherits the - * project ID from the parent request. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project ID that contains the AlloyDB source. - * Has a length limit of 128 characters. If not specified, inherits the - * project ID from the parent request. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The AlloyDB location to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Required. The AlloyDB location to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string location_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - - /** - * Required. The AlloyDB cluster to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getClusterId() - { - return $this->cluster_id; - } - - /** - * Required. The AlloyDB cluster to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setClusterId($var) - { - GPBUtil::checkString($var, True); - $this->cluster_id = $var; - - return $this; - } - - /** - * Required. The AlloyDB database to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * Required. The AlloyDB database to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string database_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Required. The AlloyDB table to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Required. The AlloyDB table to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string table_id = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * AlloyDB export to a specific Cloud Storage directory. - * Ensure that the AlloyDB service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 6; - * @return string - */ - public function getGcsStagingDir() - { - return $this->gcs_staging_dir; - } - - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * AlloyDB export to a specific Cloud Storage directory. - * Ensure that the AlloyDB service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 6; - * @param string $var - * @return $this - */ - public function setGcsStagingDir($var) - { - GPBUtil::checkString($var, True); - $this->gcs_staging_dir = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer.php deleted file mode 100644 index d015ad6155f4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer.php +++ /dev/null @@ -1,445 +0,0 @@ -google.cloud.discoveryengine.v1.Answer - */ -class Answer extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * The state of the answer generation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.State state = 2; - */ - protected $state = 0; - /** - * The textual answer. - * - * Generated from protobuf field string answer_text = 3; - */ - protected $answer_text = ''; - /** - * Citations. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Citation citations = 4; - */ - private $citations; - /** - * References. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Reference references = 5; - */ - private $references; - /** - * Suggested related questions. - * - * Generated from protobuf field repeated string related_questions = 6; - */ - private $related_questions; - /** - * Answer generation steps. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step steps = 7; - */ - private $steps; - /** - * Query understanding information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo query_understanding_info = 10; - */ - protected $query_understanding_info = null; - /** - * Additional answer-skipped reasons. This provides the reason for ignored - * cases. If nothing is skipped, this field is not set. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.AnswerSkippedReason answer_skipped_reasons = 11; - */ - private $answer_skipped_reasons; - /** - * Output only. Answer creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Answer completed timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $complete_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*` - * @type int $state - * The state of the answer generation. - * @type string $answer_text - * The textual answer. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Answer\Citation>|\Google\Protobuf\Internal\RepeatedField $citations - * Citations. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Answer\Reference>|\Google\Protobuf\Internal\RepeatedField $references - * References. - * @type array|\Google\Protobuf\Internal\RepeatedField $related_questions - * Suggested related questions. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Answer\Step>|\Google\Protobuf\Internal\RepeatedField $steps - * Answer generation steps. - * @type \Google\Cloud\DiscoveryEngine\V1\Answer\QueryUnderstandingInfo $query_understanding_info - * Query understanding information. - * @type array|\Google\Protobuf\Internal\RepeatedField $answer_skipped_reasons - * Additional answer-skipped reasons. This provides the reason for ignored - * cases. If nothing is skipped, this field is not set. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Answer creation timestamp. - * @type \Google\Protobuf\Timestamp $complete_time - * Output only. Answer completed timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*/answers/*` - * - * 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 state of the answer generation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.State state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of the answer generation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.State state = 2; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\Answer\State::class); - $this->state = $var; - - return $this; - } - - /** - * The textual answer. - * - * Generated from protobuf field string answer_text = 3; - * @return string - */ - public function getAnswerText() - { - return $this->answer_text; - } - - /** - * The textual answer. - * - * Generated from protobuf field string answer_text = 3; - * @param string $var - * @return $this - */ - public function setAnswerText($var) - { - GPBUtil::checkString($var, True); - $this->answer_text = $var; - - return $this; - } - - /** - * Citations. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Citation citations = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCitations() - { - return $this->citations; - } - - /** - * Citations. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Citation citations = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Answer\Citation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCitations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Answer\Citation::class); - $this->citations = $arr; - - return $this; - } - - /** - * References. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Reference references = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReferences() - { - return $this->references; - } - - /** - * References. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Reference references = 5; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Answer\Reference>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Answer\Reference::class); - $this->references = $arr; - - return $this; - } - - /** - * Suggested related questions. - * - * Generated from protobuf field repeated string related_questions = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRelatedQuestions() - { - return $this->related_questions; - } - - /** - * Suggested related questions. - * - * Generated from protobuf field repeated string related_questions = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRelatedQuestions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->related_questions = $arr; - - return $this; - } - - /** - * Answer generation steps. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step steps = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSteps() - { - return $this->steps; - } - - /** - * Answer generation steps. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step steps = 7; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Answer\Step>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSteps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Answer\Step::class); - $this->steps = $arr; - - return $this; - } - - /** - * Query understanding information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo query_understanding_info = 10; - * @return \Google\Cloud\DiscoveryEngine\V1\Answer\QueryUnderstandingInfo|null - */ - public function getQueryUnderstandingInfo() - { - return $this->query_understanding_info; - } - - public function hasQueryUnderstandingInfo() - { - return isset($this->query_understanding_info); - } - - public function clearQueryUnderstandingInfo() - { - unset($this->query_understanding_info); - } - - /** - * Query understanding information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo query_understanding_info = 10; - * @param \Google\Cloud\DiscoveryEngine\V1\Answer\QueryUnderstandingInfo $var - * @return $this - */ - public function setQueryUnderstandingInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Answer\QueryUnderstandingInfo::class); - $this->query_understanding_info = $var; - - return $this; - } - - /** - * Additional answer-skipped reasons. This provides the reason for ignored - * cases. If nothing is skipped, this field is not set. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.AnswerSkippedReason answer_skipped_reasons = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAnswerSkippedReasons() - { - return $this->answer_skipped_reasons; - } - - /** - * Additional answer-skipped reasons. This provides the reason for ignored - * cases. If nothing is skipped, this field is not set. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.AnswerSkippedReason answer_skipped_reasons = 11; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAnswerSkippedReasons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DiscoveryEngine\V1\Answer\AnswerSkippedReason::class); - $this->answer_skipped_reasons = $arr; - - return $this; - } - - /** - * Output only. Answer 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. Answer 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. Answer completed timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCompleteTime() - { - return $this->complete_time; - } - - public function hasCompleteTime() - { - return isset($this->complete_time); - } - - public function clearCompleteTime() - { - unset($this->complete_time); - } - - /** - * Output only. Answer completed timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp complete_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCompleteTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->complete_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/AnswerSkippedReason.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/AnswerSkippedReason.php deleted file mode 100644 index 90ac952d3897..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/AnswerSkippedReason.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.AnswerSkippedReason - */ -class AnswerSkippedReason -{ - /** - * Default value. The answer skipped reason is not specified. - * - * Generated from protobuf enum ANSWER_SKIPPED_REASON_UNSPECIFIED = 0; - */ - const ANSWER_SKIPPED_REASON_UNSPECIFIED = 0; - /** - * The adversarial query ignored case. - * - * Generated from protobuf enum ADVERSARIAL_QUERY_IGNORED = 1; - */ - const ADVERSARIAL_QUERY_IGNORED = 1; - /** - * The non-answer seeking query ignored case - * Google skips the answer if the query is chit chat. - * - * Generated from protobuf enum NON_ANSWER_SEEKING_QUERY_IGNORED = 2; - */ - const NON_ANSWER_SEEKING_QUERY_IGNORED = 2; - /** - * The out-of-domain query ignored case. - * Google skips the answer if there are no high-relevance search results. - * - * Generated from protobuf enum OUT_OF_DOMAIN_QUERY_IGNORED = 3; - */ - const OUT_OF_DOMAIN_QUERY_IGNORED = 3; - /** - * The potential policy violation case. - * Google skips the answer if there is a potential policy violation - * detected. This includes content that may be violent or toxic. - * - * Generated from protobuf enum POTENTIAL_POLICY_VIOLATION = 4; - */ - const POTENTIAL_POLICY_VIOLATION = 4; - /** - * The no relevant content case. - * Google skips the answer if there is no relevant content in the - * retrieved search results. - * - * Generated from protobuf enum NO_RELEVANT_CONTENT = 5; - */ - const NO_RELEVANT_CONTENT = 5; - /** - * The jail-breaking query ignored case. - * For example, "Reply in the tone of a competing company's CEO". - * Google skips the answer if the query is classified as a jail-breaking - * query. - * - * Generated from protobuf enum JAIL_BREAKING_QUERY_IGNORED = 6; - */ - const JAIL_BREAKING_QUERY_IGNORED = 6; - /** - * The customer policy violation case. - * Google skips the summary if there is a customer policy violation - * detected. The policy is defined by the customer. - * - * Generated from protobuf enum CUSTOMER_POLICY_VIOLATION = 7; - */ - const CUSTOMER_POLICY_VIOLATION = 7; - /** - * The non-answer seeking query ignored case. - * Google skips the answer if the query doesn't have clear intent. - * - * Generated from protobuf enum NON_ANSWER_SEEKING_QUERY_IGNORED_V2 = 8; - */ - const NON_ANSWER_SEEKING_QUERY_IGNORED_V2 = 8; - /** - * The low-grounded answer case. - * Google skips the answer if a well grounded answer was unable to be - * generated. - * - * Generated from protobuf enum LOW_GROUNDED_ANSWER = 9; - */ - const LOW_GROUNDED_ANSWER = 9; - - private static $valueToName = [ - self::ANSWER_SKIPPED_REASON_UNSPECIFIED => 'ANSWER_SKIPPED_REASON_UNSPECIFIED', - self::ADVERSARIAL_QUERY_IGNORED => 'ADVERSARIAL_QUERY_IGNORED', - self::NON_ANSWER_SEEKING_QUERY_IGNORED => 'NON_ANSWER_SEEKING_QUERY_IGNORED', - self::OUT_OF_DOMAIN_QUERY_IGNORED => 'OUT_OF_DOMAIN_QUERY_IGNORED', - self::POTENTIAL_POLICY_VIOLATION => 'POTENTIAL_POLICY_VIOLATION', - self::NO_RELEVANT_CONTENT => 'NO_RELEVANT_CONTENT', - self::JAIL_BREAKING_QUERY_IGNORED => 'JAIL_BREAKING_QUERY_IGNORED', - self::CUSTOMER_POLICY_VIOLATION => 'CUSTOMER_POLICY_VIOLATION', - self::NON_ANSWER_SEEKING_QUERY_IGNORED_V2 => 'NON_ANSWER_SEEKING_QUERY_IGNORED_V2', - self::LOW_GROUNDED_ANSWER => 'LOW_GROUNDED_ANSWER', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AnswerSkippedReason::class, \Google\Cloud\DiscoveryEngine\V1\Answer_AnswerSkippedReason::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Citation.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Citation.php deleted file mode 100644 index 592d50d6d314..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Citation.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Citation - */ -class Citation extends \Google\Protobuf\Internal\Message -{ - /** - * Index indicates the start of the segment, measured in bytes (UTF-8 - * unicode). - * - * Generated from protobuf field int64 start_index = 1; - */ - protected $start_index = 0; - /** - * End of the attributed segment, exclusive. - * - * Generated from protobuf field int64 end_index = 2; - */ - protected $end_index = 0; - /** - * Citation sources for the attributed segment. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 3; - */ - private $sources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $start_index - * Index indicates the start of the segment, measured in bytes (UTF-8 - * unicode). - * @type int|string $end_index - * End of the attributed segment, exclusive. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Answer\CitationSource>|\Google\Protobuf\Internal\RepeatedField $sources - * Citation sources for the attributed segment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Index indicates the start of the segment, measured in bytes (UTF-8 - * unicode). - * - * Generated from protobuf field int64 start_index = 1; - * @return int|string - */ - public function getStartIndex() - { - return $this->start_index; - } - - /** - * Index indicates the start of the segment, measured in bytes (UTF-8 - * unicode). - * - * Generated from protobuf field int64 start_index = 1; - * @param int|string $var - * @return $this - */ - public function setStartIndex($var) - { - GPBUtil::checkInt64($var); - $this->start_index = $var; - - return $this; - } - - /** - * End of the attributed segment, exclusive. - * - * Generated from protobuf field int64 end_index = 2; - * @return int|string - */ - public function getEndIndex() - { - return $this->end_index; - } - - /** - * End of the attributed segment, exclusive. - * - * Generated from protobuf field int64 end_index = 2; - * @param int|string $var - * @return $this - */ - public function setEndIndex($var) - { - GPBUtil::checkInt64($var); - $this->end_index = $var; - - return $this; - } - - /** - * Citation sources for the attributed segment. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSources() - { - return $this->sources; - } - - /** - * Citation sources for the attributed segment. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.CitationSource sources = 3; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Answer\CitationSource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Answer\CitationSource::class); - $this->sources = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Citation::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Citation::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/CitationSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/CitationSource.php deleted file mode 100644 index 37d8eb5b8206..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/CitationSource.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.CitationSource - */ -class CitationSource extends \Google\Protobuf\Internal\Message -{ - /** - * ID of the citation source. - * - * Generated from protobuf field string reference_id = 1; - */ - protected $reference_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $reference_id - * ID of the citation source. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * ID of the citation source. - * - * Generated from protobuf field string reference_id = 1; - * @return string - */ - public function getReferenceId() - { - return $this->reference_id; - } - - /** - * ID of the citation source. - * - * Generated from protobuf field string reference_id = 1; - * @param string $var - * @return $this - */ - public function setReferenceId($var) - { - GPBUtil::checkString($var, True); - $this->reference_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CitationSource::class, \Google\Cloud\DiscoveryEngine\V1\Answer_CitationSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo.php deleted file mode 100644 index 9e409e314318..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo - */ -class QueryUnderstandingInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Query classification information. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - */ - private $query_classification_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\Answer\QueryUnderstandingInfo\QueryClassificationInfo>|\Google\Protobuf\Internal\RepeatedField $query_classification_info - * Query classification information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Query classification information. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQueryClassificationInfo() - { - return $this->query_classification_info; - } - - /** - * Query classification information. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo query_classification_info = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Answer\QueryUnderstandingInfo\QueryClassificationInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQueryClassificationInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Answer\QueryUnderstandingInfo\QueryClassificationInfo::class); - $this->query_classification_info = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueryUnderstandingInfo::class, \Google\Cloud\DiscoveryEngine\V1\Answer_QueryUnderstandingInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo/QueryClassificationInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo/QueryClassificationInfo.php deleted file mode 100644 index 102c1f4f03ba..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo/QueryClassificationInfo.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo - */ -class QueryClassificationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Query classification type. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - */ - protected $type = 0; - /** - * Classification output. - * - * Generated from protobuf field bool positive = 2; - */ - protected $positive = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Query classification type. - * @type bool $positive - * Classification output. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Query classification type. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Query classification type. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\Answer\QueryUnderstandingInfo\QueryClassificationInfo\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Classification output. - * - * Generated from protobuf field bool positive = 2; - * @return bool - */ - public function getPositive() - { - return $this->positive; - } - - /** - * Classification output. - * - * Generated from protobuf field bool positive = 2; - * @param bool $var - * @return $this - */ - public function setPositive($var) - { - GPBUtil::checkBool($var); - $this->positive = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueryClassificationInfo::class, \Google\Cloud\DiscoveryEngine\V1\Answer_QueryUnderstandingInfo_QueryClassificationInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo/QueryClassificationInfo/Type.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo/QueryClassificationInfo/Type.php deleted file mode 100644 index 893e56561f80..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/QueryUnderstandingInfo/QueryClassificationInfo/Type.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.QueryUnderstandingInfo.QueryClassificationInfo.Type - */ -class Type -{ - /** - * Unspecified query classification type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Adversarial query classification type. - * - * Generated from protobuf enum ADVERSARIAL_QUERY = 1; - */ - const ADVERSARIAL_QUERY = 1; - /** - * Non-answer-seeking query classification type, for chit chat. - * - * Generated from protobuf enum NON_ANSWER_SEEKING_QUERY = 2; - */ - const NON_ANSWER_SEEKING_QUERY = 2; - /** - * Jail-breaking query classification type. - * - * Generated from protobuf enum JAIL_BREAKING_QUERY = 3; - */ - const JAIL_BREAKING_QUERY = 3; - /** - * Non-answer-seeking query classification type, for no clear intent. - * - * Generated from protobuf enum NON_ANSWER_SEEKING_QUERY_V2 = 4; - */ - const NON_ANSWER_SEEKING_QUERY_V2 = 4; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::ADVERSARIAL_QUERY => 'ADVERSARIAL_QUERY', - self::NON_ANSWER_SEEKING_QUERY => 'NON_ANSWER_SEEKING_QUERY', - self::JAIL_BREAKING_QUERY => 'JAIL_BREAKING_QUERY', - self::NON_ANSWER_SEEKING_QUERY_V2 => 'NON_ANSWER_SEEKING_QUERY_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(Type::class, \Google\Cloud\DiscoveryEngine\V1\Answer_QueryUnderstandingInfo_QueryClassificationInfo_Type::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference.php deleted file mode 100644 index d8ecc5eae17d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference.php +++ /dev/null @@ -1,144 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Reference - */ -class Reference extends \Google\Protobuf\Internal\Message -{ - protected $content; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\UnstructuredDocumentInfo $unstructured_document_info - * Unstructured document information. - * @type \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\ChunkInfo $chunk_info - * Chunk information. - * @type \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\StructuredDocumentInfo $structured_document_info - * Structured document information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Unstructured document information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\UnstructuredDocumentInfo|null - */ - public function getUnstructuredDocumentInfo() - { - return $this->readOneof(1); - } - - public function hasUnstructuredDocumentInfo() - { - return $this->hasOneof(1); - } - - /** - * Unstructured document information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo unstructured_document_info = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\UnstructuredDocumentInfo $var - * @return $this - */ - public function setUnstructuredDocumentInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\UnstructuredDocumentInfo::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Chunk information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo chunk_info = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\ChunkInfo|null - */ - public function getChunkInfo() - { - return $this->readOneof(2); - } - - public function hasChunkInfo() - { - return $this->hasOneof(2); - } - - /** - * Chunk information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo chunk_info = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\ChunkInfo $var - * @return $this - */ - public function setChunkInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\ChunkInfo::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Structured document information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\StructuredDocumentInfo|null - */ - public function getStructuredDocumentInfo() - { - return $this->readOneof(3); - } - - public function hasStructuredDocumentInfo() - { - return $this->hasOneof(3); - } - - /** - * Structured document information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Reference.StructuredDocumentInfo structured_document_info = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\StructuredDocumentInfo $var - * @return $this - */ - public function setStructuredDocumentInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\StructuredDocumentInfo::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getContent() - { - return $this->whichOneof("content"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Reference::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Reference::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/ChunkInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/ChunkInfo.php deleted file mode 100644 index ea4c5392b337..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/ChunkInfo.php +++ /dev/null @@ -1,208 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo - */ -class ChunkInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Chunk resource name. - * - * Generated from protobuf field string chunk = 1 [(.google.api.resource_reference) = { - */ - protected $chunk = ''; - /** - * Chunk textual content. - * - * Generated from protobuf field string content = 2; - */ - protected $content = ''; - /** - * The relevance of the chunk for a given query. Values range from 0.0 - * (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * - * Generated from protobuf field optional float relevance_score = 3; - */ - protected $relevance_score = null; - /** - * Document metadata. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - */ - protected $document_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $chunk - * Chunk resource name. - * @type string $content - * Chunk textual content. - * @type float $relevance_score - * The relevance of the chunk for a given query. Values range from 0.0 - * (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * @type \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\ChunkInfo\DocumentMetadata $document_metadata - * Document metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Chunk resource name. - * - * Generated from protobuf field string chunk = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getChunk() - { - return $this->chunk; - } - - /** - * Chunk resource name. - * - * Generated from protobuf field string chunk = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setChunk($var) - { - GPBUtil::checkString($var, True); - $this->chunk = $var; - - return $this; - } - - /** - * Chunk textual content. - * - * Generated from protobuf field string content = 2; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Chunk textual content. - * - * 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; - } - - /** - * The relevance of the chunk for a given query. Values range from 0.0 - * (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * - * Generated from protobuf field optional float relevance_score = 3; - * @return float - */ - public function getRelevanceScore() - { - return isset($this->relevance_score) ? $this->relevance_score : 0.0; - } - - public function hasRelevanceScore() - { - return isset($this->relevance_score); - } - - public function clearRelevanceScore() - { - unset($this->relevance_score); - } - - /** - * The relevance of the chunk for a given query. Values range from 0.0 - * (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * - * Generated from protobuf field optional float relevance_score = 3; - * @param float $var - * @return $this - */ - public function setRelevanceScore($var) - { - GPBUtil::checkFloat($var); - $this->relevance_score = $var; - - return $this; - } - - /** - * Document metadata. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\ChunkInfo\DocumentMetadata|null - */ - public function getDocumentMetadata() - { - return $this->document_metadata; - } - - public function hasDocumentMetadata() - { - return isset($this->document_metadata); - } - - public function clearDocumentMetadata() - { - unset($this->document_metadata); - } - - /** - * Document metadata. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo.DocumentMetadata document_metadata = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\ChunkInfo\DocumentMetadata $var - * @return $this - */ - public function setDocumentMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\ChunkInfo\DocumentMetadata::class); - $this->document_metadata = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkInfo::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Reference_ChunkInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/ChunkInfo/DocumentMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/ChunkInfo/DocumentMetadata.php deleted file mode 100644 index 4310d1a5c8dd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/ChunkInfo/DocumentMetadata.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Reference.ChunkInfo.DocumentMetadata - */ -class DocumentMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - */ - protected $document = ''; - /** - * URI for the document. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Title. - * - * Generated from protobuf field string title = 3; - */ - protected $title = ''; - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 4; - */ - protected $page_identifier = ''; - /** - * The structured JSON metadata for the document. - * It is populated from the struct data from the Chunk in search result. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 5; - */ - protected $struct_data = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $document - * Document resource name. - * @type string $uri - * URI for the document. - * @type string $title - * Title. - * @type string $page_identifier - * Page identifier. - * @type \Google\Protobuf\Struct $struct_data - * The structured JSON metadata for the document. - * It is populated from the struct data from the Chunk in search result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getDocument() - { - return $this->document; - } - - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkString($var, True); - $this->document = $var; - - return $this; - } - - /** - * URI for the document. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI for the document. - * - * 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; - } - - /** - * Title. - * - * Generated from protobuf field string title = 3; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Title. - * - * Generated from protobuf field string title = 3; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 4; - * @return string - */ - public function getPageIdentifier() - { - return $this->page_identifier; - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 4; - * @param string $var - * @return $this - */ - public function setPageIdentifier($var) - { - GPBUtil::checkString($var, True); - $this->page_identifier = $var; - - return $this; - } - - /** - * The structured JSON metadata for the document. - * It is populated from the struct data from the Chunk in search result. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 5; - * @return \Google\Protobuf\Struct|null - */ - public function getStructData() - { - return $this->struct_data; - } - - public function hasStructData() - { - return isset($this->struct_data); - } - - public function clearStructData() - { - unset($this->struct_data); - } - - /** - * The structured JSON metadata for the document. - * It is populated from the struct data from the Chunk in search result. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 5; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setStructData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->struct_data = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DocumentMetadata::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Reference_ChunkInfo_DocumentMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/StructuredDocumentInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/StructuredDocumentInfo.php deleted file mode 100644 index b0663e8a3562..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/StructuredDocumentInfo.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Reference.StructuredDocumentInfo - */ -class StructuredDocumentInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - */ - protected $document = ''; - /** - * Structured search data. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 2; - */ - protected $struct_data = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $document - * Document resource name. - * @type \Google\Protobuf\Struct $struct_data - * Structured search data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getDocument() - { - return $this->document; - } - - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkString($var, True); - $this->document = $var; - - return $this; - } - - /** - * Structured search data. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 2; - * @return \Google\Protobuf\Struct|null - */ - public function getStructData() - { - return $this->struct_data; - } - - public function hasStructData() - { - return isset($this->struct_data); - } - - public function clearStructData() - { - unset($this->struct_data); - } - - /** - * Structured search data. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 2; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setStructData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->struct_data = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StructuredDocumentInfo::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Reference_StructuredDocumentInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/UnstructuredDocumentInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/UnstructuredDocumentInfo.php deleted file mode 100644 index 60902eb67890..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/UnstructuredDocumentInfo.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo - */ -class UnstructuredDocumentInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - */ - protected $document = ''; - /** - * URI for the document. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Title. - * - * Generated from protobuf field string title = 3; - */ - protected $title = ''; - /** - * List of cited chunk contents derived from document content. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - */ - private $chunk_contents; - /** - * The structured JSON metadata for the document. - * It is populated from the struct data from the Chunk in search result. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 5; - */ - protected $struct_data = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $document - * Document resource name. - * @type string $uri - * URI for the document. - * @type string $title - * Title. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Answer\Reference\UnstructuredDocumentInfo\ChunkContent>|\Google\Protobuf\Internal\RepeatedField $chunk_contents - * List of cited chunk contents derived from document content. - * @type \Google\Protobuf\Struct $struct_data - * The structured JSON metadata for the document. - * It is populated from the struct data from the Chunk in search result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getDocument() - { - return $this->document; - } - - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkString($var, True); - $this->document = $var; - - return $this; - } - - /** - * URI for the document. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI for the document. - * - * 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; - } - - /** - * Title. - * - * Generated from protobuf field string title = 3; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Title. - * - * Generated from protobuf field string title = 3; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * List of cited chunk contents derived from document content. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChunkContents() - { - return $this->chunk_contents; - } - - /** - * List of cited chunk contents derived from document content. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo.ChunkContent chunk_contents = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Answer\Reference\UnstructuredDocumentInfo\ChunkContent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChunkContents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Answer\Reference\UnstructuredDocumentInfo\ChunkContent::class); - $this->chunk_contents = $arr; - - return $this; - } - - /** - * The structured JSON metadata for the document. - * It is populated from the struct data from the Chunk in search result. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 5; - * @return \Google\Protobuf\Struct|null - */ - public function getStructData() - { - return $this->struct_data; - } - - public function hasStructData() - { - return isset($this->struct_data); - } - - public function clearStructData() - { - unset($this->struct_data); - } - - /** - * The structured JSON metadata for the document. - * It is populated from the struct data from the Chunk in search result. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 5; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setStructData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->struct_data = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UnstructuredDocumentInfo::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Reference_UnstructuredDocumentInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/UnstructuredDocumentInfo/ChunkContent.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/UnstructuredDocumentInfo/ChunkContent.php deleted file mode 100644 index 2dcc792fb904..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Reference/UnstructuredDocumentInfo/ChunkContent.php +++ /dev/null @@ -1,164 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Reference.UnstructuredDocumentInfo.ChunkContent - */ -class ChunkContent extends \Google\Protobuf\Internal\Message -{ - /** - * Chunk textual content. - * - * Generated from protobuf field string content = 1; - */ - protected $content = ''; - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 2; - */ - protected $page_identifier = ''; - /** - * The relevance of the chunk for a given query. Values range from 0.0 - * (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * - * Generated from protobuf field optional float relevance_score = 3; - */ - protected $relevance_score = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $content - * Chunk textual content. - * @type string $page_identifier - * Page identifier. - * @type float $relevance_score - * The relevance of the chunk for a given query. Values range from 0.0 - * (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Chunk textual content. - * - * Generated from protobuf field string content = 1; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Chunk textual content. - * - * 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; - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 2; - * @return string - */ - public function getPageIdentifier() - { - return $this->page_identifier; - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 2; - * @param string $var - * @return $this - */ - public function setPageIdentifier($var) - { - GPBUtil::checkString($var, True); - $this->page_identifier = $var; - - return $this; - } - - /** - * The relevance of the chunk for a given query. Values range from 0.0 - * (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * - * Generated from protobuf field optional float relevance_score = 3; - * @return float - */ - public function getRelevanceScore() - { - return isset($this->relevance_score) ? $this->relevance_score : 0.0; - } - - public function hasRelevanceScore() - { - return isset($this->relevance_score); - } - - public function clearRelevanceScore() - { - unset($this->relevance_score); - } - - /** - * The relevance of the chunk for a given query. Values range from 0.0 - * (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * - * Generated from protobuf field optional float relevance_score = 3; - * @param float $var - * @return $this - */ - public function setRelevanceScore($var) - { - GPBUtil::checkFloat($var); - $this->relevance_score = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkContent::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Reference_UnstructuredDocumentInfo_ChunkContent::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/State.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/State.php deleted file mode 100644 index 8a5b2ed58a05..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/State.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.State - */ -class State -{ - /** - * Unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Answer generation is currently in progress. - * - * Generated from protobuf enum IN_PROGRESS = 1; - */ - const IN_PROGRESS = 1; - /** - * Answer generation currently failed. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * Answer generation has succeeded. - * - * Generated from protobuf enum SUCCEEDED = 3; - */ - const SUCCEEDED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::FAILED => 'FAILED', - self::SUCCEEDED => 'SUCCEEDED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DiscoveryEngine\V1\Answer_State::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step.php deleted file mode 100644 index 3ce21fda69af..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step.php +++ /dev/null @@ -1,172 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Step - */ -class Step extends \Google\Protobuf\Internal\Message -{ - /** - * The state of the step. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Step.State state = 1; - */ - protected $state = 0; - /** - * The description of the step. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * The thought of the step. - * - * Generated from protobuf field string thought = 3; - */ - protected $thought = ''; - /** - * Actions. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action actions = 4; - */ - private $actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The state of the step. - * @type string $description - * The description of the step. - * @type string $thought - * The thought of the step. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action>|\Google\Protobuf\Internal\RepeatedField $actions - * Actions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * The state of the step. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Step.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of the step. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Step.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\Answer\Step\State::class); - $this->state = $var; - - return $this; - } - - /** - * The description of the step. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * The description of the step. - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * The thought of the step. - * - * Generated from protobuf field string thought = 3; - * @return string - */ - public function getThought() - { - return $this->thought; - } - - /** - * The thought of the step. - * - * Generated from protobuf field string thought = 3; - * @param string $var - * @return $this - */ - public function setThought($var) - { - GPBUtil::checkString($var, True); - $this->thought = $var; - - return $this; - } - - /** - * Actions. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action actions = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActions() - { - return $this->actions; - } - - /** - * Actions. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action actions = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action::class); - $this->actions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Step::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Step::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action.php deleted file mode 100644 index 925b81091912..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Step.Action - */ -class Action extends \Google\Protobuf\Internal\Message -{ - /** - * Observation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation observation = 3; - */ - protected $observation = null; - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\SearchAction $search_action - * Search action. - * @type \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation $observation - * Observation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Search action. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Step.Action.SearchAction search_action = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\SearchAction|null - */ - public function getSearchAction() - { - return $this->readOneof(2); - } - - public function hasSearchAction() - { - return $this->hasOneof(2); - } - - /** - * Search action. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Step.Action.SearchAction search_action = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\SearchAction $var - * @return $this - */ - public function setSearchAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\SearchAction::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Observation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation observation = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation|null - */ - public function getObservation() - { - return $this->observation; - } - - public function hasObservation() - { - return isset($this->observation); - } - - public function clearObservation() - { - unset($this->observation); - } - - /** - * Observation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation observation = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation $var - * @return $this - */ - public function setObservation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation::class); - $this->observation = $var; - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Action::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Step_Action::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation.php deleted file mode 100644 index 369616c03316..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Step.Action.Observation - */ -class Observation extends \Google\Protobuf\Internal\Message -{ - /** - * Search results observed by the search action, it can be snippets info - * or chunk info, depending on the citation type set by the user. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2; - */ - private $search_results; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation\SearchResult>|\Google\Protobuf\Internal\RepeatedField $search_results - * Search results observed by the search action, it can be snippets info - * or chunk info, depending on the citation type set by the user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Search results observed by the search action, it can be snippets info - * or chunk info, depending on the citation type set by the user. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSearchResults() - { - return $this->search_results; - } - - /** - * Search results observed by the search action, it can be snippets info - * or chunk info, depending on the citation type set by the user. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult search_results = 2; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation\SearchResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSearchResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation\SearchResult::class); - $this->search_results = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Observation::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Step_Action_Observation::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult.php deleted file mode 100644 index 6f22c840aef1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult.php +++ /dev/null @@ -1,268 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult - */ -class SearchResult extends \Google\Protobuf\Internal\Message -{ - /** - * Document resource name. - * - * Generated from protobuf field string document = 1; - */ - protected $document = ''; - /** - * URI for the document. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Title. - * - * Generated from protobuf field string title = 3; - */ - protected $title = ''; - /** - * If citation_type is DOCUMENT_LEVEL_CITATION, populate document - * level snippets. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - */ - private $snippet_info; - /** - * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on, - * populate chunk info. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - */ - private $chunk_info; - /** - * Data representation. - * The structured JSON data for the document. - * It's populated from the struct data from the Document, or the - * Chunk in search result. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 6; - */ - protected $struct_data = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $document - * Document resource name. - * @type string $uri - * URI for the document. - * @type string $title - * Title. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation\SearchResult\SnippetInfo>|\Google\Protobuf\Internal\RepeatedField $snippet_info - * If citation_type is DOCUMENT_LEVEL_CITATION, populate document - * level snippets. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation\SearchResult\ChunkInfo>|\Google\Protobuf\Internal\RepeatedField $chunk_info - * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on, - * populate chunk info. - * @type \Google\Protobuf\Struct $struct_data - * Data representation. - * The structured JSON data for the document. - * It's populated from the struct data from the Document, or the - * Chunk in search result. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Document resource name. - * - * Generated from protobuf field string document = 1; - * @return string - */ - public function getDocument() - { - return $this->document; - } - - /** - * Document resource name. - * - * Generated from protobuf field string document = 1; - * @param string $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkString($var, True); - $this->document = $var; - - return $this; - } - - /** - * URI for the document. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI for the document. - * - * 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; - } - - /** - * Title. - * - * Generated from protobuf field string title = 3; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Title. - * - * Generated from protobuf field string title = 3; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * If citation_type is DOCUMENT_LEVEL_CITATION, populate document - * level snippets. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSnippetInfo() - { - return $this->snippet_info; - } - - /** - * If citation_type is DOCUMENT_LEVEL_CITATION, populate document - * level snippets. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.SnippetInfo snippet_info = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation\SearchResult\SnippetInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSnippetInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation\SearchResult\SnippetInfo::class); - $this->snippet_info = $arr; - - return $this; - } - - /** - * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on, - * populate chunk info. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChunkInfo() - { - return $this->chunk_info; - } - - /** - * If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on, - * populate chunk info. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.ChunkInfo chunk_info = 5; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation\SearchResult\ChunkInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChunkInfo($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Answer\Step\Action\Observation\SearchResult\ChunkInfo::class); - $this->chunk_info = $arr; - - return $this; - } - - /** - * Data representation. - * The structured JSON data for the document. - * It's populated from the struct data from the Document, or the - * Chunk in search result. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 6; - * @return \Google\Protobuf\Struct|null - */ - public function getStructData() - { - return $this->struct_data; - } - - public function hasStructData() - { - return isset($this->struct_data); - } - - public function clearStructData() - { - unset($this->struct_data); - } - - /** - * Data representation. - * The structured JSON data for the document. - * It's populated from the struct data from the Document, or the - * Chunk in search result. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 6; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setStructData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->struct_data = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchResult::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Step_Action_Observation_SearchResult::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult/ChunkInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult/ChunkInfo.php deleted file mode 100644 index 1f1f73077745..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult/ChunkInfo.php +++ /dev/null @@ -1,164 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.ChunkInfo - */ -class ChunkInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Chunk resource name. - * - * Generated from protobuf field string chunk = 1; - */ - protected $chunk = ''; - /** - * Chunk textual content. - * - * Generated from protobuf field string content = 2; - */ - protected $content = ''; - /** - * The relevance of the chunk for a given query. Values range from - * 0.0 (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * - * Generated from protobuf field optional float relevance_score = 3; - */ - protected $relevance_score = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $chunk - * Chunk resource name. - * @type string $content - * Chunk textual content. - * @type float $relevance_score - * The relevance of the chunk for a given query. Values range from - * 0.0 (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Chunk resource name. - * - * Generated from protobuf field string chunk = 1; - * @return string - */ - public function getChunk() - { - return $this->chunk; - } - - /** - * Chunk resource name. - * - * Generated from protobuf field string chunk = 1; - * @param string $var - * @return $this - */ - public function setChunk($var) - { - GPBUtil::checkString($var, True); - $this->chunk = $var; - - return $this; - } - - /** - * Chunk textual content. - * - * Generated from protobuf field string content = 2; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Chunk textual content. - * - * 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; - } - - /** - * The relevance of the chunk for a given query. Values range from - * 0.0 (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * - * Generated from protobuf field optional float relevance_score = 3; - * @return float - */ - public function getRelevanceScore() - { - return isset($this->relevance_score) ? $this->relevance_score : 0.0; - } - - public function hasRelevanceScore() - { - return isset($this->relevance_score); - } - - public function clearRelevanceScore() - { - unset($this->relevance_score); - } - - /** - * The relevance of the chunk for a given query. Values range from - * 0.0 (completely irrelevant) to 1.0 (completely relevant). - * This value is for informational purpose only. It may change for - * the same query and chunk at any time due to a model retraining or - * change in implementation. - * - * Generated from protobuf field optional float relevance_score = 3; - * @param float $var - * @return $this - */ - public function setRelevanceScore($var) - { - GPBUtil::checkFloat($var); - $this->relevance_score = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkInfo::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Step_Action_Observation_SearchResult_ChunkInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult/SnippetInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult/SnippetInfo.php deleted file mode 100644 index bcd790cf5761..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/Observation/SearchResult/SnippetInfo.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Step.Action.Observation.SearchResult.SnippetInfo - */ -class SnippetInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Snippet content. - * - * Generated from protobuf field string snippet = 1; - */ - protected $snippet = ''; - /** - * Status of the snippet defined by the search team. - * - * Generated from protobuf field string snippet_status = 2; - */ - protected $snippet_status = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $snippet - * Snippet content. - * @type string $snippet_status - * Status of the snippet defined by the search team. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * Snippet content. - * - * Generated from protobuf field string snippet = 1; - * @return string - */ - public function getSnippet() - { - return $this->snippet; - } - - /** - * Snippet content. - * - * Generated from protobuf field string snippet = 1; - * @param string $var - * @return $this - */ - public function setSnippet($var) - { - GPBUtil::checkString($var, True); - $this->snippet = $var; - - return $this; - } - - /** - * Status of the snippet defined by the search team. - * - * Generated from protobuf field string snippet_status = 2; - * @return string - */ - public function getSnippetStatus() - { - return $this->snippet_status; - } - - /** - * Status of the snippet defined by the search team. - * - * Generated from protobuf field string snippet_status = 2; - * @param string $var - * @return $this - */ - public function setSnippetStatus($var) - { - GPBUtil::checkString($var, True); - $this->snippet_status = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SnippetInfo::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Step_Action_Observation_SearchResult_SnippetInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/SearchAction.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/SearchAction.php deleted file mode 100644 index 76740868b4af..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/Action/SearchAction.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Step.Action.SearchAction - */ -class SearchAction extends \Google\Protobuf\Internal\Message -{ - /** - * The query to search. - * - * Generated from protobuf field string query = 1; - */ - protected $query = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * The query to search. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Answer::initOnce(); - parent::__construct($data); - } - - /** - * The query to search. - * - * Generated from protobuf field string query = 1; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * The query to search. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchAction::class, \Google\Cloud\DiscoveryEngine\V1\Answer_Step_Action_SearchAction::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/State.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/State.php deleted file mode 100644 index 1fd07d440af9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Answer/Step/State.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.discoveryengine.v1.Answer.Step.State - */ -class State -{ - /** - * Unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Step is currently in progress. - * - * Generated from protobuf enum IN_PROGRESS = 1; - */ - const IN_PROGRESS = 1; - /** - * Step currently failed. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * Step has succeeded. - * - * Generated from protobuf enum SUCCEEDED = 3; - */ - const SUCCEEDED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::FAILED => 'FAILED', - self::SUCCEEDED => 'SUCCEEDED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DiscoveryEngine\V1\Answer_Step_State::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest.php deleted file mode 100644 index 9b11d0f2349c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest.php +++ /dev/null @@ -1,622 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest - */ -class AnswerQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Search serving config, such as - * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, - * or - * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. - * This field is used to identify the serving configuration name, set - * of models used to make the search. - * - * Generated from protobuf field string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $serving_config = ''; - /** - * Required. Current user query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Query query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = null; - /** - * The session resource name. Not required. - * When session field is not set, the API is in sessionless mode. - * We support auto session mode: users can use the wildcard symbol `-` as - * session ID. A new ID will be automatically generated and assigned. - * - * Generated from protobuf field string session = 3 [(.google.api.resource_reference) = { - */ - protected $session = ''; - /** - * Model specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SafetySpec safety_spec = 4; - */ - protected $safety_spec = null; - /** - * Related questions specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5; - */ - protected $related_questions_spec = null; - /** - * Answer generation specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7; - */ - protected $answer_generation_spec = null; - /** - * Search specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec search_spec = 8; - */ - protected $search_spec = null; - /** - * Query understanding specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9; - */ - protected $query_understanding_spec = null; - /** - * Deprecated: This field is deprecated. Streaming Answer API will be - * supported. - * Asynchronous mode control. - * If enabled, the response will be returned with answer/session resource - * name without final answer. The API users need to do the polling to get - * the latest status of answer/session by calling - * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer] - * or - * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1.ConversationalSearchService.GetSession] - * method. - * - * Generated from protobuf field bool asynchronous_mode = 10 [deprecated = true]; - * @deprecated - */ - protected $asynchronous_mode = false; - /** - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_pseudo_id = 12; - */ - protected $user_pseudo_id = ''; - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 13; - */ - private $user_labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $serving_config - * Required. The resource name of the Search serving config, such as - * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, - * or - * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. - * This field is used to identify the serving configuration name, set - * of models used to make the search. - * @type \Google\Cloud\DiscoveryEngine\V1\Query $query - * Required. Current user query. - * @type string $session - * The session resource name. Not required. - * When session field is not set, the API is in sessionless mode. - * We support auto session mode: users can use the wildcard symbol `-` as - * session ID. A new ID will be automatically generated and assigned. - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SafetySpec $safety_spec - * Model specification. - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\RelatedQuestionsSpec $related_questions_spec - * Related questions specification. - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec $answer_generation_spec - * Answer generation specification. - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec $search_spec - * Search specification. - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec $query_understanding_spec - * Query understanding specification. - * @type bool $asynchronous_mode - * Deprecated: This field is deprecated. Streaming Answer API will be - * supported. - * Asynchronous mode control. - * If enabled, the response will be returned with answer/session resource - * name without final answer. The API users need to do the polling to get - * the latest status of answer/session by calling - * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer] - * or - * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1.ConversationalSearchService.GetSession] - * method. - * @type string $user_pseudo_id - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * @type array|\Google\Protobuf\Internal\MapField $user_labels - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Search serving config, such as - * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, - * or - * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. - * This field is used to identify the serving configuration name, set - * of models used to make the search. - * - * Generated from protobuf field string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getServingConfig() - { - return $this->serving_config; - } - - /** - * Required. The resource name of the Search serving config, such as - * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, - * or - * `projects/*/locations/global/collections/default_collection/dataStores/*/servingConfigs/default_serving_config`. - * This field is used to identify the serving configuration name, set - * of models used to make the search. - * - * Generated from protobuf field string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setServingConfig($var) - { - GPBUtil::checkString($var, True); - $this->serving_config = $var; - - return $this; - } - - /** - * Required. Current user query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Query query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Query|null - */ - public function getQuery() - { - return $this->query; - } - - public function hasQuery() - { - return isset($this->query); - } - - public function clearQuery() - { - unset($this->query); - } - - /** - * Required. Current user query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Query query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Query $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Query::class); - $this->query = $var; - - return $this; - } - - /** - * The session resource name. Not required. - * When session field is not set, the API is in sessionless mode. - * We support auto session mode: users can use the wildcard symbol `-` as - * session ID. A new ID will be automatically generated and assigned. - * - * Generated from protobuf field string session = 3 [(.google.api.resource_reference) = { - * @return string - */ - public function getSession() - { - return $this->session; - } - - /** - * The session resource name. Not required. - * When session field is not set, the API is in sessionless mode. - * We support auto session mode: users can use the wildcard symbol `-` as - * session ID. A new ID will be automatically generated and assigned. - * - * Generated from protobuf field string session = 3 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSession($var) - { - GPBUtil::checkString($var, True); - $this->session = $var; - - return $this; - } - - /** - * Model specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SafetySpec safety_spec = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SafetySpec|null - */ - public function getSafetySpec() - { - return $this->safety_spec; - } - - public function hasSafetySpec() - { - return isset($this->safety_spec); - } - - public function clearSafetySpec() - { - unset($this->safety_spec); - } - - /** - * Model specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SafetySpec safety_spec = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SafetySpec $var - * @return $this - */ - public function setSafetySpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SafetySpec::class); - $this->safety_spec = $var; - - return $this; - } - - /** - * Related questions specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\RelatedQuestionsSpec|null - */ - public function getRelatedQuestionsSpec() - { - return $this->related_questions_spec; - } - - public function hasRelatedQuestionsSpec() - { - return isset($this->related_questions_spec); - } - - public function clearRelatedQuestionsSpec() - { - unset($this->related_questions_spec); - } - - /** - * Related questions specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.RelatedQuestionsSpec related_questions_spec = 5; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\RelatedQuestionsSpec $var - * @return $this - */ - public function setRelatedQuestionsSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\RelatedQuestionsSpec::class); - $this->related_questions_spec = $var; - - return $this; - } - - /** - * Answer generation specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec|null - */ - public function getAnswerGenerationSpec() - { - return $this->answer_generation_spec; - } - - public function hasAnswerGenerationSpec() - { - return isset($this->answer_generation_spec); - } - - public function clearAnswerGenerationSpec() - { - unset($this->answer_generation_spec); - } - - /** - * Answer generation specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec answer_generation_spec = 7; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec $var - * @return $this - */ - public function setAnswerGenerationSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec::class); - $this->answer_generation_spec = $var; - - return $this; - } - - /** - * Search specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec search_spec = 8; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec|null - */ - public function getSearchSpec() - { - return $this->search_spec; - } - - public function hasSearchSpec() - { - return isset($this->search_spec); - } - - public function clearSearchSpec() - { - unset($this->search_spec); - } - - /** - * Search specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec search_spec = 8; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec $var - * @return $this - */ - public function setSearchSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec::class); - $this->search_spec = $var; - - return $this; - } - - /** - * Query understanding specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec|null - */ - public function getQueryUnderstandingSpec() - { - return $this->query_understanding_spec; - } - - public function hasQueryUnderstandingSpec() - { - return isset($this->query_understanding_spec); - } - - public function clearQueryUnderstandingSpec() - { - unset($this->query_understanding_spec); - } - - /** - * Query understanding specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec query_understanding_spec = 9; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec $var - * @return $this - */ - public function setQueryUnderstandingSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec::class); - $this->query_understanding_spec = $var; - - return $this; - } - - /** - * Deprecated: This field is deprecated. Streaming Answer API will be - * supported. - * Asynchronous mode control. - * If enabled, the response will be returned with answer/session resource - * name without final answer. The API users need to do the polling to get - * the latest status of answer/session by calling - * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer] - * or - * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1.ConversationalSearchService.GetSession] - * method. - * - * Generated from protobuf field bool asynchronous_mode = 10 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getAsynchronousMode() - { - @trigger_error('asynchronous_mode is deprecated.', E_USER_DEPRECATED); - return $this->asynchronous_mode; - } - - /** - * Deprecated: This field is deprecated. Streaming Answer API will be - * supported. - * Asynchronous mode control. - * If enabled, the response will be returned with answer/session resource - * name without final answer. The API users need to do the polling to get - * the latest status of answer/session by calling - * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer] - * or - * [ConversationalSearchService.GetSession][google.cloud.discoveryengine.v1.ConversationalSearchService.GetSession] - * method. - * - * Generated from protobuf field bool asynchronous_mode = 10 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setAsynchronousMode($var) - { - @trigger_error('asynchronous_mode is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->asynchronous_mode = $var; - - return $this; - } - - /** - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_pseudo_id = 12; - * @return string - */ - public function getUserPseudoId() - { - return $this->user_pseudo_id; - } - - /** - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_pseudo_id = 12; - * @param string $var - * @return $this - */ - public function setUserPseudoId($var) - { - GPBUtil::checkString($var, True); - $this->user_pseudo_id = $var; - - return $this; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 13; - * @return \Google\Protobuf\Internal\MapField - */ - public function getUserLabels() - { - return $this->user_labels; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 13; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->user_labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec.php deleted file mode 100644 index 7aeed6a98142..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec.php +++ /dev/null @@ -1,454 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec - */ -class AnswerGenerationSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Answer generation model specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - */ - protected $model_spec = null; - /** - * Answer generation prompt specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - */ - protected $prompt_spec = null; - /** - * Specifies whether to include citation metadata in the answer. The default - * value is `false`. - * - * Generated from protobuf field bool include_citations = 3; - */ - protected $include_citations = false; - /** - * Language code for Answer. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * Note: This is an experimental feature. - * - * Generated from protobuf field string answer_language_code = 4; - */ - protected $answer_language_code = ''; - /** - * Specifies whether to filter out adversarial queries. The default value - * is `false`. - * Google employs search-query classification to detect adversarial - * queries. No answer is returned if the search query is classified as an - * adversarial query. For example, a user might ask a question regarding - * negative comments about the company or submit a query designed to - * generate unsafe, policy-violating output. If this field is set to - * `true`, we skip generating answers for adversarial queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_adversarial_query = 5; - */ - protected $ignore_adversarial_query = false; - /** - * Specifies whether to filter out queries that are not answer-seeking. - * The default value is `false`. - * Google employs search-query classification to detect answer-seeking - * queries. No answer is returned if the search query is classified as a - * non-answer seeking query. If this field is set to `true`, we skip - * generating answers for non-answer seeking queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_non_answer_seeking_query = 6; - */ - protected $ignore_non_answer_seeking_query = false; - /** - * Specifies whether to filter out queries that have low relevance. - * If this field is set to `false`, all search results are used regardless - * of relevance to generate answers. If set to `true` or unset, the behavior - * will be determined automatically by the service. - * - * Generated from protobuf field optional bool ignore_low_relevant_content = 7; - */ - protected $ignore_low_relevant_content = null; - /** - * Optional. Specifies whether to filter out jail-breaking queries. The - * default value is `false`. - * Google employs search-query classification to detect jail-breaking - * queries. No summary is returned if the search query is classified as a - * jail-breaking query. A user might add instructions to the query to - * change the tone, style, language, content of the answer, or ask the - * model to act as a different entity, e.g. "Reply in the tone of a - * competing company's CEO". If this field is set to `true`, we skip - * generating summaries for jail-breaking queries and return fallback - * messages instead. - * - * Generated from protobuf field bool ignore_jail_breaking_query = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ignore_jail_breaking_query = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec\ModelSpec $model_spec - * Answer generation model specification. - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec\PromptSpec $prompt_spec - * Answer generation prompt specification. - * @type bool $include_citations - * Specifies whether to include citation metadata in the answer. The default - * value is `false`. - * @type string $answer_language_code - * Language code for Answer. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * Note: This is an experimental feature. - * @type bool $ignore_adversarial_query - * Specifies whether to filter out adversarial queries. The default value - * is `false`. - * Google employs search-query classification to detect adversarial - * queries. No answer is returned if the search query is classified as an - * adversarial query. For example, a user might ask a question regarding - * negative comments about the company or submit a query designed to - * generate unsafe, policy-violating output. If this field is set to - * `true`, we skip generating answers for adversarial queries and return - * fallback messages instead. - * @type bool $ignore_non_answer_seeking_query - * Specifies whether to filter out queries that are not answer-seeking. - * The default value is `false`. - * Google employs search-query classification to detect answer-seeking - * queries. No answer is returned if the search query is classified as a - * non-answer seeking query. If this field is set to `true`, we skip - * generating answers for non-answer seeking queries and return - * fallback messages instead. - * @type bool $ignore_low_relevant_content - * Specifies whether to filter out queries that have low relevance. - * If this field is set to `false`, all search results are used regardless - * of relevance to generate answers. If set to `true` or unset, the behavior - * will be determined automatically by the service. - * @type bool $ignore_jail_breaking_query - * Optional. Specifies whether to filter out jail-breaking queries. The - * default value is `false`. - * Google employs search-query classification to detect jail-breaking - * queries. No summary is returned if the search query is classified as a - * jail-breaking query. A user might add instructions to the query to - * change the tone, style, language, content of the answer, or ask the - * model to act as a different entity, e.g. "Reply in the tone of a - * competing company's CEO". If this field is set to `true`, we skip - * generating summaries for jail-breaking queries and return fallback - * messages instead. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Answer generation model specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec\ModelSpec|null - */ - public function getModelSpec() - { - return $this->model_spec; - } - - public function hasModelSpec() - { - return isset($this->model_spec); - } - - public function clearModelSpec() - { - unset($this->model_spec); - } - - /** - * Answer generation model specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec model_spec = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec\ModelSpec $var - * @return $this - */ - public function setModelSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec\ModelSpec::class); - $this->model_spec = $var; - - return $this; - } - - /** - * Answer generation prompt specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec\PromptSpec|null - */ - public function getPromptSpec() - { - return $this->prompt_spec; - } - - public function hasPromptSpec() - { - return isset($this->prompt_spec); - } - - public function clearPromptSpec() - { - unset($this->prompt_spec); - } - - /** - * Answer generation prompt specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec prompt_spec = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec\PromptSpec $var - * @return $this - */ - public function setPromptSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\AnswerGenerationSpec\PromptSpec::class); - $this->prompt_spec = $var; - - return $this; - } - - /** - * Specifies whether to include citation metadata in the answer. The default - * value is `false`. - * - * Generated from protobuf field bool include_citations = 3; - * @return bool - */ - public function getIncludeCitations() - { - return $this->include_citations; - } - - /** - * Specifies whether to include citation metadata in the answer. The default - * value is `false`. - * - * Generated from protobuf field bool include_citations = 3; - * @param bool $var - * @return $this - */ - public function setIncludeCitations($var) - { - GPBUtil::checkBool($var); - $this->include_citations = $var; - - return $this; - } - - /** - * Language code for Answer. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * Note: This is an experimental feature. - * - * Generated from protobuf field string answer_language_code = 4; - * @return string - */ - public function getAnswerLanguageCode() - { - return $this->answer_language_code; - } - - /** - * Language code for Answer. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * Note: This is an experimental feature. - * - * Generated from protobuf field string answer_language_code = 4; - * @param string $var - * @return $this - */ - public function setAnswerLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->answer_language_code = $var; - - return $this; - } - - /** - * Specifies whether to filter out adversarial queries. The default value - * is `false`. - * Google employs search-query classification to detect adversarial - * queries. No answer is returned if the search query is classified as an - * adversarial query. For example, a user might ask a question regarding - * negative comments about the company or submit a query designed to - * generate unsafe, policy-violating output. If this field is set to - * `true`, we skip generating answers for adversarial queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_adversarial_query = 5; - * @return bool - */ - public function getIgnoreAdversarialQuery() - { - return $this->ignore_adversarial_query; - } - - /** - * Specifies whether to filter out adversarial queries. The default value - * is `false`. - * Google employs search-query classification to detect adversarial - * queries. No answer is returned if the search query is classified as an - * adversarial query. For example, a user might ask a question regarding - * negative comments about the company or submit a query designed to - * generate unsafe, policy-violating output. If this field is set to - * `true`, we skip generating answers for adversarial queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_adversarial_query = 5; - * @param bool $var - * @return $this - */ - public function setIgnoreAdversarialQuery($var) - { - GPBUtil::checkBool($var); - $this->ignore_adversarial_query = $var; - - return $this; - } - - /** - * Specifies whether to filter out queries that are not answer-seeking. - * The default value is `false`. - * Google employs search-query classification to detect answer-seeking - * queries. No answer is returned if the search query is classified as a - * non-answer seeking query. If this field is set to `true`, we skip - * generating answers for non-answer seeking queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_non_answer_seeking_query = 6; - * @return bool - */ - public function getIgnoreNonAnswerSeekingQuery() - { - return $this->ignore_non_answer_seeking_query; - } - - /** - * Specifies whether to filter out queries that are not answer-seeking. - * The default value is `false`. - * Google employs search-query classification to detect answer-seeking - * queries. No answer is returned if the search query is classified as a - * non-answer seeking query. If this field is set to `true`, we skip - * generating answers for non-answer seeking queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_non_answer_seeking_query = 6; - * @param bool $var - * @return $this - */ - public function setIgnoreNonAnswerSeekingQuery($var) - { - GPBUtil::checkBool($var); - $this->ignore_non_answer_seeking_query = $var; - - return $this; - } - - /** - * Specifies whether to filter out queries that have low relevance. - * If this field is set to `false`, all search results are used regardless - * of relevance to generate answers. If set to `true` or unset, the behavior - * will be determined automatically by the service. - * - * Generated from protobuf field optional bool ignore_low_relevant_content = 7; - * @return bool - */ - public function getIgnoreLowRelevantContent() - { - return isset($this->ignore_low_relevant_content) ? $this->ignore_low_relevant_content : false; - } - - public function hasIgnoreLowRelevantContent() - { - return isset($this->ignore_low_relevant_content); - } - - public function clearIgnoreLowRelevantContent() - { - unset($this->ignore_low_relevant_content); - } - - /** - * Specifies whether to filter out queries that have low relevance. - * If this field is set to `false`, all search results are used regardless - * of relevance to generate answers. If set to `true` or unset, the behavior - * will be determined automatically by the service. - * - * Generated from protobuf field optional bool ignore_low_relevant_content = 7; - * @param bool $var - * @return $this - */ - public function setIgnoreLowRelevantContent($var) - { - GPBUtil::checkBool($var); - $this->ignore_low_relevant_content = $var; - - return $this; - } - - /** - * Optional. Specifies whether to filter out jail-breaking queries. The - * default value is `false`. - * Google employs search-query classification to detect jail-breaking - * queries. No summary is returned if the search query is classified as a - * jail-breaking query. A user might add instructions to the query to - * change the tone, style, language, content of the answer, or ask the - * model to act as a different entity, e.g. "Reply in the tone of a - * competing company's CEO". If this field is set to `true`, we skip - * generating summaries for jail-breaking queries and return fallback - * messages instead. - * - * Generated from protobuf field bool ignore_jail_breaking_query = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIgnoreJailBreakingQuery() - { - return $this->ignore_jail_breaking_query; - } - - /** - * Optional. Specifies whether to filter out jail-breaking queries. The - * default value is `false`. - * Google employs search-query classification to detect jail-breaking - * queries. No summary is returned if the search query is classified as a - * jail-breaking query. A user might add instructions to the query to - * change the tone, style, language, content of the answer, or ask the - * model to act as a different entity, e.g. "Reply in the tone of a - * competing company's CEO". If this field is set to `true`, we skip - * generating summaries for jail-breaking queries and return fallback - * messages instead. - * - * Generated from protobuf field bool ignore_jail_breaking_query = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIgnoreJailBreakingQuery($var) - { - GPBUtil::checkBool($var); - $this->ignore_jail_breaking_query = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AnswerGenerationSpec::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_AnswerGenerationSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec/ModelSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec/ModelSpec.php deleted file mode 100644 index e076247c304f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec/ModelSpec.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec.ModelSpec - */ -class ModelSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Model version. If not set, it will use the default stable model. - * Allowed values are: stable, preview. - * - * Generated from protobuf field string model_version = 1; - */ - protected $model_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $model_version - * Model version. If not set, it will use the default stable model. - * Allowed values are: stable, preview. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Model version. If not set, it will use the default stable model. - * Allowed values are: stable, preview. - * - * Generated from protobuf field string model_version = 1; - * @return string - */ - public function getModelVersion() - { - return $this->model_version; - } - - /** - * Model version. If not set, it will use the default stable model. - * Allowed values are: stable, preview. - * - * Generated from protobuf field string model_version = 1; - * @param string $var - * @return $this - */ - public function setModelVersion($var) - { - GPBUtil::checkString($var, True); - $this->model_version = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ModelSpec::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_AnswerGenerationSpec_ModelSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec/PromptSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec/PromptSpec.php deleted file mode 100644 index defc014a8662..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/AnswerGenerationSpec/PromptSpec.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.AnswerGenerationSpec.PromptSpec - */ -class PromptSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Customized preamble. - * - * Generated from protobuf field string preamble = 1; - */ - protected $preamble = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $preamble - * Customized preamble. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Customized preamble. - * - * Generated from protobuf field string preamble = 1; - * @return string - */ - public function getPreamble() - { - return $this->preamble; - } - - /** - * Customized preamble. - * - * Generated from protobuf field string preamble = 1; - * @param string $var - * @return $this - */ - public function setPreamble($var) - { - GPBUtil::checkString($var, True); - $this->preamble = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PromptSpec::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_AnswerGenerationSpec_PromptSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec.php deleted file mode 100644 index 63865dccfc6c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec - */ -class QueryUnderstandingSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Query classification specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; - */ - protected $query_classification_spec = null; - /** - * Query rephraser specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; - */ - protected $query_rephraser_spec = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryClassificationSpec $query_classification_spec - * Query classification specification. - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryRephraserSpec $query_rephraser_spec - * Query rephraser specification. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Query classification specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryClassificationSpec|null - */ - public function getQueryClassificationSpec() - { - return $this->query_classification_spec; - } - - public function hasQueryClassificationSpec() - { - return isset($this->query_classification_spec); - } - - public function clearQueryClassificationSpec() - { - unset($this->query_classification_spec); - } - - /** - * Query classification specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec query_classification_spec = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryClassificationSpec $var - * @return $this - */ - public function setQueryClassificationSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryClassificationSpec::class); - $this->query_classification_spec = $var; - - return $this; - } - - /** - * Query rephraser specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryRephraserSpec|null - */ - public function getQueryRephraserSpec() - { - return $this->query_rephraser_spec; - } - - public function hasQueryRephraserSpec() - { - return isset($this->query_rephraser_spec); - } - - public function clearQueryRephraserSpec() - { - unset($this->query_rephraser_spec); - } - - /** - * Query rephraser specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec query_rephraser_spec = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryRephraserSpec $var - * @return $this - */ - public function setQueryRephraserSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryRephraserSpec::class); - $this->query_rephraser_spec = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueryUnderstandingSpec::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_QueryUnderstandingSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryClassificationSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryClassificationSpec.php deleted file mode 100644 index 7ea7f1045192..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryClassificationSpec.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec - */ -class QueryClassificationSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Enabled query classification types. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - */ - private $types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $types - * Enabled query classification types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Enabled query classification types. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * Enabled query classification types. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\QueryUnderstandingSpec\QueryClassificationSpec\Type::class); - $this->types = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueryClassificationSpec::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryClassificationSpec/Type.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryClassificationSpec/Type.php deleted file mode 100644 index 28f3632e00bc..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryClassificationSpec/Type.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type - */ -class Type -{ - /** - * Unspecified query classification type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Adversarial query classification type. - * - * Generated from protobuf enum ADVERSARIAL_QUERY = 1; - */ - const ADVERSARIAL_QUERY = 1; - /** - * Non-answer-seeking query classification type, for chit chat. - * - * Generated from protobuf enum NON_ANSWER_SEEKING_QUERY = 2; - */ - const NON_ANSWER_SEEKING_QUERY = 2; - /** - * Jail-breaking query classification type. - * - * Generated from protobuf enum JAIL_BREAKING_QUERY = 3; - */ - const JAIL_BREAKING_QUERY = 3; - /** - * Non-answer-seeking query classification type, for no clear intent. - * - * Generated from protobuf enum NON_ANSWER_SEEKING_QUERY_V2 = 4; - */ - const NON_ANSWER_SEEKING_QUERY_V2 = 4; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::ADVERSARIAL_QUERY => 'ADVERSARIAL_QUERY', - self::NON_ANSWER_SEEKING_QUERY => 'NON_ANSWER_SEEKING_QUERY', - self::JAIL_BREAKING_QUERY => 'JAIL_BREAKING_QUERY', - self::NON_ANSWER_SEEKING_QUERY_V2 => 'NON_ANSWER_SEEKING_QUERY_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(Type::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_QueryUnderstandingSpec_QueryClassificationSpec_Type::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryRephraserSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryRephraserSpec.php deleted file mode 100644 index fc854d1f66a6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/QueryUnderstandingSpec/QueryRephraserSpec.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec - */ -class QueryRephraserSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Disable query rephraser. - * - * Generated from protobuf field bool disable = 1; - */ - protected $disable = false; - /** - * Max rephrase steps. - * The max number is 5 steps. - * If not set or set to < 1, it will be set to 1 by default. - * - * Generated from protobuf field int32 max_rephrase_steps = 2; - */ - protected $max_rephrase_steps = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $disable - * Disable query rephraser. - * @type int $max_rephrase_steps - * Max rephrase steps. - * The max number is 5 steps. - * If not set or set to < 1, it will be set to 1 by default. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Disable query rephraser. - * - * Generated from protobuf field bool disable = 1; - * @return bool - */ - public function getDisable() - { - return $this->disable; - } - - /** - * Disable query rephraser. - * - * Generated from protobuf field bool disable = 1; - * @param bool $var - * @return $this - */ - public function setDisable($var) - { - GPBUtil::checkBool($var); - $this->disable = $var; - - return $this; - } - - /** - * Max rephrase steps. - * The max number is 5 steps. - * If not set or set to < 1, it will be set to 1 by default. - * - * Generated from protobuf field int32 max_rephrase_steps = 2; - * @return int - */ - public function getMaxRephraseSteps() - { - return $this->max_rephrase_steps; - } - - /** - * Max rephrase steps. - * The max number is 5 steps. - * If not set or set to < 1, it will be set to 1 by default. - * - * Generated from protobuf field int32 max_rephrase_steps = 2; - * @param int $var - * @return $this - */ - public function setMaxRephraseSteps($var) - { - GPBUtil::checkInt32($var); - $this->max_rephrase_steps = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueryRephraserSpec::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_QueryUnderstandingSpec_QueryRephraserSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/RelatedQuestionsSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/RelatedQuestionsSpec.php deleted file mode 100644 index 965bd18ca470..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/RelatedQuestionsSpec.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.RelatedQuestionsSpec - */ -class RelatedQuestionsSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Enable related questions feature if true. - * - * Generated from protobuf field bool enable = 1; - */ - protected $enable = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable - * Enable related questions feature if true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Enable related questions feature if true. - * - * Generated from protobuf field bool enable = 1; - * @return bool - */ - public function getEnable() - { - return $this->enable; - } - - /** - * Enable related questions feature if true. - * - * Generated from protobuf field bool enable = 1; - * @param bool $var - * @return $this - */ - public function setEnable($var) - { - GPBUtil::checkBool($var); - $this->enable = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RelatedQuestionsSpec::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_RelatedQuestionsSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SafetySpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SafetySpec.php deleted file mode 100644 index 3f973429bc25..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SafetySpec.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SafetySpec - */ -class SafetySpec extends \Google\Protobuf\Internal\Message -{ - /** - * Enable the safety filtering on the answer response. It is false by - * default. - * - * Generated from protobuf field bool enable = 1; - */ - protected $enable = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable - * Enable the safety filtering on the answer response. It is false by - * default. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Enable the safety filtering on the answer response. It is false by - * default. - * - * Generated from protobuf field bool enable = 1; - * @return bool - */ - public function getEnable() - { - return $this->enable; - } - - /** - * Enable the safety filtering on the answer response. It is false by - * default. - * - * Generated from protobuf field bool enable = 1; - * @param bool $var - * @return $this - */ - public function setEnable($var) - { - GPBUtil::checkBool($var); - $this->enable = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SafetySpec::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SafetySpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec.php deleted file mode 100644 index 61148414a960..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec - */ -class SearchSpec extends \Google\Protobuf\Internal\Message -{ - protected $input; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchParams $search_params - * Search parameters. - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList $search_result_list - * Search result list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Search parameters. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchParams|null - */ - public function getSearchParams() - { - return $this->readOneof(1); - } - - public function hasSearchParams() - { - return $this->hasOneof(1); - } - - /** - * Search parameters. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchParams search_params = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchParams $var - * @return $this - */ - public function setSearchParams($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchParams::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Search result list. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList|null - */ - public function getSearchResultList() - { - return $this->readOneof(2); - } - - public function hasSearchResultList() - { - return $this->hasOneof(2); - } - - /** - * Search result list. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList search_result_list = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList $var - * @return $this - */ - public function setSearchResultList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getInput() - { - return $this->whichOneof("input"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchSpec::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SearchSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchParams.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchParams.php deleted file mode 100644 index 97465b92e238..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchParams.php +++ /dev/null @@ -1,358 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchParams - */ -class SearchParams extends \Google\Protobuf\Internal\Message -{ - /** - * Number of search results to return. - * The default value is 10. - * - * Generated from protobuf field int32 max_return_results = 1; - */ - protected $max_return_results = 0; - /** - * The filter syntax consists of an expression language for constructing - * a predicate from one or more fields of the documents being filtered. - * Filter expression is case-sensitive. This will be used to filter - * search results which may affect the Answer response. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key - * to a key property defined in the Vertex AI Search backend -- this - * mapping is defined by the customer in their schema. For example a - * media customers might have a field 'name' in their schema. In this - * case the filter would look like this: filter --> name:'ANY("king - * kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * Boost specification to boost certain documents in search results which - * may affect the answer query response. For more information on boosting, - * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 3; - */ - protected $boost_spec = null; - /** - * The order in which documents are returned. Documents can be ordered - * by a field in an [Document][google.cloud.discoveryengine.v1.Document] - * object. Leave it unset if ordered by relevance. `order_by` expression - * is case-sensitive. For more information on ordering, see - * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Specifies the search result mode. If unspecified, the - * search result mode defaults to `DOCUMENTS`. - * See [parse and chunk - * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - */ - protected $search_result_mode = 0; - /** - * Specs defining dataStores to filter on in a search call and - * configurations for those dataStores. This is only considered for - * engines with multiple dataStores use case. For single dataStore within - * an engine, they should use the specs at the top level. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 7; - */ - private $data_store_specs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $max_return_results - * Number of search results to return. - * The default value is 10. - * @type string $filter - * The filter syntax consists of an expression language for constructing - * a predicate from one or more fields of the documents being filtered. - * Filter expression is case-sensitive. This will be used to filter - * search results which may affect the Answer response. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key - * to a key property defined in the Vertex AI Search backend -- this - * mapping is defined by the customer in their schema. For example a - * media customers might have a field 'name' in their schema. In this - * case the filter would look like this: filter --> name:'ANY("king - * kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec $boost_spec - * Boost specification to boost certain documents in search results which - * may affect the answer query response. For more information on boosting, - * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost) - * @type string $order_by - * The order in which documents are returned. Documents can be ordered - * by a field in an [Document][google.cloud.discoveryengine.v1.Document] - * object. Leave it unset if ordered by relevance. `order_by` expression - * is case-sensitive. For more information on ordering, see - * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * @type int $search_result_mode - * Specifies the search result mode. If unspecified, the - * search result mode defaults to `DOCUMENTS`. - * See [parse and chunk - * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents) - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchRequest\DataStoreSpec>|\Google\Protobuf\Internal\RepeatedField $data_store_specs - * Specs defining dataStores to filter on in a search call and - * configurations for those dataStores. This is only considered for - * engines with multiple dataStores use case. For single dataStore within - * an engine, they should use the specs at the top level. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Number of search results to return. - * The default value is 10. - * - * Generated from protobuf field int32 max_return_results = 1; - * @return int - */ - public function getMaxReturnResults() - { - return $this->max_return_results; - } - - /** - * Number of search results to return. - * The default value is 10. - * - * Generated from protobuf field int32 max_return_results = 1; - * @param int $var - * @return $this - */ - public function setMaxReturnResults($var) - { - GPBUtil::checkInt32($var); - $this->max_return_results = $var; - - return $this; - } - - /** - * The filter syntax consists of an expression language for constructing - * a predicate from one or more fields of the documents being filtered. - * Filter expression is case-sensitive. This will be used to filter - * search results which may affect the Answer response. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key - * to a key property defined in the Vertex AI Search backend -- this - * mapping is defined by the customer in their schema. For example a - * media customers might have a field 'name' in their schema. In this - * case the filter would look like this: filter --> name:'ANY("king - * kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The filter syntax consists of an expression language for constructing - * a predicate from one or more fields of the documents being filtered. - * Filter expression is case-sensitive. This will be used to filter - * search results which may affect the Answer response. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key - * to a key property defined in the Vertex AI Search backend -- this - * mapping is defined by the customer in their schema. For example a - * media customers might have a field 'name' in their schema. In this - * case the filter would look like this: filter --> name:'ANY("king - * kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * 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; - } - - /** - * Boost specification to boost certain documents in search results which - * may affect the answer query response. For more information on boosting, - * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec|null - */ - public function getBoostSpec() - { - return $this->boost_spec; - } - - public function hasBoostSpec() - { - return isset($this->boost_spec); - } - - public function clearBoostSpec() - { - unset($this->boost_spec); - } - - /** - * Boost specification to boost certain documents in search results which - * may affect the answer query response. For more information on boosting, - * see [Boosting](https://cloud.google.com/retail/docs/boosting#boost) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec $var - * @return $this - */ - public function setBoostSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec::class); - $this->boost_spec = $var; - - return $this; - } - - /** - * The order in which documents are returned. Documents can be ordered - * by a field in an [Document][google.cloud.discoveryengine.v1.Document] - * object. Leave it unset if ordered by relevance. `order_by` expression - * is case-sensitive. For more information on ordering, see - * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * The order in which documents are returned. Documents can be ordered - * by a field in an [Document][google.cloud.discoveryengine.v1.Document] - * object. Leave it unset if ordered by relevance. `order_by` expression - * is case-sensitive. For more information on ordering, see - * [Ordering](https://cloud.google.com/retail/docs/filter-and-order#order) - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Specifies the search result mode. If unspecified, the - * search result mode defaults to `DOCUMENTS`. - * See [parse and chunk - * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - * @return int - */ - public function getSearchResultMode() - { - return $this->search_result_mode; - } - - /** - * Specifies the search result mode. If unspecified, the - * search result mode defaults to `DOCUMENTS`. - * See [parse and chunk - * documents](https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 5; - * @param int $var - * @return $this - */ - public function setSearchResultMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SearchResultMode::class); - $this->search_result_mode = $var; - - return $this; - } - - /** - * Specs defining dataStores to filter on in a search call and - * configurations for those dataStores. This is only considered for - * engines with multiple dataStores use case. For single dataStore within - * an engine, they should use the specs at the top level. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataStoreSpecs() - { - return $this->data_store_specs; - } - - /** - * Specs defining dataStores to filter on in a search call and - * configurations for those dataStores. This is only considered for - * engines with multiple dataStores use case. For single dataStore within - * an engine, they should use the specs at the top level. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 7; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchRequest\DataStoreSpec>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataStoreSpecs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\DataStoreSpec::class); - $this->data_store_specs = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchParams::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SearchSpec_SearchParams::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList.php deleted file mode 100644 index 95b030f498a0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList - */ -class SearchResultList extends \Google\Protobuf\Internal\Message -{ - /** - * Search results. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - */ - private $search_results; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult>|\Google\Protobuf\Internal\RepeatedField $search_results - * Search results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Search results. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSearchResults() - { - return $this->search_results; - } - - /** - * Search results. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult search_results = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSearchResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult::class); - $this->search_results = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchResultList::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SearchSpec_SearchResultList::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult.php deleted file mode 100644 index 7669641322d0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult - */ -class SearchResult extends \Google\Protobuf\Internal\Message -{ - protected $content; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo $unstructured_document_info - * Unstructured document information. - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo $chunk_info - * Chunk information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Unstructured document information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo|null - */ - public function getUnstructuredDocumentInfo() - { - return $this->readOneof(1); - } - - public function hasUnstructuredDocumentInfo() - { - return $this->hasOneof(1); - } - - /** - * Unstructured document information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo unstructured_document_info = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo $var - * @return $this - */ - public function setUnstructuredDocumentInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Chunk information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo|null - */ - public function getChunkInfo() - { - return $this->readOneof(2); - } - - public function hasChunkInfo() - { - return $this->hasOneof(2); - } - - /** - * Chunk information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo chunk_info = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo $var - * @return $this - */ - public function setChunkInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getContent() - { - return $this->whichOneof("content"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchResult::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/ChunkInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/ChunkInfo.php deleted file mode 100644 index 6d1c5f1f20d5..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/ChunkInfo.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo - */ -class ChunkInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Chunk resource name. - * - * Generated from protobuf field string chunk = 1 [(.google.api.resource_reference) = { - */ - protected $chunk = ''; - /** - * Chunk textual content. - * - * Generated from protobuf field string content = 2; - */ - protected $content = ''; - /** - * Metadata of the document from the current chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - */ - protected $document_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $chunk - * Chunk resource name. - * @type string $content - * Chunk textual content. - * @type \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo\DocumentMetadata $document_metadata - * Metadata of the document from the current chunk. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Chunk resource name. - * - * Generated from protobuf field string chunk = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getChunk() - { - return $this->chunk; - } - - /** - * Chunk resource name. - * - * Generated from protobuf field string chunk = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setChunk($var) - { - GPBUtil::checkString($var, True); - $this->chunk = $var; - - return $this; - } - - /** - * Chunk textual content. - * - * Generated from protobuf field string content = 2; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Chunk textual content. - * - * 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; - } - - /** - * Metadata of the document from the current chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo\DocumentMetadata|null - */ - public function getDocumentMetadata() - { - return $this->document_metadata; - } - - public function hasDocumentMetadata() - { - return isset($this->document_metadata); - } - - public function clearDocumentMetadata() - { - unset($this->document_metadata); - } - - /** - * Metadata of the document from the current chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata document_metadata = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo\DocumentMetadata $var - * @return $this - */ - public function setDocumentMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\ChunkInfo\DocumentMetadata::class); - $this->document_metadata = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkInfo::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/ChunkInfo/DocumentMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/ChunkInfo/DocumentMetadata.php deleted file mode 100644 index 63f3142ce553..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/ChunkInfo/DocumentMetadata.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.ChunkInfo.DocumentMetadata - */ -class DocumentMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Uri of the document. - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - /** - * Title of the document. - * - * Generated from protobuf field string title = 2; - */ - protected $title = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Uri of the document. - * @type string $title - * Title of the document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Uri of the document. - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Uri of the document. - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Title of the document. - * - * Generated from protobuf field string title = 2; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Title of the document. - * - * Generated from protobuf field string title = 2; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DocumentMetadata::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_ChunkInfo_DocumentMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo.php deleted file mode 100644 index ac3bfabf2808..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo.php +++ /dev/null @@ -1,265 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo - */ -class UnstructuredDocumentInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - */ - protected $document = ''; - /** - * URI for the document. - * - * Generated from protobuf field string uri = 2; - */ - protected $uri = ''; - /** - * Title. - * - * Generated from protobuf field string title = 3; - */ - protected $title = ''; - /** - * List of document contexts. The content will be used for Answer - * Generation. This is supposed to be the main content of the document - * that can be long and comprehensive. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - */ - private $document_contexts; - /** - * List of extractive segments. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - */ - private $extractive_segments; - /** - * Deprecated: This field is deprecated and will have no effect on - * the Answer generation. - * Please use document_contexts and extractive_segments fields. - * List of extractive answers. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * @deprecated - */ - private $extractive_answers; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $document - * Document resource name. - * @type string $uri - * URI for the document. - * @type string $title - * Title. - * @type array<\Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo\DocumentContext>|\Google\Protobuf\Internal\RepeatedField $document_contexts - * List of document contexts. The content will be used for Answer - * Generation. This is supposed to be the main content of the document - * that can be long and comprehensive. - * @type array<\Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo\ExtractiveSegment>|\Google\Protobuf\Internal\RepeatedField $extractive_segments - * List of extractive segments. - * @type array<\Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo\ExtractiveAnswer>|\Google\Protobuf\Internal\RepeatedField $extractive_answers - * Deprecated: This field is deprecated and will have no effect on - * the Answer generation. - * Please use document_contexts and extractive_segments fields. - * List of extractive answers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getDocument() - { - return $this->document; - } - - /** - * Document resource name. - * - * Generated from protobuf field string document = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkString($var, True); - $this->document = $var; - - return $this; - } - - /** - * URI for the document. - * - * Generated from protobuf field string uri = 2; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI for the document. - * - * 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; - } - - /** - * Title. - * - * Generated from protobuf field string title = 3; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Title. - * - * Generated from protobuf field string title = 3; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * List of document contexts. The content will be used for Answer - * Generation. This is supposed to be the main content of the document - * that can be long and comprehensive. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDocumentContexts() - { - return $this->document_contexts; - } - - /** - * List of document contexts. The content will be used for Answer - * Generation. This is supposed to be the main content of the document - * that can be long and comprehensive. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext document_contexts = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo\DocumentContext>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDocumentContexts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo\DocumentContext::class); - $this->document_contexts = $arr; - - return $this; - } - - /** - * List of extractive segments. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExtractiveSegments() - { - return $this->extractive_segments; - } - - /** - * List of extractive segments. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment extractive_segments = 5; - * @param array<\Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo\ExtractiveSegment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExtractiveSegments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo\ExtractiveSegment::class); - $this->extractive_segments = $arr; - - return $this; - } - - /** - * Deprecated: This field is deprecated and will have no effect on - * the Answer generation. - * Please use document_contexts and extractive_segments fields. - * List of extractive answers. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getExtractiveAnswers() - { - @trigger_error('extractive_answers is deprecated.', E_USER_DEPRECATED); - return $this->extractive_answers; - } - - /** - * Deprecated: This field is deprecated and will have no effect on - * the Answer generation. - * Please use document_contexts and extractive_segments fields. - * List of extractive answers. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer extractive_answers = 6 [deprecated = true]; - * @param array<\Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo\ExtractiveAnswer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setExtractiveAnswers($var) - { - @trigger_error('extractive_answers is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest\SearchSpec\SearchResultList\SearchResult\UnstructuredDocumentInfo\ExtractiveAnswer::class); - $this->extractive_answers = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UnstructuredDocumentInfo::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/DocumentContext.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/DocumentContext.php deleted file mode 100644 index 774aaaa085a6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/DocumentContext.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.DocumentContext - */ -class DocumentContext extends \Google\Protobuf\Internal\Message -{ - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 1; - */ - protected $page_identifier = ''; - /** - * Document content to be used for answer generation. - * - * Generated from protobuf field string content = 2; - */ - protected $content = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $page_identifier - * Page identifier. - * @type string $content - * Document content to be used for answer generation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 1; - * @return string - */ - public function getPageIdentifier() - { - return $this->page_identifier; - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 1; - * @param string $var - * @return $this - */ - public function setPageIdentifier($var) - { - GPBUtil::checkString($var, True); - $this->page_identifier = $var; - - return $this; - } - - /** - * Document content to be used for answer generation. - * - * Generated from protobuf field string content = 2; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Document content to be used for answer generation. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DocumentContext::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_DocumentContext::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/ExtractiveAnswer.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/ExtractiveAnswer.php deleted file mode 100644 index 1187cd5e0f16..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/ExtractiveAnswer.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveAnswer - */ -class ExtractiveAnswer extends \Google\Protobuf\Internal\Message -{ - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 1; - */ - protected $page_identifier = ''; - /** - * Extractive answer content. - * - * Generated from protobuf field string content = 2; - */ - protected $content = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $page_identifier - * Page identifier. - * @type string $content - * Extractive answer content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 1; - * @return string - */ - public function getPageIdentifier() - { - return $this->page_identifier; - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 1; - * @param string $var - * @return $this - */ - public function setPageIdentifier($var) - { - GPBUtil::checkString($var, True); - $this->page_identifier = $var; - - return $this; - } - - /** - * Extractive answer content. - * - * Generated from protobuf field string content = 2; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Extractive answer content. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ExtractiveAnswer::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveAnswer::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/ExtractiveSegment.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/ExtractiveSegment.php deleted file mode 100644 index cff5efb49932..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryRequest/SearchSpec/SearchResultList/SearchResult/UnstructuredDocumentInfo/ExtractiveSegment.php +++ /dev/null @@ -1,107 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryRequest.SearchSpec.SearchResultList.SearchResult.UnstructuredDocumentInfo.ExtractiveSegment - */ -class ExtractiveSegment extends \Google\Protobuf\Internal\Message -{ - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 1; - */ - protected $page_identifier = ''; - /** - * Extractive segment content. - * - * Generated from protobuf field string content = 2; - */ - protected $content = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $page_identifier - * Page identifier. - * @type string $content - * Extractive segment content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 1; - * @return string - */ - public function getPageIdentifier() - { - return $this->page_identifier; - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 1; - * @param string $var - * @return $this - */ - public function setPageIdentifier($var) - { - GPBUtil::checkString($var, True); - $this->page_identifier = $var; - - return $this; - } - - /** - * Extractive segment content. - * - * Generated from protobuf field string content = 2; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Extractive segment content. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ExtractiveSegment::class, \Google\Cloud\DiscoveryEngine\V1\AnswerQueryRequest_SearchSpec_SearchResultList_SearchResult_UnstructuredDocumentInfo_ExtractiveSegment::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryResponse.php deleted file mode 100644 index eb1dde5748ad..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/AnswerQueryResponse.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.discoveryengine.v1.AnswerQueryResponse - */ -class AnswerQueryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Answer resource object. - * If - * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps] - * is greater than 1, use - * [Answer.name][google.cloud.discoveryengine.v1.Answer.name] to fetch answer - * information using - * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer] - * API. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer answer = 1; - */ - protected $answer = null; - /** - * Session resource object. - * It will be only available when session field is set and valid in the - * [AnswerQueryRequest][google.cloud.discoveryengine.v1.AnswerQueryRequest] - * request. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session session = 2; - */ - protected $session = null; - /** - * A global unique ID used for logging. - * - * Generated from protobuf field string answer_query_token = 3; - */ - protected $answer_query_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Answer $answer - * Answer resource object. - * If - * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps] - * is greater than 1, use - * [Answer.name][google.cloud.discoveryengine.v1.Answer.name] to fetch answer - * information using - * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer] - * API. - * @type \Google\Cloud\DiscoveryEngine\V1\Session $session - * Session resource object. - * It will be only available when session field is set and valid in the - * [AnswerQueryRequest][google.cloud.discoveryengine.v1.AnswerQueryRequest] - * request. - * @type string $answer_query_token - * A global unique ID used for logging. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Answer resource object. - * If - * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps] - * is greater than 1, use - * [Answer.name][google.cloud.discoveryengine.v1.Answer.name] to fetch answer - * information using - * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer] - * API. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer answer = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\Answer|null - */ - public function getAnswer() - { - return $this->answer; - } - - public function hasAnswer() - { - return isset($this->answer); - } - - public function clearAnswer() - { - unset($this->answer); - } - - /** - * Answer resource object. - * If - * [AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps][google.cloud.discoveryengine.v1.AnswerQueryRequest.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps] - * is greater than 1, use - * [Answer.name][google.cloud.discoveryengine.v1.Answer.name] to fetch answer - * information using - * [ConversationalSearchService.GetAnswer][google.cloud.discoveryengine.v1.ConversationalSearchService.GetAnswer] - * API. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Answer answer = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\Answer $var - * @return $this - */ - public function setAnswer($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Answer::class); - $this->answer = $var; - - return $this; - } - - /** - * Session resource object. - * It will be only available when session field is set and valid in the - * [AnswerQueryRequest][google.cloud.discoveryengine.v1.AnswerQueryRequest] - * request. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session session = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\Session|null - */ - public function getSession() - { - return $this->session; - } - - public function hasSession() - { - return isset($this->session); - } - - public function clearSession() - { - unset($this->session); - } - - /** - * Session resource object. - * It will be only available when session field is set and valid in the - * [AnswerQueryRequest][google.cloud.discoveryengine.v1.AnswerQueryRequest] - * request. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session session = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\Session $var - * @return $this - */ - public function setSession($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Session::class); - $this->session = $var; - - return $this; - } - - /** - * A global unique ID used for logging. - * - * Generated from protobuf field string answer_query_token = 3; - * @return string - */ - public function getAnswerQueryToken() - { - return $this->answer_query_token; - } - - /** - * A global unique ID used for logging. - * - * Generated from protobuf field string answer_query_token = 3; - * @param string $var - * @return $this - */ - public function setAnswerQueryToken($var) - { - GPBUtil::checkString($var, True); - $this->answer_query_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSiteMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSiteMetadata.php deleted file mode 100644 index 3fd5dc074118..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSiteMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.BatchCreateTargetSiteMetadata - */ -class BatchCreateTargetSiteMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSitesRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSitesRequest.php deleted file mode 100644 index 025b00dae530..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSitesRequest.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.discoveryengine.v1.BatchCreateTargetSitesRequest - */ -class BatchCreateTargetSitesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource shared by all TargetSites being created. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * The parent field in the CreateBookRequest messages must either be empty or - * match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The request message specifying the resources to create. - * A maximum of 20 TargetSites can be created in a batch. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $requests; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource shared by all TargetSites being created. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * The parent field in the CreateBookRequest messages must either be empty or - * match this field. - * @type array<\Google\Cloud\DiscoveryEngine\V1\CreateTargetSiteRequest>|\Google\Protobuf\Internal\RepeatedField $requests - * Required. The request message specifying the resources to create. - * A maximum of 20 TargetSites can be created in a batch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource shared by all TargetSites being created. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * The parent field in the CreateBookRequest messages must either be empty or - * match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource shared by all TargetSites being created. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * The parent field in the CreateBookRequest messages must either be empty or - * match this field. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The request message specifying the resources to create. - * A maximum of 20 TargetSites can be created in a batch. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequests() - { - return $this->requests; - } - - /** - * Required. The request message specifying the resources to create. - * A maximum of 20 TargetSites can be created in a batch. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CreateTargetSiteRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\DiscoveryEngine\V1\CreateTargetSiteRequest>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequests($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\CreateTargetSiteRequest::class); - $this->requests = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSitesResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSitesResponse.php deleted file mode 100644 index 5cc625826f41..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchCreateTargetSitesResponse.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.discoveryengine.v1.BatchCreateTargetSitesResponse - */ -class BatchCreateTargetSitesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * TargetSites created. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.TargetSite target_sites = 1; - */ - private $target_sites; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\TargetSite>|\Google\Protobuf\Internal\RepeatedField $target_sites - * TargetSites created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * TargetSites created. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.TargetSite target_sites = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetSites() - { - return $this->target_sites; - } - - /** - * TargetSites created. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.TargetSite target_sites = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\TargetSite>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetSites($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\TargetSite::class); - $this->target_sites = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest.php deleted file mode 100644 index 28af4ab72d27..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest - */ -class BatchGetDocumentsMetadataRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Matcher for the - * [Document][google.cloud.discoveryengine.v1.Document]s. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.Matcher matcher = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $matcher = null; - - /** - * @param string $parent Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Please see - * {@see DocumentServiceClient::branchName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest - * - * @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 branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * @type \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\Matcher $matcher - * Required. Matcher for the - * [Document][google.cloud.discoveryengine.v1.Document]s. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * - * Generated 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 branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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. Matcher for the - * [Document][google.cloud.discoveryengine.v1.Document]s. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.Matcher matcher = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\Matcher|null - */ - public function getMatcher() - { - return $this->matcher; - } - - public function hasMatcher() - { - return isset($this->matcher); - } - - public function clearMatcher() - { - unset($this->matcher); - } - - /** - * Required. Matcher for the - * [Document][google.cloud.discoveryengine.v1.Document]s. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.Matcher matcher = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\Matcher $var - * @return $this - */ - public function setMatcher($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\Matcher::class); - $this->matcher = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/FhirMatcher.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/FhirMatcher.php deleted file mode 100644 index bf281f1345f0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/FhirMatcher.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher - */ -class FhirMatcher extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The FHIR resources to match by. - * Format: - * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} - * - * Generated from protobuf field repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $fhir_resources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $fhir_resources - * Required. The FHIR resources to match by. - * Format: - * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The FHIR resources to match by. - * Format: - * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} - * - * Generated from protobuf field repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFhirResources() - { - return $this->fhir_resources; - } - - /** - * Required. The FHIR resources to match by. - * Format: - * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} - * - * Generated from protobuf field repeated string fhir_resources = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFhirResources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->fhir_resources = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FhirMatcher::class, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest_FhirMatcher::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/Matcher.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/Matcher.php deleted file mode 100644 index 244c14221362..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/Matcher.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.Matcher - */ -class Matcher extends \Google\Protobuf\Internal\Message -{ - protected $matcher; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\UrisMatcher $uris_matcher - * Matcher by exact URIs. - * @type \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\FhirMatcher $fhir_matcher - * Matcher by FHIR resource names. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * Matcher by exact URIs. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher uris_matcher = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\UrisMatcher|null - */ - public function getUrisMatcher() - { - return $this->readOneof(1); - } - - public function hasUrisMatcher() - { - return $this->hasOneof(1); - } - - /** - * Matcher by exact URIs. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher uris_matcher = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\UrisMatcher $var - * @return $this - */ - public function setUrisMatcher($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\UrisMatcher::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Matcher by FHIR resource names. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\FhirMatcher|null - */ - public function getFhirMatcher() - { - return $this->readOneof(2); - } - - public function hasFhirMatcher() - { - return $this->hasOneof(2); - } - - /** - * Matcher by FHIR resource names. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.FhirMatcher fhir_matcher = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\FhirMatcher $var - * @return $this - */ - public function setFhirMatcher($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest\FhirMatcher::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getMatcher() - { - return $this->whichOneof("matcher"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Matcher::class, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest_Matcher::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/UrisMatcher.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/UrisMatcher.php deleted file mode 100644 index 0b3244b6e952..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataRequest/UrisMatcher.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataRequest.UrisMatcher - */ -class UrisMatcher extends \Google\Protobuf\Internal\Message -{ - /** - * The exact URIs to match by. - * - * Generated from protobuf field repeated string uris = 1; - */ - private $uris; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $uris - * The exact URIs to match by. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * The exact URIs to match by. - * - * Generated from protobuf field repeated string uris = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUris() - { - return $this->uris; - } - - /** - * The exact URIs to match by. - * - * Generated from protobuf field repeated string uris = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->uris = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(UrisMatcher::class, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataRequest_UrisMatcher::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse.php deleted file mode 100644 index 6ea87a36de23..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse - */ -class BatchGetDocumentsMetadataResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The metadata of the [Document][google.cloud.discoveryengine.v1.Document]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.DocumentMetadata documents_metadata = 1; - */ - private $documents_metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse\DocumentMetadata>|\Google\Protobuf\Internal\RepeatedField $documents_metadata - * The metadata of the [Document][google.cloud.discoveryengine.v1.Document]s. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * The metadata of the [Document][google.cloud.discoveryengine.v1.Document]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.DocumentMetadata documents_metadata = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDocumentsMetadata() - { - return $this->documents_metadata; - } - - /** - * The metadata of the [Document][google.cloud.discoveryengine.v1.Document]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.DocumentMetadata documents_metadata = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse\DocumentMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDocumentsMetadata($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse\DocumentMetadata::class); - $this->documents_metadata = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/DocumentMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/DocumentMetadata.php deleted file mode 100644 index d3816203cbff..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/DocumentMetadata.php +++ /dev/null @@ -1,216 +0,0 @@ -google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.DocumentMetadata - */ -class DocumentMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The value of the matcher that was used to match the - * [Document][google.cloud.discoveryengine.v1.Document]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.DocumentMetadata.MatcherValue matcher_value = 2; - */ - protected $matcher_value = null; - /** - * The state of the document. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.State state = 3; - */ - protected $state = 0; - /** - * The timestamp of the last time the - * [Document][google.cloud.discoveryengine.v1.Document] was last indexed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_refreshed_time = 4; - */ - protected $last_refreshed_time = null; - /** - * The data ingestion source of the - * [Document][google.cloud.discoveryengine.v1.Document]. - * Allowed values are: - * * `batch`: Data ingested via Batch API, e.g., ImportDocuments. - * * `streaming` Data ingested via Streaming API, e.g., FHIR streaming. - * - * Generated from protobuf field string data_ingestion_source = 5; - */ - protected $data_ingestion_source = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse\DocumentMetadata\MatcherValue $matcher_value - * The value of the matcher that was used to match the - * [Document][google.cloud.discoveryengine.v1.Document]. - * @type int $state - * The state of the document. - * @type \Google\Protobuf\Timestamp $last_refreshed_time - * The timestamp of the last time the - * [Document][google.cloud.discoveryengine.v1.Document] was last indexed. - * @type string $data_ingestion_source - * The data ingestion source of the - * [Document][google.cloud.discoveryengine.v1.Document]. - * Allowed values are: - * * `batch`: Data ingested via Batch API, e.g., ImportDocuments. - * * `streaming` Data ingested via Streaming API, e.g., FHIR streaming. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * The value of the matcher that was used to match the - * [Document][google.cloud.discoveryengine.v1.Document]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.DocumentMetadata.MatcherValue matcher_value = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse\DocumentMetadata\MatcherValue|null - */ - public function getMatcherValue() - { - return $this->matcher_value; - } - - public function hasMatcherValue() - { - return isset($this->matcher_value); - } - - public function clearMatcherValue() - { - unset($this->matcher_value); - } - - /** - * The value of the matcher that was used to match the - * [Document][google.cloud.discoveryengine.v1.Document]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.DocumentMetadata.MatcherValue matcher_value = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse\DocumentMetadata\MatcherValue $var - * @return $this - */ - public function setMatcherValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse\DocumentMetadata\MatcherValue::class); - $this->matcher_value = $var; - - return $this; - } - - /** - * The state of the document. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.State state = 3; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of the document. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.State state = 3; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse\State::class); - $this->state = $var; - - return $this; - } - - /** - * The timestamp of the last time the - * [Document][google.cloud.discoveryengine.v1.Document] was last indexed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_refreshed_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastRefreshedTime() - { - return $this->last_refreshed_time; - } - - public function hasLastRefreshedTime() - { - return isset($this->last_refreshed_time); - } - - public function clearLastRefreshedTime() - { - unset($this->last_refreshed_time); - } - - /** - * The timestamp of the last time the - * [Document][google.cloud.discoveryengine.v1.Document] was last indexed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_refreshed_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastRefreshedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_refreshed_time = $var; - - return $this; - } - - /** - * The data ingestion source of the - * [Document][google.cloud.discoveryengine.v1.Document]. - * Allowed values are: - * * `batch`: Data ingested via Batch API, e.g., ImportDocuments. - * * `streaming` Data ingested via Streaming API, e.g., FHIR streaming. - * - * Generated from protobuf field string data_ingestion_source = 5; - * @return string - */ - public function getDataIngestionSource() - { - return $this->data_ingestion_source; - } - - /** - * The data ingestion source of the - * [Document][google.cloud.discoveryengine.v1.Document]. - * Allowed values are: - * * `batch`: Data ingested via Batch API, e.g., ImportDocuments. - * * `streaming` Data ingested via Streaming API, e.g., FHIR streaming. - * - * Generated from protobuf field string data_ingestion_source = 5; - * @param string $var - * @return $this - */ - public function setDataIngestionSource($var) - { - GPBUtil::checkString($var, True); - $this->data_ingestion_source = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DocumentMetadata::class, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse_DocumentMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/DocumentMetadata/MatcherValue.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/DocumentMetadata/MatcherValue.php deleted file mode 100644 index bcda68b79dd7..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/DocumentMetadata/MatcherValue.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.DocumentMetadata.MatcherValue - */ -class MatcherValue extends \Google\Protobuf\Internal\Message -{ - protected $matcher_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * If match by URI, the URI of the - * [Document][google.cloud.discoveryengine.v1.Document]. - * @type string $fhir_resource - * Format: - * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * If match by URI, the URI of the - * [Document][google.cloud.discoveryengine.v1.Document]. - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->readOneof(1); - } - - public function hasUri() - { - return $this->hasOneof(1); - } - - /** - * If match by URI, the URI of the - * [Document][google.cloud.discoveryengine.v1.Document]. - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Format: - * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} - * - * Generated from protobuf field string fhir_resource = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getFhirResource() - { - return $this->readOneof(2); - } - - public function hasFhirResource() - { - return $this->hasOneof(2); - } - - /** - * Format: - * projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} - * - * Generated from protobuf field string fhir_resource = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setFhirResource($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getMatcherValue() - { - return $this->whichOneof("matcher_value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatcherValue::class, \Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse_DocumentMetadata_MatcherValue::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/State.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/State.php deleted file mode 100644 index a941452f0e39..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchGetDocumentsMetadataResponse/State.php +++ /dev/null @@ -1,73 +0,0 @@ -google.cloud.discoveryengine.v1.BatchGetDocumentsMetadataResponse.State - */ -class State -{ - /** - * Should never be set. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The [Document][google.cloud.discoveryengine.v1.Document] is indexed. - * - * Generated from protobuf enum INDEXED = 1; - */ - const INDEXED = 1; - /** - * The [Document][google.cloud.discoveryengine.v1.Document] is not indexed - * because its URI is not in the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite]. - * - * Generated from protobuf enum NOT_IN_TARGET_SITE = 2; - */ - const NOT_IN_TARGET_SITE = 2; - /** - * The [Document][google.cloud.discoveryengine.v1.Document] is not indexed. - * - * Generated from protobuf enum NOT_IN_INDEX = 3; - */ - const NOT_IN_INDEX = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::INDEXED => 'INDEXED', - self::NOT_IN_TARGET_SITE => 'NOT_IN_TARGET_SITE', - self::NOT_IN_INDEX => 'NOT_IN_INDEX', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse_State::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesMetadata.php deleted file mode 100644 index 45fe3fc683cd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.BatchVerifyTargetSitesMetadata - */ -class BatchVerifyTargetSitesMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesRequest.php deleted file mode 100644 index 1e566fc7592e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesRequest.php +++ /dev/null @@ -1,73 +0,0 @@ -google.cloud.discoveryengine.v1.BatchVerifyTargetSitesRequest - */ -class BatchVerifyTargetSitesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource shared by all TargetSites being verified. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * 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 resource shared by all TargetSites being verified. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource shared by all TargetSites being verified. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * Generated 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 shared by all TargetSites being verified. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesResponse.php deleted file mode 100644 index 92d93fc998ae..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BatchVerifyTargetSitesResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -google.cloud.discoveryengine.v1.BatchVerifyTargetSitesResponse - */ -class BatchVerifyTargetSitesResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigQuerySource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigQuerySource.php deleted file mode 100644 index fca97d9d27b0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigQuerySource.php +++ /dev/null @@ -1,325 +0,0 @@ -google.cloud.discoveryengine.v1.BigQuerySource - */ -class BigQuerySource extends \Google\Protobuf\Internal\Message -{ - /** - * The project ID or the project number that contains the BigQuery source. Has - * a length limit of 128 characters. If not specified, inherits the project - * ID from the parent request. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Required. The BigQuery data set to copy the data from with a length limit - * of 1,024 characters. - * - * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $dataset_id = ''; - /** - * Required. The BigQuery table to copy the data from with a length limit of - * 1,024 characters. - * - * Generated from protobuf field string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_id = ''; - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * BigQuery export to a specific Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 4; - */ - protected $gcs_staging_dir = ''; - /** - * The schema to use when parsing the data from the source. - * Supported values for user event imports: - * * `user_event` (default): One - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per row. - * Supported values for document imports: - * * `document` (default): One - * [Document][google.cloud.discoveryengine.v1.Document] format per - * row. Each document must have a valid - * [Document.id][google.cloud.discoveryengine.v1.Document.id] and one of - * [Document.json_data][google.cloud.discoveryengine.v1.Document.json_data] - * or - * [Document.struct_data][google.cloud.discoveryengine.v1.Document.struct_data]. - * * `custom`: One custom data per row in arbitrary format that conforms to - * the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data - * store. This can only be used by the GENERIC Data Store vertical. - * - * Generated from protobuf field string data_schema = 6; - */ - protected $data_schema = ''; - protected $partition; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $partition_date - * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. - * @type string $project_id - * The project ID or the project number that contains the BigQuery source. Has - * a length limit of 128 characters. If not specified, inherits the project - * ID from the parent request. - * @type string $dataset_id - * Required. The BigQuery data set to copy the data from with a length limit - * of 1,024 characters. - * @type string $table_id - * Required. The BigQuery table to copy the data from with a length limit of - * 1,024 characters. - * @type string $gcs_staging_dir - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * BigQuery export to a specific Cloud Storage directory. - * @type string $data_schema - * The schema to use when parsing the data from the source. - * Supported values for user event imports: - * * `user_event` (default): One - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per row. - * Supported values for document imports: - * * `document` (default): One - * [Document][google.cloud.discoveryengine.v1.Document] format per - * row. Each document must have a valid - * [Document.id][google.cloud.discoveryengine.v1.Document.id] and one of - * [Document.json_data][google.cloud.discoveryengine.v1.Document.json_data] - * or - * [Document.struct_data][google.cloud.discoveryengine.v1.Document.struct_data]. - * * `custom`: One custom data per row in arbitrary format that conforms to - * the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data - * store. This can only be used by the GENERIC Data Store vertical. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. - * - * Generated from protobuf field .google.type.Date partition_date = 5; - * @return \Google\Type\Date|null - */ - public function getPartitionDate() - { - return $this->readOneof(5); - } - - public function hasPartitionDate() - { - return $this->hasOneof(5); - } - - /** - * BigQuery time partitioned table's _PARTITIONDATE in YYYY-MM-DD format. - * - * Generated from protobuf field .google.type.Date partition_date = 5; - * @param \Google\Type\Date $var - * @return $this - */ - public function setPartitionDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The project ID or the project number that contains the BigQuery source. Has - * a length limit of 128 characters. If not specified, inherits the project - * ID from the parent request. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project ID or the project number that contains the BigQuery source. Has - * a length limit of 128 characters. If not specified, inherits the project - * ID from the parent request. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The BigQuery data set to copy the data from with a length limit - * of 1,024 characters. - * - * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * Required. The BigQuery data set to copy the data from with a length limit - * of 1,024 characters. - * - * Generated from protobuf field string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * Required. The BigQuery table to copy the data from with a length limit of - * 1,024 characters. - * - * Generated from protobuf field string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Required. The BigQuery table to copy the data from with a length limit of - * 1,024 characters. - * - * Generated from protobuf field string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * BigQuery export to a specific Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 4; - * @return string - */ - public function getGcsStagingDir() - { - return $this->gcs_staging_dir; - } - - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * BigQuery export to a specific Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 4; - * @param string $var - * @return $this - */ - public function setGcsStagingDir($var) - { - GPBUtil::checkString($var, True); - $this->gcs_staging_dir = $var; - - return $this; - } - - /** - * The schema to use when parsing the data from the source. - * Supported values for user event imports: - * * `user_event` (default): One - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per row. - * Supported values for document imports: - * * `document` (default): One - * [Document][google.cloud.discoveryengine.v1.Document] format per - * row. Each document must have a valid - * [Document.id][google.cloud.discoveryengine.v1.Document.id] and one of - * [Document.json_data][google.cloud.discoveryengine.v1.Document.json_data] - * or - * [Document.struct_data][google.cloud.discoveryengine.v1.Document.struct_data]. - * * `custom`: One custom data per row in arbitrary format that conforms to - * the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data - * store. This can only be used by the GENERIC Data Store vertical. - * - * Generated from protobuf field string data_schema = 6; - * @return string - */ - public function getDataSchema() - { - return $this->data_schema; - } - - /** - * The schema to use when parsing the data from the source. - * Supported values for user event imports: - * * `user_event` (default): One - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per row. - * Supported values for document imports: - * * `document` (default): One - * [Document][google.cloud.discoveryengine.v1.Document] format per - * row. Each document must have a valid - * [Document.id][google.cloud.discoveryengine.v1.Document.id] and one of - * [Document.json_data][google.cloud.discoveryengine.v1.Document.json_data] - * or - * [Document.struct_data][google.cloud.discoveryengine.v1.Document.struct_data]. - * * `custom`: One custom data per row in arbitrary format that conforms to - * the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the data - * store. This can only be used by the GENERIC Data Store vertical. - * - * Generated from protobuf field string data_schema = 6; - * @param string $var - * @return $this - */ - public function setDataSchema($var) - { - GPBUtil::checkString($var, True); - $this->data_schema = $var; - - return $this; - } - - /** - * @return string - */ - public function getPartition() - { - return $this->whichOneof("partition"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions.php deleted file mode 100644 index 94fedf2de962..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.discoveryengine.v1.BigtableOptions - */ -class BigtableOptions extends \Google\Protobuf\Internal\Message -{ - /** - * The field name used for saving row key value in the document. The name has - * to match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. - * - * Generated from protobuf field string key_field_name = 1; - */ - protected $key_field_name = ''; - /** - * The mapping from family names to an object that contains column families - * level information for the given column family. If a family is not present - * in this map it will be ignored. - * - * Generated from protobuf field map families = 2; - */ - private $families; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key_field_name - * The field name used for saving row key value in the document. The name has - * to match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. - * @type array|\Google\Protobuf\Internal\MapField $families - * The mapping from family names to an object that contains column families - * level information for the given column family. If a family is not present - * in this map it will be ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The field name used for saving row key value in the document. The name has - * to match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. - * - * Generated from protobuf field string key_field_name = 1; - * @return string - */ - public function getKeyFieldName() - { - return $this->key_field_name; - } - - /** - * The field name used for saving row key value in the document. The name has - * to match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. - * - * Generated from protobuf field string key_field_name = 1; - * @param string $var - * @return $this - */ - public function setKeyFieldName($var) - { - GPBUtil::checkString($var, True); - $this->key_field_name = $var; - - return $this; - } - - /** - * The mapping from family names to an object that contains column families - * level information for the given column family. If a family is not present - * in this map it will be ignored. - * - * Generated from protobuf field map families = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getFamilies() - { - return $this->families; - } - - /** - * The mapping from family names to an object that contains column families - * level information for the given column family. If a family is not present - * in this map it will be ignored. - * - * Generated from protobuf field map families = 2; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setFamilies($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\BigtableOptions\BigtableColumnFamily::class); - $this->families = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/BigtableColumn.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/BigtableColumn.php deleted file mode 100644 index 5e2dfde12b8b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/BigtableColumn.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.discoveryengine.v1.BigtableOptions.BigtableColumn - */ -class BigtableColumn extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Qualifier of the column. If it cannot be decoded with utf-8, - * use a base-64 encoded string instead. - * - * Generated from protobuf field bytes qualifier = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $qualifier = ''; - /** - * The field name to use for this column in the document. The name has to - * match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. - * If not set, it is parsed from the qualifier bytes with best effort. - * However, due to different naming patterns, field name collisions could - * happen, where parsing behavior is undefined. - * - * Generated from protobuf field string field_name = 2; - */ - protected $field_name = ''; - /** - * The encoding mode of the values when the type is not `STRING`. - * Acceptable encoding values are: - * * `TEXT`: indicates values are alphanumeric text strings. - * * `BINARY`: indicates values are encoded using `HBase Bytes.toBytes` - * family of functions. This can be overridden for a specific column - * by listing that column in `columns` and specifying an encoding for it. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Encoding encoding = 3; - */ - protected $encoding = 0; - /** - * The type of values in this column family. - * The values are expected to be encoded using `HBase Bytes.toBytes` - * function when the encoding value is set to `BINARY`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Type type = 4; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $qualifier - * Required. Qualifier of the column. If it cannot be decoded with utf-8, - * use a base-64 encoded string instead. - * @type string $field_name - * The field name to use for this column in the document. The name has to - * match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. - * If not set, it is parsed from the qualifier bytes with best effort. - * However, due to different naming patterns, field name collisions could - * happen, where parsing behavior is undefined. - * @type int $encoding - * The encoding mode of the values when the type is not `STRING`. - * Acceptable encoding values are: - * * `TEXT`: indicates values are alphanumeric text strings. - * * `BINARY`: indicates values are encoded using `HBase Bytes.toBytes` - * family of functions. This can be overridden for a specific column - * by listing that column in `columns` and specifying an encoding for it. - * @type int $type - * The type of values in this column family. - * The values are expected to be encoded using `HBase Bytes.toBytes` - * function when the encoding value is set to `BINARY`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. Qualifier of the column. If it cannot be decoded with utf-8, - * use a base-64 encoded string instead. - * - * Generated from protobuf field bytes qualifier = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQualifier() - { - return $this->qualifier; - } - - /** - * Required. Qualifier of the column. If it cannot be decoded with utf-8, - * use a base-64 encoded string instead. - * - * Generated from protobuf field bytes qualifier = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQualifier($var) - { - GPBUtil::checkString($var, False); - $this->qualifier = $var; - - return $this; - } - - /** - * The field name to use for this column in the document. The name has to - * match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. - * If not set, it is parsed from the qualifier bytes with best effort. - * However, due to different naming patterns, field name collisions could - * happen, where parsing behavior is undefined. - * - * Generated from protobuf field string field_name = 2; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The field name to use for this column in the document. The name has to - * match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. - * If not set, it is parsed from the qualifier bytes with best effort. - * However, due to different naming patterns, field name collisions could - * happen, where parsing behavior is undefined. - * - * Generated from protobuf field string field_name = 2; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * The encoding mode of the values when the type is not `STRING`. - * Acceptable encoding values are: - * * `TEXT`: indicates values are alphanumeric text strings. - * * `BINARY`: indicates values are encoded using `HBase Bytes.toBytes` - * family of functions. This can be overridden for a specific column - * by listing that column in `columns` and specifying an encoding for it. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Encoding encoding = 3; - * @return int - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * The encoding mode of the values when the type is not `STRING`. - * Acceptable encoding values are: - * * `TEXT`: indicates values are alphanumeric text strings. - * * `BINARY`: indicates values are encoded using `HBase Bytes.toBytes` - * family of functions. This can be overridden for a specific column - * by listing that column in `columns` and specifying an encoding for it. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Encoding encoding = 3; - * @param int $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\BigtableOptions\Encoding::class); - $this->encoding = $var; - - return $this; - } - - /** - * The type of values in this column family. - * The values are expected to be encoded using `HBase Bytes.toBytes` - * function when the encoding value is set to `BINARY`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Type type = 4; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of values in this column family. - * The values are expected to be encoded using `HBase Bytes.toBytes` - * function when the encoding value is set to `BINARY`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Type type = 4; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\BigtableOptions\Type::class); - $this->type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BigtableColumn::class, \Google\Cloud\DiscoveryEngine\V1\BigtableOptions_BigtableColumn::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/BigtableColumnFamily.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/BigtableColumnFamily.php deleted file mode 100644 index db24f4d0522a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/BigtableColumnFamily.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.discoveryengine.v1.BigtableOptions.BigtableColumnFamily - */ -class BigtableColumnFamily extends \Google\Protobuf\Internal\Message -{ - /** - * The field name to use for this column family in the document. The - * name has to match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. If not set, - * it is parsed from the family name with best effort. However, due to - * different naming patterns, field name collisions could happen, where - * parsing behavior is undefined. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - /** - * The encoding mode of the values when the type is not STRING. - * Acceptable encoding values are: - * * `TEXT`: indicates values are alphanumeric text strings. - * * `BINARY`: indicates values are encoded using `HBase Bytes.toBytes` - * family of functions. This can be overridden for a specific column - * by listing that column in `columns` and specifying an encoding for it. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Encoding encoding = 2; - */ - protected $encoding = 0; - /** - * The type of values in this column family. - * The values are expected to be encoded using `HBase Bytes.toBytes` - * function when the encoding value is set to `BINARY`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Type type = 3; - */ - protected $type = 0; - /** - * The list of objects that contains column level information for each - * column. If a column is not present in this list it will be ignored. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.BigtableOptions.BigtableColumn columns = 4; - */ - private $columns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field_name - * The field name to use for this column family in the document. The - * name has to match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. If not set, - * it is parsed from the family name with best effort. However, due to - * different naming patterns, field name collisions could happen, where - * parsing behavior is undefined. - * @type int $encoding - * The encoding mode of the values when the type is not STRING. - * Acceptable encoding values are: - * * `TEXT`: indicates values are alphanumeric text strings. - * * `BINARY`: indicates values are encoded using `HBase Bytes.toBytes` - * family of functions. This can be overridden for a specific column - * by listing that column in `columns` and specifying an encoding for it. - * @type int $type - * The type of values in this column family. - * The values are expected to be encoded using `HBase Bytes.toBytes` - * function when the encoding value is set to `BINARY`. - * @type array<\Google\Cloud\DiscoveryEngine\V1\BigtableOptions\BigtableColumn>|\Google\Protobuf\Internal\RepeatedField $columns - * The list of objects that contains column level information for each - * column. If a column is not present in this list it will be ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The field name to use for this column family in the document. The - * name has to match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. If not set, - * it is parsed from the family name with best effort. However, due to - * different naming patterns, field name collisions could happen, where - * parsing behavior is undefined. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The field name to use for this column family in the document. The - * name has to match the pattern `[a-zA-Z0-9][a-zA-Z0-9-_]*`. If not set, - * it is parsed from the family name with best effort. However, due to - * different naming patterns, field name collisions could happen, where - * parsing behavior is undefined. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * The encoding mode of the values when the type is not STRING. - * Acceptable encoding values are: - * * `TEXT`: indicates values are alphanumeric text strings. - * * `BINARY`: indicates values are encoded using `HBase Bytes.toBytes` - * family of functions. This can be overridden for a specific column - * by listing that column in `columns` and specifying an encoding for it. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Encoding encoding = 2; - * @return int - */ - public function getEncoding() - { - return $this->encoding; - } - - /** - * The encoding mode of the values when the type is not STRING. - * Acceptable encoding values are: - * * `TEXT`: indicates values are alphanumeric text strings. - * * `BINARY`: indicates values are encoded using `HBase Bytes.toBytes` - * family of functions. This can be overridden for a specific column - * by listing that column in `columns` and specifying an encoding for it. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Encoding encoding = 2; - * @param int $var - * @return $this - */ - public function setEncoding($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\BigtableOptions\Encoding::class); - $this->encoding = $var; - - return $this; - } - - /** - * The type of values in this column family. - * The values are expected to be encoded using `HBase Bytes.toBytes` - * function when the encoding value is set to `BINARY`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Type type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of values in this column family. - * The values are expected to be encoded using `HBase Bytes.toBytes` - * function when the encoding value is set to `BINARY`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions.Type type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\BigtableOptions\Type::class); - $this->type = $var; - - return $this; - } - - /** - * The list of objects that contains column level information for each - * column. If a column is not present in this list it will be ignored. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.BigtableOptions.BigtableColumn columns = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getColumns() - { - return $this->columns; - } - - /** - * The list of objects that contains column level information for each - * column. If a column is not present in this list it will be ignored. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.BigtableOptions.BigtableColumn columns = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\BigtableOptions\BigtableColumn>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setColumns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\BigtableOptions\BigtableColumn::class); - $this->columns = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BigtableColumnFamily::class, \Google\Cloud\DiscoveryEngine\V1\BigtableOptions_BigtableColumnFamily::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/Encoding.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/Encoding.php deleted file mode 100644 index d7c862889d81..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/Encoding.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.discoveryengine.v1.BigtableOptions.Encoding - */ -class Encoding -{ - /** - * The encoding is unspecified. - * - * Generated from protobuf enum ENCODING_UNSPECIFIED = 0; - */ - const ENCODING_UNSPECIFIED = 0; - /** - * Text encoding. - * - * Generated from protobuf enum TEXT = 1; - */ - const TEXT = 1; - /** - * Binary encoding. - * - * Generated from protobuf enum BINARY = 2; - */ - const BINARY = 2; - - private static $valueToName = [ - self::ENCODING_UNSPECIFIED => 'ENCODING_UNSPECIFIED', - self::TEXT => 'TEXT', - self::BINARY => 'BINARY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Encoding::class, \Google\Cloud\DiscoveryEngine\V1\BigtableOptions_Encoding::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/Type.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/Type.php deleted file mode 100644 index a3f666866810..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableOptions/Type.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.discoveryengine.v1.BigtableOptions.Type - */ -class Type -{ - /** - * The type is unspecified. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * String type. - * - * Generated from protobuf enum STRING = 1; - */ - const STRING = 1; - /** - * Numerical type. - * - * Generated from protobuf enum NUMBER = 2; - */ - const NUMBER = 2; - /** - * Integer type. - * - * Generated from protobuf enum INTEGER = 3; - */ - const INTEGER = 3; - /** - * Variable length integer type. - * - * Generated from protobuf enum VAR_INTEGER = 4; - */ - const VAR_INTEGER = 4; - /** - * BigDecimal type. - * - * Generated from protobuf enum BIG_NUMERIC = 5; - */ - const BIG_NUMERIC = 5; - /** - * Boolean type. - * - * Generated from protobuf enum BOOLEAN = 6; - */ - const BOOLEAN = 6; - /** - * JSON type. - * - * Generated from protobuf enum JSON = 7; - */ - const JSON = 7; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::STRING => 'STRING', - self::NUMBER => 'NUMBER', - self::INTEGER => 'INTEGER', - self::VAR_INTEGER => 'VAR_INTEGER', - self::BIG_NUMERIC => 'BIG_NUMERIC', - self::BOOLEAN => 'BOOLEAN', - self::JSON => 'JSON', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DiscoveryEngine\V1\BigtableOptions_Type::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableSource.php deleted file mode 100644 index 60e198af4864..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/BigtableSource.php +++ /dev/null @@ -1,191 +0,0 @@ -google.cloud.discoveryengine.v1.BigtableSource - */ -class BigtableSource extends \Google\Protobuf\Internal\Message -{ - /** - * The project ID that contains the Bigtable source. Has a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Required. The instance ID of the Cloud Bigtable that needs to be imported. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_id = ''; - /** - * Required. The table ID of the Cloud Bigtable that needs to be imported. - * - * Generated from protobuf field string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_id = ''; - /** - * Required. Bigtable options that contains information needed when parsing - * data into typed structures. For example, column type annotations. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions bigtable_options = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bigtable_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The project ID that contains the Bigtable source. Has a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * @type string $instance_id - * Required. The instance ID of the Cloud Bigtable that needs to be imported. - * @type string $table_id - * Required. The table ID of the Cloud Bigtable that needs to be imported. - * @type \Google\Cloud\DiscoveryEngine\V1\BigtableOptions $bigtable_options - * Required. Bigtable options that contains information needed when parsing - * data into typed structures. For example, column type annotations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The project ID that contains the Bigtable source. Has a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project ID that contains the Bigtable source. Has a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The instance ID of the Cloud Bigtable that needs to be imported. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * Required. The instance ID of the Cloud Bigtable that needs to be imported. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * Required. The table ID of the Cloud Bigtable that needs to be imported. - * - * Generated from protobuf field string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Required. The table ID of the Cloud Bigtable that needs to be imported. - * - * Generated from protobuf field string table_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * Required. Bigtable options that contains information needed when parsing - * data into typed structures. For example, column type annotations. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions bigtable_options = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\BigtableOptions|null - */ - public function getBigtableOptions() - { - return $this->bigtable_options; - } - - public function hasBigtableOptions() - { - return isset($this->bigtable_options); - } - - public function clearBigtableOptions() - { - unset($this->bigtable_options); - } - - /** - * Required. Bigtable options that contains information needed when parsing - * data into typed structures. For example, column type annotations. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableOptions bigtable_options = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\BigtableOptions $var - * @return $this - */ - public function setBigtableOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\BigtableOptions::class); - $this->bigtable_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingRequest.php deleted file mode 100644 index 70f17bf4b7a6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingRequest.php +++ /dev/null @@ -1,279 +0,0 @@ -google.cloud.discoveryengine.v1.CheckGroundingRequest - */ -class CheckGroundingRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the grounding config, such as - * `projects/*/locations/global/groundingConfigs/default_grounding_config`. - * - * Generated from protobuf field string grounding_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $grounding_config = ''; - /** - * Answer candidate to check. Can have a maximum length of 1024 characters. - * - * Generated from protobuf field string answer_candidate = 2; - */ - protected $answer_candidate = ''; - /** - * List of facts for the grounding check. - * We support up to 200 facts. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundingFact facts = 3; - */ - private $facts; - /** - * Configuration of the grounding check. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CheckGroundingSpec grounding_spec = 4; - */ - protected $grounding_spec = null; - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 5; - */ - private $user_labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $grounding_config - * Required. The resource name of the grounding config, such as - * `projects/*/locations/global/groundingConfigs/default_grounding_config`. - * @type string $answer_candidate - * Answer candidate to check. Can have a maximum length of 1024 characters. - * @type array<\Google\Cloud\DiscoveryEngine\V1\GroundingFact>|\Google\Protobuf\Internal\RepeatedField $facts - * List of facts for the grounding check. - * We support up to 200 facts. - * @type \Google\Cloud\DiscoveryEngine\V1\CheckGroundingSpec $grounding_spec - * Configuration of the grounding check. - * @type array|\Google\Protobuf\Internal\MapField $user_labels - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the grounding config, such as - * `projects/*/locations/global/groundingConfigs/default_grounding_config`. - * - * Generated from protobuf field string grounding_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getGroundingConfig() - { - return $this->grounding_config; - } - - /** - * Required. The resource name of the grounding config, such as - * `projects/*/locations/global/groundingConfigs/default_grounding_config`. - * - * Generated from protobuf field string grounding_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setGroundingConfig($var) - { - GPBUtil::checkString($var, True); - $this->grounding_config = $var; - - return $this; - } - - /** - * Answer candidate to check. Can have a maximum length of 1024 characters. - * - * Generated from protobuf field string answer_candidate = 2; - * @return string - */ - public function getAnswerCandidate() - { - return $this->answer_candidate; - } - - /** - * Answer candidate to check. Can have a maximum length of 1024 characters. - * - * Generated from protobuf field string answer_candidate = 2; - * @param string $var - * @return $this - */ - public function setAnswerCandidate($var) - { - GPBUtil::checkString($var, True); - $this->answer_candidate = $var; - - return $this; - } - - /** - * List of facts for the grounding check. - * We support up to 200 facts. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundingFact facts = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFacts() - { - return $this->facts; - } - - /** - * List of facts for the grounding check. - * We support up to 200 facts. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundingFact facts = 3; - * @param array<\Google\Cloud\DiscoveryEngine\V1\GroundingFact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\GroundingFact::class); - $this->facts = $arr; - - return $this; - } - - /** - * Configuration of the grounding check. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CheckGroundingSpec grounding_spec = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\CheckGroundingSpec|null - */ - public function getGroundingSpec() - { - return $this->grounding_spec; - } - - public function hasGroundingSpec() - { - return isset($this->grounding_spec); - } - - public function clearGroundingSpec() - { - unset($this->grounding_spec); - } - - /** - * Configuration of the grounding check. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CheckGroundingSpec grounding_spec = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\CheckGroundingSpec $var - * @return $this - */ - public function setGroundingSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\CheckGroundingSpec::class); - $this->grounding_spec = $var; - - return $this; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getUserLabels() - { - return $this->user_labels; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->user_labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingResponse.php deleted file mode 100644 index 96ad7b0e3b7b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingResponse.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.discoveryengine.v1.CheckGroundingResponse - */ -class CheckGroundingResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The support score for the input answer candidate. - * Higher the score, higher is the fraction of claims that are supported by - * the provided facts. This is always set when a response is returned. - * - * Generated from protobuf field optional float support_score = 1; - */ - protected $support_score = null; - /** - * List of facts cited across all claims in the answer candidate. - * These are derived from the facts supplied in the request. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.FactChunk cited_chunks = 3; - */ - private $cited_chunks; - /** - * Claim texts and citation info across all claims in the answer candidate. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim claims = 4; - */ - private $claims; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $support_score - * The support score for the input answer candidate. - * Higher the score, higher is the fraction of claims that are supported by - * the provided facts. This is always set when a response is returned. - * @type array<\Google\Cloud\DiscoveryEngine\V1\FactChunk>|\Google\Protobuf\Internal\RepeatedField $cited_chunks - * List of facts cited across all claims in the answer candidate. - * These are derived from the facts supplied in the request. - * @type array<\Google\Cloud\DiscoveryEngine\V1\CheckGroundingResponse\Claim>|\Google\Protobuf\Internal\RepeatedField $claims - * Claim texts and citation info across all claims in the answer candidate. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * The support score for the input answer candidate. - * Higher the score, higher is the fraction of claims that are supported by - * the provided facts. This is always set when a response is returned. - * - * Generated from protobuf field optional float support_score = 1; - * @return float - */ - public function getSupportScore() - { - return isset($this->support_score) ? $this->support_score : 0.0; - } - - public function hasSupportScore() - { - return isset($this->support_score); - } - - public function clearSupportScore() - { - unset($this->support_score); - } - - /** - * The support score for the input answer candidate. - * Higher the score, higher is the fraction of claims that are supported by - * the provided facts. This is always set when a response is returned. - * - * Generated from protobuf field optional float support_score = 1; - * @param float $var - * @return $this - */ - public function setSupportScore($var) - { - GPBUtil::checkFloat($var); - $this->support_score = $var; - - return $this; - } - - /** - * List of facts cited across all claims in the answer candidate. - * These are derived from the facts supplied in the request. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.FactChunk cited_chunks = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCitedChunks() - { - return $this->cited_chunks; - } - - /** - * List of facts cited across all claims in the answer candidate. - * These are derived from the facts supplied in the request. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.FactChunk cited_chunks = 3; - * @param array<\Google\Cloud\DiscoveryEngine\V1\FactChunk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCitedChunks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\FactChunk::class); - $this->cited_chunks = $arr; - - return $this; - } - - /** - * Claim texts and citation info across all claims in the answer candidate. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim claims = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getClaims() - { - return $this->claims; - } - - /** - * Claim texts and citation info across all claims in the answer candidate. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim claims = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\CheckGroundingResponse\Claim>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setClaims($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\CheckGroundingResponse\Claim::class); - $this->claims = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingResponse/Claim.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingResponse/Claim.php deleted file mode 100644 index 82ec2c714b35..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingResponse/Claim.php +++ /dev/null @@ -1,296 +0,0 @@ -google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim - */ -class Claim extends \Google\Protobuf\Internal\Message -{ - /** - * Position indicating the start of the claim in the answer candidate, - * measured in bytes. - * - * Generated from protobuf field optional int32 start_pos = 1; - */ - protected $start_pos = null; - /** - * Position indicating the end of the claim in the answer candidate, - * exclusive. - * - * Generated from protobuf field optional int32 end_pos = 2; - */ - protected $end_pos = null; - /** - * Text for the claim in the answer candidate. Always provided regardless of - * whether citations or anti-citations are found. - * - * Generated from protobuf field string claim_text = 3; - */ - protected $claim_text = ''; - /** - * A list of indices (into 'cited_chunks') specifying the citations - * associated with the claim. For instance [1,3,4] means that - * cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited - * supporting for the claim. A citation to a fact indicates that the claim - * is supported by the fact. - * - * Generated from protobuf field repeated int32 citation_indices = 4; - */ - private $citation_indices; - /** - * Indicates that this claim required grounding check. When the system - * decided this claim doesn't require attribution/grounding check, this - * field will be set to false. In that case, no grounding check was done for - * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.score] - * should not be returned. - * - * Generated from protobuf field optional bool grounding_check_required = 6; - */ - protected $grounding_check_required = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $start_pos - * Position indicating the start of the claim in the answer candidate, - * measured in bytes. - * @type int $end_pos - * Position indicating the end of the claim in the answer candidate, - * exclusive. - * @type string $claim_text - * Text for the claim in the answer candidate. Always provided regardless of - * whether citations or anti-citations are found. - * @type array|\Google\Protobuf\Internal\RepeatedField $citation_indices - * A list of indices (into 'cited_chunks') specifying the citations - * associated with the claim. For instance [1,3,4] means that - * cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited - * supporting for the claim. A citation to a fact indicates that the claim - * is supported by the fact. - * @type bool $grounding_check_required - * Indicates that this claim required grounding check. When the system - * decided this claim doesn't require attribution/grounding check, this - * field will be set to false. In that case, no grounding check was done for - * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.score] - * should not be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Position indicating the start of the claim in the answer candidate, - * measured in bytes. - * - * Generated from protobuf field optional int32 start_pos = 1; - * @return int - */ - public function getStartPos() - { - return isset($this->start_pos) ? $this->start_pos : 0; - } - - public function hasStartPos() - { - return isset($this->start_pos); - } - - public function clearStartPos() - { - unset($this->start_pos); - } - - /** - * Position indicating the start of the claim in the answer candidate, - * measured in bytes. - * - * Generated from protobuf field optional int32 start_pos = 1; - * @param int $var - * @return $this - */ - public function setStartPos($var) - { - GPBUtil::checkInt32($var); - $this->start_pos = $var; - - return $this; - } - - /** - * Position indicating the end of the claim in the answer candidate, - * exclusive. - * - * Generated from protobuf field optional int32 end_pos = 2; - * @return int - */ - public function getEndPos() - { - return isset($this->end_pos) ? $this->end_pos : 0; - } - - public function hasEndPos() - { - return isset($this->end_pos); - } - - public function clearEndPos() - { - unset($this->end_pos); - } - - /** - * Position indicating the end of the claim in the answer candidate, - * exclusive. - * - * Generated from protobuf field optional int32 end_pos = 2; - * @param int $var - * @return $this - */ - public function setEndPos($var) - { - GPBUtil::checkInt32($var); - $this->end_pos = $var; - - return $this; - } - - /** - * Text for the claim in the answer candidate. Always provided regardless of - * whether citations or anti-citations are found. - * - * Generated from protobuf field string claim_text = 3; - * @return string - */ - public function getClaimText() - { - return $this->claim_text; - } - - /** - * Text for the claim in the answer candidate. Always provided regardless of - * whether citations or anti-citations are found. - * - * Generated from protobuf field string claim_text = 3; - * @param string $var - * @return $this - */ - public function setClaimText($var) - { - GPBUtil::checkString($var, True); - $this->claim_text = $var; - - return $this; - } - - /** - * A list of indices (into 'cited_chunks') specifying the citations - * associated with the claim. For instance [1,3,4] means that - * cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited - * supporting for the claim. A citation to a fact indicates that the claim - * is supported by the fact. - * - * Generated from protobuf field repeated int32 citation_indices = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCitationIndices() - { - return $this->citation_indices; - } - - /** - * A list of indices (into 'cited_chunks') specifying the citations - * associated with the claim. For instance [1,3,4] means that - * cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited - * supporting for the claim. A citation to a fact indicates that the claim - * is supported by the fact. - * - * Generated from protobuf field repeated int32 citation_indices = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCitationIndices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->citation_indices = $arr; - - return $this; - } - - /** - * Indicates that this claim required grounding check. When the system - * decided this claim doesn't require attribution/grounding check, this - * field will be set to false. In that case, no grounding check was done for - * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.score] - * should not be returned. - * - * Generated from protobuf field optional bool grounding_check_required = 6; - * @return bool - */ - public function getGroundingCheckRequired() - { - return isset($this->grounding_check_required) ? $this->grounding_check_required : false; - } - - public function hasGroundingCheckRequired() - { - return isset($this->grounding_check_required); - } - - public function clearGroundingCheckRequired() - { - unset($this->grounding_check_required); - } - - /** - * Indicates that this claim required grounding check. When the system - * decided this claim doesn't require attribution/grounding check, this - * field will be set to false. In that case, no grounding check was done for - * the claim and therefore - * [citation_indices][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.citation_indices], - * [anti_citation_indices][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.anti_citation_indices], - * and - * [score][google.cloud.discoveryengine.v1.CheckGroundingResponse.Claim.score] - * should not be returned. - * - * Generated from protobuf field optional bool grounding_check_required = 6; - * @param bool $var - * @return $this - */ - public function setGroundingCheckRequired($var) - { - GPBUtil::checkBool($var); - $this->grounding_check_required = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Claim::class, \Google\Cloud\DiscoveryEngine\V1\CheckGroundingResponse_Claim::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingSpec.php deleted file mode 100644 index 87d16aeca1df..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CheckGroundingSpec.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.discoveryengine.v1.CheckGroundingSpec - */ -class CheckGroundingSpec extends \Google\Protobuf\Internal\Message -{ - /** - * The threshold (in [0,1]) used for determining whether a fact must be - * cited for a claim in the answer candidate. Choosing a higher threshold - * will lead to fewer but very strong citations, while choosing a lower - * threshold may lead to more but somewhat weaker citations. If unset, the - * threshold will default to 0.6. - * - * Generated from protobuf field optional double citation_threshold = 1; - */ - protected $citation_threshold = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $citation_threshold - * The threshold (in [0,1]) used for determining whether a fact must be - * cited for a claim in the answer candidate. Choosing a higher threshold - * will lead to fewer but very strong citations, while choosing a lower - * threshold may lead to more but somewhat weaker citations. If unset, the - * threshold will default to 0.6. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * The threshold (in [0,1]) used for determining whether a fact must be - * cited for a claim in the answer candidate. Choosing a higher threshold - * will lead to fewer but very strong citations, while choosing a lower - * threshold may lead to more but somewhat weaker citations. If unset, the - * threshold will default to 0.6. - * - * Generated from protobuf field optional double citation_threshold = 1; - * @return float - */ - public function getCitationThreshold() - { - return isset($this->citation_threshold) ? $this->citation_threshold : 0.0; - } - - public function hasCitationThreshold() - { - return isset($this->citation_threshold); - } - - public function clearCitationThreshold() - { - unset($this->citation_threshold); - } - - /** - * The threshold (in [0,1]) used for determining whether a fact must be - * cited for a claim in the answer candidate. Choosing a higher threshold - * will lead to fewer but very strong citations, while choosing a lower - * threshold may lead to more but somewhat weaker citations. If unset, the - * threshold will default to 0.6. - * - * Generated from protobuf field optional double citation_threshold = 1; - * @param float $var - * @return $this - */ - public function setCitationThreshold($var) - { - GPBUtil::checkDouble($var); - $this->citation_threshold = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk.php deleted file mode 100644 index f1f501390b8b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk.php +++ /dev/null @@ -1,388 +0,0 @@ -google.cloud.discoveryengine.v1.Chunk - */ -class Chunk extends \Google\Protobuf\Internal\Message -{ - /** - * The full resource name of the chunk. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Unique chunk ID of the current chunk. - * - * Generated from protobuf field string id = 2; - */ - protected $id = ''; - /** - * Content is a string from a document (parsed content). - * - * Generated from protobuf field string content = 3; - */ - protected $content = ''; - /** - * Output only. Represents the relevance score based on similarity. - * Higher score indicates higher chunk relevance. - * The score is in range [-1.0, 1.0]. - * Only populated on [SearchService.SearchResponse][]. - * - * Generated from protobuf field optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $relevance_score = null; - /** - * Metadata of the document from the current chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5; - */ - protected $document_metadata = null; - /** - * Output only. This field is OUTPUT_ONLY. - * It contains derived data that are not in the original input document. - * - * Generated from protobuf field .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $derived_struct_data = null; - /** - * Page span of the chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6; - */ - protected $page_span = null; - /** - * Output only. Metadata of the current chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $chunk_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The full resource name of the chunk. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * @type string $id - * Unique chunk ID of the current chunk. - * @type string $content - * Content is a string from a document (parsed content). - * @type float $relevance_score - * Output only. Represents the relevance score based on similarity. - * Higher score indicates higher chunk relevance. - * The score is in range [-1.0, 1.0]. - * Only populated on [SearchService.SearchResponse][]. - * @type \Google\Cloud\DiscoveryEngine\V1\Chunk\DocumentMetadata $document_metadata - * Metadata of the document from the current chunk. - * @type \Google\Protobuf\Struct $derived_struct_data - * Output only. This field is OUTPUT_ONLY. - * It contains derived data that are not in the original input document. - * @type \Google\Cloud\DiscoveryEngine\V1\Chunk\PageSpan $page_span - * Page span of the chunk. - * @type \Google\Cloud\DiscoveryEngine\V1\Chunk\ChunkMetadata $chunk_metadata - * Output only. Metadata of the current chunk. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Chunk::initOnce(); - parent::__construct($data); - } - - /** - * The full resource name of the chunk. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The full resource name of the chunk. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * 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 chunk ID of the current chunk. - * - * Generated from protobuf field string id = 2; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Unique chunk ID of the current chunk. - * - * Generated from protobuf field string id = 2; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Content is a string from a document (parsed content). - * - * Generated from protobuf field string content = 3; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Content is a string from a document (parsed content). - * - * Generated from protobuf field string content = 3; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * Output only. Represents the relevance score based on similarity. - * Higher score indicates higher chunk relevance. - * The score is in range [-1.0, 1.0]. - * Only populated on [SearchService.SearchResponse][]. - * - * Generated from protobuf field optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return float - */ - public function getRelevanceScore() - { - return isset($this->relevance_score) ? $this->relevance_score : 0.0; - } - - public function hasRelevanceScore() - { - return isset($this->relevance_score); - } - - public function clearRelevanceScore() - { - unset($this->relevance_score); - } - - /** - * Output only. Represents the relevance score based on similarity. - * Higher score indicates higher chunk relevance. - * The score is in range [-1.0, 1.0]. - * Only populated on [SearchService.SearchResponse][]. - * - * Generated from protobuf field optional double relevance_score = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param float $var - * @return $this - */ - public function setRelevanceScore($var) - { - GPBUtil::checkDouble($var); - $this->relevance_score = $var; - - return $this; - } - - /** - * Metadata of the document from the current chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5; - * @return \Google\Cloud\DiscoveryEngine\V1\Chunk\DocumentMetadata|null - */ - public function getDocumentMetadata() - { - return $this->document_metadata; - } - - public function hasDocumentMetadata() - { - return isset($this->document_metadata); - } - - public function clearDocumentMetadata() - { - unset($this->document_metadata); - } - - /** - * Metadata of the document from the current chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk.DocumentMetadata document_metadata = 5; - * @param \Google\Cloud\DiscoveryEngine\V1\Chunk\DocumentMetadata $var - * @return $this - */ - public function setDocumentMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Chunk\DocumentMetadata::class); - $this->document_metadata = $var; - - return $this; - } - - /** - * Output only. This field is OUTPUT_ONLY. - * It contains derived data that are not in the original input document. - * - * Generated from protobuf field .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Struct|null - */ - public function getDerivedStructData() - { - return $this->derived_struct_data; - } - - public function hasDerivedStructData() - { - return isset($this->derived_struct_data); - } - - public function clearDerivedStructData() - { - unset($this->derived_struct_data); - } - - /** - * Output only. This field is OUTPUT_ONLY. - * It contains derived data that are not in the original input document. - * - * Generated from protobuf field .google.protobuf.Struct derived_struct_data = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setDerivedStructData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->derived_struct_data = $var; - - return $this; - } - - /** - * Page span of the chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6; - * @return \Google\Cloud\DiscoveryEngine\V1\Chunk\PageSpan|null - */ - public function getPageSpan() - { - return $this->page_span; - } - - public function hasPageSpan() - { - return isset($this->page_span); - } - - public function clearPageSpan() - { - unset($this->page_span); - } - - /** - * Page span of the chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk.PageSpan page_span = 6; - * @param \Google\Cloud\DiscoveryEngine\V1\Chunk\PageSpan $var - * @return $this - */ - public function setPageSpan($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Chunk\PageSpan::class); - $this->page_span = $var; - - return $this; - } - - /** - * Output only. Metadata of the current chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\DiscoveryEngine\V1\Chunk\ChunkMetadata|null - */ - public function getChunkMetadata() - { - return $this->chunk_metadata; - } - - public function hasChunkMetadata() - { - return isset($this->chunk_metadata); - } - - public function clearChunkMetadata() - { - unset($this->chunk_metadata); - } - - /** - * Output only. Metadata of the current chunk. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk.ChunkMetadata chunk_metadata = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\DiscoveryEngine\V1\Chunk\ChunkMetadata $var - * @return $this - */ - public function setChunkMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Chunk\ChunkMetadata::class); - $this->chunk_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/ChunkMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/ChunkMetadata.php deleted file mode 100644 index 4bfbaf18b2d6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/ChunkMetadata.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.discoveryengine.v1.Chunk.ChunkMetadata - */ -class ChunkMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The previous chunks of the current chunk. The number is controlled by - * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks]. - * This field is only populated on - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Chunk previous_chunks = 1; - */ - private $previous_chunks; - /** - * The next chunks of the current chunk. The number is controlled by - * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks]. - * This field is only populated on - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Chunk next_chunks = 2; - */ - private $next_chunks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\Chunk>|\Google\Protobuf\Internal\RepeatedField $previous_chunks - * The previous chunks of the current chunk. The number is controlled by - * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks]. - * This field is only populated on - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Chunk>|\Google\Protobuf\Internal\RepeatedField $next_chunks - * The next chunks of the current chunk. The number is controlled by - * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks]. - * This field is only populated on - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Chunk::initOnce(); - parent::__construct($data); - } - - /** - * The previous chunks of the current chunk. The number is controlled by - * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks]. - * This field is only populated on - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Chunk previous_chunks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPreviousChunks() - { - return $this->previous_chunks; - } - - /** - * The previous chunks of the current chunk. The number is controlled by - * [SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks]. - * This field is only populated on - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Chunk previous_chunks = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Chunk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPreviousChunks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Chunk::class); - $this->previous_chunks = $arr; - - return $this; - } - - /** - * The next chunks of the current chunk. The number is controlled by - * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks]. - * This field is only populated on - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Chunk next_chunks = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNextChunks() - { - return $this->next_chunks; - } - - /** - * The next chunks of the current chunk. The number is controlled by - * [SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks]. - * This field is only populated on - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Chunk next_chunks = 2; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Chunk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNextChunks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Chunk::class); - $this->next_chunks = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkMetadata::class, \Google\Cloud\DiscoveryEngine\V1\Chunk_ChunkMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/DocumentMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/DocumentMetadata.php deleted file mode 100644 index 5dda50e30496..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/DocumentMetadata.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.discoveryengine.v1.Chunk.DocumentMetadata - */ -class DocumentMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Uri of the document. - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - /** - * Title of the document. - * - * Generated from protobuf field string title = 2; - */ - protected $title = ''; - /** - * Data representation. - * The structured JSON data for the document. It should conform to the - * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an - * `INVALID_ARGUMENT` error is thrown. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 3; - */ - protected $struct_data = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Uri of the document. - * @type string $title - * Title of the document. - * @type \Google\Protobuf\Struct $struct_data - * Data representation. - * The structured JSON data for the document. It should conform to the - * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an - * `INVALID_ARGUMENT` error is thrown. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Chunk::initOnce(); - parent::__construct($data); - } - - /** - * Uri of the document. - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Uri of the document. - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Title of the document. - * - * Generated from protobuf field string title = 2; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Title of the document. - * - * Generated from protobuf field string title = 2; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * Data representation. - * The structured JSON data for the document. It should conform to the - * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an - * `INVALID_ARGUMENT` error is thrown. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 3; - * @return \Google\Protobuf\Struct|null - */ - public function getStructData() - { - return $this->struct_data; - } - - public function hasStructData() - { - return isset($this->struct_data); - } - - public function clearStructData() - { - unset($this->struct_data); - } - - /** - * Data representation. - * The structured JSON data for the document. It should conform to the - * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an - * `INVALID_ARGUMENT` error is thrown. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 3; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setStructData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->struct_data = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DocumentMetadata::class, \Google\Cloud\DiscoveryEngine\V1\Chunk_DocumentMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/PageSpan.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/PageSpan.php deleted file mode 100644 index 927050a25c16..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Chunk/PageSpan.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.discoveryengine.v1.Chunk.PageSpan - */ -class PageSpan extends \Google\Protobuf\Internal\Message -{ - /** - * The start page of the chunk. - * - * Generated from protobuf field int32 page_start = 1; - */ - protected $page_start = 0; - /** - * The end page of the chunk. - * - * Generated from protobuf field int32 page_end = 2; - */ - protected $page_end = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_start - * The start page of the chunk. - * @type int $page_end - * The end page of the chunk. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Chunk::initOnce(); - parent::__construct($data); - } - - /** - * The start page of the chunk. - * - * Generated from protobuf field int32 page_start = 1; - * @return int - */ - public function getPageStart() - { - return $this->page_start; - } - - /** - * The start page of the chunk. - * - * Generated from protobuf field int32 page_start = 1; - * @param int $var - * @return $this - */ - public function setPageStart($var) - { - GPBUtil::checkInt32($var); - $this->page_start = $var; - - return $this; - } - - /** - * The end page of the chunk. - * - * Generated from protobuf field int32 page_end = 2; - * @return int - */ - public function getPageEnd() - { - return $this->page_end; - } - - /** - * The end page of the chunk. - * - * Generated from protobuf field int32 page_end = 2; - * @param int $var - * @return $this - */ - public function setPageEnd($var) - { - GPBUtil::checkInt32($var); - $this->page_end = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PageSpan::class, \Google\Cloud\DiscoveryEngine\V1\Chunk_PageSpan::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CloudSqlSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CloudSqlSource.php deleted file mode 100644 index 65dbb1f6e1ee..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CloudSqlSource.php +++ /dev/null @@ -1,281 +0,0 @@ -google.cloud.discoveryengine.v1.CloudSqlSource - */ -class CloudSqlSource extends \Google\Protobuf\Internal\Message -{ - /** - * The project ID that contains the Cloud SQL source. Has a length limit of - * 128 characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Required. The Cloud SQL instance to copy the data from with a length limit - * of 256 characters. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_id = ''; - /** - * Required. The Cloud SQL database to copy the data from with a length limit - * of 256 characters. - * - * Generated from protobuf field string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_id = ''; - /** - * Required. The Cloud SQL table to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_id = ''; - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * Cloud SQL export to a specific Cloud Storage directory. - * Ensure that the Cloud SQL service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 5; - */ - protected $gcs_staging_dir = ''; - /** - * Option for serverless export. Enabling this option will incur additional - * cost. More info can be found - * [here](https://cloud.google.com/sql/pricing#serverless). - * - * Generated from protobuf field bool offload = 6; - */ - protected $offload = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The project ID that contains the Cloud SQL source. Has a length limit of - * 128 characters. If not specified, inherits the project ID from the parent - * request. - * @type string $instance_id - * Required. The Cloud SQL instance to copy the data from with a length limit - * of 256 characters. - * @type string $database_id - * Required. The Cloud SQL database to copy the data from with a length limit - * of 256 characters. - * @type string $table_id - * Required. The Cloud SQL table to copy the data from with a length limit of - * 256 characters. - * @type string $gcs_staging_dir - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * Cloud SQL export to a specific Cloud Storage directory. - * Ensure that the Cloud SQL service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * @type bool $offload - * Option for serverless export. Enabling this option will incur additional - * cost. More info can be found - * [here](https://cloud.google.com/sql/pricing#serverless). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The project ID that contains the Cloud SQL source. Has a length limit of - * 128 characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project ID that contains the Cloud SQL source. Has a length limit of - * 128 characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The Cloud SQL instance to copy the data from with a length limit - * of 256 characters. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * Required. The Cloud SQL instance to copy the data from with a length limit - * of 256 characters. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * Required. The Cloud SQL database to copy the data from with a length limit - * of 256 characters. - * - * Generated from protobuf field string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * Required. The Cloud SQL database to copy the data from with a length limit - * of 256 characters. - * - * Generated from protobuf field string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Required. The Cloud SQL table to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Required. The Cloud SQL table to copy the data from with a length limit of - * 256 characters. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * Cloud SQL export to a specific Cloud Storage directory. - * Ensure that the Cloud SQL service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 5; - * @return string - */ - public function getGcsStagingDir() - { - return $this->gcs_staging_dir; - } - - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * Cloud SQL export to a specific Cloud Storage directory. - * Ensure that the Cloud SQL service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 5; - * @param string $var - * @return $this - */ - public function setGcsStagingDir($var) - { - GPBUtil::checkString($var, True); - $this->gcs_staging_dir = $var; - - return $this; - } - - /** - * Option for serverless export. Enabling this option will incur additional - * cost. More info can be found - * [here](https://cloud.google.com/sql/pricing#serverless). - * - * Generated from protobuf field bool offload = 6; - * @return bool - */ - public function getOffload() - { - return $this->offload; - } - - /** - * Option for serverless export. Enabling this option will incur additional - * cost. More info can be found - * [here](https://cloud.google.com/sql/pricing#serverless). - * - * Generated from protobuf field bool offload = 6; - * @param bool $var - * @return $this - */ - public function setOffload($var) - { - GPBUtil::checkBool($var); - $this->offload = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CollectUserEventRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CollectUserEventRequest.php deleted file mode 100644 index 57f71eb00d61..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CollectUserEventRequest.php +++ /dev/null @@ -1,217 +0,0 @@ -google.cloud.discoveryengine.v1.CollectUserEventRequest - */ -class CollectUserEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent DataStore resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. URL encoded UserEvent proto with a length limit of 2,000,000 - * characters. - * - * Generated from protobuf field string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user_event = ''; - /** - * The URL including cgi-parameters but excluding the hash fragment with a - * length limit of 5,000 characters. This is often more useful than the - * referer URL, because many browsers only send the domain for third-party - * requests. - * - * Generated from protobuf field optional string uri = 3; - */ - protected $uri = null; - /** - * The event timestamp in milliseconds. This prevents browser caching of - * otherwise identical get requests. The name is abbreviated to reduce the - * payload bytes. - * - * Generated from protobuf field optional int64 ets = 4; - */ - protected $ets = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent DataStore resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * @type string $user_event - * Required. URL encoded UserEvent proto with a length limit of 2,000,000 - * characters. - * @type string $uri - * The URL including cgi-parameters but excluding the hash fragment with a - * length limit of 5,000 characters. This is often more useful than the - * referer URL, because many browsers only send the domain for third-party - * requests. - * @type int|string $ets - * The event timestamp in milliseconds. This prevents browser caching of - * otherwise identical get requests. The name is abbreviated to reduce the - * payload bytes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\UserEventService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent DataStore resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * - * Generated 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 DataStore resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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. URL encoded UserEvent proto with a length limit of 2,000,000 - * characters. - * - * Generated from protobuf field string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUserEvent() - { - return $this->user_event; - } - - /** - * Required. URL encoded UserEvent proto with a length limit of 2,000,000 - * characters. - * - * Generated from protobuf field string user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUserEvent($var) - { - GPBUtil::checkString($var, True); - $this->user_event = $var; - - return $this; - } - - /** - * The URL including cgi-parameters but excluding the hash fragment with a - * length limit of 5,000 characters. This is often more useful than the - * referer URL, because many browsers only send the domain for third-party - * requests. - * - * Generated from protobuf field optional string uri = 3; - * @return string - */ - public function getUri() - { - return isset($this->uri) ? $this->uri : ''; - } - - public function hasUri() - { - return isset($this->uri); - } - - public function clearUri() - { - unset($this->uri); - } - - /** - * The URL including cgi-parameters but excluding the hash fragment with a - * length limit of 5,000 characters. This is often more useful than the - * referer URL, because many browsers only send the domain for third-party - * requests. - * - * Generated from protobuf field optional string uri = 3; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * The event timestamp in milliseconds. This prevents browser caching of - * otherwise identical get requests. The name is abbreviated to reduce the - * payload bytes. - * - * Generated from protobuf field optional int64 ets = 4; - * @return int|string - */ - public function getEts() - { - return isset($this->ets) ? $this->ets : 0; - } - - public function hasEts() - { - return isset($this->ets); - } - - public function clearEts() - { - unset($this->ets); - } - - /** - * The event timestamp in milliseconds. This prevents browser caching of - * otherwise identical get requests. The name is abbreviated to reduce the - * payload bytes. - * - * Generated from protobuf field optional int64 ets = 4; - * @param int|string $var - * @return $this - */ - public function setEts($var) - { - GPBUtil::checkInt64($var); - $this->ets = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryRequest.php deleted file mode 100644 index 1385560655e2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryRequest.php +++ /dev/null @@ -1,321 +0,0 @@ -google.cloud.discoveryengine.v1.CompleteQueryRequest - */ -class CompleteQueryRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent data store resource name for which the completion is - * performed, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $data_store = ''; - /** - * Required. The typeahead input used to fetch suggestions. Maximum length is - * 128 characters. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - /** - * Specifies the autocomplete data model. This overrides any model specified - * in the Configuration > Autocomplete section of the Cloud console. Currently - * supported values: - * * `document` - Using suggestions generated from user-imported documents. - * * `search-history` - Using suggestions generated from the past history of - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API calls. Do not use it when there is no traffic for Search API. - * * `user-event` - Using suggestions generated from user-imported search - * events. - * * `document-completable` - Using suggestions taken directly from - * user-imported document fields marked as completable. - * Default values: - * * `document` is the default model for regular dataStores. - * * `search-history` is the default model for site search dataStores. - * - * Generated from protobuf field string query_model = 3; - */ - protected $query_model = ''; - /** - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * This should be the same identifier as - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * and - * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id]. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_pseudo_id = 4; - */ - protected $user_pseudo_id = ''; - /** - * Indicates if tail suggestions should be returned if there are no - * suggestions that match the full query. Even if set to true, if there are - * suggestions that match the full query, those are returned and no - * tail suggestions are returned. - * - * Generated from protobuf field bool include_tail_suggestions = 5; - */ - protected $include_tail_suggestions = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_store - * Required. The parent data store resource name for which the completion is - * performed, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * @type string $query - * Required. The typeahead input used to fetch suggestions. Maximum length is - * 128 characters. - * @type string $query_model - * Specifies the autocomplete data model. This overrides any model specified - * in the Configuration > Autocomplete section of the Cloud console. Currently - * supported values: - * * `document` - Using suggestions generated from user-imported documents. - * * `search-history` - Using suggestions generated from the past history of - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API calls. Do not use it when there is no traffic for Search API. - * * `user-event` - Using suggestions generated from user-imported search - * events. - * * `document-completable` - Using suggestions taken directly from - * user-imported document fields marked as completable. - * Default values: - * * `document` is the default model for regular dataStores. - * * `search-history` is the default model for site search dataStores. - * @type string $user_pseudo_id - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * This should be the same identifier as - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * and - * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id]. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * @type bool $include_tail_suggestions - * Indicates if tail suggestions should be returned if there are no - * suggestions that match the full query. Even if set to true, if there are - * suggestions that match the full query, those are returned and no - * tail suggestions are returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\CompletionService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent data store resource name for which the completion is - * performed, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDataStore() - { - return $this->data_store; - } - - /** - * Required. The parent data store resource name for which the completion is - * performed, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDataStore($var) - { - GPBUtil::checkString($var, True); - $this->data_store = $var; - - return $this; - } - - /** - * Required. The typeahead input used to fetch suggestions. Maximum length is - * 128 characters. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. The typeahead input used to fetch suggestions. Maximum length is - * 128 characters. - * - * Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Specifies the autocomplete data model. This overrides any model specified - * in the Configuration > Autocomplete section of the Cloud console. Currently - * supported values: - * * `document` - Using suggestions generated from user-imported documents. - * * `search-history` - Using suggestions generated from the past history of - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API calls. Do not use it when there is no traffic for Search API. - * * `user-event` - Using suggestions generated from user-imported search - * events. - * * `document-completable` - Using suggestions taken directly from - * user-imported document fields marked as completable. - * Default values: - * * `document` is the default model for regular dataStores. - * * `search-history` is the default model for site search dataStores. - * - * Generated from protobuf field string query_model = 3; - * @return string - */ - public function getQueryModel() - { - return $this->query_model; - } - - /** - * Specifies the autocomplete data model. This overrides any model specified - * in the Configuration > Autocomplete section of the Cloud console. Currently - * supported values: - * * `document` - Using suggestions generated from user-imported documents. - * * `search-history` - Using suggestions generated from the past history of - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * API calls. Do not use it when there is no traffic for Search API. - * * `user-event` - Using suggestions generated from user-imported search - * events. - * * `document-completable` - Using suggestions taken directly from - * user-imported document fields marked as completable. - * Default values: - * * `document` is the default model for regular dataStores. - * * `search-history` is the default model for site search dataStores. - * - * Generated from protobuf field string query_model = 3; - * @param string $var - * @return $this - */ - public function setQueryModel($var) - { - GPBUtil::checkString($var, True); - $this->query_model = $var; - - return $this; - } - - /** - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * This should be the same identifier as - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * and - * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id]. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_pseudo_id = 4; - * @return string - */ - public function getUserPseudoId() - { - return $this->user_pseudo_id; - } - - /** - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * This should be the same identifier as - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * and - * [SearchRequest.user_pseudo_id][google.cloud.discoveryengine.v1.SearchRequest.user_pseudo_id]. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_pseudo_id = 4; - * @param string $var - * @return $this - */ - public function setUserPseudoId($var) - { - GPBUtil::checkString($var, True); - $this->user_pseudo_id = $var; - - return $this; - } - - /** - * Indicates if tail suggestions should be returned if there are no - * suggestions that match the full query. Even if set to true, if there are - * suggestions that match the full query, those are returned and no - * tail suggestions are returned. - * - * Generated from protobuf field bool include_tail_suggestions = 5; - * @return bool - */ - public function getIncludeTailSuggestions() - { - return $this->include_tail_suggestions; - } - - /** - * Indicates if tail suggestions should be returned if there are no - * suggestions that match the full query. Even if set to true, if there are - * suggestions that match the full query, those are returned and no - * tail suggestions are returned. - * - * Generated from protobuf field bool include_tail_suggestions = 5; - * @param bool $var - * @return $this - */ - public function setIncludeTailSuggestions($var) - { - GPBUtil::checkBool($var); - $this->include_tail_suggestions = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryResponse.php deleted file mode 100644 index 7794d8d05da0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.discoveryengine.v1.CompleteQueryResponse - */ -class CompleteQueryResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results of the matched query suggestions. The result list is ordered and - * the first result is a top suggestion. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - */ - private $query_suggestions; - /** - * True if the returned suggestions are all tail suggestions. - * For tail matching to be triggered, include_tail_suggestions in the request - * must be true and there must be no suggestions that match the full query. - * - * Generated from protobuf field bool tail_match_triggered = 2; - */ - protected $tail_match_triggered = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\CompleteQueryResponse\QuerySuggestion>|\Google\Protobuf\Internal\RepeatedField $query_suggestions - * Results of the matched query suggestions. The result list is ordered and - * the first result is a top suggestion. - * @type bool $tail_match_triggered - * True if the returned suggestions are all tail suggestions. - * For tail matching to be triggered, include_tail_suggestions in the request - * must be true and there must be no suggestions that match the full query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\CompletionService::initOnce(); - parent::__construct($data); - } - - /** - * Results of the matched query suggestions. The result list is ordered and - * the first result is a top suggestion. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuerySuggestions() - { - return $this->query_suggestions; - } - - /** - * Results of the matched query suggestions. The result list is ordered and - * the first result is a top suggestion. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\CompleteQueryResponse\QuerySuggestion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuerySuggestions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\CompleteQueryResponse\QuerySuggestion::class); - $this->query_suggestions = $arr; - - return $this; - } - - /** - * True if the returned suggestions are all tail suggestions. - * For tail matching to be triggered, include_tail_suggestions in the request - * must be true and there must be no suggestions that match the full query. - * - * Generated from protobuf field bool tail_match_triggered = 2; - * @return bool - */ - public function getTailMatchTriggered() - { - return $this->tail_match_triggered; - } - - /** - * True if the returned suggestions are all tail suggestions. - * For tail matching to be triggered, include_tail_suggestions in the request - * must be true and there must be no suggestions that match the full query. - * - * Generated from protobuf field bool tail_match_triggered = 2; - * @param bool $var - * @return $this - */ - public function setTailMatchTriggered($var) - { - GPBUtil::checkBool($var); - $this->tail_match_triggered = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryResponse/QuerySuggestion.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryResponse/QuerySuggestion.php deleted file mode 100644 index 47a2a2c47176..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompleteQueryResponse/QuerySuggestion.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion - */ -class QuerySuggestion extends \Google\Protobuf\Internal\Message -{ - /** - * The suggestion for the query. - * - * Generated from protobuf field string suggestion = 1; - */ - protected $suggestion = ''; - /** - * The unique document field paths that serve as the source of this - * suggestion if it was generated from completable fields. - * This field is only populated for the document-completable model. - * - * Generated from protobuf field repeated string completable_field_paths = 2; - */ - private $completable_field_paths; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $suggestion - * The suggestion for the query. - * @type array|\Google\Protobuf\Internal\RepeatedField $completable_field_paths - * The unique document field paths that serve as the source of this - * suggestion if it was generated from completable fields. - * This field is only populated for the document-completable model. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\CompletionService::initOnce(); - parent::__construct($data); - } - - /** - * The suggestion for the query. - * - * Generated from protobuf field string suggestion = 1; - * @return string - */ - public function getSuggestion() - { - return $this->suggestion; - } - - /** - * The suggestion for the query. - * - * 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 unique document field paths that serve as the source of this - * suggestion if it was generated from completable fields. - * This field is only populated for the document-completable model. - * - * Generated from protobuf field repeated string completable_field_paths = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCompletableFieldPaths() - { - return $this->completable_field_paths; - } - - /** - * The unique document field paths that serve as the source of this - * suggestion if it was generated from completable fields. - * This field is only populated for the document-completable model. - * - * Generated from protobuf field repeated string completable_field_paths = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCompletableFieldPaths($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->completable_field_paths = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QuerySuggestion::class, \Google\Cloud\DiscoveryEngine\V1\CompleteQueryResponse_QuerySuggestion::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompletionInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompletionInfo.php deleted file mode 100644 index 514ac4f519de..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompletionInfo.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.discoveryengine.v1.CompletionInfo - */ -class CompletionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * End user selected - * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion]. - * - * Generated from protobuf field string selected_suggestion = 1; - */ - protected $selected_suggestion = ''; - /** - * End user selected - * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion] - * position, starting from 0. - * - * Generated from protobuf field int32 selected_position = 2; - */ - protected $selected_position = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $selected_suggestion - * End user selected - * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion]. - * @type int $selected_position - * End user selected - * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion] - * position, starting from 0. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\UserEvent::initOnce(); - parent::__construct($data); - } - - /** - * End user selected - * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion]. - * - * Generated from protobuf field string selected_suggestion = 1; - * @return string - */ - public function getSelectedSuggestion() - { - return $this->selected_suggestion; - } - - /** - * End user selected - * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion]. - * - * Generated from protobuf field string selected_suggestion = 1; - * @param string $var - * @return $this - */ - public function setSelectedSuggestion($var) - { - GPBUtil::checkString($var, True); - $this->selected_suggestion = $var; - - return $this; - } - - /** - * End user selected - * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion] - * position, starting from 0. - * - * Generated from protobuf field int32 selected_position = 2; - * @return int - */ - public function getSelectedPosition() - { - return $this->selected_position; - } - - /** - * End user selected - * [CompleteQueryResponse.QuerySuggestion.suggestion][google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion.suggestion] - * position, starting from 0. - * - * Generated from protobuf field int32 selected_position = 2; - * @param int $var - * @return $this - */ - public function setSelectedPosition($var) - { - GPBUtil::checkInt32($var); - $this->selected_position = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompletionSuggestion.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompletionSuggestion.php deleted file mode 100644 index f9d115011f41..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CompletionSuggestion.php +++ /dev/null @@ -1,292 +0,0 @@ -google.cloud.discoveryengine.v1.CompletionSuggestion - */ -class CompletionSuggestion extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The suggestion text. - * - * Generated from protobuf field string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $suggestion = ''; - /** - * BCP-47 language code of this suggestion. - * - * Generated from protobuf field string language_code = 4; - */ - protected $language_code = ''; - /** - * If two suggestions have the same groupId, they will not be - * returned together. Instead the one ranked higher will be returned. This can - * be used to deduplicate semantically identical suggestions. - * - * Generated from protobuf field string group_id = 5; - */ - protected $group_id = ''; - /** - * The score of this suggestion within its group. - * - * Generated from protobuf field double group_score = 6; - */ - protected $group_score = 0.0; - /** - * Alternative matching phrases for this suggestion. - * - * Generated from protobuf field repeated string alternative_phrases = 7; - */ - private $alternative_phrases; - protected $ranking_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $global_score - * Global score of this suggestion. Control how this suggestion would be - * scored / ranked. - * @type int|string $frequency - * Frequency of this suggestion. Will be used to rank suggestions when score - * is not available. - * @type string $suggestion - * Required. The suggestion text. - * @type string $language_code - * BCP-47 language code of this suggestion. - * @type string $group_id - * If two suggestions have the same groupId, they will not be - * returned together. Instead the one ranked higher will be returned. This can - * be used to deduplicate semantically identical suggestions. - * @type float $group_score - * The score of this suggestion within its group. - * @type array|\Google\Protobuf\Internal\RepeatedField $alternative_phrases - * Alternative matching phrases for this suggestion. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Completion::initOnce(); - parent::__construct($data); - } - - /** - * Global score of this suggestion. Control how this suggestion would be - * scored / ranked. - * - * Generated from protobuf field double global_score = 2; - * @return float - */ - public function getGlobalScore() - { - return $this->readOneof(2); - } - - public function hasGlobalScore() - { - return $this->hasOneof(2); - } - - /** - * Global score of this suggestion. Control how this suggestion would be - * scored / ranked. - * - * Generated from protobuf field double global_score = 2; - * @param float $var - * @return $this - */ - public function setGlobalScore($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Frequency of this suggestion. Will be used to rank suggestions when score - * is not available. - * - * Generated from protobuf field int64 frequency = 3; - * @return int|string - */ - public function getFrequency() - { - return $this->readOneof(3); - } - - public function hasFrequency() - { - return $this->hasOneof(3); - } - - /** - * Frequency of this suggestion. Will be used to rank suggestions when score - * is not available. - * - * Generated from protobuf field int64 frequency = 3; - * @param int|string $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. The suggestion text. - * - * Generated from protobuf field string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSuggestion() - { - return $this->suggestion; - } - - /** - * Required. The suggestion text. - * - * Generated from protobuf field string suggestion = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSuggestion($var) - { - GPBUtil::checkString($var, True); - $this->suggestion = $var; - - return $this; - } - - /** - * BCP-47 language code of this suggestion. - * - * Generated from protobuf field string language_code = 4; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * BCP-47 language code of this suggestion. - * - * 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; - } - - /** - * If two suggestions have the same groupId, they will not be - * returned together. Instead the one ranked higher will be returned. This can - * be used to deduplicate semantically identical suggestions. - * - * Generated from protobuf field string group_id = 5; - * @return string - */ - public function getGroupId() - { - return $this->group_id; - } - - /** - * If two suggestions have the same groupId, they will not be - * returned together. Instead the one ranked higher will be returned. This can - * be used to deduplicate semantically identical suggestions. - * - * Generated from protobuf field string group_id = 5; - * @param string $var - * @return $this - */ - public function setGroupId($var) - { - GPBUtil::checkString($var, True); - $this->group_id = $var; - - return $this; - } - - /** - * The score of this suggestion within its group. - * - * Generated from protobuf field double group_score = 6; - * @return float - */ - public function getGroupScore() - { - return $this->group_score; - } - - /** - * The score of this suggestion within its group. - * - * Generated from protobuf field double group_score = 6; - * @param float $var - * @return $this - */ - public function setGroupScore($var) - { - GPBUtil::checkDouble($var); - $this->group_score = $var; - - return $this; - } - - /** - * Alternative matching phrases for this suggestion. - * - * Generated from protobuf field repeated string alternative_phrases = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAlternativePhrases() - { - return $this->alternative_phrases; - } - - /** - * Alternative matching phrases for this suggestion. - * - * Generated from protobuf field repeated string alternative_phrases = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAlternativePhrases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->alternative_phrases = $arr; - - return $this; - } - - /** - * @return string - */ - public function getRankingInfo() - { - return $this->whichOneof("ranking_info"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition.php deleted file mode 100644 index 0a122300ada0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition.php +++ /dev/null @@ -1,171 +0,0 @@ -google.cloud.discoveryengine.v1.Condition - */ -class Condition extends \Google\Protobuf\Internal\Message -{ - /** - * Search only - * A list of terms to match the query on. - * Cannot be set when - * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex] - * is set. - * Maximum of 10 query terms. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2; - */ - private $query_terms; - /** - * Range of time(s) specifying when condition is active. - * Maximum of 10 time ranges. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3; - */ - private $active_time_range; - /** - * Optional. Query regex to match the whole search query. - * Cannot be set when - * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms] - * is set. This is currently supporting promotion use case. - * - * Generated from protobuf field string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $query_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\Condition\QueryTerm>|\Google\Protobuf\Internal\RepeatedField $query_terms - * Search only - * A list of terms to match the query on. - * Cannot be set when - * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex] - * is set. - * Maximum of 10 query terms. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Condition\TimeRange>|\Google\Protobuf\Internal\RepeatedField $active_time_range - * Range of time(s) specifying when condition is active. - * Maximum of 10 time ranges. - * @type string $query_regex - * Optional. Query regex to match the whole search query. - * Cannot be set when - * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms] - * is set. This is currently supporting promotion use case. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Control::initOnce(); - parent::__construct($data); - } - - /** - * Search only - * A list of terms to match the query on. - * Cannot be set when - * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex] - * is set. - * Maximum of 10 query terms. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQueryTerms() - { - return $this->query_terms; - } - - /** - * Search only - * A list of terms to match the query on. - * Cannot be set when - * [Condition.query_regex][google.cloud.discoveryengine.v1.Condition.query_regex] - * is set. - * Maximum of 10 query terms. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Condition\QueryTerm>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQueryTerms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Condition\QueryTerm::class); - $this->query_terms = $arr; - - return $this; - } - - /** - * Range of time(s) specifying when condition is active. - * Maximum of 10 time ranges. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActiveTimeRange() - { - return $this->active_time_range; - } - - /** - * Range of time(s) specifying when condition is active. - * Maximum of 10 time ranges. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Condition\TimeRange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActiveTimeRange($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Condition\TimeRange::class); - $this->active_time_range = $arr; - - return $this; - } - - /** - * Optional. Query regex to match the whole search query. - * Cannot be set when - * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms] - * is set. This is currently supporting promotion use case. - * - * Generated from protobuf field string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getQueryRegex() - { - return $this->query_regex; - } - - /** - * Optional. Query regex to match the whole search query. - * Cannot be set when - * [Condition.query_terms][google.cloud.discoveryengine.v1.Condition.query_terms] - * is set. This is currently supporting promotion use case. - * - * Generated from protobuf field string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setQueryRegex($var) - { - GPBUtil::checkString($var, True); - $this->query_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition/QueryTerm.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition/QueryTerm.php deleted file mode 100644 index a03a80e191ba..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition/QueryTerm.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.discoveryengine.v1.Condition.QueryTerm - */ -class QueryTerm extends \Google\Protobuf\Internal\Message -{ - /** - * The specific query value to match against - * Must be lowercase, must be UTF-8. - * Can have at most 3 space separated terms if full_match is true. - * Cannot be an empty string. - * Maximum length of 5000 characters. - * - * Generated from protobuf field string value = 1; - */ - protected $value = ''; - /** - * Whether the search query needs to exactly match the query term. - * - * Generated from protobuf field bool full_match = 2; - */ - protected $full_match = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * The specific query value to match against - * Must be lowercase, must be UTF-8. - * Can have at most 3 space separated terms if full_match is true. - * Cannot be an empty string. - * Maximum length of 5000 characters. - * @type bool $full_match - * Whether the search query needs to exactly match the query term. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Control::initOnce(); - parent::__construct($data); - } - - /** - * The specific query value to match against - * Must be lowercase, must be UTF-8. - * Can have at most 3 space separated terms if full_match is true. - * Cannot be an empty string. - * Maximum length of 5000 characters. - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * The specific query value to match against - * Must be lowercase, must be UTF-8. - * Can have at most 3 space separated terms if full_match is true. - * Cannot be an empty string. - * Maximum length of 5000 characters. - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Whether the search query needs to exactly match the query term. - * - * Generated from protobuf field bool full_match = 2; - * @return bool - */ - public function getFullMatch() - { - return $this->full_match; - } - - /** - * Whether the search query needs to exactly match the query term. - * - * Generated from protobuf field bool full_match = 2; - * @param bool $var - * @return $this - */ - public function setFullMatch($var) - { - GPBUtil::checkBool($var); - $this->full_match = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueryTerm::class, \Google\Cloud\DiscoveryEngine\V1\Condition_QueryTerm::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition/TimeRange.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition/TimeRange.php deleted file mode 100644 index 6d60e61ca936..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Condition/TimeRange.php +++ /dev/null @@ -1,136 +0,0 @@ -google.cloud.discoveryengine.v1.Condition.TimeRange - */ -class TimeRange extends \Google\Protobuf\Internal\Message -{ - /** - * Start of time range. - * Range is inclusive. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * End of time range. - * Range is inclusive. - * Must be in the future. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Start of time range. - * Range is inclusive. - * @type \Google\Protobuf\Timestamp $end_time - * End of time range. - * Range is inclusive. - * Must be in the future. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Control::initOnce(); - parent::__construct($data); - } - - /** - * Start of time range. - * Range is inclusive. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Start of time range. - * Range is inclusive. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * End of time range. - * Range is inclusive. - * Must be in the future. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * End of time range. - * Range is inclusive. - * Must be in the future. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TimeRange::class, \Google\Cloud\DiscoveryEngine\V1\Condition_TimeRange::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control.php deleted file mode 100644 index 3ea6c3e94079..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control.php +++ /dev/null @@ -1,448 +0,0 @@ -google.cloud.discoveryengine.v1.Control - */ -class Control extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Fully qualified name - * `projects/*/locations/global/dataStore/*/controls/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Required. Human readable name. The identifier used in UI views. - * Must be UTF-8 encoded string. Length limit is 128 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. List of all - * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig] IDs this - * control is attached to. May take up to 10 minutes to update after changes. - * - * Generated from protobuf field repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $associated_serving_config_ids; - /** - * Required. Immutable. What solution the control belongs to. - * Must be compatible with vertical of resource. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SolutionType solution_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $solution_type = 0; - /** - * Specifies the use case for the control. - * Affects what condition fields can be set. - * Only applies to - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * Currently only allow one use case per control. - * Must be set when solution_type is - * [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchUseCase use_cases = 8; - */ - private $use_cases; - /** - * Determines when the associated action will trigger. - * Omit to always apply the action. - * Currently only a single condition may be specified. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Condition conditions = 5; - */ - private $conditions; - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Control\BoostAction $boost_action - * Defines a boost-type control - * @type \Google\Cloud\DiscoveryEngine\V1\Control\FilterAction $filter_action - * Defines a filter-type control - * Currently not supported by Recommendation - * @type \Google\Cloud\DiscoveryEngine\V1\Control\RedirectAction $redirect_action - * Defines a redirect-type control. - * @type \Google\Cloud\DiscoveryEngine\V1\Control\SynonymsAction $synonyms_action - * Treats a group of terms as synonyms of one another. - * @type string $name - * Immutable. Fully qualified name - * `projects/*/locations/global/dataStore/*/controls/*` - * @type string $display_name - * Required. Human readable name. The identifier used in UI views. - * Must be UTF-8 encoded string. Length limit is 128 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * @type array|\Google\Protobuf\Internal\RepeatedField $associated_serving_config_ids - * Output only. List of all - * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig] IDs this - * control is attached to. May take up to 10 minutes to update after changes. - * @type int $solution_type - * Required. Immutable. What solution the control belongs to. - * Must be compatible with vertical of resource. - * Otherwise an INVALID ARGUMENT error is thrown. - * @type array|\Google\Protobuf\Internal\RepeatedField $use_cases - * Specifies the use case for the control. - * Affects what condition fields can be set. - * Only applies to - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * Currently only allow one use case per control. - * Must be set when solution_type is - * [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Condition>|\Google\Protobuf\Internal\RepeatedField $conditions - * Determines when the associated action will trigger. - * Omit to always apply the action. - * Currently only a single condition may be specified. - * Otherwise an INVALID ARGUMENT error is thrown. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Control::initOnce(); - parent::__construct($data); - } - - /** - * Defines a boost-type control - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control.BoostAction boost_action = 6; - * @return \Google\Cloud\DiscoveryEngine\V1\Control\BoostAction|null - */ - public function getBoostAction() - { - return $this->readOneof(6); - } - - public function hasBoostAction() - { - return $this->hasOneof(6); - } - - /** - * Defines a boost-type control - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control.BoostAction boost_action = 6; - * @param \Google\Cloud\DiscoveryEngine\V1\Control\BoostAction $var - * @return $this - */ - public function setBoostAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Control\BoostAction::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Defines a filter-type control - * Currently not supported by Recommendation - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control.FilterAction filter_action = 7; - * @return \Google\Cloud\DiscoveryEngine\V1\Control\FilterAction|null - */ - public function getFilterAction() - { - return $this->readOneof(7); - } - - public function hasFilterAction() - { - return $this->hasOneof(7); - } - - /** - * Defines a filter-type control - * Currently not supported by Recommendation - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control.FilterAction filter_action = 7; - * @param \Google\Cloud\DiscoveryEngine\V1\Control\FilterAction $var - * @return $this - */ - public function setFilterAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Control\FilterAction::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Defines a redirect-type control. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control.RedirectAction redirect_action = 9; - * @return \Google\Cloud\DiscoveryEngine\V1\Control\RedirectAction|null - */ - public function getRedirectAction() - { - return $this->readOneof(9); - } - - public function hasRedirectAction() - { - return $this->hasOneof(9); - } - - /** - * Defines a redirect-type control. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control.RedirectAction redirect_action = 9; - * @param \Google\Cloud\DiscoveryEngine\V1\Control\RedirectAction $var - * @return $this - */ - public function setRedirectAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Control\RedirectAction::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Treats a group of terms as synonyms of one another. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control.SynonymsAction synonyms_action = 10; - * @return \Google\Cloud\DiscoveryEngine\V1\Control\SynonymsAction|null - */ - public function getSynonymsAction() - { - return $this->readOneof(10); - } - - public function hasSynonymsAction() - { - return $this->hasOneof(10); - } - - /** - * Treats a group of terms as synonyms of one another. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control.SynonymsAction synonyms_action = 10; - * @param \Google\Cloud\DiscoveryEngine\V1\Control\SynonymsAction $var - * @return $this - */ - public function setSynonymsAction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Control\SynonymsAction::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Immutable. Fully qualified name - * `projects/*/locations/global/dataStore/*/controls/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. Fully qualified name - * `projects/*/locations/global/dataStore/*/controls/*` - * - * 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. Human readable name. The identifier used in UI views. - * Must be UTF-8 encoded string. Length limit is 128 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. Human readable name. The identifier used in UI views. - * Must be UTF-8 encoded string. Length limit is 128 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * 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. List of all - * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig] IDs this - * control is attached to. May take up to 10 minutes to update after changes. - * - * Generated from protobuf field repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAssociatedServingConfigIds() - { - return $this->associated_serving_config_ids; - } - - /** - * Output only. List of all - * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig] IDs this - * control is attached to. May take up to 10 minutes to update after changes. - * - * Generated from protobuf field repeated string associated_serving_config_ids = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAssociatedServingConfigIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->associated_serving_config_ids = $arr; - - return $this; - } - - /** - * Required. Immutable. What solution the control belongs to. - * Must be compatible with vertical of resource. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SolutionType solution_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getSolutionType() - { - return $this->solution_type; - } - - /** - * Required. Immutable. What solution the control belongs to. - * Must be compatible with vertical of resource. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SolutionType solution_type = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setSolutionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SolutionType::class); - $this->solution_type = $var; - - return $this; - } - - /** - * Specifies the use case for the control. - * Affects what condition fields can be set. - * Only applies to - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * Currently only allow one use case per control. - * Must be set when solution_type is - * [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchUseCase use_cases = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUseCases() - { - return $this->use_cases; - } - - /** - * Specifies the use case for the control. - * Affects what condition fields can be set. - * Only applies to - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * Currently only allow one use case per control. - * Must be set when solution_type is - * [SolutionType.SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchUseCase use_cases = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUseCases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DiscoveryEngine\V1\SearchUseCase::class); - $this->use_cases = $arr; - - return $this; - } - - /** - * Determines when the associated action will trigger. - * Omit to always apply the action. - * Currently only a single condition may be specified. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Condition conditions = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Determines when the associated action will trigger. - * Omit to always apply the action. - * Currently only a single condition may be specified. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Condition conditions = 5; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Condition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Condition::class); - $this->conditions = $arr; - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/BoostAction.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/BoostAction.php deleted file mode 100644 index 5ea67df086a9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/BoostAction.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.discoveryengine.v1.Control.BoostAction - */ -class BoostAction extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Strength of the boost, which should be in [-1, 1]. Negative - * boost means demotion. Default is 0.0 (No-op). - * - * Generated from protobuf field float boost = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $boost = 0.0; - /** - * Required. Specifies which products to apply the boost to. - * If no filter is provided all products will be boosted (No-op). - * Syntax documentation: - * https://cloud.google.com/retail/docs/filter-and-order - * Maximum length is 5000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - /** - * Required. Specifies which data store's documents can be boosted by this - * control. Full data store name e.g. - * projects/123/locations/global/collections/default_collection/dataStores/default_data_store - * - * Generated from protobuf field string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $data_store = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $boost - * Required. Strength of the boost, which should be in [-1, 1]. Negative - * boost means demotion. Default is 0.0 (No-op). - * @type string $filter - * Required. Specifies which products to apply the boost to. - * If no filter is provided all products will be boosted (No-op). - * Syntax documentation: - * https://cloud.google.com/retail/docs/filter-and-order - * Maximum length is 5000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * @type string $data_store - * Required. Specifies which data store's documents can be boosted by this - * control. Full data store name e.g. - * projects/123/locations/global/collections/default_collection/dataStores/default_data_store - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Control::initOnce(); - parent::__construct($data); - } - - /** - * Required. Strength of the boost, which should be in [-1, 1]. Negative - * boost means demotion. Default is 0.0 (No-op). - * - * Generated from protobuf field float boost = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return float - */ - public function getBoost() - { - return $this->boost; - } - - /** - * Required. Strength of the boost, which should be in [-1, 1]. Negative - * boost means demotion. Default is 0.0 (No-op). - * - * Generated from protobuf field float boost = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param float $var - * @return $this - */ - public function setBoost($var) - { - GPBUtil::checkFloat($var); - $this->boost = $var; - - return $this; - } - - /** - * Required. Specifies which products to apply the boost to. - * If no filter is provided all products will be boosted (No-op). - * Syntax documentation: - * https://cloud.google.com/retail/docs/filter-and-order - * Maximum length is 5000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. Specifies which products to apply the boost to. - * If no filter is provided all products will be boosted (No-op). - * Syntax documentation: - * https://cloud.google.com/retail/docs/filter-and-order - * Maximum length is 5000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * 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. Specifies which data store's documents can be boosted by this - * control. Full data store name e.g. - * projects/123/locations/global/collections/default_collection/dataStores/default_data_store - * - * Generated from protobuf field string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDataStore() - { - return $this->data_store; - } - - /** - * Required. Specifies which data store's documents can be boosted by this - * control. Full data store name e.g. - * projects/123/locations/global/collections/default_collection/dataStores/default_data_store - * - * Generated from protobuf field string data_store = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDataStore($var) - { - GPBUtil::checkString($var, True); - $this->data_store = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BoostAction::class, \Google\Cloud\DiscoveryEngine\V1\Control_BoostAction::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/FilterAction.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/FilterAction.php deleted file mode 100644 index 85606ad88712..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/FilterAction.php +++ /dev/null @@ -1,133 +0,0 @@ -google.cloud.discoveryengine.v1.Control.FilterAction - */ -class FilterAction extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A filter to apply on the matching condition results. - * Required - * Syntax documentation: - * https://cloud.google.com/retail/docs/filter-and-order - * Maximum length is 5000 characters. Otherwise an INVALID - * ARGUMENT error is thrown. - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - /** - * Required. Specifies which data store's documents can be filtered by this - * control. Full data store name e.g. - * projects/123/locations/global/collections/default_collection/dataStores/default_data_store - * - * Generated from protobuf field string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $data_store = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $filter - * Required. A filter to apply on the matching condition results. - * Required - * Syntax documentation: - * https://cloud.google.com/retail/docs/filter-and-order - * Maximum length is 5000 characters. Otherwise an INVALID - * ARGUMENT error is thrown. - * @type string $data_store - * Required. Specifies which data store's documents can be filtered by this - * control. Full data store name e.g. - * projects/123/locations/global/collections/default_collection/dataStores/default_data_store - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Control::initOnce(); - parent::__construct($data); - } - - /** - * Required. A filter to apply on the matching condition results. - * Required - * Syntax documentation: - * https://cloud.google.com/retail/docs/filter-and-order - * Maximum length is 5000 characters. Otherwise an INVALID - * ARGUMENT error is thrown. - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. A filter to apply on the matching condition results. - * Required - * Syntax documentation: - * https://cloud.google.com/retail/docs/filter-and-order - * Maximum length is 5000 characters. Otherwise an INVALID - * ARGUMENT error is thrown. - * - * Generated from protobuf field string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Required. Specifies which data store's documents can be filtered by this - * control. Full data store name e.g. - * projects/123/locations/global/collections/default_collection/dataStores/default_data_store - * - * Generated from protobuf field string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDataStore() - { - return $this->data_store; - } - - /** - * Required. Specifies which data store's documents can be filtered by this - * control. Full data store name e.g. - * projects/123/locations/global/collections/default_collection/dataStores/default_data_store - * - * Generated from protobuf field string data_store = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDataStore($var) - { - GPBUtil::checkString($var, True); - $this->data_store = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FilterAction::class, \Google\Cloud\DiscoveryEngine\V1\Control_FilterAction::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/RedirectAction.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/RedirectAction.php deleted file mode 100644 index e43f280eb605..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/RedirectAction.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.discoveryengine.v1.Control.RedirectAction - */ -class RedirectAction extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The URI to which the shopper will be redirected. - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $redirect_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $redirect_uri - * Required. The URI to which the shopper will be redirected. - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Control::initOnce(); - parent::__construct($data); - } - - /** - * Required. The URI to which the shopper will be redirected. - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRedirectUri() - { - return $this->redirect_uri; - } - - /** - * Required. The URI to which the shopper will be redirected. - * Required. - * URI must have length equal or less than 2000 characters. - * Otherwise an INVALID ARGUMENT error is thrown. - * - * Generated from protobuf field string redirect_uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRedirectUri($var) - { - GPBUtil::checkString($var, True); - $this->redirect_uri = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RedirectAction::class, \Google\Cloud\DiscoveryEngine\V1\Control_RedirectAction::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/SynonymsAction.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/SynonymsAction.php deleted file mode 100644 index 7d471e097a98..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Control/SynonymsAction.php +++ /dev/null @@ -1,84 +0,0 @@ -google.cloud.discoveryengine.v1.Control.SynonymsAction - */ -class SynonymsAction extends \Google\Protobuf\Internal\Message -{ - /** - * Defines a set of synonyms. - * Can specify up to 100 synonyms. - * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is - * thrown. - * - * Generated from protobuf field repeated string synonyms = 1; - */ - private $synonyms; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $synonyms - * Defines a set of synonyms. - * Can specify up to 100 synonyms. - * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is - * thrown. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Control::initOnce(); - parent::__construct($data); - } - - /** - * Defines a set of synonyms. - * Can specify up to 100 synonyms. - * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is - * thrown. - * - * Generated from protobuf field repeated string synonyms = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSynonyms() - { - return $this->synonyms; - } - - /** - * Defines a set of synonyms. - * Can specify up to 100 synonyms. - * Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is - * thrown. - * - * Generated from protobuf field repeated string synonyms = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSynonyms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->synonyms = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SynonymsAction::class, \Google\Cloud\DiscoveryEngine\V1\Control_SynonymsAction::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Conversation.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Conversation.php deleted file mode 100644 index 2a217e603795..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Conversation.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.discoveryengine.v1.Conversation - */ -class Conversation extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/dataStore/*/conversations/*` - * or - * `projects/{project}/locations/global/collections/{collection}/engines/*/conversations/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * The state of the Conversation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation.State state = 2; - */ - protected $state = 0; - /** - * A unique identifier for tracking users. - * - * Generated from protobuf field string user_pseudo_id = 3; - */ - protected $user_pseudo_id = ''; - /** - * Conversation messages. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; - */ - private $messages; - /** - * Output only. The time the conversation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time the conversation finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/dataStore/*/conversations/*` - * or - * `projects/{project}/locations/global/collections/{collection}/engines/*/conversations/*`. - * @type int $state - * The state of the Conversation. - * @type string $user_pseudo_id - * A unique identifier for tracking users. - * @type array<\Google\Cloud\DiscoveryEngine\V1\ConversationMessage>|\Google\Protobuf\Internal\RepeatedField $messages - * Conversation messages. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time the conversation started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the conversation finished. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/dataStore/*/conversations/*` - * or - * `projects/{project}/locations/global/collections/{collection}/engines/*/conversations/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/dataStore/*/conversations/*` - * or - * `projects/{project}/locations/global/collections/{collection}/engines/*/conversations/*`. - * - * 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 state of the Conversation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of the Conversation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation.State state = 2; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\Conversation\State::class); - $this->state = $var; - - return $this; - } - - /** - * A unique identifier for tracking users. - * - * Generated from protobuf field string user_pseudo_id = 3; - * @return string - */ - public function getUserPseudoId() - { - return $this->user_pseudo_id; - } - - /** - * A unique identifier for tracking users. - * - * Generated from protobuf field string user_pseudo_id = 3; - * @param string $var - * @return $this - */ - public function setUserPseudoId($var) - { - GPBUtil::checkString($var, True); - $this->user_pseudo_id = $var; - - return $this; - } - - /** - * Conversation messages. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMessages() - { - return $this->messages; - } - - /** - * Conversation messages. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.ConversationMessage messages = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\ConversationMessage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMessages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\ConversationMessage::class); - $this->messages = $arr; - - return $this; - } - - /** - * Output only. The time the conversation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The time the conversation started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. The time the conversation finished. - * - * 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 time the conversation finished. - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Conversation/State.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Conversation/State.php deleted file mode 100644 index 35d15bc97ae2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Conversation/State.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.discoveryengine.v1.Conversation.State - */ -class State -{ - /** - * Unknown. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Conversation is currently open. - * - * Generated from protobuf enum IN_PROGRESS = 1; - */ - const IN_PROGRESS = 1; - /** - * Conversation has been completed. - * - * Generated from protobuf enum COMPLETED = 2; - */ - const COMPLETED = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::COMPLETED => 'COMPLETED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\DiscoveryEngine\V1\Conversation_State::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConversationContext.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConversationContext.php deleted file mode 100644 index cb6b4a072570..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConversationContext.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.discoveryengine.v1.ConversationContext - */ -class ConversationContext extends \Google\Protobuf\Internal\Message -{ - /** - * The current list of documents the user is seeing. - * It contains the document resource references. - * - * Generated from protobuf field repeated string context_documents = 1; - */ - private $context_documents; - /** - * The current active document the user opened. - * It contains the document resource reference. - * - * Generated from protobuf field string active_document = 2; - */ - protected $active_document = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $context_documents - * The current list of documents the user is seeing. - * It contains the document resource references. - * @type string $active_document - * The current active document the user opened. - * It contains the document resource reference. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * The current list of documents the user is seeing. - * It contains the document resource references. - * - * Generated from protobuf field repeated string context_documents = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContextDocuments() - { - return $this->context_documents; - } - - /** - * The current list of documents the user is seeing. - * It contains the document resource references. - * - * Generated from protobuf field repeated string context_documents = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContextDocuments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->context_documents = $arr; - - return $this; - } - - /** - * The current active document the user opened. - * It contains the document resource reference. - * - * Generated from protobuf field string active_document = 2; - * @return string - */ - public function getActiveDocument() - { - return $this->active_document; - } - - /** - * The current active document the user opened. - * It contains the document resource reference. - * - * Generated from protobuf field string active_document = 2; - * @param string $var - * @return $this - */ - public function setActiveDocument($var) - { - GPBUtil::checkString($var, True); - $this->active_document = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConversationMessage.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConversationMessage.php deleted file mode 100644 index 5e267d526b0c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConversationMessage.php +++ /dev/null @@ -1,152 +0,0 @@ -google.cloud.discoveryengine.v1.ConversationMessage - */ -class ConversationMessage extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Message creation timestamp. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - protected $message; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\TextInput $user_input - * User text input. - * @type \Google\Cloud\DiscoveryEngine\V1\Reply $reply - * Search reply. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Message creation timestamp. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * User text input. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TextInput user_input = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\TextInput|null - */ - public function getUserInput() - { - return $this->readOneof(1); - } - - public function hasUserInput() - { - return $this->hasOneof(1); - } - - /** - * User text input. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TextInput user_input = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\TextInput $var - * @return $this - */ - public function setUserInput($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\TextInput::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Search reply. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Reply reply = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\Reply|null - */ - public function getReply() - { - return $this->readOneof(2); - } - - public function hasReply() - { - return $this->hasOneof(2); - } - - /** - * Search reply. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Reply reply = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\Reply $var - * @return $this - */ - public function setReply($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Reply::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Output only. Message creation timestamp. - * - * 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. Message creation timestamp. - * - * 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; - } - - /** - * @return string - */ - public function getMessage() - { - return $this->whichOneof("message"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConverseConversationRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConverseConversationRequest.php deleted file mode 100644 index 46ba1bb88e60..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConverseConversationRequest.php +++ /dev/null @@ -1,550 +0,0 @@ -google.cloud.discoveryengine.v1.ConverseConversationRequest - */ -class ConverseConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Conversation to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. - * Use - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-` - * to activate auto session mode, which automatically creates a new - * conversation inside a ConverseConversation session. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Current user input. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = null; - /** - * The resource name of the Serving Config to use. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` - * If this is not set, the default serving config will be used. - * - * Generated from protobuf field string serving_config = 3 [(.google.api.resource_reference) = { - */ - protected $serving_config = ''; - /** - * The conversation to be used by auto session only. The name field will be - * ignored as we automatically assign new name for the conversation in auto - * session. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 5; - */ - protected $conversation = null; - /** - * Whether to turn on safe search. - * - * Generated from protobuf field bool safe_search = 6; - */ - protected $safe_search = false; - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 7; - */ - private $user_labels; - /** - * A specification for configuring the summary returned in the response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - */ - protected $summary_spec = null; - /** - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. Filter - * expression is case-sensitive. This will be used to filter search results - * which may affect the summary response. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key to a - * key property defined in the Vertex AI Search backend -- this mapping is - * defined by the customer in their schema. For example a media customer might - * have a field 'name' in their schema. In this case the filter would look - * like this: filter --> name:'ANY("king kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 9; - */ - protected $filter = ''; - /** - * Boost specification to boost certain documents in search results which may - * affect the converse response. For more information on boosting, see - * [Boosting](https://cloud.google.com/retail/docs/boosting#boost) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - */ - protected $boost_spec = null; - - /** - * @param string $name Required. The resource name of the Conversation to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. - * Use - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-` - * to activate auto session mode, which automatically creates a new - * conversation inside a ConverseConversation session. Please see - * {@see ConversationalSearchServiceClient::conversationName()} for help formatting this field. - * @param \Google\Cloud\DiscoveryEngine\V1\TextInput $query Required. Current user input. - * - * @return \Google\Cloud\DiscoveryEngine\V1\ConverseConversationRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\DiscoveryEngine\V1\TextInput $query): self - { - return (new self()) - ->setName($name) - ->setQuery($query); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the Conversation to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. - * Use - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-` - * to activate auto session mode, which automatically creates a new - * conversation inside a ConverseConversation session. - * @type \Google\Cloud\DiscoveryEngine\V1\TextInput $query - * Required. Current user input. - * @type string $serving_config - * The resource name of the Serving Config to use. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` - * If this is not set, the default serving config will be used. - * @type \Google\Cloud\DiscoveryEngine\V1\Conversation $conversation - * The conversation to be used by auto session only. The name field will be - * ignored as we automatically assign new name for the conversation in auto - * session. - * @type bool $safe_search - * Whether to turn on safe search. - * @type array|\Google\Protobuf\Internal\MapField $user_labels - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec $summary_spec - * A specification for configuring the summary returned in the response. - * @type string $filter - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. Filter - * expression is case-sensitive. This will be used to filter search results - * which may affect the summary response. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key to a - * key property defined in the Vertex AI Search backend -- this mapping is - * defined by the customer in their schema. For example a media customer might - * have a field 'name' in their schema. In this case the filter would look - * like this: filter --> name:'ANY("king kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec $boost_spec - * Boost specification to boost certain documents in search results which may - * affect the converse response. For more information on boosting, see - * [Boosting](https://cloud.google.com/retail/docs/boosting#boost) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Conversation to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. - * Use - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-` - * to activate auto session mode, which automatically creates a new - * conversation inside a ConverseConversation session. - * - * Generated from 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 Conversation to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}`. - * Use - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/-` - * to activate auto session mode, which automatically creates a new - * conversation inside a ConverseConversation session. - * - * Generated from protobuf field string name = 1 [(.google.api.field_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. Current user input. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\TextInput|null - */ - public function getQuery() - { - return $this->query; - } - - public function hasQuery() - { - return isset($this->query); - } - - public function clearQuery() - { - unset($this->query); - } - - /** - * Required. Current user input. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TextInput query = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\TextInput $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\TextInput::class); - $this->query = $var; - - return $this; - } - - /** - * The resource name of the Serving Config to use. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` - * If this is not set, the default serving config will be used. - * - * Generated from protobuf field string serving_config = 3 [(.google.api.resource_reference) = { - * @return string - */ - public function getServingConfig() - { - return $this->serving_config; - } - - /** - * The resource name of the Serving Config to use. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/servingConfigs/{serving_config_id}` - * If this is not set, the default serving config will be used. - * - * Generated from protobuf field string serving_config = 3 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setServingConfig($var) - { - GPBUtil::checkString($var, True); - $this->serving_config = $var; - - return $this; - } - - /** - * The conversation to be used by auto session only. The name field will be - * ignored as we automatically assign new name for the conversation in auto - * session. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 5; - * @return \Google\Cloud\DiscoveryEngine\V1\Conversation|null - */ - public function getConversation() - { - return $this->conversation; - } - - public function hasConversation() - { - return isset($this->conversation); - } - - public function clearConversation() - { - unset($this->conversation); - } - - /** - * The conversation to be used by auto session only. The name field will be - * ignored as we automatically assign new name for the conversation in auto - * session. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 5; - * @param \Google\Cloud\DiscoveryEngine\V1\Conversation $var - * @return $this - */ - public function setConversation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Conversation::class); - $this->conversation = $var; - - return $this; - } - - /** - * Whether to turn on safe search. - * - * Generated from protobuf field bool safe_search = 6; - * @return bool - */ - public function getSafeSearch() - { - return $this->safe_search; - } - - /** - * Whether to turn on safe search. - * - * Generated from protobuf field bool safe_search = 6; - * @param bool $var - * @return $this - */ - public function setSafeSearch($var) - { - GPBUtil::checkBool($var); - $this->safe_search = $var; - - return $this; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getUserLabels() - { - return $this->user_labels; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->user_labels = $arr; - - return $this; - } - - /** - * A specification for configuring the summary returned in the response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec|null - */ - public function getSummarySpec() - { - return $this->summary_spec; - } - - public function hasSummarySpec() - { - return isset($this->summary_spec); - } - - public function clearSummarySpec() - { - unset($this->summary_spec); - } - - /** - * A specification for configuring the summary returned in the response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 8; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec $var - * @return $this - */ - public function setSummarySpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec::class); - $this->summary_spec = $var; - - return $this; - } - - /** - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. Filter - * expression is case-sensitive. This will be used to filter search results - * which may affect the summary response. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key to a - * key property defined in the Vertex AI Search backend -- this mapping is - * defined by the customer in their schema. For example a media customer might - * have a field 'name' in their schema. In this case the filter would look - * like this: filter --> name:'ANY("king kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 9; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. Filter - * expression is case-sensitive. This will be used to filter search results - * which may affect the summary response. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key to a - * key property defined in the Vertex AI Search backend -- this mapping is - * defined by the customer in their schema. For example a media customer might - * have a field 'name' in their schema. In this case the filter would look - * like this: filter --> name:'ANY("king kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 9; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Boost specification to boost certain documents in search results which may - * affect the converse response. For more information on boosting, see - * [Boosting](https://cloud.google.com/retail/docs/boosting#boost) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec|null - */ - public function getBoostSpec() - { - return $this->boost_spec; - } - - public function hasBoostSpec() - { - return isset($this->boost_spec); - } - - public function clearBoostSpec() - { - unset($this->boost_spec); - } - - /** - * Boost specification to boost certain documents in search results which may - * affect the converse response. For more information on boosting, see - * [Boosting](https://cloud.google.com/retail/docs/boosting#boost) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec $var - * @return $this - */ - public function setBoostSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec::class); - $this->boost_spec = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConverseConversationResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConverseConversationResponse.php deleted file mode 100644 index 446ceb060277..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ConverseConversationResponse.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.discoveryengine.v1.ConverseConversationResponse - */ -class ConverseConversationResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Answer to the current query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Reply reply = 1; - */ - protected $reply = null; - /** - * Updated conversation including the answer. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 2; - */ - protected $conversation = null; - /** - * Search Results. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - */ - private $search_results; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Reply $reply - * Answer to the current query. - * @type \Google\Cloud\DiscoveryEngine\V1\Conversation $conversation - * Updated conversation including the answer. - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\SearchResult>|\Google\Protobuf\Internal\RepeatedField $search_results - * Search Results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Answer to the current query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Reply reply = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\Reply|null - */ - public function getReply() - { - return $this->reply; - } - - public function hasReply() - { - return isset($this->reply); - } - - public function clearReply() - { - unset($this->reply); - } - - /** - * Answer to the current query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Reply reply = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\Reply $var - * @return $this - */ - public function setReply($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Reply::class); - $this->reply = $var; - - return $this; - } - - /** - * Updated conversation including the answer. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\Conversation|null - */ - public function getConversation() - { - return $this->conversation; - } - - public function hasConversation() - { - return isset($this->conversation); - } - - public function clearConversation() - { - unset($this->conversation); - } - - /** - * Updated conversation including the answer. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\Conversation $var - * @return $this - */ - public function setConversation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Conversation::class); - $this->conversation = $var; - - return $this; - } - - /** - * Search Results. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSearchResults() - { - return $this->search_results; - } - - /** - * Search Results. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult search_results = 3; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\SearchResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSearchResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\SearchResult::class); - $this->search_results = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateControlRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateControlRequest.php deleted file mode 100644 index 723fe141d957..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateControlRequest.php +++ /dev/null @@ -1,194 +0,0 @@ -google.cloud.discoveryengine.v1.CreateControlRequest - */ -class CreateControlRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` - * or - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The Control to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control control = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $control = null; - /** - * Required. The ID to use for the Control, which will become the final - * component of the Control's resource name. - * This value must be within 1-63 characters. - * Valid characters are /[a-z][0-9]-_/. - * - * Generated from protobuf field string control_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $control_id = ''; - - /** - * @param string $parent Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` - * or - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. Please see - * {@see ControlServiceClient::dataStoreName()} for help formatting this field. - * @param \Google\Cloud\DiscoveryEngine\V1\Control $control Required. The Control to create. - * @param string $controlId Required. The ID to use for the Control, which will become the final - * component of the Control's resource name. - * - * This value must be within 1-63 characters. - * Valid characters are /[a-z][0-9]-_/. - * - * @return \Google\Cloud\DiscoveryEngine\V1\CreateControlRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\DiscoveryEngine\V1\Control $control, string $controlId): self - { - return (new self()) - ->setParent($parent) - ->setControl($control) - ->setControlId($controlId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` - * or - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * @type \Google\Cloud\DiscoveryEngine\V1\Control $control - * Required. The Control to create. - * @type string $control_id - * Required. The ID to use for the Control, which will become the final - * component of the Control's resource name. - * This value must be within 1-63 characters. - * Valid characters are /[a-z][0-9]-_/. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ControlService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` - * or - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_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. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` - * or - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_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 Control to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control control = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Control|null - */ - public function getControl() - { - return $this->control; - } - - public function hasControl() - { - return isset($this->control); - } - - public function clearControl() - { - unset($this->control); - } - - /** - * Required. The Control to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control control = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Control $var - * @return $this - */ - public function setControl($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Control::class); - $this->control = $var; - - return $this; - } - - /** - * Required. The ID to use for the Control, which will become the final - * component of the Control's resource name. - * This value must be within 1-63 characters. - * Valid characters are /[a-z][0-9]-_/. - * - * Generated from protobuf field string control_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getControlId() - { - return $this->control_id; - } - - /** - * Required. The ID to use for the Control, which will become the final - * component of the Control's resource name. - * This value must be within 1-63 characters. - * Valid characters are /[a-z][0-9]-_/. - * - * Generated from protobuf field string control_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setControlId($var) - { - GPBUtil::checkString($var, True); - $this->control_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateConversationRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateConversationRequest.php deleted file mode 100644 index 541c714940dd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateConversationRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.discoveryengine.v1.CreateConversationRequest - */ -class CreateConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The conversation to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversation = null; - - /** - * @param string $parent Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * Please see {@see ConversationalSearchServiceClient::dataStoreName()} for help formatting this field. - * @param \Google\Cloud\DiscoveryEngine\V1\Conversation $conversation Required. The conversation to create. - * - * @return \Google\Cloud\DiscoveryEngine\V1\CreateConversationRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\DiscoveryEngine\V1\Conversation $conversation): self - { - return (new self()) - ->setParent($parent) - ->setConversation($conversation); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * @type \Google\Cloud\DiscoveryEngine\V1\Conversation $conversation - * Required. The conversation to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_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. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_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 conversation to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\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 to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Conversation $var - * @return $this - */ - public function setConversation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Conversation::class); - $this->conversation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDataStoreMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDataStoreMetadata.php deleted file mode 100644 index ef443c9371ce..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDataStoreMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.CreateDataStoreMetadata - */ -class CreateDataStoreMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DataStoreService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDataStoreRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDataStoreRequest.php deleted file mode 100644 index eee25ab929f2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDataStoreRequest.php +++ /dev/null @@ -1,310 +0,0 @@ -google.cloud.discoveryengine.v1.CreateDataStoreRequest - */ -class CreateDataStoreRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to - * create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_store = null; - /** - * Required. The ID to use for the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], which will become - * the final component of the - * [DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_store_id = ''; - /** - * A boolean flag indicating whether user want to directly create an advanced - * data store for site search. - * If the data store is not configured as site - * search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will - * be ignored. - * - * Generated from protobuf field bool create_advanced_site_search = 4; - */ - protected $create_advanced_site_search = false; - /** - * A boolean flag indicating whether to skip the default schema creation for - * the data store. Only enable this flag if you are certain that the default - * schema is incompatible with your use case. - * If set to true, you must manually create a schema for the data store before - * any documents can be ingested. - * This flag cannot be specified if `data_store.starting_schema` is specified. - * - * Generated from protobuf field bool skip_default_schema_creation = 7; - */ - protected $skip_default_schema_creation = false; - - /** - * @param string $parent Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}`. Please see - * {@see DataStoreServiceClient::collectionName()} for help formatting this field. - * @param \Google\Cloud\DiscoveryEngine\V1\DataStore $dataStore Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to - * create. - * @param string $dataStoreId Required. The ID to use for the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], which will become - * the final component of the - * [DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name. - * - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * INVALID_ARGUMENT error is returned. - * - * @return \Google\Cloud\DiscoveryEngine\V1\CreateDataStoreRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\DiscoveryEngine\V1\DataStore $dataStore, string $dataStoreId): self - { - return (new self()) - ->setParent($parent) - ->setDataStore($dataStore) - ->setDataStoreId($dataStoreId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}`. - * @type \Google\Cloud\DiscoveryEngine\V1\DataStore $data_store - * Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to - * create. - * @type string $data_store_id - * Required. The ID to use for the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], which will become - * the final component of the - * [DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * INVALID_ARGUMENT error is returned. - * @type bool $create_advanced_site_search - * A boolean flag indicating whether user want to directly create an advanced - * data store for site search. - * If the data store is not configured as site - * search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will - * be ignored. - * @type bool $skip_default_schema_creation - * A boolean flag indicating whether to skip the default schema creation for - * the data store. Only enable this flag if you are certain that the default - * schema is incompatible with your use case. - * If set to true, you must manually create a schema for the data store before - * any documents can be ingested. - * This flag cannot be specified if `data_store.starting_schema` is specified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DataStoreService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}`. - * - * Generated 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 name, such as - * `projects/{project}/locations/{location}/collections/{collection}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 [DataStore][google.cloud.discoveryengine.v1.DataStore] to - * create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\DataStore|null - */ - public function getDataStore() - { - return $this->data_store; - } - - public function hasDataStore() - { - return isset($this->data_store); - } - - public function clearDataStore() - { - unset($this->data_store); - } - - /** - * Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to - * create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore data_store = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\DataStore $var - * @return $this - */ - public function setDataStore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\DataStore::class); - $this->data_store = $var; - - return $this; - } - - /** - * Required. The ID to use for the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], which will become - * the final component of the - * [DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataStoreId() - { - return $this->data_store_id; - } - - /** - * Required. The ID to use for the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], which will become - * the final component of the - * [DataStore][google.cloud.discoveryengine.v1.DataStore]'s resource name. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string data_store_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataStoreId($var) - { - GPBUtil::checkString($var, True); - $this->data_store_id = $var; - - return $this; - } - - /** - * A boolean flag indicating whether user want to directly create an advanced - * data store for site search. - * If the data store is not configured as site - * search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will - * be ignored. - * - * Generated from protobuf field bool create_advanced_site_search = 4; - * @return bool - */ - public function getCreateAdvancedSiteSearch() - { - return $this->create_advanced_site_search; - } - - /** - * A boolean flag indicating whether user want to directly create an advanced - * data store for site search. - * If the data store is not configured as site - * search (GENERIC vertical and PUBLIC_WEBSITE content_config), this flag will - * be ignored. - * - * Generated from protobuf field bool create_advanced_site_search = 4; - * @param bool $var - * @return $this - */ - public function setCreateAdvancedSiteSearch($var) - { - GPBUtil::checkBool($var); - $this->create_advanced_site_search = $var; - - return $this; - } - - /** - * A boolean flag indicating whether to skip the default schema creation for - * the data store. Only enable this flag if you are certain that the default - * schema is incompatible with your use case. - * If set to true, you must manually create a schema for the data store before - * any documents can be ingested. - * This flag cannot be specified if `data_store.starting_schema` is specified. - * - * Generated from protobuf field bool skip_default_schema_creation = 7; - * @return bool - */ - public function getSkipDefaultSchemaCreation() - { - return $this->skip_default_schema_creation; - } - - /** - * A boolean flag indicating whether to skip the default schema creation for - * the data store. Only enable this flag if you are certain that the default - * schema is incompatible with your use case. - * If set to true, you must manually create a schema for the data store before - * any documents can be ingested. - * This flag cannot be specified if `data_store.starting_schema` is specified. - * - * Generated from protobuf field bool skip_default_schema_creation = 7; - * @param bool $var - * @return $this - */ - public function setSkipDefaultSchemaCreation($var) - { - GPBUtil::checkBool($var); - $this->skip_default_schema_creation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDocumentRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDocumentRequest.php deleted file mode 100644 index d189b13266d5..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateDocumentRequest.php +++ /dev/null @@ -1,243 +0,0 @@ -google.cloud.discoveryengine.v1.CreateDocumentRequest - */ -class CreateDocumentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The [Document][google.cloud.discoveryengine.v1.Document] to - * create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $document = null; - /** - * Required. The ID to use for the - * [Document][google.cloud.discoveryengine.v1.Document], which becomes the - * final component of the - * [Document.name][google.cloud.discoveryengine.v1.Document.name]. - * If the caller does not have permission to create the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * This field must be unique among all - * [Document][google.cloud.discoveryengine.v1.Document]s with the same - * [parent][google.cloud.discoveryengine.v1.CreateDocumentRequest.parent]. - * Otherwise, an `ALREADY_EXISTS` error is returned. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $document_id = ''; - - /** - * @param string $parent Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. Please see - * {@see DocumentServiceClient::branchName()} for help formatting this field. - * @param \Google\Cloud\DiscoveryEngine\V1\Document $document Required. The [Document][google.cloud.discoveryengine.v1.Document] to - * create. - * @param string $documentId Required. The ID to use for the - * [Document][google.cloud.discoveryengine.v1.Document], which becomes the - * final component of the - * [Document.name][google.cloud.discoveryengine.v1.Document.name]. - * - * If the caller does not have permission to create the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * - * This field must be unique among all - * [Document][google.cloud.discoveryengine.v1.Document]s with the same - * [parent][google.cloud.discoveryengine.v1.CreateDocumentRequest.parent]. - * Otherwise, an `ALREADY_EXISTS` error is returned. - * - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * - * @return \Google\Cloud\DiscoveryEngine\V1\CreateDocumentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\DiscoveryEngine\V1\Document $document, string $documentId): self - { - return (new self()) - ->setParent($parent) - ->setDocument($document) - ->setDocumentId($documentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * @type \Google\Cloud\DiscoveryEngine\V1\Document $document - * Required. The [Document][google.cloud.discoveryengine.v1.Document] to - * create. - * @type string $document_id - * Required. The ID to use for the - * [Document][google.cloud.discoveryengine.v1.Document], which becomes the - * final component of the - * [Document.name][google.cloud.discoveryengine.v1.Document.name]. - * If the caller does not have permission to create the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * This field must be unique among all - * [Document][google.cloud.discoveryengine.v1.Document]s with the same - * [parent][google.cloud.discoveryengine.v1.CreateDocumentRequest.parent]. - * Otherwise, an `ALREADY_EXISTS` error is returned. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * - * Generated 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 name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 [Document][google.cloud.discoveryengine.v1.Document] to - * create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Document|null - */ - public function getDocument() - { - return $this->document; - } - - public function hasDocument() - { - return isset($this->document); - } - - public function clearDocument() - { - unset($this->document); - } - - /** - * Required. The [Document][google.cloud.discoveryengine.v1.Document] to - * create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Document $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Document::class); - $this->document = $var; - - return $this; - } - - /** - * Required. The ID to use for the - * [Document][google.cloud.discoveryengine.v1.Document], which becomes the - * final component of the - * [Document.name][google.cloud.discoveryengine.v1.Document.name]. - * If the caller does not have permission to create the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * This field must be unique among all - * [Document][google.cloud.discoveryengine.v1.Document]s with the same - * [parent][google.cloud.discoveryengine.v1.CreateDocumentRequest.parent]. - * Otherwise, an `ALREADY_EXISTS` error is returned. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDocumentId() - { - return $this->document_id; - } - - /** - * Required. The ID to use for the - * [Document][google.cloud.discoveryengine.v1.Document], which becomes the - * final component of the - * [Document.name][google.cloud.discoveryengine.v1.Document.name]. - * If the caller does not have permission to create the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * This field must be unique among all - * [Document][google.cloud.discoveryengine.v1.Document]s with the same - * [parent][google.cloud.discoveryengine.v1.CreateDocumentRequest.parent]. - * Otherwise, an `ALREADY_EXISTS` error is returned. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string document_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDocumentId($var) - { - GPBUtil::checkString($var, True); - $this->document_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateEngineMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateEngineMetadata.php deleted file mode 100644 index 5b1cd7a7230d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateEngineMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.CreateEngineMetadata - */ -class CreateEngineMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\EngineService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateEngineRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateEngineRequest.php deleted file mode 100644 index 8c127570d234..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateEngineRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.discoveryengine.v1.CreateEngineRequest - */ -class CreateEngineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The [Engine][google.cloud.discoveryengine.v1.Engine] to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine engine = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $engine = null; - /** - * Required. The ID to use for the - * [Engine][google.cloud.discoveryengine.v1.Engine], which will become the - * final component of the [Engine][google.cloud.discoveryengine.v1.Engine]'s - * resource name. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string engine_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $engine_id = ''; - - /** - * @param string $parent Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}`. Please see - * {@see EngineServiceClient::collectionName()} for help formatting this field. - * @param \Google\Cloud\DiscoveryEngine\V1\Engine $engine Required. The [Engine][google.cloud.discoveryengine.v1.Engine] to create. - * @param string $engineId Required. The ID to use for the - * [Engine][google.cloud.discoveryengine.v1.Engine], which will become the - * final component of the [Engine][google.cloud.discoveryengine.v1.Engine]'s - * resource name. - * - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * INVALID_ARGUMENT error is returned. - * - * @return \Google\Cloud\DiscoveryEngine\V1\CreateEngineRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\DiscoveryEngine\V1\Engine $engine, string $engineId): self - { - return (new self()) - ->setParent($parent) - ->setEngine($engine) - ->setEngineId($engineId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}`. - * @type \Google\Cloud\DiscoveryEngine\V1\Engine $engine - * Required. The [Engine][google.cloud.discoveryengine.v1.Engine] to create. - * @type string $engine_id - * Required. The ID to use for the - * [Engine][google.cloud.discoveryengine.v1.Engine], which will become the - * final component of the [Engine][google.cloud.discoveryengine.v1.Engine]'s - * resource name. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * INVALID_ARGUMENT error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\EngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}`. - * - * Generated 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 name, such as - * `projects/{project}/locations/{location}/collections/{collection}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 [Engine][google.cloud.discoveryengine.v1.Engine] to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine engine = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Engine|null - */ - public function getEngine() - { - return $this->engine; - } - - public function hasEngine() - { - return isset($this->engine); - } - - public function clearEngine() - { - unset($this->engine); - } - - /** - * Required. The [Engine][google.cloud.discoveryengine.v1.Engine] to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine engine = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Engine $var - * @return $this - */ - public function setEngine($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Engine::class); - $this->engine = $var; - - return $this; - } - - /** - * Required. The ID to use for the - * [Engine][google.cloud.discoveryengine.v1.Engine], which will become the - * final component of the [Engine][google.cloud.discoveryengine.v1.Engine]'s - * resource name. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string engine_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEngineId() - { - return $this->engine_id; - } - - /** - * Required. The ID to use for the - * [Engine][google.cloud.discoveryengine.v1.Engine], which will become the - * final component of the [Engine][google.cloud.discoveryengine.v1.Engine]'s - * resource name. - * This field must conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. Otherwise, an - * INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string engine_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEngineId($var) - { - GPBUtil::checkString($var, True); - $this->engine_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSchemaMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSchemaMetadata.php deleted file mode 100644 index 9372aa713f66..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSchemaMetadata.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.discoveryengine.v1.CreateSchemaMetadata - */ -class CreateSchemaMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SchemaService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSchemaRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSchemaRequest.php deleted file mode 100644 index 75b11e40f16a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSchemaRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.discoveryengine.v1.CreateSchemaRequest - */ -class CreateSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent data store resource name, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $schema = null; - /** - * Required. The ID to use for the - * [Schema][google.cloud.discoveryengine.v1.Schema], which becomes the final - * component of the - * [Schema.name][google.cloud.discoveryengine.v1.Schema.name]. - * This field should conform to - * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length - * limit of 63 characters. - * - * Generated from protobuf field string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $schema_id = ''; - - /** - * @param string $parent Required. The parent data store resource name, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. Please see - * {@see SchemaServiceClient::dataStoreName()} for help formatting this field. - * @param \Google\Cloud\DiscoveryEngine\V1\Schema $schema Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create. - * @param string $schemaId Required. The ID to use for the - * [Schema][google.cloud.discoveryengine.v1.Schema], which becomes the final - * component of the - * [Schema.name][google.cloud.discoveryengine.v1.Schema.name]. - * - * This field should conform to - * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length - * limit of 63 characters. - * - * @return \Google\Cloud\DiscoveryEngine\V1\CreateSchemaRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\DiscoveryEngine\V1\Schema $schema, string $schemaId): self - { - return (new self()) - ->setParent($parent) - ->setSchema($schema) - ->setSchemaId($schemaId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent data store resource name, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * @type \Google\Cloud\DiscoveryEngine\V1\Schema $schema - * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create. - * @type string $schema_id - * Required. The ID to use for the - * [Schema][google.cloud.discoveryengine.v1.Schema], which becomes the final - * component of the - * [Schema.name][google.cloud.discoveryengine.v1.Schema.name]. - * This field should conform to - * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length - * limit of 63 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SchemaService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent data store resource name, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * - * Generated 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 data store resource name, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 [Schema][google.cloud.discoveryengine.v1.Schema] to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Schema schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Schema::class); - $this->schema = $var; - - return $this; - } - - /** - * Required. The ID to use for the - * [Schema][google.cloud.discoveryengine.v1.Schema], which becomes the final - * component of the - * [Schema.name][google.cloud.discoveryengine.v1.Schema.name]. - * This field should conform to - * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length - * limit of 63 characters. - * - * Generated from protobuf field string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSchemaId() - { - return $this->schema_id; - } - - /** - * Required. The ID to use for the - * [Schema][google.cloud.discoveryengine.v1.Schema], which becomes the final - * component of the - * [Schema.name][google.cloud.discoveryengine.v1.Schema.name]. - * This field should conform to - * [RFC-1034](https://tools.ietf.org/html/rfc1034) standard with a length - * limit of 63 characters. - * - * Generated from protobuf field string schema_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSchemaId($var) - { - GPBUtil::checkString($var, True); - $this->schema_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSessionRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSessionRequest.php deleted file mode 100644 index 297971632e1f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateSessionRequest.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.discoveryengine.v1.CreateSessionRequest - */ -class CreateSessionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The session to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $session = null; - - /** - * @param string $parent Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * Please see {@see ConversationalSearchServiceClient::dataStoreName()} for help formatting this field. - * @param \Google\Cloud\DiscoveryEngine\V1\Session $session Required. The session to create. - * - * @return \Google\Cloud\DiscoveryEngine\V1\CreateSessionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\DiscoveryEngine\V1\Session $session): self - { - return (new self()) - ->setParent($parent) - ->setSession($session); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * @type \Google\Cloud\DiscoveryEngine\V1\Session $session - * Required. The session to create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_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. Full resource name of parent data store. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_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 session to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Session|null - */ - public function getSession() - { - return $this->session; - } - - public function hasSession() - { - return isset($this->session); - } - - public function clearSession() - { - unset($this->session); - } - - /** - * Required. The session to create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session session = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Session $var - * @return $this - */ - public function setSession($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Session::class); - $this->session = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateTargetSiteMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateTargetSiteMetadata.php deleted file mode 100644 index 525d55019b87..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateTargetSiteMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.CreateTargetSiteMetadata - */ -class CreateTargetSiteMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateTargetSiteRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateTargetSiteRequest.php deleted file mode 100644 index 04de7aeffd32..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CreateTargetSiteRequest.php +++ /dev/null @@ -1,144 +0,0 @@ -google.cloud.discoveryengine.v1.CreateTargetSiteRequest - */ -class CreateTargetSiteRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The [TargetSite][google.cloud.discoveryengine.v1.TargetSite] to - * create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target_site = null; - - /** - * @param string $parent Required. Parent resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. Please see - * {@see SiteSearchEngineServiceClient::siteSearchEngineName()} for help formatting this field. - * @param \Google\Cloud\DiscoveryEngine\V1\TargetSite $targetSite Required. The [TargetSite][google.cloud.discoveryengine.v1.TargetSite] to - * create. - * - * @return \Google\Cloud\DiscoveryEngine\V1\CreateTargetSiteRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\DiscoveryEngine\V1\TargetSite $targetSite): self - { - return (new self()) - ->setParent($parent) - ->setTargetSite($targetSite); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * @type \Google\Cloud\DiscoveryEngine\V1\TargetSite $target_site - * Required. The [TargetSite][google.cloud.discoveryengine.v1.TargetSite] to - * create. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * Generated 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 name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 [TargetSite][google.cloud.discoveryengine.v1.TargetSite] to - * create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\TargetSite|null - */ - public function getTargetSite() - { - return $this->target_site; - } - - public function hasTargetSite() - { - return isset($this->target_site); - } - - public function clearTargetSite() - { - unset($this->target_site); - } - - /** - * Required. The [TargetSite][google.cloud.discoveryengine.v1.TargetSite] to - * create. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite target_site = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\TargetSite $var - * @return $this - */ - public function setTargetSite($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\TargetSite::class); - $this->target_site = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomAttribute.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomAttribute.php deleted file mode 100644 index 96ea2b044491..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomAttribute.php +++ /dev/null @@ -1,158 +0,0 @@ -google.cloud.discoveryengine.v1.CustomAttribute - */ -class CustomAttribute extends \Google\Protobuf\Internal\Message -{ - /** - * The textual values of this custom attribute. For example, `["yellow", - * "green"]` when the key is "color". - * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is - * returned. - * Exactly one of - * [CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text] - * or - * [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers] - * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field repeated string text = 1; - */ - private $text; - /** - * The numerical values of this custom attribute. For example, `[2.3, 15.4]` - * when the key is "lengths_cm". - * Exactly one of - * [CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text] - * or - * [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers] - * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field repeated double numbers = 2; - */ - private $numbers; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $text - * The textual values of this custom attribute. For example, `["yellow", - * "green"]` when the key is "color". - * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is - * returned. - * Exactly one of - * [CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text] - * or - * [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers] - * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. - * @type array|\Google\Protobuf\Internal\RepeatedField $numbers - * The numerical values of this custom attribute. For example, `[2.3, 15.4]` - * when the key is "lengths_cm". - * Exactly one of - * [CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text] - * or - * [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers] - * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The textual values of this custom attribute. For example, `["yellow", - * "green"]` when the key is "color". - * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is - * returned. - * Exactly one of - * [CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text] - * or - * [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers] - * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field repeated string text = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getText() - { - return $this->text; - } - - /** - * The textual values of this custom attribute. For example, `["yellow", - * "green"]` when the key is "color". - * Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is - * returned. - * Exactly one of - * [CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text] - * or - * [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers] - * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field repeated string text = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setText($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->text = $arr; - - return $this; - } - - /** - * The numerical values of this custom attribute. For example, `[2.3, 15.4]` - * when the key is "lengths_cm". - * Exactly one of - * [CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text] - * or - * [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers] - * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field repeated double numbers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNumbers() - { - return $this->numbers; - } - - /** - * The numerical values of this custom attribute. For example, `[2.3, 15.4]` - * when the key is "lengths_cm". - * Exactly one of - * [CustomAttribute.text][google.cloud.discoveryengine.v1.CustomAttribute.text] - * or - * [CustomAttribute.numbers][google.cloud.discoveryengine.v1.CustomAttribute.numbers] - * should be set. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field repeated double numbers = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNumbers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::DOUBLE); - $this->numbers = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomTuningModel.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomTuningModel.php deleted file mode 100644 index 4f939490e339..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomTuningModel.php +++ /dev/null @@ -1,348 +0,0 @@ -google.cloud.discoveryengine.v1.CustomTuningModel - */ -class CustomTuningModel extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The fully qualified resource name of the model. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. - * Model must be an alpha-numerical string with limit of 40 characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The display name of the model. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * The version of the model. - * - * Generated from protobuf field int64 model_version = 3; - */ - protected $model_version = 0; - /** - * The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CustomTuningModel.ModelState model_state = 4; - */ - protected $model_state = 0; - /** - * Deprecated: Timestamp the Model was created at. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [deprecated = true]; - * @deprecated - */ - protected $create_time = null; - /** - * Timestamp the model training was initiated. - * - * Generated from protobuf field .google.protobuf.Timestamp training_start_time = 6; - */ - protected $training_start_time = null; - /** - * The metrics of the trained model. - * - * Generated from protobuf field map metrics = 7; - */ - private $metrics; - /** - * Currently this is only populated if the model state is - * `INPUT_VALIDATION_FAILED`. - * - * Generated from protobuf field string error_message = 8; - */ - protected $error_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The fully qualified resource name of the model. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. - * Model must be an alpha-numerical string with limit of 40 characters. - * @type string $display_name - * The display name of the model. - * @type int|string $model_version - * The version of the model. - * @type int $model_state - * The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). - * @type \Google\Protobuf\Timestamp $create_time - * Deprecated: Timestamp the Model was created at. - * @type \Google\Protobuf\Timestamp $training_start_time - * Timestamp the model training was initiated. - * @type array|\Google\Protobuf\Internal\MapField $metrics - * The metrics of the trained model. - * @type string $error_message - * Currently this is only populated if the model state is - * `INPUT_VALIDATION_FAILED`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\CustomTuningModel::initOnce(); - parent::__construct($data); - } - - /** - * Required. The fully qualified resource name of the model. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. - * Model must be an alpha-numerical string with limit of 40 characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The fully qualified resource name of the model. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}`. - * Model must be an alpha-numerical string with limit of 40 characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_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 display name of the model. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the 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; - } - - /** - * The version of the model. - * - * Generated from protobuf field int64 model_version = 3; - * @return int|string - */ - public function getModelVersion() - { - return $this->model_version; - } - - /** - * The version of the model. - * - * Generated from protobuf field int64 model_version = 3; - * @param int|string $var - * @return $this - */ - public function setModelVersion($var) - { - GPBUtil::checkInt64($var); - $this->model_version = $var; - - return $this; - } - - /** - * The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CustomTuningModel.ModelState model_state = 4; - * @return int - */ - public function getModelState() - { - return $this->model_state; - } - - /** - * The state that the model is in (e.g.`TRAINING` or `TRAINING_FAILED`). - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CustomTuningModel.ModelState model_state = 4; - * @param int $var - * @return $this - */ - public function setModelState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\CustomTuningModel\ModelState::class); - $this->model_state = $var; - - return $this; - } - - /** - * Deprecated: Timestamp the Model was created at. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [deprecated = true]; - * @return \Google\Protobuf\Timestamp|null - * @deprecated - */ - public function getCreateTime() - { - @trigger_error('create_time is deprecated.', E_USER_DEPRECATED); - return $this->create_time; - } - - public function hasCreateTime() - { - @trigger_error('create_time is deprecated.', E_USER_DEPRECATED); - return isset($this->create_time); - } - - public function clearCreateTime() - { - @trigger_error('create_time is deprecated.', E_USER_DEPRECATED); - unset($this->create_time); - } - - /** - * Deprecated: Timestamp the Model was created at. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [deprecated = true]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - * @deprecated - */ - public function setCreateTime($var) - { - @trigger_error('create_time is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Timestamp the model training was initiated. - * - * Generated from protobuf field .google.protobuf.Timestamp training_start_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTrainingStartTime() - { - return $this->training_start_time; - } - - public function hasTrainingStartTime() - { - return isset($this->training_start_time); - } - - public function clearTrainingStartTime() - { - unset($this->training_start_time); - } - - /** - * Timestamp the model training was initiated. - * - * Generated from protobuf field .google.protobuf.Timestamp training_start_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTrainingStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->training_start_time = $var; - - return $this; - } - - /** - * The metrics of the trained model. - * - * Generated from protobuf field map metrics = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics of the trained model. - * - * Generated from protobuf field map metrics = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::DOUBLE); - $this->metrics = $arr; - - return $this; - } - - /** - * Currently this is only populated if the model state is - * `INPUT_VALIDATION_FAILED`. - * - * Generated from protobuf field string error_message = 8; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * Currently this is only populated if the model state is - * `INPUT_VALIDATION_FAILED`. - * - * Generated from protobuf field string error_message = 8; - * @param string $var - * @return $this - */ - public function setErrorMessage($var) - { - GPBUtil::checkString($var, True); - $this->error_message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomTuningModel/ModelState.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomTuningModel/ModelState.php deleted file mode 100644 index 869f1490fe68..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/CustomTuningModel/ModelState.php +++ /dev/null @@ -1,99 +0,0 @@ -google.cloud.discoveryengine.v1.CustomTuningModel.ModelState - */ -class ModelState -{ - /** - * Default value. - * - * Generated from protobuf enum MODEL_STATE_UNSPECIFIED = 0; - */ - const MODEL_STATE_UNSPECIFIED = 0; - /** - * The model is in a paused training state. - * - * Generated from protobuf enum TRAINING_PAUSED = 1; - */ - const TRAINING_PAUSED = 1; - /** - * The model is currently training. - * - * Generated from protobuf enum TRAINING = 2; - */ - const TRAINING = 2; - /** - * The model has successfully completed training. - * - * Generated from protobuf enum TRAINING_COMPLETE = 3; - */ - const TRAINING_COMPLETE = 3; - /** - * The model is ready for serving. - * - * Generated from protobuf enum READY_FOR_SERVING = 4; - */ - const READY_FOR_SERVING = 4; - /** - * The model training failed. - * - * Generated from protobuf enum TRAINING_FAILED = 5; - */ - const TRAINING_FAILED = 5; - /** - * The model training finished successfully but metrics did not improve. - * - * Generated from protobuf enum NO_IMPROVEMENT = 6; - */ - const NO_IMPROVEMENT = 6; - /** - * Input data validation failed. Model training didn't start. - * - * Generated from protobuf enum INPUT_VALIDATION_FAILED = 7; - */ - const INPUT_VALIDATION_FAILED = 7; - - private static $valueToName = [ - self::MODEL_STATE_UNSPECIFIED => 'MODEL_STATE_UNSPECIFIED', - self::TRAINING_PAUSED => 'TRAINING_PAUSED', - self::TRAINING => 'TRAINING', - self::TRAINING_COMPLETE => 'TRAINING_COMPLETE', - self::READY_FOR_SERVING => 'READY_FOR_SERVING', - self::TRAINING_FAILED => 'TRAINING_FAILED', - self::NO_IMPROVEMENT => 'NO_IMPROVEMENT', - self::INPUT_VALIDATION_FAILED => 'INPUT_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(ModelState::class, \Google\Cloud\DiscoveryEngine\V1\CustomTuningModel_ModelState::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore.php deleted file mode 100644 index 464d6673ab2d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore.php +++ /dev/null @@ -1,577 +0,0 @@ -google.cloud.discoveryengine.v1.DataStore - */ -class DataStore extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The full resource name of the data store. - * Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Required. The data store display name. - * This field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Immutable. The industry vertical that the data store registers. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $industry_vertical = 0; - /** - * The solutions that the data store enrolls. Available solutions for each - * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]: - * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. - * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other - * solutions cannot be enrolled. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - */ - private $solution_types; - /** - * Output only. The id of the default - * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data - * store. - * - * Generated from protobuf field string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $default_schema_id = ''; - /** - * Immutable. The content config of the data store. If this field is unset, - * the server behavior defaults to - * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $content_config = 0; - /** - * Output only. Timestamp the - * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Data size estimation for billing. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $billing_estimation = null; - /** - * Config to store data store type configuration for workspace data. This - * must be set when - * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config] - * is set as - * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; - */ - protected $workspace_config = null; - /** - * Configuration for Document understanding and enrichment. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; - */ - protected $document_processing_config = null; - /** - * The start schema to use for this - * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning - * it. If unset, a default vertical specialized schema will be used. - * This field is only used by [CreateDataStore][] API, and will be ignored if - * used in other APIs. This field will be omitted from all API responses - * including [CreateDataStore][] API. To retrieve a schema of a - * [DataStore][google.cloud.discoveryengine.v1.DataStore], use - * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] - * API instead. - * The provided schema will be validated against certain rules on schema. - * Learn more from [this - * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Schema starting_schema = 28; - */ - protected $starting_schema = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. The full resource name of the data store. - * Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * @type string $display_name - * Required. The data store display name. - * This field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an INVALID_ARGUMENT error is returned. - * @type int $industry_vertical - * Immutable. The industry vertical that the data store registers. - * @type array|\Google\Protobuf\Internal\RepeatedField $solution_types - * The solutions that the data store enrolls. Available solutions for each - * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]: - * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. - * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other - * solutions cannot be enrolled. - * @type string $default_schema_id - * Output only. The id of the default - * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data - * store. - * @type int $content_config - * Immutable. The content config of the data store. If this field is unset, - * the server behavior defaults to - * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT]. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Timestamp the - * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at. - * @type \Google\Cloud\DiscoveryEngine\V1\DataStore\BillingEstimation $billing_estimation - * Output only. Data size estimation for billing. - * @type \Google\Cloud\DiscoveryEngine\V1\WorkspaceConfig $workspace_config - * Config to store data store type configuration for workspace data. This - * must be set when - * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config] - * is set as - * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE]. - * @type \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig $document_processing_config - * Configuration for Document understanding and enrichment. - * @type \Google\Cloud\DiscoveryEngine\V1\Schema $starting_schema - * The start schema to use for this - * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning - * it. If unset, a default vertical specialized schema will be used. - * This field is only used by [CreateDataStore][] API, and will be ignored if - * used in other APIs. This field will be omitted from all API responses - * including [CreateDataStore][] API. To retrieve a schema of a - * [DataStore][google.cloud.discoveryengine.v1.DataStore], use - * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] - * API instead. - * The provided schema will be validated against certain rules on schema. - * Learn more from [this - * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DataStore::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. The full resource name of the data store. - * Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The full resource name of the data store. - * Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * 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 data store display name. - * This field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The data store display name. - * This field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an INVALID_ARGUMENT error is returned. - * - * 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; - } - - /** - * Immutable. The industry vertical that the data store registers. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getIndustryVertical() - { - return $this->industry_vertical; - } - - /** - * Immutable. The industry vertical that the data store registers. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setIndustryVertical($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\IndustryVertical::class); - $this->industry_vertical = $var; - - return $this; - } - - /** - * The solutions that the data store enrolls. Available solutions for each - * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]: - * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. - * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other - * solutions cannot be enrolled. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSolutionTypes() - { - return $this->solution_types; - } - - /** - * The solutions that the data store enrolls. Available solutions for each - * [industry_vertical][google.cloud.discoveryengine.v1.DataStore.industry_vertical]: - * * `MEDIA`: `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. - * * `SITE_SEARCH`: `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other - * solutions cannot be enrolled. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SolutionType solution_types = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSolutionTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DiscoveryEngine\V1\SolutionType::class); - $this->solution_types = $arr; - - return $this; - } - - /** - * Output only. The id of the default - * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data - * store. - * - * Generated from protobuf field string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDefaultSchemaId() - { - return $this->default_schema_id; - } - - /** - * Output only. The id of the default - * [Schema][google.cloud.discoveryengine.v1.Schema] asscociated to this data - * store. - * - * Generated from protobuf field string default_schema_id = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDefaultSchemaId($var) - { - GPBUtil::checkString($var, True); - $this->default_schema_id = $var; - - return $this; - } - - /** - * Immutable. The content config of the data store. If this field is unset, - * the server behavior defaults to - * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return int - */ - public function getContentConfig() - { - return $this->content_config; - } - - /** - * Immutable. The content config of the data store. If this field is unset, - * the server behavior defaults to - * [ContentConfig.NO_CONTENT][google.cloud.discoveryengine.v1.DataStore.ContentConfig.NO_CONTENT]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore.ContentConfig content_config = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @param int $var - * @return $this - */ - public function setContentConfig($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\DataStore\ContentConfig::class); - $this->content_config = $var; - - return $this; - } - - /** - * Output only. Timestamp the - * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. Timestamp the - * [DataStore][google.cloud.discoveryengine.v1.DataStore] was created at. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. Data size estimation for billing. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\DiscoveryEngine\V1\DataStore\BillingEstimation|null - */ - public function getBillingEstimation() - { - return $this->billing_estimation; - } - - public function hasBillingEstimation() - { - return isset($this->billing_estimation); - } - - public function clearBillingEstimation() - { - unset($this->billing_estimation); - } - - /** - * Output only. Data size estimation for billing. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore.BillingEstimation billing_estimation = 23 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\DiscoveryEngine\V1\DataStore\BillingEstimation $var - * @return $this - */ - public function setBillingEstimation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\DataStore\BillingEstimation::class); - $this->billing_estimation = $var; - - return $this; - } - - /** - * Config to store data store type configuration for workspace data. This - * must be set when - * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config] - * is set as - * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; - * @return \Google\Cloud\DiscoveryEngine\V1\WorkspaceConfig|null - */ - public function getWorkspaceConfig() - { - return $this->workspace_config; - } - - public function hasWorkspaceConfig() - { - return isset($this->workspace_config); - } - - public function clearWorkspaceConfig() - { - unset($this->workspace_config); - } - - /** - * Config to store data store type configuration for workspace data. This - * must be set when - * [DataStore.content_config][google.cloud.discoveryengine.v1.DataStore.content_config] - * is set as - * [DataStore.ContentConfig.GOOGLE_WORKSPACE][google.cloud.discoveryengine.v1.DataStore.ContentConfig.GOOGLE_WORKSPACE]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.WorkspaceConfig workspace_config = 25; - * @param \Google\Cloud\DiscoveryEngine\V1\WorkspaceConfig $var - * @return $this - */ - public function setWorkspaceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\WorkspaceConfig::class); - $this->workspace_config = $var; - - return $this; - } - - /** - * Configuration for Document understanding and enrichment. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; - * @return \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig|null - */ - public function getDocumentProcessingConfig() - { - return $this->document_processing_config; - } - - public function hasDocumentProcessingConfig() - { - return isset($this->document_processing_config); - } - - public function clearDocumentProcessingConfig() - { - unset($this->document_processing_config); - } - - /** - * Configuration for Document understanding and enrichment. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig document_processing_config = 27; - * @param \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig $var - * @return $this - */ - public function setDocumentProcessingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig::class); - $this->document_processing_config = $var; - - return $this; - } - - /** - * The start schema to use for this - * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning - * it. If unset, a default vertical specialized schema will be used. - * This field is only used by [CreateDataStore][] API, and will be ignored if - * used in other APIs. This field will be omitted from all API responses - * including [CreateDataStore][] API. To retrieve a schema of a - * [DataStore][google.cloud.discoveryengine.v1.DataStore], use - * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] - * API instead. - * The provided schema will be validated against certain rules on schema. - * Learn more from [this - * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Schema starting_schema = 28; - * @return \Google\Cloud\DiscoveryEngine\V1\Schema|null - */ - public function getStartingSchema() - { - return $this->starting_schema; - } - - public function hasStartingSchema() - { - return isset($this->starting_schema); - } - - public function clearStartingSchema() - { - unset($this->starting_schema); - } - - /** - * The start schema to use for this - * [DataStore][google.cloud.discoveryengine.v1.DataStore] when provisioning - * it. If unset, a default vertical specialized schema will be used. - * This field is only used by [CreateDataStore][] API, and will be ignored if - * used in other APIs. This field will be omitted from all API responses - * including [CreateDataStore][] API. To retrieve a schema of a - * [DataStore][google.cloud.discoveryengine.v1.DataStore], use - * [SchemaService.GetSchema][google.cloud.discoveryengine.v1.SchemaService.GetSchema] - * API instead. - * The provided schema will be validated against certain rules on schema. - * Learn more from [this - * doc](https://cloud.google.com/generative-ai-app-builder/docs/provide-schema). - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Schema starting_schema = 28; - * @param \Google\Cloud\DiscoveryEngine\V1\Schema $var - * @return $this - */ - public function setStartingSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Schema::class); - $this->starting_schema = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore/BillingEstimation.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore/BillingEstimation.php deleted file mode 100644 index 06ad31cea57b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore/BillingEstimation.php +++ /dev/null @@ -1,270 +0,0 @@ -google.cloud.discoveryengine.v1.DataStore.BillingEstimation - */ -class BillingEstimation extends \Google\Protobuf\Internal\Message -{ - /** - * Data size for structured data in terms of bytes. - * - * Generated from protobuf field int64 structured_data_size = 1; - */ - protected $structured_data_size = 0; - /** - * Data size for unstructured data in terms of bytes. - * - * Generated from protobuf field int64 unstructured_data_size = 2; - */ - protected $unstructured_data_size = 0; - /** - * Data size for websites in terms of bytes. - * - * Generated from protobuf field int64 website_data_size = 3; - */ - protected $website_data_size = 0; - /** - * Last updated timestamp for structured data. - * - * Generated from protobuf field .google.protobuf.Timestamp structured_data_update_time = 4; - */ - protected $structured_data_update_time = null; - /** - * Last updated timestamp for unstructured data. - * - * Generated from protobuf field .google.protobuf.Timestamp unstructured_data_update_time = 5; - */ - protected $unstructured_data_update_time = null; - /** - * Last updated timestamp for websites. - * - * Generated from protobuf field .google.protobuf.Timestamp website_data_update_time = 6; - */ - protected $website_data_update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $structured_data_size - * Data size for structured data in terms of bytes. - * @type int|string $unstructured_data_size - * Data size for unstructured data in terms of bytes. - * @type int|string $website_data_size - * Data size for websites in terms of bytes. - * @type \Google\Protobuf\Timestamp $structured_data_update_time - * Last updated timestamp for structured data. - * @type \Google\Protobuf\Timestamp $unstructured_data_update_time - * Last updated timestamp for unstructured data. - * @type \Google\Protobuf\Timestamp $website_data_update_time - * Last updated timestamp for websites. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DataStore::initOnce(); - parent::__construct($data); - } - - /** - * Data size for structured data in terms of bytes. - * - * Generated from protobuf field int64 structured_data_size = 1; - * @return int|string - */ - public function getStructuredDataSize() - { - return $this->structured_data_size; - } - - /** - * Data size for structured data in terms of bytes. - * - * Generated from protobuf field int64 structured_data_size = 1; - * @param int|string $var - * @return $this - */ - public function setStructuredDataSize($var) - { - GPBUtil::checkInt64($var); - $this->structured_data_size = $var; - - return $this; - } - - /** - * Data size for unstructured data in terms of bytes. - * - * Generated from protobuf field int64 unstructured_data_size = 2; - * @return int|string - */ - public function getUnstructuredDataSize() - { - return $this->unstructured_data_size; - } - - /** - * Data size for unstructured data in terms of bytes. - * - * Generated from protobuf field int64 unstructured_data_size = 2; - * @param int|string $var - * @return $this - */ - public function setUnstructuredDataSize($var) - { - GPBUtil::checkInt64($var); - $this->unstructured_data_size = $var; - - return $this; - } - - /** - * Data size for websites in terms of bytes. - * - * Generated from protobuf field int64 website_data_size = 3; - * @return int|string - */ - public function getWebsiteDataSize() - { - return $this->website_data_size; - } - - /** - * Data size for websites in terms of bytes. - * - * Generated from protobuf field int64 website_data_size = 3; - * @param int|string $var - * @return $this - */ - public function setWebsiteDataSize($var) - { - GPBUtil::checkInt64($var); - $this->website_data_size = $var; - - return $this; - } - - /** - * Last updated timestamp for structured data. - * - * Generated from protobuf field .google.protobuf.Timestamp structured_data_update_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStructuredDataUpdateTime() - { - return $this->structured_data_update_time; - } - - public function hasStructuredDataUpdateTime() - { - return isset($this->structured_data_update_time); - } - - public function clearStructuredDataUpdateTime() - { - unset($this->structured_data_update_time); - } - - /** - * Last updated timestamp for structured data. - * - * Generated from protobuf field .google.protobuf.Timestamp structured_data_update_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStructuredDataUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->structured_data_update_time = $var; - - return $this; - } - - /** - * Last updated timestamp for unstructured data. - * - * Generated from protobuf field .google.protobuf.Timestamp unstructured_data_update_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUnstructuredDataUpdateTime() - { - return $this->unstructured_data_update_time; - } - - public function hasUnstructuredDataUpdateTime() - { - return isset($this->unstructured_data_update_time); - } - - public function clearUnstructuredDataUpdateTime() - { - unset($this->unstructured_data_update_time); - } - - /** - * Last updated timestamp for unstructured data. - * - * Generated from protobuf field .google.protobuf.Timestamp unstructured_data_update_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUnstructuredDataUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->unstructured_data_update_time = $var; - - return $this; - } - - /** - * Last updated timestamp for websites. - * - * Generated from protobuf field .google.protobuf.Timestamp website_data_update_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getWebsiteDataUpdateTime() - { - return $this->website_data_update_time; - } - - public function hasWebsiteDataUpdateTime() - { - return isset($this->website_data_update_time); - } - - public function clearWebsiteDataUpdateTime() - { - unset($this->website_data_update_time); - } - - /** - * Last updated timestamp for websites. - * - * Generated from protobuf field .google.protobuf.Timestamp website_data_update_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setWebsiteDataUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->website_data_update_time = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BillingEstimation::class, \Google\Cloud\DiscoveryEngine\V1\DataStore_BillingEstimation::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore/ContentConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore/ContentConfig.php deleted file mode 100644 index 7592a60b385d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DataStore/ContentConfig.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.discoveryengine.v1.DataStore.ContentConfig - */ -class ContentConfig -{ - /** - * Default value. - * - * Generated from protobuf enum CONTENT_CONFIG_UNSPECIFIED = 0; - */ - const CONTENT_CONFIG_UNSPECIFIED = 0; - /** - * Only contains documents without any - * [Document.content][google.cloud.discoveryengine.v1.Document.content]. - * - * Generated from protobuf enum NO_CONTENT = 1; - */ - const NO_CONTENT = 1; - /** - * Only contains documents with - * [Document.content][google.cloud.discoveryengine.v1.Document.content]. - * - * Generated from protobuf enum CONTENT_REQUIRED = 2; - */ - const CONTENT_REQUIRED = 2; - /** - * The data store is used for public website search. - * - * Generated from protobuf enum PUBLIC_WEBSITE = 3; - */ - const PUBLIC_WEBSITE = 3; - /** - * The data store is used for workspace search. Details of workspace - * data store are specified in the - * [WorkspaceConfig][google.cloud.discoveryengine.v1.WorkspaceConfig]. - * - * Generated from protobuf enum GOOGLE_WORKSPACE = 4; - */ - const GOOGLE_WORKSPACE = 4; - - private static $valueToName = [ - self::CONTENT_CONFIG_UNSPECIFIED => 'CONTENT_CONFIG_UNSPECIFIED', - self::NO_CONTENT => 'NO_CONTENT', - self::CONTENT_REQUIRED => 'CONTENT_REQUIRED', - self::PUBLIC_WEBSITE => 'PUBLIC_WEBSITE', - self::GOOGLE_WORKSPACE => 'GOOGLE_WORKSPACE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ContentConfig::class, \Google\Cloud\DiscoveryEngine\V1\DataStore_ContentConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteControlRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteControlRequest.php deleted file mode 100644 index b0f69214b856..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteControlRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteControlRequest - */ -class DeleteControlRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Control to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_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 Control to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` - * Please see {@see ControlServiceClient::controlName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\DeleteControlRequest - * - * @experimental - */ - public static function 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 Control to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ControlService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Control to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_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 Control to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteConversationRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteConversationRequest.php deleted file mode 100644 index 0407ba5aac86..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteConversationRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteConversationRequest - */ -class DeleteConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Conversation to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 Conversation to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` - * Please see {@see ConversationalSearchServiceClient::conversationName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\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 resource name of the Conversation to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Conversation to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 Conversation to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDataStoreMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDataStoreMetadata.php deleted file mode 100644 index 5cf020e100a6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDataStoreMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteDataStoreMetadata - */ -class DeleteDataStoreMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DataStoreService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDataStoreRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDataStoreRequest.php deleted file mode 100644 index f24440ef26a9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDataStoreRequest.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteDataStoreRequest - */ -class DeleteDataStoreRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * If the caller does not have permission to delete the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [DataStore][google.cloud.discoveryengine.v1.DataStore] to delete - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * - * If the caller does not have permission to delete the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * - * If the [DataStore][google.cloud.discoveryengine.v1.DataStore] to delete - * does not exist, a NOT_FOUND error is returned. Please see - * {@see DataStoreServiceClient::dataStoreName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\DeleteDataStoreRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * If the caller does not have permission to delete the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [DataStore][google.cloud.discoveryengine.v1.DataStore] to delete - * does not exist, a NOT_FOUND error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DataStoreService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * If the caller does not have permission to delete the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [DataStore][google.cloud.discoveryengine.v1.DataStore] to delete - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * If the caller does not have permission to delete the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [DataStore][google.cloud.discoveryengine.v1.DataStore] to delete - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDocumentRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDocumentRequest.php deleted file mode 100644 index dceaa5af0bdb..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteDocumentRequest.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteDocumentRequest - */ -class DeleteDocumentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of - * [Document][google.cloud.discoveryengine.v1.Document], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. - * If the caller does not have permission to delete the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the [Document][google.cloud.discoveryengine.v1.Document] to delete does - * not exist, a `NOT_FOUND` error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Full resource name of - * [Document][google.cloud.discoveryengine.v1.Document], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. - * - * If the caller does not have permission to delete the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * - * If the [Document][google.cloud.discoveryengine.v1.Document] to delete does - * not exist, a `NOT_FOUND` error is returned. Please see - * {@see DocumentServiceClient::documentName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\DeleteDocumentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Full resource name of - * [Document][google.cloud.discoveryengine.v1.Document], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. - * If the caller does not have permission to delete the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the [Document][google.cloud.discoveryengine.v1.Document] to delete does - * not exist, a `NOT_FOUND` error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of - * [Document][google.cloud.discoveryengine.v1.Document], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. - * If the caller does not have permission to delete the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the [Document][google.cloud.discoveryengine.v1.Document] to delete does - * not exist, a `NOT_FOUND` error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Full resource name of - * [Document][google.cloud.discoveryengine.v1.Document], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. - * If the caller does not have permission to delete the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the [Document][google.cloud.discoveryengine.v1.Document] to delete does - * not exist, a `NOT_FOUND` error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteEngineMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteEngineMetadata.php deleted file mode 100644 index 933420c0aa82..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteEngineMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteEngineMetadata - */ -class DeleteEngineMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\EngineService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteEngineRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteEngineRequest.php deleted file mode 100644 index ea7354f007bb..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteEngineRequest.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteEngineRequest - */ -class DeleteEngineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of - * [Engine][google.cloud.discoveryengine.v1.Engine], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * If the caller does not have permission to delete the - * [Engine][google.cloud.discoveryengine.v1.Engine], regardless of whether or - * not it exists, a PERMISSION_DENIED error is returned. - * If the [Engine][google.cloud.discoveryengine.v1.Engine] to delete does not - * exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Full resource name of - * [Engine][google.cloud.discoveryengine.v1.Engine], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * - * If the caller does not have permission to delete the - * [Engine][google.cloud.discoveryengine.v1.Engine], regardless of whether or - * not it exists, a PERMISSION_DENIED error is returned. - * - * If the [Engine][google.cloud.discoveryengine.v1.Engine] to delete does not - * exist, a NOT_FOUND error is returned. Please see - * {@see EngineServiceClient::engineName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\DeleteEngineRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Full resource name of - * [Engine][google.cloud.discoveryengine.v1.Engine], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * If the caller does not have permission to delete the - * [Engine][google.cloud.discoveryengine.v1.Engine], regardless of whether or - * not it exists, a PERMISSION_DENIED error is returned. - * If the [Engine][google.cloud.discoveryengine.v1.Engine] to delete does not - * exist, a NOT_FOUND error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\EngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of - * [Engine][google.cloud.discoveryengine.v1.Engine], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * If the caller does not have permission to delete the - * [Engine][google.cloud.discoveryengine.v1.Engine], regardless of whether or - * not it exists, a PERMISSION_DENIED error is returned. - * If the [Engine][google.cloud.discoveryengine.v1.Engine] to delete does not - * exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Full resource name of - * [Engine][google.cloud.discoveryengine.v1.Engine], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * If the caller does not have permission to delete the - * [Engine][google.cloud.discoveryengine.v1.Engine], regardless of whether or - * not it exists, a PERMISSION_DENIED error is returned. - * If the [Engine][google.cloud.discoveryengine.v1.Engine] to delete does not - * exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSchemaMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSchemaMetadata.php deleted file mode 100644 index b333f2a7e673..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSchemaMetadata.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteSchemaMetadata - */ -class DeleteSchemaMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SchemaService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSchemaRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSchemaRequest.php deleted file mode 100644 index bdfd90bd77c2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSchemaRequest.php +++ /dev/null @@ -1,88 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteSchemaRequest - */ -class DeleteSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. Please see - * {@see SchemaServiceClient::schemaName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\DeleteSchemaRequest - * - * @experimental - */ - public static function 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 full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SchemaService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSessionRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSessionRequest.php deleted file mode 100644 index 9cdb049a1385..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteSessionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteSessionRequest - */ -class DeleteSessionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Session to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_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 Session to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` - * Please see {@see ConversationalSearchServiceClient::sessionName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\DeleteSessionRequest - * - * @experimental - */ - public static function 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 Session to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Session to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_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 Session to delete. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteTargetSiteMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteTargetSiteMetadata.php deleted file mode 100644 index 174c67ef4cad..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteTargetSiteMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteTargetSiteMetadata - */ -class DeleteTargetSiteMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteTargetSiteRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteTargetSiteRequest.php deleted file mode 100644 index 6d1fc245a982..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DeleteTargetSiteRequest.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.discoveryengine.v1.DeleteTargetSiteRequest - */ -class DeleteTargetSiteRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`. - * If the caller does not have permission to access the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite] - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Full resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`. - * - * If the caller does not have permission to access the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * - * If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite] - * does not exist, a NOT_FOUND error is returned. Please see - * {@see SiteSearchEngineServiceClient::targetSiteName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\DeleteTargetSiteRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Full resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`. - * If the caller does not have permission to access the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite] - * does not exist, a NOT_FOUND error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`. - * If the caller does not have permission to access the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite] - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Full resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`. - * If the caller does not have permission to access the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite] - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchMetadata.php deleted file mode 100644 index a0e1eb9743d1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchMetadata - */ -class DisableAdvancedSiteSearchMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchRequest.php deleted file mode 100644 index b64abb3c1e7a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchRequest - */ -class DisableAdvancedSiteSearchRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $site_search_engine = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $site_search_engine - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSearchEngine`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getSiteSearchEngine() - { - return $this->site_search_engine; - } - - /** - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSiteSearchEngine($var) - { - GPBUtil::checkString($var, True); - $this->site_search_engine = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchResponse.php deleted file mode 100644 index b1c837f4d135..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DisableAdvancedSiteSearchResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -google.cloud.discoveryengine.v1.DisableAdvancedSiteSearchResponse - */ -class DisableAdvancedSiteSearchResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document.php deleted file mode 100644 index 1b11dd35be60..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document.php +++ /dev/null @@ -1,509 +0,0 @@ -google.cloud.discoveryengine.v1.Document - */ -class Document extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The full resource name of the document. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Immutable. The identifier of the document. - * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. - * - * Generated from protobuf field string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $id = ''; - /** - * The identifier of the schema located in the same data store. - * - * Generated from protobuf field string schema_id = 3; - */ - protected $schema_id = ''; - /** - * The unstructured data linked to this document. Content must be set if this - * document is under a - * `CONTENT_REQUIRED` data store. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document.Content content = 10; - */ - protected $content = null; - /** - * The identifier of the parent document. Currently supports at most two level - * document hierarchy. - * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. - * - * Generated from protobuf field string parent_document_id = 7; - */ - protected $parent_document_id = ''; - /** - * Output only. This field is OUTPUT_ONLY. - * It contains derived data that are not in the original input document. - * - * Generated from protobuf field .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $derived_struct_data = null; - /** - * Output only. The last time the document was indexed. If this field is set, - * the document could be returned in search results. - * This field is OUTPUT_ONLY. If this field is not populated, it means the - * document has never been indexed. - * - * Generated from protobuf field .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $index_time = null; - /** - * Output only. The index status of the document. - * * If document is indexed successfully, the index_time field is populated. - * * Otherwise, if document is not indexed due to errors, the error_samples - * field is populated. - * * Otherwise, index_status is unset. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document.IndexStatus index_status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $index_status = null; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Struct $struct_data - * The structured JSON data for the document. It should conform to the - * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an - * `INVALID_ARGUMENT` error is thrown. - * @type string $json_data - * The JSON string representation of the document. It should conform to the - * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an - * `INVALID_ARGUMENT` error is thrown. - * @type string $name - * Immutable. The full resource name of the document. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * @type string $id - * Immutable. The identifier of the document. - * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. - * @type string $schema_id - * The identifier of the schema located in the same data store. - * @type \Google\Cloud\DiscoveryEngine\V1\Document\Content $content - * The unstructured data linked to this document. Content must be set if this - * document is under a - * `CONTENT_REQUIRED` data store. - * @type string $parent_document_id - * The identifier of the parent document. Currently supports at most two level - * document hierarchy. - * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. - * @type \Google\Protobuf\Struct $derived_struct_data - * Output only. This field is OUTPUT_ONLY. - * It contains derived data that are not in the original input document. - * @type \Google\Protobuf\Timestamp $index_time - * Output only. The last time the document was indexed. If this field is set, - * the document could be returned in search results. - * This field is OUTPUT_ONLY. If this field is not populated, it means the - * document has never been indexed. - * @type \Google\Cloud\DiscoveryEngine\V1\Document\IndexStatus $index_status - * Output only. The index status of the document. - * * If document is indexed successfully, the index_time field is populated. - * * Otherwise, if document is not indexed due to errors, the error_samples - * field is populated. - * * Otherwise, index_status is unset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * The structured JSON data for the document. It should conform to the - * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an - * `INVALID_ARGUMENT` error is thrown. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 4; - * @return \Google\Protobuf\Struct|null - */ - public function getStructData() - { - return $this->readOneof(4); - } - - public function hasStructData() - { - return $this->hasOneof(4); - } - - /** - * The structured JSON data for the document. It should conform to the - * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an - * `INVALID_ARGUMENT` error is thrown. - * - * Generated from protobuf field .google.protobuf.Struct struct_data = 4; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setStructData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * The JSON string representation of the document. It should conform to the - * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an - * `INVALID_ARGUMENT` error is thrown. - * - * Generated from protobuf field string json_data = 5; - * @return string - */ - public function getJsonData() - { - return $this->readOneof(5); - } - - public function hasJsonData() - { - return $this->hasOneof(5); - } - - /** - * The JSON string representation of the document. It should conform to the - * registered [Schema][google.cloud.discoveryengine.v1.Schema] or an - * `INVALID_ARGUMENT` error is thrown. - * - * Generated from protobuf field string json_data = 5; - * @param string $var - * @return $this - */ - public function setJsonData($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Immutable. The full resource name of the document. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The full resource name of the document. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * 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; - } - - /** - * Immutable. The identifier of the document. - * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. - * - * Generated from protobuf field string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Immutable. The identifier of the document. - * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. - * - * Generated from protobuf field string id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * The identifier of the schema located in the same data store. - * - * Generated from protobuf field string schema_id = 3; - * @return string - */ - public function getSchemaId() - { - return $this->schema_id; - } - - /** - * The identifier of the schema located in the same data store. - * - * Generated from protobuf field string schema_id = 3; - * @param string $var - * @return $this - */ - public function setSchemaId($var) - { - GPBUtil::checkString($var, True); - $this->schema_id = $var; - - return $this; - } - - /** - * The unstructured data linked to this document. Content must be set if this - * document is under a - * `CONTENT_REQUIRED` data store. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document.Content content = 10; - * @return \Google\Cloud\DiscoveryEngine\V1\Document\Content|null - */ - public function getContent() - { - return $this->content; - } - - public function hasContent() - { - return isset($this->content); - } - - public function clearContent() - { - unset($this->content); - } - - /** - * The unstructured data linked to this document. Content must be set if this - * document is under a - * `CONTENT_REQUIRED` data store. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document.Content content = 10; - * @param \Google\Cloud\DiscoveryEngine\V1\Document\Content $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Document\Content::class); - $this->content = $var; - - return $this; - } - - /** - * The identifier of the parent document. Currently supports at most two level - * document hierarchy. - * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. - * - * Generated from protobuf field string parent_document_id = 7; - * @return string - */ - public function getParentDocumentId() - { - return $this->parent_document_id; - } - - /** - * The identifier of the parent document. Currently supports at most two level - * document hierarchy. - * Id should conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * standard with a length limit of 63 characters. - * - * Generated from protobuf field string parent_document_id = 7; - * @param string $var - * @return $this - */ - public function setParentDocumentId($var) - { - GPBUtil::checkString($var, True); - $this->parent_document_id = $var; - - return $this; - } - - /** - * Output only. This field is OUTPUT_ONLY. - * It contains derived data that are not in the original input document. - * - * Generated from protobuf field .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Struct|null - */ - public function getDerivedStructData() - { - return $this->derived_struct_data; - } - - public function hasDerivedStructData() - { - return isset($this->derived_struct_data); - } - - public function clearDerivedStructData() - { - unset($this->derived_struct_data); - } - - /** - * Output only. This field is OUTPUT_ONLY. - * It contains derived data that are not in the original input document. - * - * Generated from protobuf field .google.protobuf.Struct derived_struct_data = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setDerivedStructData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->derived_struct_data = $var; - - return $this; - } - - /** - * Output only. The last time the document was indexed. If this field is set, - * the document could be returned in search results. - * This field is OUTPUT_ONLY. If this field is not populated, it means the - * document has never been indexed. - * - * Generated from protobuf field .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getIndexTime() - { - return $this->index_time; - } - - public function hasIndexTime() - { - return isset($this->index_time); - } - - public function clearIndexTime() - { - unset($this->index_time); - } - - /** - * Output only. The last time the document was indexed. If this field is set, - * the document could be returned in search results. - * This field is OUTPUT_ONLY. If this field is not populated, it means the - * document has never been indexed. - * - * Generated from protobuf field .google.protobuf.Timestamp index_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setIndexTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->index_time = $var; - - return $this; - } - - /** - * Output only. The index status of the document. - * * If document is indexed successfully, the index_time field is populated. - * * Otherwise, if document is not indexed due to errors, the error_samples - * field is populated. - * * Otherwise, index_status is unset. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document.IndexStatus index_status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\DiscoveryEngine\V1\Document\IndexStatus|null - */ - public function getIndexStatus() - { - return $this->index_status; - } - - public function hasIndexStatus() - { - return isset($this->index_status); - } - - public function clearIndexStatus() - { - unset($this->index_status); - } - - /** - * Output only. The index status of the document. - * * If document is indexed successfully, the index_time field is populated. - * * Otherwise, if document is not indexed due to errors, the error_samples - * field is populated. - * * Otherwise, index_status is unset. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document.IndexStatus index_status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\DiscoveryEngine\V1\Document\IndexStatus $var - * @return $this - */ - public function setIndexStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Document\IndexStatus::class); - $this->index_status = $var; - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document/Content.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document/Content.php deleted file mode 100644 index f9ab62ba86ed..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document/Content.php +++ /dev/null @@ -1,193 +0,0 @@ -google.cloud.discoveryengine.v1.Document.Content - */ -class Content extends \Google\Protobuf\Internal\Message -{ - /** - * The MIME type of the content. Supported types: - * * `application/pdf` (PDF, only native PDFs are supported for now) - * * `text/html` (HTML) - * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) - * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - * * `text/plain` (TXT) - * See https://www.iana.org/assignments/media-types/media-types.xhtml. - * - * Generated from protobuf field string mime_type = 1; - */ - protected $mime_type = ''; - protected $content; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $raw_bytes - * The content represented as a stream of bytes. The maximum length is - * 1,000,000 bytes (1 MB / ~0.95 MiB). - * Note: As with all `bytes` fields, this field is represented as pure - * binary in Protocol Buffers and base64-encoded string in JSON. For - * example, `abc123!?$*&()'-=@~` should be represented as - * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See - * https://developers.google.com/protocol-buffers/docs/proto3#json. - * @type string $uri - * The URI of the content. Only Cloud Storage URIs (e.g. - * `gs://bucket-name/path/to/file`) are supported. The maximum file size - * is 2.5 MB for text-based formats, 200 MB for other formats. - * @type string $mime_type - * The MIME type of the content. Supported types: - * * `application/pdf` (PDF, only native PDFs are supported for now) - * * `text/html` (HTML) - * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) - * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - * * `text/plain` (TXT) - * See https://www.iana.org/assignments/media-types/media-types.xhtml. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * The content represented as a stream of bytes. The maximum length is - * 1,000,000 bytes (1 MB / ~0.95 MiB). - * Note: As with all `bytes` fields, this field is represented as pure - * binary in Protocol Buffers and base64-encoded string in JSON. For - * example, `abc123!?$*&()'-=@~` should be represented as - * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See - * https://developers.google.com/protocol-buffers/docs/proto3#json. - * - * Generated from protobuf field bytes raw_bytes = 2; - * @return string - */ - public function getRawBytes() - { - return $this->readOneof(2); - } - - public function hasRawBytes() - { - return $this->hasOneof(2); - } - - /** - * The content represented as a stream of bytes. The maximum length is - * 1,000,000 bytes (1 MB / ~0.95 MiB). - * Note: As with all `bytes` fields, this field is represented as pure - * binary in Protocol Buffers and base64-encoded string in JSON. For - * example, `abc123!?$*&()'-=@~` should be represented as - * `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See - * https://developers.google.com/protocol-buffers/docs/proto3#json. - * - * Generated from protobuf field bytes raw_bytes = 2; - * @param string $var - * @return $this - */ - public function setRawBytes($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The URI of the content. Only Cloud Storage URIs (e.g. - * `gs://bucket-name/path/to/file`) are supported. The maximum file size - * is 2.5 MB for text-based formats, 200 MB for other formats. - * - * Generated from protobuf field string uri = 3; - * @return string - */ - public function getUri() - { - return $this->readOneof(3); - } - - public function hasUri() - { - return $this->hasOneof(3); - } - - /** - * The URI of the content. Only Cloud Storage URIs (e.g. - * `gs://bucket-name/path/to/file`) are supported. The maximum file size - * is 2.5 MB for text-based formats, 200 MB for other formats. - * - * Generated from protobuf field string uri = 3; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The MIME type of the content. Supported types: - * * `application/pdf` (PDF, only native PDFs are supported for now) - * * `text/html` (HTML) - * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) - * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - * * `text/plain` (TXT) - * See https://www.iana.org/assignments/media-types/media-types.xhtml. - * - * Generated from protobuf field string mime_type = 1; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * The MIME type of the content. Supported types: - * * `application/pdf` (PDF, only native PDFs are supported for now) - * * `text/html` (HTML) - * * `application/vnd.openxmlformats-officedocument.wordprocessingml.document` (DOCX) - * * `application/vnd.openxmlformats-officedocument.presentationml.presentation` (PPTX) - * * `text/plain` (TXT) - * See https://www.iana.org/assignments/media-types/media-types.xhtml. - * - * Generated from protobuf field string mime_type = 1; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getContent() - { - return $this->whichOneof("content"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Content::class, \Google\Cloud\DiscoveryEngine\V1\Document_Content::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document/IndexStatus.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document/IndexStatus.php deleted file mode 100644 index 52420a708d3c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Document/IndexStatus.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.discoveryengine.v1.Document.IndexStatus - */ -class IndexStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The time when the document was indexed. - * If this field is populated, it means the document has been indexed. - * - * Generated from protobuf field .google.protobuf.Timestamp index_time = 1; - */ - protected $index_time = null; - /** - * A sample of errors encountered while indexing the document. - * If this field is populated, the document is not indexed due to errors. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 2; - */ - private $error_samples; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $index_time - * The time when the document was indexed. - * If this field is populated, it means the document has been indexed. - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $error_samples - * A sample of errors encountered while indexing the document. - * If this field is populated, the document is not indexed due to errors. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * The time when the document was indexed. - * If this field is populated, it means the document has been indexed. - * - * Generated from protobuf field .google.protobuf.Timestamp index_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getIndexTime() - { - return $this->index_time; - } - - public function hasIndexTime() - { - return isset($this->index_time); - } - - public function clearIndexTime() - { - unset($this->index_time); - } - - /** - * The time when the document was indexed. - * If this field is populated, it means the document has been indexed. - * - * Generated from protobuf field .google.protobuf.Timestamp index_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setIndexTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->index_time = $var; - - return $this; - } - - /** - * A sample of errors encountered while indexing the document. - * If this field is populated, the document is not indexed due to errors. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorSamples() - { - return $this->error_samples; - } - - /** - * A sample of errors encountered while indexing the document. - * If this field is populated, the document is not indexed due to errors. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 2; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorSamples($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->error_samples = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IndexStatus::class, \Google\Cloud\DiscoveryEngine\V1\Document_IndexStatus::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentInfo.php deleted file mode 100644 index 7fc6f5f76793..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentInfo.php +++ /dev/null @@ -1,290 +0,0 @@ -google.cloud.discoveryengine.v1.DocumentInfo - */ -class DocumentInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Quantity of the Document associated with the user event. Defaults to 1. - * For example, this field is 2 if two quantities of the same Document - * are involved in a `add-to-cart` event. - * Required for events of the following event types: - * * `add-to-cart` - * * `purchase` - * - * Generated from protobuf field optional int32 quantity = 3; - */ - protected $quantity = null; - /** - * The promotion IDs associated with this Document. - * Currently, this field is restricted to at most one ID. - * - * Generated from protobuf field repeated string promotion_ids = 4; - */ - private $promotion_ids; - /** - * Output only. Whether the referenced Document can be found in the data - * store. - * - * Generated from protobuf field bool joined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $joined = false; - protected $document_descriptor; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The [Document][google.cloud.discoveryengine.v1.Document] resource ID. - * @type string $name - * The [Document][google.cloud.discoveryengine.v1.Document] resource full - * name, of the form: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}` - * @type string $uri - * The [Document][google.cloud.discoveryengine.v1.Document] URI - only - * allowed for website data stores. - * @type int $quantity - * Quantity of the Document associated with the user event. Defaults to 1. - * For example, this field is 2 if two quantities of the same Document - * are involved in a `add-to-cart` event. - * Required for events of the following event types: - * * `add-to-cart` - * * `purchase` - * @type array|\Google\Protobuf\Internal\RepeatedField $promotion_ids - * The promotion IDs associated with this Document. - * Currently, this field is restricted to at most one ID. - * @type bool $joined - * Output only. Whether the referenced Document can be found in the data - * store. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\UserEvent::initOnce(); - parent::__construct($data); - } - - /** - * The [Document][google.cloud.discoveryengine.v1.Document] resource ID. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->readOneof(1); - } - - public function hasId() - { - return $this->hasOneof(1); - } - - /** - * The [Document][google.cloud.discoveryengine.v1.Document] resource ID. - * - * Generated from protobuf field string id = 1; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The [Document][google.cloud.discoveryengine.v1.Document] resource full - * name, of the form: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}` - * - * Generated from protobuf field string name = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->readOneof(2); - } - - public function hasName() - { - return $this->hasOneof(2); - } - - /** - * The [Document][google.cloud.discoveryengine.v1.Document] resource full - * name, of the form: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/branches/{branch_id}/documents/{document_id}` - * - * Generated from protobuf field string name = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The [Document][google.cloud.discoveryengine.v1.Document] URI - only - * allowed for website data stores. - * - * Generated from protobuf field string uri = 6; - * @return string - */ - public function getUri() - { - return $this->readOneof(6); - } - - public function hasUri() - { - return $this->hasOneof(6); - } - - /** - * The [Document][google.cloud.discoveryengine.v1.Document] URI - only - * allowed for website data stores. - * - * Generated from protobuf field string uri = 6; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Quantity of the Document associated with the user event. Defaults to 1. - * For example, this field is 2 if two quantities of the same Document - * are involved in a `add-to-cart` event. - * Required for events of the following event types: - * * `add-to-cart` - * * `purchase` - * - * Generated from protobuf field optional int32 quantity = 3; - * @return int - */ - public function getQuantity() - { - return isset($this->quantity) ? $this->quantity : 0; - } - - public function hasQuantity() - { - return isset($this->quantity); - } - - public function clearQuantity() - { - unset($this->quantity); - } - - /** - * Quantity of the Document associated with the user event. Defaults to 1. - * For example, this field is 2 if two quantities of the same Document - * are involved in a `add-to-cart` event. - * Required for events of the following event types: - * * `add-to-cart` - * * `purchase` - * - * Generated from protobuf field optional int32 quantity = 3; - * @param int $var - * @return $this - */ - public function setQuantity($var) - { - GPBUtil::checkInt32($var); - $this->quantity = $var; - - return $this; - } - - /** - * The promotion IDs associated with this Document. - * Currently, this field is restricted to at most one ID. - * - * Generated from protobuf field repeated string promotion_ids = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPromotionIds() - { - return $this->promotion_ids; - } - - /** - * The promotion IDs associated with this Document. - * Currently, this field is restricted to at most one ID. - * - * Generated from protobuf field repeated string promotion_ids = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPromotionIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->promotion_ids = $arr; - - return $this; - } - - /** - * Output only. Whether the referenced Document can be found in the data - * store. - * - * Generated from protobuf field bool joined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getJoined() - { - return $this->joined; - } - - /** - * Output only. Whether the referenced Document can be found in the data - * store. - * - * Generated from protobuf field bool joined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setJoined($var) - { - GPBUtil::checkBool($var); - $this->joined = $var; - - return $this; - } - - /** - * @return string - */ - public function getDocumentDescriptor() - { - return $this->whichOneof("document_descriptor"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig.php deleted file mode 100644 index 1fa538c15c1d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig.php +++ /dev/null @@ -1,266 +0,0 @@ -google.cloud.discoveryengine.v1.DocumentProcessingConfig - */ -class DocumentProcessingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The full resource name of the Document Processing Config. - * Format: - * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Whether chunking mode is enabled. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; - */ - protected $chunking_config = null; - /** - * Configurations for default Document parser. - * If not specified, we will configure it as default DigitalParsingConfig, and - * the default parsing config will be applied to all file types for Document - * parsing. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; - */ - protected $default_parsing_config = null; - /** - * Map from file type to override the default parsing configuration based on - * the file type. Supported keys: - * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr - * parsing or layout parsing is supported. - * * `html`: Override parsing config for HTML files, only digital parsing and - * layout parsing are supported. - * * `docx`: Override parsing config for DOCX files, only digital parsing and - * layout parsing are supported. - * * `pptx`: Override parsing config for PPTX files, only digital parsing and - * layout parsing are supported. - * * `xlsm`: Override parsing config for XLSM files, only digital parsing and - * layout parsing are supported. - * * `xlsx`: Override parsing config for XLSX files, only digital parsing and - * layout parsing are supported. - * - * Generated from protobuf field map parsing_config_overrides = 5; - */ - private $parsing_config_overrides; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The full resource name of the Document Processing Config. - * Format: - * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. - * @type \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ChunkingConfig $chunking_config - * Whether chunking mode is enabled. - * @type \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig $default_parsing_config - * Configurations for default Document parser. - * If not specified, we will configure it as default DigitalParsingConfig, and - * the default parsing config will be applied to all file types for Document - * parsing. - * @type array|\Google\Protobuf\Internal\MapField $parsing_config_overrides - * Map from file type to override the default parsing configuration based on - * the file type. Supported keys: - * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr - * parsing or layout parsing is supported. - * * `html`: Override parsing config for HTML files, only digital parsing and - * layout parsing are supported. - * * `docx`: Override parsing config for DOCX files, only digital parsing and - * layout parsing are supported. - * * `pptx`: Override parsing config for PPTX files, only digital parsing and - * layout parsing are supported. - * * `xlsm`: Override parsing config for XLSM files, only digital parsing and - * layout parsing are supported. - * * `xlsx`: Override parsing config for XLSX files, only digital parsing and - * layout parsing are supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentProcessingConfig::initOnce(); - parent::__construct($data); - } - - /** - * The full resource name of the Document Processing Config. - * Format: - * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The full resource name of the Document Processing Config. - * Format: - * `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Whether chunking mode is enabled. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ChunkingConfig|null - */ - public function getChunkingConfig() - { - return $this->chunking_config; - } - - public function hasChunkingConfig() - { - return isset($this->chunking_config); - } - - public function clearChunkingConfig() - { - unset($this->chunking_config); - } - - /** - * Whether chunking mode is enabled. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ChunkingConfig chunking_config = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ChunkingConfig $var - * @return $this - */ - public function setChunkingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ChunkingConfig::class); - $this->chunking_config = $var; - - return $this; - } - - /** - * Configurations for default Document parser. - * If not specified, we will configure it as default DigitalParsingConfig, and - * the default parsing config will be applied to all file types for Document - * parsing. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig|null - */ - public function getDefaultParsingConfig() - { - return $this->default_parsing_config; - } - - public function hasDefaultParsingConfig() - { - return isset($this->default_parsing_config); - } - - public function clearDefaultParsingConfig() - { - unset($this->default_parsing_config); - } - - /** - * Configurations for default Document parser. - * If not specified, we will configure it as default DigitalParsingConfig, and - * the default parsing config will be applied to all file types for Document - * parsing. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig default_parsing_config = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig $var - * @return $this - */ - public function setDefaultParsingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig::class); - $this->default_parsing_config = $var; - - return $this; - } - - /** - * Map from file type to override the default parsing configuration based on - * the file type. Supported keys: - * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr - * parsing or layout parsing is supported. - * * `html`: Override parsing config for HTML files, only digital parsing and - * layout parsing are supported. - * * `docx`: Override parsing config for DOCX files, only digital parsing and - * layout parsing are supported. - * * `pptx`: Override parsing config for PPTX files, only digital parsing and - * layout parsing are supported. - * * `xlsm`: Override parsing config for XLSM files, only digital parsing and - * layout parsing are supported. - * * `xlsx`: Override parsing config for XLSX files, only digital parsing and - * layout parsing are supported. - * - * Generated from protobuf field map parsing_config_overrides = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParsingConfigOverrides() - { - return $this->parsing_config_overrides; - } - - /** - * Map from file type to override the default parsing configuration based on - * the file type. Supported keys: - * * `pdf`: Override parsing config for PDF files, either digital parsing, ocr - * parsing or layout parsing is supported. - * * `html`: Override parsing config for HTML files, only digital parsing and - * layout parsing are supported. - * * `docx`: Override parsing config for DOCX files, only digital parsing and - * layout parsing are supported. - * * `pptx`: Override parsing config for PPTX files, only digital parsing and - * layout parsing are supported. - * * `xlsm`: Override parsing config for XLSM files, only digital parsing and - * layout parsing are supported. - * * `xlsx`: Override parsing config for XLSX files, only digital parsing and - * layout parsing are supported. - * - * Generated from protobuf field map parsing_config_overrides = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParsingConfigOverrides($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig::class); - $this->parsing_config_overrides = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ChunkingConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ChunkingConfig.php deleted file mode 100644 index e56fe15280a2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ChunkingConfig.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.discoveryengine.v1.DocumentProcessingConfig.ChunkingConfig - */ -class ChunkingConfig extends \Google\Protobuf\Internal\Message -{ - protected $chunk_mode; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ChunkingConfig\LayoutBasedChunkingConfig $layout_based_chunking_config - * Configuration for the layout based chunking. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentProcessingConfig::initOnce(); - parent::__construct($data); - } - - /** - * Configuration for the layout based chunking. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ChunkingConfig\LayoutBasedChunkingConfig|null - */ - public function getLayoutBasedChunkingConfig() - { - return $this->readOneof(1); - } - - public function hasLayoutBasedChunkingConfig() - { - return $this->hasOneof(1); - } - - /** - * Configuration for the layout based chunking. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig layout_based_chunking_config = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ChunkingConfig\LayoutBasedChunkingConfig $var - * @return $this - */ - public function setLayoutBasedChunkingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ChunkingConfig\LayoutBasedChunkingConfig::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getChunkMode() - { - return $this->whichOneof("chunk_mode"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkingConfig::class, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig_ChunkingConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ChunkingConfig/LayoutBasedChunkingConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ChunkingConfig/LayoutBasedChunkingConfig.php deleted file mode 100644 index 049f049f68be..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ChunkingConfig/LayoutBasedChunkingConfig.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.discoveryengine.v1.DocumentProcessingConfig.ChunkingConfig.LayoutBasedChunkingConfig - */ -class LayoutBasedChunkingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The token size limit for each chunk. - * Supported values: 100-500 (inclusive). - * Default value: 500. - * - * Generated from protobuf field int32 chunk_size = 1; - */ - protected $chunk_size = 0; - /** - * Whether to include appending different levels of headings to chunks - * from the middle of the document to prevent context loss. - * Default value: False. - * - * Generated from protobuf field bool include_ancestor_headings = 2; - */ - protected $include_ancestor_headings = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $chunk_size - * The token size limit for each chunk. - * Supported values: 100-500 (inclusive). - * Default value: 500. - * @type bool $include_ancestor_headings - * Whether to include appending different levels of headings to chunks - * from the middle of the document to prevent context loss. - * Default value: False. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentProcessingConfig::initOnce(); - parent::__construct($data); - } - - /** - * The token size limit for each chunk. - * Supported values: 100-500 (inclusive). - * Default value: 500. - * - * Generated from protobuf field int32 chunk_size = 1; - * @return int - */ - public function getChunkSize() - { - return $this->chunk_size; - } - - /** - * The token size limit for each chunk. - * Supported values: 100-500 (inclusive). - * Default value: 500. - * - * Generated from protobuf field int32 chunk_size = 1; - * @param int $var - * @return $this - */ - public function setChunkSize($var) - { - GPBUtil::checkInt32($var); - $this->chunk_size = $var; - - return $this; - } - - /** - * Whether to include appending different levels of headings to chunks - * from the middle of the document to prevent context loss. - * Default value: False. - * - * Generated from protobuf field bool include_ancestor_headings = 2; - * @return bool - */ - public function getIncludeAncestorHeadings() - { - return $this->include_ancestor_headings; - } - - /** - * Whether to include appending different levels of headings to chunks - * from the middle of the document to prevent context loss. - * Default value: False. - * - * Generated from protobuf field bool include_ancestor_headings = 2; - * @param bool $var - * @return $this - */ - public function setIncludeAncestorHeadings($var) - { - GPBUtil::checkBool($var); - $this->include_ancestor_headings = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutBasedChunkingConfig::class, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig_ChunkingConfig_LayoutBasedChunkingConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig.php deleted file mode 100644 index e93035c565aa..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig - */ -class ParsingConfig extends \Google\Protobuf\Internal\Message -{ - protected $type_dedicated_config; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\DigitalParsingConfig $digital_parsing_config - * Configurations applied to digital parser. - * @type \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\OcrParsingConfig $ocr_parsing_config - * Configurations applied to OCR parser. Currently it only applies to - * PDFs. - * @type \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\LayoutParsingConfig $layout_parsing_config - * Configurations applied to layout parser. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentProcessingConfig::initOnce(); - parent::__construct($data); - } - - /** - * Configurations applied to digital parser. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\DigitalParsingConfig|null - */ - public function getDigitalParsingConfig() - { - return $this->readOneof(1); - } - - public function hasDigitalParsingConfig() - { - return $this->hasOneof(1); - } - - /** - * Configurations applied to digital parser. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig digital_parsing_config = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\DigitalParsingConfig $var - * @return $this - */ - public function setDigitalParsingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\DigitalParsingConfig::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Configurations applied to OCR parser. Currently it only applies to - * PDFs. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\OcrParsingConfig|null - */ - public function getOcrParsingConfig() - { - return $this->readOneof(2); - } - - public function hasOcrParsingConfig() - { - return $this->hasOneof(2); - } - - /** - * Configurations applied to OCR parser. Currently it only applies to - * PDFs. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig ocr_parsing_config = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\OcrParsingConfig $var - * @return $this - */ - public function setOcrParsingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\OcrParsingConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Configurations applied to layout parser. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\LayoutParsingConfig|null - */ - public function getLayoutParsingConfig() - { - return $this->readOneof(3); - } - - public function hasLayoutParsingConfig() - { - return $this->hasOneof(3); - } - - /** - * Configurations applied to layout parser. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig layout_parsing_config = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\LayoutParsingConfig $var - * @return $this - */ - public function setLayoutParsingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig\ParsingConfig\LayoutParsingConfig::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getTypeDedicatedConfig() - { - return $this->whichOneof("type_dedicated_config"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ParsingConfig::class, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig_ParsingConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/DigitalParsingConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/DigitalParsingConfig.php deleted file mode 100644 index d84348b9a6de..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/DigitalParsingConfig.php +++ /dev/null @@ -1,36 +0,0 @@ -google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.DigitalParsingConfig - */ -class DigitalParsingConfig extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentProcessingConfig::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DigitalParsingConfig::class, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig_ParsingConfig_DigitalParsingConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/LayoutParsingConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/LayoutParsingConfig.php deleted file mode 100644 index c246eb2e0956..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/LayoutParsingConfig.php +++ /dev/null @@ -1,36 +0,0 @@ -google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.LayoutParsingConfig - */ -class LayoutParsingConfig extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentProcessingConfig::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutParsingConfig::class, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig_ParsingConfig_LayoutParsingConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/OcrParsingConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/OcrParsingConfig.php deleted file mode 100644 index 941f608186e3..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/DocumentProcessingConfig/ParsingConfig/OcrParsingConfig.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.discoveryengine.v1.DocumentProcessingConfig.ParsingConfig.OcrParsingConfig - */ -class OcrParsingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * [DEPRECATED] This field is deprecated. To use the additional enhanced - * document elements processing, please switch to `layout_parsing_config`. - * - * Generated from protobuf field repeated string enhanced_document_elements = 1 [deprecated = true]; - * @deprecated - */ - private $enhanced_document_elements; - /** - * If true, will use native text instead of OCR text on pages containing - * native text. - * - * Generated from protobuf field bool use_native_text = 2; - */ - protected $use_native_text = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $enhanced_document_elements - * [DEPRECATED] This field is deprecated. To use the additional enhanced - * document elements processing, please switch to `layout_parsing_config`. - * @type bool $use_native_text - * If true, will use native text instead of OCR text on pages containing - * native text. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentProcessingConfig::initOnce(); - parent::__construct($data); - } - - /** - * [DEPRECATED] This field is deprecated. To use the additional enhanced - * document elements processing, please switch to `layout_parsing_config`. - * - * Generated from protobuf field repeated string enhanced_document_elements = 1 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getEnhancedDocumentElements() - { - @trigger_error('enhanced_document_elements is deprecated.', E_USER_DEPRECATED); - return $this->enhanced_document_elements; - } - - /** - * [DEPRECATED] This field is deprecated. To use the additional enhanced - * document elements processing, please switch to `layout_parsing_config`. - * - * Generated from protobuf field repeated string enhanced_document_elements = 1 [deprecated = true]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setEnhancedDocumentElements($var) - { - @trigger_error('enhanced_document_elements is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->enhanced_document_elements = $arr; - - return $this; - } - - /** - * If true, will use native text instead of OCR text on pages containing - * native text. - * - * Generated from protobuf field bool use_native_text = 2; - * @return bool - */ - public function getUseNativeText() - { - return $this->use_native_text; - } - - /** - * If true, will use native text instead of OCR text on pages containing - * native text. - * - * Generated from protobuf field bool use_native_text = 2; - * @param bool $var - * @return $this - */ - public function setUseNativeText($var) - { - GPBUtil::checkBool($var); - $this->use_native_text = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OcrParsingConfig::class, \Google\Cloud\DiscoveryEngine\V1\DocumentProcessingConfig_ParsingConfig_OcrParsingConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchMetadata.php deleted file mode 100644 index e5d8ff52f3fb..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchMetadata - */ -class EnableAdvancedSiteSearchMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchRequest.php deleted file mode 100644 index 06bfbe5c8e80..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchRequest - */ -class EnableAdvancedSiteSearchRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $site_search_engine = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $site_search_engine - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSearchEngine`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getSiteSearchEngine() - { - return $this->site_search_engine; - } - - /** - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSiteSearchEngine($var) - { - GPBUtil::checkString($var, True); - $this->site_search_engine = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchResponse.php deleted file mode 100644 index 331ea11a3eb4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/EnableAdvancedSiteSearchResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -google.cloud.discoveryengine.v1.EnableAdvancedSiteSearchResponse - */ -class EnableAdvancedSiteSearchResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine.php deleted file mode 100644 index ed9ff51d0f6c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine.php +++ /dev/null @@ -1,612 +0,0 @@ -google.cloud.discoveryengine.v1.Engine - */ -class Engine extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The fully qualified resource name of the engine. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` - * engine should be 1-63 characters, and valid characters are - * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * Required. The display name of the engine. Should be human readable. UTF-8 - * encoded string with limit of 1024 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $display_name = ''; - /** - * Output only. Timestamp the Recommendation Engine was created at. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. Timestamp the Recommendation Engine was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * The data stores associated with this engine. - * For - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH] - * and - * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION] - * type of engines, they can only associate with at most one data store. - * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT], - * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the - * same [Collection][google.cloud.discoveryengine.v1.Collection] can be - * associated here. - * Note that when used in - * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest], - * one DataStore id must be provided as the system will use it for necessary - * initializations. - * - * Generated from protobuf field repeated string data_store_ids = 5; - */ - private $data_store_ids; - /** - * Required. The solutions of the engine. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $solution_type = 0; - /** - * The industry vertical that the engine registers. - * The restriction of the Engine industry vertical is based on - * [DataStore][google.cloud.discoveryengine.v1.DataStore]: If unspecified, - * default to `GENERIC`. Vertical on Engine has to match vertical of the - * DataStore linked to the engine. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16; - */ - protected $industry_vertical = 0; - /** - * Common config spec that specifies the metadata of the engine. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; - */ - protected $common_config = null; - /** - * Optional. Whether to disable analytics for searches performed on this - * engine. - * - * Generated from protobuf field bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $disable_analytics = false; - protected $engine_config; - protected $engine_metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineConfig $chat_engine_config - * Configurations for the Chat Engine. Only applicable if - * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT]. - * @type \Google\Cloud\DiscoveryEngine\V1\Engine\SearchEngineConfig $search_engine_config - * Configurations for the Search Engine. Only applicable if - * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * @type \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineMetadata $chat_engine_metadata - * Output only. Additional information of the Chat Engine. Only applicable - * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT]. - * @type string $name - * Immutable. The fully qualified resource name of the engine. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` - * engine should be 1-63 characters, and valid characters are - * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. - * @type string $display_name - * Required. The display name of the engine. Should be human readable. UTF-8 - * encoded string with limit of 1024 characters. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. Timestamp the Recommendation Engine was created at. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. Timestamp the Recommendation Engine was last updated. - * @type array|\Google\Protobuf\Internal\RepeatedField $data_store_ids - * The data stores associated with this engine. - * For - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH] - * and - * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION] - * type of engines, they can only associate with at most one data store. - * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT], - * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the - * same [Collection][google.cloud.discoveryengine.v1.Collection] can be - * associated here. - * Note that when used in - * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest], - * one DataStore id must be provided as the system will use it for necessary - * initializations. - * @type int $solution_type - * Required. The solutions of the engine. - * @type int $industry_vertical - * The industry vertical that the engine registers. - * The restriction of the Engine industry vertical is based on - * [DataStore][google.cloud.discoveryengine.v1.DataStore]: If unspecified, - * default to `GENERIC`. Vertical on Engine has to match vertical of the - * DataStore linked to the engine. - * @type \Google\Cloud\DiscoveryEngine\V1\Engine\CommonConfig $common_config - * Common config spec that specifies the metadata of the engine. - * @type bool $disable_analytics - * Optional. Whether to disable analytics for searches performed on this - * engine. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Engine::initOnce(); - parent::__construct($data); - } - - /** - * Configurations for the Chat Engine. Only applicable if - * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; - * @return \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineConfig|null - */ - public function getChatEngineConfig() - { - return $this->readOneof(11); - } - - public function hasChatEngineConfig() - { - return $this->hasOneof(11); - } - - /** - * Configurations for the Chat Engine. Only applicable if - * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig chat_engine_config = 11; - * @param \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineConfig $var - * @return $this - */ - public function setChatEngineConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineConfig::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Configurations for the Search Engine. Only applicable if - * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; - * @return \Google\Cloud\DiscoveryEngine\V1\Engine\SearchEngineConfig|null - */ - public function getSearchEngineConfig() - { - return $this->readOneof(13); - } - - public function hasSearchEngineConfig() - { - return $this->hasOneof(13); - } - - /** - * Configurations for the Search Engine. Only applicable if - * [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.SearchEngineConfig search_engine_config = 13; - * @param \Google\Cloud\DiscoveryEngine\V1\Engine\SearchEngineConfig $var - * @return $this - */ - public function setSearchEngineConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Engine\SearchEngineConfig::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * Output only. Additional information of the Chat Engine. Only applicable - * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineMetadata|null - */ - public function getChatEngineMetadata() - { - return $this->readOneof(12); - } - - public function hasChatEngineMetadata() - { - return $this->hasOneof(12); - } - - /** - * Output only. Additional information of the Chat Engine. Only applicable - * if [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata chat_engine_metadata = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineMetadata $var - * @return $this - */ - public function setChatEngineMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineMetadata::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Immutable. The fully qualified resource name of the engine. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` - * engine should be 1-63 characters, and valid characters are - * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The fully qualified resource name of the engine. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` - * engine should be 1-63 characters, and valid characters are - * /[a-z0-9][a-z0-9-_]*/. Otherwise, an INVALID_ARGUMENT error is returned. - * - * 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 display name of the engine. Should be human readable. UTF-8 - * encoded string with limit of 1024 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Required. The display name of the engine. Should be human readable. UTF-8 - * encoded string with limit of 1024 characters. - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Timestamp the Recommendation Engine was created at. - * - * 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. Timestamp the Recommendation Engine was created at. - * - * 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. Timestamp the Recommendation Engine was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. Timestamp the Recommendation Engine was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The data stores associated with this engine. - * For - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH] - * and - * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION] - * type of engines, they can only associate with at most one data store. - * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT], - * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the - * same [Collection][google.cloud.discoveryengine.v1.Collection] can be - * associated here. - * Note that when used in - * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest], - * one DataStore id must be provided as the system will use it for necessary - * initializations. - * - * Generated from protobuf field repeated string data_store_ids = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataStoreIds() - { - return $this->data_store_ids; - } - - /** - * The data stores associated with this engine. - * For - * [SOLUTION_TYPE_SEARCH][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_SEARCH] - * and - * [SOLUTION_TYPE_RECOMMENDATION][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_RECOMMENDATION] - * type of engines, they can only associate with at most one data store. - * If [solution_type][google.cloud.discoveryengine.v1.Engine.solution_type] is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT], - * multiple [DataStore][google.cloud.discoveryengine.v1.DataStore]s in the - * same [Collection][google.cloud.discoveryengine.v1.Collection] can be - * associated here. - * Note that when used in - * [CreateEngineRequest][google.cloud.discoveryengine.v1.CreateEngineRequest], - * one DataStore id must be provided as the system will use it for necessary - * initializations. - * - * Generated from protobuf field repeated string data_store_ids = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataStoreIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->data_store_ids = $arr; - - return $this; - } - - /** - * Required. The solutions of the engine. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getSolutionType() - { - return $this->solution_type; - } - - /** - * Required. The solutions of the engine. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SolutionType solution_type = 6 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setSolutionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SolutionType::class); - $this->solution_type = $var; - - return $this; - } - - /** - * The industry vertical that the engine registers. - * The restriction of the Engine industry vertical is based on - * [DataStore][google.cloud.discoveryengine.v1.DataStore]: If unspecified, - * default to `GENERIC`. Vertical on Engine has to match vertical of the - * DataStore linked to the engine. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16; - * @return int - */ - public function getIndustryVertical() - { - return $this->industry_vertical; - } - - /** - * The industry vertical that the engine registers. - * The restriction of the Engine industry vertical is based on - * [DataStore][google.cloud.discoveryengine.v1.DataStore]: If unspecified, - * default to `GENERIC`. Vertical on Engine has to match vertical of the - * DataStore linked to the engine. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.IndustryVertical industry_vertical = 16; - * @param int $var - * @return $this - */ - public function setIndustryVertical($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\IndustryVertical::class); - $this->industry_vertical = $var; - - return $this; - } - - /** - * Common config spec that specifies the metadata of the engine. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; - * @return \Google\Cloud\DiscoveryEngine\V1\Engine\CommonConfig|null - */ - public function getCommonConfig() - { - return $this->common_config; - } - - public function hasCommonConfig() - { - return isset($this->common_config); - } - - public function clearCommonConfig() - { - unset($this->common_config); - } - - /** - * Common config spec that specifies the metadata of the engine. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.CommonConfig common_config = 15; - * @param \Google\Cloud\DiscoveryEngine\V1\Engine\CommonConfig $var - * @return $this - */ - public function setCommonConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Engine\CommonConfig::class); - $this->common_config = $var; - - return $this; - } - - /** - * Optional. Whether to disable analytics for searches performed on this - * engine. - * - * Generated from protobuf field bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getDisableAnalytics() - { - return $this->disable_analytics; - } - - /** - * Optional. Whether to disable analytics for searches performed on this - * engine. - * - * Generated from protobuf field bool disable_analytics = 26 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setDisableAnalytics($var) - { - GPBUtil::checkBool($var); - $this->disable_analytics = $var; - - return $this; - } - - /** - * @return string - */ - public function getEngineConfig() - { - return $this->whichOneof("engine_config"); - } - - /** - * @return string - */ - public function getEngineMetadata() - { - return $this->whichOneof("engine_metadata"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineConfig.php deleted file mode 100644 index 44d85efbc1c0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineConfig.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.discoveryengine.v1.Engine.ChatEngineConfig - */ -class ChatEngineConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The configurationt generate the Dialogflow agent that is associated to - * this Engine. - * Note that these configurations are one-time consumed by - * and passed to Dialogflow service. It means they cannot be retrieved using - * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine] - * or - * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines] - * API after engine creation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - */ - protected $agent_creation_config = null; - /** - * The resource name of an exist Dialogflow agent to link to this Chat - * Engine. Customers can either provide `agent_creation_config` to create - * agent or provide an agent name that links the agent with the Chat engine. - * Format: `projects//locations//agents/`. - * Note that the `dialogflow_agent_to_link` are one-time consumed by and - * passed to Dialogflow service. It means they cannot be retrieved using - * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine] - * or - * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines] - * API after engine creation. Use - * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent] - * for actual agent association after Engine is created. - * - * Generated from protobuf field string dialogflow_agent_to_link = 2; - */ - protected $dialogflow_agent_to_link = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineConfig\AgentCreationConfig $agent_creation_config - * The configurationt generate the Dialogflow agent that is associated to - * this Engine. - * Note that these configurations are one-time consumed by - * and passed to Dialogflow service. It means they cannot be retrieved using - * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine] - * or - * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines] - * API after engine creation. - * @type string $dialogflow_agent_to_link - * The resource name of an exist Dialogflow agent to link to this Chat - * Engine. Customers can either provide `agent_creation_config` to create - * agent or provide an agent name that links the agent with the Chat engine. - * Format: `projects//locations//agents/`. - * Note that the `dialogflow_agent_to_link` are one-time consumed by and - * passed to Dialogflow service. It means they cannot be retrieved using - * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine] - * or - * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines] - * API after engine creation. Use - * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent] - * for actual agent association after Engine is created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Engine::initOnce(); - parent::__construct($data); - } - - /** - * The configurationt generate the Dialogflow agent that is associated to - * this Engine. - * Note that these configurations are one-time consumed by - * and passed to Dialogflow service. It means they cannot be retrieved using - * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine] - * or - * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines] - * API after engine creation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineConfig\AgentCreationConfig|null - */ - public function getAgentCreationConfig() - { - return $this->agent_creation_config; - } - - public function hasAgentCreationConfig() - { - return isset($this->agent_creation_config); - } - - public function clearAgentCreationConfig() - { - unset($this->agent_creation_config); - } - - /** - * The configurationt generate the Dialogflow agent that is associated to - * this Engine. - * Note that these configurations are one-time consumed by - * and passed to Dialogflow service. It means they cannot be retrieved using - * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine] - * or - * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines] - * API after engine creation. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig agent_creation_config = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineConfig\AgentCreationConfig $var - * @return $this - */ - public function setAgentCreationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Engine\ChatEngineConfig\AgentCreationConfig::class); - $this->agent_creation_config = $var; - - return $this; - } - - /** - * The resource name of an exist Dialogflow agent to link to this Chat - * Engine. Customers can either provide `agent_creation_config` to create - * agent or provide an agent name that links the agent with the Chat engine. - * Format: `projects//locations//agents/`. - * Note that the `dialogflow_agent_to_link` are one-time consumed by and - * passed to Dialogflow service. It means they cannot be retrieved using - * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine] - * or - * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines] - * API after engine creation. Use - * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent] - * for actual agent association after Engine is created. - * - * Generated from protobuf field string dialogflow_agent_to_link = 2; - * @return string - */ - public function getDialogflowAgentToLink() - { - return $this->dialogflow_agent_to_link; - } - - /** - * The resource name of an exist Dialogflow agent to link to this Chat - * Engine. Customers can either provide `agent_creation_config` to create - * agent or provide an agent name that links the agent with the Chat engine. - * Format: `projects//locations//agents/`. - * Note that the `dialogflow_agent_to_link` are one-time consumed by and - * passed to Dialogflow service. It means they cannot be retrieved using - * [EngineService.GetEngine][google.cloud.discoveryengine.v1.EngineService.GetEngine] - * or - * [EngineService.ListEngines][google.cloud.discoveryengine.v1.EngineService.ListEngines] - * API after engine creation. Use - * [ChatEngineMetadata.dialogflow_agent][google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata.dialogflow_agent] - * for actual agent association after Engine is created. - * - * Generated from protobuf field string dialogflow_agent_to_link = 2; - * @param string $var - * @return $this - */ - public function setDialogflowAgentToLink($var) - { - GPBUtil::checkString($var, True); - $this->dialogflow_agent_to_link = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChatEngineConfig::class, \Google\Cloud\DiscoveryEngine\V1\Engine_ChatEngineConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineConfig/AgentCreationConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineConfig/AgentCreationConfig.php deleted file mode 100644 index 64971b2635eb..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineConfig/AgentCreationConfig.php +++ /dev/null @@ -1,214 +0,0 @@ -google.cloud.discoveryengine.v1.Engine.ChatEngineConfig.AgentCreationConfig - */ -class AgentCreationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the company, organization or other entity that the agent - * represents. Used for knowledge connector LLM prompt and for knowledge - * search. - * - * Generated from protobuf field string business = 1; - */ - protected $business = ''; - /** - * Required. The default language of the agent as a language tag. - * See [Language - * Support](https://cloud.google.com/dialogflow/docs/reference/language) - * for a list of the currently supported language codes. - * - * Generated from protobuf field string default_language_code = 2; - */ - protected $default_language_code = ''; - /** - * Required. The time zone of the agent from the [time zone - * database](https://www.iana.org/time-zones), e.g., America/New_York, - * Europe/Paris. - * - * Generated from protobuf field string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $time_zone = ''; - /** - * Agent location for Agent creation, supported values: global/us/eu. - * If not provided, us Engine will create Agent using us-central-1 by - * default; eu Engine will create Agent using eu-west-1 by default. - * - * Generated from protobuf field string location = 4; - */ - protected $location = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $business - * Name of the company, organization or other entity that the agent - * represents. Used for knowledge connector LLM prompt and for knowledge - * search. - * @type string $default_language_code - * Required. The default language of the agent as a language tag. - * See [Language - * Support](https://cloud.google.com/dialogflow/docs/reference/language) - * for a list of the currently supported language codes. - * @type string $time_zone - * Required. The time zone of the agent from the [time zone - * database](https://www.iana.org/time-zones), e.g., America/New_York, - * Europe/Paris. - * @type string $location - * Agent location for Agent creation, supported values: global/us/eu. - * If not provided, us Engine will create Agent using us-central-1 by - * default; eu Engine will create Agent using eu-west-1 by default. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Engine::initOnce(); - parent::__construct($data); - } - - /** - * Name of the company, organization or other entity that the agent - * represents. Used for knowledge connector LLM prompt and for knowledge - * search. - * - * Generated from protobuf field string business = 1; - * @return string - */ - public function getBusiness() - { - return $this->business; - } - - /** - * Name of the company, organization or other entity that the agent - * represents. Used for knowledge connector LLM prompt and for knowledge - * search. - * - * Generated from protobuf field string business = 1; - * @param string $var - * @return $this - */ - public function setBusiness($var) - { - GPBUtil::checkString($var, True); - $this->business = $var; - - return $this; - } - - /** - * Required. The default language of the agent as a language tag. - * See [Language - * Support](https://cloud.google.com/dialogflow/docs/reference/language) - * for a list of the currently supported language codes. - * - * Generated from protobuf field string default_language_code = 2; - * @return string - */ - public function getDefaultLanguageCode() - { - return $this->default_language_code; - } - - /** - * Required. The default language of the agent as a language tag. - * See [Language - * Support](https://cloud.google.com/dialogflow/docs/reference/language) - * for a list of the currently supported language codes. - * - * Generated from protobuf field string default_language_code = 2; - * @param string $var - * @return $this - */ - public function setDefaultLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->default_language_code = $var; - - return $this; - } - - /** - * Required. The time zone of the agent from the [time zone - * database](https://www.iana.org/time-zones), e.g., America/New_York, - * Europe/Paris. - * - * Generated from protobuf field string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTimeZone() - { - return $this->time_zone; - } - - /** - * Required. The time zone of the agent from the [time zone - * database](https://www.iana.org/time-zones), e.g., America/New_York, - * Europe/Paris. - * - * Generated from protobuf field string time_zone = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkString($var, True); - $this->time_zone = $var; - - return $this; - } - - /** - * Agent location for Agent creation, supported values: global/us/eu. - * If not provided, us Engine will create Agent using us-central-1 by - * default; eu Engine will create Agent using eu-west-1 by default. - * - * Generated from protobuf field string location = 4; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Agent location for Agent creation, supported values: global/us/eu. - * If not provided, us Engine will create Agent using us-central-1 by - * default; eu Engine will create Agent using eu-west-1 by default. - * - * Generated from protobuf field string location = 4; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AgentCreationConfig::class, \Google\Cloud\DiscoveryEngine\V1\Engine_ChatEngineConfig_AgentCreationConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineMetadata.php deleted file mode 100644 index 8f4c0da394aa..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/ChatEngineMetadata.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.discoveryengine.v1.Engine.ChatEngineMetadata - */ -class ChatEngineMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of a Dialogflow agent, that this Chat Engine refers - * to. - * Format: `projects//locations//agents/`. - * - * Generated from protobuf field string dialogflow_agent = 1; - */ - protected $dialogflow_agent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dialogflow_agent - * The resource name of a Dialogflow agent, that this Chat Engine refers - * to. - * Format: `projects//locations//agents/`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Engine::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of a Dialogflow agent, that this Chat Engine refers - * to. - * Format: `projects//locations//agents/`. - * - * Generated from protobuf field string dialogflow_agent = 1; - * @return string - */ - public function getDialogflowAgent() - { - return $this->dialogflow_agent; - } - - /** - * The resource name of a Dialogflow agent, that this Chat Engine refers - * to. - * Format: `projects//locations//agents/`. - * - * Generated from protobuf field string dialogflow_agent = 1; - * @param string $var - * @return $this - */ - public function setDialogflowAgent($var) - { - GPBUtil::checkString($var, True); - $this->dialogflow_agent = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChatEngineMetadata::class, \Google\Cloud\DiscoveryEngine\V1\Engine_ChatEngineMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/CommonConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/CommonConfig.php deleted file mode 100644 index bbc9ded05904..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/CommonConfig.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.discoveryengine.v1.Engine.CommonConfig - */ -class CommonConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the company, business or entity that is associated with the - * engine. Setting this may help improve LLM related features. - * - * Generated from protobuf field string company_name = 1; - */ - protected $company_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $company_name - * The name of the company, business or entity that is associated with the - * engine. Setting this may help improve LLM related features. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Engine::initOnce(); - parent::__construct($data); - } - - /** - * The name of the company, business or entity that is associated with the - * engine. Setting this may help improve LLM related features. - * - * Generated from protobuf field string company_name = 1; - * @return string - */ - public function getCompanyName() - { - return $this->company_name; - } - - /** - * The name of the company, business or entity that is associated with the - * engine. Setting this may help improve LLM related features. - * - * Generated from protobuf field string company_name = 1; - * @param string $var - * @return $this - */ - public function setCompanyName($var) - { - GPBUtil::checkString($var, True); - $this->company_name = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CommonConfig::class, \Google\Cloud\DiscoveryEngine\V1\Engine_CommonConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/SearchEngineConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/SearchEngineConfig.php deleted file mode 100644 index 9a5836b2f522..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Engine/SearchEngineConfig.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.discoveryengine.v1.Engine.SearchEngineConfig - */ -class SearchEngineConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The search feature tier of this engine. - * Different tiers might have different - * pricing. To learn more, check the pricing documentation. - * Defaults to - * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD] - * if not specified. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - */ - protected $search_tier = 0; - /** - * The add-on that this search engine enables. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - */ - private $search_add_ons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $search_tier - * The search feature tier of this engine. - * Different tiers might have different - * pricing. To learn more, check the pricing documentation. - * Defaults to - * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD] - * if not specified. - * @type array|\Google\Protobuf\Internal\RepeatedField $search_add_ons - * The add-on that this search engine enables. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Engine::initOnce(); - parent::__construct($data); - } - - /** - * The search feature tier of this engine. - * Different tiers might have different - * pricing. To learn more, check the pricing documentation. - * Defaults to - * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD] - * if not specified. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * @return int - */ - public function getSearchTier() - { - return $this->search_tier; - } - - /** - * The search feature tier of this engine. - * Different tiers might have different - * pricing. To learn more, check the pricing documentation. - * Defaults to - * [SearchTier.SEARCH_TIER_STANDARD][google.cloud.discoveryengine.v1.SearchTier.SEARCH_TIER_STANDARD] - * if not specified. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchTier search_tier = 1; - * @param int $var - * @return $this - */ - public function setSearchTier($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SearchTier::class); - $this->search_tier = $var; - - return $this; - } - - /** - * The add-on that this search engine enables. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSearchAddOns() - { - return $this->search_add_ons; - } - - /** - * The add-on that this search engine enables. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchAddOn search_add_ons = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSearchAddOns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DiscoveryEngine\V1\SearchAddOn::class); - $this->search_add_ons = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchEngineConfig::class, \Google\Cloud\DiscoveryEngine\V1\Engine_SearchEngineConfig::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FactChunk.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FactChunk.php deleted file mode 100644 index 5707d7e2e864..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FactChunk.php +++ /dev/null @@ -1,181 +0,0 @@ -google.cloud.discoveryengine.v1.FactChunk - */ -class FactChunk extends \Google\Protobuf\Internal\Message -{ - /** - * Text content of the fact chunk. Can be at most 10K characters long. - * - * Generated from protobuf field string chunk_text = 1; - */ - protected $chunk_text = ''; - /** - * Source from which this fact chunk was retrieved. If it was retrieved - * from the GroundingFacts provided in the request then this field will - * contain the index of the specific fact from which this chunk was - * retrieved. - * - * Generated from protobuf field string source = 2; - */ - protected $source = ''; - /** - * The index of this chunk. Currently, only used for the streaming mode. - * - * Generated from protobuf field int32 index = 4; - */ - protected $index = 0; - /** - * More fine-grained information for the source reference. - * - * Generated from protobuf field map source_metadata = 3; - */ - private $source_metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $chunk_text - * Text content of the fact chunk. Can be at most 10K characters long. - * @type string $source - * Source from which this fact chunk was retrieved. If it was retrieved - * from the GroundingFacts provided in the request then this field will - * contain the index of the specific fact from which this chunk was - * retrieved. - * @type int $index - * The index of this chunk. Currently, only used for the streaming mode. - * @type array|\Google\Protobuf\Internal\MapField $source_metadata - * More fine-grained information for the source reference. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Grounding::initOnce(); - parent::__construct($data); - } - - /** - * Text content of the fact chunk. Can be at most 10K characters long. - * - * Generated from protobuf field string chunk_text = 1; - * @return string - */ - public function getChunkText() - { - return $this->chunk_text; - } - - /** - * Text content of the fact chunk. Can be at most 10K characters long. - * - * Generated from protobuf field string chunk_text = 1; - * @param string $var - * @return $this - */ - public function setChunkText($var) - { - GPBUtil::checkString($var, True); - $this->chunk_text = $var; - - return $this; - } - - /** - * Source from which this fact chunk was retrieved. If it was retrieved - * from the GroundingFacts provided in the request then this field will - * contain the index of the specific fact from which this chunk was - * retrieved. - * - * Generated from protobuf field string source = 2; - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * Source from which this fact chunk was retrieved. If it was retrieved - * from the GroundingFacts provided in the request then this field will - * contain the index of the specific fact from which this chunk was - * retrieved. - * - * Generated from protobuf field string source = 2; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - - /** - * The index of this chunk. Currently, only used for the streaming mode. - * - * Generated from protobuf field int32 index = 4; - * @return int - */ - public function getIndex() - { - return $this->index; - } - - /** - * The index of this chunk. Currently, only used for the streaming mode. - * - * Generated from protobuf field int32 index = 4; - * @param int $var - * @return $this - */ - public function setIndex($var) - { - GPBUtil::checkInt32($var); - $this->index = $var; - - return $this; - } - - /** - * More fine-grained information for the source reference. - * - * Generated from protobuf field map source_metadata = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getSourceMetadata() - { - return $this->source_metadata; - } - - /** - * More fine-grained information for the source reference. - * - * Generated from protobuf field map source_metadata = 3; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setSourceMetadata($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->source_metadata = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FetchDomainVerificationStatusRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FetchDomainVerificationStatusRequest.php deleted file mode 100644 index dec1e4d396e7..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FetchDomainVerificationStatusRequest.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.discoveryengine.v1.FetchDomainVerificationStatusRequest - */ -class FetchDomainVerificationStatusRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The site search engine resource under which we fetch all the - * domain verification status. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $site_search_engine = ''; - /** - * Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. The maximum value is - * 1000; values above 1000 will be coerced to 1000. - * If this field is negative, an INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `FetchDomainVerificationStatus` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `FetchDomainVerificationStatus` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $site_search_engine - * Required. The site search engine resource under which we fetch all the - * domain verification status. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * @type int $page_size - * Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. The maximum value is - * 1000; values above 1000 will be coerced to 1000. - * If this field is negative, an INVALID_ARGUMENT error is returned. - * @type string $page_token - * A page token, received from a previous `FetchDomainVerificationStatus` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `FetchDomainVerificationStatus` must match the call that provided the page - * token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The site search engine resource under which we fetch all the - * domain verification status. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getSiteSearchEngine() - { - return $this->site_search_engine; - } - - /** - * Required. The site search engine resource under which we fetch all the - * domain verification status. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSiteSearchEngine($var) - { - GPBUtil::checkString($var, True); - $this->site_search_engine = $var; - - return $this; - } - - /** - * Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. The maximum value is - * 1000; values above 1000 will be coerced to 1000. - * If this field is negative, an INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. The maximum value is - * 1000; values above 1000 will be coerced to 1000. - * If this field is negative, an INVALID_ARGUMENT error is 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 `FetchDomainVerificationStatus` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `FetchDomainVerificationStatus` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `FetchDomainVerificationStatus` - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * `FetchDomainVerificationStatus` must match the call that provided the page - * token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FetchDomainVerificationStatusResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FetchDomainVerificationStatusResponse.php deleted file mode 100644 index 5c0aa6363302..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FetchDomainVerificationStatusResponse.php +++ /dev/null @@ -1,145 +0,0 @@ -google.cloud.discoveryengine.v1.FetchDomainVerificationStatusResponse - */ -class FetchDomainVerificationStatusResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of TargetSites containing the site verification status. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.TargetSite target_sites = 1; - */ - private $target_sites; - /** - * 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 = ''; - /** - * The total number of items matching the request. - * This will always be populated in the response. - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\TargetSite>|\Google\Protobuf\Internal\RepeatedField $target_sites - * List of TargetSites containing the site verification status. - * @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 int $total_size - * The total number of items matching the request. - * This will always be populated in the response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * List of TargetSites containing the site verification status. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.TargetSite target_sites = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetSites() - { - return $this->target_sites; - } - - /** - * List of TargetSites containing the site verification status. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.TargetSite target_sites = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\TargetSite>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetSites($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\TargetSite::class); - $this->target_sites = $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; - } - - /** - * The total number of items matching the request. - * This will always be populated in the response. - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * The total number of items matching the request. - * This will always be populated in the response. - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FhirStoreSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FhirStoreSource.php deleted file mode 100644 index b0c7cb29fa93..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FhirStoreSource.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.discoveryengine.v1.FhirStoreSource - */ -class FhirStoreSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The full resource name of the FHIR store to import data from, in - * the format of - * `projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}`. - * - * Generated from protobuf field string fhir_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $fhir_store = ''; - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * FhirStore export to a specific Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 2; - */ - protected $gcs_staging_dir = ''; - /** - * The FHIR resource types to import. The resource types should be a subset of - * all [supported FHIR resource - * types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification). - * Default to all supported FHIR resource types if empty. - * - * Generated from protobuf field repeated string resource_types = 3; - */ - private $resource_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $fhir_store - * Required. The full resource name of the FHIR store to import data from, in - * the format of - * `projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}`. - * @type string $gcs_staging_dir - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * FhirStore export to a specific Cloud Storage directory. - * @type array|\Google\Protobuf\Internal\RepeatedField $resource_types - * The FHIR resource types to import. The resource types should be a subset of - * all [supported FHIR resource - * types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification). - * Default to all supported FHIR resource types if empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. The full resource name of the FHIR store to import data from, in - * the format of - * `projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}`. - * - * Generated from protobuf field string fhir_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getFhirStore() - { - return $this->fhir_store; - } - - /** - * Required. The full resource name of the FHIR store to import data from, in - * the format of - * `projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}`. - * - * Generated from protobuf field string fhir_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setFhirStore($var) - { - GPBUtil::checkString($var, True); - $this->fhir_store = $var; - - return $this; - } - - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * FhirStore export to a specific Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 2; - * @return string - */ - public function getGcsStagingDir() - { - return $this->gcs_staging_dir; - } - - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * FhirStore export to a specific Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 2; - * @param string $var - * @return $this - */ - public function setGcsStagingDir($var) - { - GPBUtil::checkString($var, True); - $this->gcs_staging_dir = $var; - - return $this; - } - - /** - * The FHIR resource types to import. The resource types should be a subset of - * all [supported FHIR resource - * types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification). - * Default to all supported FHIR resource types if empty. - * - * Generated from protobuf field repeated string resource_types = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResourceTypes() - { - return $this->resource_types; - } - - /** - * The FHIR resource types to import. The resource types should be a subset of - * all [supported FHIR resource - * types](https://cloud.google.com/generative-ai-app-builder/docs/fhir-schema-reference#resource-level-specification). - * Default to all supported FHIR resource types if empty. - * - * Generated from protobuf field repeated string resource_types = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResourceTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FirestoreSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FirestoreSource.php deleted file mode 100644 index 19aec3390a81..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/FirestoreSource.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.discoveryengine.v1.FirestoreSource - */ -class FirestoreSource extends \Google\Protobuf\Internal\Message -{ - /** - * The project ID that the Cloud SQL source is in with a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Required. The Firestore database to copy the data from with a length limit - * of 256 characters. - * - * Generated from protobuf field string database_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_id = ''; - /** - * Required. The Firestore collection (or entity) to copy the data from with a - * length limit of 1,500 characters. - * - * Generated from protobuf field string collection_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $collection_id = ''; - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * Firestore export to a specific Cloud Storage directory. - * Ensure that the Firestore service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 4; - */ - protected $gcs_staging_dir = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The project ID that the Cloud SQL source is in with a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * @type string $database_id - * Required. The Firestore database to copy the data from with a length limit - * of 256 characters. - * @type string $collection_id - * Required. The Firestore collection (or entity) to copy the data from with a - * length limit of 1,500 characters. - * @type string $gcs_staging_dir - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * Firestore export to a specific Cloud Storage directory. - * Ensure that the Firestore service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The project ID that the Cloud SQL source is in with a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project ID that the Cloud SQL source is in with a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The Firestore database to copy the data from with a length limit - * of 256 characters. - * - * Generated from protobuf field string database_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * Required. The Firestore database to copy the data from with a length limit - * of 256 characters. - * - * Generated from protobuf field string database_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Required. The Firestore collection (or entity) to copy the data from with a - * length limit of 1,500 characters. - * - * Generated from protobuf field string collection_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCollectionId() - { - return $this->collection_id; - } - - /** - * Required. The Firestore collection (or entity) to copy the data from with a - * length limit of 1,500 characters. - * - * Generated from protobuf field string collection_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCollectionId($var) - { - GPBUtil::checkString($var, True); - $this->collection_id = $var; - - return $this; - } - - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * Firestore export to a specific Cloud Storage directory. - * Ensure that the Firestore service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 4; - * @return string - */ - public function getGcsStagingDir() - { - return $this->gcs_staging_dir; - } - - /** - * Intermediate Cloud Storage directory used for the import with a length - * limit of 2,000 characters. Can be specified if one wants to have the - * Firestore export to a specific Cloud Storage directory. - * Ensure that the Firestore service account has the necessary Cloud - * Storage Admin permissions to access the specified Cloud Storage directory. - * - * Generated from protobuf field string gcs_staging_dir = 4; - * @param string $var - * @return $this - */ - public function setGcsStagingDir($var) - { - GPBUtil::checkString($var, True); - $this->gcs_staging_dir = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GcsSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GcsSource.php deleted file mode 100644 index 38121444def8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GcsSource.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.discoveryengine.v1.GcsSource - */ -class GcsSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Cloud Storage URIs to input files. Each URI can be up to - * 2000 characters long. URIs can match the full object path (for example, - * `gs://bucket/directory/object.json`) or a pattern matching one or more - * files, such as `gs://bucket/directory/*.json`. - * A request can contain at most 100 files (or 100,000 files if `data_schema` - * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is - * `content`). - * - * Generated from protobuf field repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $input_uris; - /** - * The schema to use when parsing the data from the source. - * Supported values for document imports: - * * `document` (default): One JSON - * [Document][google.cloud.discoveryengine.v1.Document] per line. Each - * document must - * have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. - * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by - * `input_uris` becomes a document, with the ID set to the first 128 - * bits of SHA256(URI) encoded as a hex string. - * * `custom`: One custom data JSON per row in arbitrary format that conforms - * to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the - * data store. This can only be used by the GENERIC Data Store vertical. - * * `csv`: A CSV file with header conforming to the defined - * [Schema][google.cloud.discoveryengine.v1.Schema] of the - * data store. Each entry after the header is imported as a Document. - * This can only be used by the GENERIC Data Store vertical. - * Supported values for user event imports: - * * `user_event` (default): One JSON - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per line. - * - * Generated from protobuf field string data_schema = 2; - */ - protected $data_schema = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $input_uris - * Required. Cloud Storage URIs to input files. Each URI can be up to - * 2000 characters long. URIs can match the full object path (for example, - * `gs://bucket/directory/object.json`) or a pattern matching one or more - * files, such as `gs://bucket/directory/*.json`. - * A request can contain at most 100 files (or 100,000 files if `data_schema` - * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is - * `content`). - * @type string $data_schema - * The schema to use when parsing the data from the source. - * Supported values for document imports: - * * `document` (default): One JSON - * [Document][google.cloud.discoveryengine.v1.Document] per line. Each - * document must - * have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. - * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by - * `input_uris` becomes a document, with the ID set to the first 128 - * bits of SHA256(URI) encoded as a hex string. - * * `custom`: One custom data JSON per row in arbitrary format that conforms - * to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the - * data store. This can only be used by the GENERIC Data Store vertical. - * * `csv`: A CSV file with header conforming to the defined - * [Schema][google.cloud.discoveryengine.v1.Schema] of the - * data store. Each entry after the header is imported as a Document. - * This can only be used by the GENERIC Data Store vertical. - * Supported values for user event imports: - * * `user_event` (default): One JSON - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per line. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. Cloud Storage URIs to input files. Each URI can be up to - * 2000 characters long. URIs can match the full object path (for example, - * `gs://bucket/directory/object.json`) or a pattern matching one or more - * files, such as `gs://bucket/directory/*.json`. - * A request can contain at most 100 files (or 100,000 files if `data_schema` - * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is - * `content`). - * - * Generated from protobuf field repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInputUris() - { - return $this->input_uris; - } - - /** - * Required. Cloud Storage URIs to input files. Each URI can be up to - * 2000 characters long. URIs can match the full object path (for example, - * `gs://bucket/directory/object.json`) or a pattern matching one or more - * files, such as `gs://bucket/directory/*.json`. - * A request can contain at most 100 files (or 100,000 files if `data_schema` - * is `content`). Each file can be up to 2 GB (or 100 MB if `data_schema` is - * `content`). - * - * Generated from protobuf field repeated string input_uris = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInputUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->input_uris = $arr; - - return $this; - } - - /** - * The schema to use when parsing the data from the source. - * Supported values for document imports: - * * `document` (default): One JSON - * [Document][google.cloud.discoveryengine.v1.Document] per line. Each - * document must - * have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. - * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by - * `input_uris` becomes a document, with the ID set to the first 128 - * bits of SHA256(URI) encoded as a hex string. - * * `custom`: One custom data JSON per row in arbitrary format that conforms - * to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the - * data store. This can only be used by the GENERIC Data Store vertical. - * * `csv`: A CSV file with header conforming to the defined - * [Schema][google.cloud.discoveryengine.v1.Schema] of the - * data store. Each entry after the header is imported as a Document. - * This can only be used by the GENERIC Data Store vertical. - * Supported values for user event imports: - * * `user_event` (default): One JSON - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per line. - * - * Generated from protobuf field string data_schema = 2; - * @return string - */ - public function getDataSchema() - { - return $this->data_schema; - } - - /** - * The schema to use when parsing the data from the source. - * Supported values for document imports: - * * `document` (default): One JSON - * [Document][google.cloud.discoveryengine.v1.Document] per line. Each - * document must - * have a valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. - * * `content`: Unstructured data (e.g. PDF, HTML). Each file matched by - * `input_uris` becomes a document, with the ID set to the first 128 - * bits of SHA256(URI) encoded as a hex string. - * * `custom`: One custom data JSON per row in arbitrary format that conforms - * to the defined [Schema][google.cloud.discoveryengine.v1.Schema] of the - * data store. This can only be used by the GENERIC Data Store vertical. - * * `csv`: A CSV file with header conforming to the defined - * [Schema][google.cloud.discoveryengine.v1.Schema] of the - * data store. Each entry after the header is imported as a Document. - * This can only be used by the GENERIC Data Store vertical. - * Supported values for user event imports: - * * `user_event` (default): One JSON - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] per line. - * - * Generated from protobuf field string data_schema = 2; - * @param string $var - * @return $this - */ - public function setDataSchema($var) - { - GPBUtil::checkString($var, True); - $this->data_schema = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest.php deleted file mode 100644 index 53bf90431c9a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest.php +++ /dev/null @@ -1,352 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentRequest - */ -class GenerateGroundedContentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Location resource. - * Format: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $location = ''; - /** - * Content of the system instruction for the current API. - * These instructions will take priority over any other prompt instructions - * if the selected model is supporting them. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; - */ - protected $system_instruction = null; - /** - * Content of the current conversation with the model. - * For single-turn queries, this is a single instance. For multi-turn queries, - * this is a repeated field that contains conversation history + latest - * request. - * Only a single-turn query is supported currently. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; - */ - private $contents; - /** - * Content generation specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; - */ - protected $generation_spec = null; - /** - * Grounding specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; - */ - protected $grounding_spec = null; - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 6; - */ - private $user_labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $location - * Required. Location resource. - * Format: `projects/{project}/locations/{location}`. - * @type \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent $system_instruction - * Content of the system instruction for the current API. - * These instructions will take priority over any other prompt instructions - * if the selected model is supporting them. - * @type array<\Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent>|\Google\Protobuf\Internal\RepeatedField $contents - * Content of the current conversation with the model. - * For single-turn queries, this is a single instance. For multi-turn queries, - * this is a repeated field that contains conversation history + latest - * request. - * Only a single-turn query is supported currently. - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GenerationSpec $generation_spec - * Content generation specification. - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSpec $grounding_spec - * Grounding specification. - * @type array|\Google\Protobuf\Internal\MapField $user_labels - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Location resource. - * Format: `projects/{project}/locations/{location}`. - * - * 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. Location resource. - * Format: `projects/{project}/locations/{location}`. - * - * 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; - } - - /** - * Content of the system instruction for the current API. - * These instructions will take priority over any other prompt instructions - * if the selected model is supporting them. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; - * @return \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent|null - */ - public function getSystemInstruction() - { - return $this->system_instruction; - } - - public function hasSystemInstruction() - { - return isset($this->system_instruction); - } - - public function clearSystemInstruction() - { - unset($this->system_instruction); - } - - /** - * Content of the system instruction for the current API. - * These instructions will take priority over any other prompt instructions - * if the selected model is supporting them. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GroundedGenerationContent system_instruction = 5; - * @param \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent $var - * @return $this - */ - public function setSystemInstruction($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent::class); - $this->system_instruction = $var; - - return $this; - } - - /** - * Content of the current conversation with the model. - * For single-turn queries, this is a single instance. For multi-turn queries, - * this is a repeated field that contains conversation history + latest - * request. - * Only a single-turn query is supported currently. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContents() - { - return $this->contents; - } - - /** - * Content of the current conversation with the model. - * For single-turn queries, this is a single instance. For multi-turn queries, - * this is a repeated field that contains conversation history + latest - * request. - * Only a single-turn query is supported currently. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent contents = 2; - * @param array<\Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent::class); - $this->contents = $arr; - - return $this; - } - - /** - * Content generation specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GenerationSpec|null - */ - public function getGenerationSpec() - { - return $this->generation_spec; - } - - public function hasGenerationSpec() - { - return isset($this->generation_spec); - } - - public function clearGenerationSpec() - { - unset($this->generation_spec); - } - - /** - * Content generation specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec generation_spec = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GenerationSpec $var - * @return $this - */ - public function setGenerationSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GenerationSpec::class); - $this->generation_spec = $var; - - return $this; - } - - /** - * Grounding specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSpec|null - */ - public function getGroundingSpec() - { - return $this->grounding_spec; - } - - public function hasGroundingSpec() - { - return isset($this->grounding_spec); - } - - public function clearGroundingSpec() - { - unset($this->grounding_spec); - } - - /** - * Grounding specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec grounding_spec = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSpec $var - * @return $this - */ - public function setGroundingSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSpec::class); - $this->grounding_spec = $var; - - return $this; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getUserLabels() - { - return $this->user_labels; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->user_labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration.php deleted file mode 100644 index f389968cd5d0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration - */ -class DynamicRetrievalConfiguration extends \Google\Protobuf\Internal\Message -{ - /** - * Specification for the predictor for dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; - */ - protected $predictor = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\DynamicRetrievalConfiguration\DynamicRetrievalPredictor $predictor - * Specification for the predictor for dynamic retrieval. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Specification for the predictor for dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\DynamicRetrievalConfiguration\DynamicRetrievalPredictor|null - */ - public function getPredictor() - { - return $this->predictor; - } - - public function hasPredictor() - { - return isset($this->predictor); - } - - public function clearPredictor() - { - unset($this->predictor); - } - - /** - * Specification for the predictor for dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor predictor = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\DynamicRetrievalConfiguration\DynamicRetrievalPredictor $var - * @return $this - */ - public function setPredictor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\DynamicRetrievalConfiguration\DynamicRetrievalPredictor::class); - $this->predictor = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DynamicRetrievalConfiguration::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest_DynamicRetrievalConfiguration::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration/DynamicRetrievalPredictor.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration/DynamicRetrievalPredictor.php deleted file mode 100644 index a44e0053f7d8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration/DynamicRetrievalPredictor.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor - */ -class DynamicRetrievalPredictor extends \Google\Protobuf\Internal\Message -{ - /** - * The version of the predictor to be used in dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; - */ - protected $version = 0; - /** - * The value of the threshold. If the predictor will predict a - * value smaller than this, it would suppress grounding in the source. - * - * Generated from protobuf field optional float threshold = 2; - */ - protected $threshold = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $version - * The version of the predictor to be used in dynamic retrieval. - * @type float $threshold - * The value of the threshold. If the predictor will predict a - * value smaller than this, it would suppress grounding in the source. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * The version of the predictor to be used in dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of the predictor to be used in dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version version = 1; - * @param int $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\DynamicRetrievalConfiguration\DynamicRetrievalPredictor\Version::class); - $this->version = $var; - - return $this; - } - - /** - * The value of the threshold. If the predictor will predict a - * value smaller than this, it would suppress grounding in the source. - * - * Generated from protobuf field optional float threshold = 2; - * @return float - */ - public function getThreshold() - { - return isset($this->threshold) ? $this->threshold : 0.0; - } - - public function hasThreshold() - { - return isset($this->threshold); - } - - public function clearThreshold() - { - unset($this->threshold); - } - - /** - * The value of the threshold. If the predictor will predict a - * value smaller than this, it would suppress grounding in the source. - * - * Generated from protobuf field optional float threshold = 2; - * @param float $var - * @return $this - */ - public function setThreshold($var) - { - GPBUtil::checkFloat($var); - $this->threshold = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DynamicRetrievalPredictor::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration/DynamicRetrievalPredictor/Version.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration/DynamicRetrievalPredictor/Version.php deleted file mode 100644 index 57255740a690..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/DynamicRetrievalConfiguration/DynamicRetrievalPredictor/Version.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration.DynamicRetrievalPredictor.Version - */ -class Version -{ - /** - * Automatically choose the best version of the retrieval predictor. - * - * Generated from protobuf enum VERSION_UNSPECIFIED = 0; - */ - const VERSION_UNSPECIFIED = 0; - /** - * The V1 model which is evaluating each source independently. - * - * Generated from protobuf enum V1_INDEPENDENT = 1; - */ - const V1_INDEPENDENT = 1; - - private static $valueToName = [ - self::VERSION_UNSPECIFIED => 'VERSION_UNSPECIFIED', - self::V1_INDEPENDENT => 'V1_INDEPENDENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Version::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest_DynamicRetrievalConfiguration_DynamicRetrievalPredictor_Version::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GenerationSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GenerationSpec.php deleted file mode 100644 index 081e53edfc44..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GenerationSpec.php +++ /dev/null @@ -1,372 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GenerationSpec - */ -class GenerationSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Specifies which Vertex model id to use for generation. - * - * Generated from protobuf field string model_id = 3; - */ - protected $model_id = ''; - /** - * Language code for content. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * - * Generated from protobuf field string language_code = 2; - */ - protected $language_code = ''; - /** - * If specified, custom value for the temperature will be used. - * - * Generated from protobuf field optional float temperature = 4; - */ - protected $temperature = null; - /** - * If specified, custom value for nucleus sampling will be used. - * - * Generated from protobuf field optional float top_p = 5; - */ - protected $top_p = null; - /** - * If specified, custom value for top-k sampling will be used. - * - * Generated from protobuf field optional int32 top_k = 7; - */ - protected $top_k = null; - /** - * If specified, custom value for frequency penalty will be used. - * - * Generated from protobuf field optional float frequency_penalty = 8; - */ - protected $frequency_penalty = null; - /** - * If specified, custom value for presence penalty will be used. - * - * Generated from protobuf field optional float presence_penalty = 9; - */ - protected $presence_penalty = null; - /** - * If specified, custom value for max output tokens will be used. - * - * Generated from protobuf field optional int32 max_output_tokens = 10; - */ - protected $max_output_tokens = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $model_id - * Specifies which Vertex model id to use for generation. - * @type string $language_code - * Language code for content. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * @type float $temperature - * If specified, custom value for the temperature will be used. - * @type float $top_p - * If specified, custom value for nucleus sampling will be used. - * @type int $top_k - * If specified, custom value for top-k sampling will be used. - * @type float $frequency_penalty - * If specified, custom value for frequency penalty will be used. - * @type float $presence_penalty - * If specified, custom value for presence penalty will be used. - * @type int $max_output_tokens - * If specified, custom value for max output tokens will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Specifies which Vertex model id to use for generation. - * - * Generated from protobuf field string model_id = 3; - * @return string - */ - public function getModelId() - { - return $this->model_id; - } - - /** - * Specifies which Vertex model id to use for generation. - * - * Generated from protobuf field string model_id = 3; - * @param string $var - * @return $this - */ - public function setModelId($var) - { - GPBUtil::checkString($var, True); - $this->model_id = $var; - - return $this; - } - - /** - * Language code for content. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * - * Generated from protobuf field string language_code = 2; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Language code for content. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * - * Generated from protobuf field string language_code = 2; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * If specified, custom value for the temperature will be used. - * - * Generated from protobuf field optional float temperature = 4; - * @return float - */ - public function getTemperature() - { - return isset($this->temperature) ? $this->temperature : 0.0; - } - - public function hasTemperature() - { - return isset($this->temperature); - } - - public function clearTemperature() - { - unset($this->temperature); - } - - /** - * If specified, custom value for the temperature will be used. - * - * Generated from protobuf field optional float temperature = 4; - * @param float $var - * @return $this - */ - public function setTemperature($var) - { - GPBUtil::checkFloat($var); - $this->temperature = $var; - - return $this; - } - - /** - * If specified, custom value for nucleus sampling will be used. - * - * Generated from protobuf field optional float top_p = 5; - * @return float - */ - public function getTopP() - { - return isset($this->top_p) ? $this->top_p : 0.0; - } - - public function hasTopP() - { - return isset($this->top_p); - } - - public function clearTopP() - { - unset($this->top_p); - } - - /** - * If specified, custom value for nucleus sampling will be used. - * - * Generated from protobuf field optional float top_p = 5; - * @param float $var - * @return $this - */ - public function setTopP($var) - { - GPBUtil::checkFloat($var); - $this->top_p = $var; - - return $this; - } - - /** - * If specified, custom value for top-k sampling will be used. - * - * Generated from protobuf field optional int32 top_k = 7; - * @return int - */ - public function getTopK() - { - return isset($this->top_k) ? $this->top_k : 0; - } - - public function hasTopK() - { - return isset($this->top_k); - } - - public function clearTopK() - { - unset($this->top_k); - } - - /** - * If specified, custom value for top-k sampling will be used. - * - * Generated from protobuf field optional int32 top_k = 7; - * @param int $var - * @return $this - */ - public function setTopK($var) - { - GPBUtil::checkInt32($var); - $this->top_k = $var; - - return $this; - } - - /** - * If specified, custom value for frequency penalty will be used. - * - * Generated from protobuf field optional float frequency_penalty = 8; - * @return float - */ - public function getFrequencyPenalty() - { - return isset($this->frequency_penalty) ? $this->frequency_penalty : 0.0; - } - - public function hasFrequencyPenalty() - { - return isset($this->frequency_penalty); - } - - public function clearFrequencyPenalty() - { - unset($this->frequency_penalty); - } - - /** - * If specified, custom value for frequency penalty will be used. - * - * Generated from protobuf field optional float frequency_penalty = 8; - * @param float $var - * @return $this - */ - public function setFrequencyPenalty($var) - { - GPBUtil::checkFloat($var); - $this->frequency_penalty = $var; - - return $this; - } - - /** - * If specified, custom value for presence penalty will be used. - * - * Generated from protobuf field optional float presence_penalty = 9; - * @return float - */ - public function getPresencePenalty() - { - return isset($this->presence_penalty) ? $this->presence_penalty : 0.0; - } - - public function hasPresencePenalty() - { - return isset($this->presence_penalty); - } - - public function clearPresencePenalty() - { - unset($this->presence_penalty); - } - - /** - * If specified, custom value for presence penalty will be used. - * - * Generated from protobuf field optional float presence_penalty = 9; - * @param float $var - * @return $this - */ - public function setPresencePenalty($var) - { - GPBUtil::checkFloat($var); - $this->presence_penalty = $var; - - return $this; - } - - /** - * If specified, custom value for max output tokens will be used. - * - * Generated from protobuf field optional int32 max_output_tokens = 10; - * @return int - */ - public function getMaxOutputTokens() - { - return isset($this->max_output_tokens) ? $this->max_output_tokens : 0; - } - - public function hasMaxOutputTokens() - { - return isset($this->max_output_tokens); - } - - public function clearMaxOutputTokens() - { - unset($this->max_output_tokens); - } - - /** - * If specified, custom value for max output tokens will be used. - * - * Generated from protobuf field optional int32 max_output_tokens = 10; - * @param int $var - * @return $this - */ - public function setMaxOutputTokens($var) - { - GPBUtil::checkInt32($var); - $this->max_output_tokens = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GenerationSpec::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest_GenerationSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource.php deleted file mode 100644 index 6e9526f7fd23..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource.php +++ /dev/null @@ -1,144 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource - */ -class GroundingSource extends \Google\Protobuf\Internal\Message -{ - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\InlineSource $inline_source - * If set, grounding is performed with inline content. - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\SearchSource $search_source - * If set, grounding is performed with Vertex AI Search. - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\GoogleSearchSource $google_search_source - * If set, grounding is performed with Google Search. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * If set, grounding is performed with inline content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\InlineSource|null - */ - public function getInlineSource() - { - return $this->readOneof(1); - } - - public function hasInlineSource() - { - return $this->hasOneof(1); - } - - /** - * If set, grounding is performed with inline content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource inline_source = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\InlineSource $var - * @return $this - */ - public function setInlineSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\InlineSource::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * If set, grounding is performed with Vertex AI Search. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\SearchSource|null - */ - public function getSearchSource() - { - return $this->readOneof(2); - } - - public function hasSearchSource() - { - return $this->hasOneof(2); - } - - /** - * If set, grounding is performed with Vertex AI Search. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource search_source = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\SearchSource $var - * @return $this - */ - public function setSearchSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\SearchSource::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * If set, grounding is performed with Google Search. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\GoogleSearchSource|null - */ - public function getGoogleSearchSource() - { - return $this->readOneof(3); - } - - public function hasGoogleSearchSource() - { - return $this->hasOneof(3); - } - - /** - * If set, grounding is performed with Google Search. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource google_search_source = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\GoogleSearchSource $var - * @return $this - */ - public function setGoogleSearchSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource\GoogleSearchSource::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GroundingSource::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest_GroundingSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/GoogleSearchSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/GoogleSearchSource.php deleted file mode 100644 index f8c2ea36e2e8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/GoogleSearchSource.php +++ /dev/null @@ -1,84 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.GoogleSearchSource - */ -class GoogleSearchSource extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Specifies the dynamic retrieval configuration for the given - * source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $dynamic_retrieval_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\DynamicRetrievalConfiguration $dynamic_retrieval_config - * Optional. Specifies the dynamic retrieval configuration for the given - * source. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Specifies the dynamic retrieval configuration for the given - * source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\DynamicRetrievalConfiguration|null - */ - public function getDynamicRetrievalConfig() - { - return $this->dynamic_retrieval_config; - } - - public function hasDynamicRetrievalConfig() - { - return isset($this->dynamic_retrieval_config); - } - - public function clearDynamicRetrievalConfig() - { - unset($this->dynamic_retrieval_config); - } - - /** - * Optional. Specifies the dynamic retrieval configuration for the given - * source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.DynamicRetrievalConfiguration dynamic_retrieval_config = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\DynamicRetrievalConfiguration $var - * @return $this - */ - public function setDynamicRetrievalConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\DynamicRetrievalConfiguration::class); - $this->dynamic_retrieval_config = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GoogleSearchSource::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest_GroundingSource_GoogleSearchSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/InlineSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/InlineSource.php deleted file mode 100644 index 20eb053432dd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/InlineSource.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.InlineSource - */ -class InlineSource extends \Google\Protobuf\Internal\Message -{ - /** - * List of facts to be used for grounding. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; - */ - private $grounding_facts; - /** - * Attributes associated with the content. - * Common attributes include `source` (indicating where the content was - * sourced from) and `author` (indicating the author of the content). - * - * Generated from protobuf field map attributes = 2; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\GroundingFact>|\Google\Protobuf\Internal\RepeatedField $grounding_facts - * List of facts to be used for grounding. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Attributes associated with the content. - * Common attributes include `source` (indicating where the content was - * sourced from) and `author` (indicating the author of the content). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * List of facts to be used for grounding. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGroundingFacts() - { - return $this->grounding_facts; - } - - /** - * List of facts to be used for grounding. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundingFact grounding_facts = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\GroundingFact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGroundingFacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\GroundingFact::class); - $this->grounding_facts = $arr; - - return $this; - } - - /** - * Attributes associated with the content. - * Common attributes include `source` (indicating where the content was - * sourced from) and `author` (indicating the author of the content). - * - * Generated from protobuf field map attributes = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Attributes associated with the content. - * Common attributes include `source` (indicating where the content was - * sourced from) and `author` (indicating the author of the content). - * - * Generated from protobuf field map attributes = 2; - * @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::STRING); - $this->attributes = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InlineSource::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest_GroundingSource_InlineSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/SearchSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/SearchSource.php deleted file mode 100644 index 312423278553..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSource/SearchSource.php +++ /dev/null @@ -1,192 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource.SearchSource - */ -class SearchSource extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the Engine to use. - * Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` - * - * Generated from protobuf field string serving_config = 1 [(.google.api.resource_reference) = { - */ - protected $serving_config = ''; - /** - * Number of search results to return. - * The default value is 10. The maximumm allowed value is 10. - * - * Generated from protobuf field int32 max_result_count = 2; - */ - protected $max_result_count = 0; - /** - * Filter expression to be applied to the search. - * The syntax is the same as - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]. - * - * Generated from protobuf field string filter = 3; - */ - protected $filter = ''; - /** - * If set, safe search is enabled in Vertex AI Search requests. - * - * Generated from protobuf field bool safe_search = 5; - */ - protected $safe_search = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $serving_config - * The resource name of the Engine to use. - * Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` - * @type int $max_result_count - * Number of search results to return. - * The default value is 10. The maximumm allowed value is 10. - * @type string $filter - * Filter expression to be applied to the search. - * The syntax is the same as - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]. - * @type bool $safe_search - * If set, safe search is enabled in Vertex AI Search requests. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the Engine to use. - * Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` - * - * Generated from protobuf field string serving_config = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getServingConfig() - { - return $this->serving_config; - } - - /** - * The resource name of the Engine to use. - * Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}` - * - * Generated from protobuf field string serving_config = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setServingConfig($var) - { - GPBUtil::checkString($var, True); - $this->serving_config = $var; - - return $this; - } - - /** - * Number of search results to return. - * The default value is 10. The maximumm allowed value is 10. - * - * Generated from protobuf field int32 max_result_count = 2; - * @return int - */ - public function getMaxResultCount() - { - return $this->max_result_count; - } - - /** - * Number of search results to return. - * The default value is 10. The maximumm allowed value is 10. - * - * Generated from protobuf field int32 max_result_count = 2; - * @param int $var - * @return $this - */ - public function setMaxResultCount($var) - { - GPBUtil::checkInt32($var); - $this->max_result_count = $var; - - return $this; - } - - /** - * Filter expression to be applied to the search. - * The syntax is the same as - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]. - * - * Generated from protobuf field string filter = 3; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter expression to be applied to the search. - * The syntax is the same as - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]. - * - * 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; - } - - /** - * If set, safe search is enabled in Vertex AI Search requests. - * - * Generated from protobuf field bool safe_search = 5; - * @return bool - */ - public function getSafeSearch() - { - return $this->safe_search; - } - - /** - * If set, safe search is enabled in Vertex AI Search requests. - * - * Generated from protobuf field bool safe_search = 5; - * @param bool $var - * @return $this - */ - public function setSafeSearch($var) - { - GPBUtil::checkBool($var); - $this->safe_search = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchSource::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest_GroundingSource_SearchSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSpec.php deleted file mode 100644 index 59afdb64c54a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentRequest/GroundingSpec.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSpec - */ -class GroundingSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Grounding sources. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; - */ - private $grounding_sources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource>|\Google\Protobuf\Internal\RepeatedField $grounding_sources - * Grounding sources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Grounding sources. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGroundingSources() - { - return $this->grounding_sources; - } - - /** - * Grounding sources. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentRequest.GroundingSource grounding_sources = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGroundingSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest\GroundingSource::class); - $this->grounding_sources = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GroundingSpec::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentRequest_GroundingSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse.php deleted file mode 100644 index 7fccd238f7af..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentResponse - */ -class GenerateGroundedContentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Generated candidates. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; - */ - private $candidates; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate>|\Google\Protobuf\Internal\RepeatedField $candidates - * Generated candidates. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Generated candidates. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCandidates() - { - return $this->candidates; - } - - /** - * Generated candidates. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate candidates = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCandidates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate::class); - $this->candidates = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate.php deleted file mode 100644 index 575eb752cabc..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate.php +++ /dev/null @@ -1,202 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate - */ -class Candidate extends \Google\Protobuf\Internal\Message -{ - /** - * Index of the candidate. - * - * Generated from protobuf field int32 index = 1; - */ - protected $index = 0; - /** - * Content of the candidate. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; - */ - protected $content = null; - /** - * The overall grounding score for the candidate, in the range of [0, 1]. - * - * Generated from protobuf field optional float grounding_score = 3; - */ - protected $grounding_score = null; - /** - * Grounding metadata for the generated content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; - */ - protected $grounding_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $index - * Index of the candidate. - * @type \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent $content - * Content of the candidate. - * @type float $grounding_score - * The overall grounding score for the candidate, in the range of [0, 1]. - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata $grounding_metadata - * Grounding metadata for the generated content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Index of the candidate. - * - * Generated from protobuf field int32 index = 1; - * @return int - */ - public function getIndex() - { - return $this->index; - } - - /** - * Index of the candidate. - * - * Generated from protobuf field int32 index = 1; - * @param int $var - * @return $this - */ - public function setIndex($var) - { - GPBUtil::checkInt32($var); - $this->index = $var; - - return $this; - } - - /** - * Content of the candidate. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent|null - */ - public function getContent() - { - return $this->content; - } - - public function hasContent() - { - return isset($this->content); - } - - public function clearContent() - { - unset($this->content); - } - - /** - * Content of the candidate. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GroundedGenerationContent content = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent::class); - $this->content = $var; - - return $this; - } - - /** - * The overall grounding score for the candidate, in the range of [0, 1]. - * - * Generated from protobuf field optional float grounding_score = 3; - * @return float - */ - public function getGroundingScore() - { - return isset($this->grounding_score) ? $this->grounding_score : 0.0; - } - - public function hasGroundingScore() - { - return isset($this->grounding_score); - } - - public function clearGroundingScore() - { - unset($this->grounding_score); - } - - /** - * The overall grounding score for the candidate, in the range of [0, 1]. - * - * Generated from protobuf field optional float grounding_score = 3; - * @param float $var - * @return $this - */ - public function setGroundingScore($var) - { - GPBUtil::checkFloat($var); - $this->grounding_score = $var; - - return $this; - } - - /** - * Grounding metadata for the generated content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata|null - */ - public function getGroundingMetadata() - { - return $this->grounding_metadata; - } - - public function hasGroundingMetadata() - { - return isset($this->grounding_metadata); - } - - public function clearGroundingMetadata() - { - unset($this->grounding_metadata); - } - - /** - * Grounding metadata for the generated content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata grounding_metadata = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata $var - * @return $this - */ - public function setGroundingMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata::class); - $this->grounding_metadata = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Candidate::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse_Candidate::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata.php deleted file mode 100644 index 0ce036126fba..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata - */ -class GroundingMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Retrieval metadata to provide an understanding in the - * retrieval steps performed by the model. There can be multiple such - * messages which can correspond to different parts of the retrieval. This - * is a mechanism used to ensure transparency to our users. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - */ - private $retrieval_metadata; - /** - * List of chunks to be attributed across all claims in the candidate. - * These are derived from the grounding sources supplied in the request. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; - */ - private $support_chunks; - /** - * Web search queries for the following-up web search. - * - * Generated from protobuf field repeated string web_search_queries = 3; - */ - private $web_search_queries; - /** - * Google search entry for the following-up web searches. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; - */ - protected $search_entry_point = null; - /** - * GroundingSupport across all claims in the answer candidate. - * An support to a fact indicates that the claim is supported by - * the fact. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; - */ - private $grounding_support; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\RetrievalMetadata>|\Google\Protobuf\Internal\RepeatedField $retrieval_metadata - * Retrieval metadata to provide an understanding in the - * retrieval steps performed by the model. There can be multiple such - * messages which can correspond to different parts of the retrieval. This - * is a mechanism used to ensure transparency to our users. - * @type array<\Google\Cloud\DiscoveryEngine\V1\FactChunk>|\Google\Protobuf\Internal\RepeatedField $support_chunks - * List of chunks to be attributed across all claims in the candidate. - * These are derived from the grounding sources supplied in the request. - * @type array|\Google\Protobuf\Internal\RepeatedField $web_search_queries - * Web search queries for the following-up web search. - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\SearchEntryPoint $search_entry_point - * Google search entry for the following-up web searches. - * @type array<\Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\GroundingSupport>|\Google\Protobuf\Internal\RepeatedField $grounding_support - * GroundingSupport across all claims in the answer candidate. - * An support to a fact indicates that the claim is supported by - * the fact. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Retrieval metadata to provide an understanding in the - * retrieval steps performed by the model. There can be multiple such - * messages which can correspond to different parts of the retrieval. This - * is a mechanism used to ensure transparency to our users. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRetrievalMetadata() - { - return $this->retrieval_metadata; - } - - /** - * Retrieval metadata to provide an understanding in the - * retrieval steps performed by the model. There can be multiple such - * messages which can correspond to different parts of the retrieval. This - * is a mechanism used to ensure transparency to our users. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata retrieval_metadata = 5; - * @param array<\Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\RetrievalMetadata>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRetrievalMetadata($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\RetrievalMetadata::class); - $this->retrieval_metadata = $arr; - - return $this; - } - - /** - * List of chunks to be attributed across all claims in the candidate. - * These are derived from the grounding sources supplied in the request. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportChunks() - { - return $this->support_chunks; - } - - /** - * List of chunks to be attributed across all claims in the candidate. - * These are derived from the grounding sources supplied in the request. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.FactChunk support_chunks = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\FactChunk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportChunks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\FactChunk::class); - $this->support_chunks = $arr; - - return $this; - } - - /** - * Web search queries for the following-up web search. - * - * Generated from protobuf field repeated string web_search_queries = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWebSearchQueries() - { - return $this->web_search_queries; - } - - /** - * Web search queries for the following-up web search. - * - * Generated from protobuf field repeated string web_search_queries = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWebSearchQueries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->web_search_queries = $arr; - - return $this; - } - - /** - * Google search entry for the following-up web searches. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\SearchEntryPoint|null - */ - public function getSearchEntryPoint() - { - return $this->search_entry_point; - } - - public function hasSearchEntryPoint() - { - return isset($this->search_entry_point); - } - - public function clearSearchEntryPoint() - { - unset($this->search_entry_point); - } - - /** - * Google search entry for the following-up web searches. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint search_entry_point = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\SearchEntryPoint $var - * @return $this - */ - public function setSearchEntryPoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\SearchEntryPoint::class); - $this->search_entry_point = $var; - - return $this; - } - - /** - * GroundingSupport across all claims in the answer candidate. - * An support to a fact indicates that the claim is supported by - * the fact. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGroundingSupport() - { - return $this->grounding_support; - } - - /** - * GroundingSupport across all claims in the answer candidate. - * An support to a fact indicates that the claim is supported by - * the fact. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport grounding_support = 2; - * @param array<\Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\GroundingSupport>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGroundingSupport($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\GroundingSupport::class); - $this->grounding_support = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GroundingMetadata::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse_Candidate_GroundingMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalMetadata.php deleted file mode 100644 index 9461f70ccfb1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalMetadata.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata - */ -class DynamicRetrievalMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Metadata for the dynamic retrieval predictor. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; - */ - protected $predictor_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\DynamicRetrievalPredictorMetadata $predictor_metadata - * Metadata for the dynamic retrieval predictor. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Metadata for the dynamic retrieval predictor. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\DynamicRetrievalPredictorMetadata|null - */ - public function getPredictorMetadata() - { - return $this->predictor_metadata; - } - - public function hasPredictorMetadata() - { - return isset($this->predictor_metadata); - } - - public function clearPredictorMetadata() - { - unset($this->predictor_metadata); - } - - /** - * Metadata for the dynamic retrieval predictor. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata predictor_metadata = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\DynamicRetrievalPredictorMetadata $var - * @return $this - */ - public function setPredictorMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\DynamicRetrievalPredictorMetadata::class); - $this->predictor_metadata = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DynamicRetrievalMetadata::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalPredictorMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalPredictorMetadata.php deleted file mode 100644 index 9e40121af63d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalPredictorMetadata.php +++ /dev/null @@ -1,130 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata - */ -class DynamicRetrievalPredictorMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The version of the predictor which was used in dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; - */ - protected $version = 0; - /** - * The value of the predictor. This should be between [0, 1] where - * a value of 0 means that the query would not benefit from grounding, - * while a value of 1.0 means that the query would benefit the most. - * In between values allow to differentiate between different usefulness - * scores for grounding. - * - * Generated from protobuf field optional float prediction = 2; - */ - protected $prediction = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $version - * The version of the predictor which was used in dynamic retrieval. - * @type float $prediction - * The value of the predictor. This should be between [0, 1] where - * a value of 0 means that the query would not benefit from grounding, - * while a value of 1.0 means that the query would benefit the most. - * In between values allow to differentiate between different usefulness - * scores for grounding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * The version of the predictor which was used in dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; - * @return int - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version of the predictor which was used in dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version version = 1; - * @param int $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\DynamicRetrievalPredictorMetadata\Version::class); - $this->version = $var; - - return $this; - } - - /** - * The value of the predictor. This should be between [0, 1] where - * a value of 0 means that the query would not benefit from grounding, - * while a value of 1.0 means that the query would benefit the most. - * In between values allow to differentiate between different usefulness - * scores for grounding. - * - * Generated from protobuf field optional float prediction = 2; - * @return float - */ - public function getPrediction() - { - return isset($this->prediction) ? $this->prediction : 0.0; - } - - public function hasPrediction() - { - return isset($this->prediction); - } - - public function clearPrediction() - { - unset($this->prediction); - } - - /** - * The value of the predictor. This should be between [0, 1] where - * a value of 0 means that the query would not benefit from grounding, - * while a value of 1.0 means that the query would benefit the most. - * In between values allow to differentiate between different usefulness - * scores for grounding. - * - * Generated from protobuf field optional float prediction = 2; - * @param float $var - * @return $this - */ - public function setPrediction($var) - { - GPBUtil::checkFloat($var); - $this->prediction = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DynamicRetrievalPredictorMetadata::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalPredictorMetadata/Version.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalPredictorMetadata/Version.php deleted file mode 100644 index efa84891532c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/DynamicRetrievalPredictorMetadata/Version.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalPredictorMetadata.Version - */ -class Version -{ - /** - * Unspecified version, should never be used. - * - * Generated from protobuf enum VERSION_UNSPECIFIED = 0; - */ - const VERSION_UNSPECIFIED = 0; - /** - * The V1 model which is evaluating each source independently. - * - * Generated from protobuf enum V1_INDEPENDENT = 1; - */ - const V1_INDEPENDENT = 1; - - private static $valueToName = [ - self::VERSION_UNSPECIFIED => 'VERSION_UNSPECIFIED', - self::V1_INDEPENDENT => 'V1_INDEPENDENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Version::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse_Candidate_GroundingMetadata_DynamicRetrievalPredictorMetadata_Version::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/GroundingSupport.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/GroundingSupport.php deleted file mode 100644 index f3f72e036f78..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/GroundingSupport.php +++ /dev/null @@ -1,172 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.GroundingSupport - */ -class GroundingSupport extends \Google\Protobuf\Internal\Message -{ - /** - * Text for the claim in the candidate. Always provided when a - * support is found. - * - * Generated from protobuf field string claim_text = 1; - */ - protected $claim_text = ''; - /** - * A list of indices (into 'support_chunks') specifying the - * citations associated with the claim. For instance [1,3,4] means - * that support_chunks[1], support_chunks[3], - * support_chunks[4] are the chunks attributed to the claim. - * - * Generated from protobuf field repeated int32 support_chunk_indices = 3; - */ - private $support_chunk_indices; - /** - * A score in the range of [0, 1] describing how grounded is a specific - * claim in the support chunks indicated. - * Higher value means that the claim is better supported by the chunks. - * - * Generated from protobuf field optional float support_score = 2; - */ - protected $support_score = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $claim_text - * Text for the claim in the candidate. Always provided when a - * support is found. - * @type array|\Google\Protobuf\Internal\RepeatedField $support_chunk_indices - * A list of indices (into 'support_chunks') specifying the - * citations associated with the claim. For instance [1,3,4] means - * that support_chunks[1], support_chunks[3], - * support_chunks[4] are the chunks attributed to the claim. - * @type float $support_score - * A score in the range of [0, 1] describing how grounded is a specific - * claim in the support chunks indicated. - * Higher value means that the claim is better supported by the chunks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Text for the claim in the candidate. Always provided when a - * support is found. - * - * Generated from protobuf field string claim_text = 1; - * @return string - */ - public function getClaimText() - { - return $this->claim_text; - } - - /** - * Text for the claim in the candidate. Always provided when a - * support is found. - * - * Generated from protobuf field string claim_text = 1; - * @param string $var - * @return $this - */ - public function setClaimText($var) - { - GPBUtil::checkString($var, True); - $this->claim_text = $var; - - return $this; - } - - /** - * A list of indices (into 'support_chunks') specifying the - * citations associated with the claim. For instance [1,3,4] means - * that support_chunks[1], support_chunks[3], - * support_chunks[4] are the chunks attributed to the claim. - * - * Generated from protobuf field repeated int32 support_chunk_indices = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportChunkIndices() - { - return $this->support_chunk_indices; - } - - /** - * A list of indices (into 'support_chunks') specifying the - * citations associated with the claim. For instance [1,3,4] means - * that support_chunks[1], support_chunks[3], - * support_chunks[4] are the chunks attributed to the claim. - * - * Generated from protobuf field repeated int32 support_chunk_indices = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportChunkIndices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->support_chunk_indices = $arr; - - return $this; - } - - /** - * A score in the range of [0, 1] describing how grounded is a specific - * claim in the support chunks indicated. - * Higher value means that the claim is better supported by the chunks. - * - * Generated from protobuf field optional float support_score = 2; - * @return float - */ - public function getSupportScore() - { - return isset($this->support_score) ? $this->support_score : 0.0; - } - - public function hasSupportScore() - { - return isset($this->support_score); - } - - public function clearSupportScore() - { - unset($this->support_score); - } - - /** - * A score in the range of [0, 1] describing how grounded is a specific - * claim in the support chunks indicated. - * Higher value means that the claim is better supported by the chunks. - * - * Generated from protobuf field optional float support_score = 2; - * @param float $var - * @return $this - */ - public function setSupportScore($var) - { - GPBUtil::checkFloat($var); - $this->support_score = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GroundingSupport::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse_Candidate_GroundingMetadata_GroundingSupport::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/RetrievalMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/RetrievalMetadata.php deleted file mode 100644 index 60c32d5b5c78..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/RetrievalMetadata.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata - */ -class RetrievalMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Describes the source to which the metadata is referring to. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; - */ - protected $source = 0; - /** - * Metadata for dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; - */ - protected $dynamic_retrieval_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $source - * Describes the source to which the metadata is referring to. - * @type \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\DynamicRetrievalMetadata $dynamic_retrieval_metadata - * Metadata for dynamic retrieval. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Describes the source to which the metadata is referring to. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; - * @return int - */ - public function getSource() - { - return $this->source; - } - - /** - * Describes the source to which the metadata is referring to. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source source = 1; - * @param int $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\RetrievalMetadata\Source::class); - $this->source = $var; - - return $this; - } - - /** - * Metadata for dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\DynamicRetrievalMetadata|null - */ - public function getDynamicRetrievalMetadata() - { - return $this->dynamic_retrieval_metadata; - } - - public function hasDynamicRetrievalMetadata() - { - return isset($this->dynamic_retrieval_metadata); - } - - public function clearDynamicRetrievalMetadata() - { - unset($this->dynamic_retrieval_metadata); - } - - /** - * Metadata for dynamic retrieval. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.DynamicRetrievalMetadata dynamic_retrieval_metadata = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\DynamicRetrievalMetadata $var - * @return $this - */ - public function setDynamicRetrievalMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse\Candidate\GroundingMetadata\DynamicRetrievalMetadata::class); - $this->dynamic_retrieval_metadata = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RetrievalMetadata::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/RetrievalMetadata/Source.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/RetrievalMetadata/Source.php deleted file mode 100644 index 9c3602101746..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/RetrievalMetadata/Source.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.RetrievalMetadata.Source - */ -class Source -{ - /** - * Unspecified source. - * - * Generated from protobuf enum SOURCE_UNSPECIFIED = 0; - */ - const SOURCE_UNSPECIFIED = 0; - /** - * Vertex AI search. - * - * Generated from protobuf enum VERTEX_AI_SEARCH = 1; - */ - const VERTEX_AI_SEARCH = 1; - /** - * Google Search. - * - * Generated from protobuf enum GOOGLE_SEARCH = 3; - */ - const GOOGLE_SEARCH = 3; - /** - * User inline provided content. - * - * Generated from protobuf enum INLINE_CONTENT = 2; - */ - const INLINE_CONTENT = 2; - /** - * Google Maps. - * - * Generated from protobuf enum GOOGLE_MAPS = 4; - */ - const GOOGLE_MAPS = 4; - - private static $valueToName = [ - self::SOURCE_UNSPECIFIED => 'SOURCE_UNSPECIFIED', - self::VERTEX_AI_SEARCH => 'VERTEX_AI_SEARCH', - self::GOOGLE_SEARCH => 'GOOGLE_SEARCH', - self::INLINE_CONTENT => 'INLINE_CONTENT', - self::GOOGLE_MAPS => 'GOOGLE_MAPS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Source::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse_Candidate_GroundingMetadata_RetrievalMetadata_Source::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/SearchEntryPoint.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/SearchEntryPoint.php deleted file mode 100644 index 62b07649206e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GenerateGroundedContentResponse/Candidate/GroundingMetadata/SearchEntryPoint.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.discoveryengine.v1.GenerateGroundedContentResponse.Candidate.GroundingMetadata.SearchEntryPoint - */ -class SearchEntryPoint extends \Google\Protobuf\Internal\Message -{ - /** - * Web content snippet that can be embedded in a web page or an app - * webview. - * - * Generated from protobuf field string rendered_content = 1; - */ - protected $rendered_content = ''; - /** - * Base64 encoded JSON representing array of - * tuple. - * - * Generated from protobuf field bytes sdk_blob = 2; - */ - protected $sdk_blob = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $rendered_content - * Web content snippet that can be embedded in a web page or an app - * webview. - * @type string $sdk_blob - * Base64 encoded JSON representing array of - * tuple. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Web content snippet that can be embedded in a web page or an app - * webview. - * - * Generated from protobuf field string rendered_content = 1; - * @return string - */ - public function getRenderedContent() - { - return $this->rendered_content; - } - - /** - * Web content snippet that can be embedded in a web page or an app - * webview. - * - * Generated from protobuf field string rendered_content = 1; - * @param string $var - * @return $this - */ - public function setRenderedContent($var) - { - GPBUtil::checkString($var, True); - $this->rendered_content = $var; - - return $this; - } - - /** - * Base64 encoded JSON representing array of - * tuple. - * - * Generated from protobuf field bytes sdk_blob = 2; - * @return string - */ - public function getSdkBlob() - { - return $this->sdk_blob; - } - - /** - * Base64 encoded JSON representing array of - * tuple. - * - * Generated from protobuf field bytes sdk_blob = 2; - * @param string $var - * @return $this - */ - public function setSdkBlob($var) - { - GPBUtil::checkString($var, False); - $this->sdk_blob = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchEntryPoint::class, \Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse_Candidate_GroundingMetadata_SearchEntryPoint::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetAnswerRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetAnswerRequest.php deleted file mode 100644 index 624260872ffc..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetAnswerRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.discoveryengine.v1.GetAnswerRequest - */ -class GetAnswerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Answer to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_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 Answer to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` - * Please see {@see ConversationalSearchServiceClient::answerName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\GetAnswerRequest - * - * @experimental - */ - public static function 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 Answer to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Answer to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_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 Answer to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine_id}/sessions/{session_id}/answers/{answer_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetControlRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetControlRequest.php deleted file mode 100644 index a477700e21c1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetControlRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.discoveryengine.v1.GetControlRequest - */ -class GetControlRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Control to get. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_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 Control to get. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` - * Please see {@see ControlServiceClient::controlName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\GetControlRequest - * - * @experimental - */ - public static function 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 Control to get. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ControlService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Control to get. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_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 Control to get. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}/controls/{control_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetConversationRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetConversationRequest.php deleted file mode 100644 index 52237d85f733..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetConversationRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.discoveryengine.v1.GetConversationRequest - */ -class GetConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Conversation to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 Conversation to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` - * Please see {@see ConversationalSearchServiceClient::conversationName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\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 resource name of the Conversation to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Conversation to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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 Conversation to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/conversations/{conversation_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetDataStoreRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetDataStoreRequest.php deleted file mode 100644 index d002189dcfbd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetDataStoreRequest.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.discoveryengine.v1.GetDataStoreRequest - */ -class GetDataStoreRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * If the caller does not have permission to access the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [DataStore][google.cloud.discoveryengine.v1.DataStore] - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * - * If the caller does not have permission to access the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * - * If the requested [DataStore][google.cloud.discoveryengine.v1.DataStore] - * does not exist, a NOT_FOUND error is returned. Please see - * {@see DataStoreServiceClient::dataStoreName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\GetDataStoreRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * If the caller does not have permission to access the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [DataStore][google.cloud.discoveryengine.v1.DataStore] - * does not exist, a NOT_FOUND error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DataStoreService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * If the caller does not have permission to access the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [DataStore][google.cloud.discoveryengine.v1.DataStore] - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * If the caller does not have permission to access the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [DataStore][google.cloud.discoveryengine.v1.DataStore] - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetDocumentRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetDocumentRequest.php deleted file mode 100644 index 78e81f128155..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetDocumentRequest.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.discoveryengine.v1.GetDocumentRequest - */ -class GetDocumentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of - * [Document][google.cloud.discoveryengine.v1.Document], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. - * If the caller does not have permission to access the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the requested [Document][google.cloud.discoveryengine.v1.Document] does - * not exist, a `NOT_FOUND` error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Full resource name of - * [Document][google.cloud.discoveryengine.v1.Document], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. - * - * If the caller does not have permission to access the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * - * If the requested [Document][google.cloud.discoveryengine.v1.Document] does - * not exist, a `NOT_FOUND` error is returned. Please see - * {@see DocumentServiceClient::documentName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\GetDocumentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Full resource name of - * [Document][google.cloud.discoveryengine.v1.Document], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. - * If the caller does not have permission to access the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the requested [Document][google.cloud.discoveryengine.v1.Document] does - * not exist, a `NOT_FOUND` error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of - * [Document][google.cloud.discoveryengine.v1.Document], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. - * If the caller does not have permission to access the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the requested [Document][google.cloud.discoveryengine.v1.Document] does - * not exist, a `NOT_FOUND` error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Full resource name of - * [Document][google.cloud.discoveryengine.v1.Document], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}`. - * If the caller does not have permission to access the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the requested [Document][google.cloud.discoveryengine.v1.Document] does - * not exist, a `NOT_FOUND` error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetEngineRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetEngineRequest.php deleted file mode 100644 index b68da9ef3f36..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetEngineRequest.php +++ /dev/null @@ -1,93 +0,0 @@ -google.cloud.discoveryengine.v1.GetEngineRequest - */ -class GetEngineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of - * [Engine][google.cloud.discoveryengine.v1.Engine], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Full resource name of - * [Engine][google.cloud.discoveryengine.v1.Engine], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. Please see - * {@see EngineServiceClient::engineName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\GetEngineRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Full resource name of - * [Engine][google.cloud.discoveryengine.v1.Engine], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\EngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of - * [Engine][google.cloud.discoveryengine.v1.Engine], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_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. Full resource name of - * [Engine][google.cloud.discoveryengine.v1.Engine], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSchemaRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSchemaRequest.php deleted file mode 100644 index 4a9036b219e9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSchemaRequest.php +++ /dev/null @@ -1,88 +0,0 @@ -google.cloud.discoveryengine.v1.GetSchemaRequest - */ -class GetSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. Please see - * {@see SchemaServiceClient::schemaName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\GetSchemaRequest - * - * @experimental - */ - public static function 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 full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SchemaService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSessionRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSessionRequest.php deleted file mode 100644 index cee01b9265bc..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSessionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.discoveryengine.v1.GetSessionRequest - */ -class GetSessionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Session to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_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 Session to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` - * Please see {@see ConversationalSearchServiceClient::sessionName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\GetSessionRequest - * - * @experimental - */ - public static function 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 Session to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_id}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Session to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_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 Session to get. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}/sessions/{session_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSiteSearchEngineRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSiteSearchEngineRequest.php deleted file mode 100644 index e7b7ba255c92..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetSiteSearchEngineRequest.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.discoveryengine.v1.GetSiteSearchEngineRequest - */ -class GetSiteSearchEngineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * If the caller does not have permission to access the [SiteSearchEngine], - * regardless of whether or not it exists, a PERMISSION_DENIED error is - * returned. - * - * 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 - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * If the caller does not have permission to access the [SiteSearchEngine], - * regardless of whether or not it exists, a PERMISSION_DENIED error is - * returned. Please see - * {@see SiteSearchEngineServiceClient::siteSearchEngineName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\GetSiteSearchEngineRequest - * - * @experimental - */ - public static function 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 - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * If the caller does not have permission to access the [SiteSearchEngine], - * regardless of whether or not it exists, a PERMISSION_DENIED error is - * returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * If the caller does not have permission to access the [SiteSearchEngine], - * regardless of whether or not it exists, a PERMISSION_DENIED error is - * returned. - * - * Generated 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 - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * If the caller does not have permission to access the [SiteSearchEngine], - * regardless of whether or not it exists, a PERMISSION_DENIED error is - * returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetTargetSiteRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetTargetSiteRequest.php deleted file mode 100644 index 8e3e03953d88..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GetTargetSiteRequest.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.discoveryengine.v1.GetTargetSiteRequest - */ -class GetTargetSiteRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`. - * If the caller does not have permission to access the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite] - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Full resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`. - * - * If the caller does not have permission to access the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * - * If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite] - * does not exist, a NOT_FOUND error is returned. Please see - * {@see SiteSearchEngineServiceClient::targetSiteName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\GetTargetSiteRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Full resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`. - * If the caller does not have permission to access the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite] - * does not exist, a NOT_FOUND error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`. - * If the caller does not have permission to access the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite] - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Full resource name of - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}`. - * If the caller does not have permission to access the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the requested [TargetSite][google.cloud.discoveryengine.v1.TargetSite] - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundedGenerationContent.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundedGenerationContent.php deleted file mode 100644 index b0e40bee2852..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundedGenerationContent.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.discoveryengine.v1.GroundedGenerationContent - */ -class GroundedGenerationContent extends \Google\Protobuf\Internal\Message -{ - /** - * Producer of the content. Must be either `user` or `model`. - * Intended to be used for multi-turn conversations. Otherwise, it can be left - * unset. - * - * Generated from protobuf field string role = 1; - */ - protected $role = ''; - /** - * Ordered `Parts` that constitute a single message. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; - */ - private $parts; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $role - * Producer of the content. Must be either `user` or `model`. - * Intended to be used for multi-turn conversations. Otherwise, it can be left - * unset. - * @type array<\Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent\Part>|\Google\Protobuf\Internal\RepeatedField $parts - * Ordered `Parts` that constitute a single message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Producer of the content. Must be either `user` or `model`. - * Intended to be used for multi-turn conversations. Otherwise, it can be left - * unset. - * - * Generated from protobuf field string role = 1; - * @return string - */ - public function getRole() - { - return $this->role; - } - - /** - * Producer of the content. Must be either `user` or `model`. - * Intended to be used for multi-turn conversations. Otherwise, it can be left - * unset. - * - * Generated from protobuf field string role = 1; - * @param string $var - * @return $this - */ - public function setRole($var) - { - GPBUtil::checkString($var, True); - $this->role = $var; - - return $this; - } - - /** - * Ordered `Parts` that constitute a single message. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParts() - { - return $this->parts; - } - - /** - * Ordered `Parts` that constitute a single message. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.GroundedGenerationContent.Part parts = 2; - * @param array<\Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent\Part>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent\Part::class); - $this->parts = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundedGenerationContent/Part.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundedGenerationContent/Part.php deleted file mode 100644 index 2724506e8de2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundedGenerationContent/Part.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.discoveryengine.v1.GroundedGenerationContent.Part - */ -class Part extends \Google\Protobuf\Internal\Message -{ - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Inline text. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\GroundedGenerationService::initOnce(); - parent::__construct($data); - } - - /** - * Inline text. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->readOneof(1); - } - - public function hasText() - { - return $this->hasOneof(1); - } - - /** - * Inline text. - * - * Generated from protobuf field string text = 1; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Part::class, \Google\Cloud\DiscoveryEngine\V1\GroundedGenerationContent_Part::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundingFact.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundingFact.php deleted file mode 100644 index b640640efa03..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/GroundingFact.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.discoveryengine.v1.GroundingFact - */ -class GroundingFact extends \Google\Protobuf\Internal\Message -{ - /** - * Text content of the fact. Can be at most 10K characters long. - * - * Generated from protobuf field string fact_text = 1; - */ - protected $fact_text = ''; - /** - * Attributes associated with the fact. - * Common attributes include `source` (indicating where the fact was sourced - * from), `author` (indicating the author of the fact), and so on. - * - * Generated from protobuf field map attributes = 2; - */ - private $attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $fact_text - * Text content of the fact. Can be at most 10K characters long. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Attributes associated with the fact. - * Common attributes include `source` (indicating where the fact was sourced - * from), `author` (indicating the author of the fact), and so on. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Grounding::initOnce(); - parent::__construct($data); - } - - /** - * Text content of the fact. Can be at most 10K characters long. - * - * Generated from protobuf field string fact_text = 1; - * @return string - */ - public function getFactText() - { - return $this->fact_text; - } - - /** - * Text content of the fact. Can be at most 10K characters long. - * - * Generated from protobuf field string fact_text = 1; - * @param string $var - * @return $this - */ - public function setFactText($var) - { - GPBUtil::checkString($var, True); - $this->fact_text = $var; - - return $this; - } - - /** - * Attributes associated with the fact. - * Common attributes include `source` (indicating where the fact was sourced - * from), `author` (indicating the author of the fact), and so on. - * - * Generated from protobuf field map attributes = 2; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Attributes associated with the fact. - * Common attributes include `source` (indicating where the fact was sourced - * from), `author` (indicating the author of the fact), and so on. - * - * Generated from protobuf field map attributes = 2; - * @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::STRING); - $this->attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsMetadata.php deleted file mode 100644 index a14fbccf2dca..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsMetadata.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.discoveryengine.v1.ImportCompletionSuggestionsMetadata - */ -class ImportCompletionSuggestionsMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - /** - * Count of - * [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s - * successfully imported. - * - * Generated from protobuf field int64 success_count = 3; - */ - protected $success_count = 0; - /** - * Count of - * [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s - * that failed to be imported. - * - * Generated from protobuf field int64 failure_count = 4; - */ - protected $failure_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * @type int|string $success_count - * Count of - * [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s - * successfully imported. - * @type int|string $failure_count - * Count of - * [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s - * that failed to be imported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - - /** - * Count of - * [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s - * successfully imported. - * - * Generated from protobuf field int64 success_count = 3; - * @return int|string - */ - public function getSuccessCount() - { - return $this->success_count; - } - - /** - * Count of - * [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s - * successfully imported. - * - * Generated from protobuf field int64 success_count = 3; - * @param int|string $var - * @return $this - */ - public function setSuccessCount($var) - { - GPBUtil::checkInt64($var); - $this->success_count = $var; - - return $this; - } - - /** - * Count of - * [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s - * that failed to be imported. - * - * Generated from protobuf field int64 failure_count = 4; - * @return int|string - */ - public function getFailureCount() - { - return $this->failure_count; - } - - /** - * Count of - * [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s - * that failed to be imported. - * - * Generated from protobuf field int64 failure_count = 4; - * @param int|string $var - * @return $this - */ - public function setFailureCount($var) - { - GPBUtil::checkInt64($var); - $this->failure_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsRequest.php deleted file mode 100644 index f2691232c802..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsRequest.php +++ /dev/null @@ -1,229 +0,0 @@ -google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest - */ -class ImportCompletionSuggestionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent data store resource name for which to import customer - * autocomplete suggestions. - * Follows pattern `projects/*/locations/*/collections/*/dataStores/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The desired location of errors incurred during the Import. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - */ - protected $error_config = null; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\ImportCompletionSuggestionsRequest\InlineSource $inline_source - * The Inline source for suggestion entries. - * @type \Google\Cloud\DiscoveryEngine\V1\GcsSource $gcs_source - * Cloud Storage location for the input content. - * @type \Google\Cloud\DiscoveryEngine\V1\BigQuerySource $bigquery_source - * BigQuery input source. - * @type string $parent - * Required. The parent data store resource name for which to import customer - * autocomplete suggestions. - * Follows pattern `projects/*/locations/*/collections/*/dataStores/*` - * @type \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $error_config - * The desired location of errors incurred during the Import. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The Inline source for suggestion entries. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportCompletionSuggestionsRequest\InlineSource|null - */ - public function getInlineSource() - { - return $this->readOneof(2); - } - - public function hasInlineSource() - { - return $this->hasOneof(2); - } - - /** - * The Inline source for suggestion entries. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest.InlineSource inline_source = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportCompletionSuggestionsRequest\InlineSource $var - * @return $this - */ - public function setInlineSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportCompletionSuggestionsRequest\InlineSource::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Cloud Storage location for the input content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\GcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(3); - } - - public function hasGcsSource() - { - return $this->hasOneof(3); - } - - /** - * Cloud Storage location for the input content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\GcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GcsSource::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * BigQuery input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\BigQuerySource|null - */ - public function getBigquerySource() - { - return $this->readOneof(4); - } - - public function hasBigquerySource() - { - return $this->hasOneof(4); - } - - /** - * BigQuery input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\BigQuerySource $var - * @return $this - */ - public function setBigquerySource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\BigQuerySource::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Required. The parent data store resource name for which to import customer - * autocomplete suggestions. - * Follows pattern `projects/*/locations/*/collections/*/dataStores/*` - * - * Generated 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 data store resource name for which to import customer - * autocomplete suggestions. - * Follows pattern `projects/*/locations/*/collections/*/dataStores/*` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 desired location of errors incurred during the Import. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig|null - */ - public function getErrorConfig() - { - return $this->error_config; - } - - public function hasErrorConfig() - { - return isset($this->error_config); - } - - public function clearErrorConfig() - { - unset($this->error_config); - } - - /** - * The desired location of errors incurred during the Import. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $var - * @return $this - */ - public function setErrorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig::class); - $this->error_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsRequest/InlineSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsRequest/InlineSource.php deleted file mode 100644 index 3666ac322427..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsRequest/InlineSource.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.ImportCompletionSuggestionsRequest.InlineSource - */ -class InlineSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A list of all denylist entries to import. Max of 1000 items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $suggestions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\CompletionSuggestion>|\Google\Protobuf\Internal\RepeatedField $suggestions - * Required. A list of all denylist entries to import. Max of 1000 items. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. A list of all denylist entries to import. Max of 1000 items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSuggestions() - { - return $this->suggestions; - } - - /** - * Required. A list of all denylist entries to import. Max of 1000 items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CompletionSuggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\DiscoveryEngine\V1\CompletionSuggestion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSuggestions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\CompletionSuggestion::class); - $this->suggestions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InlineSource::class, \Google\Cloud\DiscoveryEngine\V1\ImportCompletionSuggestionsRequest_InlineSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsResponse.php deleted file mode 100644 index b0ba5bd19d9a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportCompletionSuggestionsResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.discoveryengine.v1.ImportCompletionSuggestionsResponse - */ -class ImportCompletionSuggestionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - */ - private $error_samples; - /** - * The desired location of errors incurred during the Import. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - */ - protected $error_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $error_samples - * A sample of errors encountered while processing the request. - * @type \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $error_config - * The desired location of errors incurred during the Import. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorSamples() - { - return $this->error_samples; - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorSamples($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->error_samples = $arr; - - return $this; - } - - /** - * The desired location of errors incurred during the Import. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig|null - */ - public function getErrorConfig() - { - return $this->error_config; - } - - public function hasErrorConfig() - { - return isset($this->error_config); - } - - public function clearErrorConfig() - { - unset($this->error_config); - } - - /** - * The desired location of errors incurred during the Import. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $var - * @return $this - */ - public function setErrorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig::class); - $this->error_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsMetadata.php deleted file mode 100644 index 25d43b37aed8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsMetadata.php +++ /dev/null @@ -1,228 +0,0 @@ -google.cloud.discoveryengine.v1.ImportDocumentsMetadata - */ -class ImportDocumentsMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - /** - * Count of entries that were processed successfully. - * - * Generated from protobuf field int64 success_count = 3; - */ - protected $success_count = 0; - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - */ - protected $failure_count = 0; - /** - * Total count of entries that were processed. - * - * Generated from protobuf field int64 total_count = 5; - */ - protected $total_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * @type int|string $success_count - * Count of entries that were processed successfully. - * @type int|string $failure_count - * Count of entries that encountered errors while processing. - * @type int|string $total_count - * Total count of entries that were processed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - - /** - * Count of entries that were processed successfully. - * - * Generated from protobuf field int64 success_count = 3; - * @return int|string - */ - public function getSuccessCount() - { - return $this->success_count; - } - - /** - * Count of entries that were processed successfully. - * - * Generated from protobuf field int64 success_count = 3; - * @param int|string $var - * @return $this - */ - public function setSuccessCount($var) - { - GPBUtil::checkInt64($var); - $this->success_count = $var; - - return $this; - } - - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - * @return int|string - */ - public function getFailureCount() - { - return $this->failure_count; - } - - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - * @param int|string $var - * @return $this - */ - public function setFailureCount($var) - { - GPBUtil::checkInt64($var); - $this->failure_count = $var; - - return $this; - } - - /** - * Total count of entries that were processed. - * - * Generated from protobuf field int64 total_count = 5; - * @return int|string - */ - public function getTotalCount() - { - return $this->total_count; - } - - /** - * Total count of entries that were processed. - * - * Generated from protobuf field int64 total_count = 5; - * @param int|string $var - * @return $this - */ - public function setTotalCount($var) - { - GPBUtil::checkInt64($var); - $this->total_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest.php deleted file mode 100644 index 52f995f29ff4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest.php +++ /dev/null @@ -1,775 +0,0 @@ -google.cloud.discoveryengine.v1.ImportDocumentsRequest - */ -class ImportDocumentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * Requires create/update permission. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The desired location of errors incurred during the Import. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - */ - protected $error_config = null; - /** - * The mode of reconciliation between existing documents and the documents to - * be imported. Defaults to - * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - */ - protected $reconciliation_mode = 0; - /** - * Indicates which fields in the provided imported documents to update. If - * not set, the default is to update all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 7; - */ - protected $update_mask = null; - /** - * Whether to automatically generate IDs for the documents if absent. - * If set to `true`, - * [Document.id][google.cloud.discoveryengine.v1.Document.id]s are - * automatically generated based on the hash of the payload, where IDs may not - * be consistent during multiple imports. In which case - * [ReconciliationMode.FULL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.FULL] - * is highly recommended to avoid duplicate contents. If unset or set to - * `false`, [Document.id][google.cloud.discoveryengine.v1.Document.id]s have - * to be specified using - * [id_field][google.cloud.discoveryengine.v1.ImportDocumentsRequest.id_field], - * otherwise, documents without IDs fail to be imported. - * Supported data sources: - * * [GcsSource][google.cloud.discoveryengine.v1.GcsSource]. - * [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource]. - * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. - * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. - * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. - * - * Generated from protobuf field bool auto_generate_ids = 8; - */ - protected $auto_generate_ids = false; - /** - * The field indicates the ID field or column to be used as unique IDs of - * the documents. - * For [GcsSource][google.cloud.discoveryengine.v1.GcsSource] it is the key of - * the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. - * For others, it may be the column name of the table where the unique ids are - * stored. - * The values of the JSON field or the table column are used as the - * [Document.id][google.cloud.discoveryengine.v1.Document.id]s. The JSON field - * or the table column must be of string type, and the values must be set as - * valid strings conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * with 1-63 characters. Otherwise, documents without valid IDs fail to be - * imported. - * Only set this field when - * [auto_generate_ids][google.cloud.discoveryengine.v1.ImportDocumentsRequest.auto_generate_ids] - * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown. - * If it is unset, a default value `_id` is used when importing from the - * allowed data sources. - * Supported data sources: - * * [GcsSource][google.cloud.discoveryengine.v1.GcsSource]. - * [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource]. - * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. - * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. - * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. - * - * Generated from protobuf field string id_field = 9; - */ - protected $id_field = ''; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\ImportDocumentsRequest\InlineSource $inline_source - * The Inline source for the input content for documents. - * @type \Google\Cloud\DiscoveryEngine\V1\GcsSource $gcs_source - * Cloud Storage location for the input content. - * @type \Google\Cloud\DiscoveryEngine\V1\BigQuerySource $bigquery_source - * BigQuery input source. - * @type \Google\Cloud\DiscoveryEngine\V1\FhirStoreSource $fhir_store_source - * FhirStore input source. - * @type \Google\Cloud\DiscoveryEngine\V1\SpannerSource $spanner_source - * Spanner input source. - * @type \Google\Cloud\DiscoveryEngine\V1\CloudSqlSource $cloud_sql_source - * Cloud SQL input source. - * @type \Google\Cloud\DiscoveryEngine\V1\FirestoreSource $firestore_source - * Firestore input source. - * @type \Google\Cloud\DiscoveryEngine\V1\AlloyDbSource $alloy_db_source - * AlloyDB input source. - * @type \Google\Cloud\DiscoveryEngine\V1\BigtableSource $bigtable_source - * Cloud Bigtable input source. - * @type string $parent - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * Requires create/update permission. - * @type \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $error_config - * The desired location of errors incurred during the Import. - * @type int $reconciliation_mode - * The mode of reconciliation between existing documents and the documents to - * be imported. Defaults to - * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL]. - * @type \Google\Protobuf\FieldMask $update_mask - * Indicates which fields in the provided imported documents to update. If - * not set, the default is to update all fields. - * @type bool $auto_generate_ids - * Whether to automatically generate IDs for the documents if absent. - * If set to `true`, - * [Document.id][google.cloud.discoveryengine.v1.Document.id]s are - * automatically generated based on the hash of the payload, where IDs may not - * be consistent during multiple imports. In which case - * [ReconciliationMode.FULL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.FULL] - * is highly recommended to avoid duplicate contents. If unset or set to - * `false`, [Document.id][google.cloud.discoveryengine.v1.Document.id]s have - * to be specified using - * [id_field][google.cloud.discoveryengine.v1.ImportDocumentsRequest.id_field], - * otherwise, documents without IDs fail to be imported. - * Supported data sources: - * * [GcsSource][google.cloud.discoveryengine.v1.GcsSource]. - * [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource]. - * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. - * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. - * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. - * @type string $id_field - * The field indicates the ID field or column to be used as unique IDs of - * the documents. - * For [GcsSource][google.cloud.discoveryengine.v1.GcsSource] it is the key of - * the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. - * For others, it may be the column name of the table where the unique ids are - * stored. - * The values of the JSON field or the table column are used as the - * [Document.id][google.cloud.discoveryengine.v1.Document.id]s. The JSON field - * or the table column must be of string type, and the values must be set as - * valid strings conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * with 1-63 characters. Otherwise, documents without valid IDs fail to be - * imported. - * Only set this field when - * [auto_generate_ids][google.cloud.discoveryengine.v1.ImportDocumentsRequest.auto_generate_ids] - * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown. - * If it is unset, a default value `_id` is used when importing from the - * allowed data sources. - * Supported data sources: - * * [GcsSource][google.cloud.discoveryengine.v1.GcsSource]. - * [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource]. - * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. - * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. - * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The Inline source for the input content for documents. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportDocumentsRequest\InlineSource|null - */ - public function getInlineSource() - { - return $this->readOneof(2); - } - - public function hasInlineSource() - { - return $this->hasOneof(2); - } - - /** - * The Inline source for the input content for documents. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource inline_source = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportDocumentsRequest\InlineSource $var - * @return $this - */ - public function setInlineSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportDocumentsRequest\InlineSource::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Cloud Storage location for the input content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\GcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(3); - } - - public function hasGcsSource() - { - return $this->hasOneof(3); - } - - /** - * Cloud Storage location for the input content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\GcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GcsSource::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * BigQuery input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\BigQuerySource|null - */ - public function getBigquerySource() - { - return $this->readOneof(4); - } - - public function hasBigquerySource() - { - return $this->hasOneof(4); - } - - /** - * BigQuery input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\BigQuerySource $var - * @return $this - */ - public function setBigquerySource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\BigQuerySource::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * FhirStore input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.FhirStoreSource fhir_store_source = 10; - * @return \Google\Cloud\DiscoveryEngine\V1\FhirStoreSource|null - */ - public function getFhirStoreSource() - { - return $this->readOneof(10); - } - - public function hasFhirStoreSource() - { - return $this->hasOneof(10); - } - - /** - * FhirStore input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.FhirStoreSource fhir_store_source = 10; - * @param \Google\Cloud\DiscoveryEngine\V1\FhirStoreSource $var - * @return $this - */ - public function setFhirStoreSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\FhirStoreSource::class); - $this->writeOneof(10, $var); - - return $this; - } - - /** - * Spanner input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SpannerSource spanner_source = 11; - * @return \Google\Cloud\DiscoveryEngine\V1\SpannerSource|null - */ - public function getSpannerSource() - { - return $this->readOneof(11); - } - - public function hasSpannerSource() - { - return $this->hasOneof(11); - } - - /** - * Spanner input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SpannerSource spanner_source = 11; - * @param \Google\Cloud\DiscoveryEngine\V1\SpannerSource $var - * @return $this - */ - public function setSpannerSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SpannerSource::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Cloud SQL input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CloudSqlSource cloud_sql_source = 12; - * @return \Google\Cloud\DiscoveryEngine\V1\CloudSqlSource|null - */ - public function getCloudSqlSource() - { - return $this->readOneof(12); - } - - public function hasCloudSqlSource() - { - return $this->hasOneof(12); - } - - /** - * Cloud SQL input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CloudSqlSource cloud_sql_source = 12; - * @param \Google\Cloud\DiscoveryEngine\V1\CloudSqlSource $var - * @return $this - */ - public function setCloudSqlSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\CloudSqlSource::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Firestore input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.FirestoreSource firestore_source = 13; - * @return \Google\Cloud\DiscoveryEngine\V1\FirestoreSource|null - */ - public function getFirestoreSource() - { - return $this->readOneof(13); - } - - public function hasFirestoreSource() - { - return $this->hasOneof(13); - } - - /** - * Firestore input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.FirestoreSource firestore_source = 13; - * @param \Google\Cloud\DiscoveryEngine\V1\FirestoreSource $var - * @return $this - */ - public function setFirestoreSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\FirestoreSource::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * AlloyDB input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AlloyDbSource alloy_db_source = 14; - * @return \Google\Cloud\DiscoveryEngine\V1\AlloyDbSource|null - */ - public function getAlloyDbSource() - { - return $this->readOneof(14); - } - - public function hasAlloyDbSource() - { - return $this->hasOneof(14); - } - - /** - * AlloyDB input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.AlloyDbSource alloy_db_source = 14; - * @param \Google\Cloud\DiscoveryEngine\V1\AlloyDbSource $var - * @return $this - */ - public function setAlloyDbSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\AlloyDbSource::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * Cloud Bigtable input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableSource bigtable_source = 15; - * @return \Google\Cloud\DiscoveryEngine\V1\BigtableSource|null - */ - public function getBigtableSource() - { - return $this->readOneof(15); - } - - public function hasBigtableSource() - { - return $this->hasOneof(15); - } - - /** - * Cloud Bigtable input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigtableSource bigtable_source = 15; - * @param \Google\Cloud\DiscoveryEngine\V1\BigtableSource $var - * @return $this - */ - public function setBigtableSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\BigtableSource::class); - $this->writeOneof(15, $var); - - return $this; - } - - /** - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * Requires create/update permission. - * - * Generated 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 branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * Requires create/update permission. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 desired location of errors incurred during the Import. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig|null - */ - public function getErrorConfig() - { - return $this->error_config; - } - - public function hasErrorConfig() - { - return isset($this->error_config); - } - - public function clearErrorConfig() - { - unset($this->error_config); - } - - /** - * The desired location of errors incurred during the Import. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $var - * @return $this - */ - public function setErrorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig::class); - $this->error_config = $var; - - return $this; - } - - /** - * The mode of reconciliation between existing documents and the documents to - * be imported. Defaults to - * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * @return int - */ - public function getReconciliationMode() - { - return $this->reconciliation_mode; - } - - /** - * The mode of reconciliation between existing documents and the documents to - * be imported. Defaults to - * [ReconciliationMode.INCREMENTAL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.INCREMENTAL]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode reconciliation_mode = 6; - * @param int $var - * @return $this - */ - public function setReconciliationMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\ImportDocumentsRequest\ReconciliationMode::class); - $this->reconciliation_mode = $var; - - return $this; - } - - /** - * Indicates which fields in the provided imported documents to update. If - * not set, the default is to update all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 7; - * @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); - } - - /** - * Indicates which fields in the provided imported documents to update. If - * not set, the default is to update all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 7; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Whether to automatically generate IDs for the documents if absent. - * If set to `true`, - * [Document.id][google.cloud.discoveryengine.v1.Document.id]s are - * automatically generated based on the hash of the payload, where IDs may not - * be consistent during multiple imports. In which case - * [ReconciliationMode.FULL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.FULL] - * is highly recommended to avoid duplicate contents. If unset or set to - * `false`, [Document.id][google.cloud.discoveryengine.v1.Document.id]s have - * to be specified using - * [id_field][google.cloud.discoveryengine.v1.ImportDocumentsRequest.id_field], - * otherwise, documents without IDs fail to be imported. - * Supported data sources: - * * [GcsSource][google.cloud.discoveryengine.v1.GcsSource]. - * [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource]. - * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. - * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. - * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. - * - * Generated from protobuf field bool auto_generate_ids = 8; - * @return bool - */ - public function getAutoGenerateIds() - { - return $this->auto_generate_ids; - } - - /** - * Whether to automatically generate IDs for the documents if absent. - * If set to `true`, - * [Document.id][google.cloud.discoveryengine.v1.Document.id]s are - * automatically generated based on the hash of the payload, where IDs may not - * be consistent during multiple imports. In which case - * [ReconciliationMode.FULL][google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode.FULL] - * is highly recommended to avoid duplicate contents. If unset or set to - * `false`, [Document.id][google.cloud.discoveryengine.v1.Document.id]s have - * to be specified using - * [id_field][google.cloud.discoveryengine.v1.ImportDocumentsRequest.id_field], - * otherwise, documents without IDs fail to be imported. - * Supported data sources: - * * [GcsSource][google.cloud.discoveryengine.v1.GcsSource]. - * [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource]. - * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. - * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. - * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. - * - * Generated from protobuf field bool auto_generate_ids = 8; - * @param bool $var - * @return $this - */ - public function setAutoGenerateIds($var) - { - GPBUtil::checkBool($var); - $this->auto_generate_ids = $var; - - return $this; - } - - /** - * The field indicates the ID field or column to be used as unique IDs of - * the documents. - * For [GcsSource][google.cloud.discoveryengine.v1.GcsSource] it is the key of - * the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. - * For others, it may be the column name of the table where the unique ids are - * stored. - * The values of the JSON field or the table column are used as the - * [Document.id][google.cloud.discoveryengine.v1.Document.id]s. The JSON field - * or the table column must be of string type, and the values must be set as - * valid strings conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * with 1-63 characters. Otherwise, documents without valid IDs fail to be - * imported. - * Only set this field when - * [auto_generate_ids][google.cloud.discoveryengine.v1.ImportDocumentsRequest.auto_generate_ids] - * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown. - * If it is unset, a default value `_id` is used when importing from the - * allowed data sources. - * Supported data sources: - * * [GcsSource][google.cloud.discoveryengine.v1.GcsSource]. - * [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource]. - * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. - * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. - * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. - * - * Generated from protobuf field string id_field = 9; - * @return string - */ - public function getIdField() - { - return $this->id_field; - } - - /** - * The field indicates the ID field or column to be used as unique IDs of - * the documents. - * For [GcsSource][google.cloud.discoveryengine.v1.GcsSource] it is the key of - * the JSON field. For instance, `my_id` for JSON `{"my_id": "some_uuid"}`. - * For others, it may be the column name of the table where the unique ids are - * stored. - * The values of the JSON field or the table column are used as the - * [Document.id][google.cloud.discoveryengine.v1.Document.id]s. The JSON field - * or the table column must be of string type, and the values must be set as - * valid strings conform to [RFC-1034](https://tools.ietf.org/html/rfc1034) - * with 1-63 characters. Otherwise, documents without valid IDs fail to be - * imported. - * Only set this field when - * [auto_generate_ids][google.cloud.discoveryengine.v1.ImportDocumentsRequest.auto_generate_ids] - * is unset or set as `false`. Otherwise, an INVALID_ARGUMENT error is thrown. - * If it is unset, a default value `_id` is used when importing from the - * allowed data sources. - * Supported data sources: - * * [GcsSource][google.cloud.discoveryengine.v1.GcsSource]. - * [GcsSource.data_schema][google.cloud.discoveryengine.v1.GcsSource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [BigQuerySource][google.cloud.discoveryengine.v1.BigQuerySource]. - * [BigQuerySource.data_schema][google.cloud.discoveryengine.v1.BigQuerySource.data_schema] - * must be `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. - * * [SpannerSource][google.cloud.discoveryengine.v1.SpannerSource]. - * * [CloudSqlSource][google.cloud.discoveryengine.v1.CloudSqlSource]. - * * [FirestoreSource][google.cloud.discoveryengine.v1.FirestoreSource]. - * * [BigtableSource][google.cloud.discoveryengine.v1.BigtableSource]. - * - * Generated from protobuf field string id_field = 9; - * @param string $var - * @return $this - */ - public function setIdField($var) - { - GPBUtil::checkString($var, True); - $this->id_field = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest/InlineSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest/InlineSource.php deleted file mode 100644 index 91d8e2deac22..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest/InlineSource.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.discoveryengine.v1.ImportDocumentsRequest.InlineSource - */ -class InlineSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A list of documents to update/create. Each document must have a - * valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. - * Recommended max of 100 items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $documents; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\Document>|\Google\Protobuf\Internal\RepeatedField $documents - * Required. A list of documents to update/create. Each document must have a - * valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. - * Recommended max of 100 items. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. A list of documents to update/create. Each document must have a - * valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. - * Recommended max of 100 items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDocuments() - { - return $this->documents; - } - - /** - * Required. A list of documents to update/create. Each document must have a - * valid [Document.id][google.cloud.discoveryengine.v1.Document.id]. - * Recommended max of 100 items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Document documents = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Document>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDocuments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Document::class); - $this->documents = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InlineSource::class, \Google\Cloud\DiscoveryEngine\V1\ImportDocumentsRequest_InlineSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest/ReconciliationMode.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest/ReconciliationMode.php deleted file mode 100644 index 79233aafc417..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsRequest/ReconciliationMode.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.discoveryengine.v1.ImportDocumentsRequest.ReconciliationMode - */ -class ReconciliationMode -{ - /** - * Defaults to `INCREMENTAL`. - * - * Generated from protobuf enum RECONCILIATION_MODE_UNSPECIFIED = 0; - */ - const RECONCILIATION_MODE_UNSPECIFIED = 0; - /** - * Inserts new documents or updates existing documents. - * - * Generated from protobuf enum INCREMENTAL = 1; - */ - const INCREMENTAL = 1; - /** - * Calculates diff and replaces the entire document dataset. Existing - * documents may be deleted if they are not present in the source location. - * - * Generated from protobuf enum FULL = 2; - */ - const FULL = 2; - - private static $valueToName = [ - self::RECONCILIATION_MODE_UNSPECIFIED => 'RECONCILIATION_MODE_UNSPECIFIED', - self::INCREMENTAL => 'INCREMENTAL', - self::FULL => 'FULL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ReconciliationMode::class, \Google\Cloud\DiscoveryEngine\V1\ImportDocumentsRequest_ReconciliationMode::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsResponse.php deleted file mode 100644 index 418453382756..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportDocumentsResponse.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.discoveryengine.v1.ImportDocumentsResponse - */ -class ImportDocumentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - */ - private $error_samples; - /** - * Echoes the destination for the complete errors in the request if set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - */ - protected $error_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $error_samples - * A sample of errors encountered while processing the request. - * @type \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $error_config - * Echoes the destination for the complete errors in the request if set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorSamples() - { - return $this->error_samples; - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorSamples($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->error_samples = $arr; - - return $this; - } - - /** - * Echoes the destination for the complete errors in the request if set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig|null - */ - public function getErrorConfig() - { - return $this->error_config; - } - - public function hasErrorConfig() - { - return isset($this->error_config); - } - - public function clearErrorConfig() - { - unset($this->error_config); - } - - /** - * Echoes the destination for the complete errors in the request if set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $var - * @return $this - */ - public function setErrorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig::class); - $this->error_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportErrorConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportErrorConfig.php deleted file mode 100644 index 964ab8054b69..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportErrorConfig.php +++ /dev/null @@ -1,84 +0,0 @@ -google.cloud.discoveryengine.v1.ImportErrorConfig - */ -class ImportErrorConfig extends \Google\Protobuf\Internal\Message -{ - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_prefix - * Cloud Storage prefix for import errors. This must be an empty, - * existing Cloud Storage directory. Import errors are written to - * sharded files in this directory, one per line, as a JSON-encoded - * `google.rpc.Status` message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Storage prefix for import errors. This must be an empty, - * existing Cloud Storage directory. Import errors are written to - * sharded files in this directory, one per line, as a JSON-encoded - * `google.rpc.Status` message. - * - * Generated from protobuf field string gcs_prefix = 1; - * @return string - */ - public function getGcsPrefix() - { - return $this->readOneof(1); - } - - public function hasGcsPrefix() - { - return $this->hasOneof(1); - } - - /** - * Cloud Storage prefix for import errors. This must be an empty, - * existing Cloud Storage directory. Import errors are written to - * sharded files in this directory, one per line, as a JSON-encoded - * `google.rpc.Status` message. - * - * Generated from protobuf field string gcs_prefix = 1; - * @param string $var - * @return $this - */ - public function setGcsPrefix($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesMetadata.php deleted file mode 100644 index 16eee71b9af4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesMetadata.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesMetadata - */ -class ImportSuggestionDenyListEntriesMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesRequest.php deleted file mode 100644 index c5ec31cd7f9e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest - */ -class ImportSuggestionDenyListEntriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent data store resource name for which to import denylist - * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*. - * - * 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 \Google\Cloud\DiscoveryEngine\V1\ImportSuggestionDenyListEntriesRequest\InlineSource $inline_source - * The Inline source for the input content for suggestion deny list entries. - * @type \Google\Cloud\DiscoveryEngine\V1\GcsSource $gcs_source - * Cloud Storage location for the input content. - * Only 1 file can be specified that contains all entries to import. - * Supported values `gcs_source.schema` for autocomplete suggestion deny - * list entry imports: - * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry] - * per line. - * @type string $parent - * Required. The parent data store resource name for which to import denylist - * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The Inline source for the input content for suggestion deny list entries. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportSuggestionDenyListEntriesRequest\InlineSource|null - */ - public function getInlineSource() - { - return $this->readOneof(2); - } - - public function hasInlineSource() - { - return $this->hasOneof(2); - } - - /** - * The Inline source for the input content for suggestion deny list entries. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest.InlineSource inline_source = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportSuggestionDenyListEntriesRequest\InlineSource $var - * @return $this - */ - public function setInlineSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportSuggestionDenyListEntriesRequest\InlineSource::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Cloud Storage location for the input content. - * Only 1 file can be specified that contains all entries to import. - * Supported values `gcs_source.schema` for autocomplete suggestion deny - * list entry imports: - * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry] - * per line. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\GcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(3); - } - - public function hasGcsSource() - { - return $this->hasOneof(3); - } - - /** - * Cloud Storage location for the input content. - * Only 1 file can be specified that contains all entries to import. - * Supported values `gcs_source.schema` for autocomplete suggestion deny - * list entry imports: - * * `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry] - * per line. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\GcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GcsSource::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. The parent data store resource name for which to import denylist - * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*. - * - * Generated 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 data store resource name for which to import denylist - * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesRequest/InlineSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesRequest/InlineSource.php deleted file mode 100644 index 04734b9b3e8b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesRequest/InlineSource.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesRequest.InlineSource - */ -class InlineSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A list of all denylist entries to import. Max of 1000 items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $entries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\SuggestionDenyListEntry>|\Google\Protobuf\Internal\RepeatedField $entries - * Required. A list of all denylist entries to import. Max of 1000 items. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. A list of all denylist entries to import. Max of 1000 items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntries() - { - return $this->entries; - } - - /** - * Required. A list of all denylist entries to import. Max of 1000 items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SuggestionDenyListEntry entries = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SuggestionDenyListEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SuggestionDenyListEntry::class); - $this->entries = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InlineSource::class, \Google\Cloud\DiscoveryEngine\V1\ImportSuggestionDenyListEntriesRequest_InlineSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesResponse.php deleted file mode 100644 index 4ec5fc3bdc74..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportSuggestionDenyListEntriesResponse.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.discoveryengine.v1.ImportSuggestionDenyListEntriesResponse - */ -class ImportSuggestionDenyListEntriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - */ - private $error_samples; - /** - * Count of deny list entries successfully imported. - * - * Generated from protobuf field int64 imported_entries_count = 2; - */ - protected $imported_entries_count = 0; - /** - * Count of deny list entries that failed to be imported. - * - * Generated from protobuf field int64 failed_entries_count = 3; - */ - protected $failed_entries_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $error_samples - * A sample of errors encountered while processing the request. - * @type int|string $imported_entries_count - * Count of deny list entries successfully imported. - * @type int|string $failed_entries_count - * Count of deny list entries that failed to be imported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorSamples() - { - return $this->error_samples; - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorSamples($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->error_samples = $arr; - - return $this; - } - - /** - * Count of deny list entries successfully imported. - * - * Generated from protobuf field int64 imported_entries_count = 2; - * @return int|string - */ - public function getImportedEntriesCount() - { - return $this->imported_entries_count; - } - - /** - * Count of deny list entries successfully imported. - * - * Generated from protobuf field int64 imported_entries_count = 2; - * @param int|string $var - * @return $this - */ - public function setImportedEntriesCount($var) - { - GPBUtil::checkInt64($var); - $this->imported_entries_count = $var; - - return $this; - } - - /** - * Count of deny list entries that failed to be imported. - * - * Generated from protobuf field int64 failed_entries_count = 3; - * @return int|string - */ - public function getFailedEntriesCount() - { - return $this->failed_entries_count; - } - - /** - * Count of deny list entries that failed to be imported. - * - * Generated from protobuf field int64 failed_entries_count = 3; - * @param int|string $var - * @return $this - */ - public function setFailedEntriesCount($var) - { - GPBUtil::checkInt64($var); - $this->failed_entries_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsMetadata.php deleted file mode 100644 index a7fbe083bd4d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsMetadata.php +++ /dev/null @@ -1,194 +0,0 @@ -google.cloud.discoveryengine.v1.ImportUserEventsMetadata - */ -class ImportUserEventsMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - /** - * Count of entries that were processed successfully. - * - * Generated from protobuf field int64 success_count = 3; - */ - protected $success_count = 0; - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - */ - protected $failure_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * @type int|string $success_count - * Count of entries that were processed successfully. - * @type int|string $failure_count - * Count of entries that encountered errors while processing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - - /** - * Count of entries that were processed successfully. - * - * Generated from protobuf field int64 success_count = 3; - * @return int|string - */ - public function getSuccessCount() - { - return $this->success_count; - } - - /** - * Count of entries that were processed successfully. - * - * Generated from protobuf field int64 success_count = 3; - * @param int|string $var - * @return $this - */ - public function setSuccessCount($var) - { - GPBUtil::checkInt64($var); - $this->success_count = $var; - - return $this; - } - - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - * @return int|string - */ - public function getFailureCount() - { - return $this->failure_count; - } - - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - * @param int|string $var - * @return $this - */ - public function setFailureCount($var) - { - GPBUtil::checkInt64($var); - $this->failure_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsRequest.php deleted file mode 100644 index ce6a881d604d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.cloud.discoveryengine.v1.ImportUserEventsRequest - */ -class ImportUserEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent DataStore resource name, of the form - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The desired location of errors incurred during the Import. Cannot be set - * for inline user event imports. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - */ - protected $error_config = null; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\ImportUserEventsRequest\InlineSource $inline_source - * The Inline source for the input content for UserEvents. - * @type \Google\Cloud\DiscoveryEngine\V1\GcsSource $gcs_source - * Cloud Storage location for the input content. - * @type \Google\Cloud\DiscoveryEngine\V1\BigQuerySource $bigquery_source - * BigQuery input source. - * @type string $parent - * Required. Parent DataStore resource name, of the form - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` - * @type \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $error_config - * The desired location of errors incurred during the Import. Cannot be set - * for inline user event imports. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The Inline source for the input content for UserEvents. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportUserEventsRequest\InlineSource|null - */ - public function getInlineSource() - { - return $this->readOneof(2); - } - - public function hasInlineSource() - { - return $this->hasOneof(2); - } - - /** - * The Inline source for the input content for UserEvents. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource inline_source = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportUserEventsRequest\InlineSource $var - * @return $this - */ - public function setInlineSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportUserEventsRequest\InlineSource::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Cloud Storage location for the input content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\GcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(3); - } - - public function hasGcsSource() - { - return $this->hasOneof(3); - } - - /** - * Cloud Storage location for the input content. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GcsSource gcs_source = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\GcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GcsSource::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * BigQuery input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\BigQuerySource|null - */ - public function getBigquerySource() - { - return $this->readOneof(4); - } - - public function hasBigquerySource() - { - return $this->hasOneof(4); - } - - /** - * BigQuery input source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.BigQuerySource bigquery_source = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\BigQuerySource $var - * @return $this - */ - public function setBigquerySource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\BigQuerySource::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Required. Parent DataStore resource name, of the form - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` - * - * Generated 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 DataStore resource name, of the form - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 desired location of errors incurred during the Import. Cannot be set - * for inline user event imports. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig|null - */ - public function getErrorConfig() - { - return $this->error_config; - } - - public function hasErrorConfig() - { - return isset($this->error_config); - } - - public function clearErrorConfig() - { - unset($this->error_config); - } - - /** - * The desired location of errors incurred during the Import. Cannot be set - * for inline user event imports. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 5; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $var - * @return $this - */ - public function setErrorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig::class); - $this->error_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsRequest/InlineSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsRequest/InlineSource.php deleted file mode 100644 index 57f60a5f14e6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsRequest/InlineSource.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.ImportUserEventsRequest.InlineSource - */ -class InlineSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A list of user events to import. Recommended max of 10k items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $user_events; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\UserEvent>|\Google\Protobuf\Internal\RepeatedField $user_events - * Required. A list of user events to import. Recommended max of 10k items. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. A list of user events to import. Recommended max of 10k items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUserEvents() - { - return $this->user_events; - } - - /** - * Required. A list of user events to import. Recommended max of 10k items. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.UserEvent user_events = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\DiscoveryEngine\V1\UserEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUserEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\UserEvent::class); - $this->user_events = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InlineSource::class, \Google\Cloud\DiscoveryEngine\V1\ImportUserEventsRequest_InlineSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsResponse.php deleted file mode 100644 index 564563223aa5..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ImportUserEventsResponse.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.discoveryengine.v1.ImportUserEventsResponse - */ -class ImportUserEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - */ - private $error_samples; - /** - * Echoes the destination for the complete errors if this field was set in - * the request. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - */ - protected $error_config = null; - /** - * Count of user events imported with complete existing Documents. - * - * Generated from protobuf field int64 joined_events_count = 3; - */ - protected $joined_events_count = 0; - /** - * Count of user events imported, but with Document information not found - * in the existing Branch. - * - * Generated from protobuf field int64 unjoined_events_count = 4; - */ - protected $unjoined_events_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $error_samples - * A sample of errors encountered while processing the request. - * @type \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $error_config - * Echoes the destination for the complete errors if this field was set in - * the request. - * @type int|string $joined_events_count - * Count of user events imported with complete existing Documents. - * @type int|string $unjoined_events_count - * Count of user events imported, but with Document information not found - * in the existing Branch. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorSamples() - { - return $this->error_samples; - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorSamples($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->error_samples = $arr; - - return $this; - } - - /** - * Echoes the destination for the complete errors if this field was set in - * the request. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig|null - */ - public function getErrorConfig() - { - return $this->error_config; - } - - public function hasErrorConfig() - { - return isset($this->error_config); - } - - public function clearErrorConfig() - { - unset($this->error_config); - } - - /** - * Echoes the destination for the complete errors if this field was set in - * the request. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $var - * @return $this - */ - public function setErrorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig::class); - $this->error_config = $var; - - return $this; - } - - /** - * Count of user events imported with complete existing Documents. - * - * Generated from protobuf field int64 joined_events_count = 3; - * @return int|string - */ - public function getJoinedEventsCount() - { - return $this->joined_events_count; - } - - /** - * Count of user events imported with complete existing Documents. - * - * Generated from protobuf field int64 joined_events_count = 3; - * @param int|string $var - * @return $this - */ - public function setJoinedEventsCount($var) - { - GPBUtil::checkInt64($var); - $this->joined_events_count = $var; - - return $this; - } - - /** - * Count of user events imported, but with Document information not found - * in the existing Branch. - * - * Generated from protobuf field int64 unjoined_events_count = 4; - * @return int|string - */ - public function getUnjoinedEventsCount() - { - return $this->unjoined_events_count; - } - - /** - * Count of user events imported, but with Document information not found - * in the existing Branch. - * - * Generated from protobuf field int64 unjoined_events_count = 4; - * @param int|string $var - * @return $this - */ - public function setUnjoinedEventsCount($var) - { - GPBUtil::checkInt64($var); - $this->unjoined_events_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/IndustryVertical.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/IndustryVertical.php deleted file mode 100644 index 666456ecedc7..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/IndustryVertical.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.IndustryVertical - */ -class IndustryVertical -{ - /** - * Value used when unset. - * - * Generated from protobuf enum INDUSTRY_VERTICAL_UNSPECIFIED = 0; - */ - const INDUSTRY_VERTICAL_UNSPECIFIED = 0; - /** - * The generic vertical for documents that are not specific to any industry - * vertical. - * - * Generated from protobuf enum GENERIC = 1; - */ - const GENERIC = 1; - /** - * The media industry vertical. - * - * Generated from protobuf enum MEDIA = 2; - */ - const MEDIA = 2; - /** - * The healthcare FHIR vertical. - * - * Generated from protobuf enum HEALTHCARE_FHIR = 7; - */ - const HEALTHCARE_FHIR = 7; - - private static $valueToName = [ - self::INDUSTRY_VERTICAL_UNSPECIFIED => 'INDUSTRY_VERTICAL_UNSPECIFIED', - self::GENERIC => 'GENERIC', - self::MEDIA => 'MEDIA', - self::HEALTHCARE_FHIR => 'HEALTHCARE_FHIR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Interval.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Interval.php deleted file mode 100644 index 06fd49f9cb70..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Interval.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.discoveryengine.v1.Interval - */ -class Interval extends \Google\Protobuf\Internal\Message -{ - protected $min; - protected $max; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $minimum - * Inclusive lower bound. - * @type float $exclusive_minimum - * Exclusive lower bound. - * @type float $maximum - * Inclusive upper bound. - * @type float $exclusive_maximum - * Exclusive upper bound. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Inclusive lower bound. - * - * Generated from protobuf field double minimum = 1; - * @return float - */ - public function getMinimum() - { - return $this->readOneof(1); - } - - public function hasMinimum() - { - return $this->hasOneof(1); - } - - /** - * Inclusive lower bound. - * - * Generated from protobuf field double minimum = 1; - * @param float $var - * @return $this - */ - public function setMinimum($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Exclusive lower bound. - * - * Generated from protobuf field double exclusive_minimum = 2; - * @return float - */ - public function getExclusiveMinimum() - { - return $this->readOneof(2); - } - - public function hasExclusiveMinimum() - { - return $this->hasOneof(2); - } - - /** - * Exclusive lower bound. - * - * Generated from protobuf field double exclusive_minimum = 2; - * @param float $var - * @return $this - */ - public function setExclusiveMinimum($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Inclusive upper bound. - * - * Generated from protobuf field double maximum = 3; - * @return float - */ - public function getMaximum() - { - return $this->readOneof(3); - } - - public function hasMaximum() - { - return $this->hasOneof(3); - } - - /** - * Inclusive upper bound. - * - * Generated from protobuf field double maximum = 3; - * @param float $var - * @return $this - */ - public function setMaximum($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Exclusive upper bound. - * - * Generated from protobuf field double exclusive_maximum = 4; - * @return float - */ - public function getExclusiveMaximum() - { - return $this->readOneof(4); - } - - public function hasExclusiveMaximum() - { - return $this->hasOneof(4); - } - - /** - * Exclusive upper bound. - * - * Generated from protobuf field double exclusive_maximum = 4; - * @param float $var - * @return $this - */ - public function setExclusiveMaximum($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getMin() - { - return $this->whichOneof("min"); - } - - /** - * @return string - */ - public function getMax() - { - return $this->whichOneof("max"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListControlsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListControlsRequest.php deleted file mode 100644 index 6f617ecbea6f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListControlsRequest.php +++ /dev/null @@ -1,218 +0,0 @@ -google.cloud.discoveryengine.v1.ListControlsRequest - */ -class ListControlsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` - * or - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed value is 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 `ListControls` 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. A filter to apply on the list results. Supported features: - * * List all the products under the parent branch if - * [filter][google.cloud.discoveryengine.v1.ListControlsRequest.filter] is - * unset. Currently this field is unsupported. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` - * or - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. Please see - * {@see ControlServiceClient::dataStoreName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\ListControlsRequest - * - * @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 data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` - * or - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * @type int $page_size - * Optional. Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed value is 1000. - * @type string $page_token - * Optional. A page token, received from a previous `ListControls` call. - * Provide this to retrieve the subsequent page. - * @type string $filter - * Optional. A filter to apply on the list results. Supported features: - * * List all the products under the parent branch if - * [filter][google.cloud.discoveryengine.v1.ListControlsRequest.filter] is - * unset. Currently this field is unsupported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ControlService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` - * or - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_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 data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}` - * or - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_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. Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed 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. Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed 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. A page token, received from a previous `ListControls` 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 `ListControls` 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. A filter to apply on the list results. Supported features: - * * List all the products under the parent branch if - * [filter][google.cloud.discoveryengine.v1.ListControlsRequest.filter] is - * unset. Currently this field is unsupported. - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. A filter to apply on the list results. Supported features: - * * List all the products under the parent branch if - * [filter][google.cloud.discoveryengine.v1.ListControlsRequest.filter] is - * unset. Currently this field is unsupported. - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListControlsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListControlsResponse.php deleted file mode 100644 index f0bbd9ba3e7e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListControlsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.discoveryengine.v1.ListControlsResponse - */ -class ListControlsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * All the Controls for a given data store. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Control controls = 1; - */ - private $controls; - /** - * Pagination token, if not returned indicates the last page. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\Control>|\Google\Protobuf\Internal\RepeatedField $controls - * All the Controls for a given data store. - * @type string $next_page_token - * Pagination token, if not returned indicates the last page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ControlService::initOnce(); - parent::__construct($data); - } - - /** - * All the Controls for a given data store. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Control controls = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getControls() - { - return $this->controls; - } - - /** - * All the Controls for a given data store. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Control controls = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Control>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setControls($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Control::class); - $this->controls = $arr; - - return $this; - } - - /** - * Pagination token, if not returned indicates the last page. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Pagination token, if not returned indicates the last page. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListConversationsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListConversationsRequest.php deleted file mode 100644 index 0168464597dd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListConversationsRequest.php +++ /dev/null @@ -1,274 +0,0 @@ -google.cloud.discoveryengine.v1.ListConversationsRequest - */ -class ListConversationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed value is 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListConversations` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A filter to apply on the list results. The supported features are: - * user_pseudo_id, state. - * Example: - * "user_pseudo_id = some_id" - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: - * * `update_time` - * * `create_time` - * * `conversation_name` - * Example: - * "update_time desc" - * "create_time" - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * Please see {@see ConversationalSearchServiceClient::dataStoreName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\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 data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * @type int $page_size - * Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed value is 1000. - * @type string $page_token - * A page token, received from a previous `ListConversations` call. - * Provide this to retrieve the subsequent page. - * @type string $filter - * A filter to apply on the list results. The supported features are: - * user_pseudo_id, state. - * Example: - * "user_pseudo_id = some_id" - * @type string $order_by - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: - * * `update_time` - * * `create_time` - * * `conversation_name` - * Example: - * "update_time desc" - * "create_time" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_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 data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_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; - } - - /** - * Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed value is 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed 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; - } - - /** - * A page token, received from a previous `ListConversations` 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 `ListConversations` 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; - } - - /** - * A filter to apply on the list results. The supported features are: - * user_pseudo_id, state. - * Example: - * "user_pseudo_id = some_id" - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A filter to apply on the list results. The supported features are: - * user_pseudo_id, state. - * Example: - * "user_pseudo_id = some_id" - * - * 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; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: - * * `update_time` - * * `create_time` - * * `conversation_name` - * Example: - * "update_time desc" - * "create_time" - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: - * * `update_time` - * * `create_time` - * * `conversation_name` - * Example: - * "update_time desc" - * "create_time" - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListConversationsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListConversationsResponse.php deleted file mode 100644 index 9636b514cf6f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListConversationsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.discoveryengine.v1.ListConversationsResponse - */ -class ListConversationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * All the Conversations for a given data store. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Conversation conversations = 1; - */ - private $conversations; - /** - * Pagination token, if not returned indicates the last page. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\Conversation>|\Google\Protobuf\Internal\RepeatedField $conversations - * All the Conversations for a given data store. - * @type string $next_page_token - * Pagination token, if not returned indicates the last page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * All the Conversations for a given data store. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Conversation conversations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConversations() - { - return $this->conversations; - } - - /** - * All the Conversations for a given data store. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Conversation conversations = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Conversation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConversations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Conversation::class); - $this->conversations = $arr; - - return $this; - } - - /** - * Pagination token, if not returned indicates the last page. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Pagination token, if not returned indicates the last page. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListCustomModelsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListCustomModelsRequest.php deleted file mode 100644 index 546e6542a4b2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListCustomModelsRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.discoveryengine.v1.ListCustomModelsRequest - */ -class ListCustomModelsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the parent Data Store, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * This field is used to identify the data store where to fetch the models - * from. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $data_store = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_store - * Required. The resource name of the parent Data Store, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * This field is used to identify the data store where to fetch the models - * from. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchTuningService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the parent Data Store, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * This field is used to identify the data store where to fetch the models - * from. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDataStore() - { - return $this->data_store; - } - - /** - * Required. The resource name of the parent Data Store, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * This field is used to identify the data store where to fetch the models - * from. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDataStore($var) - { - GPBUtil::checkString($var, True); - $this->data_store = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListCustomModelsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListCustomModelsResponse.php deleted file mode 100644 index 1bdd3f268f6f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListCustomModelsResponse.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.discoveryengine.v1.ListCustomModelsResponse - */ -class ListCustomModelsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of custom tuning models. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CustomTuningModel models = 1; - */ - private $models; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\CustomTuningModel>|\Google\Protobuf\Internal\RepeatedField $models - * List of custom tuning models. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchTuningService::initOnce(); - parent::__construct($data); - } - - /** - * List of custom tuning models. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CustomTuningModel models = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getModels() - { - return $this->models; - } - - /** - * List of custom tuning models. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.CustomTuningModel models = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\CustomTuningModel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setModels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\CustomTuningModel::class); - $this->models = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDataStoresRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDataStoresRequest.php deleted file mode 100644 index dc3e12ae5200..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDataStoresRequest.php +++ /dev/null @@ -1,259 +0,0 @@ -google.cloud.discoveryengine.v1.ListDataStoresRequest - */ -class ListDataStoresRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection_id}`. - * If the caller does not have permission to list - * [DataStore][google.cloud.discoveryengine.v1.DataStore]s under this - * location, regardless of whether or not this data store exists, a - * PERMISSION_DENIED error is returned. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of [DataStore][google.cloud.discoveryengine.v1.DataStore]s - * to return. If unspecified, defaults to 10. The maximum allowed value is 50. - * Values above 50 will be coerced to 50. - * If this field is negative, an INVALID_ARGUMENT is returned. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token - * [ListDataStoresResponse.next_page_token][google.cloud.discoveryengine.v1.ListDataStoresResponse.next_page_token], - * received from a previous - * [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1.DataStoreService.ListDataStores] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1.DataStoreService.ListDataStores] - * must match the call that provided the page token. Otherwise, an - * INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filter by solution type . - * For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'` - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection_id}`. - * - * If the caller does not have permission to list - * [DataStore][google.cloud.discoveryengine.v1.DataStore]s under this - * location, regardless of whether or not this data store exists, a - * PERMISSION_DENIED error is returned. Please see - * {@see DataStoreServiceClient::collectionName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\ListDataStoresRequest - * - * @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 branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection_id}`. - * If the caller does not have permission to list - * [DataStore][google.cloud.discoveryengine.v1.DataStore]s under this - * location, regardless of whether or not this data store exists, a - * PERMISSION_DENIED error is returned. - * @type int $page_size - * Maximum number of [DataStore][google.cloud.discoveryengine.v1.DataStore]s - * to return. If unspecified, defaults to 10. The maximum allowed value is 50. - * Values above 50 will be coerced to 50. - * If this field is negative, an INVALID_ARGUMENT is returned. - * @type string $page_token - * A page token - * [ListDataStoresResponse.next_page_token][google.cloud.discoveryengine.v1.ListDataStoresResponse.next_page_token], - * received from a previous - * [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1.DataStoreService.ListDataStores] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1.DataStoreService.ListDataStores] - * must match the call that provided the page token. Otherwise, an - * INVALID_ARGUMENT error is returned. - * @type string $filter - * Filter by solution type . - * For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DataStoreService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection_id}`. - * If the caller does not have permission to list - * [DataStore][google.cloud.discoveryengine.v1.DataStore]s under this - * location, regardless of whether or not this data store exists, a - * PERMISSION_DENIED error is returned. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection_id}`. - * If the caller does not have permission to list - * [DataStore][google.cloud.discoveryengine.v1.DataStore]s under this - * location, regardless of whether or not this data store exists, a - * PERMISSION_DENIED error is returned. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Maximum number of [DataStore][google.cloud.discoveryengine.v1.DataStore]s - * to return. If unspecified, defaults to 10. The maximum allowed value is 50. - * Values above 50 will be coerced to 50. - * If this field is negative, an INVALID_ARGUMENT is returned. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of [DataStore][google.cloud.discoveryengine.v1.DataStore]s - * to return. If unspecified, defaults to 10. The maximum allowed value is 50. - * Values above 50 will be coerced to 50. - * If this field is negative, an INVALID_ARGUMENT is 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 - * [ListDataStoresResponse.next_page_token][google.cloud.discoveryengine.v1.ListDataStoresResponse.next_page_token], - * received from a previous - * [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1.DataStoreService.ListDataStores] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1.DataStoreService.ListDataStores] - * must match the call that provided the page token. Otherwise, an - * INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token - * [ListDataStoresResponse.next_page_token][google.cloud.discoveryengine.v1.ListDataStoresResponse.next_page_token], - * received from a previous - * [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1.DataStoreService.ListDataStores] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [DataStoreService.ListDataStores][google.cloud.discoveryengine.v1.DataStoreService.ListDataStores] - * must match the call that provided the page token. Otherwise, an - * INVALID_ARGUMENT error 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; - } - - /** - * Filter by solution type . - * For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'` - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter by solution type . - * For example: `filter = 'solution_type:SOLUTION_TYPE_SEARCH'` - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDataStoresResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDataStoresResponse.php deleted file mode 100644 index b3db7369a32d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDataStoresResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.discoveryengine.v1.ListDataStoresResponse - */ -class ListDataStoresResponse extends \Google\Protobuf\Internal\Message -{ - /** - * All the customer's [DataStore][google.cloud.discoveryengine.v1.DataStore]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.DataStore data_stores = 1; - */ - private $data_stores; - /** - * A token that can be sent as - * [ListDataStoresRequest.page_token][google.cloud.discoveryengine.v1.ListDataStoresRequest.page_token] - * 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\DiscoveryEngine\V1\DataStore>|\Google\Protobuf\Internal\RepeatedField $data_stores - * All the customer's [DataStore][google.cloud.discoveryengine.v1.DataStore]s. - * @type string $next_page_token - * A token that can be sent as - * [ListDataStoresRequest.page_token][google.cloud.discoveryengine.v1.ListDataStoresRequest.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\Discoveryengine\V1\DataStoreService::initOnce(); - parent::__construct($data); - } - - /** - * All the customer's [DataStore][google.cloud.discoveryengine.v1.DataStore]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.DataStore data_stores = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataStores() - { - return $this->data_stores; - } - - /** - * All the customer's [DataStore][google.cloud.discoveryengine.v1.DataStore]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.DataStore data_stores = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\DataStore>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataStores($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\DataStore::class); - $this->data_stores = $arr; - - return $this; - } - - /** - * A token that can be sent as - * [ListDataStoresRequest.page_token][google.cloud.discoveryengine.v1.ListDataStoresRequest.page_token] - * 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 - * [ListDataStoresRequest.page_token][google.cloud.discoveryengine.v1.ListDataStoresRequest.page_token] - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDocumentsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDocumentsRequest.php deleted file mode 100644 index 42d68af993e2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDocumentsRequest.php +++ /dev/null @@ -1,231 +0,0 @@ -google.cloud.discoveryengine.v1.ListDocumentsRequest - */ -class ListDocumentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * Use `default_branch` as the branch ID, to list documents under the default - * branch. - * If the caller does not have permission to list - * [Document][google.cloud.discoveryengine.v1.Document]s under this branch, - * regardless of whether or not this branch exists, a `PERMISSION_DENIED` - * error is returned. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to - * return. If unspecified, defaults to 100. The maximum allowed value is 1000. - * Values above 1000 are set to 1000. - * If this field is negative, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token - * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token], - * received from a previous - * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments] - * must match the call that provided the page token. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * Use `default_branch` as the branch ID, to list documents under the default - * branch. - * - * If the caller does not have permission to list - * [Document][google.cloud.discoveryengine.v1.Document]s under this branch, - * regardless of whether or not this branch exists, a `PERMISSION_DENIED` - * error is returned. Please see - * {@see DocumentServiceClient::branchName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\ListDocumentsRequest - * - * @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 branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * Use `default_branch` as the branch ID, to list documents under the default - * branch. - * If the caller does not have permission to list - * [Document][google.cloud.discoveryengine.v1.Document]s under this branch, - * regardless of whether or not this branch exists, a `PERMISSION_DENIED` - * error is returned. - * @type int $page_size - * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to - * return. If unspecified, defaults to 100. The maximum allowed value is 1000. - * Values above 1000 are set to 1000. - * If this field is negative, an `INVALID_ARGUMENT` error is returned. - * @type string $page_token - * A page token - * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token], - * received from a previous - * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments] - * must match the call that provided the page token. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * Use `default_branch` as the branch ID, to list documents under the default - * branch. - * If the caller does not have permission to list - * [Document][google.cloud.discoveryengine.v1.Document]s under this branch, - * regardless of whether or not this branch exists, a `PERMISSION_DENIED` - * error is returned. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent branch resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * Use `default_branch` as the branch ID, to list documents under the default - * branch. - * If the caller does not have permission to list - * [Document][google.cloud.discoveryengine.v1.Document]s under this branch, - * regardless of whether or not this branch exists, a `PERMISSION_DENIED` - * error is returned. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to - * return. If unspecified, defaults to 100. The maximum allowed value is 1000. - * Values above 1000 are set to 1000. - * If this field is negative, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to - * return. If unspecified, defaults to 100. The maximum allowed value is 1000. - * Values above 1000 are set to 1000. - * If this field is negative, an `INVALID_ARGUMENT` error is 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 - * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token], - * received from a previous - * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments] - * must match the call that provided the page token. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token - * [ListDocumentsResponse.next_page_token][google.cloud.discoveryengine.v1.ListDocumentsResponse.next_page_token], - * received from a previous - * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments] - * must match the call that provided the page token. Otherwise, an - * `INVALID_ARGUMENT` error 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDocumentsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDocumentsResponse.php deleted file mode 100644 index 6a0ca3c4c9eb..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListDocumentsResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.discoveryengine.v1.ListDocumentsResponse - */ -class ListDocumentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The [Document][google.cloud.discoveryengine.v1.Document]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Document documents = 1; - */ - private $documents; - /** - * A token that can be sent as - * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token] - * 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\DiscoveryEngine\V1\Document>|\Google\Protobuf\Internal\RepeatedField $documents - * The [Document][google.cloud.discoveryengine.v1.Document]s. - * @type string $next_page_token - * A token that can be sent as - * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.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\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * The [Document][google.cloud.discoveryengine.v1.Document]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Document documents = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDocuments() - { - return $this->documents; - } - - /** - * The [Document][google.cloud.discoveryengine.v1.Document]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Document documents = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Document>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDocuments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Document::class); - $this->documents = $arr; - - return $this; - } - - /** - * A token that can be sent as - * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token] - * 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 - * [ListDocumentsRequest.page_token][google.cloud.discoveryengine.v1.ListDocumentsRequest.page_token] - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListEnginesRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListEnginesRequest.php deleted file mode 100644 index 7511fa715a4f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListEnginesRequest.php +++ /dev/null @@ -1,194 +0,0 @@ -google.cloud.discoveryengine.v1.ListEnginesRequest - */ -class ListEnginesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Not supported. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Not supported. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Filter by solution type. For example: - * solution_type=SOLUTION_TYPE_SEARCH - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection_id}`. Please see - * {@see EngineServiceClient::collectionName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\ListEnginesRequest - * - * @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 name, such as - * `projects/{project}/locations/{location}/collections/{collection_id}`. - * @type int $page_size - * Optional. Not supported. - * @type string $page_token - * Optional. Not supported. - * @type string $filter - * Optional. Filter by solution type. For example: - * solution_type=SOLUTION_TYPE_SEARCH - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\EngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection_id}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection_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. Not supported. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Not supported. - * - * 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. Not supported. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Not supported. - * - * 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. Filter by solution type. For example: - * solution_type=SOLUTION_TYPE_SEARCH - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter by solution type. For example: - * solution_type=SOLUTION_TYPE_SEARCH - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListEnginesResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListEnginesResponse.php deleted file mode 100644 index bd11651d0ddd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListEnginesResponse.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.discoveryengine.v1.ListEnginesResponse - */ -class ListEnginesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * All the customer's [Engine][google.cloud.discoveryengine.v1.Engine]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Engine engines = 1; - */ - private $engines; - /** - * Not supported. - * - * 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\DiscoveryEngine\V1\Engine>|\Google\Protobuf\Internal\RepeatedField $engines - * All the customer's [Engine][google.cloud.discoveryengine.v1.Engine]s. - * @type string $next_page_token - * Not supported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\EngineService::initOnce(); - parent::__construct($data); - } - - /** - * All the customer's [Engine][google.cloud.discoveryengine.v1.Engine]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Engine engines = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEngines() - { - return $this->engines; - } - - /** - * All the customer's [Engine][google.cloud.discoveryengine.v1.Engine]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Engine engines = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Engine>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEngines($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Engine::class); - $this->engines = $arr; - - return $this; - } - - /** - * Not supported. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Not supported. - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSchemasRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSchemasRequest.php deleted file mode 100644 index 4a3e130261ec..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSchemasRequest.php +++ /dev/null @@ -1,192 +0,0 @@ -google.cloud.discoveryengine.v1.ListSchemasRequest - */ -class ListSchemasRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent data store resource name, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of [Schema][google.cloud.discoveryengine.v1.Schema]s to - * return. The service may return fewer than this value. - * If unspecified, at most 100 - * [Schema][google.cloud.discoveryengine.v1.Schema]s are returned. - * The maximum value is 1000; values above 1000 are set to 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous - * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas] - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent data store resource name, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. Please see - * {@see SchemaServiceClient::dataStoreName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\ListSchemasRequest - * - * @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 data store resource name, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * @type int $page_size - * The maximum number of [Schema][google.cloud.discoveryengine.v1.Schema]s to - * return. The service may return fewer than this value. - * If unspecified, at most 100 - * [Schema][google.cloud.discoveryengine.v1.Schema]s are returned. - * The maximum value is 1000; values above 1000 are set to 1000. - * @type string $page_token - * A page token, received from a previous - * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas] - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SchemaService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent data store resource name, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * - * Generated 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 data store resource name, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 [Schema][google.cloud.discoveryengine.v1.Schema]s to - * return. The service may return fewer than this value. - * If unspecified, at most 100 - * [Schema][google.cloud.discoveryengine.v1.Schema]s are returned. - * The maximum value is 1000; values above 1000 are set to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of [Schema][google.cloud.discoveryengine.v1.Schema]s to - * return. The service may return fewer than this value. - * If unspecified, at most 100 - * [Schema][google.cloud.discoveryengine.v1.Schema]s are returned. - * The maximum value is 1000; values above 1000 are set to 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token, received from a previous - * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas] - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous - * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [SchemaService.ListSchemas][google.cloud.discoveryengine.v1.SchemaService.ListSchemas] - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSchemasResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSchemasResponse.php deleted file mode 100644 index 4705d7ca0f55..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSchemasResponse.php +++ /dev/null @@ -1,115 +0,0 @@ -google.cloud.discoveryengine.v1.ListSchemasResponse - */ -class ListSchemasResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The [Schema][google.cloud.discoveryengine.v1.Schema]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; - */ - private $schemas; - /** - * A token that can be sent as - * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token] - * 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\DiscoveryEngine\V1\Schema>|\Google\Protobuf\Internal\RepeatedField $schemas - * The [Schema][google.cloud.discoveryengine.v1.Schema]s. - * @type string $next_page_token - * A token that can be sent as - * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.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\Discoveryengine\V1\SchemaService::initOnce(); - parent::__construct($data); - } - - /** - * The [Schema][google.cloud.discoveryengine.v1.Schema]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSchemas() - { - return $this->schemas; - } - - /** - * The [Schema][google.cloud.discoveryengine.v1.Schema]s. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Schema schemas = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Schema>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSchemas($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Schema::class); - $this->schemas = $arr; - - return $this; - } - - /** - * A token that can be sent as - * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token] - * 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 - * [ListSchemasRequest.page_token][google.cloud.discoveryengine.v1.ListSchemasRequest.page_token] - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSessionsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSessionsRequest.php deleted file mode 100644 index 9788fe85f40c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSessionsRequest.php +++ /dev/null @@ -1,274 +0,0 @@ -google.cloud.discoveryengine.v1.ListSessionsRequest - */ -class ListSessionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed value is 1000. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListSessions` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * A filter to apply on the list results. The supported features are: - * user_pseudo_id, state. - * Example: - * "user_pseudo_id = some_id" - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: - * * `update_time` - * * `create_time` - * * `session_name` - * Example: - * "update_time desc" - * "create_time" - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * Please see {@see ConversationalSearchServiceClient::dataStoreName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\ListSessionsRequest - * - * @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 data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_id}` - * @type int $page_size - * Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed value is 1000. - * @type string $page_token - * A page token, received from a previous `ListSessions` call. - * Provide this to retrieve the subsequent page. - * @type string $filter - * A filter to apply on the list results. The supported features are: - * user_pseudo_id, state. - * Example: - * "user_pseudo_id = some_id" - * @type string $order_by - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: - * * `update_time` - * * `create_time` - * * `session_name` - * Example: - * "update_time desc" - * "create_time" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_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 data store resource name. Format: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store_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; - } - - /** - * Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed value is 1000. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of results to return. If unspecified, defaults - * to 50. Max allowed 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; - } - - /** - * A page token, received from a previous `ListSessions` 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 `ListSessions` 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; - } - - /** - * A filter to apply on the list results. The supported features are: - * user_pseudo_id, state. - * Example: - * "user_pseudo_id = some_id" - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * A filter to apply on the list results. The supported features are: - * user_pseudo_id, state. - * Example: - * "user_pseudo_id = some_id" - * - * 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; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: - * * `update_time` - * * `create_time` - * * `session_name` - * Example: - * "update_time desc" - * "create_time" - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: - * * `update_time` - * * `create_time` - * * `session_name` - * Example: - * "update_time desc" - * "create_time" - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSessionsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSessionsResponse.php deleted file mode 100644 index 118e667831b1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListSessionsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.discoveryengine.v1.ListSessionsResponse - */ -class ListSessionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * All the Sessions for a given data store. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Session sessions = 1; - */ - private $sessions; - /** - * Pagination token, if not returned indicates the last page. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\Session>|\Google\Protobuf\Internal\RepeatedField $sessions - * All the Sessions for a given data store. - * @type string $next_page_token - * Pagination token, if not returned indicates the last page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * All the Sessions for a given data store. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Session sessions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSessions() - { - return $this->sessions; - } - - /** - * All the Sessions for a given data store. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Session sessions = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Session>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSessions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Session::class); - $this->sessions = $arr; - - return $this; - } - - /** - * Pagination token, if not returned indicates the last page. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Pagination token, if not returned indicates the last page. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListTargetSitesRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListTargetSitesRequest.php deleted file mode 100644 index 95c8cec895e1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListTargetSitesRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.discoveryengine.v1.ListTargetSitesRequest - */ -class ListTargetSitesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent site search engine resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * If the caller does not have permission to list - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite]s under this site - * search engine, regardless of whether or not this branch exists, a - * PERMISSION_DENIED error is returned. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. The maximum value is - * 1000; values above 1000 will be coerced to 1000. - * If this field is negative, an INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListTargetSites` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTargetSites` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent site search engine resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * - * If the caller does not have permission to list - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite]s under this site - * search engine, regardless of whether or not this branch exists, a - * PERMISSION_DENIED error is returned. Please see - * {@see SiteSearchEngineServiceClient::siteSearchEngineName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\ListTargetSitesRequest - * - * @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 site search engine resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * If the caller does not have permission to list - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite]s under this site - * search engine, regardless of whether or not this branch exists, a - * PERMISSION_DENIED error is returned. - * @type int $page_size - * Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. The maximum value is - * 1000; values above 1000 will be coerced to 1000. - * If this field is negative, an INVALID_ARGUMENT error is returned. - * @type string $page_token - * A page token, received from a previous `ListTargetSites` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTargetSites` - * must match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent site search engine resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * If the caller does not have permission to list - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite]s under this site - * search engine, regardless of whether or not this branch exists, a - * PERMISSION_DENIED error is returned. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent site search engine resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine`. - * If the caller does not have permission to list - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite]s under this site - * search engine, regardless of whether or not this branch exists, a - * PERMISSION_DENIED error is returned. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. The maximum value is - * 1000; values above 1000 will be coerced to 1000. - * If this field is negative, an INVALID_ARGUMENT error is returned. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer items than requested. If - * unspecified, server will pick an appropriate default. The maximum value is - * 1000; values above 1000 will be coerced to 1000. - * If this field is negative, an INVALID_ARGUMENT error is 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 `ListTargetSites` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTargetSites` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token, received from a previous `ListTargetSites` call. - * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTargetSites` - * must match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListTargetSitesResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListTargetSitesResponse.php deleted file mode 100644 index 27a9a08f41c8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ListTargetSitesResponse.php +++ /dev/null @@ -1,145 +0,0 @@ -google.cloud.discoveryengine.v1.ListTargetSitesResponse - */ -class ListTargetSitesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of TargetSites. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.TargetSite target_sites = 1; - */ - private $target_sites; - /** - * 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 = ''; - /** - * The total number of items matching the request. - * This will always be populated in the response. - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\TargetSite>|\Google\Protobuf\Internal\RepeatedField $target_sites - * List of TargetSites. - * @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 int $total_size - * The total number of items matching the request. - * This will always be populated in the response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * List of TargetSites. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.TargetSite target_sites = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargetSites() - { - return $this->target_sites; - } - - /** - * List of TargetSites. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.TargetSite target_sites = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\TargetSite>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargetSites($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\TargetSite::class); - $this->target_sites = $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; - } - - /** - * The total number of items matching the request. - * This will always be populated in the response. - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * The total number of items matching the request. - * This will always be populated in the response. - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/MediaInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/MediaInfo.php deleted file mode 100644 index a4127b6cae03..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/MediaInfo.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.discoveryengine.v1.MediaInfo - */ -class MediaInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The media progress time in seconds, if applicable. - * For example, if the end user has finished 90 seconds of a playback video, - * then - * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds] - * should be set to 90. - * - * Generated from protobuf field .google.protobuf.Duration media_progress_duration = 1; - */ - protected $media_progress_duration = null; - /** - * Media progress should be computed using only the - * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration] - * relative to the media total length. - * This value must be between `[0, 1.0]` inclusive. - * If this is not a playback or the progress cannot be computed (e.g. ongoing - * livestream), this field should be unset. - * - * Generated from protobuf field optional float media_progress_percentage = 2; - */ - protected $media_progress_percentage = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $media_progress_duration - * The media progress time in seconds, if applicable. - * For example, if the end user has finished 90 seconds of a playback video, - * then - * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds] - * should be set to 90. - * @type float $media_progress_percentage - * Media progress should be computed using only the - * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration] - * relative to the media total length. - * This value must be between `[0, 1.0]` inclusive. - * If this is not a playback or the progress cannot be computed (e.g. ongoing - * livestream), this field should be unset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\UserEvent::initOnce(); - parent::__construct($data); - } - - /** - * The media progress time in seconds, if applicable. - * For example, if the end user has finished 90 seconds of a playback video, - * then - * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds] - * should be set to 90. - * - * Generated from protobuf field .google.protobuf.Duration media_progress_duration = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getMediaProgressDuration() - { - return $this->media_progress_duration; - } - - public function hasMediaProgressDuration() - { - return isset($this->media_progress_duration); - } - - public function clearMediaProgressDuration() - { - unset($this->media_progress_duration); - } - - /** - * The media progress time in seconds, if applicable. - * For example, if the end user has finished 90 seconds of a playback video, - * then - * [MediaInfo.media_progress_duration.seconds][google.protobuf.Duration.seconds] - * should be set to 90. - * - * Generated from protobuf field .google.protobuf.Duration media_progress_duration = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMediaProgressDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->media_progress_duration = $var; - - return $this; - } - - /** - * Media progress should be computed using only the - * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration] - * relative to the media total length. - * This value must be between `[0, 1.0]` inclusive. - * If this is not a playback or the progress cannot be computed (e.g. ongoing - * livestream), this field should be unset. - * - * Generated from protobuf field optional float media_progress_percentage = 2; - * @return float - */ - public function getMediaProgressPercentage() - { - return isset($this->media_progress_percentage) ? $this->media_progress_percentage : 0.0; - } - - public function hasMediaProgressPercentage() - { - return isset($this->media_progress_percentage); - } - - public function clearMediaProgressPercentage() - { - unset($this->media_progress_percentage); - } - - /** - * Media progress should be computed using only the - * [media_progress_duration][google.cloud.discoveryengine.v1.MediaInfo.media_progress_duration] - * relative to the media total length. - * This value must be between `[0, 1.0]` inclusive. - * If this is not a playback or the progress cannot be computed (e.g. ongoing - * livestream), this field should be unset. - * - * Generated from protobuf field optional float media_progress_percentage = 2; - * @param float $var - * @return $this - */ - public function setMediaProgressPercentage($var) - { - GPBUtil::checkFloat($var); - $this->media_progress_percentage = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PageInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PageInfo.php deleted file mode 100644 index 56b337b655c8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PageInfo.php +++ /dev/null @@ -1,253 +0,0 @@ -google.cloud.discoveryengine.v1.PageInfo - */ -class PageInfo extends \Google\Protobuf\Internal\Message -{ - /** - * A unique ID of a web page view. - * This should be kept the same for all user events triggered from the same - * pageview. For example, an item detail page view could trigger multiple - * events as the user is browsing the page. The `pageview_id` property should - * be kept the same for all these events so that they can be grouped together - * properly. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. - * - * Generated from protobuf field string pageview_id = 1; - */ - protected $pageview_id = ''; - /** - * The most specific category associated with a category page. - * To represent full path of category, use '>' sign to separate different - * hierarchies. If '>' is part of the category name, replace it with - * other character(s). - * Category pages include special pages such as sales or promotions. For - * instance, a special sale page may have the category hierarchy: - * `"pageCategory" : "Sales > 2017 Black Friday Deals"`. - * Required for `view-category-page` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_category = 2; - */ - protected $page_category = ''; - /** - * Complete URL (window.location.href) of the user's current page. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. Maximum length 5,000 - * characters. - * - * Generated from protobuf field string uri = 3; - */ - protected $uri = ''; - /** - * The referrer URL of the current page. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. However, some browser - * privacy restrictions may cause this field to be empty. - * - * Generated from protobuf field string referrer_uri = 4; - */ - protected $referrer_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $pageview_id - * A unique ID of a web page view. - * This should be kept the same for all user events triggered from the same - * pageview. For example, an item detail page view could trigger multiple - * events as the user is browsing the page. The `pageview_id` property should - * be kept the same for all these events so that they can be grouped together - * properly. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. - * @type string $page_category - * The most specific category associated with a category page. - * To represent full path of category, use '>' sign to separate different - * hierarchies. If '>' is part of the category name, replace it with - * other character(s). - * Category pages include special pages such as sales or promotions. For - * instance, a special sale page may have the category hierarchy: - * `"pageCategory" : "Sales > 2017 Black Friday Deals"`. - * Required for `view-category-page` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * @type string $uri - * Complete URL (window.location.href) of the user's current page. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. Maximum length 5,000 - * characters. - * @type string $referrer_uri - * The referrer URL of the current page. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. However, some browser - * privacy restrictions may cause this field to be empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\UserEvent::initOnce(); - parent::__construct($data); - } - - /** - * A unique ID of a web page view. - * This should be kept the same for all user events triggered from the same - * pageview. For example, an item detail page view could trigger multiple - * events as the user is browsing the page. The `pageview_id` property should - * be kept the same for all these events so that they can be grouped together - * properly. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. - * - * Generated from protobuf field string pageview_id = 1; - * @return string - */ - public function getPageviewId() - { - return $this->pageview_id; - } - - /** - * A unique ID of a web page view. - * This should be kept the same for all user events triggered from the same - * pageview. For example, an item detail page view could trigger multiple - * events as the user is browsing the page. The `pageview_id` property should - * be kept the same for all these events so that they can be grouped together - * properly. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. - * - * Generated from protobuf field string pageview_id = 1; - * @param string $var - * @return $this - */ - public function setPageviewId($var) - { - GPBUtil::checkString($var, True); - $this->pageview_id = $var; - - return $this; - } - - /** - * The most specific category associated with a category page. - * To represent full path of category, use '>' sign to separate different - * hierarchies. If '>' is part of the category name, replace it with - * other character(s). - * Category pages include special pages such as sales or promotions. For - * instance, a special sale page may have the category hierarchy: - * `"pageCategory" : "Sales > 2017 Black Friday Deals"`. - * Required for `view-category-page` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_category = 2; - * @return string - */ - public function getPageCategory() - { - return $this->page_category; - } - - /** - * The most specific category associated with a category page. - * To represent full path of category, use '>' sign to separate different - * hierarchies. If '>' is part of the category name, replace it with - * other character(s). - * Category pages include special pages such as sales or promotions. For - * instance, a special sale page may have the category hierarchy: - * `"pageCategory" : "Sales > 2017 Black Friday Deals"`. - * Required for `view-category-page` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_category = 2; - * @param string $var - * @return $this - */ - public function setPageCategory($var) - { - GPBUtil::checkString($var, True); - $this->page_category = $var; - - return $this; - } - - /** - * Complete URL (window.location.href) of the user's current page. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. Maximum length 5,000 - * characters. - * - * Generated from protobuf field string uri = 3; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Complete URL (window.location.href) of the user's current page. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. Maximum length 5,000 - * characters. - * - * Generated from protobuf field string uri = 3; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * The referrer URL of the current page. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. However, some browser - * privacy restrictions may cause this field to be empty. - * - * Generated from protobuf field string referrer_uri = 4; - * @return string - */ - public function getReferrerUri() - { - return $this->referrer_uri; - } - - /** - * The referrer URL of the current page. - * When using the client side event reporting with JavaScript pixel and Google - * Tag Manager, this value is filled in automatically. However, some browser - * privacy restrictions may cause this field to be empty. - * - * Generated from protobuf field string referrer_uri = 4; - * @param string $var - * @return $this - */ - public function setReferrerUri($var) - { - GPBUtil::checkString($var, True); - $this->referrer_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PanelInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PanelInfo.php deleted file mode 100644 index d80f94dd4e0f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PanelInfo.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.discoveryengine.v1.PanelInfo - */ -class PanelInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The panel ID. - * - * Generated from protobuf field string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $panel_id = ''; - /** - * The display name of the panel. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * The ordered position of the panel, if shown to the user with other panels. - * If set, then - * [total_panels][google.cloud.discoveryengine.v1.PanelInfo.total_panels] must - * also be set. - * - * Generated from protobuf field optional int32 panel_position = 4; - */ - protected $panel_position = null; - /** - * The total number of panels, including this one, shown to the user. - * Must be set if - * [panel_position][google.cloud.discoveryengine.v1.PanelInfo.panel_position] - * is set. - * - * Generated from protobuf field optional int32 total_panels = 5; - */ - protected $total_panels = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $panel_id - * Required. The panel ID. - * @type string $display_name - * The display name of the panel. - * @type int $panel_position - * The ordered position of the panel, if shown to the user with other panels. - * If set, then - * [total_panels][google.cloud.discoveryengine.v1.PanelInfo.total_panels] must - * also be set. - * @type int $total_panels - * The total number of panels, including this one, shown to the user. - * Must be set if - * [panel_position][google.cloud.discoveryengine.v1.PanelInfo.panel_position] - * is set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\UserEvent::initOnce(); - parent::__construct($data); - } - - /** - * Required. The panel ID. - * - * Generated from protobuf field string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPanelId() - { - return $this->panel_id; - } - - /** - * Required. The panel ID. - * - * Generated from protobuf field string panel_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPanelId($var) - { - GPBUtil::checkString($var, True); - $this->panel_id = $var; - - return $this; - } - - /** - * The display name of the panel. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the panel. - * - * 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; - } - - /** - * The ordered position of the panel, if shown to the user with other panels. - * If set, then - * [total_panels][google.cloud.discoveryengine.v1.PanelInfo.total_panels] must - * also be set. - * - * Generated from protobuf field optional int32 panel_position = 4; - * @return int - */ - public function getPanelPosition() - { - return isset($this->panel_position) ? $this->panel_position : 0; - } - - public function hasPanelPosition() - { - return isset($this->panel_position); - } - - public function clearPanelPosition() - { - unset($this->panel_position); - } - - /** - * The ordered position of the panel, if shown to the user with other panels. - * If set, then - * [total_panels][google.cloud.discoveryengine.v1.PanelInfo.total_panels] must - * also be set. - * - * Generated from protobuf field optional int32 panel_position = 4; - * @param int $var - * @return $this - */ - public function setPanelPosition($var) - { - GPBUtil::checkInt32($var); - $this->panel_position = $var; - - return $this; - } - - /** - * The total number of panels, including this one, shown to the user. - * Must be set if - * [panel_position][google.cloud.discoveryengine.v1.PanelInfo.panel_position] - * is set. - * - * Generated from protobuf field optional int32 total_panels = 5; - * @return int - */ - public function getTotalPanels() - { - return isset($this->total_panels) ? $this->total_panels : 0; - } - - public function hasTotalPanels() - { - return isset($this->total_panels); - } - - public function clearTotalPanels() - { - unset($this->total_panels); - } - - /** - * The total number of panels, including this one, shown to the user. - * Must be set if - * [panel_position][google.cloud.discoveryengine.v1.PanelInfo.panel_position] - * is set. - * - * Generated from protobuf field optional int32 total_panels = 5; - * @param int $var - * @return $this - */ - public function setTotalPanels($var) - { - GPBUtil::checkInt32($var); - $this->total_panels = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project.php deleted file mode 100644 index 5af8ff910b7e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.discoveryengine.v1.Project - */ -class Project extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Full resource name of the project, for example - * `projects/{project}`. - * Note that when making requests, project number and project id are both - * acceptable, but the server will always respond in project number. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. The timestamp when this project is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The timestamp when this project is successfully provisioned. - * Empty value means this project is still provisioning and is not ready for - * use. - * - * Generated from protobuf field .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $provision_completion_time = null; - /** - * Output only. A map of terms of services. The key is the `id` of - * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms]. - * - * Generated from protobuf field map service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $service_terms_map; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Full resource name of the project, for example - * `projects/{project}`. - * Note that when making requests, project number and project id are both - * acceptable, but the server will always respond in project number. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The timestamp when this project is created. - * @type \Google\Protobuf\Timestamp $provision_completion_time - * Output only. The timestamp when this project is successfully provisioned. - * Empty value means this project is still provisioning and is not ready for - * use. - * @type array|\Google\Protobuf\Internal\MapField $service_terms_map - * Output only. A map of terms of services. The key is the `id` of - * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Project::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Full resource name of the project, for example - * `projects/{project}`. - * Note that when making requests, project number and project id are both - * acceptable, but the server will always respond in project number. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Full resource name of the project, for example - * `projects/{project}`. - * Note that when making requests, project number and project id are both - * acceptable, but the server will always respond in project number. - * - * 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 timestamp when this project is 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 timestamp when this project is 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 timestamp when this project is successfully provisioned. - * Empty value means this project is still provisioning and is not ready for - * use. - * - * Generated from protobuf field .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getProvisionCompletionTime() - { - return $this->provision_completion_time; - } - - public function hasProvisionCompletionTime() - { - return isset($this->provision_completion_time); - } - - public function clearProvisionCompletionTime() - { - unset($this->provision_completion_time); - } - - /** - * Output only. The timestamp when this project is successfully provisioned. - * Empty value means this project is still provisioning and is not ready for - * use. - * - * Generated from protobuf field .google.protobuf.Timestamp provision_completion_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setProvisionCompletionTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->provision_completion_time = $var; - - return $this; - } - - /** - * Output only. A map of terms of services. The key is the `id` of - * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms]. - * - * Generated from protobuf field map service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getServiceTermsMap() - { - return $this->service_terms_map; - } - - /** - * Output only. A map of terms of services. The key is the `id` of - * [ServiceTerms][google.cloud.discoveryengine.v1.Project.ServiceTerms]. - * - * Generated from protobuf field map service_terms_map = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setServiceTermsMap($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Project\ServiceTerms::class); - $this->service_terms_map = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project/ServiceTerms.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project/ServiceTerms.php deleted file mode 100644 index ca4f8e1449d5..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project/ServiceTerms.php +++ /dev/null @@ -1,266 +0,0 @@ -google.cloud.discoveryengine.v1.Project.ServiceTerms - */ -class ServiceTerms extends \Google\Protobuf\Internal\Message -{ - /** - * The unique identifier of this terms of service. - * Available terms: - * * `GA_DATA_USE_TERMS`: [Terms for data - * use](https://cloud.google.com/retail/data-use-terms). When using this as - * `id`, the acceptable - * [version][google.cloud.discoveryengine.v1.Project.ServiceTerms.version] - * to provide is `2022-11-23`. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The version string of the terms of service. - * For acceptable values, see the comments for - * [id][google.cloud.discoveryengine.v1.Project.ServiceTerms.id] above. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - /** - * Whether the project has accepted/rejected the service terms or it is - * still pending. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Project.ServiceTerms.State state = 4; - */ - protected $state = 0; - /** - * The last time when the project agreed to the terms of service. - * - * Generated from protobuf field .google.protobuf.Timestamp accept_time = 5; - */ - protected $accept_time = null; - /** - * The last time when the project declined or revoked the agreement to terms - * of service. - * - * Generated from protobuf field .google.protobuf.Timestamp decline_time = 6; - */ - protected $decline_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The unique identifier of this terms of service. - * Available terms: - * * `GA_DATA_USE_TERMS`: [Terms for data - * use](https://cloud.google.com/retail/data-use-terms). When using this as - * `id`, the acceptable - * [version][google.cloud.discoveryengine.v1.Project.ServiceTerms.version] - * to provide is `2022-11-23`. - * @type string $version - * The version string of the terms of service. - * For acceptable values, see the comments for - * [id][google.cloud.discoveryengine.v1.Project.ServiceTerms.id] above. - * @type int $state - * Whether the project has accepted/rejected the service terms or it is - * still pending. - * @type \Google\Protobuf\Timestamp $accept_time - * The last time when the project agreed to the terms of service. - * @type \Google\Protobuf\Timestamp $decline_time - * The last time when the project declined or revoked the agreement to terms - * of service. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Project::initOnce(); - parent::__construct($data); - } - - /** - * The unique identifier of this terms of service. - * Available terms: - * * `GA_DATA_USE_TERMS`: [Terms for data - * use](https://cloud.google.com/retail/data-use-terms). When using this as - * `id`, the acceptable - * [version][google.cloud.discoveryengine.v1.Project.ServiceTerms.version] - * to provide is `2022-11-23`. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The unique identifier of this terms of service. - * Available terms: - * * `GA_DATA_USE_TERMS`: [Terms for data - * use](https://cloud.google.com/retail/data-use-terms). When using this as - * `id`, the acceptable - * [version][google.cloud.discoveryengine.v1.Project.ServiceTerms.version] - * to provide is `2022-11-23`. - * - * 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 version string of the terms of service. - * For acceptable values, see the comments for - * [id][google.cloud.discoveryengine.v1.Project.ServiceTerms.id] above. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The version string of the terms of service. - * For acceptable values, see the comments for - * [id][google.cloud.discoveryengine.v1.Project.ServiceTerms.id] above. - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Whether the project has accepted/rejected the service terms or it is - * still pending. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Project.ServiceTerms.State state = 4; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Whether the project has accepted/rejected the service terms or it is - * still pending. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Project.ServiceTerms.State state = 4; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\Project\ServiceTerms\State::class); - $this->state = $var; - - return $this; - } - - /** - * The last time when the project agreed to the terms of service. - * - * Generated from protobuf field .google.protobuf.Timestamp accept_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getAcceptTime() - { - return $this->accept_time; - } - - public function hasAcceptTime() - { - return isset($this->accept_time); - } - - public function clearAcceptTime() - { - unset($this->accept_time); - } - - /** - * The last time when the project agreed to the terms of service. - * - * Generated from protobuf field .google.protobuf.Timestamp accept_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setAcceptTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->accept_time = $var; - - return $this; - } - - /** - * The last time when the project declined or revoked the agreement to terms - * of service. - * - * Generated from protobuf field .google.protobuf.Timestamp decline_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeclineTime() - { - return $this->decline_time; - } - - public function hasDeclineTime() - { - return isset($this->decline_time); - } - - public function clearDeclineTime() - { - unset($this->decline_time); - } - - /** - * The last time when the project declined or revoked the agreement to terms - * of service. - * - * Generated from protobuf field .google.protobuf.Timestamp decline_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeclineTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->decline_time = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ServiceTerms::class, \Google\Cloud\DiscoveryEngine\V1\Project_ServiceTerms::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project/ServiceTerms/State.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project/ServiceTerms/State.php deleted file mode 100644 index 1c07da5a551e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Project/ServiceTerms/State.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.discoveryengine.v1.Project.ServiceTerms.State - */ -class State -{ - /** - * The default value of the enum. This value is not actually used. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The project has given consent to the terms of service. - * - * Generated from protobuf enum TERMS_ACCEPTED = 1; - */ - const TERMS_ACCEPTED = 1; - /** - * The project is pending to review and accept the terms of service. - * - * Generated from protobuf enum TERMS_PENDING = 2; - */ - const TERMS_PENDING = 2; - /** - * The project has declined or revoked the agreement to terms of service. - * - * Generated from protobuf enum TERMS_DECLINED = 3; - */ - const TERMS_DECLINED = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::TERMS_ACCEPTED => 'TERMS_ACCEPTED', - self::TERMS_PENDING => 'TERMS_PENDING', - self::TERMS_DECLINED => 'TERMS_DECLINED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DiscoveryEngine\V1\Project_ServiceTerms_State::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ProvisionProjectMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ProvisionProjectMetadata.php deleted file mode 100644 index 95f9296757ae..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ProvisionProjectMetadata.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.discoveryengine.v1.ProvisionProjectMetadata - */ -class ProvisionProjectMetadata extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ProjectService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ProvisionProjectRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ProvisionProjectRequest.php deleted file mode 100644 index 51a94f5db321..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/ProvisionProjectRequest.php +++ /dev/null @@ -1,181 +0,0 @@ -google.cloud.discoveryengine.v1.ProvisionProjectRequest - */ -class ProvisionProjectRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of a - * [Project][google.cloud.discoveryengine.v1.Project], such as - * `projects/{project_id_or_number}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. Set to `true` to specify that caller has read and would like to - * give consent to the [Terms for data - * use](https://cloud.google.com/retail/data-use-terms). - * - * Generated from protobuf field bool accept_data_use_terms = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $accept_data_use_terms = false; - /** - * Required. The version of the [Terms for data - * use](https://cloud.google.com/retail/data-use-terms) that caller has read - * and would like to give consent to. - * Acceptable version is `2022-11-23`, and this may change over time. - * - * Generated from protobuf field string data_use_terms_version = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_use_terms_version = ''; - - /** - * @param string $name Required. Full resource name of a - * [Project][google.cloud.discoveryengine.v1.Project], such as - * `projects/{project_id_or_number}`. Please see - * {@see ProjectServiceClient::projectName()} for help formatting this field. - * - * @return \Google\Cloud\DiscoveryEngine\V1\ProvisionProjectRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Full resource name of a - * [Project][google.cloud.discoveryengine.v1.Project], such as - * `projects/{project_id_or_number}`. - * @type bool $accept_data_use_terms - * Required. Set to `true` to specify that caller has read and would like to - * give consent to the [Terms for data - * use](https://cloud.google.com/retail/data-use-terms). - * @type string $data_use_terms_version - * Required. The version of the [Terms for data - * use](https://cloud.google.com/retail/data-use-terms) that caller has read - * and would like to give consent to. - * Acceptable version is `2022-11-23`, and this may change over time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ProjectService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of a - * [Project][google.cloud.discoveryengine.v1.Project], such as - * `projects/{project_id_or_number}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Full resource name of a - * [Project][google.cloud.discoveryengine.v1.Project], such as - * `projects/{project_id_or_number}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_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. Set to `true` to specify that caller has read and would like to - * give consent to the [Terms for data - * use](https://cloud.google.com/retail/data-use-terms). - * - * Generated from protobuf field bool accept_data_use_terms = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return bool - */ - public function getAcceptDataUseTerms() - { - return $this->accept_data_use_terms; - } - - /** - * Required. Set to `true` to specify that caller has read and would like to - * give consent to the [Terms for data - * use](https://cloud.google.com/retail/data-use-terms). - * - * Generated from protobuf field bool accept_data_use_terms = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param bool $var - * @return $this - */ - public function setAcceptDataUseTerms($var) - { - GPBUtil::checkBool($var); - $this->accept_data_use_terms = $var; - - return $this; - } - - /** - * Required. The version of the [Terms for data - * use](https://cloud.google.com/retail/data-use-terms) that caller has read - * and would like to give consent to. - * Acceptable version is `2022-11-23`, and this may change over time. - * - * Generated from protobuf field string data_use_terms_version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDataUseTermsVersion() - { - return $this->data_use_terms_version; - } - - /** - * Required. The version of the [Terms for data - * use](https://cloud.google.com/retail/data-use-terms) that caller has read - * and would like to give consent to. - * Acceptable version is `2022-11-23`, and this may change over time. - * - * Generated from protobuf field string data_use_terms_version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDataUseTermsVersion($var) - { - GPBUtil::checkString($var, True); - $this->data_use_terms_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsMetadata.php deleted file mode 100644 index f92bd3ba31c6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsMetadata.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsMetadata - */ -class PurgeCompletionSuggestionsMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsRequest.php deleted file mode 100644 index 175c0d67041d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsRequest.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsRequest - */ -class PurgeCompletionSuggestionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent data store resource name for which to purge completion - * suggestions. Follows pattern - * projects/*/locations/*/collections/*/dataStores/*. - * - * 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 data store resource name for which to purge completion - * suggestions. Follows pattern - * projects/*/locations/*/collections/*/dataStores/*. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent data store resource name for which to purge completion - * suggestions. Follows pattern - * projects/*/locations/*/collections/*/dataStores/*. - * - * Generated 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 data store resource name for which to purge completion - * suggestions. Follows pattern - * projects/*/locations/*/collections/*/dataStores/*. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsResponse.php deleted file mode 100644 index d40162451d92..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeCompletionSuggestionsResponse.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeCompletionSuggestionsResponse - */ -class PurgeCompletionSuggestionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Whether the completion suggestions were successfully purged. - * - * Generated from protobuf field bool purge_succeeded = 1; - */ - protected $purge_succeeded = false; - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 2; - */ - private $error_samples; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $purge_succeeded - * Whether the completion suggestions were successfully purged. - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $error_samples - * A sample of errors encountered while processing the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Whether the completion suggestions were successfully purged. - * - * Generated from protobuf field bool purge_succeeded = 1; - * @return bool - */ - public function getPurgeSucceeded() - { - return $this->purge_succeeded; - } - - /** - * Whether the completion suggestions were successfully purged. - * - * Generated from protobuf field bool purge_succeeded = 1; - * @param bool $var - * @return $this - */ - public function setPurgeSucceeded($var) - { - GPBUtil::checkBool($var); - $this->purge_succeeded = $var; - - return $this; - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorSamples() - { - return $this->error_samples; - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 2; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorSamples($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->error_samples = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsMetadata.php deleted file mode 100644 index 1869a355563d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsMetadata.php +++ /dev/null @@ -1,228 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeDocumentsMetadata - */ -class PurgeDocumentsMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - /** - * Count of entries that were deleted successfully. - * - * Generated from protobuf field int64 success_count = 3; - */ - protected $success_count = 0; - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - */ - protected $failure_count = 0; - /** - * Count of entries that were ignored as entries were not found. - * - * Generated from protobuf field int64 ignored_count = 5; - */ - protected $ignored_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * @type int|string $success_count - * Count of entries that were deleted successfully. - * @type int|string $failure_count - * Count of entries that encountered errors while processing. - * @type int|string $ignored_count - * Count of entries that were ignored as entries were not found. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - - /** - * Count of entries that were deleted successfully. - * - * Generated from protobuf field int64 success_count = 3; - * @return int|string - */ - public function getSuccessCount() - { - return $this->success_count; - } - - /** - * Count of entries that were deleted successfully. - * - * Generated from protobuf field int64 success_count = 3; - * @param int|string $var - * @return $this - */ - public function setSuccessCount($var) - { - GPBUtil::checkInt64($var); - $this->success_count = $var; - - return $this; - } - - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - * @return int|string - */ - public function getFailureCount() - { - return $this->failure_count; - } - - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - * @param int|string $var - * @return $this - */ - public function setFailureCount($var) - { - GPBUtil::checkInt64($var); - $this->failure_count = $var; - - return $this; - } - - /** - * Count of entries that were ignored as entries were not found. - * - * Generated from protobuf field int64 ignored_count = 5; - * @return int|string - */ - public function getIgnoredCount() - { - return $this->ignored_count; - } - - /** - * Count of entries that were ignored as entries were not found. - * - * Generated from protobuf field int64 ignored_count = 5; - * @param int|string $var - * @return $this - */ - public function setIgnoredCount($var) - { - GPBUtil::checkInt64($var); - $this->ignored_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsRequest.php deleted file mode 100644 index ecbc2b001438..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsRequest.php +++ /dev/null @@ -1,281 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeDocumentsRequest - */ -class PurgeDocumentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Filter matching documents to purge. Only currently supported - * value is - * `*` (all items). - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - /** - * The desired location of errors incurred during the purge. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PurgeErrorConfig error_config = 7; - */ - protected $error_config = null; - /** - * Actually performs the purge. If `force` is set to false, return the - * expected purge count without deleting any documents. - * - * Generated from protobuf field bool force = 3; - */ - protected $force = false; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\GcsSource $gcs_source - * Cloud Storage location for the input content. - * Supported `data_schema`: - * * `document_id`: One valid - * [Document.id][google.cloud.discoveryengine.v1.Document.id] per line. - * @type \Google\Cloud\DiscoveryEngine\V1\PurgeDocumentsRequest\InlineSource $inline_source - * Inline source for the input content for purge. - * @type string $parent - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * @type string $filter - * Required. Filter matching documents to purge. Only currently supported - * value is - * `*` (all items). - * @type \Google\Cloud\DiscoveryEngine\V1\PurgeErrorConfig $error_config - * The desired location of errors incurred during the purge. - * @type bool $force - * Actually performs the purge. If `force` is set to false, return the - * expected purge count without deleting any documents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Storage location for the input content. - * Supported `data_schema`: - * * `document_id`: One valid - * [Document.id][google.cloud.discoveryengine.v1.Document.id] per line. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GcsSource gcs_source = 5; - * @return \Google\Cloud\DiscoveryEngine\V1\GcsSource|null - */ - public function getGcsSource() - { - return $this->readOneof(5); - } - - public function hasGcsSource() - { - return $this->hasOneof(5); - } - - /** - * Cloud Storage location for the input content. - * Supported `data_schema`: - * * `document_id`: One valid - * [Document.id][google.cloud.discoveryengine.v1.Document.id] per line. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.GcsSource gcs_source = 5; - * @param \Google\Cloud\DiscoveryEngine\V1\GcsSource $var - * @return $this - */ - public function setGcsSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\GcsSource::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Inline source for the input content for purge. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PurgeDocumentsRequest.InlineSource inline_source = 6; - * @return \Google\Cloud\DiscoveryEngine\V1\PurgeDocumentsRequest\InlineSource|null - */ - public function getInlineSource() - { - return $this->readOneof(6); - } - - public function hasInlineSource() - { - return $this->hasOneof(6); - } - - /** - * Inline source for the input content for purge. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PurgeDocumentsRequest.InlineSource inline_source = 6; - * @param \Google\Cloud\DiscoveryEngine\V1\PurgeDocumentsRequest\InlineSource $var - * @return $this - */ - public function setInlineSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\PurgeDocumentsRequest\InlineSource::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Required. The parent resource name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * - * Generated 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 name, such as - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 matching documents to purge. Only currently supported - * value is - * `*` (all items). - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. Filter matching documents to purge. Only currently supported - * value is - * `*` (all items). - * - * 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; - } - - /** - * The desired location of errors incurred during the purge. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PurgeErrorConfig error_config = 7; - * @return \Google\Cloud\DiscoveryEngine\V1\PurgeErrorConfig|null - */ - public function getErrorConfig() - { - return $this->error_config; - } - - public function hasErrorConfig() - { - return isset($this->error_config); - } - - public function clearErrorConfig() - { - unset($this->error_config); - } - - /** - * The desired location of errors incurred during the purge. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PurgeErrorConfig error_config = 7; - * @param \Google\Cloud\DiscoveryEngine\V1\PurgeErrorConfig $var - * @return $this - */ - public function setErrorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\PurgeErrorConfig::class); - $this->error_config = $var; - - return $this; - } - - /** - * Actually performs the purge. If `force` is set to false, return the - * expected purge count without deleting any documents. - * - * Generated from protobuf field bool force = 3; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * Actually performs the purge. If `force` is set to false, return the - * expected purge count without deleting any documents. - * - * Generated from protobuf field bool force = 3; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsRequest/InlineSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsRequest/InlineSource.php deleted file mode 100644 index 27bdda9106d6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsRequest/InlineSource.php +++ /dev/null @@ -1,84 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeDocumentsRequest.InlineSource - */ -class InlineSource extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A list of full resource name of documents to purge. In the - * format - * `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`. - * Recommended max of 100 items. - * - * Generated from protobuf field repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $documents; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $documents - * Required. A list of full resource name of documents to purge. In the - * format - * `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`. - * Recommended max of 100 items. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. A list of full resource name of documents to purge. In the - * format - * `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`. - * Recommended max of 100 items. - * - * Generated from protobuf field repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDocuments() - { - return $this->documents; - } - - /** - * Required. A list of full resource name of documents to purge. In the - * format - * `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`. - * Recommended max of 100 items. - * - * Generated from protobuf field repeated string documents = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDocuments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->documents = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InlineSource::class, \Google\Cloud\DiscoveryEngine\V1\PurgeDocumentsRequest_InlineSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsResponse.php deleted file mode 100644 index 76d2ceda2540..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeDocumentsResponse.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeDocumentsResponse - */ -class PurgeDocumentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The total count of documents purged as a result of the operation. - * - * Generated from protobuf field int64 purge_count = 1; - */ - protected $purge_count = 0; - /** - * A sample of document names that will be deleted. Only populated if `force` - * is set to false. A max of 100 names will be returned and the names are - * chosen at random. - * - * Generated from protobuf field repeated string purge_sample = 2 [(.google.api.resource_reference) = { - */ - private $purge_sample; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $purge_count - * The total count of documents purged as a result of the operation. - * @type array|\Google\Protobuf\Internal\RepeatedField $purge_sample - * A sample of document names that will be deleted. Only populated if `force` - * is set to false. A max of 100 names will be returned and the names are - * chosen at random. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * The total count of documents purged as a result of the operation. - * - * Generated from protobuf field int64 purge_count = 1; - * @return int|string - */ - public function getPurgeCount() - { - return $this->purge_count; - } - - /** - * The total count of documents purged as a result of the operation. - * - * Generated from protobuf field int64 purge_count = 1; - * @param int|string $var - * @return $this - */ - public function setPurgeCount($var) - { - GPBUtil::checkInt64($var); - $this->purge_count = $var; - - return $this; - } - - /** - * A sample of document names that will be deleted. Only populated if `force` - * is set to false. A max of 100 names will be returned and the names are - * chosen at random. - * - * Generated from protobuf field repeated string purge_sample = 2 [(.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPurgeSample() - { - return $this->purge_sample; - } - - /** - * A sample of document names that will be deleted. Only populated if `force` - * is set to false. A max of 100 names will be returned and the names are - * chosen at random. - * - * Generated from protobuf field repeated string purge_sample = 2 [(.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPurgeSample($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->purge_sample = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeErrorConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeErrorConfig.php deleted file mode 100644 index ad80d67bf0f0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeErrorConfig.php +++ /dev/null @@ -1,84 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeErrorConfig - */ -class PurgeErrorConfig extends \Google\Protobuf\Internal\Message -{ - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_prefix - * Cloud Storage prefix for purge errors. This must be an empty, - * existing Cloud Storage directory. Purge errors are written to - * sharded files in this directory, one per line, as a JSON-encoded - * `google.rpc.Status` message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Storage prefix for purge errors. This must be an empty, - * existing Cloud Storage directory. Purge errors are written to - * sharded files in this directory, one per line, as a JSON-encoded - * `google.rpc.Status` message. - * - * Generated from protobuf field string gcs_prefix = 1; - * @return string - */ - public function getGcsPrefix() - { - return $this->readOneof(1); - } - - public function hasGcsPrefix() - { - return $this->hasOneof(1); - } - - /** - * Cloud Storage prefix for purge errors. This must be an empty, - * existing Cloud Storage directory. Purge errors are written to - * sharded files in this directory, one per line, as a JSON-encoded - * `google.rpc.Status` message. - * - * Generated from protobuf field string gcs_prefix = 1; - * @param string $var - * @return $this - */ - public function setGcsPrefix($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesMetadata.php deleted file mode 100644 index 2710c12488b4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesMetadata.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesMetadata - */ -class PurgeSuggestionDenyListEntriesMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesRequest.php deleted file mode 100644 index cfa3f5ecc093..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesRequest.php +++ /dev/null @@ -1,73 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesRequest - */ -class PurgeSuggestionDenyListEntriesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent data store resource name for which to import denylist - * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*. - * - * 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 data store resource name for which to import denylist - * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent data store resource name for which to import denylist - * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*. - * - * Generated 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 data store resource name for which to import denylist - * entries. Follows pattern projects/*/locations/*/collections/*/dataStores/*. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesResponse.php deleted file mode 100644 index 1eb56f3bbd1f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeSuggestionDenyListEntriesResponse.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeSuggestionDenyListEntriesResponse - */ -class PurgeSuggestionDenyListEntriesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Number of suggestion deny list entries purged. - * - * Generated from protobuf field int64 purge_count = 1; - */ - protected $purge_count = 0; - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 2; - */ - private $error_samples; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $purge_count - * Number of suggestion deny list entries purged. - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $error_samples - * A sample of errors encountered while processing the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Number of suggestion deny list entries purged. - * - * Generated from protobuf field int64 purge_count = 1; - * @return int|string - */ - public function getPurgeCount() - { - return $this->purge_count; - } - - /** - * Number of suggestion deny list entries purged. - * - * Generated from protobuf field int64 purge_count = 1; - * @param int|string $var - * @return $this - */ - public function setPurgeCount($var) - { - GPBUtil::checkInt64($var); - $this->purge_count = $var; - - return $this; - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorSamples() - { - return $this->error_samples; - } - - /** - * A sample of errors encountered while processing the request. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 2; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorSamples($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->error_samples = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsMetadata.php deleted file mode 100644 index a951995525f9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsMetadata.php +++ /dev/null @@ -1,194 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeUserEventsMetadata - */ -class PurgeUserEventsMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - /** - * Count of entries that were deleted successfully. - * - * Generated from protobuf field int64 success_count = 3; - */ - protected $success_count = 0; - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - */ - protected $failure_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * @type int|string $success_count - * Count of entries that were deleted successfully. - * @type int|string $failure_count - * Count of entries that encountered errors while processing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - - /** - * Count of entries that were deleted successfully. - * - * Generated from protobuf field int64 success_count = 3; - * @return int|string - */ - public function getSuccessCount() - { - return $this->success_count; - } - - /** - * Count of entries that were deleted successfully. - * - * Generated from protobuf field int64 success_count = 3; - * @param int|string $var - * @return $this - */ - public function setSuccessCount($var) - { - GPBUtil::checkInt64($var); - $this->success_count = $var; - - return $this; - } - - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - * @return int|string - */ - public function getFailureCount() - { - return $this->failure_count; - } - - /** - * Count of entries that encountered errors while processing. - * - * Generated from protobuf field int64 failure_count = 4; - * @param int|string $var - * @return $this - */ - public function setFailureCount($var) - { - GPBUtil::checkInt64($var); - $this->failure_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsRequest.php deleted file mode 100644 index 7557c8a63bdc..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsRequest.php +++ /dev/null @@ -1,243 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeUserEventsRequest - */ -class PurgeUserEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the catalog under which the events are - * created. The format is - * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The filter string to specify the events to be deleted with a - * length limit of 5,000 characters. The eligible fields for filtering are: - * * `eventType`: Double quoted - * [UserEvent.event_type][google.cloud.discoveryengine.v1.UserEvent.event_type] - * string. - * * `eventTime`: in ISO 8601 "zulu" format. - * * `userPseudoId`: Double quoted string. Specifying this will delete all - * events associated with a visitor. - * * `userId`: Double quoted string. Specifying this will delete all events - * associated with a user. - * Examples: - * * Deleting all events in a time range: - * `eventTime > "2012-04-23T18:25:43.511Z" - * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: - * `*` - * The filtering fields are assumed to have an implicit AND. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = ''; - /** - * The `force` field is currently not supported. Purge user event requests - * will permanently delete all purgeable events. Once the development is - * complete: - * If `force` is set to false, the method will return the expected - * purge count without deleting any user events. This field will default to - * false if not included in the request. - * - * Generated from protobuf field bool force = 3; - */ - protected $force = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource name of the catalog under which the events are - * created. The format is - * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`. - * @type string $filter - * Required. The filter string to specify the events to be deleted with a - * length limit of 5,000 characters. The eligible fields for filtering are: - * * `eventType`: Double quoted - * [UserEvent.event_type][google.cloud.discoveryengine.v1.UserEvent.event_type] - * string. - * * `eventTime`: in ISO 8601 "zulu" format. - * * `userPseudoId`: Double quoted string. Specifying this will delete all - * events associated with a visitor. - * * `userId`: Double quoted string. Specifying this will delete all events - * associated with a user. - * Examples: - * * Deleting all events in a time range: - * `eventTime > "2012-04-23T18:25:43.511Z" - * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: - * `*` - * The filtering fields are assumed to have an implicit AND. - * @type bool $force - * The `force` field is currently not supported. Purge user event requests - * will permanently delete all purgeable events. Once the development is - * complete: - * If `force` is set to false, the method will return the expected - * purge count without deleting any user events. This field will default to - * false if not included in the request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the catalog under which the events are - * created. The format is - * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`. - * - * Generated 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 catalog under which the events are - * created. The format is - * `projects/{project}/locations/global/collections/{collection}/dataStores/{dataStore}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 filter string to specify the events to be deleted with a - * length limit of 5,000 characters. The eligible fields for filtering are: - * * `eventType`: Double quoted - * [UserEvent.event_type][google.cloud.discoveryengine.v1.UserEvent.event_type] - * string. - * * `eventTime`: in ISO 8601 "zulu" format. - * * `userPseudoId`: Double quoted string. Specifying this will delete all - * events associated with a visitor. - * * `userId`: Double quoted string. Specifying this will delete all events - * associated with a user. - * Examples: - * * Deleting all events in a time range: - * `eventTime > "2012-04-23T18:25:43.511Z" - * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: - * `*` - * The filtering fields are assumed to have an implicit AND. - * - * Generated from protobuf field string filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Required. The filter string to specify the events to be deleted with a - * length limit of 5,000 characters. The eligible fields for filtering are: - * * `eventType`: Double quoted - * [UserEvent.event_type][google.cloud.discoveryengine.v1.UserEvent.event_type] - * string. - * * `eventTime`: in ISO 8601 "zulu" format. - * * `userPseudoId`: Double quoted string. Specifying this will delete all - * events associated with a visitor. - * * `userId`: Double quoted string. Specifying this will delete all events - * associated with a user. - * Examples: - * * Deleting all events in a time range: - * `eventTime > "2012-04-23T18:25:43.511Z" - * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: - * `*` - * The filtering fields are assumed to have an implicit AND. - * - * 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; - } - - /** - * The `force` field is currently not supported. Purge user event requests - * will permanently delete all purgeable events. Once the development is - * complete: - * If `force` is set to false, the method will return the expected - * purge count without deleting any user events. This field will default to - * false if not included in the request. - * - * Generated from protobuf field bool force = 3; - * @return bool - */ - public function getForce() - { - return $this->force; - } - - /** - * The `force` field is currently not supported. Purge user event requests - * will permanently delete all purgeable events. Once the development is - * complete: - * If `force` is set to false, the method will return the expected - * purge count without deleting any user events. This field will default to - * false if not included in the request. - * - * Generated from protobuf field bool force = 3; - * @param bool $var - * @return $this - */ - public function setForce($var) - { - GPBUtil::checkBool($var); - $this->force = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsResponse.php deleted file mode 100644 index 998903cc947e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/PurgeUserEventsResponse.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.discoveryengine.v1.PurgeUserEventsResponse - */ -class PurgeUserEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The total count of events purged as a result of the operation. - * - * Generated from protobuf field int64 purge_count = 1; - */ - protected $purge_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $purge_count - * The total count of events purged as a result of the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\PurgeConfig::initOnce(); - parent::__construct($data); - } - - /** - * The total count of events purged as a result of the operation. - * - * Generated from protobuf field int64 purge_count = 1; - * @return int|string - */ - public function getPurgeCount() - { - return $this->purge_count; - } - - /** - * The total count of events purged as a result of the operation. - * - * Generated from protobuf field int64 purge_count = 1; - * @param int|string $var - * @return $this - */ - public function setPurgeCount($var) - { - GPBUtil::checkInt64($var); - $this->purge_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Query.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Query.php deleted file mode 100644 index e6c4300bb212..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Query.php +++ /dev/null @@ -1,109 +0,0 @@ -google.cloud.discoveryengine.v1.Query - */ -class Query extends \Google\Protobuf\Internal\Message -{ - /** - * Unique Id for the query. - * - * Generated from protobuf field string query_id = 1; - */ - protected $query_id = ''; - protected $content; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Plain text. - * @type string $query_id - * Unique Id for the query. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Session::initOnce(); - parent::__construct($data); - } - - /** - * Plain text. - * - * Generated from protobuf field string text = 2; - * @return string - */ - public function getText() - { - return $this->readOneof(2); - } - - public function hasText() - { - return $this->hasOneof(2); - } - - /** - * Plain text. - * - * Generated from protobuf field string text = 2; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Unique Id for the query. - * - * Generated from protobuf field string query_id = 1; - * @return string - */ - public function getQueryId() - { - return $this->query_id; - } - - /** - * Unique Id for the query. - * - * Generated from protobuf field string query_id = 1; - * @param string $var - * @return $this - */ - public function setQueryId($var) - { - GPBUtil::checkString($var, True); - $this->query_id = $var; - - return $this; - } - - /** - * @return string - */ - public function getContent() - { - return $this->whichOneof("content"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankRequest.php deleted file mode 100644 index 37ff3389d13c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankRequest.php +++ /dev/null @@ -1,352 +0,0 @@ -google.cloud.discoveryengine.v1.RankRequest - */ -class RankRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the rank service config, such as - * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`. - * - * Generated from protobuf field string ranking_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $ranking_config = ''; - /** - * The identifier of the model to use. It is one of: - * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input - * token size 512. - * It is set to `semantic-ranker-512@latest` by default if unspecified. - * - * Generated from protobuf field string model = 2; - */ - protected $model = ''; - /** - * The number of results to return. If this is unset or no bigger than zero, - * returns all results. - * - * Generated from protobuf field int32 top_n = 3; - */ - protected $top_n = 0; - /** - * The query to use. - * - * Generated from protobuf field string query = 4; - */ - protected $query = ''; - /** - * Required. A list of records to rank. At most 200 records to rank. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private $records; - /** - * If true, the response will contain only record ID and score. By default, it - * is false, the response will contain record details. - * - * Generated from protobuf field bool ignore_record_details_in_response = 6; - */ - protected $ignore_record_details_in_response = false; - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 7; - */ - private $user_labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $ranking_config - * Required. The resource name of the rank service config, such as - * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`. - * @type string $model - * The identifier of the model to use. It is one of: - * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input - * token size 512. - * It is set to `semantic-ranker-512@latest` by default if unspecified. - * @type int $top_n - * The number of results to return. If this is unset or no bigger than zero, - * returns all results. - * @type string $query - * The query to use. - * @type array<\Google\Cloud\DiscoveryEngine\V1\RankingRecord>|\Google\Protobuf\Internal\RepeatedField $records - * Required. A list of records to rank. At most 200 records to rank. - * @type bool $ignore_record_details_in_response - * If true, the response will contain only record ID and score. By default, it - * is false, the response will contain record details. - * @type array|\Google\Protobuf\Internal\MapField $user_labels - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\RankService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the rank service config, such as - * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`. - * - * Generated from protobuf field string ranking_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRankingConfig() - { - return $this->ranking_config; - } - - /** - * Required. The resource name of the rank service config, such as - * `projects/{project_num}/locations/{location}/rankingConfigs/default_ranking_config`. - * - * Generated from protobuf field string ranking_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRankingConfig($var) - { - GPBUtil::checkString($var, True); - $this->ranking_config = $var; - - return $this; - } - - /** - * The identifier of the model to use. It is one of: - * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input - * token size 512. - * It is set to `semantic-ranker-512@latest` by default if unspecified. - * - * Generated from protobuf field string model = 2; - * @return string - */ - public function getModel() - { - return $this->model; - } - - /** - * The identifier of the model to use. It is one of: - * * `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input - * token size 512. - * It is set to `semantic-ranker-512@latest` by default if unspecified. - * - * Generated from protobuf field string model = 2; - * @param string $var - * @return $this - */ - public function setModel($var) - { - GPBUtil::checkString($var, True); - $this->model = $var; - - return $this; - } - - /** - * The number of results to return. If this is unset or no bigger than zero, - * returns all results. - * - * Generated from protobuf field int32 top_n = 3; - * @return int - */ - public function getTopN() - { - return $this->top_n; - } - - /** - * The number of results to return. If this is unset or no bigger than zero, - * returns all results. - * - * Generated from protobuf field int32 top_n = 3; - * @param int $var - * @return $this - */ - public function setTopN($var) - { - GPBUtil::checkInt32($var); - $this->top_n = $var; - - return $this; - } - - /** - * The query to use. - * - * Generated from protobuf field string query = 4; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * The query to use. - * - * Generated from protobuf field string query = 4; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Required. A list of records to rank. At most 200 records to rank. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRecords() - { - return $this->records; - } - - /** - * Required. A list of records to rank. At most 200 records to rank. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\DiscoveryEngine\V1\RankingRecord>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\RankingRecord::class); - $this->records = $arr; - - return $this; - } - - /** - * If true, the response will contain only record ID and score. By default, it - * is false, the response will contain record details. - * - * Generated from protobuf field bool ignore_record_details_in_response = 6; - * @return bool - */ - public function getIgnoreRecordDetailsInResponse() - { - return $this->ignore_record_details_in_response; - } - - /** - * If true, the response will contain only record ID and score. By default, it - * is false, the response will contain record details. - * - * Generated from protobuf field bool ignore_record_details_in_response = 6; - * @param bool $var - * @return $this - */ - public function setIgnoreRecordDetailsInResponse($var) - { - GPBUtil::checkBool($var); - $this->ignore_record_details_in_response = $var; - - return $this; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getUserLabels() - { - return $this->user_labels; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->user_labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankResponse.php deleted file mode 100644 index d03a029e4612..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankResponse.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.discoveryengine.v1.RankResponse - */ -class RankResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of records sorted by descending score. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5; - */ - private $records; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\RankingRecord>|\Google\Protobuf\Internal\RepeatedField $records - * A list of records sorted by descending score. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\RankService::initOnce(); - parent::__construct($data); - } - - /** - * A list of records sorted by descending score. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRecords() - { - return $this->records; - } - - /** - * A list of records sorted by descending score. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RankingRecord records = 5; - * @param array<\Google\Cloud\DiscoveryEngine\V1\RankingRecord>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\RankingRecord::class); - $this->records = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankingRecord.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankingRecord.php deleted file mode 100644 index 5c907094e8d2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RankingRecord.php +++ /dev/null @@ -1,202 +0,0 @@ -google.cloud.discoveryengine.v1.RankingRecord - */ -class RankingRecord extends \Google\Protobuf\Internal\Message -{ - /** - * The unique ID to represent the record. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The title of the record. Empty by default. - * At least one of - * [title][google.cloud.discoveryengine.v1.RankingRecord.title] or - * [content][google.cloud.discoveryengine.v1.RankingRecord.content] should be - * set otherwise an INVALID_ARGUMENT error is thrown. - * - * Generated from protobuf field string title = 2; - */ - protected $title = ''; - /** - * The content of the record. Empty by default. - * At least one of - * [title][google.cloud.discoveryengine.v1.RankingRecord.title] or - * [content][google.cloud.discoveryengine.v1.RankingRecord.content] should be - * set otherwise an INVALID_ARGUMENT error is thrown. - * - * Generated from protobuf field string content = 3; - */ - protected $content = ''; - /** - * The score of this record based on the given query and selected model. - * - * Generated from protobuf field float score = 4; - */ - protected $score = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * The unique ID to represent the record. - * @type string $title - * The title of the record. Empty by default. - * At least one of - * [title][google.cloud.discoveryengine.v1.RankingRecord.title] or - * [content][google.cloud.discoveryengine.v1.RankingRecord.content] should be - * set otherwise an INVALID_ARGUMENT error is thrown. - * @type string $content - * The content of the record. Empty by default. - * At least one of - * [title][google.cloud.discoveryengine.v1.RankingRecord.title] or - * [content][google.cloud.discoveryengine.v1.RankingRecord.content] should be - * set otherwise an INVALID_ARGUMENT error is thrown. - * @type float $score - * The score of this record based on the given query and selected model. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\RankService::initOnce(); - parent::__construct($data); - } - - /** - * The unique ID to represent the record. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * The unique ID to represent the record. - * - * 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 title of the record. Empty by default. - * At least one of - * [title][google.cloud.discoveryengine.v1.RankingRecord.title] or - * [content][google.cloud.discoveryengine.v1.RankingRecord.content] should be - * set otherwise an INVALID_ARGUMENT error is thrown. - * - * Generated from protobuf field string title = 2; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * The title of the record. Empty by default. - * At least one of - * [title][google.cloud.discoveryengine.v1.RankingRecord.title] or - * [content][google.cloud.discoveryengine.v1.RankingRecord.content] should be - * set otherwise an INVALID_ARGUMENT error is thrown. - * - * Generated from protobuf field string title = 2; - * @param string $var - * @return $this - */ - public function setTitle($var) - { - GPBUtil::checkString($var, True); - $this->title = $var; - - return $this; - } - - /** - * The content of the record. Empty by default. - * At least one of - * [title][google.cloud.discoveryengine.v1.RankingRecord.title] or - * [content][google.cloud.discoveryengine.v1.RankingRecord.content] should be - * set otherwise an INVALID_ARGUMENT error is thrown. - * - * Generated from protobuf field string content = 3; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * The content of the record. Empty by default. - * At least one of - * [title][google.cloud.discoveryengine.v1.RankingRecord.title] or - * [content][google.cloud.discoveryengine.v1.RankingRecord.content] should be - * set otherwise an INVALID_ARGUMENT error is thrown. - * - * Generated from protobuf field string content = 3; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * The score of this record based on the given query and selected model. - * - * Generated from protobuf field float score = 4; - * @return float - */ - public function getScore() - { - return $this->score; - } - - /** - * The score of this record based on the given query and selected model. - * - * Generated from protobuf field float score = 4; - * @param float $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkFloat($var); - $this->score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendRequest.php deleted file mode 100644 index 3a8fb4990722..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendRequest.php +++ /dev/null @@ -1,637 +0,0 @@ -google.cloud.discoveryengine.v1.RecommendRequest - */ -class RecommendRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of a - * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]: - * `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or - * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*` - * One default serving config is created along with your recommendation engine - * creation. The engine ID is used as the ID of the default serving - * config. For example, for Engine - * `projects/*/locations/global/collections/*/engines/my-engine`, you can use - * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend] - * requests. - * - * Generated from protobuf field string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $serving_config = ''; - /** - * Required. Context about the user, what they are looking at and what action - * they took to trigger the Recommend request. Note that this user event - * detail won't be ingested to userEvent logs. Thus, a separate userEvent - * write request is required for event logging. - * Don't set - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * or - * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1.UserInfo.user_id] - * to the same fixed ID for different users. If you are trying to receive - * non-personalized recommendations (not recommended; this can negatively - * impact model performance), instead set - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * to a random unique ID and leave - * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1.UserInfo.user_id] - * unset. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user_event = null; - /** - * Maximum number of results to return. Set this property - * to the number of recommendation results needed. If zero, the service - * chooses a reasonable default. The maximum allowed value is 100. Values - * above 100 are set to 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Filter for restricting recommendation results with a length limit of 5,000 - * characters. Currently, only filter expressions on the `filter_tags` - * attribute is supported. - * Examples: - * * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))` - * * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))` - * If `attributeFilteringSyntax` is set to true under the `params` field, then - * attribute-based expressions are expected instead of the above described - * tag-based syntax. Examples: - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) - * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) - * If your filter blocks all results, the API returns generic - * (unfiltered) popular Documents. If you only want results strictly matching - * the filters, set `strictFiltering` to `true` in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params] - * to receive empty results instead. - * Note that the API never returns - * [Document][google.cloud.discoveryengine.v1.Document]s with `storageStatus` - * as `EXPIRED` or `DELETED` regardless of filter choices. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Use validate only mode for this recommendation query. If set to `true`, a - * fake model is used that returns arbitrary Document IDs. - * Note that the validate only mode should only be used for testing the API, - * or if the model is not ready. - * - * Generated from protobuf field bool validate_only = 5; - */ - protected $validate_only = false; - /** - * Additional domain specific parameters for the recommendations. - * Allowed values: - * * `returnDocument`: Boolean. If set to `true`, the associated Document - * object is returned in - * [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult.document]. - * * `returnScore`: Boolean. If set to true, the recommendation score - * corresponding to each returned Document is set in - * [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult.metadata]. - * The given score indicates the probability of a Document conversion given - * the user's context and history. - * * `strictFiltering`: Boolean. True by default. If set to `false`, the - * service - * returns generic (unfiltered) popular Documents instead of empty if - * your filter blocks all recommendation results. - * * `diversityLevel`: String. Default empty. If set to be non-empty, then - * it needs to be one of: - * * `no-diversity` - * * `low-diversity` - * * `medium-diversity` - * * `high-diversity` - * * `auto-diversity` - * This gives request-level control and adjusts recommendation results - * based on Document category. - * * `attributeFilteringSyntax`: Boolean. False by default. If set to true, - * the `filter` field is interpreted according to the new, - * attribute-based syntax. - * - * Generated from protobuf field map params = 6; - */ - private $params; - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Requirements for - * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 8; - */ - private $user_labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $serving_config - * Required. Full resource name of a - * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]: - * `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or - * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*` - * One default serving config is created along with your recommendation engine - * creation. The engine ID is used as the ID of the default serving - * config. For example, for Engine - * `projects/*/locations/global/collections/*/engines/my-engine`, you can use - * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend] - * requests. - * @type \Google\Cloud\DiscoveryEngine\V1\UserEvent $user_event - * Required. Context about the user, what they are looking at and what action - * they took to trigger the Recommend request. Note that this user event - * detail won't be ingested to userEvent logs. Thus, a separate userEvent - * write request is required for event logging. - * Don't set - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * or - * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1.UserInfo.user_id] - * to the same fixed ID for different users. If you are trying to receive - * non-personalized recommendations (not recommended; this can negatively - * impact model performance), instead set - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * to a random unique ID and leave - * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1.UserInfo.user_id] - * unset. - * @type int $page_size - * Maximum number of results to return. Set this property - * to the number of recommendation results needed. If zero, the service - * chooses a reasonable default. The maximum allowed value is 100. Values - * above 100 are set to 100. - * @type string $filter - * Filter for restricting recommendation results with a length limit of 5,000 - * characters. Currently, only filter expressions on the `filter_tags` - * attribute is supported. - * Examples: - * * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))` - * * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))` - * If `attributeFilteringSyntax` is set to true under the `params` field, then - * attribute-based expressions are expected instead of the above described - * tag-based syntax. Examples: - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) - * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) - * If your filter blocks all results, the API returns generic - * (unfiltered) popular Documents. If you only want results strictly matching - * the filters, set `strictFiltering` to `true` in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params] - * to receive empty results instead. - * Note that the API never returns - * [Document][google.cloud.discoveryengine.v1.Document]s with `storageStatus` - * as `EXPIRED` or `DELETED` regardless of filter choices. - * @type bool $validate_only - * Use validate only mode for this recommendation query. If set to `true`, a - * fake model is used that returns arbitrary Document IDs. - * Note that the validate only mode should only be used for testing the API, - * or if the model is not ready. - * @type array|\Google\Protobuf\Internal\MapField $params - * Additional domain specific parameters for the recommendations. - * Allowed values: - * * `returnDocument`: Boolean. If set to `true`, the associated Document - * object is returned in - * [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult.document]. - * * `returnScore`: Boolean. If set to true, the recommendation score - * corresponding to each returned Document is set in - * [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult.metadata]. - * The given score indicates the probability of a Document conversion given - * the user's context and history. - * * `strictFiltering`: Boolean. True by default. If set to `false`, the - * service - * returns generic (unfiltered) popular Documents instead of empty if - * your filter blocks all recommendation results. - * * `diversityLevel`: String. Default empty. If set to be non-empty, then - * it needs to be one of: - * * `no-diversity` - * * `low-diversity` - * * `medium-diversity` - * * `high-diversity` - * * `auto-diversity` - * This gives request-level control and adjusts recommendation results - * based on Document category. - * * `attributeFilteringSyntax`: Boolean. False by default. If set to true, - * the `filter` field is interpreted according to the new, - * attribute-based syntax. - * @type array|\Google\Protobuf\Internal\MapField $user_labels - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Requirements for - * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\RecommendationService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of a - * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]: - * `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or - * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*` - * One default serving config is created along with your recommendation engine - * creation. The engine ID is used as the ID of the default serving - * config. For example, for Engine - * `projects/*/locations/global/collections/*/engines/my-engine`, you can use - * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend] - * requests. - * - * Generated from protobuf field string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getServingConfig() - { - return $this->serving_config; - } - - /** - * Required. Full resource name of a - * [ServingConfig][google.cloud.discoveryengine.v1.ServingConfig]: - * `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or - * `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*` - * One default serving config is created along with your recommendation engine - * creation. The engine ID is used as the ID of the default serving - * config. For example, for Engine - * `projects/*/locations/global/collections/*/engines/my-engine`, you can use - * `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs/my-engine` - * for your - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend] - * requests. - * - * Generated from protobuf field string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setServingConfig($var) - { - GPBUtil::checkString($var, True); - $this->serving_config = $var; - - return $this; - } - - /** - * Required. Context about the user, what they are looking at and what action - * they took to trigger the Recommend request. Note that this user event - * detail won't be ingested to userEvent logs. Thus, a separate userEvent - * write request is required for event logging. - * Don't set - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * or - * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1.UserInfo.user_id] - * to the same fixed ID for different users. If you are trying to receive - * non-personalized recommendations (not recommended; this can negatively - * impact model performance), instead set - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * to a random unique ID and leave - * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1.UserInfo.user_id] - * unset. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\UserEvent|null - */ - public function getUserEvent() - { - return $this->user_event; - } - - public function hasUserEvent() - { - return isset($this->user_event); - } - - public function clearUserEvent() - { - unset($this->user_event); - } - - /** - * Required. Context about the user, what they are looking at and what action - * they took to trigger the Recommend request. Note that this user event - * detail won't be ingested to userEvent logs. Thus, a separate userEvent - * write request is required for event logging. - * Don't set - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * or - * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1.UserInfo.user_id] - * to the same fixed ID for different users. If you are trying to receive - * non-personalized recommendations (not recommended; this can negatively - * impact model performance), instead set - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * to a random unique ID and leave - * [UserEvent.user_info.user_id][google.cloud.discoveryengine.v1.UserInfo.user_id] - * unset. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\UserEvent $var - * @return $this - */ - public function setUserEvent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\UserEvent::class); - $this->user_event = $var; - - return $this; - } - - /** - * Maximum number of results to return. Set this property - * to the number of recommendation results needed. If zero, the service - * chooses a reasonable default. The maximum allowed value is 100. Values - * above 100 are set to 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of results to return. Set this property - * to the number of recommendation results needed. If zero, the service - * chooses a reasonable default. The maximum allowed value is 100. Values - * above 100 are set to 100. - * - * 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; - } - - /** - * Filter for restricting recommendation results with a length limit of 5,000 - * characters. Currently, only filter expressions on the `filter_tags` - * attribute is supported. - * Examples: - * * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))` - * * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))` - * If `attributeFilteringSyntax` is set to true under the `params` field, then - * attribute-based expressions are expected instead of the above described - * tag-based syntax. Examples: - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) - * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) - * If your filter blocks all results, the API returns generic - * (unfiltered) popular Documents. If you only want results strictly matching - * the filters, set `strictFiltering` to `true` in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params] - * to receive empty results instead. - * Note that the API never returns - * [Document][google.cloud.discoveryengine.v1.Document]s with `storageStatus` - * as `EXPIRED` or `DELETED` regardless of filter choices. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter for restricting recommendation results with a length limit of 5,000 - * characters. Currently, only filter expressions on the `filter_tags` - * attribute is supported. - * Examples: - * * `(filter_tags: ANY("Red", "Blue") OR filter_tags: ANY("Hot", "Cold"))` - * * `(filter_tags: ANY("Red", "Blue")) AND NOT (filter_tags: ANY("Green"))` - * If `attributeFilteringSyntax` is set to true under the `params` field, then - * attribute-based expressions are expected instead of the above described - * tag-based syntax. Examples: - * * (launguage: ANY("en", "es")) AND NOT (categories: ANY("Movie")) - * * (available: true) AND - * (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) - * If your filter blocks all results, the API returns generic - * (unfiltered) popular Documents. If you only want results strictly matching - * the filters, set `strictFiltering` to `true` in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params] - * to receive empty results instead. - * Note that the API never returns - * [Document][google.cloud.discoveryengine.v1.Document]s with `storageStatus` - * as `EXPIRED` or `DELETED` regardless of filter choices. - * - * 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; - } - - /** - * Use validate only mode for this recommendation query. If set to `true`, a - * fake model is used that returns arbitrary Document IDs. - * Note that the validate only mode should only be used for testing the API, - * or if the model is not ready. - * - * Generated from protobuf field bool validate_only = 5; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Use validate only mode for this recommendation query. If set to `true`, a - * fake model is used that returns arbitrary Document IDs. - * Note that the validate only mode should only be used for testing the API, - * or if the model is not ready. - * - * Generated from protobuf field bool validate_only = 5; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - - /** - * Additional domain specific parameters for the recommendations. - * Allowed values: - * * `returnDocument`: Boolean. If set to `true`, the associated Document - * object is returned in - * [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult.document]. - * * `returnScore`: Boolean. If set to true, the recommendation score - * corresponding to each returned Document is set in - * [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult.metadata]. - * The given score indicates the probability of a Document conversion given - * the user's context and history. - * * `strictFiltering`: Boolean. True by default. If set to `false`, the - * service - * returns generic (unfiltered) popular Documents instead of empty if - * your filter blocks all recommendation results. - * * `diversityLevel`: String. Default empty. If set to be non-empty, then - * it needs to be one of: - * * `no-diversity` - * * `low-diversity` - * * `medium-diversity` - * * `high-diversity` - * * `auto-diversity` - * This gives request-level control and adjusts recommendation results - * based on Document category. - * * `attributeFilteringSyntax`: Boolean. False by default. If set to true, - * the `filter` field is interpreted according to the new, - * attribute-based syntax. - * - * Generated from protobuf field map params = 6; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParams() - { - return $this->params; - } - - /** - * Additional domain specific parameters for the recommendations. - * Allowed values: - * * `returnDocument`: Boolean. If set to `true`, the associated Document - * object is returned in - * [RecommendResponse.RecommendationResult.document][google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult.document]. - * * `returnScore`: Boolean. If set to true, the recommendation score - * corresponding to each returned Document is set in - * [RecommendResponse.RecommendationResult.metadata][google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult.metadata]. - * The given score indicates the probability of a Document conversion given - * the user's context and history. - * * `strictFiltering`: Boolean. True by default. If set to `false`, the - * service - * returns generic (unfiltered) popular Documents instead of empty if - * your filter blocks all recommendation results. - * * `diversityLevel`: String. Default empty. If set to be non-empty, then - * it needs to be one of: - * * `no-diversity` - * * `low-diversity` - * * `medium-diversity` - * * `high-diversity` - * * `auto-diversity` - * This gives request-level control and adjusts recommendation results - * based on Document category. - * * `attributeFilteringSyntax`: Boolean. False by default. If set to true, - * the `filter` field is interpreted according to the new, - * attribute-based syntax. - * - * Generated from protobuf field map params = 6; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParams($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); - $this->params = $arr; - - return $this; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Requirements for - * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 8; - * @return \Google\Protobuf\Internal\MapField - */ - public function getUserLabels() - { - return $this->user_labels; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Requirements for - * labels](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 8; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->user_labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendResponse.php deleted file mode 100644 index f93b989ec3bf..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendResponse.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.discoveryengine.v1.RecommendResponse - */ -class RecommendResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of recommended Documents. The order represents the ranking (from the - * most relevant Document to the least). - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult results = 1; - */ - private $results; - /** - * A unique attribution token. This should be included in the - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from - * this recommendation, which enables accurate attribution of recommendation - * model performance. - * - * Generated from protobuf field string attribution_token = 2; - */ - protected $attribution_token = ''; - /** - * IDs of documents in the request that were missing from the default Branch - * associated with the requested ServingConfig. - * - * Generated from protobuf field repeated string missing_ids = 3; - */ - private $missing_ids; - /** - * True if - * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1.RecommendRequest.validate_only] - * was set. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\RecommendResponse\RecommendationResult>|\Google\Protobuf\Internal\RepeatedField $results - * A list of recommended Documents. The order represents the ranking (from the - * most relevant Document to the least). - * @type string $attribution_token - * A unique attribution token. This should be included in the - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from - * this recommendation, which enables accurate attribution of recommendation - * model performance. - * @type array|\Google\Protobuf\Internal\RepeatedField $missing_ids - * IDs of documents in the request that were missing from the default Branch - * associated with the requested ServingConfig. - * @type bool $validate_only - * True if - * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1.RecommendRequest.validate_only] - * was set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\RecommendationService::initOnce(); - parent::__construct($data); - } - - /** - * A list of recommended Documents. The order represents the ranking (from the - * most relevant Document to the least). - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult results = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResults() - { - return $this->results; - } - - /** - * A list of recommended Documents. The order represents the ranking (from the - * most relevant Document to the least). - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult results = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\RecommendResponse\RecommendationResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\RecommendResponse\RecommendationResult::class); - $this->results = $arr; - - return $this; - } - - /** - * A unique attribution token. This should be included in the - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from - * this recommendation, which enables accurate attribution of recommendation - * model performance. - * - * Generated from protobuf field string attribution_token = 2; - * @return string - */ - public function getAttributionToken() - { - return $this->attribution_token; - } - - /** - * A unique attribution token. This should be included in the - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from - * this recommendation, which enables accurate attribution of recommendation - * model performance. - * - * Generated from protobuf field string attribution_token = 2; - * @param string $var - * @return $this - */ - public function setAttributionToken($var) - { - GPBUtil::checkString($var, True); - $this->attribution_token = $var; - - return $this; - } - - /** - * IDs of documents in the request that were missing from the default Branch - * associated with the requested ServingConfig. - * - * Generated from protobuf field repeated string missing_ids = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMissingIds() - { - return $this->missing_ids; - } - - /** - * IDs of documents in the request that were missing from the default Branch - * associated with the requested ServingConfig. - * - * Generated from protobuf field repeated string missing_ids = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMissingIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->missing_ids = $arr; - - return $this; - } - - /** - * True if - * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1.RecommendRequest.validate_only] - * was set. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * True if - * [RecommendRequest.validate_only][google.cloud.discoveryengine.v1.RecommendRequest.validate_only] - * was set. - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendResponse/RecommendationResult.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendResponse/RecommendationResult.php deleted file mode 100644 index 2cc692fc3e67..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecommendResponse/RecommendationResult.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.discoveryengine.v1.RecommendResponse.RecommendationResult - */ -class RecommendationResult extends \Google\Protobuf\Internal\Message -{ - /** - * Resource ID of the recommended Document. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * Set if `returnDocument` is set to true in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 2; - */ - protected $document = null; - /** - * Additional Document metadata or annotations. - * Possible values: - * * `score`: Recommendation score in double value. Is set if - * `returnScore` is set to true in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params]. - * - * Generated from protobuf field map metadata = 3; - */ - private $metadata; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Resource ID of the recommended Document. - * @type \Google\Cloud\DiscoveryEngine\V1\Document $document - * Set if `returnDocument` is set to true in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params]. - * @type array|\Google\Protobuf\Internal\MapField $metadata - * Additional Document metadata or annotations. - * Possible values: - * * `score`: Recommendation score in double value. Is set if - * `returnScore` is set to true in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\RecommendationService::initOnce(); - parent::__construct($data); - } - - /** - * Resource ID of the recommended Document. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Resource ID of the recommended Document. - * - * 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; - } - - /** - * Set if `returnDocument` is set to true in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\Document|null - */ - public function getDocument() - { - return $this->document; - } - - public function hasDocument() - { - return isset($this->document); - } - - public function clearDocument() - { - unset($this->document); - } - - /** - * Set if `returnDocument` is set to true in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\Document $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Document::class); - $this->document = $var; - - return $this; - } - - /** - * Additional Document metadata or annotations. - * Possible values: - * * `score`: Recommendation score in double value. Is set if - * `returnScore` is set to true in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params]. - * - * Generated from protobuf field map metadata = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetadata() - { - return $this->metadata; - } - - /** - * Additional Document metadata or annotations. - * Possible values: - * * `score`: Recommendation score in double value. Is set if - * `returnScore` is set to true in - * [RecommendRequest.params][google.cloud.discoveryengine.v1.RecommendRequest.params]. - * - * 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::MESSAGE, \Google\Protobuf\Value::class); - $this->metadata = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RecommendationResult::class, \Google\Cloud\DiscoveryEngine\V1\RecommendResponse_RecommendationResult::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisMetadata.php deleted file mode 100644 index 57b19e2bd986..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisMetadata.php +++ /dev/null @@ -1,310 +0,0 @@ -google.cloud.discoveryengine.v1.RecrawlUrisMetadata - */ -class RecrawlUrisMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - /** - * Unique URIs in the request that don't match any TargetSite in the - * DataStore, only match TargetSites that haven't been fully indexed, or match - * a TargetSite with type EXCLUDE. - * - * Generated from protobuf field repeated string invalid_uris = 3; - */ - private $invalid_uris; - /** - * Total number of unique URIs in the request that are not in invalid_uris. - * - * Generated from protobuf field int32 valid_uris_count = 4; - */ - protected $valid_uris_count = 0; - /** - * Total number of URIs that have been crawled so far. - * - * Generated from protobuf field int32 success_count = 5; - */ - protected $success_count = 0; - /** - * Total number of URIs that have yet to be crawled. - * - * Generated from protobuf field int32 pending_count = 6; - */ - protected $pending_count = 0; - /** - * Total number of URIs that were rejected due to insufficient indexing - * resources. - * - * Generated from protobuf field int32 quota_exceeded_count = 7; - */ - protected $quota_exceeded_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * @type array|\Google\Protobuf\Internal\RepeatedField $invalid_uris - * Unique URIs in the request that don't match any TargetSite in the - * DataStore, only match TargetSites that haven't been fully indexed, or match - * a TargetSite with type EXCLUDE. - * @type int $valid_uris_count - * Total number of unique URIs in the request that are not in invalid_uris. - * @type int $success_count - * Total number of URIs that have been crawled so far. - * @type int $pending_count - * Total number of URIs that have yet to be crawled. - * @type int $quota_exceeded_count - * Total number of URIs that were rejected due to insufficient indexing - * resources. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - - /** - * Unique URIs in the request that don't match any TargetSite in the - * DataStore, only match TargetSites that haven't been fully indexed, or match - * a TargetSite with type EXCLUDE. - * - * Generated from protobuf field repeated string invalid_uris = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInvalidUris() - { - return $this->invalid_uris; - } - - /** - * Unique URIs in the request that don't match any TargetSite in the - * DataStore, only match TargetSites that haven't been fully indexed, or match - * a TargetSite with type EXCLUDE. - * - * Generated from protobuf field repeated string invalid_uris = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInvalidUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->invalid_uris = $arr; - - return $this; - } - - /** - * Total number of unique URIs in the request that are not in invalid_uris. - * - * Generated from protobuf field int32 valid_uris_count = 4; - * @return int - */ - public function getValidUrisCount() - { - return $this->valid_uris_count; - } - - /** - * Total number of unique URIs in the request that are not in invalid_uris. - * - * Generated from protobuf field int32 valid_uris_count = 4; - * @param int $var - * @return $this - */ - public function setValidUrisCount($var) - { - GPBUtil::checkInt32($var); - $this->valid_uris_count = $var; - - return $this; - } - - /** - * Total number of URIs that have been crawled so far. - * - * Generated from protobuf field int32 success_count = 5; - * @return int - */ - public function getSuccessCount() - { - return $this->success_count; - } - - /** - * Total number of URIs that have been crawled so far. - * - * Generated from protobuf field int32 success_count = 5; - * @param int $var - * @return $this - */ - public function setSuccessCount($var) - { - GPBUtil::checkInt32($var); - $this->success_count = $var; - - return $this; - } - - /** - * Total number of URIs that have yet to be crawled. - * - * Generated from protobuf field int32 pending_count = 6; - * @return int - */ - public function getPendingCount() - { - return $this->pending_count; - } - - /** - * Total number of URIs that have yet to be crawled. - * - * Generated from protobuf field int32 pending_count = 6; - * @param int $var - * @return $this - */ - public function setPendingCount($var) - { - GPBUtil::checkInt32($var); - $this->pending_count = $var; - - return $this; - } - - /** - * Total number of URIs that were rejected due to insufficient indexing - * resources. - * - * Generated from protobuf field int32 quota_exceeded_count = 7; - * @return int - */ - public function getQuotaExceededCount() - { - return $this->quota_exceeded_count; - } - - /** - * Total number of URIs that were rejected due to insufficient indexing - * resources. - * - * Generated from protobuf field int32 quota_exceeded_count = 7; - * @param int $var - * @return $this - */ - public function setQuotaExceededCount($var) - { - GPBUtil::checkInt32($var); - $this->quota_exceeded_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisRequest.php deleted file mode 100644 index c06134acc221..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.discoveryengine.v1.RecrawlUrisRequest - */ -class RecrawlUrisRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $site_search_engine = ''; - /** - * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise - * an INVALID_ARGUMENT error is thrown. Each URI should match at least one - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite] in - * `site_search_engine`. - * - * Generated from protobuf field repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $uris; - /** - * Optional. Full resource name of the [SiteCredential][], such as - * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`. - * Only set to crawl private URIs. - * - * Generated from protobuf field string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $site_credential = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $site_search_engine - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. - * @type array|\Google\Protobuf\Internal\RepeatedField $uris - * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise - * an INVALID_ARGUMENT error is thrown. Each URI should match at least one - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite] in - * `site_search_engine`. - * @type string $site_credential - * Optional. Full resource name of the [SiteCredential][], such as - * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`. - * Only set to crawl private URIs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getSiteSearchEngine() - { - return $this->site_search_engine; - } - - /** - * Required. Full resource name of the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine], such - * as `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`. - * - * Generated from protobuf field string site_search_engine = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSiteSearchEngine($var) - { - GPBUtil::checkString($var, True); - $this->site_search_engine = $var; - - return $this; - } - - /** - * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise - * an INVALID_ARGUMENT error is thrown. Each URI should match at least one - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite] in - * `site_search_engine`. - * - * Generated from protobuf field repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUris() - { - return $this->uris; - } - - /** - * Required. List of URIs to crawl. At most 10K URIs are supported, otherwise - * an INVALID_ARGUMENT error is thrown. Each URI should match at least one - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite] in - * `site_search_engine`. - * - * Generated from protobuf field repeated string uris = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->uris = $arr; - - return $this; - } - - /** - * Optional. Full resource name of the [SiteCredential][], such as - * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`. - * Only set to crawl private URIs. - * - * Generated from protobuf field string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSiteCredential() - { - return $this->site_credential; - } - - /** - * Optional. Full resource name of the [SiteCredential][], such as - * `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/siteCredentials/*`. - * Only set to crawl private URIs. - * - * Generated from protobuf field string site_credential = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSiteCredential($var) - { - GPBUtil::checkString($var, True); - $this->site_credential = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse.php deleted file mode 100644 index 8aedce4fe9f5..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.discoveryengine.v1.RecrawlUrisResponse - */ -class RecrawlUrisResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Details for a sample of up to 10 `failed_uris`. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo failure_samples = 1; - */ - private $failure_samples; - /** - * URIs that were not crawled before the LRO terminated. - * - * Generated from protobuf field repeated string failed_uris = 2; - */ - private $failed_uris; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse\FailureInfo>|\Google\Protobuf\Internal\RepeatedField $failure_samples - * Details for a sample of up to 10 `failed_uris`. - * @type array|\Google\Protobuf\Internal\RepeatedField $failed_uris - * URIs that were not crawled before the LRO terminated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Details for a sample of up to 10 `failed_uris`. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo failure_samples = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFailureSamples() - { - return $this->failure_samples; - } - - /** - * Details for a sample of up to 10 `failed_uris`. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo failure_samples = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse\FailureInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFailureSamples($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse\FailureInfo::class); - $this->failure_samples = $arr; - - return $this; - } - - /** - * URIs that were not crawled before the LRO terminated. - * - * Generated from protobuf field repeated string failed_uris = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFailedUris() - { - return $this->failed_uris; - } - - /** - * URIs that were not crawled before the LRO terminated. - * - * Generated from protobuf field repeated string failed_uris = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFailedUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->failed_uris = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo.php deleted file mode 100644 index e5a757b42af2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo - */ -class FailureInfo extends \Google\Protobuf\Internal\Message -{ - /** - * URI that failed to be crawled. - * - * Generated from protobuf field string uri = 1; - */ - protected $uri = ''; - /** - * List of failure reasons by corpus type (e.g. desktop, mobile). - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; - */ - private $failure_reasons; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * URI that failed to be crawled. - * @type array<\Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse\FailureInfo\FailureReason>|\Google\Protobuf\Internal\RepeatedField $failure_reasons - * List of failure reasons by corpus type (e.g. desktop, mobile). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * URI that failed to be crawled. - * - * Generated from protobuf field string uri = 1; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * URI that failed to be crawled. - * - * Generated from protobuf field string uri = 1; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * List of failure reasons by corpus type (e.g. desktop, mobile). - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFailureReasons() - { - return $this->failure_reasons; - } - - /** - * List of failure reasons by corpus type (e.g. desktop, mobile). - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo.FailureReason failure_reasons = 2; - * @param array<\Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse\FailureInfo\FailureReason>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFailureReasons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse\FailureInfo\FailureReason::class); - $this->failure_reasons = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FailureInfo::class, \Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse_FailureInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo/FailureReason.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo/FailureReason.php deleted file mode 100644 index abd0079cc454..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo/FailureReason.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo.FailureReason - */ -class FailureReason extends \Google\Protobuf\Internal\Message -{ - /** - * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; - */ - protected $corpus_type = 0; - /** - * Reason why the URI was not crawled. - * - * Generated from protobuf field string error_message = 2; - */ - protected $error_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $corpus_type - * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED. - * @type string $error_message - * Reason why the URI was not crawled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; - * @return int - */ - public function getCorpusType() - { - return $this->corpus_type; - } - - /** - * DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType corpus_type = 1; - * @param int $var - * @return $this - */ - public function setCorpusType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse\FailureInfo\FailureReason\CorpusType::class); - $this->corpus_type = $var; - - return $this; - } - - /** - * Reason why the URI was not crawled. - * - * Generated from protobuf field string error_message = 2; - * @return string - */ - public function getErrorMessage() - { - return $this->error_message; - } - - /** - * Reason why the URI was not crawled. - * - * 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(FailureReason::class, \Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse_FailureInfo_FailureReason::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo/FailureReason/CorpusType.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo/FailureReason/CorpusType.php deleted file mode 100644 index cd40be639557..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/RecrawlUrisResponse/FailureInfo/FailureReason/CorpusType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.discoveryengine.v1.RecrawlUrisResponse.FailureInfo.FailureReason.CorpusType - */ -class CorpusType -{ - /** - * Default value. - * - * Generated from protobuf enum CORPUS_TYPE_UNSPECIFIED = 0; - */ - const CORPUS_TYPE_UNSPECIFIED = 0; - /** - * Denotes a crawling attempt for the desktop version of a page. - * - * Generated from protobuf enum DESKTOP = 1; - */ - const DESKTOP = 1; - /** - * Denotes a crawling attempt for the mobile version of a page. - * - * Generated from protobuf enum MOBILE = 2; - */ - const MOBILE = 2; - - private static $valueToName = [ - self::CORPUS_TYPE_UNSPECIFIED => 'CORPUS_TYPE_UNSPECIFIED', - self::DESKTOP => 'DESKTOP', - self::MOBILE => 'MOBILE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CorpusType::class, \Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse_FailureInfo_FailureReason_CorpusType::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Reply.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Reply.php deleted file mode 100644 index cd46cf206986..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Reply.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.discoveryengine.v1.Reply - */ -class Reply extends \Google\Protobuf\Internal\Message -{ - /** - * Summary based on search results. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; - */ - protected $summary = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary $summary - * Summary based on search results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Summary based on search results. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary|null - */ - public function getSummary() - { - return $this->summary; - } - - public function hasSummary() - { - return isset($this->summary); - } - - public function clearSummary() - { - unset($this->summary); - } - - /** - * Summary based on search results. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary $var - * @return $this - */ - public function setSummary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary::class); - $this->summary = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Schema.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Schema.php deleted file mode 100644 index 64fc1fe7b94a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Schema.php +++ /dev/null @@ -1,154 +0,0 @@ -google.cloud.discoveryengine.v1.Schema - */ -class Schema extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - protected $schema; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Struct $struct_schema - * The structured representation of the schema. - * @type string $json_schema - * The JSON representation of the schema. - * @type string $name - * Immutable. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Schema::initOnce(); - parent::__construct($data); - } - - /** - * The structured representation of the schema. - * - * Generated from protobuf field .google.protobuf.Struct struct_schema = 2; - * @return \Google\Protobuf\Struct|null - */ - public function getStructSchema() - { - return $this->readOneof(2); - } - - public function hasStructSchema() - { - return $this->hasOneof(2); - } - - /** - * The structured representation of the schema. - * - * Generated from protobuf field .google.protobuf.Struct struct_schema = 2; - * @param \Google\Protobuf\Struct $var - * @return $this - */ - public function setStructSchema($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Struct::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The JSON representation of the schema. - * - * Generated from protobuf field string json_schema = 3; - * @return string - */ - public function getJsonSchema() - { - return $this->readOneof(3); - } - - public function hasJsonSchema() - { - return $this->hasOneof(3); - } - - /** - * The JSON representation of the schema. - * - * Generated from protobuf field string json_schema = 3; - * @param string $var - * @return $this - */ - public function setJsonSchema($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Immutable. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. The full resource name of the schema, in the format of - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}`. - * This field must be a UTF-8 encoded string with a length limit of 1024 - * characters. - * - * 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; - } - - /** - * @return string - */ - public function getSchema() - { - return $this->whichOneof("schema"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchAddOn.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchAddOn.php deleted file mode 100644 index af2e88fab638..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchAddOn.php +++ /dev/null @@ -1,54 +0,0 @@ -google.cloud.discoveryengine.v1.SearchAddOn - */ -class SearchAddOn -{ - /** - * Default value when the enum is unspecified. This is invalid to use. - * - * Generated from protobuf enum SEARCH_ADD_ON_UNSPECIFIED = 0; - */ - const SEARCH_ADD_ON_UNSPECIFIED = 0; - /** - * Large language model add-on. - * - * Generated from protobuf enum SEARCH_ADD_ON_LLM = 1; - */ - const SEARCH_ADD_ON_LLM = 1; - - private static $valueToName = [ - self::SEARCH_ADD_ON_UNSPECIFIED => 'SEARCH_ADD_ON_UNSPECIFIED', - self::SEARCH_ADD_ON_LLM => 'SEARCH_ADD_ON_LLM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchInfo.php deleted file mode 100644 index 393f96d1226c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchInfo.php +++ /dev/null @@ -1,241 +0,0 @@ -google.cloud.discoveryengine.v1.SearchInfo - */ -class SearchInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The user's search query. - * See - * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query] - * for definition. - * The value must be a UTF-8 encoded string with a length limit of 5,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * At least one of - * [search_query][google.cloud.discoveryengine.v1.SearchInfo.search_query] or - * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category] - * is required for `search` events. Other event types should not set this - * field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string search_query = 1; - */ - protected $search_query = ''; - /** - * The order in which products are returned, if applicable. - * See - * [SearchRequest.order_by][google.cloud.discoveryengine.v1.SearchRequest.order_by] - * for definition and syntax. - * The value must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * This can only be set for `search` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string order_by = 2; - */ - protected $order_by = ''; - /** - * An integer that specifies the current offset for pagination (the 0-indexed - * starting location, amongst the products deemed by the API as relevant). - * See - * [SearchRequest.offset][google.cloud.discoveryengine.v1.SearchRequest.offset] - * for definition. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * This can only be set for `search` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field optional int32 offset = 3; - */ - protected $offset = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $search_query - * The user's search query. - * See - * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query] - * for definition. - * The value must be a UTF-8 encoded string with a length limit of 5,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * At least one of - * [search_query][google.cloud.discoveryengine.v1.SearchInfo.search_query] or - * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category] - * is required for `search` events. Other event types should not set this - * field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * @type string $order_by - * The order in which products are returned, if applicable. - * See - * [SearchRequest.order_by][google.cloud.discoveryengine.v1.SearchRequest.order_by] - * for definition and syntax. - * The value must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * This can only be set for `search` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * @type int $offset - * An integer that specifies the current offset for pagination (the 0-indexed - * starting location, amongst the products deemed by the API as relevant). - * See - * [SearchRequest.offset][google.cloud.discoveryengine.v1.SearchRequest.offset] - * for definition. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * This can only be set for `search` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\UserEvent::initOnce(); - parent::__construct($data); - } - - /** - * The user's search query. - * See - * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query] - * for definition. - * The value must be a UTF-8 encoded string with a length limit of 5,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * At least one of - * [search_query][google.cloud.discoveryengine.v1.SearchInfo.search_query] or - * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category] - * is required for `search` events. Other event types should not set this - * field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string search_query = 1; - * @return string - */ - public function getSearchQuery() - { - return $this->search_query; - } - - /** - * The user's search query. - * See - * [SearchRequest.query][google.cloud.discoveryengine.v1.SearchRequest.query] - * for definition. - * The value must be a UTF-8 encoded string with a length limit of 5,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * At least one of - * [search_query][google.cloud.discoveryengine.v1.SearchInfo.search_query] or - * [PageInfo.page_category][google.cloud.discoveryengine.v1.PageInfo.page_category] - * is required for `search` events. Other event types should not set this - * field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string search_query = 1; - * @param string $var - * @return $this - */ - public function setSearchQuery($var) - { - GPBUtil::checkString($var, True); - $this->search_query = $var; - - return $this; - } - - /** - * The order in which products are returned, if applicable. - * See - * [SearchRequest.order_by][google.cloud.discoveryengine.v1.SearchRequest.order_by] - * for definition and syntax. - * The value must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * This can only be set for `search` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string order_by = 2; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * The order in which products are returned, if applicable. - * See - * [SearchRequest.order_by][google.cloud.discoveryengine.v1.SearchRequest.order_by] - * for definition and syntax. - * The value must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * This can only be set for `search` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string order_by = 2; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * An integer that specifies the current offset for pagination (the 0-indexed - * starting location, amongst the products deemed by the API as relevant). - * See - * [SearchRequest.offset][google.cloud.discoveryengine.v1.SearchRequest.offset] - * for definition. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * This can only be set for `search` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field optional int32 offset = 3; - * @return int - */ - public function getOffset() - { - return isset($this->offset) ? $this->offset : 0; - } - - public function hasOffset() - { - return isset($this->offset); - } - - public function clearOffset() - { - unset($this->offset); - } - - /** - * An integer that specifies the current offset for pagination (the 0-indexed - * starting location, amongst the products deemed by the API as relevant). - * See - * [SearchRequest.offset][google.cloud.discoveryengine.v1.SearchRequest.offset] - * for definition. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * This can only be set for `search` events. Other event types should not set - * this field. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field optional int32 offset = 3; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt32($var); - $this->offset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest.php deleted file mode 100644 index 64d4084b0fcd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest.php +++ /dev/null @@ -1,1527 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest - */ -class SearchRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Search serving config, such as - * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, - * or - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. - * This field is used to identify the serving configuration name, set - * of models used to make the search. - * - * Generated from protobuf field string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $serving_config = ''; - /** - * The branch resource name, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`. - * Use `default_branch` as the branch ID or leave this field empty, to search - * documents under the default branch. - * - * Generated from protobuf field string branch = 2 [(.google.api.resource_reference) = { - */ - protected $branch = ''; - /** - * Raw search query. - * - * Generated from protobuf field string query = 3; - */ - protected $query = ''; - /** - * Raw image query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; - */ - protected $image_query = null; - /** - * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to - * return. The maximum allowed value depends on the data type. Values above - * the maximum value are coerced to the maximum value. - * * Websites with basic indexing: Default `10`, Maximum `25`. - * * Websites with advanced indexing: Default `25`, Maximum `50`. - * * Other: Default `50`, Maximum `100`. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field int32 page_size = 4; - */ - protected $page_size = 0; - /** - * A page token received from a previous - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * must match the call that provided the page token. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_token = 5; - */ - protected $page_token = ''; - /** - * A 0-indexed integer that specifies the current offset (that is, starting - * result location, amongst the - * [Document][google.cloud.discoveryengine.v1.Document]s deemed by the API as - * relevant) in search results. This field is only considered if - * [page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] is - * unset. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field int32 offset = 6; - */ - protected $offset = 0; - /** - * The maximum number of results to return for OneBox. - * This applies to each OneBox type individually. - * Default number is 10. - * - * Generated from protobuf field int32 one_box_page_size = 47; - */ - protected $one_box_page_size = 0; - /** - * Specs defining dataStores to filter on in a search call and configurations - * for those dataStores. This is only considered for engines with multiple - * dataStores use case. For single dataStore within an engine, they should - * use the specs at the top level. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 32; - */ - private $data_store_specs; - /** - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. Filter - * expression is case-sensitive. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key to a - * key property defined in the Vertex AI Search backend -- this mapping is - * defined by the customer in their schema. For example a media customer might - * have a field 'name' in their schema. In this case the filter would look - * like this: filter --> name:'ANY("king kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 7; - */ - protected $filter = ''; - /** - * The default filter that is applied when a user performs a search without - * checking any filters on the search page. - * The filter applied to every search request when quality improvement such as - * query expansion is needed. In the case a query does not have a sufficient - * amount of results this filter will be used to determine whether or not to - * enable the query expansion flow. The original filter will still be used for - * the query expanded search. - * This field is strongly recommended to achieve high search quality. - * For more information about filter syntax, see - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]. - * - * Generated from protobuf field string canonical_filter = 29; - */ - protected $canonical_filter = ''; - /** - * The order in which documents are returned. Documents can be ordered by - * a field in an [Document][google.cloud.discoveryengine.v1.Document] object. - * Leave it unset if ordered by relevance. `order_by` expression is - * case-sensitive. - * For more information on ordering the website search results, see - * [Order web search - * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results). - * For more information on ordering the healthcare search results, see - * [Order healthcare search - * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results). - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field string order_by = 8; - */ - protected $order_by = ''; - /** - * Information about the end user. - * Highly recommended for analytics. - * [UserInfo.user_agent][google.cloud.discoveryengine.v1.UserInfo.user_agent] - * is used to deduce `device_type` for analytics. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.UserInfo user_info = 21; - */ - protected $user_info = null; - /** - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see [Standard - * fields](https://cloud.google.com/apis/design/standard_fields). This field - * helps to better interpret the query. If a value isn't specified, the query - * language code is automatically detected, which may not be accurate. - * - * Generated from protobuf field string language_code = 35; - */ - protected $language_code = ''; - /** - * Facet specifications for faceted search. If empty, no facets are returned. - * A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` - * error is returned. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - */ - private $facet_specs; - /** - * Boost specification to boost certain documents. - * For more information on boosting, see - * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - */ - protected $boost_spec = null; - /** - * Additional search parameters. - * For public website search only, supported values are: - * * `user_country_code`: string. Default empty. If set to non-empty, results - * are restricted or boosted based on the location provided. - * For example, `user_country_code: "au"` - * For available codes see [Country - * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) - * * `search_type`: double. Default empty. Enables non-webpage searching - * depending on the value. The only valid non-default value is 1, - * which enables image searching. - * For example, `search_type: 1` - * - * Generated from protobuf field map params = 11; - */ - private $params; - /** - * The query expansion specification that specifies the conditions under which - * query expansion occurs. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - */ - protected $query_expansion_spec = null; - /** - * The spell correction specification that specifies the mode under - * which spell correction takes effect. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - */ - protected $spell_correction_spec = null; - /** - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * This should be the same identifier as - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * and - * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id] - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_pseudo_id = 15; - */ - protected $user_pseudo_id = ''; - /** - * A specification for configuring the behavior of content search. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - */ - protected $content_search_spec = null; - /** - * Whether to turn on safe search. This is only supported for - * website search. - * - * Generated from protobuf field bool safe_search = 20; - */ - protected $safe_search = false; - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 22; - */ - private $user_labels; - /** - * Search as you type configuration. Only supported for the - * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA] - * vertical. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; - */ - protected $search_as_you_type_spec = null; - /** - * The session resource name. Optional. - * Session allows users to do multi-turn /search API calls or coordination - * between /search API calls and /answer API calls. - * Example #1 (multi-turn /search API calls): - * 1. Call /search API with the auto-session mode (see below). - * 2. Call /search API with the session ID generated in the first call. - * Here, the previous search query gets considered in query - * standing. I.e., if the first query is "How did Alphabet do in 2022?" - * and the current query is "How about 2023?", the current query will - * be interpreted as "How did Alphabet do in 2023?". - * Example #2 (coordination between /search API calls and /answer API calls): - * 1. Call /search API with the auto-session mode (see below). - * 2. Call /answer API with the session ID generated in the first call. - * Here, the answer generation happens in the context of the search - * results from the first search call. - * Auto-session mode: when `projects/.../sessions/-` is used, a new session - * gets automatically created. Otherwise, users can use the create-session API - * to create a session manually. - * Multi-turn Search feature is currently at private GA stage. Please use - * v1alpha or v1beta version instead before we launch this feature to public - * GA. Or ask for allowlisting through Google Support team. - * - * Generated from protobuf field string session = 41 [(.google.api.resource_reference) = { - */ - protected $session = ''; - /** - * Session specification. - * Can be used only when `session` is set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; - */ - protected $session_spec = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $serving_config - * Required. The resource name of the Search serving config, such as - * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, - * or - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. - * This field is used to identify the serving configuration name, set - * of models used to make the search. - * @type string $branch - * The branch resource name, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`. - * Use `default_branch` as the branch ID or leave this field empty, to search - * documents under the default branch. - * @type string $query - * Raw search query. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ImageQuery $image_query - * Raw image query. - * @type int $page_size - * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to - * return. The maximum allowed value depends on the data type. Values above - * the maximum value are coerced to the maximum value. - * * Websites with basic indexing: Default `10`, Maximum `25`. - * * Websites with advanced indexing: Default `25`, Maximum `50`. - * * Other: Default `50`, Maximum `100`. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * @type string $page_token - * A page token received from a previous - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * must match the call that provided the page token. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * @type int $offset - * A 0-indexed integer that specifies the current offset (that is, starting - * result location, amongst the - * [Document][google.cloud.discoveryengine.v1.Document]s deemed by the API as - * relevant) in search results. This field is only considered if - * [page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] is - * unset. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * @type int $one_box_page_size - * The maximum number of results to return for OneBox. - * This applies to each OneBox type individually. - * Default number is 10. - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchRequest\DataStoreSpec>|\Google\Protobuf\Internal\RepeatedField $data_store_specs - * Specs defining dataStores to filter on in a search call and configurations - * for those dataStores. This is only considered for engines with multiple - * dataStores use case. For single dataStore within an engine, they should - * use the specs at the top level. - * @type string $filter - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. Filter - * expression is case-sensitive. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key to a - * key property defined in the Vertex AI Search backend -- this mapping is - * defined by the customer in their schema. For example a media customer might - * have a field 'name' in their schema. In this case the filter would look - * like this: filter --> name:'ANY("king kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * @type string $canonical_filter - * The default filter that is applied when a user performs a search without - * checking any filters on the search page. - * The filter applied to every search request when quality improvement such as - * query expansion is needed. In the case a query does not have a sufficient - * amount of results this filter will be used to determine whether or not to - * enable the query expansion flow. The original filter will still be used for - * the query expanded search. - * This field is strongly recommended to achieve high search quality. - * For more information about filter syntax, see - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]. - * @type string $order_by - * The order in which documents are returned. Documents can be ordered by - * a field in an [Document][google.cloud.discoveryengine.v1.Document] object. - * Leave it unset if ordered by relevance. `order_by` expression is - * case-sensitive. - * For more information on ordering the website search results, see - * [Order web search - * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results). - * For more information on ordering the healthcare search results, see - * [Order healthcare search - * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results). - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * @type \Google\Cloud\DiscoveryEngine\V1\UserInfo $user_info - * Information about the end user. - * Highly recommended for analytics. - * [UserInfo.user_agent][google.cloud.discoveryengine.v1.UserInfo.user_agent] - * is used to deduce `device_type` for analytics. - * @type string $language_code - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see [Standard - * fields](https://cloud.google.com/apis/design/standard_fields). This field - * helps to better interpret the query. If a value isn't specified, the query - * language code is automatically detected, which may not be accurate. - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchRequest\FacetSpec>|\Google\Protobuf\Internal\RepeatedField $facet_specs - * Facet specifications for faceted search. If empty, no facets are returned. - * A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` - * error is returned. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec $boost_spec - * Boost specification to boost certain documents. - * For more information on boosting, see - * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) - * @type array|\Google\Protobuf\Internal\MapField $params - * Additional search parameters. - * For public website search only, supported values are: - * * `user_country_code`: string. Default empty. If set to non-empty, results - * are restricted or boosted based on the location provided. - * For example, `user_country_code: "au"` - * For available codes see [Country - * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) - * * `search_type`: double. Default empty. Enables non-webpage searching - * depending on the value. The only valid non-default value is 1, - * which enables image searching. - * For example, `search_type: 1` - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\QueryExpansionSpec $query_expansion_spec - * The query expansion specification that specifies the conditions under which - * query expansion occurs. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SpellCorrectionSpec $spell_correction_spec - * The spell correction specification that specifies the mode under - * which spell correction takes effect. - * @type string $user_pseudo_id - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * This should be the same identifier as - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * and - * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id] - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec $content_search_spec - * A specification for configuring the behavior of content search. - * @type bool $safe_search - * Whether to turn on safe search. This is only supported for - * website search. - * @type array|\Google\Protobuf\Internal\MapField $user_labels - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SearchAsYouTypeSpec $search_as_you_type_spec - * Search as you type configuration. Only supported for the - * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA] - * vertical. - * @type string $session - * The session resource name. Optional. - * Session allows users to do multi-turn /search API calls or coordination - * between /search API calls and /answer API calls. - * Example #1 (multi-turn /search API calls): - * 1. Call /search API with the auto-session mode (see below). - * 2. Call /search API with the session ID generated in the first call. - * Here, the previous search query gets considered in query - * standing. I.e., if the first query is "How did Alphabet do in 2022?" - * and the current query is "How about 2023?", the current query will - * be interpreted as "How did Alphabet do in 2023?". - * Example #2 (coordination between /search API calls and /answer API calls): - * 1. Call /search API with the auto-session mode (see below). - * 2. Call /answer API with the session ID generated in the first call. - * Here, the answer generation happens in the context of the search - * results from the first search call. - * Auto-session mode: when `projects/.../sessions/-` is used, a new session - * gets automatically created. Otherwise, users can use the create-session API - * to create a session manually. - * Multi-turn Search feature is currently at private GA stage. Please use - * v1alpha or v1beta version instead before we launch this feature to public - * GA. Or ask for allowlisting through Google Support team. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SessionSpec $session_spec - * Session specification. - * Can be used only when `session` is set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Search serving config, such as - * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, - * or - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. - * This field is used to identify the serving configuration name, set - * of models used to make the search. - * - * Generated from protobuf field string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getServingConfig() - { - return $this->serving_config; - } - - /** - * Required. The resource name of the Search serving config, such as - * `projects/*/locations/global/collections/default_collection/engines/*/servingConfigs/default_serving_config`, - * or - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/servingConfigs/default_serving_config`. - * This field is used to identify the serving configuration name, set - * of models used to make the search. - * - * Generated from protobuf field string serving_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setServingConfig($var) - { - GPBUtil::checkString($var, True); - $this->serving_config = $var; - - return $this; - } - - /** - * The branch resource name, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`. - * Use `default_branch` as the branch ID or leave this field empty, to search - * documents under the default branch. - * - * Generated from protobuf field string branch = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getBranch() - { - return $this->branch; - } - - /** - * The branch resource name, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store/branches/0`. - * Use `default_branch` as the branch ID or leave this field empty, to search - * documents under the default branch. - * - * Generated from protobuf field string branch = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setBranch($var) - { - GPBUtil::checkString($var, True); - $this->branch = $var; - - return $this; - } - - /** - * Raw search query. - * - * Generated from protobuf field string query = 3; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Raw search query. - * - * Generated from protobuf field string query = 3; - * @param string $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkString($var, True); - $this->query = $var; - - return $this; - } - - /** - * Raw image query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ImageQuery|null - */ - public function getImageQuery() - { - return $this->image_query; - } - - public function hasImageQuery() - { - return isset($this->image_query); - } - - public function clearImageQuery() - { - unset($this->image_query); - } - - /** - * Raw image query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ImageQuery image_query = 19; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ImageQuery $var - * @return $this - */ - public function setImageQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ImageQuery::class); - $this->image_query = $var; - - return $this; - } - - /** - * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to - * return. The maximum allowed value depends on the data type. Values above - * the maximum value are coerced to the maximum value. - * * Websites with basic indexing: Default `10`, Maximum `25`. - * * Websites with advanced indexing: Default `25`, Maximum `50`. - * * Other: Default `50`, Maximum `100`. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field int32 page_size = 4; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of [Document][google.cloud.discoveryengine.v1.Document]s to - * return. The maximum allowed value depends on the data type. Values above - * the maximum value are coerced to the maximum value. - * * Websites with basic indexing: Default `10`, Maximum `25`. - * * Websites with advanced indexing: Default `25`, Maximum `50`. - * * Other: Default `50`, Maximum `100`. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field int32 page_size = 4; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A page token received from a previous - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * must match the call that provided the page token. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_token = 5; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A page token received from a previous - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * call. Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * must match the call that provided the page token. Otherwise, an - * `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string page_token = 5; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * A 0-indexed integer that specifies the current offset (that is, starting - * result location, amongst the - * [Document][google.cloud.discoveryengine.v1.Document]s deemed by the API as - * relevant) in search results. This field is only considered if - * [page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] is - * unset. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field int32 offset = 6; - * @return int - */ - public function getOffset() - { - return $this->offset; - } - - /** - * A 0-indexed integer that specifies the current offset (that is, starting - * result location, amongst the - * [Document][google.cloud.discoveryengine.v1.Document]s deemed by the API as - * relevant) in search results. This field is only considered if - * [page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] is - * unset. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field int32 offset = 6; - * @param int $var - * @return $this - */ - public function setOffset($var) - { - GPBUtil::checkInt32($var); - $this->offset = $var; - - return $this; - } - - /** - * The maximum number of results to return for OneBox. - * This applies to each OneBox type individually. - * Default number is 10. - * - * Generated from protobuf field int32 one_box_page_size = 47; - * @return int - */ - public function getOneBoxPageSize() - { - return $this->one_box_page_size; - } - - /** - * The maximum number of results to return for OneBox. - * This applies to each OneBox type individually. - * Default number is 10. - * - * Generated from protobuf field int32 one_box_page_size = 47; - * @param int $var - * @return $this - */ - public function setOneBoxPageSize($var) - { - GPBUtil::checkInt32($var); - $this->one_box_page_size = $var; - - return $this; - } - - /** - * Specs defining dataStores to filter on in a search call and configurations - * for those dataStores. This is only considered for engines with multiple - * dataStores use case. For single dataStore within an engine, they should - * use the specs at the top level. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 32; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataStoreSpecs() - { - return $this->data_store_specs; - } - - /** - * Specs defining dataStores to filter on in a search call and configurations - * for those dataStores. This is only considered for engines with multiple - * dataStores use case. For single dataStore within an engine, they should - * use the specs at the top level. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec data_store_specs = 32; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchRequest\DataStoreSpec>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataStoreSpecs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\DataStoreSpec::class); - $this->data_store_specs = $arr; - - return $this; - } - - /** - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. Filter - * expression is case-sensitive. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key to a - * key property defined in the Vertex AI Search backend -- this mapping is - * defined by the customer in their schema. For example a media customer might - * have a field 'name' in their schema. In this case the filter would look - * like this: filter --> name:'ANY("king kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 7; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. Filter - * expression is case-sensitive. - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * Filtering in Vertex AI Search is done by mapping the LHS filter key to a - * key property defined in the Vertex AI Search backend -- this mapping is - * defined by the customer in their schema. For example a media customer might - * have a field 'name' in their schema. In this case the filter would look - * like this: filter --> name:'ANY("king kong")' - * For more information about filtering including syntax and filter - * operators, see - * [Filter](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 7; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The default filter that is applied when a user performs a search without - * checking any filters on the search page. - * The filter applied to every search request when quality improvement such as - * query expansion is needed. In the case a query does not have a sufficient - * amount of results this filter will be used to determine whether or not to - * enable the query expansion flow. The original filter will still be used for - * the query expanded search. - * This field is strongly recommended to achieve high search quality. - * For more information about filter syntax, see - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]. - * - * Generated from protobuf field string canonical_filter = 29; - * @return string - */ - public function getCanonicalFilter() - { - return $this->canonical_filter; - } - - /** - * The default filter that is applied when a user performs a search without - * checking any filters on the search page. - * The filter applied to every search request when quality improvement such as - * query expansion is needed. In the case a query does not have a sufficient - * amount of results this filter will be used to determine whether or not to - * enable the query expansion flow. The original filter will still be used for - * the query expanded search. - * This field is strongly recommended to achieve high search quality. - * For more information about filter syntax, see - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter]. - * - * Generated from protobuf field string canonical_filter = 29; - * @param string $var - * @return $this - */ - public function setCanonicalFilter($var) - { - GPBUtil::checkString($var, True); - $this->canonical_filter = $var; - - return $this; - } - - /** - * The order in which documents are returned. Documents can be ordered by - * a field in an [Document][google.cloud.discoveryengine.v1.Document] object. - * Leave it unset if ordered by relevance. `order_by` expression is - * case-sensitive. - * For more information on ordering the website search results, see - * [Order web search - * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results). - * For more information on ordering the healthcare search results, see - * [Order healthcare search - * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results). - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field string order_by = 8; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * The order in which documents are returned. Documents can be ordered by - * a field in an [Document][google.cloud.discoveryengine.v1.Document] object. - * Leave it unset if ordered by relevance. `order_by` expression is - * case-sensitive. - * For more information on ordering the website search results, see - * [Order web search - * results](https://cloud.google.com/generative-ai-app-builder/docs/order-web-search-results). - * For more information on ordering the healthcare search results, see - * [Order healthcare search - * results](https://cloud.google.com/generative-ai-app-builder/docs/order-hc-results). - * If this field is unrecognizable, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field string order_by = 8; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Information about the end user. - * Highly recommended for analytics. - * [UserInfo.user_agent][google.cloud.discoveryengine.v1.UserInfo.user_agent] - * is used to deduce `device_type` for analytics. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.UserInfo user_info = 21; - * @return \Google\Cloud\DiscoveryEngine\V1\UserInfo|null - */ - public function getUserInfo() - { - return $this->user_info; - } - - public function hasUserInfo() - { - return isset($this->user_info); - } - - public function clearUserInfo() - { - unset($this->user_info); - } - - /** - * Information about the end user. - * Highly recommended for analytics. - * [UserInfo.user_agent][google.cloud.discoveryengine.v1.UserInfo.user_agent] - * is used to deduce `device_type` for analytics. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.UserInfo user_info = 21; - * @param \Google\Cloud\DiscoveryEngine\V1\UserInfo $var - * @return $this - */ - public function setUserInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\UserInfo::class); - $this->user_info = $var; - - return $this; - } - - /** - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see [Standard - * fields](https://cloud.google.com/apis/design/standard_fields). This field - * helps to better interpret the query. If a value isn't specified, the query - * language code is automatically detected, which may not be accurate. - * - * Generated from protobuf field string language_code = 35; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * The BCP-47 language code, such as "en-US" or "sr-Latn". For more - * information, see [Standard - * fields](https://cloud.google.com/apis/design/standard_fields). This field - * helps to better interpret the query. If a value isn't specified, the query - * language code is automatically detected, which may not be accurate. - * - * Generated from protobuf field string language_code = 35; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * Facet specifications for faceted search. If empty, no facets are returned. - * A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` - * error is returned. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFacetSpecs() - { - return $this->facet_specs; - } - - /** - * Facet specifications for faceted search. If empty, no facets are returned. - * A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` - * error is returned. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec facet_specs = 9; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchRequest\FacetSpec>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFacetSpecs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\FacetSpec::class); - $this->facet_specs = $arr; - - return $this; - } - - /** - * Boost specification to boost certain documents. - * For more information on boosting, see - * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec|null - */ - public function getBoostSpec() - { - return $this->boost_spec; - } - - public function hasBoostSpec() - { - return isset($this->boost_spec); - } - - public function clearBoostSpec() - { - unset($this->boost_spec); - } - - /** - * Boost specification to boost certain documents. - * For more information on boosting, see - * [Boosting](https://cloud.google.com/generative-ai-app-builder/docs/boost-search-results) - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec boost_spec = 10; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec $var - * @return $this - */ - public function setBoostSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec::class); - $this->boost_spec = $var; - - return $this; - } - - /** - * Additional search parameters. - * For public website search only, supported values are: - * * `user_country_code`: string. Default empty. If set to non-empty, results - * are restricted or boosted based on the location provided. - * For example, `user_country_code: "au"` - * For available codes see [Country - * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) - * * `search_type`: double. Default empty. Enables non-webpage searching - * depending on the value. The only valid non-default value is 1, - * which enables image searching. - * For example, `search_type: 1` - * - * Generated from protobuf field map params = 11; - * @return \Google\Protobuf\Internal\MapField - */ - public function getParams() - { - return $this->params; - } - - /** - * Additional search parameters. - * For public website search only, supported values are: - * * `user_country_code`: string. Default empty. If set to non-empty, results - * are restricted or boosted based on the location provided. - * For example, `user_country_code: "au"` - * For available codes see [Country - * Codes](https://developers.google.com/custom-search/docs/json_api_reference#countryCodes) - * * `search_type`: double. Default empty. Enables non-webpage searching - * depending on the value. The only valid non-default value is 1, - * which enables image searching. - * For example, `search_type: 1` - * - * Generated from protobuf field map params = 11; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setParams($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Value::class); - $this->params = $arr; - - return $this; - } - - /** - * The query expansion specification that specifies the conditions under which - * query expansion occurs. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\QueryExpansionSpec|null - */ - public function getQueryExpansionSpec() - { - return $this->query_expansion_spec; - } - - public function hasQueryExpansionSpec() - { - return isset($this->query_expansion_spec); - } - - public function clearQueryExpansionSpec() - { - unset($this->query_expansion_spec); - } - - /** - * The query expansion specification that specifies the conditions under which - * query expansion occurs. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec query_expansion_spec = 13; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\QueryExpansionSpec $var - * @return $this - */ - public function setQueryExpansionSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\QueryExpansionSpec::class); - $this->query_expansion_spec = $var; - - return $this; - } - - /** - * The spell correction specification that specifies the mode under - * which spell correction takes effect. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SpellCorrectionSpec|null - */ - public function getSpellCorrectionSpec() - { - return $this->spell_correction_spec; - } - - public function hasSpellCorrectionSpec() - { - return isset($this->spell_correction_spec); - } - - public function clearSpellCorrectionSpec() - { - unset($this->spell_correction_spec); - } - - /** - * The spell correction specification that specifies the mode under - * which spell correction takes effect. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec spell_correction_spec = 14; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SpellCorrectionSpec $var - * @return $this - */ - public function setSpellCorrectionSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SpellCorrectionSpec::class); - $this->spell_correction_spec = $var; - - return $this; - } - - /** - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * This should be the same identifier as - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * and - * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id] - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_pseudo_id = 15; - * @return string - */ - public function getUserPseudoId() - { - return $this->user_pseudo_id; - } - - /** - * A unique identifier for tracking visitors. For example, this could be - * implemented with an HTTP cookie, which should be able to uniquely identify - * a visitor on a single device. This unique identifier should not change if - * the visitor logs in or out of the website. - * This field should NOT have a fixed value such as `unknown_visitor`. - * This should be the same identifier as - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * and - * [CompleteQueryRequest.user_pseudo_id][google.cloud.discoveryengine.v1.CompleteQueryRequest.user_pseudo_id] - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_pseudo_id = 15; - * @param string $var - * @return $this - */ - public function setUserPseudoId($var) - { - GPBUtil::checkString($var, True); - $this->user_pseudo_id = $var; - - return $this; - } - - /** - * A specification for configuring the behavior of content search. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec|null - */ - public function getContentSearchSpec() - { - return $this->content_search_spec; - } - - public function hasContentSearchSpec() - { - return isset($this->content_search_spec); - } - - public function clearContentSearchSpec() - { - unset($this->content_search_spec); - } - - /** - * A specification for configuring the behavior of content search. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec content_search_spec = 24; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec $var - * @return $this - */ - public function setContentSearchSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec::class); - $this->content_search_spec = $var; - - return $this; - } - - /** - * Whether to turn on safe search. This is only supported for - * website search. - * - * Generated from protobuf field bool safe_search = 20; - * @return bool - */ - public function getSafeSearch() - { - return $this->safe_search; - } - - /** - * Whether to turn on safe search. This is only supported for - * website search. - * - * Generated from protobuf field bool safe_search = 20; - * @param bool $var - * @return $this - */ - public function setSafeSearch($var) - { - GPBUtil::checkBool($var); - $this->safe_search = $var; - - return $this; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 22; - * @return \Google\Protobuf\Internal\MapField - */ - public function getUserLabels() - { - return $this->user_labels; - } - - /** - * The user labels applied to a resource must meet the following requirements: - * * Each resource can have multiple labels, up to a maximum of 64. - * * Each label must be a key-value pair. - * * Keys have a minimum length of 1 character and a maximum length of 63 - * characters and cannot be empty. Values can be empty and have a maximum - * length of 63 characters. - * * Keys and values can contain only lowercase letters, numeric characters, - * underscores, and dashes. All characters must use UTF-8 encoding, and - * international characters are allowed. - * * The key portion of a label must be unique. However, you can use the same - * key with multiple resources. - * * Keys must start with a lowercase letter or international character. - * See [Google Cloud - * Document](https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements) - * for more details. - * - * Generated from protobuf field map user_labels = 22; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setUserLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->user_labels = $arr; - - return $this; - } - - /** - * Search as you type configuration. Only supported for the - * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA] - * vertical. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SearchAsYouTypeSpec|null - */ - public function getSearchAsYouTypeSpec() - { - return $this->search_as_you_type_spec; - } - - public function hasSearchAsYouTypeSpec() - { - return isset($this->search_as_you_type_spec); - } - - public function clearSearchAsYouTypeSpec() - { - unset($this->search_as_you_type_spec); - } - - /** - * Search as you type configuration. Only supported for the - * [IndustryVertical.MEDIA][google.cloud.discoveryengine.v1.IndustryVertical.MEDIA] - * vertical. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec search_as_you_type_spec = 31; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SearchAsYouTypeSpec $var - * @return $this - */ - public function setSearchAsYouTypeSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SearchAsYouTypeSpec::class); - $this->search_as_you_type_spec = $var; - - return $this; - } - - /** - * The session resource name. Optional. - * Session allows users to do multi-turn /search API calls or coordination - * between /search API calls and /answer API calls. - * Example #1 (multi-turn /search API calls): - * 1. Call /search API with the auto-session mode (see below). - * 2. Call /search API with the session ID generated in the first call. - * Here, the previous search query gets considered in query - * standing. I.e., if the first query is "How did Alphabet do in 2022?" - * and the current query is "How about 2023?", the current query will - * be interpreted as "How did Alphabet do in 2023?". - * Example #2 (coordination between /search API calls and /answer API calls): - * 1. Call /search API with the auto-session mode (see below). - * 2. Call /answer API with the session ID generated in the first call. - * Here, the answer generation happens in the context of the search - * results from the first search call. - * Auto-session mode: when `projects/.../sessions/-` is used, a new session - * gets automatically created. Otherwise, users can use the create-session API - * to create a session manually. - * Multi-turn Search feature is currently at private GA stage. Please use - * v1alpha or v1beta version instead before we launch this feature to public - * GA. Or ask for allowlisting through Google Support team. - * - * Generated from protobuf field string session = 41 [(.google.api.resource_reference) = { - * @return string - */ - public function getSession() - { - return $this->session; - } - - /** - * The session resource name. Optional. - * Session allows users to do multi-turn /search API calls or coordination - * between /search API calls and /answer API calls. - * Example #1 (multi-turn /search API calls): - * 1. Call /search API with the auto-session mode (see below). - * 2. Call /search API with the session ID generated in the first call. - * Here, the previous search query gets considered in query - * standing. I.e., if the first query is "How did Alphabet do in 2022?" - * and the current query is "How about 2023?", the current query will - * be interpreted as "How did Alphabet do in 2023?". - * Example #2 (coordination between /search API calls and /answer API calls): - * 1. Call /search API with the auto-session mode (see below). - * 2. Call /answer API with the session ID generated in the first call. - * Here, the answer generation happens in the context of the search - * results from the first search call. - * Auto-session mode: when `projects/.../sessions/-` is used, a new session - * gets automatically created. Otherwise, users can use the create-session API - * to create a session manually. - * Multi-turn Search feature is currently at private GA stage. Please use - * v1alpha or v1beta version instead before we launch this feature to public - * GA. Or ask for allowlisting through Google Support team. - * - * Generated from protobuf field string session = 41 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setSession($var) - { - GPBUtil::checkString($var, True); - $this->session = $var; - - return $this; - } - - /** - * Session specification. - * Can be used only when `session` is set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SessionSpec|null - */ - public function getSessionSpec() - { - return $this->session_spec; - } - - public function hasSessionSpec() - { - return isset($this->session_spec); - } - - public function clearSessionSpec() - { - unset($this->session_spec); - } - - /** - * Session specification. - * Can be used only when `session` is set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SessionSpec session_spec = 42; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SessionSpec $var - * @return $this - */ - public function setSessionSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SessionSpec::class); - $this->session_spec = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec.php deleted file mode 100644 index 663d75dce54c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.BoostSpec - */ -class BoostSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Condition boost specifications. If a document matches multiple conditions - * in the specifictions, boost scores from these specifications are all - * applied and combined in a non-linear way. Maximum number of - * specifications is 20. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - */ - private $condition_boost_specs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec>|\Google\Protobuf\Internal\RepeatedField $condition_boost_specs - * Condition boost specifications. If a document matches multiple conditions - * in the specifictions, boost scores from these specifications are all - * applied and combined in a non-linear way. Maximum number of - * specifications is 20. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Condition boost specifications. If a document matches multiple conditions - * in the specifictions, boost scores from these specifications are all - * applied and combined in a non-linear way. Maximum number of - * specifications is 20. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditionBoostSpecs() - { - return $this->condition_boost_specs; - } - - /** - * Condition boost specifications. If a document matches multiple conditions - * in the specifictions, boost scores from these specifications are all - * applied and combined in a non-linear way. Maximum number of - * specifications is 20. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec condition_boost_specs = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditionBoostSpecs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec::class); - $this->condition_boost_specs = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BoostSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_BoostSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec.php deleted file mode 100644 index a1a0c2aaca9f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec - */ -class ConditionBoostSpec extends \Google\Protobuf\Internal\Message -{ - /** - * An expression which specifies a boost condition. The syntax and - * supported fields are the same as a filter expression. See - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter] - * for detail syntax and limitations. - * Examples: - * * To boost documents with document ID "doc_1" or "doc_2", and - * color "Red" or "Blue": - * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` - * - * Generated from protobuf field string condition = 1; - */ - protected $condition = ''; - /** - * Strength of the condition boost, which should be in [-1, 1]. Negative - * boost means demotion. Default is 0.0. - * Setting to 1.0 gives the document a big promotion. However, it does - * not necessarily mean that the boosted document will be the top result - * at all times, nor that other documents will be excluded. Results - * could still be shown even when none of them matches the condition. - * And results that are significantly more relevant to the search query - * can still trump your heavily favored but irrelevant documents. - * Setting to -1.0 gives the document a big demotion. However, results - * that are deeply relevant might still be shown. The document will have - * an upstream battle to get a fairly high ranking, but it is not - * blocked out completely. - * Setting to 0.0 means no boost applied. The boosting condition is - * ignored. Only one of the (condition, boost) combination or the - * boost_control_spec below are set. If both are set then the global boost - * is ignored and the more fine-grained boost_control_spec is applied. - * - * Generated from protobuf field float boost = 2; - */ - protected $boost = 0.0; - /** - * Complex specification for custom ranking based on customer defined - * attribute value. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; - */ - protected $boost_control_spec = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $condition - * An expression which specifies a boost condition. The syntax and - * supported fields are the same as a filter expression. See - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter] - * for detail syntax and limitations. - * Examples: - * * To boost documents with document ID "doc_1" or "doc_2", and - * color "Red" or "Blue": - * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` - * @type float $boost - * Strength of the condition boost, which should be in [-1, 1]. Negative - * boost means demotion. Default is 0.0. - * Setting to 1.0 gives the document a big promotion. However, it does - * not necessarily mean that the boosted document will be the top result - * at all times, nor that other documents will be excluded. Results - * could still be shown even when none of them matches the condition. - * And results that are significantly more relevant to the search query - * can still trump your heavily favored but irrelevant documents. - * Setting to -1.0 gives the document a big demotion. However, results - * that are deeply relevant might still be shown. The document will have - * an upstream battle to get a fairly high ranking, but it is not - * blocked out completely. - * Setting to 0.0 means no boost applied. The boosting condition is - * ignored. Only one of the (condition, boost) combination or the - * boost_control_spec below are set. If both are set then the global boost - * is ignored and the more fine-grained boost_control_spec is applied. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec\BoostControlSpec $boost_control_spec - * Complex specification for custom ranking based on customer defined - * attribute value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * An expression which specifies a boost condition. The syntax and - * supported fields are the same as a filter expression. See - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter] - * for detail syntax and limitations. - * Examples: - * * To boost documents with document ID "doc_1" or "doc_2", and - * color "Red" or "Blue": - * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` - * - * Generated from protobuf field string condition = 1; - * @return string - */ - public function getCondition() - { - return $this->condition; - } - - /** - * An expression which specifies a boost condition. The syntax and - * supported fields are the same as a filter expression. See - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter] - * for detail syntax and limitations. - * Examples: - * * To boost documents with document ID "doc_1" or "doc_2", and - * color "Red" or "Blue": - * `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))` - * - * Generated from protobuf field string condition = 1; - * @param string $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkString($var, True); - $this->condition = $var; - - return $this; - } - - /** - * Strength of the condition boost, which should be in [-1, 1]. Negative - * boost means demotion. Default is 0.0. - * Setting to 1.0 gives the document a big promotion. However, it does - * not necessarily mean that the boosted document will be the top result - * at all times, nor that other documents will be excluded. Results - * could still be shown even when none of them matches the condition. - * And results that are significantly more relevant to the search query - * can still trump your heavily favored but irrelevant documents. - * Setting to -1.0 gives the document a big demotion. However, results - * that are deeply relevant might still be shown. The document will have - * an upstream battle to get a fairly high ranking, but it is not - * blocked out completely. - * Setting to 0.0 means no boost applied. The boosting condition is - * ignored. Only one of the (condition, boost) combination or the - * boost_control_spec below are set. If both are set then the global boost - * is ignored and the more fine-grained boost_control_spec is applied. - * - * Generated from protobuf field float boost = 2; - * @return float - */ - public function getBoost() - { - return $this->boost; - } - - /** - * Strength of the condition boost, which should be in [-1, 1]. Negative - * boost means demotion. Default is 0.0. - * Setting to 1.0 gives the document a big promotion. However, it does - * not necessarily mean that the boosted document will be the top result - * at all times, nor that other documents will be excluded. Results - * could still be shown even when none of them matches the condition. - * And results that are significantly more relevant to the search query - * can still trump your heavily favored but irrelevant documents. - * Setting to -1.0 gives the document a big demotion. However, results - * that are deeply relevant might still be shown. The document will have - * an upstream battle to get a fairly high ranking, but it is not - * blocked out completely. - * Setting to 0.0 means no boost applied. The boosting condition is - * ignored. Only one of the (condition, boost) combination or the - * boost_control_spec below are set. If both are set then the global boost - * is ignored and the more fine-grained boost_control_spec is applied. - * - * Generated from protobuf field float boost = 2; - * @param float $var - * @return $this - */ - public function setBoost($var) - { - GPBUtil::checkFloat($var); - $this->boost = $var; - - return $this; - } - - /** - * Complex specification for custom ranking based on customer defined - * attribute value. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec\BoostControlSpec|null - */ - public function getBoostControlSpec() - { - return $this->boost_control_spec; - } - - public function hasBoostControlSpec() - { - return isset($this->boost_control_spec); - } - - public function clearBoostControlSpec() - { - unset($this->boost_control_spec); - } - - /** - * Complex specification for custom ranking based on customer defined - * attribute value. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec boost_control_spec = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec\BoostControlSpec $var - * @return $this - */ - public function setBoostControlSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec\BoostControlSpec::class); - $this->boost_control_spec = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConditionBoostSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_BoostSpec_ConditionBoostSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec.php deleted file mode 100644 index 4a9f4d3e3aa3..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec.php +++ /dev/null @@ -1,206 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec - */ -class BoostControlSpec extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the field whose value will be used to determine the - * boost amount. - * - * Generated from protobuf field string field_name = 1; - */ - protected $field_name = ''; - /** - * The attribute type to be used to determine the boost amount. The - * attribute value can be derived from the field value of the specified - * field_name. In the case of numerical it is straightforward i.e. - * attribute_value = numerical_field_value. In the case of freshness - * however, attribute_value = (time.now() - datetime_field_value). - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; - */ - protected $attribute_type = 0; - /** - * The interpolation type to be applied to connect the control points - * listed below. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; - */ - protected $interpolation_type = 0; - /** - * The control points used to define the curve. The monotonic function - * (defined through the interpolation_type above) passes through the - * control points listed here. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; - */ - private $control_points; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $field_name - * The name of the field whose value will be used to determine the - * boost amount. - * @type int $attribute_type - * The attribute type to be used to determine the boost amount. The - * attribute value can be derived from the field value of the specified - * field_name. In the case of numerical it is straightforward i.e. - * attribute_value = numerical_field_value. In the case of freshness - * however, attribute_value = (time.now() - datetime_field_value). - * @type int $interpolation_type - * The interpolation type to be applied to connect the control points - * listed below. - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec\BoostControlSpec\ControlPoint>|\Google\Protobuf\Internal\RepeatedField $control_points - * The control points used to define the curve. The monotonic function - * (defined through the interpolation_type above) passes through the - * control points listed here. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The name of the field whose value will be used to determine the - * boost amount. - * - * Generated from protobuf field string field_name = 1; - * @return string - */ - public function getFieldName() - { - return $this->field_name; - } - - /** - * The name of the field whose value will be used to determine the - * boost amount. - * - * Generated from protobuf field string field_name = 1; - * @param string $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkString($var, True); - $this->field_name = $var; - - return $this; - } - - /** - * The attribute type to be used to determine the boost amount. The - * attribute value can be derived from the field value of the specified - * field_name. In the case of numerical it is straightforward i.e. - * attribute_value = numerical_field_value. In the case of freshness - * however, attribute_value = (time.now() - datetime_field_value). - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; - * @return int - */ - public function getAttributeType() - { - return $this->attribute_type; - } - - /** - * The attribute type to be used to determine the boost amount. The - * attribute value can be derived from the field value of the specified - * field_name. In the case of numerical it is straightforward i.e. - * attribute_value = numerical_field_value. In the case of freshness - * however, attribute_value = (time.now() - datetime_field_value). - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType attribute_type = 2; - * @param int $var - * @return $this - */ - public function setAttributeType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec\BoostControlSpec\AttributeType::class); - $this->attribute_type = $var; - - return $this; - } - - /** - * The interpolation type to be applied to connect the control points - * listed below. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; - * @return int - */ - public function getInterpolationType() - { - return $this->interpolation_type; - } - - /** - * The interpolation type to be applied to connect the control points - * listed below. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType interpolation_type = 3; - * @param int $var - * @return $this - */ - public function setInterpolationType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec\BoostControlSpec\InterpolationType::class); - $this->interpolation_type = $var; - - return $this; - } - - /** - * The control points used to define the curve. The monotonic function - * (defined through the interpolation_type above) passes through the - * control points listed here. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getControlPoints() - { - return $this->control_points; - } - - /** - * The control points used to define the curve. The monotonic function - * (defined through the interpolation_type above) passes through the - * control points listed here. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint control_points = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec\BoostControlSpec\ControlPoint>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setControlPoints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec\BoostControlSpec\ControlPoint::class); - $this->control_points = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BoostControlSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/AttributeType.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/AttributeType.php deleted file mode 100644 index 40909bdc54b8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/AttributeType.php +++ /dev/null @@ -1,73 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.AttributeType - */ -class AttributeType -{ - /** - * Unspecified AttributeType. - * - * Generated from protobuf enum ATTRIBUTE_TYPE_UNSPECIFIED = 0; - */ - const ATTRIBUTE_TYPE_UNSPECIFIED = 0; - /** - * The value of the numerical field will be used to dynamically update - * the boost amount. In this case, the attribute_value (the x value) - * of the control point will be the actual value of the numerical - * field for which the boost_amount is specified. - * - * Generated from protobuf enum NUMERICAL = 1; - */ - const NUMERICAL = 1; - /** - * For the freshness use case the attribute value will be the duration - * between the current time and the date in the datetime field - * specified. The value must be formatted as an XSD `dayTimeDuration` - * value (a restricted subset of an ISO 8601 duration value). The - * pattern for this is: `[nD][T[nH][nM][nS]]`. - * For example, `5D`, `3DT12H30M`, `T24H`. - * - * Generated from protobuf enum FRESHNESS = 2; - */ - const FRESHNESS = 2; - - private static $valueToName = [ - self::ATTRIBUTE_TYPE_UNSPECIFIED => 'ATTRIBUTE_TYPE_UNSPECIFIED', - self::NUMERICAL => 'NUMERICAL', - self::FRESHNESS => 'FRESHNESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AttributeType::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_AttributeType::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/ControlPoint.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/ControlPoint.php deleted file mode 100644 index 656fa69e4fc5..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/ControlPoint.php +++ /dev/null @@ -1,130 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.ControlPoint - */ -class ControlPoint extends \Google\Protobuf\Internal\Message -{ - /** - * Can be one of: - * 1. The numerical field value. - * 2. The duration spec for freshness: - * The value must be formatted as an XSD `dayTimeDuration` value (a - * restricted subset of an ISO 8601 duration value). The pattern for - * this is: `[nD][T[nH][nM][nS]]`. - * - * Generated from protobuf field string attribute_value = 1; - */ - protected $attribute_value = ''; - /** - * The value between -1 to 1 by which to boost the score if the - * attribute_value evaluates to the value specified above. - * - * Generated from protobuf field float boost_amount = 2; - */ - protected $boost_amount = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $attribute_value - * Can be one of: - * 1. The numerical field value. - * 2. The duration spec for freshness: - * The value must be formatted as an XSD `dayTimeDuration` value (a - * restricted subset of an ISO 8601 duration value). The pattern for - * this is: `[nD][T[nH][nM][nS]]`. - * @type float $boost_amount - * The value between -1 to 1 by which to boost the score if the - * attribute_value evaluates to the value specified above. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Can be one of: - * 1. The numerical field value. - * 2. The duration spec for freshness: - * The value must be formatted as an XSD `dayTimeDuration` value (a - * restricted subset of an ISO 8601 duration value). The pattern for - * this is: `[nD][T[nH][nM][nS]]`. - * - * Generated from protobuf field string attribute_value = 1; - * @return string - */ - public function getAttributeValue() - { - return $this->attribute_value; - } - - /** - * Can be one of: - * 1. The numerical field value. - * 2. The duration spec for freshness: - * The value must be formatted as an XSD `dayTimeDuration` value (a - * restricted subset of an ISO 8601 duration value). The pattern for - * this is: `[nD][T[nH][nM][nS]]`. - * - * Generated from protobuf field string attribute_value = 1; - * @param string $var - * @return $this - */ - public function setAttributeValue($var) - { - GPBUtil::checkString($var, True); - $this->attribute_value = $var; - - return $this; - } - - /** - * The value between -1 to 1 by which to boost the score if the - * attribute_value evaluates to the value specified above. - * - * Generated from protobuf field float boost_amount = 2; - * @return float - */ - public function getBoostAmount() - { - return $this->boost_amount; - } - - /** - * The value between -1 to 1 by which to boost the score if the - * attribute_value evaluates to the value specified above. - * - * Generated from protobuf field float boost_amount = 2; - * @param float $var - * @return $this - */ - public function setBoostAmount($var) - { - GPBUtil::checkFloat($var); - $this->boost_amount = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ControlPoint::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/InterpolationType.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/InterpolationType.php deleted file mode 100644 index 7512af5bdb21..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/BoostSpec/ConditionBoostSpec/BoostControlSpec/InterpolationType.php +++ /dev/null @@ -1,59 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.BoostSpec.ConditionBoostSpec.BoostControlSpec.InterpolationType - */ -class InterpolationType -{ - /** - * Interpolation type is unspecified. In this case, it defaults to - * Linear. - * - * Generated from protobuf enum INTERPOLATION_TYPE_UNSPECIFIED = 0; - */ - const INTERPOLATION_TYPE_UNSPECIFIED = 0; - /** - * Piecewise linear interpolation will be applied. - * - * Generated from protobuf enum LINEAR = 1; - */ - const LINEAR = 1; - - private static $valueToName = [ - self::INTERPOLATION_TYPE_UNSPECIFIED => 'INTERPOLATION_TYPE_UNSPECIFIED', - self::LINEAR => 'LINEAR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InterpolationType::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_BoostSpec_ConditionBoostSpec_BoostControlSpec_InterpolationType::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec.php deleted file mode 100644 index bf8b8ea7fbf6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec.php +++ /dev/null @@ -1,278 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec - */ -class ContentSearchSpec extends \Google\Protobuf\Internal\Message -{ - /** - * If `snippetSpec` is not specified, snippets are not included in the - * search response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - */ - protected $snippet_spec = null; - /** - * If `summarySpec` is not specified, summaries are not included in the - * search response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - */ - protected $summary_spec = null; - /** - * If there is no extractive_content_spec provided, there will be no - * extractive answer in the search response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - */ - protected $extractive_content_spec = null; - /** - * Specifies the search result mode. If unspecified, the - * search result mode defaults to `DOCUMENTS`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; - */ - protected $search_result_mode = 0; - /** - * Specifies the chunk spec to be returned from the search response. - * Only available if the - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS] - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - */ - protected $chunk_spec = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SnippetSpec $snippet_spec - * If `snippetSpec` is not specified, snippets are not included in the - * search response. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec $summary_spec - * If `summarySpec` is not specified, summaries are not included in the - * search response. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\ExtractiveContentSpec $extractive_content_spec - * If there is no extractive_content_spec provided, there will be no - * extractive answer in the search response. - * @type int $search_result_mode - * Specifies the search result mode. If unspecified, the - * search result mode defaults to `DOCUMENTS`. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\ChunkSpec $chunk_spec - * Specifies the chunk spec to be returned from the search response. - * Only available if the - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * If `snippetSpec` is not specified, snippets are not included in the - * search response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SnippetSpec|null - */ - public function getSnippetSpec() - { - return $this->snippet_spec; - } - - public function hasSnippetSpec() - { - return isset($this->snippet_spec); - } - - public function clearSnippetSpec() - { - unset($this->snippet_spec); - } - - /** - * If `snippetSpec` is not specified, snippets are not included in the - * search response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec snippet_spec = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SnippetSpec $var - * @return $this - */ - public function setSnippetSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SnippetSpec::class); - $this->snippet_spec = $var; - - return $this; - } - - /** - * If `summarySpec` is not specified, summaries are not included in the - * search response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec|null - */ - public function getSummarySpec() - { - return $this->summary_spec; - } - - public function hasSummarySpec() - { - return isset($this->summary_spec); - } - - public function clearSummarySpec() - { - unset($this->summary_spec); - } - - /** - * If `summarySpec` is not specified, summaries are not included in the - * search response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec summary_spec = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec $var - * @return $this - */ - public function setSummarySpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec::class); - $this->summary_spec = $var; - - return $this; - } - - /** - * If there is no extractive_content_spec provided, there will be no - * extractive answer in the search response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\ExtractiveContentSpec|null - */ - public function getExtractiveContentSpec() - { - return $this->extractive_content_spec; - } - - public function hasExtractiveContentSpec() - { - return isset($this->extractive_content_spec); - } - - public function clearExtractiveContentSpec() - { - unset($this->extractive_content_spec); - } - - /** - * If there is no extractive_content_spec provided, there will be no - * extractive answer in the search response. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ExtractiveContentSpec extractive_content_spec = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\ExtractiveContentSpec $var - * @return $this - */ - public function setExtractiveContentSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\ExtractiveContentSpec::class); - $this->extractive_content_spec = $var; - - return $this; - } - - /** - * Specifies the search result mode. If unspecified, the - * search result mode defaults to `DOCUMENTS`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; - * @return int - */ - public function getSearchResultMode() - { - return $this->search_result_mode; - } - - /** - * Specifies the search result mode. If unspecified, the - * search result mode defaults to `DOCUMENTS`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode search_result_mode = 4; - * @param int $var - * @return $this - */ - public function setSearchResultMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SearchResultMode::class); - $this->search_result_mode = $var; - - return $this; - } - - /** - * Specifies the chunk spec to be returned from the search response. - * Only available if the - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS] - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\ChunkSpec|null - */ - public function getChunkSpec() - { - return $this->chunk_spec; - } - - public function hasChunkSpec() - { - return isset($this->chunk_spec); - } - - public function clearChunkSpec() - { - unset($this->chunk_spec); - } - - /** - * Specifies the chunk spec to be returned from the search response. - * Only available if the - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS] - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec chunk_spec = 5; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\ChunkSpec $var - * @return $this - */ - public function setChunkSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\ChunkSpec::class); - $this->chunk_spec = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ContentSearchSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_ContentSearchSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/ChunkSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/ChunkSpec.php deleted file mode 100644 index b53c3158a218..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/ChunkSpec.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec - */ -class ChunkSpec extends \Google\Protobuf\Internal\Message -{ - /** - * The number of previous chunks to be returned of the current chunk. The - * maximum allowed value is 3. - * If not specified, no previous chunks will be returned. - * - * Generated from protobuf field int32 num_previous_chunks = 1; - */ - protected $num_previous_chunks = 0; - /** - * The number of next chunks to be returned of the current chunk. The - * maximum allowed value is 3. - * If not specified, no next chunks will be returned. - * - * Generated from protobuf field int32 num_next_chunks = 2; - */ - protected $num_next_chunks = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $num_previous_chunks - * The number of previous chunks to be returned of the current chunk. The - * maximum allowed value is 3. - * If not specified, no previous chunks will be returned. - * @type int $num_next_chunks - * The number of next chunks to be returned of the current chunk. The - * maximum allowed value is 3. - * If not specified, no next chunks will be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The number of previous chunks to be returned of the current chunk. The - * maximum allowed value is 3. - * If not specified, no previous chunks will be returned. - * - * Generated from protobuf field int32 num_previous_chunks = 1; - * @return int - */ - public function getNumPreviousChunks() - { - return $this->num_previous_chunks; - } - - /** - * The number of previous chunks to be returned of the current chunk. The - * maximum allowed value is 3. - * If not specified, no previous chunks will be returned. - * - * Generated from protobuf field int32 num_previous_chunks = 1; - * @param int $var - * @return $this - */ - public function setNumPreviousChunks($var) - { - GPBUtil::checkInt32($var); - $this->num_previous_chunks = $var; - - return $this; - } - - /** - * The number of next chunks to be returned of the current chunk. The - * maximum allowed value is 3. - * If not specified, no next chunks will be returned. - * - * Generated from protobuf field int32 num_next_chunks = 2; - * @return int - */ - public function getNumNextChunks() - { - return $this->num_next_chunks; - } - - /** - * The number of next chunks to be returned of the current chunk. The - * maximum allowed value is 3. - * If not specified, no next chunks will be returned. - * - * Generated from protobuf field int32 num_next_chunks = 2; - * @param int $var - * @return $this - */ - public function setNumNextChunks($var) - { - GPBUtil::checkInt32($var); - $this->num_next_chunks = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_ContentSearchSpec_ChunkSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/ExtractiveContentSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/ExtractiveContentSpec.php deleted file mode 100644 index 94f809a8002b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/ExtractiveContentSpec.php +++ /dev/null @@ -1,327 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ExtractiveContentSpec - */ -class ExtractiveContentSpec extends \Google\Protobuf\Internal\Message -{ - /** - * The maximum number of extractive answers returned in each search - * result. - * An extractive answer is a verbatim answer extracted from the original - * document, which provides a precise and contextually relevant answer to - * the search query. - * If the number of matching answers is less than the - * `max_extractive_answer_count`, return all of the answers. Otherwise, - * return the `max_extractive_answer_count`. - * At most five answers are returned for each - * [SearchResult][google.cloud.discoveryengine.v1.SearchResponse.SearchResult]. - * - * Generated from protobuf field int32 max_extractive_answer_count = 1; - */ - protected $max_extractive_answer_count = 0; - /** - * The max number of extractive segments returned in each search result. - * Only applied if the - * [DataStore][google.cloud.discoveryengine.v1.DataStore] is set to - * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_REQUIRED] - * or - * [DataStore.solution_types][google.cloud.discoveryengine.v1.DataStore.solution_types] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT]. - * An extractive segment is a text segment extracted from the original - * document that is relevant to the search query, and, in general, more - * verbose than an extractive answer. The segment could then be used as - * input for LLMs to generate summaries and answers. - * If the number of matching segments is less than - * `max_extractive_segment_count`, return all of the segments. Otherwise, - * return the `max_extractive_segment_count`. - * - * Generated from protobuf field int32 max_extractive_segment_count = 2; - */ - protected $max_extractive_segment_count = 0; - /** - * Specifies whether to return the confidence score from the extractive - * segments in each search result. This feature is available only for new - * or allowlisted data stores. To allowlist your data store, - * contact your Customer Engineer. The default value is `false`. - * - * Generated from protobuf field bool return_extractive_segment_score = 3; - */ - protected $return_extractive_segment_score = false; - /** - * Specifies whether to also include the adjacent from each selected - * segments. - * Return at most `num_previous_segments` segments before each selected - * segments. - * - * Generated from protobuf field int32 num_previous_segments = 4; - */ - protected $num_previous_segments = 0; - /** - * Return at most `num_next_segments` segments after each selected - * segments. - * - * Generated from protobuf field int32 num_next_segments = 5; - */ - protected $num_next_segments = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $max_extractive_answer_count - * The maximum number of extractive answers returned in each search - * result. - * An extractive answer is a verbatim answer extracted from the original - * document, which provides a precise and contextually relevant answer to - * the search query. - * If the number of matching answers is less than the - * `max_extractive_answer_count`, return all of the answers. Otherwise, - * return the `max_extractive_answer_count`. - * At most five answers are returned for each - * [SearchResult][google.cloud.discoveryengine.v1.SearchResponse.SearchResult]. - * @type int $max_extractive_segment_count - * The max number of extractive segments returned in each search result. - * Only applied if the - * [DataStore][google.cloud.discoveryengine.v1.DataStore] is set to - * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_REQUIRED] - * or - * [DataStore.solution_types][google.cloud.discoveryengine.v1.DataStore.solution_types] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT]. - * An extractive segment is a text segment extracted from the original - * document that is relevant to the search query, and, in general, more - * verbose than an extractive answer. The segment could then be used as - * input for LLMs to generate summaries and answers. - * If the number of matching segments is less than - * `max_extractive_segment_count`, return all of the segments. Otherwise, - * return the `max_extractive_segment_count`. - * @type bool $return_extractive_segment_score - * Specifies whether to return the confidence score from the extractive - * segments in each search result. This feature is available only for new - * or allowlisted data stores. To allowlist your data store, - * contact your Customer Engineer. The default value is `false`. - * @type int $num_previous_segments - * Specifies whether to also include the adjacent from each selected - * segments. - * Return at most `num_previous_segments` segments before each selected - * segments. - * @type int $num_next_segments - * Return at most `num_next_segments` segments after each selected - * segments. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The maximum number of extractive answers returned in each search - * result. - * An extractive answer is a verbatim answer extracted from the original - * document, which provides a precise and contextually relevant answer to - * the search query. - * If the number of matching answers is less than the - * `max_extractive_answer_count`, return all of the answers. Otherwise, - * return the `max_extractive_answer_count`. - * At most five answers are returned for each - * [SearchResult][google.cloud.discoveryengine.v1.SearchResponse.SearchResult]. - * - * Generated from protobuf field int32 max_extractive_answer_count = 1; - * @return int - */ - public function getMaxExtractiveAnswerCount() - { - return $this->max_extractive_answer_count; - } - - /** - * The maximum number of extractive answers returned in each search - * result. - * An extractive answer is a verbatim answer extracted from the original - * document, which provides a precise and contextually relevant answer to - * the search query. - * If the number of matching answers is less than the - * `max_extractive_answer_count`, return all of the answers. Otherwise, - * return the `max_extractive_answer_count`. - * At most five answers are returned for each - * [SearchResult][google.cloud.discoveryengine.v1.SearchResponse.SearchResult]. - * - * Generated from protobuf field int32 max_extractive_answer_count = 1; - * @param int $var - * @return $this - */ - public function setMaxExtractiveAnswerCount($var) - { - GPBUtil::checkInt32($var); - $this->max_extractive_answer_count = $var; - - return $this; - } - - /** - * The max number of extractive segments returned in each search result. - * Only applied if the - * [DataStore][google.cloud.discoveryengine.v1.DataStore] is set to - * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_REQUIRED] - * or - * [DataStore.solution_types][google.cloud.discoveryengine.v1.DataStore.solution_types] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT]. - * An extractive segment is a text segment extracted from the original - * document that is relevant to the search query, and, in general, more - * verbose than an extractive answer. The segment could then be used as - * input for LLMs to generate summaries and answers. - * If the number of matching segments is less than - * `max_extractive_segment_count`, return all of the segments. Otherwise, - * return the `max_extractive_segment_count`. - * - * Generated from protobuf field int32 max_extractive_segment_count = 2; - * @return int - */ - public function getMaxExtractiveSegmentCount() - { - return $this->max_extractive_segment_count; - } - - /** - * The max number of extractive segments returned in each search result. - * Only applied if the - * [DataStore][google.cloud.discoveryengine.v1.DataStore] is set to - * [DataStore.ContentConfig.CONTENT_REQUIRED][google.cloud.discoveryengine.v1.DataStore.ContentConfig.CONTENT_REQUIRED] - * or - * [DataStore.solution_types][google.cloud.discoveryengine.v1.DataStore.solution_types] - * is - * [SOLUTION_TYPE_CHAT][google.cloud.discoveryengine.v1.SolutionType.SOLUTION_TYPE_CHAT]. - * An extractive segment is a text segment extracted from the original - * document that is relevant to the search query, and, in general, more - * verbose than an extractive answer. The segment could then be used as - * input for LLMs to generate summaries and answers. - * If the number of matching segments is less than - * `max_extractive_segment_count`, return all of the segments. Otherwise, - * return the `max_extractive_segment_count`. - * - * Generated from protobuf field int32 max_extractive_segment_count = 2; - * @param int $var - * @return $this - */ - public function setMaxExtractiveSegmentCount($var) - { - GPBUtil::checkInt32($var); - $this->max_extractive_segment_count = $var; - - return $this; - } - - /** - * Specifies whether to return the confidence score from the extractive - * segments in each search result. This feature is available only for new - * or allowlisted data stores. To allowlist your data store, - * contact your Customer Engineer. The default value is `false`. - * - * Generated from protobuf field bool return_extractive_segment_score = 3; - * @return bool - */ - public function getReturnExtractiveSegmentScore() - { - return $this->return_extractive_segment_score; - } - - /** - * Specifies whether to return the confidence score from the extractive - * segments in each search result. This feature is available only for new - * or allowlisted data stores. To allowlist your data store, - * contact your Customer Engineer. The default value is `false`. - * - * Generated from protobuf field bool return_extractive_segment_score = 3; - * @param bool $var - * @return $this - */ - public function setReturnExtractiveSegmentScore($var) - { - GPBUtil::checkBool($var); - $this->return_extractive_segment_score = $var; - - return $this; - } - - /** - * Specifies whether to also include the adjacent from each selected - * segments. - * Return at most `num_previous_segments` segments before each selected - * segments. - * - * Generated from protobuf field int32 num_previous_segments = 4; - * @return int - */ - public function getNumPreviousSegments() - { - return $this->num_previous_segments; - } - - /** - * Specifies whether to also include the adjacent from each selected - * segments. - * Return at most `num_previous_segments` segments before each selected - * segments. - * - * Generated from protobuf field int32 num_previous_segments = 4; - * @param int $var - * @return $this - */ - public function setNumPreviousSegments($var) - { - GPBUtil::checkInt32($var); - $this->num_previous_segments = $var; - - return $this; - } - - /** - * Return at most `num_next_segments` segments after each selected - * segments. - * - * Generated from protobuf field int32 num_next_segments = 5; - * @return int - */ - public function getNumNextSegments() - { - return $this->num_next_segments; - } - - /** - * Return at most `num_next_segments` segments after each selected - * segments. - * - * Generated from protobuf field int32 num_next_segments = 5; - * @param int $var - * @return $this - */ - public function setNumNextSegments($var) - { - GPBUtil::checkInt32($var); - $this->num_next_segments = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ExtractiveContentSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_ContentSearchSpec_ExtractiveContentSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SearchResultMode.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SearchResultMode.php deleted file mode 100644 index 01b42cc9cd35..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SearchResultMode.php +++ /dev/null @@ -1,66 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode - */ -class SearchResultMode -{ - /** - * Default value. - * - * Generated from protobuf enum SEARCH_RESULT_MODE_UNSPECIFIED = 0; - */ - const SEARCH_RESULT_MODE_UNSPECIFIED = 0; - /** - * Returns documents in the search result. - * - * Generated from protobuf enum DOCUMENTS = 1; - */ - const DOCUMENTS = 1; - /** - * Returns chunks in the search result. Only available if the - * [DataStore.DocumentProcessingConfig.chunking_config][] is specified. - * - * Generated from protobuf enum CHUNKS = 2; - */ - const CHUNKS = 2; - - private static $valueToName = [ - self::SEARCH_RESULT_MODE_UNSPECIFIED => 'SEARCH_RESULT_MODE_UNSPECIFIED', - self::DOCUMENTS => 'DOCUMENTS', - self::CHUNKS => 'CHUNKS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchResultMode::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_ContentSearchSpec_SearchResultMode::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SnippetSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SnippetSpec.php deleted file mode 100644 index 397a3f88dcc9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SnippetSpec.php +++ /dev/null @@ -1,168 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SnippetSpec - */ -class SnippetSpec extends \Google\Protobuf\Internal\Message -{ - /** - * [DEPRECATED] This field is deprecated. To control snippet return, use - * `return_snippet` field. For backwards compatibility, we will return - * snippet if max_snippet_count > 0. - * - * Generated from protobuf field int32 max_snippet_count = 1 [deprecated = true]; - * @deprecated - */ - protected $max_snippet_count = 0; - /** - * [DEPRECATED] This field is deprecated and will have no affect on the - * snippet. - * - * Generated from protobuf field bool reference_only = 2 [deprecated = true]; - * @deprecated - */ - protected $reference_only = false; - /** - * If `true`, then return snippet. If no snippet can be generated, we - * return "No snippet is available for this page." A `snippet_status` with - * `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned. - * - * Generated from protobuf field bool return_snippet = 3; - */ - protected $return_snippet = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $max_snippet_count - * [DEPRECATED] This field is deprecated. To control snippet return, use - * `return_snippet` field. For backwards compatibility, we will return - * snippet if max_snippet_count > 0. - * @type bool $reference_only - * [DEPRECATED] This field is deprecated and will have no affect on the - * snippet. - * @type bool $return_snippet - * If `true`, then return snippet. If no snippet can be generated, we - * return "No snippet is available for this page." A `snippet_status` with - * `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * [DEPRECATED] This field is deprecated. To control snippet return, use - * `return_snippet` field. For backwards compatibility, we will return - * snippet if max_snippet_count > 0. - * - * Generated from protobuf field int32 max_snippet_count = 1 [deprecated = true]; - * @return int - * @deprecated - */ - public function getMaxSnippetCount() - { - @trigger_error('max_snippet_count is deprecated.', E_USER_DEPRECATED); - return $this->max_snippet_count; - } - - /** - * [DEPRECATED] This field is deprecated. To control snippet return, use - * `return_snippet` field. For backwards compatibility, we will return - * snippet if max_snippet_count > 0. - * - * Generated from protobuf field int32 max_snippet_count = 1 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setMaxSnippetCount($var) - { - @trigger_error('max_snippet_count is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->max_snippet_count = $var; - - return $this; - } - - /** - * [DEPRECATED] This field is deprecated and will have no affect on the - * snippet. - * - * Generated from protobuf field bool reference_only = 2 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getReferenceOnly() - { - @trigger_error('reference_only is deprecated.', E_USER_DEPRECATED); - return $this->reference_only; - } - - /** - * [DEPRECATED] This field is deprecated and will have no affect on the - * snippet. - * - * Generated from protobuf field bool reference_only = 2 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setReferenceOnly($var) - { - @trigger_error('reference_only is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->reference_only = $var; - - return $this; - } - - /** - * If `true`, then return snippet. If no snippet can be generated, we - * return "No snippet is available for this page." A `snippet_status` with - * `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned. - * - * Generated from protobuf field bool return_snippet = 3; - * @return bool - */ - public function getReturnSnippet() - { - return $this->return_snippet; - } - - /** - * If `true`, then return snippet. If no snippet can be generated, we - * return "No snippet is available for this page." A `snippet_status` with - * `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be returned. - * - * Generated from protobuf field bool return_snippet = 3; - * @param bool $var - * @return $this - */ - public function setReturnSnippet($var) - { - GPBUtil::checkBool($var); - $this->return_snippet = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SnippetSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_ContentSearchSpec_SnippetSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec.php deleted file mode 100644 index 73d0d3f3746f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec.php +++ /dev/null @@ -1,629 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec - */ -class SummarySpec extends \Google\Protobuf\Internal\Message -{ - /** - * The number of top results to generate the summary from. If the number - * of results returned is less than `summaryResultCount`, the summary is - * generated from all of the results. - * At most 10 results for documents mode, or 50 for chunks mode, can be - * used to generate a summary. The chunks mode is used when - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. - * - * Generated from protobuf field int32 summary_result_count = 1; - */ - protected $summary_result_count = 0; - /** - * Specifies whether to include citations in the summary. The default - * value is `false`. - * When this field is set to `true`, summaries include in-line citation - * numbers. - * Example summary including citations: - * BigQuery is Google Cloud's fully managed and completely serverless - * enterprise data warehouse [1]. BigQuery supports all data types, works - * across clouds, and has built-in machine learning and business - * intelligence, all within a unified platform [2, 3]. - * The citation numbers refer to the returned search results and are - * 1-indexed. For example, [1] means that the sentence is attributed to - * the first search result. [2, 3] means that the sentence is attributed - * to both the second and third search results. - * - * Generated from protobuf field bool include_citations = 2; - */ - protected $include_citations = false; - /** - * Specifies whether to filter out adversarial queries. The default value - * is `false`. - * Google employs search-query classification to detect adversarial - * queries. No summary is returned if the search query is classified as an - * adversarial query. For example, a user might ask a question regarding - * negative comments about the company or submit a query designed to - * generate unsafe, policy-violating output. If this field is set to - * `true`, we skip generating summaries for adversarial queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_adversarial_query = 3; - */ - protected $ignore_adversarial_query = false; - /** - * Specifies whether to filter out queries that are not summary-seeking. - * The default value is `false`. - * Google employs search-query classification to detect summary-seeking - * queries. No summary is returned if the search query is classified as a - * non-summary seeking query. For example, `why is the sky blue` and `Who - * is the best soccer player in the world?` are summary-seeking queries, - * but `SFO airport` and `world cup 2026` are not. They are most likely - * navigational queries. If this field is set to `true`, we skip - * generating summaries for non-summary seeking queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_non_summary_seeking_query = 4; - */ - protected $ignore_non_summary_seeking_query = false; - /** - * Specifies whether to filter out queries that have low relevance. The - * default value is `false`. - * If this field is set to `false`, all search results are used regardless - * of relevance to generate answers. If set to `true`, only queries with - * high relevance search results will generate answers. - * - * Generated from protobuf field bool ignore_low_relevant_content = 9; - */ - protected $ignore_low_relevant_content = false; - /** - * Optional. Specifies whether to filter out jail-breaking queries. The - * default value is `false`. - * Google employs search-query classification to detect jail-breaking - * queries. No summary is returned if the search query is classified as a - * jail-breaking query. A user might add instructions to the query to - * change the tone, style, language, content of the answer, or ask the - * model to act as a different entity, e.g. "Reply in the tone of a - * competing company's CEO". If this field is set to `true`, we skip - * generating summaries for jail-breaking queries and return fallback - * messages instead. - * - * Generated from protobuf field bool ignore_jail_breaking_query = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $ignore_jail_breaking_query = false; - /** - * If specified, the spec will be used to modify the prompt provided to - * the LLM. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - */ - protected $model_prompt_spec = null; - /** - * Language code for Summary. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * Note: This is an experimental feature. - * - * Generated from protobuf field string language_code = 6; - */ - protected $language_code = ''; - /** - * If specified, the spec will be used to modify the model specification - * provided to the LLM. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - */ - protected $model_spec = null; - /** - * If true, answer will be generated from most relevant chunks from top - * search results. This feature will improve summary quality. - * Note that with this feature enabled, not all top search results - * will be referenced and included in the reference list, so the citation - * source index only points to the search results listed in the reference - * list. - * - * Generated from protobuf field bool use_semantic_chunks = 8; - */ - protected $use_semantic_chunks = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $summary_result_count - * The number of top results to generate the summary from. If the number - * of results returned is less than `summaryResultCount`, the summary is - * generated from all of the results. - * At most 10 results for documents mode, or 50 for chunks mode, can be - * used to generate a summary. The chunks mode is used when - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. - * @type bool $include_citations - * Specifies whether to include citations in the summary. The default - * value is `false`. - * When this field is set to `true`, summaries include in-line citation - * numbers. - * Example summary including citations: - * BigQuery is Google Cloud's fully managed and completely serverless - * enterprise data warehouse [1]. BigQuery supports all data types, works - * across clouds, and has built-in machine learning and business - * intelligence, all within a unified platform [2, 3]. - * The citation numbers refer to the returned search results and are - * 1-indexed. For example, [1] means that the sentence is attributed to - * the first search result. [2, 3] means that the sentence is attributed - * to both the second and third search results. - * @type bool $ignore_adversarial_query - * Specifies whether to filter out adversarial queries. The default value - * is `false`. - * Google employs search-query classification to detect adversarial - * queries. No summary is returned if the search query is classified as an - * adversarial query. For example, a user might ask a question regarding - * negative comments about the company or submit a query designed to - * generate unsafe, policy-violating output. If this field is set to - * `true`, we skip generating summaries for adversarial queries and return - * fallback messages instead. - * @type bool $ignore_non_summary_seeking_query - * Specifies whether to filter out queries that are not summary-seeking. - * The default value is `false`. - * Google employs search-query classification to detect summary-seeking - * queries. No summary is returned if the search query is classified as a - * non-summary seeking query. For example, `why is the sky blue` and `Who - * is the best soccer player in the world?` are summary-seeking queries, - * but `SFO airport` and `world cup 2026` are not. They are most likely - * navigational queries. If this field is set to `true`, we skip - * generating summaries for non-summary seeking queries and return - * fallback messages instead. - * @type bool $ignore_low_relevant_content - * Specifies whether to filter out queries that have low relevance. The - * default value is `false`. - * If this field is set to `false`, all search results are used regardless - * of relevance to generate answers. If set to `true`, only queries with - * high relevance search results will generate answers. - * @type bool $ignore_jail_breaking_query - * Optional. Specifies whether to filter out jail-breaking queries. The - * default value is `false`. - * Google employs search-query classification to detect jail-breaking - * queries. No summary is returned if the search query is classified as a - * jail-breaking query. A user might add instructions to the query to - * change the tone, style, language, content of the answer, or ask the - * model to act as a different entity, e.g. "Reply in the tone of a - * competing company's CEO". If this field is set to `true`, we skip - * generating summaries for jail-breaking queries and return fallback - * messages instead. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec\ModelPromptSpec $model_prompt_spec - * If specified, the spec will be used to modify the prompt provided to - * the LLM. - * @type string $language_code - * Language code for Summary. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * Note: This is an experimental feature. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec\ModelSpec $model_spec - * If specified, the spec will be used to modify the model specification - * provided to the LLM. - * @type bool $use_semantic_chunks - * If true, answer will be generated from most relevant chunks from top - * search results. This feature will improve summary quality. - * Note that with this feature enabled, not all top search results - * will be referenced and included in the reference list, so the citation - * source index only points to the search results listed in the reference - * list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The number of top results to generate the summary from. If the number - * of results returned is less than `summaryResultCount`, the summary is - * generated from all of the results. - * At most 10 results for documents mode, or 50 for chunks mode, can be - * used to generate a summary. The chunks mode is used when - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. - * - * Generated from protobuf field int32 summary_result_count = 1; - * @return int - */ - public function getSummaryResultCount() - { - return $this->summary_result_count; - } - - /** - * The number of top results to generate the summary from. If the number - * of results returned is less than `summaryResultCount`, the summary is - * generated from all of the results. - * At most 10 results for documents mode, or 50 for chunks mode, can be - * used to generate a summary. The chunks mode is used when - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. - * - * Generated from protobuf field int32 summary_result_count = 1; - * @param int $var - * @return $this - */ - public function setSummaryResultCount($var) - { - GPBUtil::checkInt32($var); - $this->summary_result_count = $var; - - return $this; - } - - /** - * Specifies whether to include citations in the summary. The default - * value is `false`. - * When this field is set to `true`, summaries include in-line citation - * numbers. - * Example summary including citations: - * BigQuery is Google Cloud's fully managed and completely serverless - * enterprise data warehouse [1]. BigQuery supports all data types, works - * across clouds, and has built-in machine learning and business - * intelligence, all within a unified platform [2, 3]. - * The citation numbers refer to the returned search results and are - * 1-indexed. For example, [1] means that the sentence is attributed to - * the first search result. [2, 3] means that the sentence is attributed - * to both the second and third search results. - * - * Generated from protobuf field bool include_citations = 2; - * @return bool - */ - public function getIncludeCitations() - { - return $this->include_citations; - } - - /** - * Specifies whether to include citations in the summary. The default - * value is `false`. - * When this field is set to `true`, summaries include in-line citation - * numbers. - * Example summary including citations: - * BigQuery is Google Cloud's fully managed and completely serverless - * enterprise data warehouse [1]. BigQuery supports all data types, works - * across clouds, and has built-in machine learning and business - * intelligence, all within a unified platform [2, 3]. - * The citation numbers refer to the returned search results and are - * 1-indexed. For example, [1] means that the sentence is attributed to - * the first search result. [2, 3] means that the sentence is attributed - * to both the second and third search results. - * - * Generated from protobuf field bool include_citations = 2; - * @param bool $var - * @return $this - */ - public function setIncludeCitations($var) - { - GPBUtil::checkBool($var); - $this->include_citations = $var; - - return $this; - } - - /** - * Specifies whether to filter out adversarial queries. The default value - * is `false`. - * Google employs search-query classification to detect adversarial - * queries. No summary is returned if the search query is classified as an - * adversarial query. For example, a user might ask a question regarding - * negative comments about the company or submit a query designed to - * generate unsafe, policy-violating output. If this field is set to - * `true`, we skip generating summaries for adversarial queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_adversarial_query = 3; - * @return bool - */ - public function getIgnoreAdversarialQuery() - { - return $this->ignore_adversarial_query; - } - - /** - * Specifies whether to filter out adversarial queries. The default value - * is `false`. - * Google employs search-query classification to detect adversarial - * queries. No summary is returned if the search query is classified as an - * adversarial query. For example, a user might ask a question regarding - * negative comments about the company or submit a query designed to - * generate unsafe, policy-violating output. If this field is set to - * `true`, we skip generating summaries for adversarial queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_adversarial_query = 3; - * @param bool $var - * @return $this - */ - public function setIgnoreAdversarialQuery($var) - { - GPBUtil::checkBool($var); - $this->ignore_adversarial_query = $var; - - return $this; - } - - /** - * Specifies whether to filter out queries that are not summary-seeking. - * The default value is `false`. - * Google employs search-query classification to detect summary-seeking - * queries. No summary is returned if the search query is classified as a - * non-summary seeking query. For example, `why is the sky blue` and `Who - * is the best soccer player in the world?` are summary-seeking queries, - * but `SFO airport` and `world cup 2026` are not. They are most likely - * navigational queries. If this field is set to `true`, we skip - * generating summaries for non-summary seeking queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_non_summary_seeking_query = 4; - * @return bool - */ - public function getIgnoreNonSummarySeekingQuery() - { - return $this->ignore_non_summary_seeking_query; - } - - /** - * Specifies whether to filter out queries that are not summary-seeking. - * The default value is `false`. - * Google employs search-query classification to detect summary-seeking - * queries. No summary is returned if the search query is classified as a - * non-summary seeking query. For example, `why is the sky blue` and `Who - * is the best soccer player in the world?` are summary-seeking queries, - * but `SFO airport` and `world cup 2026` are not. They are most likely - * navigational queries. If this field is set to `true`, we skip - * generating summaries for non-summary seeking queries and return - * fallback messages instead. - * - * Generated from protobuf field bool ignore_non_summary_seeking_query = 4; - * @param bool $var - * @return $this - */ - public function setIgnoreNonSummarySeekingQuery($var) - { - GPBUtil::checkBool($var); - $this->ignore_non_summary_seeking_query = $var; - - return $this; - } - - /** - * Specifies whether to filter out queries that have low relevance. The - * default value is `false`. - * If this field is set to `false`, all search results are used regardless - * of relevance to generate answers. If set to `true`, only queries with - * high relevance search results will generate answers. - * - * Generated from protobuf field bool ignore_low_relevant_content = 9; - * @return bool - */ - public function getIgnoreLowRelevantContent() - { - return $this->ignore_low_relevant_content; - } - - /** - * Specifies whether to filter out queries that have low relevance. The - * default value is `false`. - * If this field is set to `false`, all search results are used regardless - * of relevance to generate answers. If set to `true`, only queries with - * high relevance search results will generate answers. - * - * Generated from protobuf field bool ignore_low_relevant_content = 9; - * @param bool $var - * @return $this - */ - public function setIgnoreLowRelevantContent($var) - { - GPBUtil::checkBool($var); - $this->ignore_low_relevant_content = $var; - - return $this; - } - - /** - * Optional. Specifies whether to filter out jail-breaking queries. The - * default value is `false`. - * Google employs search-query classification to detect jail-breaking - * queries. No summary is returned if the search query is classified as a - * jail-breaking query. A user might add instructions to the query to - * change the tone, style, language, content of the answer, or ask the - * model to act as a different entity, e.g. "Reply in the tone of a - * competing company's CEO". If this field is set to `true`, we skip - * generating summaries for jail-breaking queries and return fallback - * messages instead. - * - * Generated from protobuf field bool ignore_jail_breaking_query = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIgnoreJailBreakingQuery() - { - return $this->ignore_jail_breaking_query; - } - - /** - * Optional. Specifies whether to filter out jail-breaking queries. The - * default value is `false`. - * Google employs search-query classification to detect jail-breaking - * queries. No summary is returned if the search query is classified as a - * jail-breaking query. A user might add instructions to the query to - * change the tone, style, language, content of the answer, or ask the - * model to act as a different entity, e.g. "Reply in the tone of a - * competing company's CEO". If this field is set to `true`, we skip - * generating summaries for jail-breaking queries and return fallback - * messages instead. - * - * Generated from protobuf field bool ignore_jail_breaking_query = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIgnoreJailBreakingQuery($var) - { - GPBUtil::checkBool($var); - $this->ignore_jail_breaking_query = $var; - - return $this; - } - - /** - * If specified, the spec will be used to modify the prompt provided to - * the LLM. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec\ModelPromptSpec|null - */ - public function getModelPromptSpec() - { - return $this->model_prompt_spec; - } - - public function hasModelPromptSpec() - { - return isset($this->model_prompt_spec); - } - - public function clearModelPromptSpec() - { - unset($this->model_prompt_spec); - } - - /** - * If specified, the spec will be used to modify the prompt provided to - * the LLM. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec model_prompt_spec = 5; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec\ModelPromptSpec $var - * @return $this - */ - public function setModelPromptSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec\ModelPromptSpec::class); - $this->model_prompt_spec = $var; - - return $this; - } - - /** - * Language code for Summary. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * Note: This is an experimental feature. - * - * Generated from protobuf field string language_code = 6; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * Language code for Summary. Use language tags defined by - * [BCP47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). - * Note: This is an experimental feature. - * - * 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; - } - - /** - * If specified, the spec will be used to modify the model specification - * provided to the LLM. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec\ModelSpec|null - */ - public function getModelSpec() - { - return $this->model_spec; - } - - public function hasModelSpec() - { - return isset($this->model_spec); - } - - public function clearModelSpec() - { - unset($this->model_spec); - } - - /** - * If specified, the spec will be used to modify the model specification - * provided to the LLM. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec model_spec = 7; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec\ModelSpec $var - * @return $this - */ - public function setModelSpec($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\ContentSearchSpec\SummarySpec\ModelSpec::class); - $this->model_spec = $var; - - return $this; - } - - /** - * If true, answer will be generated from most relevant chunks from top - * search results. This feature will improve summary quality. - * Note that with this feature enabled, not all top search results - * will be referenced and included in the reference list, so the citation - * source index only points to the search results listed in the reference - * list. - * - * Generated from protobuf field bool use_semantic_chunks = 8; - * @return bool - */ - public function getUseSemanticChunks() - { - return $this->use_semantic_chunks; - } - - /** - * If true, answer will be generated from most relevant chunks from top - * search results. This feature will improve summary quality. - * Note that with this feature enabled, not all top search results - * will be referenced and included in the reference list, so the citation - * source index only points to the search results listed in the reference - * list. - * - * Generated from protobuf field bool use_semantic_chunks = 8; - * @param bool $var - * @return $this - */ - public function setUseSemanticChunks($var) - { - GPBUtil::checkBool($var); - $this->use_semantic_chunks = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SummarySpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_ContentSearchSpec_SummarySpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec/ModelPromptSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec/ModelPromptSpec.php deleted file mode 100644 index d7bc47788174..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec/ModelPromptSpec.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelPromptSpec - */ -class ModelPromptSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Text at the beginning of the prompt that instructs the assistant. - * Examples are available in the user guide. - * - * Generated from protobuf field string preamble = 1; - */ - protected $preamble = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $preamble - * Text at the beginning of the prompt that instructs the assistant. - * Examples are available in the user guide. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Text at the beginning of the prompt that instructs the assistant. - * Examples are available in the user guide. - * - * Generated from protobuf field string preamble = 1; - * @return string - */ - public function getPreamble() - { - return $this->preamble; - } - - /** - * Text at the beginning of the prompt that instructs the assistant. - * Examples are available in the user guide. - * - * Generated from protobuf field string preamble = 1; - * @param string $var - * @return $this - */ - public function setPreamble($var) - { - GPBUtil::checkString($var, True); - $this->preamble = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ModelPromptSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_ContentSearchSpec_SummarySpec_ModelPromptSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec/ModelSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec/ModelSpec.php deleted file mode 100644 index fd85e29746a5..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ContentSearchSpec/SummarySpec/ModelSpec.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ModelSpec - */ -class ModelSpec extends \Google\Protobuf\Internal\Message -{ - /** - * The model version used to generate the summary. - * Supported values are: - * * `stable`: string. Default value when no value is specified. Uses a - * generally available, fine-tuned model. For more information, see - * [Answer generation model versions and - * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). - * * `preview`: string. (Public preview) Uses a preview model. For more - * information, see - * [Answer generation model versions and - * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * The model version used to generate the summary. - * Supported values are: - * * `stable`: string. Default value when no value is specified. Uses a - * generally available, fine-tuned model. For more information, see - * [Answer generation model versions and - * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). - * * `preview`: string. (Public preview) Uses a preview model. For more - * information, see - * [Answer generation model versions and - * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The model version used to generate the summary. - * Supported values are: - * * `stable`: string. Default value when no value is specified. Uses a - * generally available, fine-tuned model. For more information, see - * [Answer generation model versions and - * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). - * * `preview`: string. (Public preview) Uses a preview model. For more - * information, see - * [Answer generation model versions and - * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * The model version used to generate the summary. - * Supported values are: - * * `stable`: string. Default value when no value is specified. Uses a - * generally available, fine-tuned model. For more information, see - * [Answer generation model versions and - * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). - * * `preview`: string. (Public preview) Uses a preview model. For more - * information, see - * [Answer generation model versions and - * lifecycle](https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models). - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ModelSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_ContentSearchSpec_SummarySpec_ModelSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/DataStoreSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/DataStoreSpec.php deleted file mode 100644 index 8ec00cdd49ac..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/DataStoreSpec.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.DataStoreSpec - */ -class DataStoreSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $data_store = ''; - /** - * Optional. Filter specification to filter documents in the data store - * specified by data_store field. For more information on filtering, see - * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_store - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * @type string $filter - * Optional. Filter specification to filter documents in the data store - * specified by data_store field. For more information on filtering, see - * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDataStore() - { - return $this->data_store; - } - - /** - * Required. Full resource name of - * [DataStore][google.cloud.discoveryengine.v1.DataStore], such as - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDataStore($var) - { - GPBUtil::checkString($var, True); - $this->data_store = $var; - - return $this; - } - - /** - * Optional. Filter specification to filter documents in the data store - * specified by data_store field. For more information on filtering, see - * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Filter specification to filter documents in the data store - * specified by data_store field. For more information on filtering, see - * [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata) - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DataStoreSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_DataStoreSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/FacetSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/FacetSpec.php deleted file mode 100644 index 0f223226ea36..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/FacetSpec.php +++ /dev/null @@ -1,374 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.FacetSpec - */ -class FacetSpec extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The facet key specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $facet_key = null; - /** - * Maximum facet values that are returned for this facet. If - * unspecified, defaults to 20. The maximum allowed value is 300. Values - * above 300 are coerced to 300. - * For aggregation in healthcare search, when the [FacetKey.key] is - * "healthcare_aggregation_key", the limit will be overridden to - * 10,000 internally, regardless of the value set here. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field int32 limit = 2; - */ - protected $limit = 0; - /** - * List of keys to exclude when faceting. - * By default, - * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key] - * is not excluded from the filter unless it is listed in this field. - * Listing a facet key in this field allows its values to appear as facet - * results, even when they are filtered out of search results. Using this - * field does not affect what search results are returned. - * For example, suppose there are 100 documents with the color facet "Red" - * and 200 documents with the color facet "Blue". A query containing the - * filter "color:ANY("Red")" and having "color" as - * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key] - * would by default return only "Red" documents in the search results, and - * also return "Red" with count 100 as the only color facet. Although there - * are also blue documents available, "Blue" would not be shown as an - * available facet value. - * If "color" is listed in "excludedFilterKeys", then the query returns the - * facet values "Red" with count 100 and "Blue" with count 200, because the - * "color" key is now excluded from the filter. Because this field doesn't - * affect search results, the search results are still correctly filtered to - * return only "Red" documents. - * A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` - * error is returned. - * - * Generated from protobuf field repeated string excluded_filter_keys = 3; - */ - private $excluded_filter_keys; - /** - * Enables dynamic position for this facet. If set to true, the position of - * this facet among all facets in the response is determined automatically. - * If dynamic facets are enabled, it is ordered together. - * If set to false, the position of this facet in the - * response is the same as in the request, and it is ranked before - * the facets with dynamic position enable and all dynamic facets. - * For example, you may always want to have rating facet returned in - * the response, but it's not necessarily to always display the rating facet - * at the top. In that case, you can set enable_dynamic_position to true so - * that the position of rating facet in response is determined - * automatically. - * Another example, assuming you have the following facets in the request: - * * "rating", enable_dynamic_position = true - * * "price", enable_dynamic_position = false - * * "brands", enable_dynamic_position = false - * And also you have a dynamic facets enabled, which generates a facet - * `gender`. Then the final order of the facets in the response can be - * ("price", "brands", "rating", "gender") or ("price", "brands", "gender", - * "rating") depends on how API orders "gender" and "rating" facets. - * However, notice that "price" and "brands" are always - * ranked at first and second position because their enable_dynamic_position - * is false. - * - * Generated from protobuf field bool enable_dynamic_position = 4; - */ - protected $enable_dynamic_position = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\SearchRequest\FacetSpec\FacetKey $facet_key - * Required. The facet key specification. - * @type int $limit - * Maximum facet values that are returned for this facet. If - * unspecified, defaults to 20. The maximum allowed value is 300. Values - * above 300 are coerced to 300. - * For aggregation in healthcare search, when the [FacetKey.key] is - * "healthcare_aggregation_key", the limit will be overridden to - * 10,000 internally, regardless of the value set here. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * @type array|\Google\Protobuf\Internal\RepeatedField $excluded_filter_keys - * List of keys to exclude when faceting. - * By default, - * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key] - * is not excluded from the filter unless it is listed in this field. - * Listing a facet key in this field allows its values to appear as facet - * results, even when they are filtered out of search results. Using this - * field does not affect what search results are returned. - * For example, suppose there are 100 documents with the color facet "Red" - * and 200 documents with the color facet "Blue". A query containing the - * filter "color:ANY("Red")" and having "color" as - * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key] - * would by default return only "Red" documents in the search results, and - * also return "Red" with count 100 as the only color facet. Although there - * are also blue documents available, "Blue" would not be shown as an - * available facet value. - * If "color" is listed in "excludedFilterKeys", then the query returns the - * facet values "Red" with count 100 and "Blue" with count 200, because the - * "color" key is now excluded from the filter. Because this field doesn't - * affect search results, the search results are still correctly filtered to - * return only "Red" documents. - * A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` - * error is returned. - * @type bool $enable_dynamic_position - * Enables dynamic position for this facet. If set to true, the position of - * this facet among all facets in the response is determined automatically. - * If dynamic facets are enabled, it is ordered together. - * If set to false, the position of this facet in the - * response is the same as in the request, and it is ranked before - * the facets with dynamic position enable and all dynamic facets. - * For example, you may always want to have rating facet returned in - * the response, but it's not necessarily to always display the rating facet - * at the top. In that case, you can set enable_dynamic_position to true so - * that the position of rating facet in response is determined - * automatically. - * Another example, assuming you have the following facets in the request: - * * "rating", enable_dynamic_position = true - * * "price", enable_dynamic_position = false - * * "brands", enable_dynamic_position = false - * And also you have a dynamic facets enabled, which generates a facet - * `gender`. Then the final order of the facets in the response can be - * ("price", "brands", "rating", "gender") or ("price", "brands", "gender", - * "rating") depends on how API orders "gender" and "rating" facets. - * However, notice that "price" and "brands" are always - * ranked at first and second position because their enable_dynamic_position - * is false. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The facet key specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchRequest\FacetSpec\FacetKey|null - */ - public function getFacetKey() - { - return $this->facet_key; - } - - public function hasFacetKey() - { - return isset($this->facet_key); - } - - public function clearFacetKey() - { - unset($this->facet_key); - } - - /** - * Required. The facet key specification. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey facet_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchRequest\FacetSpec\FacetKey $var - * @return $this - */ - public function setFacetKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\FacetSpec\FacetKey::class); - $this->facet_key = $var; - - return $this; - } - - /** - * Maximum facet values that are returned for this facet. If - * unspecified, defaults to 20. The maximum allowed value is 300. Values - * above 300 are coerced to 300. - * For aggregation in healthcare search, when the [FacetKey.key] is - * "healthcare_aggregation_key", the limit will be overridden to - * 10,000 internally, regardless of the value set here. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field int32 limit = 2; - * @return int - */ - public function getLimit() - { - return $this->limit; - } - - /** - * Maximum facet values that are returned for this facet. If - * unspecified, defaults to 20. The maximum allowed value is 300. Values - * above 300 are coerced to 300. - * For aggregation in healthcare search, when the [FacetKey.key] is - * "healthcare_aggregation_key", the limit will be overridden to - * 10,000 internally, regardless of the value set here. - * If this field is negative, an `INVALID_ARGUMENT` is returned. - * - * Generated from protobuf field int32 limit = 2; - * @param int $var - * @return $this - */ - public function setLimit($var) - { - GPBUtil::checkInt32($var); - $this->limit = $var; - - return $this; - } - - /** - * List of keys to exclude when faceting. - * By default, - * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key] - * is not excluded from the filter unless it is listed in this field. - * Listing a facet key in this field allows its values to appear as facet - * results, even when they are filtered out of search results. Using this - * field does not affect what search results are returned. - * For example, suppose there are 100 documents with the color facet "Red" - * and 200 documents with the color facet "Blue". A query containing the - * filter "color:ANY("Red")" and having "color" as - * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key] - * would by default return only "Red" documents in the search results, and - * also return "Red" with count 100 as the only color facet. Although there - * are also blue documents available, "Blue" would not be shown as an - * available facet value. - * If "color" is listed in "excludedFilterKeys", then the query returns the - * facet values "Red" with count 100 and "Blue" with count 200, because the - * "color" key is now excluded from the filter. Because this field doesn't - * affect search results, the search results are still correctly filtered to - * return only "Red" documents. - * A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` - * error is returned. - * - * Generated from protobuf field repeated string excluded_filter_keys = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedFilterKeys() - { - return $this->excluded_filter_keys; - } - - /** - * List of keys to exclude when faceting. - * By default, - * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key] - * is not excluded from the filter unless it is listed in this field. - * Listing a facet key in this field allows its values to appear as facet - * results, even when they are filtered out of search results. Using this - * field does not affect what search results are returned. - * For example, suppose there are 100 documents with the color facet "Red" - * and 200 documents with the color facet "Blue". A query containing the - * filter "color:ANY("Red")" and having "color" as - * [FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key] - * would by default return only "Red" documents in the search results, and - * also return "Red" with count 100 as the only color facet. Although there - * are also blue documents available, "Blue" would not be shown as an - * available facet value. - * If "color" is listed in "excludedFilterKeys", then the query returns the - * facet values "Red" with count 100 and "Blue" with count 200, because the - * "color" key is now excluded from the filter. Because this field doesn't - * affect search results, the search results are still correctly filtered to - * return only "Red" documents. - * A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` - * error is returned. - * - * Generated from protobuf field repeated string excluded_filter_keys = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedFilterKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->excluded_filter_keys = $arr; - - return $this; - } - - /** - * Enables dynamic position for this facet. If set to true, the position of - * this facet among all facets in the response is determined automatically. - * If dynamic facets are enabled, it is ordered together. - * If set to false, the position of this facet in the - * response is the same as in the request, and it is ranked before - * the facets with dynamic position enable and all dynamic facets. - * For example, you may always want to have rating facet returned in - * the response, but it's not necessarily to always display the rating facet - * at the top. In that case, you can set enable_dynamic_position to true so - * that the position of rating facet in response is determined - * automatically. - * Another example, assuming you have the following facets in the request: - * * "rating", enable_dynamic_position = true - * * "price", enable_dynamic_position = false - * * "brands", enable_dynamic_position = false - * And also you have a dynamic facets enabled, which generates a facet - * `gender`. Then the final order of the facets in the response can be - * ("price", "brands", "rating", "gender") or ("price", "brands", "gender", - * "rating") depends on how API orders "gender" and "rating" facets. - * However, notice that "price" and "brands" are always - * ranked at first and second position because their enable_dynamic_position - * is false. - * - * Generated from protobuf field bool enable_dynamic_position = 4; - * @return bool - */ - public function getEnableDynamicPosition() - { - return $this->enable_dynamic_position; - } - - /** - * Enables dynamic position for this facet. If set to true, the position of - * this facet among all facets in the response is determined automatically. - * If dynamic facets are enabled, it is ordered together. - * If set to false, the position of this facet in the - * response is the same as in the request, and it is ranked before - * the facets with dynamic position enable and all dynamic facets. - * For example, you may always want to have rating facet returned in - * the response, but it's not necessarily to always display the rating facet - * at the top. In that case, you can set enable_dynamic_position to true so - * that the position of rating facet in response is determined - * automatically. - * Another example, assuming you have the following facets in the request: - * * "rating", enable_dynamic_position = true - * * "price", enable_dynamic_position = false - * * "brands", enable_dynamic_position = false - * And also you have a dynamic facets enabled, which generates a facet - * `gender`. Then the final order of the facets in the response can be - * ("price", "brands", "rating", "gender") or ("price", "brands", "gender", - * "rating") depends on how API orders "gender" and "rating" facets. - * However, notice that "price" and "brands" are always - * ranked at first and second position because their enable_dynamic_position - * is false. - * - * Generated from protobuf field bool enable_dynamic_position = 4; - * @param bool $var - * @return $this - */ - public function setEnableDynamicPosition($var) - { - GPBUtil::checkBool($var); - $this->enable_dynamic_position = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FacetSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_FacetSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/FacetSpec/FacetKey.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/FacetSpec/FacetKey.php deleted file mode 100644 index e04e0e725061..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/FacetSpec/FacetKey.php +++ /dev/null @@ -1,394 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey - */ -class FacetKey extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Supported textual and numerical facet keys in - * [Document][google.cloud.discoveryengine.v1.Document] object, over which - * the facet values are computed. Facet key is case-sensitive. - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key = ''; - /** - * Set only if values should be bucketed into intervals. Must be set - * for facets with numerical values. Must not be set for facet with text - * values. Maximum number of intervals is 30. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Interval intervals = 2; - */ - private $intervals; - /** - * Only get facet for the given restricted values. Only supported on - * textual fields. For example, suppose "category" has three values - * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set - * "restricted_values" to "Action > 2022", the "category" facet only - * contains "Action > 2022". Only supported on textual fields. Maximum - * is 10. - * - * Generated from protobuf field repeated string restricted_values = 3; - */ - private $restricted_values; - /** - * Only get facet values that start with the given string prefix. For - * example, suppose "category" has three values "Action > 2022", - * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the - * "category" facet only contains "Action > 2022" and "Action > 2021". - * Only supported on textual fields. Maximum is 10. - * - * Generated from protobuf field repeated string prefixes = 4; - */ - private $prefixes; - /** - * Only get facet values that contain the given strings. For example, - * suppose "category" has three values "Action > 2022", - * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the - * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022". - * Only supported on textual fields. Maximum is 10. - * - * Generated from protobuf field repeated string contains = 5; - */ - private $contains; - /** - * True to make facet keys case insensitive when getting faceting - * values with prefixes or contains; false otherwise. - * - * Generated from protobuf field bool case_insensitive = 6; - */ - protected $case_insensitive = false; - /** - * The order in which documents are returned. - * Allowed values are: - * * "count desc", which means order by - * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.count] - * descending. - * * "value desc", which means order by - * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.value] - * descending. - * Only applies to textual facets. - * If not set, textual values are sorted in [natural - * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical - * intervals are sorted in the order given by - * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.intervals]. - * - * Generated from protobuf field string order_by = 7; - */ - protected $order_by = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Required. Supported textual and numerical facet keys in - * [Document][google.cloud.discoveryengine.v1.Document] object, over which - * the facet values are computed. Facet key is case-sensitive. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Interval>|\Google\Protobuf\Internal\RepeatedField $intervals - * Set only if values should be bucketed into intervals. Must be set - * for facets with numerical values. Must not be set for facet with text - * values. Maximum number of intervals is 30. - * @type array|\Google\Protobuf\Internal\RepeatedField $restricted_values - * Only get facet for the given restricted values. Only supported on - * textual fields. For example, suppose "category" has three values - * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set - * "restricted_values" to "Action > 2022", the "category" facet only - * contains "Action > 2022". Only supported on textual fields. Maximum - * is 10. - * @type array|\Google\Protobuf\Internal\RepeatedField $prefixes - * Only get facet values that start with the given string prefix. For - * example, suppose "category" has three values "Action > 2022", - * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the - * "category" facet only contains "Action > 2022" and "Action > 2021". - * Only supported on textual fields. Maximum is 10. - * @type array|\Google\Protobuf\Internal\RepeatedField $contains - * Only get facet values that contain the given strings. For example, - * suppose "category" has three values "Action > 2022", - * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the - * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022". - * Only supported on textual fields. Maximum is 10. - * @type bool $case_insensitive - * True to make facet keys case insensitive when getting faceting - * values with prefixes or contains; false otherwise. - * @type string $order_by - * The order in which documents are returned. - * Allowed values are: - * * "count desc", which means order by - * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.count] - * descending. - * * "value desc", which means order by - * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.value] - * descending. - * Only applies to textual facets. - * If not set, textual values are sorted in [natural - * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical - * intervals are sorted in the order given by - * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.intervals]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. Supported textual and numerical facet keys in - * [Document][google.cloud.discoveryengine.v1.Document] object, over which - * the facet values are computed. Facet key is case-sensitive. - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Required. Supported textual and numerical facet keys in - * [Document][google.cloud.discoveryengine.v1.Document] object, over which - * the facet values are computed. Facet key is case-sensitive. - * - * Generated from protobuf field string key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * Set only if values should be bucketed into intervals. Must be set - * for facets with numerical values. Must not be set for facet with text - * values. Maximum number of intervals is 30. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Interval intervals = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIntervals() - { - return $this->intervals; - } - - /** - * Set only if values should be bucketed into intervals. Must be set - * for facets with numerical values. Must not be set for facet with text - * values. Maximum number of intervals is 30. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Interval intervals = 2; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Interval>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIntervals($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Interval::class); - $this->intervals = $arr; - - return $this; - } - - /** - * Only get facet for the given restricted values. Only supported on - * textual fields. For example, suppose "category" has three values - * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set - * "restricted_values" to "Action > 2022", the "category" facet only - * contains "Action > 2022". Only supported on textual fields. Maximum - * is 10. - * - * Generated from protobuf field repeated string restricted_values = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRestrictedValues() - { - return $this->restricted_values; - } - - /** - * Only get facet for the given restricted values. Only supported on - * textual fields. For example, suppose "category" has three values - * "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set - * "restricted_values" to "Action > 2022", the "category" facet only - * contains "Action > 2022". Only supported on textual fields. Maximum - * is 10. - * - * Generated from protobuf field repeated string restricted_values = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRestrictedValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->restricted_values = $arr; - - return $this; - } - - /** - * Only get facet values that start with the given string prefix. For - * example, suppose "category" has three values "Action > 2022", - * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the - * "category" facet only contains "Action > 2022" and "Action > 2021". - * Only supported on textual fields. Maximum is 10. - * - * Generated from protobuf field repeated string prefixes = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPrefixes() - { - return $this->prefixes; - } - - /** - * Only get facet values that start with the given string prefix. For - * example, suppose "category" has three values "Action > 2022", - * "Action > 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the - * "category" facet only contains "Action > 2022" and "Action > 2021". - * Only supported on textual fields. Maximum is 10. - * - * Generated from protobuf field repeated string prefixes = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPrefixes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->prefixes = $arr; - - return $this; - } - - /** - * Only get facet values that contain the given strings. For example, - * suppose "category" has three values "Action > 2022", - * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the - * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022". - * Only supported on textual fields. Maximum is 10. - * - * Generated from protobuf field repeated string contains = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContains() - { - return $this->contains; - } - - /** - * Only get facet values that contain the given strings. For example, - * suppose "category" has three values "Action > 2022", - * "Action > 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the - * "category" facet only contains "Action > 2022" and "Sci-Fi > 2022". - * Only supported on textual fields. Maximum is 10. - * - * Generated from protobuf field repeated string contains = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContains($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->contains = $arr; - - return $this; - } - - /** - * True to make facet keys case insensitive when getting faceting - * values with prefixes or contains; false otherwise. - * - * Generated from protobuf field bool case_insensitive = 6; - * @return bool - */ - public function getCaseInsensitive() - { - return $this->case_insensitive; - } - - /** - * True to make facet keys case insensitive when getting faceting - * values with prefixes or contains; false otherwise. - * - * Generated from protobuf field bool case_insensitive = 6; - * @param bool $var - * @return $this - */ - public function setCaseInsensitive($var) - { - GPBUtil::checkBool($var); - $this->case_insensitive = $var; - - return $this; - } - - /** - * The order in which documents are returned. - * Allowed values are: - * * "count desc", which means order by - * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.count] - * descending. - * * "value desc", which means order by - * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.value] - * descending. - * Only applies to textual facets. - * If not set, textual values are sorted in [natural - * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical - * intervals are sorted in the order given by - * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.intervals]. - * - * Generated from protobuf field string order_by = 7; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * The order in which documents are returned. - * Allowed values are: - * * "count desc", which means order by - * [SearchResponse.Facet.values.count][google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.count] - * descending. - * * "value desc", which means order by - * [SearchResponse.Facet.values.value][google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue.value] - * descending. - * Only applies to textual facets. - * If not set, textual values are sorted in [natural - * order](https://en.wikipedia.org/wiki/Natural_sort_order); numerical - * intervals are sorted in the order given by - * [FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.intervals]. - * - * Generated from protobuf field string order_by = 7; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FacetKey::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_FacetSpec_FacetKey::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ImageQuery.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ImageQuery.php deleted file mode 100644 index 0e67add561c8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/ImageQuery.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.ImageQuery - */ -class ImageQuery extends \Google\Protobuf\Internal\Message -{ - protected $image; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $image_bytes - * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and - * BMP. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and - * BMP. - * - * Generated from protobuf field string image_bytes = 1; - * @return string - */ - public function getImageBytes() - { - return $this->readOneof(1); - } - - public function hasImageBytes() - { - return $this->hasOneof(1); - } - - /** - * Base64 encoded image bytes. Supported image formats: JPEG, PNG, and - * BMP. - * - * Generated from protobuf field string image_bytes = 1; - * @param string $var - * @return $this - */ - public function setImageBytes($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getImage() - { - return $this->whichOneof("image"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ImageQuery::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_ImageQuery::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/QueryExpansionSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/QueryExpansionSpec.php deleted file mode 100644 index b272848a0845..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/QueryExpansionSpec.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec - */ -class QueryExpansionSpec extends \Google\Protobuf\Internal\Message -{ - /** - * The condition under which query expansion should occur. Default to - * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - */ - protected $condition = 0; - /** - * Whether to pin unexpanded results. If this field is set to true, - * unexpanded products are always at the top of the search results, followed - * by the expanded results. - * - * Generated from protobuf field bool pin_unexpanded_results = 2; - */ - protected $pin_unexpanded_results = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $condition - * The condition under which query expansion should occur. Default to - * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED]. - * @type bool $pin_unexpanded_results - * Whether to pin unexpanded results. If this field is set to true, - * unexpanded products are always at the top of the search results, followed - * by the expanded results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The condition under which query expansion should occur. Default to - * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * @return int - */ - public function getCondition() - { - return $this->condition; - } - - /** - * The condition under which query expansion should occur. Default to - * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1; - * @param int $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\QueryExpansionSpec\Condition::class); - $this->condition = $var; - - return $this; - } - - /** - * Whether to pin unexpanded results. If this field is set to true, - * unexpanded products are always at the top of the search results, followed - * by the expanded results. - * - * Generated from protobuf field bool pin_unexpanded_results = 2; - * @return bool - */ - public function getPinUnexpandedResults() - { - return $this->pin_unexpanded_results; - } - - /** - * Whether to pin unexpanded results. If this field is set to true, - * unexpanded products are always at the top of the search results, followed - * by the expanded results. - * - * Generated from protobuf field bool pin_unexpanded_results = 2; - * @param bool $var - * @return $this - */ - public function setPinUnexpandedResults($var) - { - GPBUtil::checkBool($var); - $this->pin_unexpanded_results = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueryExpansionSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_QueryExpansionSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/QueryExpansionSpec/Condition.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/QueryExpansionSpec/Condition.php deleted file mode 100644 index 56b0c02ecb48..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/QueryExpansionSpec/Condition.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition - */ -class Condition -{ - /** - * Unspecified query expansion condition. In this case, server behavior - * defaults to - * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition.DISABLED]. - * - * Generated from protobuf enum CONDITION_UNSPECIFIED = 0; - */ - const CONDITION_UNSPECIFIED = 0; - /** - * Disabled query expansion. Only the exact search query is used, even if - * [SearchResponse.total_size][google.cloud.discoveryengine.v1.SearchResponse.total_size] - * is zero. - * - * Generated from protobuf enum DISABLED = 1; - */ - const DISABLED = 1; - /** - * Automatic query expansion built by the Search API. - * - * Generated from protobuf enum AUTO = 2; - */ - const AUTO = 2; - - private static $valueToName = [ - self::CONDITION_UNSPECIFIED => 'CONDITION_UNSPECIFIED', - self::DISABLED => 'DISABLED', - self::AUTO => 'AUTO', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Condition::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_QueryExpansionSpec_Condition::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SearchAsYouTypeSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SearchAsYouTypeSpec.php deleted file mode 100644 index b1f5cbf2530f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SearchAsYouTypeSpec.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec - */ -class SearchAsYouTypeSpec extends \Google\Protobuf\Internal\Message -{ - /** - * The condition under which search as you type should occur. - * Default to - * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; - */ - protected $condition = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $condition - * The condition under which search as you type should occur. - * Default to - * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The condition under which search as you type should occur. - * Default to - * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; - * @return int - */ - public function getCondition() - { - return $this->condition; - } - - /** - * The condition under which search as you type should occur. - * Default to - * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition condition = 1; - * @param int $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SearchAsYouTypeSpec\Condition::class); - $this->condition = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchAsYouTypeSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_SearchAsYouTypeSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SearchAsYouTypeSpec/Condition.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SearchAsYouTypeSpec/Condition.php deleted file mode 100644 index 8223bdefca54..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SearchAsYouTypeSpec/Condition.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition - */ -class Condition -{ - /** - * Server behavior defaults to - * [Condition.DISABLED][google.cloud.discoveryengine.v1.SearchRequest.SearchAsYouTypeSpec.Condition.DISABLED]. - * - * Generated from protobuf enum CONDITION_UNSPECIFIED = 0; - */ - const CONDITION_UNSPECIFIED = 0; - /** - * Disables Search As You Type. - * - * Generated from protobuf enum DISABLED = 1; - */ - const DISABLED = 1; - /** - * Enables Search As You Type. - * - * Generated from protobuf enum ENABLED = 2; - */ - const ENABLED = 2; - - private static $valueToName = [ - self::CONDITION_UNSPECIFIED => 'CONDITION_UNSPECIFIED', - self::DISABLED => 'DISABLED', - self::ENABLED => 'ENABLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Condition::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_SearchAsYouTypeSpec_Condition::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SessionSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SessionSpec.php deleted file mode 100644 index 782e6174e230..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SessionSpec.php +++ /dev/null @@ -1,213 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.SessionSpec - */ -class SessionSpec extends \Google\Protobuf\Internal\Message -{ - /** - * If set, the search result gets stored to the "turn" specified by this - * query ID. - * Example: Let's say the session looks like this: - * session { - * name: ".../sessions/xxx" - * turns { - * query { text: "What is foo?" query_id: ".../questions/yyy" } - * answer: "Foo is ..." - * } - * turns { - * query { text: "How about bar then?" query_id: ".../questions/zzz" } - * } - * } - * The user can call /search API with a request like this: - * session: ".../sessions/xxx" - * session_spec { query_id: ".../questions/zzz" } - * Then, the API stores the search result, associated with the last turn. - * The stored search result can be used by a subsequent /answer API call - * (with the session ID and the query ID specified). Also, it is possible - * to call /search and /answer in parallel with the same session ID & query - * ID. - * - * Generated from protobuf field string query_id = 1; - */ - protected $query_id = ''; - /** - * The number of top search results to persist. The persisted search results - * can be used for the subsequent /answer api call. - * This field is simliar to the `summary_result_count` field in - * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count]. - * At most 10 results for documents mode, or 50 for chunks mode. - * - * Generated from protobuf field optional int32 search_result_persistence_count = 2; - */ - protected $search_result_persistence_count = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query_id - * If set, the search result gets stored to the "turn" specified by this - * query ID. - * Example: Let's say the session looks like this: - * session { - * name: ".../sessions/xxx" - * turns { - * query { text: "What is foo?" query_id: ".../questions/yyy" } - * answer: "Foo is ..." - * } - * turns { - * query { text: "How about bar then?" query_id: ".../questions/zzz" } - * } - * } - * The user can call /search API with a request like this: - * session: ".../sessions/xxx" - * session_spec { query_id: ".../questions/zzz" } - * Then, the API stores the search result, associated with the last turn. - * The stored search result can be used by a subsequent /answer API call - * (with the session ID and the query ID specified). Also, it is possible - * to call /search and /answer in parallel with the same session ID & query - * ID. - * @type int $search_result_persistence_count - * The number of top search results to persist. The persisted search results - * can be used for the subsequent /answer api call. - * This field is simliar to the `summary_result_count` field in - * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count]. - * At most 10 results for documents mode, or 50 for chunks mode. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * If set, the search result gets stored to the "turn" specified by this - * query ID. - * Example: Let's say the session looks like this: - * session { - * name: ".../sessions/xxx" - * turns { - * query { text: "What is foo?" query_id: ".../questions/yyy" } - * answer: "Foo is ..." - * } - * turns { - * query { text: "How about bar then?" query_id: ".../questions/zzz" } - * } - * } - * The user can call /search API with a request like this: - * session: ".../sessions/xxx" - * session_spec { query_id: ".../questions/zzz" } - * Then, the API stores the search result, associated with the last turn. - * The stored search result can be used by a subsequent /answer API call - * (with the session ID and the query ID specified). Also, it is possible - * to call /search and /answer in parallel with the same session ID & query - * ID. - * - * Generated from protobuf field string query_id = 1; - * @return string - */ - public function getQueryId() - { - return $this->query_id; - } - - /** - * If set, the search result gets stored to the "turn" specified by this - * query ID. - * Example: Let's say the session looks like this: - * session { - * name: ".../sessions/xxx" - * turns { - * query { text: "What is foo?" query_id: ".../questions/yyy" } - * answer: "Foo is ..." - * } - * turns { - * query { text: "How about bar then?" query_id: ".../questions/zzz" } - * } - * } - * The user can call /search API with a request like this: - * session: ".../sessions/xxx" - * session_spec { query_id: ".../questions/zzz" } - * Then, the API stores the search result, associated with the last turn. - * The stored search result can be used by a subsequent /answer API call - * (with the session ID and the query ID specified). Also, it is possible - * to call /search and /answer in parallel with the same session ID & query - * ID. - * - * Generated from protobuf field string query_id = 1; - * @param string $var - * @return $this - */ - public function setQueryId($var) - { - GPBUtil::checkString($var, True); - $this->query_id = $var; - - return $this; - } - - /** - * The number of top search results to persist. The persisted search results - * can be used for the subsequent /answer api call. - * This field is simliar to the `summary_result_count` field in - * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count]. - * At most 10 results for documents mode, or 50 for chunks mode. - * - * Generated from protobuf field optional int32 search_result_persistence_count = 2; - * @return int - */ - public function getSearchResultPersistenceCount() - { - return isset($this->search_result_persistence_count) ? $this->search_result_persistence_count : 0; - } - - public function hasSearchResultPersistenceCount() - { - return isset($this->search_result_persistence_count); - } - - public function clearSearchResultPersistenceCount() - { - unset($this->search_result_persistence_count); - } - - /** - * The number of top search results to persist. The persisted search results - * can be used for the subsequent /answer api call. - * This field is simliar to the `summary_result_count` field in - * [SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.summary_result_count]. - * At most 10 results for documents mode, or 50 for chunks mode. - * - * Generated from protobuf field optional int32 search_result_persistence_count = 2; - * @param int $var - * @return $this - */ - public function setSearchResultPersistenceCount($var) - { - GPBUtil::checkInt32($var); - $this->search_result_persistence_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SessionSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_SessionSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SpellCorrectionSpec.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SpellCorrectionSpec.php deleted file mode 100644 index e4228dbfb324..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SpellCorrectionSpec.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec - */ -class SpellCorrectionSpec extends \Google\Protobuf\Internal\Message -{ - /** - * The mode under which spell correction - * replaces the original search query. Defaults to - * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - */ - protected $mode = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $mode - * The mode under which spell correction - * replaces the original search query. Defaults to - * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The mode under which spell correction - * replaces the original search query. Defaults to - * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * @return int - */ - public function getMode() - { - return $this->mode; - } - - /** - * The mode under which spell correction - * replaces the original search query. Defaults to - * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode mode = 1; - * @param int $var - * @return $this - */ - public function setMode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SearchRequest\SpellCorrectionSpec\Mode::class); - $this->mode = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SpellCorrectionSpec::class, \Google\Cloud\DiscoveryEngine\V1\SearchRequest_SpellCorrectionSpec::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SpellCorrectionSpec/Mode.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SpellCorrectionSpec/Mode.php deleted file mode 100644 index e7d81cd610ea..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchRequest/SpellCorrectionSpec/Mode.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode - */ -class Mode -{ - /** - * Unspecified spell correction mode. In this case, server behavior - * defaults to - * [Mode.AUTO][google.cloud.discoveryengine.v1.SearchRequest.SpellCorrectionSpec.Mode.AUTO]. - * - * Generated from protobuf enum MODE_UNSPECIFIED = 0; - */ - const MODE_UNSPECIFIED = 0; - /** - * Search API tries to find a spelling suggestion. If a suggestion is - * found, it is put in the - * [SearchResponse.corrected_query][google.cloud.discoveryengine.v1.SearchResponse.corrected_query]. - * The spelling suggestion won't be used as the search query. - * - * Generated from protobuf enum SUGGESTION_ONLY = 1; - */ - const SUGGESTION_ONLY = 1; - /** - * Automatic spell correction built by the Search API. Search will - * be based on the corrected query if found. - * - * Generated from protobuf enum AUTO = 2; - */ - const AUTO = 2; - - private static $valueToName = [ - self::MODE_UNSPECIFIED => 'MODE_UNSPECIFIED', - self::SUGGESTION_ONLY => 'SUGGESTION_ONLY', - self::AUTO => 'AUTO', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DiscoveryEngine\V1\SearchRequest_SpellCorrectionSpec_Mode::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse.php deleted file mode 100644 index adf5ab41da7b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse.php +++ /dev/null @@ -1,501 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse - */ -class SearchResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of matched documents. The order represents the ranking. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - */ - private $results; - /** - * Results of facets requested by user. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; - */ - private $facets; - /** - * The estimated total count of matched items irrespective of pagination. The - * count of [results][google.cloud.discoveryengine.v1.SearchResponse.results] - * returned by pagination may be less than the - * [total_size][google.cloud.discoveryengine.v1.SearchResponse.total_size] - * that matches. - * - * Generated from protobuf field int32 total_size = 3; - */ - protected $total_size = 0; - /** - * A unique search token. This should be included in the - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from - * this search, which enables accurate attribution of search model - * performance. This also helps to identify a request during the customer - * support scenarios. - * - * Generated from protobuf field string attribution_token = 4; - */ - protected $attribution_token = ''; - /** - * The URI of a customer-defined redirect page. If redirect action is - * triggered, no search is performed, and only - * [redirect_uri][google.cloud.discoveryengine.v1.SearchResponse.redirect_uri] - * and - * [attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] - * are set in the response. - * - * Generated from protobuf field string redirect_uri = 12; - */ - protected $redirect_uri = ''; - /** - * A token that can be sent as - * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] - * to retrieve the next page. If this field is omitted, there are no - * subsequent pages. - * - * Generated from protobuf field string next_page_token = 5; - */ - protected $next_page_token = ''; - /** - * Contains the spell corrected query, if found. If the spell correction type - * is AUTOMATIC, then the search results are based on corrected_query. - * Otherwise the original query is used for search. - * - * Generated from protobuf field string corrected_query = 7; - */ - protected $corrected_query = ''; - /** - * A summary as part of the search results. - * This field is only returned if - * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] - * is set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; - */ - protected $summary = null; - /** - * Query expansion information for the returned results. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - */ - protected $query_expansion_info = null; - /** - * Session information. - * Only set if - * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] - * is provided. See its description for more details. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19; - */ - protected $session_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\SearchResult>|\Google\Protobuf\Internal\RepeatedField $results - * A list of matched documents. The order represents the ranking. - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Facet>|\Google\Protobuf\Internal\RepeatedField $facets - * Results of facets requested by user. - * @type int $total_size - * The estimated total count of matched items irrespective of pagination. The - * count of [results][google.cloud.discoveryengine.v1.SearchResponse.results] - * returned by pagination may be less than the - * [total_size][google.cloud.discoveryengine.v1.SearchResponse.total_size] - * that matches. - * @type string $attribution_token - * A unique search token. This should be included in the - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from - * this search, which enables accurate attribution of search model - * performance. This also helps to identify a request during the customer - * support scenarios. - * @type string $redirect_uri - * The URI of a customer-defined redirect page. If redirect action is - * triggered, no search is performed, and only - * [redirect_uri][google.cloud.discoveryengine.v1.SearchResponse.redirect_uri] - * and - * [attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] - * are set in the response. - * @type string $next_page_token - * A token that can be sent as - * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] - * to retrieve the next page. If this field is omitted, there are no - * subsequent pages. - * @type string $corrected_query - * Contains the spell corrected query, if found. If the spell correction type - * is AUTOMATIC, then the search results are based on corrected_query. - * Otherwise the original query is used for search. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary $summary - * A summary as part of the search results. - * This field is only returned if - * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] - * is set. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchResponse\QueryExpansionInfo $query_expansion_info - * Query expansion information for the returned results. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchResponse\SessionInfo $session_info - * Session information. - * Only set if - * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] - * is provided. See its description for more details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * A list of matched documents. The order represents the ranking. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResults() - { - return $this->results; - } - - /** - * A list of matched documents. The order represents the ranking. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.SearchResult results = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\SearchResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\SearchResult::class); - $this->results = $arr; - - return $this; - } - - /** - * Results of facets requested by user. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFacets() - { - return $this->facets; - } - - /** - * Results of facets requested by user. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet facets = 2; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Facet>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFacets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Facet::class); - $this->facets = $arr; - - return $this; - } - - /** - * The estimated total count of matched items irrespective of pagination. The - * count of [results][google.cloud.discoveryengine.v1.SearchResponse.results] - * returned by pagination may be less than the - * [total_size][google.cloud.discoveryengine.v1.SearchResponse.total_size] - * that matches. - * - * Generated from protobuf field int32 total_size = 3; - * @return int - */ - public function getTotalSize() - { - return $this->total_size; - } - - /** - * The estimated total count of matched items irrespective of pagination. The - * count of [results][google.cloud.discoveryengine.v1.SearchResponse.results] - * returned by pagination may be less than the - * [total_size][google.cloud.discoveryengine.v1.SearchResponse.total_size] - * that matches. - * - * Generated from protobuf field int32 total_size = 3; - * @param int $var - * @return $this - */ - public function setTotalSize($var) - { - GPBUtil::checkInt32($var); - $this->total_size = $var; - - return $this; - } - - /** - * A unique search token. This should be included in the - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from - * this search, which enables accurate attribution of search model - * performance. This also helps to identify a request during the customer - * support scenarios. - * - * Generated from protobuf field string attribution_token = 4; - * @return string - */ - public function getAttributionToken() - { - return $this->attribution_token; - } - - /** - * A unique search token. This should be included in the - * [UserEvent][google.cloud.discoveryengine.v1.UserEvent] logs resulting from - * this search, which enables accurate attribution of search model - * performance. This also helps to identify a request during the customer - * support scenarios. - * - * Generated from protobuf field string attribution_token = 4; - * @param string $var - * @return $this - */ - public function setAttributionToken($var) - { - GPBUtil::checkString($var, True); - $this->attribution_token = $var; - - return $this; - } - - /** - * The URI of a customer-defined redirect page. If redirect action is - * triggered, no search is performed, and only - * [redirect_uri][google.cloud.discoveryengine.v1.SearchResponse.redirect_uri] - * and - * [attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] - * are set in the response. - * - * Generated from protobuf field string redirect_uri = 12; - * @return string - */ - public function getRedirectUri() - { - return $this->redirect_uri; - } - - /** - * The URI of a customer-defined redirect page. If redirect action is - * triggered, no search is performed, and only - * [redirect_uri][google.cloud.discoveryengine.v1.SearchResponse.redirect_uri] - * and - * [attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] - * are set in the response. - * - * Generated from protobuf field string redirect_uri = 12; - * @param string $var - * @return $this - */ - public function setRedirectUri($var) - { - GPBUtil::checkString($var, True); - $this->redirect_uri = $var; - - return $this; - } - - /** - * A token that can be sent as - * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] - * to retrieve the next page. If this field is omitted, there are no - * subsequent pages. - * - * Generated from protobuf field string next_page_token = 5; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token that can be sent as - * [SearchRequest.page_token][google.cloud.discoveryengine.v1.SearchRequest.page_token] - * to retrieve the next page. If this field is omitted, there are no - * subsequent pages. - * - * Generated from protobuf field string next_page_token = 5; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Contains the spell corrected query, if found. If the spell correction type - * is AUTOMATIC, then the search results are based on corrected_query. - * Otherwise the original query is used for search. - * - * Generated from protobuf field string corrected_query = 7; - * @return string - */ - public function getCorrectedQuery() - { - return $this->corrected_query; - } - - /** - * Contains the spell corrected query, if found. If the spell correction type - * is AUTOMATIC, then the search results are based on corrected_query. - * Otherwise the original query is used for search. - * - * Generated from protobuf field string corrected_query = 7; - * @param string $var - * @return $this - */ - public function setCorrectedQuery($var) - { - GPBUtil::checkString($var, True); - $this->corrected_query = $var; - - return $this; - } - - /** - * A summary as part of the search results. - * This field is only returned if - * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] - * is set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary|null - */ - public function getSummary() - { - return $this->summary; - } - - public function hasSummary() - { - return isset($this->summary); - } - - public function clearSummary() - { - unset($this->summary); - } - - /** - * A summary as part of the search results. - * This field is only returned if - * [SearchRequest.ContentSearchSpec.summary_spec][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.summary_spec] - * is set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary summary = 9; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary $var - * @return $this - */ - public function setSummary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary::class); - $this->summary = $var; - - return $this; - } - - /** - * Query expansion information for the returned results. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchResponse\QueryExpansionInfo|null - */ - public function getQueryExpansionInfo() - { - return $this->query_expansion_info; - } - - public function hasQueryExpansionInfo() - { - return isset($this->query_expansion_info); - } - - public function clearQueryExpansionInfo() - { - unset($this->query_expansion_info); - } - - /** - * Query expansion information for the returned results. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo query_expansion_info = 14; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchResponse\QueryExpansionInfo $var - * @return $this - */ - public function setQueryExpansionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\QueryExpansionInfo::class); - $this->query_expansion_info = $var; - - return $this; - } - - /** - * Session information. - * Only set if - * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] - * is provided. See its description for more details. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchResponse\SessionInfo|null - */ - public function getSessionInfo() - { - return $this->session_info; - } - - public function hasSessionInfo() - { - return isset($this->session_info); - } - - public function clearSessionInfo() - { - unset($this->session_info); - } - - /** - * Session information. - * Only set if - * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] - * is provided. See its description for more details. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.SessionInfo session_info = 19; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchResponse\SessionInfo $var - * @return $this - */ - public function setSessionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\SessionInfo::class); - $this->session_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Facet.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Facet.php deleted file mode 100644 index addae51793df..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Facet.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Facet - */ -class Facet extends \Google\Protobuf\Internal\Message -{ - /** - * The key for this facet. For example, `"colors"` or `"price"`. It matches - * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - /** - * The facet values for this field. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - */ - private $values; - /** - * Whether the facet is dynamically generated. - * - * Generated from protobuf field bool dynamic_facet = 3; - */ - protected $dynamic_facet = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * The key for this facet. For example, `"colors"` or `"price"`. It matches - * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]. - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Facet\FacetValue>|\Google\Protobuf\Internal\RepeatedField $values - * The facet values for this field. - * @type bool $dynamic_facet - * Whether the facet is dynamically generated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The key for this facet. For example, `"colors"` or `"price"`. It matches - * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * The key for this facet. For example, `"colors"` or `"price"`. It matches - * [SearchRequest.FacetSpec.FacetKey.key][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.key]. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - - /** - * The facet values for this field. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The facet values for this field. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue values = 2; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Facet\FacetValue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Facet\FacetValue::class); - $this->values = $arr; - - return $this; - } - - /** - * Whether the facet is dynamically generated. - * - * Generated from protobuf field bool dynamic_facet = 3; - * @return bool - */ - public function getDynamicFacet() - { - return $this->dynamic_facet; - } - - /** - * Whether the facet is dynamically generated. - * - * Generated from protobuf field bool dynamic_facet = 3; - * @param bool $var - * @return $this - */ - public function setDynamicFacet($var) - { - GPBUtil::checkBool($var); - $this->dynamic_facet = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Facet::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Facet::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Facet/FacetValue.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Facet/FacetValue.php deleted file mode 100644 index 2442a72c255e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Facet/FacetValue.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Facet.FacetValue - */ -class FacetValue extends \Google\Protobuf\Internal\Message -{ - /** - * Number of items that have this facet value. - * - * Generated from protobuf field int64 count = 3; - */ - protected $count = 0; - protected $facet_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * Text value of a facet, such as "Black" for facet "colors". - * @type \Google\Cloud\DiscoveryEngine\V1\Interval $interval - * Interval value for a facet, such as [10, 20) for facet "price". It - * matches - * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.intervals]. - * @type int|string $count - * Number of items that have this facet value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Text value of a facet, such as "Black" for facet "colors". - * - * Generated from protobuf field string value = 1; - * @return string - */ - public function getValue() - { - return $this->readOneof(1); - } - - public function hasValue() - { - return $this->hasOneof(1); - } - - /** - * Text value of a facet, such as "Black" for facet "colors". - * - * Generated from protobuf field string value = 1; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Interval value for a facet, such as [10, 20) for facet "price". It - * matches - * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.intervals]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Interval interval = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\Interval|null - */ - public function getInterval() - { - return $this->readOneof(2); - } - - public function hasInterval() - { - return $this->hasOneof(2); - } - - /** - * Interval value for a facet, such as [10, 20) for facet "price". It - * matches - * [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.intervals]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Interval interval = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\Interval $var - * @return $this - */ - public function setInterval($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Interval::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Number of items that have this facet value. - * - * Generated from protobuf field int64 count = 3; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * Number of items that have this facet value. - * - * Generated from protobuf field int64 count = 3; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - - /** - * @return string - */ - public function getFacetValue() - { - return $this->whichOneof("facet_value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FacetValue::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Facet_FacetValue::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/QueryExpansionInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/QueryExpansionInfo.php deleted file mode 100644 index ebfd0de8675e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/QueryExpansionInfo.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.QueryExpansionInfo - */ -class QueryExpansionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Bool describing whether query expansion has occurred. - * - * Generated from protobuf field bool expanded_query = 1; - */ - protected $expanded_query = false; - /** - * Number of pinned results. This field will only be set when expansion - * happens and - * [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.pin_unexpanded_results] - * is set to true. - * - * Generated from protobuf field int64 pinned_result_count = 2; - */ - protected $pinned_result_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $expanded_query - * Bool describing whether query expansion has occurred. - * @type int|string $pinned_result_count - * Number of pinned results. This field will only be set when expansion - * happens and - * [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.pin_unexpanded_results] - * is set to true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Bool describing whether query expansion has occurred. - * - * Generated from protobuf field bool expanded_query = 1; - * @return bool - */ - public function getExpandedQuery() - { - return $this->expanded_query; - } - - /** - * Bool describing whether query expansion has occurred. - * - * Generated from protobuf field bool expanded_query = 1; - * @param bool $var - * @return $this - */ - public function setExpandedQuery($var) - { - GPBUtil::checkBool($var); - $this->expanded_query = $var; - - return $this; - } - - /** - * Number of pinned results. This field will only be set when expansion - * happens and - * [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.pin_unexpanded_results] - * is set to true. - * - * Generated from protobuf field int64 pinned_result_count = 2; - * @return int|string - */ - public function getPinnedResultCount() - { - return $this->pinned_result_count; - } - - /** - * Number of pinned results. This field will only be set when expansion - * happens and - * [SearchRequest.QueryExpansionSpec.pin_unexpanded_results][google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.pin_unexpanded_results] - * is set to true. - * - * Generated from protobuf field int64 pinned_result_count = 2; - * @param int|string $var - * @return $this - */ - public function setPinnedResultCount($var) - { - GPBUtil::checkInt64($var); - $this->pinned_result_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QueryExpansionInfo::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_QueryExpansionInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/SearchResult.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/SearchResult.php deleted file mode 100644 index 6e2611179bad..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/SearchResult.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.SearchResult - */ -class SearchResult extends \Google\Protobuf\Internal\Message -{ - /** - * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the - * searched [Document][google.cloud.discoveryengine.v1.Document]. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The document data snippet in the search response. Only fields that are - * marked as `retrievable` are populated. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 2; - */ - protected $document = null; - /** - * The chunk data in the search response if the - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk chunk = 18; - */ - protected $chunk = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the - * searched [Document][google.cloud.discoveryengine.v1.Document]. - * @type \Google\Cloud\DiscoveryEngine\V1\Document $document - * The document data snippet in the search response. Only fields that are - * marked as `retrievable` are populated. - * @type \Google\Cloud\DiscoveryEngine\V1\Chunk $chunk - * The chunk data in the search response if the - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the - * searched [Document][google.cloud.discoveryengine.v1.Document]. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * [Document.id][google.cloud.discoveryengine.v1.Document.id] of the - * searched [Document][google.cloud.discoveryengine.v1.Document]. - * - * 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 document data snippet in the search response. Only fields that are - * marked as `retrievable` are populated. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\Document|null - */ - public function getDocument() - { - return $this->document; - } - - public function hasDocument() - { - return isset($this->document); - } - - public function clearDocument() - { - unset($this->document); - } - - /** - * The document data snippet in the search response. Only fields that are - * marked as `retrievable` are populated. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\Document $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Document::class); - $this->document = $var; - - return $this; - } - - /** - * The chunk data in the search response if the - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk chunk = 18; - * @return \Google\Cloud\DiscoveryEngine\V1\Chunk|null - */ - public function getChunk() - { - return $this->chunk; - } - - public function hasChunk() - { - return isset($this->chunk); - } - - public function clearChunk() - { - unset($this->chunk); - } - - /** - * The chunk data in the search response if the - * [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] - * is set to - * [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Chunk chunk = 18; - * @param \Google\Cloud\DiscoveryEngine\V1\Chunk $var - * @return $this - */ - public function setChunk($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Chunk::class); - $this->chunk = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SearchResult::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_SearchResult::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/SessionInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/SessionInfo.php deleted file mode 100644 index 4d798f473760..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/SessionInfo.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.SessionInfo - */ -class SessionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the session. - * If the auto-session mode is used (when - * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] - * ends with "-"), this field holds the newly generated session name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Query ID that corresponds to this search API call. - * One session can have multiple turns, each with a unique query ID. - * By specifying the session name and this query ID in the Answer API call, - * the answer generation happens in the context of the search results from - * this search call. - * - * Generated from protobuf field string query_id = 2; - */ - protected $query_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the session. - * If the auto-session mode is used (when - * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] - * ends with "-"), this field holds the newly generated session name. - * @type string $query_id - * Query ID that corresponds to this search API call. - * One session can have multiple turns, each with a unique query ID. - * By specifying the session name and this query ID in the Answer API call, - * the answer generation happens in the context of the search results from - * this search call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Name of the session. - * If the auto-session mode is used (when - * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] - * ends with "-"), this field holds the newly generated session name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the session. - * If the auto-session mode is used (when - * [SearchRequest.session][google.cloud.discoveryengine.v1.SearchRequest.session] - * ends with "-"), this field holds the newly generated session 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; - } - - /** - * Query ID that corresponds to this search API call. - * One session can have multiple turns, each with a unique query ID. - * By specifying the session name and this query ID in the Answer API call, - * the answer generation happens in the context of the search results from - * this search call. - * - * Generated from protobuf field string query_id = 2; - * @return string - */ - public function getQueryId() - { - return $this->query_id; - } - - /** - * Query ID that corresponds to this search API call. - * One session can have multiple turns, each with a unique query ID. - * By specifying the session name and this query ID in the Answer API call, - * the answer generation happens in the context of the search results from - * this search call. - * - * Generated from protobuf field string query_id = 2; - * @param string $var - * @return $this - */ - public function setQueryId($var) - { - GPBUtil::checkString($var, True); - $this->query_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SessionInfo::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_SessionInfo::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary.php deleted file mode 100644 index ee4b18e2339c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary.php +++ /dev/null @@ -1,200 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Summary - */ -class Summary extends \Google\Protobuf\Internal\Message -{ - /** - * The summary content. - * - * Generated from protobuf field string summary_text = 1; - */ - protected $summary_text = ''; - /** - * Additional summary-skipped reasons. This provides the reason for ignored - * cases. If nothing is skipped, this field is not set. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - */ - private $summary_skipped_reasons; - /** - * A collection of Safety Attribute categories and their associated - * confidence scores. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - */ - protected $safety_attributes = null; - /** - * Summary with metadata information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; - */ - protected $summary_with_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $summary_text - * The summary content. - * @type array|\Google\Protobuf\Internal\RepeatedField $summary_skipped_reasons - * Additional summary-skipped reasons. This provides the reason for ignored - * cases. If nothing is skipped, this field is not set. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\SafetyAttributes $safety_attributes - * A collection of Safety Attribute categories and their associated - * confidence scores. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\SummaryWithMetadata $summary_with_metadata - * Summary with metadata information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The summary content. - * - * Generated from protobuf field string summary_text = 1; - * @return string - */ - public function getSummaryText() - { - return $this->summary_text; - } - - /** - * The summary content. - * - * Generated from protobuf field string summary_text = 1; - * @param string $var - * @return $this - */ - public function setSummaryText($var) - { - GPBUtil::checkString($var, True); - $this->summary_text = $var; - - return $this; - } - - /** - * Additional summary-skipped reasons. This provides the reason for ignored - * cases. If nothing is skipped, this field is not set. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSummarySkippedReasons() - { - return $this->summary_skipped_reasons; - } - - /** - * Additional summary-skipped reasons. This provides the reason for ignored - * cases. If nothing is skipped, this field is not set. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason summary_skipped_reasons = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSummarySkippedReasons($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\SummarySkippedReason::class); - $this->summary_skipped_reasons = $arr; - - return $this; - } - - /** - * A collection of Safety Attribute categories and their associated - * confidence scores. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\SafetyAttributes|null - */ - public function getSafetyAttributes() - { - return $this->safety_attributes; - } - - public function hasSafetyAttributes() - { - return isset($this->safety_attributes); - } - - public function clearSafetyAttributes() - { - unset($this->safety_attributes); - } - - /** - * A collection of Safety Attribute categories and their associated - * confidence scores. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes safety_attributes = 3; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\SafetyAttributes $var - * @return $this - */ - public function setSafetyAttributes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\SafetyAttributes::class); - $this->safety_attributes = $var; - - return $this; - } - - /** - * Summary with metadata information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\SummaryWithMetadata|null - */ - public function getSummaryWithMetadata() - { - return $this->summary_with_metadata; - } - - public function hasSummaryWithMetadata() - { - return isset($this->summary_with_metadata); - } - - public function clearSummaryWithMetadata() - { - unset($this->summary_with_metadata); - } - - /** - * Summary with metadata information. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary.SummaryWithMetadata summary_with_metadata = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\SummaryWithMetadata $var - * @return $this - */ - public function setSummaryWithMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\SummaryWithMetadata::class); - $this->summary_with_metadata = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Summary::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Summary::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Citation.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Citation.php deleted file mode 100644 index 3bef31295f69..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Citation.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation - */ -class Citation extends \Google\Protobuf\Internal\Message -{ - /** - * Index indicates the start of the segment, measured in bytes/unicode. - * - * Generated from protobuf field int64 start_index = 1; - */ - protected $start_index = 0; - /** - * End of the attributed segment, exclusive. - * - * Generated from protobuf field int64 end_index = 2; - */ - protected $end_index = 0; - /** - * Citation sources for the attributed segment. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationSource sources = 3; - */ - private $sources; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $start_index - * Index indicates the start of the segment, measured in bytes/unicode. - * @type int|string $end_index - * End of the attributed segment, exclusive. - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\CitationSource>|\Google\Protobuf\Internal\RepeatedField $sources - * Citation sources for the attributed segment. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Index indicates the start of the segment, measured in bytes/unicode. - * - * Generated from protobuf field int64 start_index = 1; - * @return int|string - */ - public function getStartIndex() - { - return $this->start_index; - } - - /** - * Index indicates the start of the segment, measured in bytes/unicode. - * - * Generated from protobuf field int64 start_index = 1; - * @param int|string $var - * @return $this - */ - public function setStartIndex($var) - { - GPBUtil::checkInt64($var); - $this->start_index = $var; - - return $this; - } - - /** - * End of the attributed segment, exclusive. - * - * Generated from protobuf field int64 end_index = 2; - * @return int|string - */ - public function getEndIndex() - { - return $this->end_index; - } - - /** - * End of the attributed segment, exclusive. - * - * Generated from protobuf field int64 end_index = 2; - * @param int|string $var - * @return $this - */ - public function setEndIndex($var) - { - GPBUtil::checkInt64($var); - $this->end_index = $var; - - return $this; - } - - /** - * Citation sources for the attributed segment. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationSource sources = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSources() - { - return $this->sources; - } - - /** - * Citation sources for the attributed segment. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationSource sources = 3; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\CitationSource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\CitationSource::class); - $this->sources = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Citation::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Summary_Citation::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/CitationMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/CitationMetadata.php deleted file mode 100644 index ae1cdd5fcd8c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/CitationMetadata.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationMetadata - */ -class CitationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Citations for segments. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1; - */ - private $citations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\Citation>|\Google\Protobuf\Internal\RepeatedField $citations - * Citations for segments. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Citations for segments. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCitations() - { - return $this->citations; - } - - /** - * Citations for segments. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Citation citations = 1; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\Citation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCitations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\Citation::class); - $this->citations = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CitationMetadata::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Summary_CitationMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/CitationSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/CitationSource.php deleted file mode 100644 index 97d2ed0b0636..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/CitationSource.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationSource - */ -class CitationSource extends \Google\Protobuf\Internal\Message -{ - /** - * Document reference index from SummaryWithMetadata.references. - * It is 0-indexed and the value will be zero if the reference_index is - * not set explicitly. - * - * Generated from protobuf field int64 reference_index = 4; - */ - protected $reference_index = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $reference_index - * Document reference index from SummaryWithMetadata.references. - * It is 0-indexed and the value will be zero if the reference_index is - * not set explicitly. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Document reference index from SummaryWithMetadata.references. - * It is 0-indexed and the value will be zero if the reference_index is - * not set explicitly. - * - * Generated from protobuf field int64 reference_index = 4; - * @return int|string - */ - public function getReferenceIndex() - { - return $this->reference_index; - } - - /** - * Document reference index from SummaryWithMetadata.references. - * It is 0-indexed and the value will be zero if the reference_index is - * not set explicitly. - * - * Generated from protobuf field int64 reference_index = 4; - * @param int|string $var - * @return $this - */ - public function setReferenceIndex($var) - { - GPBUtil::checkInt64($var); - $this->reference_index = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CitationSource::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Summary_CitationSource::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Reference.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Reference.php deleted file mode 100644 index bc0307ef044e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Reference.php +++ /dev/null @@ -1,184 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Summary.Reference - */ -class Reference extends \Google\Protobuf\Internal\Message -{ - /** - * Title of the document. - * - * Generated from protobuf field string title = 1; - */ - protected $title = ''; - /** - * Required. - * [Document.name][google.cloud.discoveryengine.v1.Document.name] of the - * document. Full resource name of the referenced document, in the format - * `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`. - * - * Generated from protobuf field string document = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $document = ''; - /** - * Cloud Storage or HTTP uri for the document. - * - * Generated from protobuf field string uri = 3; - */ - protected $uri = ''; - /** - * List of cited chunk contents derived from document content. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Reference.ChunkContent chunk_contents = 4; - */ - private $chunk_contents; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $title - * Title of the document. - * @type string $document - * Required. - * [Document.name][google.cloud.discoveryengine.v1.Document.name] of the - * document. Full resource name of the referenced document, in the format - * `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`. - * @type string $uri - * Cloud Storage or HTTP uri for the document. - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\Reference\ChunkContent>|\Google\Protobuf\Internal\RepeatedField $chunk_contents - * List of cited chunk contents derived from document content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Title of the document. - * - * Generated from protobuf field string title = 1; - * @return string - */ - public function getTitle() - { - return $this->title; - } - - /** - * Title of the document. - * - * 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; - } - - /** - * Required. - * [Document.name][google.cloud.discoveryengine.v1.Document.name] of the - * document. Full resource name of the referenced document, in the format - * `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`. - * - * Generated from protobuf field string document = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDocument() - { - return $this->document; - } - - /** - * Required. - * [Document.name][google.cloud.discoveryengine.v1.Document.name] of the - * document. Full resource name of the referenced document, in the format - * `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`. - * - * Generated from protobuf field string document = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkString($var, True); - $this->document = $var; - - return $this; - } - - /** - * Cloud Storage or HTTP uri for the document. - * - * Generated from protobuf field string uri = 3; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Cloud Storage or HTTP uri for the document. - * - * Generated from protobuf field string uri = 3; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * List of cited chunk contents derived from document content. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Reference.ChunkContent chunk_contents = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChunkContents() - { - return $this->chunk_contents; - } - - /** - * List of cited chunk contents derived from document content. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Reference.ChunkContent chunk_contents = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\Reference\ChunkContent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChunkContents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\Reference\ChunkContent::class); - $this->chunk_contents = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Reference::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Summary_Reference::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Reference/ChunkContent.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Reference/ChunkContent.php deleted file mode 100644 index 56ccead84941..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/Reference/ChunkContent.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Summary.Reference.ChunkContent - */ -class ChunkContent extends \Google\Protobuf\Internal\Message -{ - /** - * Chunk textual content. - * - * Generated from protobuf field string content = 1; - */ - protected $content = ''; - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 2; - */ - protected $page_identifier = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $content - * Chunk textual content. - * @type string $page_identifier - * Page identifier. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Chunk textual content. - * - * Generated from protobuf field string content = 1; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Chunk textual content. - * - * 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; - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 2; - * @return string - */ - public function getPageIdentifier() - { - return $this->page_identifier; - } - - /** - * Page identifier. - * - * Generated from protobuf field string page_identifier = 2; - * @param string $var - * @return $this - */ - public function setPageIdentifier($var) - { - GPBUtil::checkString($var, True); - $this->page_identifier = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkContent::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Summary_Reference_ChunkContent::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SafetyAttributes.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SafetyAttributes.php deleted file mode 100644 index a65a74417076..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SafetyAttributes.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Summary.SafetyAttributes - */ -class SafetyAttributes extends \Google\Protobuf\Internal\Message -{ - /** - * The display names of Safety Attribute categories associated with the - * generated content. Order matches the Scores. - * - * Generated from protobuf field repeated string categories = 1; - */ - private $categories; - /** - * The confidence scores of the each category, higher - * value means higher confidence. Order matches the Categories. - * - * Generated from protobuf field repeated float scores = 2; - */ - private $scores; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $categories - * The display names of Safety Attribute categories associated with the - * generated content. Order matches the Scores. - * @type array|\Google\Protobuf\Internal\RepeatedField $scores - * The confidence scores of the each category, higher - * value means higher confidence. Order matches the Categories. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * The display names of Safety Attribute categories associated with the - * generated content. Order matches the Scores. - * - * Generated from protobuf field repeated string categories = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCategories() - { - return $this->categories; - } - - /** - * The display names of Safety Attribute categories associated with the - * generated content. Order matches the Scores. - * - * Generated from protobuf field repeated string categories = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->categories = $arr; - - return $this; - } - - /** - * The confidence scores of the each category, higher - * value means higher confidence. Order matches the Categories. - * - * Generated from protobuf field repeated float scores = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getScores() - { - return $this->scores; - } - - /** - * The confidence scores of the each category, higher - * value means higher confidence. Order matches the Categories. - * - * Generated from protobuf field repeated float scores = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setScores($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::FLOAT); - $this->scores = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SafetyAttributes::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Summary_SafetyAttributes::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SummarySkippedReason.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SummarySkippedReason.php deleted file mode 100644 index 5a2934f56c9e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SummarySkippedReason.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Summary.SummarySkippedReason - */ -class SummarySkippedReason -{ - /** - * Default value. The summary skipped reason is not specified. - * - * Generated from protobuf enum SUMMARY_SKIPPED_REASON_UNSPECIFIED = 0; - */ - const SUMMARY_SKIPPED_REASON_UNSPECIFIED = 0; - /** - * The adversarial query ignored case. - * Only used when - * [SummarySpec.ignore_adversarial_query][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ignore_adversarial_query] - * is set to `true`. - * - * Generated from protobuf enum ADVERSARIAL_QUERY_IGNORED = 1; - */ - const ADVERSARIAL_QUERY_IGNORED = 1; - /** - * The non-summary seeking query ignored case. - * Google skips the summary if the query is chit chat. - * Only used when - * [SummarySpec.ignore_non_summary_seeking_query][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_summary_seeking_query] - * is set to `true`. - * - * Generated from protobuf enum NON_SUMMARY_SEEKING_QUERY_IGNORED = 2; - */ - const NON_SUMMARY_SEEKING_QUERY_IGNORED = 2; - /** - * The out-of-domain query ignored case. - * Google skips the summary if there are no high-relevance search results. - * For example, the data store contains facts about company A but the - * user query is asking questions about company B. - * - * Generated from protobuf enum OUT_OF_DOMAIN_QUERY_IGNORED = 3; - */ - const OUT_OF_DOMAIN_QUERY_IGNORED = 3; - /** - * The potential policy violation case. - * Google skips the summary if there is a potential policy violation - * detected. This includes content that may be violent or toxic. - * - * Generated from protobuf enum POTENTIAL_POLICY_VIOLATION = 4; - */ - const POTENTIAL_POLICY_VIOLATION = 4; - /** - * The LLM addon not enabled case. - * Google skips the summary if the LLM addon is not enabled. - * - * Generated from protobuf enum LLM_ADDON_NOT_ENABLED = 5; - */ - const LLM_ADDON_NOT_ENABLED = 5; - /** - * The no relevant content case. - * Google skips the summary if there is no relevant content in the - * retrieved search results. - * - * Generated from protobuf enum NO_RELEVANT_CONTENT = 6; - */ - const NO_RELEVANT_CONTENT = 6; - /** - * The jail-breaking query ignored case. - * For example, "Reply in the tone of a competing company's CEO". - * Only used when - * [SearchRequest.ContentSearchSpec.SummarySpec.ignore_jail_breaking_query] - * is set to `true`. - * - * Generated from protobuf enum JAIL_BREAKING_QUERY_IGNORED = 7; - */ - const JAIL_BREAKING_QUERY_IGNORED = 7; - /** - * The customer policy violation case. - * Google skips the summary if there is a customer policy violation - * detected. The policy is defined by the customer. - * - * Generated from protobuf enum CUSTOMER_POLICY_VIOLATION = 8; - */ - const CUSTOMER_POLICY_VIOLATION = 8; - /** - * The non-answer seeking query ignored case. - * Google skips the summary if the query doesn't have clear intent. - * Only used when - * [SearchRequest.ContentSearchSpec.SummarySpec.ignore_non_answer_seeking_query] - * is set to `true`. - * - * Generated from protobuf enum NON_SUMMARY_SEEKING_QUERY_IGNORED_V2 = 9; - */ - const NON_SUMMARY_SEEKING_QUERY_IGNORED_V2 = 9; - - private static $valueToName = [ - self::SUMMARY_SKIPPED_REASON_UNSPECIFIED => 'SUMMARY_SKIPPED_REASON_UNSPECIFIED', - self::ADVERSARIAL_QUERY_IGNORED => 'ADVERSARIAL_QUERY_IGNORED', - self::NON_SUMMARY_SEEKING_QUERY_IGNORED => 'NON_SUMMARY_SEEKING_QUERY_IGNORED', - self::OUT_OF_DOMAIN_QUERY_IGNORED => 'OUT_OF_DOMAIN_QUERY_IGNORED', - self::POTENTIAL_POLICY_VIOLATION => 'POTENTIAL_POLICY_VIOLATION', - self::LLM_ADDON_NOT_ENABLED => 'LLM_ADDON_NOT_ENABLED', - self::NO_RELEVANT_CONTENT => 'NO_RELEVANT_CONTENT', - self::JAIL_BREAKING_QUERY_IGNORED => 'JAIL_BREAKING_QUERY_IGNORED', - self::CUSTOMER_POLICY_VIOLATION => 'CUSTOMER_POLICY_VIOLATION', - self::NON_SUMMARY_SEEKING_QUERY_IGNORED_V2 => 'NON_SUMMARY_SEEKING_QUERY_IGNORED_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(SummarySkippedReason::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Summary_SummarySkippedReason::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SummaryWithMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SummaryWithMetadata.php deleted file mode 100644 index 47a86d2d2bd2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchResponse/Summary/SummaryWithMetadata.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.discoveryengine.v1.SearchResponse.Summary.SummaryWithMetadata - */ -class SummaryWithMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Summary text with no citation information. - * - * Generated from protobuf field string summary = 1; - */ - protected $summary = ''; - /** - * Citation metadata for given summary. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationMetadata citation_metadata = 2; - */ - protected $citation_metadata = null; - /** - * Document References. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Reference references = 3; - */ - private $references; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $summary - * Summary text with no citation information. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\CitationMetadata $citation_metadata - * Citation metadata for given summary. - * @type array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\Reference>|\Google\Protobuf\Internal\RepeatedField $references - * Document References. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchService::initOnce(); - parent::__construct($data); - } - - /** - * Summary text with no citation information. - * - * Generated from protobuf field string summary = 1; - * @return string - */ - public function getSummary() - { - return $this->summary; - } - - /** - * Summary text with no citation information. - * - * Generated from protobuf field string summary = 1; - * @param string $var - * @return $this - */ - public function setSummary($var) - { - GPBUtil::checkString($var, True); - $this->summary = $var; - - return $this; - } - - /** - * Citation metadata for given summary. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationMetadata citation_metadata = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\CitationMetadata|null - */ - public function getCitationMetadata() - { - return $this->citation_metadata; - } - - public function hasCitationMetadata() - { - return isset($this->citation_metadata); - } - - public function clearCitationMetadata() - { - unset($this->citation_metadata); - } - - /** - * Citation metadata for given summary. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchResponse.Summary.CitationMetadata citation_metadata = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\CitationMetadata $var - * @return $this - */ - public function setCitationMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\CitationMetadata::class); - $this->citation_metadata = $var; - - return $this; - } - - /** - * Document References. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Reference references = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getReferences() - { - return $this->references; - } - - /** - * Document References. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.SearchResponse.Summary.Reference references = 3; - * @param array<\Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\Reference>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setReferences($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\SearchResponse\Summary\Reference::class); - $this->references = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SummaryWithMetadata::class, \Google\Cloud\DiscoveryEngine\V1\SearchResponse_Summary_SummaryWithMetadata::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchTier.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchTier.php deleted file mode 100644 index a64eb62c1a65..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchTier.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.discoveryengine.v1.SearchTier - */ -class SearchTier -{ - /** - * Default value when the enum is unspecified. This is invalid to use. - * - * Generated from protobuf enum SEARCH_TIER_UNSPECIFIED = 0; - */ - const SEARCH_TIER_UNSPECIFIED = 0; - /** - * Standard tier. - * - * Generated from protobuf enum SEARCH_TIER_STANDARD = 1; - */ - const SEARCH_TIER_STANDARD = 1; - /** - * Enterprise tier. - * - * Generated from protobuf enum SEARCH_TIER_ENTERPRISE = 2; - */ - const SEARCH_TIER_ENTERPRISE = 2; - - private static $valueToName = [ - self::SEARCH_TIER_UNSPECIFIED => 'SEARCH_TIER_UNSPECIFIED', - self::SEARCH_TIER_STANDARD => 'SEARCH_TIER_STANDARD', - self::SEARCH_TIER_ENTERPRISE => 'SEARCH_TIER_ENTERPRISE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchUseCase.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchUseCase.php deleted file mode 100644 index 0392f3a7d88a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SearchUseCase.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.discoveryengine.v1.SearchUseCase - */ -class SearchUseCase -{ - /** - * Value used when unset. Will not occur in CSS. - * - * Generated from protobuf enum SEARCH_USE_CASE_UNSPECIFIED = 0; - */ - const SEARCH_USE_CASE_UNSPECIFIED = 0; - /** - * Search use case. Expects the traffic has a non-empty - * [query][google.cloud.discoveryengine.v1.SearchRequest.query]. - * - * Generated from protobuf enum SEARCH_USE_CASE_SEARCH = 1; - */ - const SEARCH_USE_CASE_SEARCH = 1; - /** - * Browse use case. Expects the traffic has an empty - * [query][google.cloud.discoveryengine.v1.SearchRequest.query]. - * - * Generated from protobuf enum SEARCH_USE_CASE_BROWSE = 2; - */ - const SEARCH_USE_CASE_BROWSE = 2; - - private static $valueToName = [ - self::SEARCH_USE_CASE_UNSPECIFIED => 'SEARCH_USE_CASE_UNSPECIFIED', - self::SEARCH_USE_CASE_SEARCH => 'SEARCH_USE_CASE_SEARCH', - self::SEARCH_USE_CASE_BROWSE => 'SEARCH_USE_CASE_BROWSE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session.php deleted file mode 100644 index 293964b9117a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session.php +++ /dev/null @@ -1,261 +0,0 @@ -google.cloud.discoveryengine.v1.Session - */ -class Session extends \Google\Protobuf\Internal\Message -{ - /** - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - */ - protected $name = ''; - /** - * The state of the session. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session.State state = 2; - */ - protected $state = 0; - /** - * A unique identifier for tracking users. - * - * Generated from protobuf field string user_pseudo_id = 3; - */ - protected $user_pseudo_id = ''; - /** - * Turns. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Session.Turn turns = 4; - */ - private $turns; - /** - * Output only. The time the session started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $start_time = null; - /** - * Output only. The time the session finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*` - * @type int $state - * The state of the session. - * @type string $user_pseudo_id - * A unique identifier for tracking users. - * @type array<\Google\Cloud\DiscoveryEngine\V1\Session\Turn>|\Google\Protobuf\Internal\RepeatedField $turns - * Turns. - * @type \Google\Protobuf\Timestamp $start_time - * Output only. The time the session started. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the session finished. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Session::initOnce(); - parent::__construct($data); - } - - /** - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Immutable. Fully qualified name - * `projects/{project}/locations/global/collections/{collection}/engines/{engine}/sessions/*` - * - * 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 state of the session. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session.State state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of the session. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session.State state = 2; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\Session\State::class); - $this->state = $var; - - return $this; - } - - /** - * A unique identifier for tracking users. - * - * Generated from protobuf field string user_pseudo_id = 3; - * @return string - */ - public function getUserPseudoId() - { - return $this->user_pseudo_id; - } - - /** - * A unique identifier for tracking users. - * - * Generated from protobuf field string user_pseudo_id = 3; - * @param string $var - * @return $this - */ - public function setUserPseudoId($var) - { - GPBUtil::checkString($var, True); - $this->user_pseudo_id = $var; - - return $this; - } - - /** - * Turns. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Session.Turn turns = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTurns() - { - return $this->turns; - } - - /** - * Turns. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.Session.Turn turns = 4; - * @param array<\Google\Cloud\DiscoveryEngine\V1\Session\Turn>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTurns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\Session\Turn::class); - $this->turns = $arr; - - return $this; - } - - /** - * Output only. The time the session started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getStartTime() - { - return $this->start_time; - } - - public function hasStartTime() - { - return isset($this->start_time); - } - - public function clearStartTime() - { - unset($this->start_time); - } - - /** - * Output only. The time the session started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setStartTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->start_time = $var; - - return $this; - } - - /** - * Output only. The time the session finished. - * - * 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 time the session finished. - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session/State.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session/State.php deleted file mode 100644 index 16c3d5e3ead8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session/State.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.discoveryengine.v1.Session.State - */ -class State -{ - /** - * State is unspecified. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The session is currently open. - * - * Generated from protobuf enum IN_PROGRESS = 1; - */ - const IN_PROGRESS = 1; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::IN_PROGRESS => 'IN_PROGRESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DiscoveryEngine\V1\Session_State::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session/Turn.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session/Turn.php deleted file mode 100644 index 0920a0cf52dc..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/Session/Turn.php +++ /dev/null @@ -1,123 +0,0 @@ -google.cloud.discoveryengine.v1.Session.Turn - */ -class Turn extends \Google\Protobuf\Internal\Message -{ - /** - * The user query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Query query = 1; - */ - protected $query = null; - /** - * The resource name of the answer to the user query. - * Only set if the answer generation (/answer API call) happened in this - * turn. - * - * Generated from protobuf field string answer = 2 [(.google.api.resource_reference) = { - */ - protected $answer = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Query $query - * The user query. - * @type string $answer - * The resource name of the answer to the user query. - * Only set if the answer generation (/answer API call) happened in this - * turn. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Session::initOnce(); - parent::__construct($data); - } - - /** - * The user query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Query query = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\Query|null - */ - public function getQuery() - { - return $this->query; - } - - public function hasQuery() - { - return isset($this->query); - } - - public function clearQuery() - { - unset($this->query); - } - - /** - * The user query. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Query query = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\Query $var - * @return $this - */ - public function setQuery($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Query::class); - $this->query = $var; - - return $this; - } - - /** - * The resource name of the answer to the user query. - * Only set if the answer generation (/answer API call) happened in this - * turn. - * - * Generated from protobuf field string answer = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getAnswer() - { - return $this->answer; - } - - /** - * The resource name of the answer to the user query. - * Only set if the answer generation (/answer API call) happened in this - * turn. - * - * Generated from protobuf field string answer = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setAnswer($var) - { - GPBUtil::checkString($var, True); - $this->answer = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Turn::class, \Google\Cloud\DiscoveryEngine\V1\Session_Turn::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteSearchEngine.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteSearchEngine.php deleted file mode 100644 index 71115ba0a1b8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteSearchEngine.php +++ /dev/null @@ -1,72 +0,0 @@ -google.cloud.discoveryengine.v1.SiteSearchEngine - */ -class SiteSearchEngine extends \Google\Protobuf\Internal\Message -{ - /** - * The fully qualified resource name of the site search engine. - * Format: `projects/*/locations/*/dataStores/*/siteSearchEngine` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The fully qualified resource name of the site search engine. - * Format: `projects/*/locations/*/dataStores/*/siteSearchEngine` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngine::initOnce(); - parent::__construct($data); - } - - /** - * The fully qualified resource name of the site search engine. - * Format: `projects/*/locations/*/dataStores/*/siteSearchEngine` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The fully qualified resource name of the site search engine. - * Format: `projects/*/locations/*/dataStores/*/siteSearchEngine` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteVerificationInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteVerificationInfo.php deleted file mode 100644 index a4d12855c631..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteVerificationInfo.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.discoveryengine.v1.SiteVerificationInfo - */ -class SiteVerificationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Site verification state indicating the ownership and validity. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SiteVerificationInfo.SiteVerificationState site_verification_state = 1; - */ - protected $site_verification_state = 0; - /** - * Latest site verification time. - * - * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; - */ - protected $verify_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $site_verification_state - * Site verification state indicating the ownership and validity. - * @type \Google\Protobuf\Timestamp $verify_time - * Latest site verification time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngine::initOnce(); - parent::__construct($data); - } - - /** - * Site verification state indicating the ownership and validity. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SiteVerificationInfo.SiteVerificationState site_verification_state = 1; - * @return int - */ - public function getSiteVerificationState() - { - return $this->site_verification_state; - } - - /** - * Site verification state indicating the ownership and validity. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SiteVerificationInfo.SiteVerificationState site_verification_state = 1; - * @param int $var - * @return $this - */ - public function setSiteVerificationState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SiteVerificationInfo\SiteVerificationState::class); - $this->site_verification_state = $var; - - return $this; - } - - /** - * Latest site verification time. - * - * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getVerifyTime() - { - return $this->verify_time; - } - - public function hasVerifyTime() - { - return isset($this->verify_time); - } - - public function clearVerifyTime() - { - unset($this->verify_time); - } - - /** - * Latest site verification time. - * - * Generated from protobuf field .google.protobuf.Timestamp verify_time = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setVerifyTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->verify_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteVerificationInfo/SiteVerificationState.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteVerificationInfo/SiteVerificationState.php deleted file mode 100644 index 989da70cc659..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SiteVerificationInfo/SiteVerificationState.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.discoveryengine.v1.SiteVerificationInfo.SiteVerificationState - */ -class SiteVerificationState -{ - /** - * Defaults to VERIFIED. - * - * Generated from protobuf enum SITE_VERIFICATION_STATE_UNSPECIFIED = 0; - */ - const SITE_VERIFICATION_STATE_UNSPECIFIED = 0; - /** - * Site ownership verified. - * - * Generated from protobuf enum VERIFIED = 1; - */ - const VERIFIED = 1; - /** - * Site ownership pending verification or verification failed. - * - * Generated from protobuf enum UNVERIFIED = 2; - */ - const UNVERIFIED = 2; - /** - * Site exempt from verification, e.g., a public website that opens to all. - * - * Generated from protobuf enum EXEMPTED = 3; - */ - const EXEMPTED = 3; - - private static $valueToName = [ - self::SITE_VERIFICATION_STATE_UNSPECIFIED => 'SITE_VERIFICATION_STATE_UNSPECIFIED', - self::VERIFIED => 'VERIFIED', - self::UNVERIFIED => 'UNVERIFIED', - self::EXEMPTED => 'EXEMPTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SiteVerificationState::class, \Google\Cloud\DiscoveryEngine\V1\SiteVerificationInfo_SiteVerificationState::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SolutionType.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SolutionType.php deleted file mode 100644 index 73b4196e8511..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SolutionType.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.discoveryengine.v1.SolutionType - */ -class SolutionType -{ - /** - * Default value. - * - * Generated from protobuf enum SOLUTION_TYPE_UNSPECIFIED = 0; - */ - const SOLUTION_TYPE_UNSPECIFIED = 0; - /** - * Used for Recommendations AI. - * - * Generated from protobuf enum SOLUTION_TYPE_RECOMMENDATION = 1; - */ - const SOLUTION_TYPE_RECOMMENDATION = 1; - /** - * Used for Discovery Search. - * - * Generated from protobuf enum SOLUTION_TYPE_SEARCH = 2; - */ - const SOLUTION_TYPE_SEARCH = 2; - /** - * Used for use cases related to the Generative AI agent. - * - * Generated from protobuf enum SOLUTION_TYPE_CHAT = 3; - */ - const SOLUTION_TYPE_CHAT = 3; - /** - * Used for use cases related to the Generative Chat agent. - * It's used for Generative chat engine only, the associated data stores - * must enrolled with `SOLUTION_TYPE_CHAT` solution. - * - * Generated from protobuf enum SOLUTION_TYPE_GENERATIVE_CHAT = 4; - */ - const SOLUTION_TYPE_GENERATIVE_CHAT = 4; - - private static $valueToName = [ - self::SOLUTION_TYPE_UNSPECIFIED => 'SOLUTION_TYPE_UNSPECIFIED', - self::SOLUTION_TYPE_RECOMMENDATION => 'SOLUTION_TYPE_RECOMMENDATION', - self::SOLUTION_TYPE_SEARCH => 'SOLUTION_TYPE_SEARCH', - self::SOLUTION_TYPE_CHAT => 'SOLUTION_TYPE_CHAT', - self::SOLUTION_TYPE_GENERATIVE_CHAT => 'SOLUTION_TYPE_GENERATIVE_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); - } -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SpannerSource.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SpannerSource.php deleted file mode 100644 index 4eb930e5e033..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SpannerSource.php +++ /dev/null @@ -1,219 +0,0 @@ -google.cloud.discoveryengine.v1.SpannerSource - */ -class SpannerSource extends \Google\Protobuf\Internal\Message -{ - /** - * The project ID that contains the Spanner source. Has a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Required. The instance ID of the source Spanner table. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance_id = ''; - /** - * Required. The database ID of the source Spanner table. - * - * Generated from protobuf field string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_id = ''; - /** - * Required. The table name of the Spanner database that needs to be imported. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table_id = ''; - /** - * Whether to apply data boost on Spanner export. Enabling this option will - * incur additional cost. More info can be found - * [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas). - * - * Generated from protobuf field bool enable_data_boost = 5; - */ - protected $enable_data_boost = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The project ID that contains the Spanner source. Has a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * @type string $instance_id - * Required. The instance ID of the source Spanner table. - * @type string $database_id - * Required. The database ID of the source Spanner table. - * @type string $table_id - * Required. The table name of the Spanner database that needs to be imported. - * @type bool $enable_data_boost - * Whether to apply data boost on Spanner export. Enabling this option will - * incur additional cost. More info can be found - * [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ImportConfig::initOnce(); - parent::__construct($data); - } - - /** - * The project ID that contains the Spanner source. Has a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project ID that contains the Spanner source. Has a length limit of 128 - * characters. If not specified, inherits the project ID from the parent - * request. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The instance ID of the source Spanner table. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstanceId() - { - return $this->instance_id; - } - - /** - * Required. The instance ID of the source Spanner table. - * - * Generated from protobuf field string instance_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstanceId($var) - { - GPBUtil::checkString($var, True); - $this->instance_id = $var; - - return $this; - } - - /** - * Required. The database ID of the source Spanner table. - * - * Generated from protobuf field string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabaseId() - { - return $this->database_id; - } - - /** - * Required. The database ID of the source Spanner table. - * - * Generated from protobuf field string database_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabaseId($var) - { - GPBUtil::checkString($var, True); - $this->database_id = $var; - - return $this; - } - - /** - * Required. The table name of the Spanner database that needs to be imported. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Required. The table name of the Spanner database that needs to be imported. - * - * Generated from protobuf field string table_id = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * Whether to apply data boost on Spanner export. Enabling this option will - * incur additional cost. More info can be found - * [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas). - * - * Generated from protobuf field bool enable_data_boost = 5; - * @return bool - */ - public function getEnableDataBoost() - { - return $this->enable_data_boost; - } - - /** - * Whether to apply data boost on Spanner export. Enabling this option will - * incur additional cost. More info can be found - * [here](https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas). - * - * Generated from protobuf field bool enable_data_boost = 5; - * @param bool $var - * @return $this - */ - public function setEnableDataBoost($var) - { - GPBUtil::checkBool($var); - $this->enable_data_boost = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SuggestionDenyListEntry.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SuggestionDenyListEntry.php deleted file mode 100644 index 5857e88b1e8f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SuggestionDenyListEntry.php +++ /dev/null @@ -1,110 +0,0 @@ -google.cloud.discoveryengine.v1.SuggestionDenyListEntry - */ -class SuggestionDenyListEntry extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Phrase to block from suggestions served. Can be maximum 125 - * characters. - * - * Generated from protobuf field string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $block_phrase = ''; - /** - * Required. The match operator to apply for this phrase. Whether to block the - * exact phrase, or block any suggestions containing this phrase. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $match_operator = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $block_phrase - * Required. Phrase to block from suggestions served. Can be maximum 125 - * characters. - * @type int $match_operator - * Required. The match operator to apply for this phrase. Whether to block the - * exact phrase, or block any suggestions containing this phrase. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Completion::initOnce(); - parent::__construct($data); - } - - /** - * Required. Phrase to block from suggestions served. Can be maximum 125 - * characters. - * - * Generated from protobuf field string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBlockPhrase() - { - return $this->block_phrase; - } - - /** - * Required. Phrase to block from suggestions served. Can be maximum 125 - * characters. - * - * Generated from protobuf field string block_phrase = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBlockPhrase($var) - { - GPBUtil::checkString($var, True); - $this->block_phrase = $var; - - return $this; - } - - /** - * Required. The match operator to apply for this phrase. Whether to block the - * exact phrase, or block any suggestions containing this phrase. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMatchOperator() - { - return $this->match_operator; - } - - /** - * Required. The match operator to apply for this phrase. Whether to block the - * exact phrase, or block any suggestions containing this phrase. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SuggestionDenyListEntry.MatchOperator match_operator = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMatchOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\SuggestionDenyListEntry\MatchOperator::class); - $this->match_operator = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SuggestionDenyListEntry/MatchOperator.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SuggestionDenyListEntry/MatchOperator.php deleted file mode 100644 index 4c5fb34b9ad0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/SuggestionDenyListEntry/MatchOperator.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.discoveryengine.v1.SuggestionDenyListEntry.MatchOperator - */ -class MatchOperator -{ - /** - * Default value. Should not be used - * - * Generated from protobuf enum MATCH_OPERATOR_UNSPECIFIED = 0; - */ - const MATCH_OPERATOR_UNSPECIFIED = 0; - /** - * If the suggestion is an exact match to the block_phrase, then block it. - * - * Generated from protobuf enum EXACT_MATCH = 1; - */ - const EXACT_MATCH = 1; - /** - * If the suggestion contains the block_phrase, then block it. - * - * Generated from protobuf enum CONTAINS = 2; - */ - const CONTAINS = 2; - - private static $valueToName = [ - self::MATCH_OPERATOR_UNSPECIFIED => 'MATCH_OPERATOR_UNSPECIFIED', - self::EXACT_MATCH => 'EXACT_MATCH', - self::CONTAINS => 'CONTAINS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MatchOperator::class, \Google\Cloud\DiscoveryEngine\V1\SuggestionDenyListEntry_MatchOperator::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite.php deleted file mode 100644 index f6fcbb604bcf..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite.php +++ /dev/null @@ -1,439 +0,0 @@ -google.cloud.discoveryengine.v1.TargetSite - */ -class TargetSite extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The fully qualified resource name of the target site. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}` - * The `target_site_id` is system-generated. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Input only. The user provided URI pattern from which the - * `generated_uri_pattern` is generated. - * - * Generated from protobuf field string provided_uri_pattern = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $provided_uri_pattern = ''; - /** - * The type of the target site, e.g., whether the site is to be included or - * excluded. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.Type type = 3; - */ - protected $type = 0; - /** - * Input only. If set to false, a uri_pattern is generated to include all - * pages whose address contains the provided_uri_pattern. If set to true, an - * uri_pattern is generated to try to be an exact match of the - * provided_uri_pattern or just the specific page if the provided_uri_pattern - * is a specific one. provided_uri_pattern is always normalized to - * generate the URI pattern to be used by the search engine. - * - * Generated from protobuf field bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $exact_match = false; - /** - * Output only. This is system-generated based on the provided_uri_pattern. - * - * Generated from protobuf field string generated_uri_pattern = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $generated_uri_pattern = ''; - /** - * Output only. Root domain of the provided_uri_pattern. - * - * Generated from protobuf field string root_domain_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $root_domain_uri = ''; - /** - * Output only. Site ownership and validity verification status. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $site_verification_info = null; - /** - * Output only. Indexing status. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.IndexingStatus indexing_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $indexing_status = 0; - /** - * Output only. The target site's last updated time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. Failure reason. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $failure_reason = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The fully qualified resource name of the target site. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}` - * The `target_site_id` is system-generated. - * @type string $provided_uri_pattern - * Required. Input only. The user provided URI pattern from which the - * `generated_uri_pattern` is generated. - * @type int $type - * The type of the target site, e.g., whether the site is to be included or - * excluded. - * @type bool $exact_match - * Input only. If set to false, a uri_pattern is generated to include all - * pages whose address contains the provided_uri_pattern. If set to true, an - * uri_pattern is generated to try to be an exact match of the - * provided_uri_pattern or just the specific page if the provided_uri_pattern - * is a specific one. provided_uri_pattern is always normalized to - * generate the URI pattern to be used by the search engine. - * @type string $generated_uri_pattern - * Output only. This is system-generated based on the provided_uri_pattern. - * @type string $root_domain_uri - * Output only. Root domain of the provided_uri_pattern. - * @type \Google\Cloud\DiscoveryEngine\V1\SiteVerificationInfo $site_verification_info - * Output only. Site ownership and validity verification status. - * @type int $indexing_status - * Output only. Indexing status. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The target site's last updated time. - * @type \Google\Cloud\DiscoveryEngine\V1\TargetSite\FailureReason $failure_reason - * Output only. Failure reason. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngine::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The fully qualified resource name of the target site. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}` - * The `target_site_id` is system-generated. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The fully qualified resource name of the target site. - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}` - * The `target_site_id` is system-generated. - * - * 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. Input only. The user provided URI pattern from which the - * `generated_uri_pattern` is generated. - * - * Generated from protobuf field string provided_uri_pattern = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getProvidedUriPattern() - { - return $this->provided_uri_pattern; - } - - /** - * Required. Input only. The user provided URI pattern from which the - * `generated_uri_pattern` is generated. - * - * Generated from protobuf field string provided_uri_pattern = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setProvidedUriPattern($var) - { - GPBUtil::checkString($var, True); - $this->provided_uri_pattern = $var; - - return $this; - } - - /** - * The type of the target site, e.g., whether the site is to be included or - * excluded. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.Type type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of the target site, e.g., whether the site is to be included or - * excluded. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.Type type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\TargetSite\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Input only. If set to false, a uri_pattern is generated to include all - * pages whose address contains the provided_uri_pattern. If set to true, an - * uri_pattern is generated to try to be an exact match of the - * provided_uri_pattern or just the specific page if the provided_uri_pattern - * is a specific one. provided_uri_pattern is always normalized to - * generate the URI pattern to be used by the search engine. - * - * Generated from protobuf field bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return bool - */ - public function getExactMatch() - { - return $this->exact_match; - } - - /** - * Input only. If set to false, a uri_pattern is generated to include all - * pages whose address contains the provided_uri_pattern. If set to true, an - * uri_pattern is generated to try to be an exact match of the - * provided_uri_pattern or just the specific page if the provided_uri_pattern - * is a specific one. provided_uri_pattern is always normalized to - * generate the URI pattern to be used by the search engine. - * - * Generated from protobuf field bool exact_match = 6 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setExactMatch($var) - { - GPBUtil::checkBool($var); - $this->exact_match = $var; - - return $this; - } - - /** - * Output only. This is system-generated based on the provided_uri_pattern. - * - * Generated from protobuf field string generated_uri_pattern = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getGeneratedUriPattern() - { - return $this->generated_uri_pattern; - } - - /** - * Output only. This is system-generated based on the provided_uri_pattern. - * - * Generated from protobuf field string generated_uri_pattern = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setGeneratedUriPattern($var) - { - GPBUtil::checkString($var, True); - $this->generated_uri_pattern = $var; - - return $this; - } - - /** - * Output only. Root domain of the provided_uri_pattern. - * - * Generated from protobuf field string root_domain_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getRootDomainUri() - { - return $this->root_domain_uri; - } - - /** - * Output only. Root domain of the provided_uri_pattern. - * - * Generated from protobuf field string root_domain_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setRootDomainUri($var) - { - GPBUtil::checkString($var, True); - $this->root_domain_uri = $var; - - return $this; - } - - /** - * Output only. Site ownership and validity verification status. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\DiscoveryEngine\V1\SiteVerificationInfo|null - */ - public function getSiteVerificationInfo() - { - return $this->site_verification_info; - } - - public function hasSiteVerificationInfo() - { - return isset($this->site_verification_info); - } - - public function clearSiteVerificationInfo() - { - unset($this->site_verification_info); - } - - /** - * Output only. Site ownership and validity verification status. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SiteVerificationInfo site_verification_info = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\DiscoveryEngine\V1\SiteVerificationInfo $var - * @return $this - */ - public function setSiteVerificationInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SiteVerificationInfo::class); - $this->site_verification_info = $var; - - return $this; - } - - /** - * Output only. Indexing status. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.IndexingStatus indexing_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getIndexingStatus() - { - return $this->indexing_status; - } - - /** - * Output only. Indexing status. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.IndexingStatus indexing_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setIndexingStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\TargetSite\IndexingStatus::class); - $this->indexing_status = $var; - - return $this; - } - - /** - * Output only. The target site's last updated time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The target site's last updated time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Output only. Failure reason. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\DiscoveryEngine\V1\TargetSite\FailureReason|null - */ - public function getFailureReason() - { - return $this->failure_reason; - } - - public function hasFailureReason() - { - return isset($this->failure_reason); - } - - public function clearFailureReason() - { - unset($this->failure_reason); - } - - /** - * Output only. Failure reason. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.FailureReason failure_reason = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\DiscoveryEngine\V1\TargetSite\FailureReason $var - * @return $this - */ - public function setFailureReason($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\TargetSite\FailureReason::class); - $this->failure_reason = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/FailureReason.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/FailureReason.php deleted file mode 100644 index cee49a88fb33..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/FailureReason.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.discoveryengine.v1.TargetSite.FailureReason - */ -class FailureReason extends \Google\Protobuf\Internal\Message -{ - protected $failure; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\TargetSite\FailureReason\QuotaFailure $quota_failure - * Failed due to insufficient quota. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngine::initOnce(); - parent::__construct($data); - } - - /** - * Failed due to insufficient quota. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.FailureReason.QuotaFailure quota_failure = 1; - * @return \Google\Cloud\DiscoveryEngine\V1\TargetSite\FailureReason\QuotaFailure|null - */ - public function getQuotaFailure() - { - return $this->readOneof(1); - } - - public function hasQuotaFailure() - { - return $this->hasOneof(1); - } - - /** - * Failed due to insufficient quota. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite.FailureReason.QuotaFailure quota_failure = 1; - * @param \Google\Cloud\DiscoveryEngine\V1\TargetSite\FailureReason\QuotaFailure $var - * @return $this - */ - public function setQuotaFailure($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\TargetSite\FailureReason\QuotaFailure::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getFailure() - { - return $this->whichOneof("failure"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FailureReason::class, \Google\Cloud\DiscoveryEngine\V1\TargetSite_FailureReason::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/FailureReason/QuotaFailure.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/FailureReason/QuotaFailure.php deleted file mode 100644 index 8c0b6e35b90c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/FailureReason/QuotaFailure.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.discoveryengine.v1.TargetSite.FailureReason.QuotaFailure - */ -class QuotaFailure extends \Google\Protobuf\Internal\Message -{ - /** - * This number is an estimation on how much total quota this project needs - * to successfully complete indexing. - * - * Generated from protobuf field int64 total_required_quota = 1; - */ - protected $total_required_quota = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $total_required_quota - * This number is an estimation on how much total quota this project needs - * to successfully complete indexing. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngine::initOnce(); - parent::__construct($data); - } - - /** - * This number is an estimation on how much total quota this project needs - * to successfully complete indexing. - * - * Generated from protobuf field int64 total_required_quota = 1; - * @return int|string - */ - public function getTotalRequiredQuota() - { - return $this->total_required_quota; - } - - /** - * This number is an estimation on how much total quota this project needs - * to successfully complete indexing. - * - * Generated from protobuf field int64 total_required_quota = 1; - * @param int|string $var - * @return $this - */ - public function setTotalRequiredQuota($var) - { - GPBUtil::checkInt64($var); - $this->total_required_quota = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QuotaFailure::class, \Google\Cloud\DiscoveryEngine\V1\TargetSite_FailureReason_QuotaFailure::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/IndexingStatus.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/IndexingStatus.php deleted file mode 100644 index 2810f37bfecd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/IndexingStatus.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.discoveryengine.v1.TargetSite.IndexingStatus - */ -class IndexingStatus -{ - /** - * Defaults to SUCCEEDED. - * - * Generated from protobuf enum INDEXING_STATUS_UNSPECIFIED = 0; - */ - const INDEXING_STATUS_UNSPECIFIED = 0; - /** - * The target site is in the update queue and will be picked up by indexing - * pipeline. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The target site fails to be indexed. - * - * Generated from protobuf enum FAILED = 2; - */ - const FAILED = 2; - /** - * The target site has been indexed. - * - * Generated from protobuf enum SUCCEEDED = 3; - */ - const SUCCEEDED = 3; - /** - * The previously indexed target site has been marked to be deleted. This is - * a transitioning state which will resulted in either: - * 1. target site deleted if unindexing is successful; - * 2. state reverts to SUCCEEDED if the unindexing fails. - * - * Generated from protobuf enum DELETING = 4; - */ - const DELETING = 4; - - private static $valueToName = [ - self::INDEXING_STATUS_UNSPECIFIED => 'INDEXING_STATUS_UNSPECIFIED', - self::PENDING => 'PENDING', - self::FAILED => 'FAILED', - self::SUCCEEDED => 'SUCCEEDED', - 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(IndexingStatus::class, \Google\Cloud\DiscoveryEngine\V1\TargetSite_IndexingStatus::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/Type.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/Type.php deleted file mode 100644 index df62a2e06d0d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TargetSite/Type.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.discoveryengine.v1.TargetSite.Type - */ -class Type -{ - /** - * This value is unused. In this case, server behavior defaults to - * [Type.INCLUDE][google.cloud.discoveryengine.v1.TargetSite.Type.INCLUDE]. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Include the target site. - * - * Generated from protobuf enum INCLUDE = 1; - */ - const PBINCLUDE = 1; - /** - * Exclude the target site. - * - * Generated from protobuf enum EXCLUDE = 2; - */ - const EXCLUDE = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::PBINCLUDE => 'INCLUDE', - self::EXCLUDE => 'EXCLUDE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - $pbconst = __CLASS__. '::PB' . strtoupper($name); - if (!defined($pbconst)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($pbconst); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Type::class, \Google\Cloud\DiscoveryEngine\V1\TargetSite_Type::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TextInput.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TextInput.php deleted file mode 100644 index 645755b1ba2c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TextInput.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.discoveryengine.v1.TextInput - */ -class TextInput extends \Google\Protobuf\Internal\Message -{ - /** - * Text input. - * - * Generated from protobuf field string input = 1; - */ - protected $input = ''; - /** - * Conversation context of the input. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ConversationContext context = 2; - */ - protected $context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $input - * Text input. - * @type \Google\Cloud\DiscoveryEngine\V1\ConversationContext $context - * Conversation context of the input. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Conversation::initOnce(); - parent::__construct($data); - } - - /** - * Text input. - * - * Generated from protobuf field string input = 1; - * @return string - */ - public function getInput() - { - return $this->input; - } - - /** - * Text input. - * - * Generated from protobuf field string input = 1; - * @param string $var - * @return $this - */ - public function setInput($var) - { - GPBUtil::checkString($var, True); - $this->input = $var; - - return $this; - } - - /** - * Conversation context of the input. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ConversationContext context = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\ConversationContext|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * Conversation context of the input. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ConversationContext context = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\ConversationContext $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ConversationContext::class); - $this->context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelMetadata.php deleted file mode 100644 index 9ab93de14666..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelMetadata.php +++ /dev/null @@ -1,126 +0,0 @@ -google.cloud.discoveryengine.v1.TrainCustomModelMetadata - */ -class TrainCustomModelMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchTuningService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelRequest.php deleted file mode 100644 index 75c163d2d6ac..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelRequest.php +++ /dev/null @@ -1,239 +0,0 @@ -google.cloud.discoveryengine.v1.TrainCustomModelRequest - */ -class TrainCustomModelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Data Store, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * This field is used to identify the data store where to train the models. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $data_store = ''; - /** - * Model to be trained. Supported values are: - * * **search-tuning**: Fine tuning the search system based on data provided. - * - * Generated from protobuf field string model_type = 3; - */ - protected $model_type = ''; - /** - * The desired location of errors incurred during the data ingestion and - * training. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 4; - */ - protected $error_config = null; - /** - * If not provided, a UUID will be generated. - * - * Generated from protobuf field string model_id = 5; - */ - protected $model_id = ''; - protected $training_input; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\TrainCustomModelRequest\GcsTrainingInput $gcs_training_input - * Cloud Storage training input. - * @type string $data_store - * Required. The resource name of the Data Store, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * This field is used to identify the data store where to train the models. - * @type string $model_type - * Model to be trained. Supported values are: - * * **search-tuning**: Fine tuning the search system based on data provided. - * @type \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $error_config - * The desired location of errors incurred during the data ingestion and - * training. - * @type string $model_id - * If not provided, a UUID will be generated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchTuningService::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Storage training input. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\TrainCustomModelRequest\GcsTrainingInput|null - */ - public function getGcsTrainingInput() - { - return $this->readOneof(2); - } - - public function hasGcsTrainingInput() - { - return $this->hasOneof(2); - } - - /** - * Cloud Storage training input. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TrainCustomModelRequest.GcsTrainingInput gcs_training_input = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\TrainCustomModelRequest\GcsTrainingInput $var - * @return $this - */ - public function setGcsTrainingInput($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\TrainCustomModelRequest\GcsTrainingInput::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Required. The resource name of the Data Store, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * This field is used to identify the data store where to train the models. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDataStore() - { - return $this->data_store; - } - - /** - * Required. The resource name of the Data Store, such as - * `projects/*/locations/global/collections/default_collection/dataStores/default_data_store`. - * This field is used to identify the data store where to train the models. - * - * Generated from protobuf field string data_store = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDataStore($var) - { - GPBUtil::checkString($var, True); - $this->data_store = $var; - - return $this; - } - - /** - * Model to be trained. Supported values are: - * * **search-tuning**: Fine tuning the search system based on data provided. - * - * Generated from protobuf field string model_type = 3; - * @return string - */ - public function getModelType() - { - return $this->model_type; - } - - /** - * Model to be trained. Supported values are: - * * **search-tuning**: Fine tuning the search system based on data provided. - * - * Generated from protobuf field string model_type = 3; - * @param string $var - * @return $this - */ - public function setModelType($var) - { - GPBUtil::checkString($var, True); - $this->model_type = $var; - - return $this; - } - - /** - * The desired location of errors incurred during the data ingestion and - * training. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig|null - */ - public function getErrorConfig() - { - return $this->error_config; - } - - public function hasErrorConfig() - { - return isset($this->error_config); - } - - public function clearErrorConfig() - { - unset($this->error_config); - } - - /** - * The desired location of errors incurred during the data ingestion and - * training. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $var - * @return $this - */ - public function setErrorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig::class); - $this->error_config = $var; - - return $this; - } - - /** - * If not provided, a UUID will be generated. - * - * Generated from protobuf field string model_id = 5; - * @return string - */ - public function getModelId() - { - return $this->model_id; - } - - /** - * If not provided, a UUID will be generated. - * - * Generated from protobuf field string model_id = 5; - * @param string $var - * @return $this - */ - public function setModelId($var) - { - GPBUtil::checkString($var, True); - $this->model_id = $var; - - return $this; - } - - /** - * @return string - */ - public function getTrainingInput() - { - return $this->whichOneof("training_input"); - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelRequest/GcsTrainingInput.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelRequest/GcsTrainingInput.php deleted file mode 100644 index 2a3dd5248dad..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelRequest/GcsTrainingInput.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.discoveryengine.v1.TrainCustomModelRequest.GcsTrainingInput - */ -class GcsTrainingInput extends \Google\Protobuf\Internal\Message -{ - /** - * The Cloud Storage corpus data which could be associated in train data. - * The data path format is `gs:///`. - * A newline delimited jsonl/ndjson file. - * For search-tuning model, each line should have the _id, title - * and text. Example: - * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}` - * - * Generated from protobuf field string corpus_data_path = 1; - */ - protected $corpus_data_path = ''; - /** - * The gcs query data which could be associated in train data. - * The data path format is `gs:///`. - * A newline delimited jsonl/ndjson file. - * For search-tuning model, each line should have the _id - * and text. Example: {"_id": "query1", "text": "example query"} - * - * Generated from protobuf field string query_data_path = 2; - */ - protected $query_data_path = ''; - /** - * Cloud Storage training data path whose format should be - * `gs:///`. The file should be in tsv - * format. Each line should have the doc_id and query_id and score (number). - * For search-tuning model, it should have the query-id corpus-id - * score as tsv file header. The score should be a number in `[0, inf+)`. - * The larger the number is, the more relevant the pair is. Example: - * * `query-id\tcorpus-id\tscore` - * * `query1\tdoc1\t1` - * - * Generated from protobuf field string train_data_path = 3; - */ - protected $train_data_path = ''; - /** - * Cloud Storage test data. Same format as train_data_path. If not provided, - * a random 80/20 train/test split will be performed on train_data_path. - * - * Generated from protobuf field string test_data_path = 4; - */ - protected $test_data_path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $corpus_data_path - * The Cloud Storage corpus data which could be associated in train data. - * The data path format is `gs:///`. - * A newline delimited jsonl/ndjson file. - * For search-tuning model, each line should have the _id, title - * and text. Example: - * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}` - * @type string $query_data_path - * The gcs query data which could be associated in train data. - * The data path format is `gs:///`. - * A newline delimited jsonl/ndjson file. - * For search-tuning model, each line should have the _id - * and text. Example: {"_id": "query1", "text": "example query"} - * @type string $train_data_path - * Cloud Storage training data path whose format should be - * `gs:///`. The file should be in tsv - * format. Each line should have the doc_id and query_id and score (number). - * For search-tuning model, it should have the query-id corpus-id - * score as tsv file header. The score should be a number in `[0, inf+)`. - * The larger the number is, the more relevant the pair is. Example: - * * `query-id\tcorpus-id\tscore` - * * `query1\tdoc1\t1` - * @type string $test_data_path - * Cloud Storage test data. Same format as train_data_path. If not provided, - * a random 80/20 train/test split will be performed on train_data_path. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchTuningService::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Storage corpus data which could be associated in train data. - * The data path format is `gs:///`. - * A newline delimited jsonl/ndjson file. - * For search-tuning model, each line should have the _id, title - * and text. Example: - * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}` - * - * Generated from protobuf field string corpus_data_path = 1; - * @return string - */ - public function getCorpusDataPath() - { - return $this->corpus_data_path; - } - - /** - * The Cloud Storage corpus data which could be associated in train data. - * The data path format is `gs:///`. - * A newline delimited jsonl/ndjson file. - * For search-tuning model, each line should have the _id, title - * and text. Example: - * `{"_id": "doc1", title: "relevant doc", "text": "relevant text"}` - * - * Generated from protobuf field string corpus_data_path = 1; - * @param string $var - * @return $this - */ - public function setCorpusDataPath($var) - { - GPBUtil::checkString($var, True); - $this->corpus_data_path = $var; - - return $this; - } - - /** - * The gcs query data which could be associated in train data. - * The data path format is `gs:///`. - * A newline delimited jsonl/ndjson file. - * For search-tuning model, each line should have the _id - * and text. Example: {"_id": "query1", "text": "example query"} - * - * Generated from protobuf field string query_data_path = 2; - * @return string - */ - public function getQueryDataPath() - { - return $this->query_data_path; - } - - /** - * The gcs query data which could be associated in train data. - * The data path format is `gs:///`. - * A newline delimited jsonl/ndjson file. - * For search-tuning model, each line should have the _id - * and text. Example: {"_id": "query1", "text": "example query"} - * - * Generated from protobuf field string query_data_path = 2; - * @param string $var - * @return $this - */ - public function setQueryDataPath($var) - { - GPBUtil::checkString($var, True); - $this->query_data_path = $var; - - return $this; - } - - /** - * Cloud Storage training data path whose format should be - * `gs:///`. The file should be in tsv - * format. Each line should have the doc_id and query_id and score (number). - * For search-tuning model, it should have the query-id corpus-id - * score as tsv file header. The score should be a number in `[0, inf+)`. - * The larger the number is, the more relevant the pair is. Example: - * * `query-id\tcorpus-id\tscore` - * * `query1\tdoc1\t1` - * - * Generated from protobuf field string train_data_path = 3; - * @return string - */ - public function getTrainDataPath() - { - return $this->train_data_path; - } - - /** - * Cloud Storage training data path whose format should be - * `gs:///`. The file should be in tsv - * format. Each line should have the doc_id and query_id and score (number). - * For search-tuning model, it should have the query-id corpus-id - * score as tsv file header. The score should be a number in `[0, inf+)`. - * The larger the number is, the more relevant the pair is. Example: - * * `query-id\tcorpus-id\tscore` - * * `query1\tdoc1\t1` - * - * Generated from protobuf field string train_data_path = 3; - * @param string $var - * @return $this - */ - public function setTrainDataPath($var) - { - GPBUtil::checkString($var, True); - $this->train_data_path = $var; - - return $this; - } - - /** - * Cloud Storage test data. Same format as train_data_path. If not provided, - * a random 80/20 train/test split will be performed on train_data_path. - * - * Generated from protobuf field string test_data_path = 4; - * @return string - */ - public function getTestDataPath() - { - return $this->test_data_path; - } - - /** - * Cloud Storage test data. Same format as train_data_path. If not provided, - * a random 80/20 train/test split will be performed on train_data_path. - * - * Generated from protobuf field string test_data_path = 4; - * @param string $var - * @return $this - */ - public function setTestDataPath($var) - { - GPBUtil::checkString($var, True); - $this->test_data_path = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GcsTrainingInput::class, \Google\Cloud\DiscoveryEngine\V1\TrainCustomModelRequest_GcsTrainingInput::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelResponse.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelResponse.php deleted file mode 100644 index ac1857f1039e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TrainCustomModelResponse.php +++ /dev/null @@ -1,243 +0,0 @@ -google.cloud.discoveryengine.v1.TrainCustomModelResponse - */ -class TrainCustomModelResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A sample of errors encountered while processing the data. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - */ - private $error_samples; - /** - * Echoes the destination for the complete errors in the request if set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - */ - protected $error_config = null; - /** - * The trained model status. Possible values are: - * * **bad-data**: The training data quality is bad. - * * **no-improvement**: Tuning didn't improve performance. Won't deploy. - * * **in-progress**: Model training job creation is in progress. - * * **training**: Model is actively training. - * * **evaluating**: The model is evaluating trained metrics. - * * **indexing**: The model trained metrics are indexing. - * * **ready**: The model is ready for serving. - * - * Generated from protobuf field string model_status = 3; - */ - protected $model_status = ''; - /** - * The metrics of the trained model. - * - * Generated from protobuf field map metrics = 4; - */ - private $metrics; - /** - * Fully qualified name of the CustomTuningModel. - * - * Generated from protobuf field string model_name = 5; - */ - protected $model_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $error_samples - * A sample of errors encountered while processing the data. - * @type \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $error_config - * Echoes the destination for the complete errors in the request if set. - * @type string $model_status - * The trained model status. Possible values are: - * * **bad-data**: The training data quality is bad. - * * **no-improvement**: Tuning didn't improve performance. Won't deploy. - * * **in-progress**: Model training job creation is in progress. - * * **training**: Model is actively training. - * * **evaluating**: The model is evaluating trained metrics. - * * **indexing**: The model trained metrics are indexing. - * * **ready**: The model is ready for serving. - * @type array|\Google\Protobuf\Internal\MapField $metrics - * The metrics of the trained model. - * @type string $model_name - * Fully qualified name of the CustomTuningModel. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SearchTuningService::initOnce(); - parent::__construct($data); - } - - /** - * A sample of errors encountered while processing the data. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorSamples() - { - return $this->error_samples; - } - - /** - * A sample of errors encountered while processing the data. - * - * Generated from protobuf field repeated .google.rpc.Status error_samples = 1; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorSamples($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->error_samples = $arr; - - return $this; - } - - /** - * Echoes the destination for the complete errors in the request if set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * @return \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig|null - */ - public function getErrorConfig() - { - return $this->error_config; - } - - public function hasErrorConfig() - { - return isset($this->error_config); - } - - public function clearErrorConfig() - { - unset($this->error_config); - } - - /** - * Echoes the destination for the complete errors in the request if set. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.ImportErrorConfig error_config = 2; - * @param \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig $var - * @return $this - */ - public function setErrorConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\ImportErrorConfig::class); - $this->error_config = $var; - - return $this; - } - - /** - * The trained model status. Possible values are: - * * **bad-data**: The training data quality is bad. - * * **no-improvement**: Tuning didn't improve performance. Won't deploy. - * * **in-progress**: Model training job creation is in progress. - * * **training**: Model is actively training. - * * **evaluating**: The model is evaluating trained metrics. - * * **indexing**: The model trained metrics are indexing. - * * **ready**: The model is ready for serving. - * - * Generated from protobuf field string model_status = 3; - * @return string - */ - public function getModelStatus() - { - return $this->model_status; - } - - /** - * The trained model status. Possible values are: - * * **bad-data**: The training data quality is bad. - * * **no-improvement**: Tuning didn't improve performance. Won't deploy. - * * **in-progress**: Model training job creation is in progress. - * * **training**: Model is actively training. - * * **evaluating**: The model is evaluating trained metrics. - * * **indexing**: The model trained metrics are indexing. - * * **ready**: The model is ready for serving. - * - * Generated from protobuf field string model_status = 3; - * @param string $var - * @return $this - */ - public function setModelStatus($var) - { - GPBUtil::checkString($var, True); - $this->model_status = $var; - - return $this; - } - - /** - * The metrics of the trained model. - * - * Generated from protobuf field map metrics = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getMetrics() - { - return $this->metrics; - } - - /** - * The metrics of the trained model. - * - * Generated from protobuf field map metrics = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setMetrics($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::DOUBLE); - $this->metrics = $arr; - - return $this; - } - - /** - * Fully qualified name of the CustomTuningModel. - * - * Generated from protobuf field string model_name = 5; - * @return string - */ - public function getModelName() - { - return $this->model_name; - } - - /** - * Fully qualified name of the CustomTuningModel. - * - * Generated from protobuf field string model_name = 5; - * @param string $var - * @return $this - */ - public function setModelName($var) - { - GPBUtil::checkString($var, True); - $this->model_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TransactionInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TransactionInfo.php deleted file mode 100644 index e4308487b3e6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/TransactionInfo.php +++ /dev/null @@ -1,369 +0,0 @@ -google.cloud.discoveryengine.v1.TransactionInfo - */ -class TransactionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Total non-zero value associated with the transaction. This value - * may include shipping, tax, or other adjustments to the total value that you - * want to include. - * - * Generated from protobuf field optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = null; - /** - * Required. Currency code. Use three-character ISO-4217 code. - * - * Generated from protobuf field string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $currency = ''; - /** - * The transaction ID with a length limit of 128 characters. - * - * Generated from protobuf field string transaction_id = 3; - */ - protected $transaction_id = ''; - /** - * All the taxes associated with the transaction. - * - * Generated from protobuf field optional float tax = 4; - */ - protected $tax = null; - /** - * All the costs associated with the products. These can be manufacturing - * costs, shipping expenses not borne by the end user, or any other costs, - * such that: - * * Profit = [value][google.cloud.discoveryengine.v1.TransactionInfo.value] - - * [tax][google.cloud.discoveryengine.v1.TransactionInfo.tax] - - * [cost][google.cloud.discoveryengine.v1.TransactionInfo.cost] - * - * Generated from protobuf field optional float cost = 5; - */ - protected $cost = null; - /** - * The total discount(s) value applied to this transaction. - * This figure should be excluded from - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * For example, if a user paid - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * amount, then nominal (pre-discount) value of the transaction is the sum of - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * and - * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1.TransactionInfo.discount_value] - * This means that profit is calculated the same way, regardless of the - * discount value, and that - * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1.TransactionInfo.discount_value] - * can be larger than - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value]: - * * Profit = [value][google.cloud.discoveryengine.v1.TransactionInfo.value] - - * [tax][google.cloud.discoveryengine.v1.TransactionInfo.tax] - - * [cost][google.cloud.discoveryengine.v1.TransactionInfo.cost] - * - * Generated from protobuf field optional float discount_value = 6; - */ - protected $discount_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $value - * Required. Total non-zero value associated with the transaction. This value - * may include shipping, tax, or other adjustments to the total value that you - * want to include. - * @type string $currency - * Required. Currency code. Use three-character ISO-4217 code. - * @type string $transaction_id - * The transaction ID with a length limit of 128 characters. - * @type float $tax - * All the taxes associated with the transaction. - * @type float $cost - * All the costs associated with the products. These can be manufacturing - * costs, shipping expenses not borne by the end user, or any other costs, - * such that: - * * Profit = [value][google.cloud.discoveryengine.v1.TransactionInfo.value] - - * [tax][google.cloud.discoveryengine.v1.TransactionInfo.tax] - - * [cost][google.cloud.discoveryengine.v1.TransactionInfo.cost] - * @type float $discount_value - * The total discount(s) value applied to this transaction. - * This figure should be excluded from - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * For example, if a user paid - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * amount, then nominal (pre-discount) value of the transaction is the sum of - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * and - * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1.TransactionInfo.discount_value] - * This means that profit is calculated the same way, regardless of the - * discount value, and that - * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1.TransactionInfo.discount_value] - * can be larger than - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value]: - * * Profit = [value][google.cloud.discoveryengine.v1.TransactionInfo.value] - - * [tax][google.cloud.discoveryengine.v1.TransactionInfo.tax] - - * [cost][google.cloud.discoveryengine.v1.TransactionInfo.cost] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\UserEvent::initOnce(); - parent::__construct($data); - } - - /** - * Required. Total non-zero value associated with the transaction. This value - * may include shipping, tax, or other adjustments to the total value that you - * want to include. - * - * Generated from protobuf field optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return float - */ - public function getValue() - { - return isset($this->value) ? $this->value : 0.0; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Required. Total non-zero value associated with the transaction. This value - * may include shipping, tax, or other adjustments to the total value that you - * want to include. - * - * Generated from protobuf field optional float value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param float $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkFloat($var); - $this->value = $var; - - return $this; - } - - /** - * Required. Currency code. Use three-character ISO-4217 code. - * - * Generated from protobuf field string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCurrency() - { - return $this->currency; - } - - /** - * Required. Currency code. Use three-character ISO-4217 code. - * - * Generated from protobuf field string currency = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCurrency($var) - { - GPBUtil::checkString($var, True); - $this->currency = $var; - - return $this; - } - - /** - * The transaction ID with a length limit of 128 characters. - * - * Generated from protobuf field string transaction_id = 3; - * @return string - */ - public function getTransactionId() - { - return $this->transaction_id; - } - - /** - * The transaction ID with a length limit of 128 characters. - * - * Generated from protobuf field string transaction_id = 3; - * @param string $var - * @return $this - */ - public function setTransactionId($var) - { - GPBUtil::checkString($var, True); - $this->transaction_id = $var; - - return $this; - } - - /** - * All the taxes associated with the transaction. - * - * Generated from protobuf field optional float tax = 4; - * @return float - */ - public function getTax() - { - return isset($this->tax) ? $this->tax : 0.0; - } - - public function hasTax() - { - return isset($this->tax); - } - - public function clearTax() - { - unset($this->tax); - } - - /** - * All the taxes associated with the transaction. - * - * Generated from protobuf field optional float tax = 4; - * @param float $var - * @return $this - */ - public function setTax($var) - { - GPBUtil::checkFloat($var); - $this->tax = $var; - - return $this; - } - - /** - * All the costs associated with the products. These can be manufacturing - * costs, shipping expenses not borne by the end user, or any other costs, - * such that: - * * Profit = [value][google.cloud.discoveryengine.v1.TransactionInfo.value] - - * [tax][google.cloud.discoveryengine.v1.TransactionInfo.tax] - - * [cost][google.cloud.discoveryengine.v1.TransactionInfo.cost] - * - * Generated from protobuf field optional float cost = 5; - * @return float - */ - public function getCost() - { - return isset($this->cost) ? $this->cost : 0.0; - } - - public function hasCost() - { - return isset($this->cost); - } - - public function clearCost() - { - unset($this->cost); - } - - /** - * All the costs associated with the products. These can be manufacturing - * costs, shipping expenses not borne by the end user, or any other costs, - * such that: - * * Profit = [value][google.cloud.discoveryengine.v1.TransactionInfo.value] - - * [tax][google.cloud.discoveryengine.v1.TransactionInfo.tax] - - * [cost][google.cloud.discoveryengine.v1.TransactionInfo.cost] - * - * Generated from protobuf field optional float cost = 5; - * @param float $var - * @return $this - */ - public function setCost($var) - { - GPBUtil::checkFloat($var); - $this->cost = $var; - - return $this; - } - - /** - * The total discount(s) value applied to this transaction. - * This figure should be excluded from - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * For example, if a user paid - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * amount, then nominal (pre-discount) value of the transaction is the sum of - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * and - * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1.TransactionInfo.discount_value] - * This means that profit is calculated the same way, regardless of the - * discount value, and that - * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1.TransactionInfo.discount_value] - * can be larger than - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value]: - * * Profit = [value][google.cloud.discoveryengine.v1.TransactionInfo.value] - - * [tax][google.cloud.discoveryengine.v1.TransactionInfo.tax] - - * [cost][google.cloud.discoveryengine.v1.TransactionInfo.cost] - * - * Generated from protobuf field optional float discount_value = 6; - * @return float - */ - public function getDiscountValue() - { - return isset($this->discount_value) ? $this->discount_value : 0.0; - } - - public function hasDiscountValue() - { - return isset($this->discount_value); - } - - public function clearDiscountValue() - { - unset($this->discount_value); - } - - /** - * The total discount(s) value applied to this transaction. - * This figure should be excluded from - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * For example, if a user paid - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * amount, then nominal (pre-discount) value of the transaction is the sum of - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value] - * and - * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1.TransactionInfo.discount_value] - * This means that profit is calculated the same way, regardless of the - * discount value, and that - * [TransactionInfo.discount_value][google.cloud.discoveryengine.v1.TransactionInfo.discount_value] - * can be larger than - * [TransactionInfo.value][google.cloud.discoveryengine.v1.TransactionInfo.value]: - * * Profit = [value][google.cloud.discoveryengine.v1.TransactionInfo.value] - - * [tax][google.cloud.discoveryengine.v1.TransactionInfo.tax] - - * [cost][google.cloud.discoveryengine.v1.TransactionInfo.cost] - * - * Generated from protobuf field optional float discount_value = 6; - * @param float $var - * @return $this - */ - public function setDiscountValue($var) - { - GPBUtil::checkFloat($var); - $this->discount_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateControlRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateControlRequest.php deleted file mode 100644 index 52b645c0a237..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateControlRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.discoveryengine.v1.UpdateControlRequest - */ -class UpdateControlRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Control to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control control = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $control = null; - /** - * Optional. Indicates which fields in the provided - * [Control][google.cloud.discoveryengine.v1.Control] to update. The following - * are NOT supported: - * * [Control.name][google.cloud.discoveryengine.v1.Control.name] - * * [Control.solution_type][google.cloud.discoveryengine.v1.Control.solution_type] - * If not set or empty, all supported fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\DiscoveryEngine\V1\Control $control Required. The Control to update. - * @param \Google\Protobuf\FieldMask $updateMask Optional. Indicates which fields in the provided - * [Control][google.cloud.discoveryengine.v1.Control] to update. The following - * are NOT supported: - * - * * [Control.name][google.cloud.discoveryengine.v1.Control.name] - * * [Control.solution_type][google.cloud.discoveryengine.v1.Control.solution_type] - * - * If not set or empty, all supported fields are updated. - * - * @return \Google\Cloud\DiscoveryEngine\V1\UpdateControlRequest - * - * @experimental - */ - public static function build(\Google\Cloud\DiscoveryEngine\V1\Control $control, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setControl($control) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Control $control - * Required. The Control to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Indicates which fields in the provided - * [Control][google.cloud.discoveryengine.v1.Control] to update. The following - * are NOT supported: - * * [Control.name][google.cloud.discoveryengine.v1.Control.name] - * * [Control.solution_type][google.cloud.discoveryengine.v1.Control.solution_type] - * If not set or empty, all supported fields are updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ControlService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Control to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control control = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Control|null - */ - public function getControl() - { - return $this->control; - } - - public function hasControl() - { - return isset($this->control); - } - - public function clearControl() - { - unset($this->control); - } - - /** - * Required. The Control to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Control control = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Control $var - * @return $this - */ - public function setControl($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Control::class); - $this->control = $var; - - return $this; - } - - /** - * Optional. Indicates which fields in the provided - * [Control][google.cloud.discoveryengine.v1.Control] to update. The following - * are NOT supported: - * * [Control.name][google.cloud.discoveryengine.v1.Control.name] - * * [Control.solution_type][google.cloud.discoveryengine.v1.Control.solution_type] - * If not set or empty, all supported fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. Indicates which fields in the provided - * [Control][google.cloud.discoveryengine.v1.Control] to update. The following - * are NOT supported: - * * [Control.name][google.cloud.discoveryengine.v1.Control.name] - * * [Control.solution_type][google.cloud.discoveryengine.v1.Control.solution_type] - * If not set or empty, all supported fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateConversationRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateConversationRequest.php deleted file mode 100644 index 42ef333bbf6a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateConversationRequest.php +++ /dev/null @@ -1,158 +0,0 @@ -google.cloud.discoveryengine.v1.UpdateConversationRequest - */ -class UpdateConversationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Conversation to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $conversation = null; - /** - * Indicates which fields in the provided - * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The - * following are NOT supported: - * * [Conversation.name][google.cloud.discoveryengine.v1.Conversation.name] - * If not set or empty, all supported fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\DiscoveryEngine\V1\Conversation $conversation Required. The Conversation to update. - * @param \Google\Protobuf\FieldMask $updateMask Indicates which fields in the provided - * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The - * following are NOT supported: - * - * * [Conversation.name][google.cloud.discoveryengine.v1.Conversation.name] - * - * If not set or empty, all supported fields are updated. - * - * @return \Google\Cloud\DiscoveryEngine\V1\UpdateConversationRequest - * - * @experimental - */ - public static function build(\Google\Cloud\DiscoveryEngine\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\DiscoveryEngine\V1\Conversation $conversation - * Required. The Conversation to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Indicates which fields in the provided - * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The - * following are NOT supported: - * * [Conversation.name][google.cloud.discoveryengine.v1.Conversation.name] - * If not set or empty, all supported fields are updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Conversation to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\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 to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Conversation conversation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Conversation $var - * @return $this - */ - public function setConversation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Conversation::class); - $this->conversation = $var; - - return $this; - } - - /** - * Indicates which fields in the provided - * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The - * following are NOT supported: - * * [Conversation.name][google.cloud.discoveryengine.v1.Conversation.name] - * If not set or empty, all supported fields are 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); - } - - /** - * Indicates which fields in the provided - * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update. The - * following are NOT supported: - * * [Conversation.name][google.cloud.discoveryengine.v1.Conversation.name] - * If not set or empty, all supported fields are 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateDataStoreRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateDataStoreRequest.php deleted file mode 100644 index 86b3c56b7ce3..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateDataStoreRequest.php +++ /dev/null @@ -1,186 +0,0 @@ -google.cloud.discoveryengine.v1.UpdateDataStoreRequest - */ -class UpdateDataStoreRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to - * update. - * If the caller does not have permission to update the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [DataStore][google.cloud.discoveryengine.v1.DataStore] to update - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore data_store = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_store = null; - /** - * Indicates which fields in the provided - * [DataStore][google.cloud.discoveryengine.v1.DataStore] to update. - * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error - * is returned. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\DiscoveryEngine\V1\DataStore $dataStore Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to - * update. - * - * If the caller does not have permission to update the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * - * If the [DataStore][google.cloud.discoveryengine.v1.DataStore] to update - * does not exist, a NOT_FOUND error is returned. - * @param \Google\Protobuf\FieldMask $updateMask Indicates which fields in the provided - * [DataStore][google.cloud.discoveryengine.v1.DataStore] to update. - * - * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error - * is returned. - * - * @return \Google\Cloud\DiscoveryEngine\V1\UpdateDataStoreRequest - * - * @experimental - */ - public static function build(\Google\Cloud\DiscoveryEngine\V1\DataStore $dataStore, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDataStore($dataStore) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\DataStore $data_store - * Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to - * update. - * If the caller does not have permission to update the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [DataStore][google.cloud.discoveryengine.v1.DataStore] to update - * does not exist, a NOT_FOUND error is returned. - * @type \Google\Protobuf\FieldMask $update_mask - * Indicates which fields in the provided - * [DataStore][google.cloud.discoveryengine.v1.DataStore] to update. - * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error - * is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DataStoreService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to - * update. - * If the caller does not have permission to update the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [DataStore][google.cloud.discoveryengine.v1.DataStore] to update - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore data_store = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\DataStore|null - */ - public function getDataStore() - { - return $this->data_store; - } - - public function hasDataStore() - { - return isset($this->data_store); - } - - public function clearDataStore() - { - unset($this->data_store); - } - - /** - * Required. The [DataStore][google.cloud.discoveryengine.v1.DataStore] to - * update. - * If the caller does not have permission to update the - * [DataStore][google.cloud.discoveryengine.v1.DataStore], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [DataStore][google.cloud.discoveryengine.v1.DataStore] to update - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.DataStore data_store = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\DataStore $var - * @return $this - */ - public function setDataStore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\DataStore::class); - $this->data_store = $var; - - return $this; - } - - /** - * Indicates which fields in the provided - * [DataStore][google.cloud.discoveryengine.v1.DataStore] to update. - * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error - * is returned. - * - * 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); - } - - /** - * Indicates which fields in the provided - * [DataStore][google.cloud.discoveryengine.v1.DataStore] to update. - * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error - * is returned. - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateDocumentRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateDocumentRequest.php deleted file mode 100644 index e7a11d150d48..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateDocumentRequest.php +++ /dev/null @@ -1,222 +0,0 @@ -google.cloud.discoveryengine.v1.UpdateDocumentRequest - */ -class UpdateDocumentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The document to update/create. - * If the caller does not have permission to update the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the [Document][google.cloud.discoveryengine.v1.Document] to update does - * not exist and - * [allow_missing][google.cloud.discoveryengine.v1.UpdateDocumentRequest.allow_missing] - * is not set, a `NOT_FOUND` error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $document = null; - /** - * If set to `true` and the - * [Document][google.cloud.discoveryengine.v1.Document] is not found, a new - * [Document][google.cloud.discoveryengine.v1.Document] is be created. - * - * Generated from protobuf field bool allow_missing = 2; - */ - protected $allow_missing = false; - /** - * Indicates which fields in the provided imported 'document' to update. If - * not set, by default updates all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\DiscoveryEngine\V1\Document $document Required. The document to update/create. - * - * If the caller does not have permission to update the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * - * If the [Document][google.cloud.discoveryengine.v1.Document] to update does - * not exist and - * [allow_missing][google.cloud.discoveryengine.v1.UpdateDocumentRequest.allow_missing] - * is not set, a `NOT_FOUND` error is returned. - * @param \Google\Protobuf\FieldMask $updateMask Indicates which fields in the provided imported 'document' to update. If - * not set, by default updates all fields. - * - * @return \Google\Cloud\DiscoveryEngine\V1\UpdateDocumentRequest - * - * @experimental - */ - public static function build(\Google\Cloud\DiscoveryEngine\V1\Document $document, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setDocument($document) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Document $document - * Required. The document to update/create. - * If the caller does not have permission to update the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the [Document][google.cloud.discoveryengine.v1.Document] to update does - * not exist and - * [allow_missing][google.cloud.discoveryengine.v1.UpdateDocumentRequest.allow_missing] - * is not set, a `NOT_FOUND` error is returned. - * @type bool $allow_missing - * If set to `true` and the - * [Document][google.cloud.discoveryengine.v1.Document] is not found, a new - * [Document][google.cloud.discoveryengine.v1.Document] is be created. - * @type \Google\Protobuf\FieldMask $update_mask - * Indicates which fields in the provided imported 'document' to update. If - * not set, by default updates all fields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DocumentService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The document to update/create. - * If the caller does not have permission to update the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the [Document][google.cloud.discoveryengine.v1.Document] to update does - * not exist and - * [allow_missing][google.cloud.discoveryengine.v1.UpdateDocumentRequest.allow_missing] - * is not set, a `NOT_FOUND` error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Document|null - */ - public function getDocument() - { - return $this->document; - } - - public function hasDocument() - { - return isset($this->document); - } - - public function clearDocument() - { - unset($this->document); - } - - /** - * Required. The document to update/create. - * If the caller does not have permission to update the - * [Document][google.cloud.discoveryengine.v1.Document], regardless of whether - * or not it exists, a `PERMISSION_DENIED` error is returned. - * If the [Document][google.cloud.discoveryengine.v1.Document] to update does - * not exist and - * [allow_missing][google.cloud.discoveryengine.v1.UpdateDocumentRequest.allow_missing] - * is not set, a `NOT_FOUND` error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Document document = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Document $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Document::class); - $this->document = $var; - - return $this; - } - - /** - * If set to `true` and the - * [Document][google.cloud.discoveryengine.v1.Document] is not found, a new - * [Document][google.cloud.discoveryengine.v1.Document] is be created. - * - * Generated from protobuf field bool allow_missing = 2; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to `true` and the - * [Document][google.cloud.discoveryengine.v1.Document] is not found, a new - * [Document][google.cloud.discoveryengine.v1.Document] is be created. - * - * 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; - } - - /** - * Indicates which fields in the provided imported 'document' to update. If - * not set, by default updates all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Indicates which fields in the provided imported 'document' to update. If - * not set, by default updates all fields. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateEngineRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateEngineRequest.php deleted file mode 100644 index 47791803d528..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateEngineRequest.php +++ /dev/null @@ -1,181 +0,0 @@ -google.cloud.discoveryengine.v1.UpdateEngineRequest - */ -class UpdateEngineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [Engine][google.cloud.discoveryengine.v1.Engine] to update. - * If the caller does not have permission to update the - * [Engine][google.cloud.discoveryengine.v1.Engine], regardless of whether or - * not it exists, a PERMISSION_DENIED error is returned. - * If the [Engine][google.cloud.discoveryengine.v1.Engine] to update does not - * exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $engine = null; - /** - * Indicates which fields in the provided - * [Engine][google.cloud.discoveryengine.v1.Engine] to update. - * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error - * is returned. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\DiscoveryEngine\V1\Engine $engine Required. The [Engine][google.cloud.discoveryengine.v1.Engine] to update. - * - * If the caller does not have permission to update the - * [Engine][google.cloud.discoveryengine.v1.Engine], regardless of whether or - * not it exists, a PERMISSION_DENIED error is returned. - * - * If the [Engine][google.cloud.discoveryengine.v1.Engine] to update does not - * exist, a NOT_FOUND error is returned. - * @param \Google\Protobuf\FieldMask $updateMask Indicates which fields in the provided - * [Engine][google.cloud.discoveryengine.v1.Engine] to update. - * - * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error - * is returned. - * - * @return \Google\Cloud\DiscoveryEngine\V1\UpdateEngineRequest - * - * @experimental - */ - public static function build(\Google\Cloud\DiscoveryEngine\V1\Engine $engine, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEngine($engine) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Engine $engine - * Required. The [Engine][google.cloud.discoveryengine.v1.Engine] to update. - * If the caller does not have permission to update the - * [Engine][google.cloud.discoveryengine.v1.Engine], regardless of whether or - * not it exists, a PERMISSION_DENIED error is returned. - * If the [Engine][google.cloud.discoveryengine.v1.Engine] to update does not - * exist, a NOT_FOUND error is returned. - * @type \Google\Protobuf\FieldMask $update_mask - * Indicates which fields in the provided - * [Engine][google.cloud.discoveryengine.v1.Engine] to update. - * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error - * is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\EngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [Engine][google.cloud.discoveryengine.v1.Engine] to update. - * If the caller does not have permission to update the - * [Engine][google.cloud.discoveryengine.v1.Engine], regardless of whether or - * not it exists, a PERMISSION_DENIED error is returned. - * If the [Engine][google.cloud.discoveryengine.v1.Engine] to update does not - * exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Engine|null - */ - public function getEngine() - { - return $this->engine; - } - - public function hasEngine() - { - return isset($this->engine); - } - - public function clearEngine() - { - unset($this->engine); - } - - /** - * Required. The [Engine][google.cloud.discoveryengine.v1.Engine] to update. - * If the caller does not have permission to update the - * [Engine][google.cloud.discoveryengine.v1.Engine], regardless of whether or - * not it exists, a PERMISSION_DENIED error is returned. - * If the [Engine][google.cloud.discoveryengine.v1.Engine] to update does not - * exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Engine engine = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Engine $var - * @return $this - */ - public function setEngine($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Engine::class); - $this->engine = $var; - - return $this; - } - - /** - * Indicates which fields in the provided - * [Engine][google.cloud.discoveryengine.v1.Engine] to update. - * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error - * is returned. - * - * 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); - } - - /** - * Indicates which fields in the provided - * [Engine][google.cloud.discoveryengine.v1.Engine] to update. - * If an unsupported or unknown field is provided, an INVALID_ARGUMENT error - * is returned. - * - * 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSchemaMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSchemaMetadata.php deleted file mode 100644 index 745e59a0275a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSchemaMetadata.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.discoveryengine.v1.UpdateSchemaMetadata - */ -class UpdateSchemaMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SchemaService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSchemaRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSchemaRequest.php deleted file mode 100644 index f6d44496c191..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSchemaRequest.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.discoveryengine.v1.UpdateSchemaRequest - */ -class UpdateSchemaRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $schema = null; - /** - * If set to true, and the [Schema][google.cloud.discoveryengine.v1.Schema] is - * not found, a new [Schema][google.cloud.discoveryengine.v1.Schema] is - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Schema $schema - * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update. - * @type bool $allow_missing - * If set to true, and the [Schema][google.cloud.discoveryengine.v1.Schema] is - * not found, a new [Schema][google.cloud.discoveryengine.v1.Schema] is - * created. In this situation, `update_mask` is ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SchemaService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Schema|null - */ - public function getSchema() - { - return $this->schema; - } - - public function hasSchema() - { - return isset($this->schema); - } - - public function clearSchema() - { - unset($this->schema); - } - - /** - * Required. The [Schema][google.cloud.discoveryengine.v1.Schema] to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Schema schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Schema $var - * @return $this - */ - public function setSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Schema::class); - $this->schema = $var; - - return $this; - } - - /** - * If set to true, and the [Schema][google.cloud.discoveryengine.v1.Schema] is - * not found, a new [Schema][google.cloud.discoveryengine.v1.Schema] is - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the [Schema][google.cloud.discoveryengine.v1.Schema] is - * not found, a new [Schema][google.cloud.discoveryengine.v1.Schema] is - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSessionRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSessionRequest.php deleted file mode 100644 index a5e5d5fc46aa..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateSessionRequest.php +++ /dev/null @@ -1,158 +0,0 @@ -google.cloud.discoveryengine.v1.UpdateSessionRequest - */ -class UpdateSessionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Session to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session session = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $session = null; - /** - * Indicates which fields in the provided - * [Session][google.cloud.discoveryengine.v1.Session] to update. The following - * are NOT supported: - * * [Session.name][google.cloud.discoveryengine.v1.Session.name] - * If not set or empty, all supported fields are updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\DiscoveryEngine\V1\Session $session Required. The Session to update. - * @param \Google\Protobuf\FieldMask $updateMask Indicates which fields in the provided - * [Session][google.cloud.discoveryengine.v1.Session] to update. The following - * are NOT supported: - * - * * [Session.name][google.cloud.discoveryengine.v1.Session.name] - * - * If not set or empty, all supported fields are updated. - * - * @return \Google\Cloud\DiscoveryEngine\V1\UpdateSessionRequest - * - * @experimental - */ - public static function build(\Google\Cloud\DiscoveryEngine\V1\Session $session, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSession($session) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\Session $session - * Required. The Session to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Indicates which fields in the provided - * [Session][google.cloud.discoveryengine.v1.Session] to update. The following - * are NOT supported: - * * [Session.name][google.cloud.discoveryengine.v1.Session.name] - * If not set or empty, all supported fields are updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\ConversationalSearchService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Session to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session session = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\Session|null - */ - public function getSession() - { - return $this->session; - } - - public function hasSession() - { - return isset($this->session); - } - - public function clearSession() - { - unset($this->session); - } - - /** - * Required. The Session to update. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.Session session = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\Session $var - * @return $this - */ - public function setSession($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\Session::class); - $this->session = $var; - - return $this; - } - - /** - * Indicates which fields in the provided - * [Session][google.cloud.discoveryengine.v1.Session] to update. The following - * are NOT supported: - * * [Session.name][google.cloud.discoveryengine.v1.Session.name] - * If not set or empty, all supported fields are 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); - } - - /** - * Indicates which fields in the provided - * [Session][google.cloud.discoveryengine.v1.Session] to update. The following - * are NOT supported: - * * [Session.name][google.cloud.discoveryengine.v1.Session.name] - * If not set or empty, all supported fields are 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/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateTargetSiteMetadata.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateTargetSiteMetadata.php deleted file mode 100644 index 82610b5baea1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateTargetSiteMetadata.php +++ /dev/null @@ -1,128 +0,0 @@ -google.cloud.discoveryengine.v1.UpdateTargetSiteMetadata - */ -class UpdateTargetSiteMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Operation create time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1; - */ - protected $create_time = null; - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 2; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Operation create time. - * @type \Google\Protobuf\Timestamp $update_time - * Operation last update time. If the operation is done, this is also the - * finish time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Operation create time. - * - * 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); - } - - /** - * Operation create time. - * - * 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; - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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); - } - - /** - * Operation last update time. If the operation is done, this is also the - * finish time. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateTargetSiteRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateTargetSiteRequest.php deleted file mode 100644 index af1a81970751..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UpdateTargetSiteRequest.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.discoveryengine.v1.UpdateTargetSiteRequest - */ -class UpdateTargetSiteRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The target site to update. - * If the caller does not have permission to update the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [TargetSite][google.cloud.discoveryengine.v1.TargetSite] to update - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $target_site = null; - - /** - * @param \Google\Cloud\DiscoveryEngine\V1\TargetSite $targetSite Required. The target site to update. - * If the caller does not have permission to update the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * - * If the [TargetSite][google.cloud.discoveryengine.v1.TargetSite] to update - * does not exist, a NOT_FOUND error is returned. - * - * @return \Google\Cloud\DiscoveryEngine\V1\UpdateTargetSiteRequest - * - * @experimental - */ - public static function build(\Google\Cloud\DiscoveryEngine\V1\TargetSite $targetSite): self - { - return (new self()) - ->setTargetSite($targetSite); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DiscoveryEngine\V1\TargetSite $target_site - * Required. The target site to update. - * If the caller does not have permission to update the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [TargetSite][google.cloud.discoveryengine.v1.TargetSite] to update - * does not exist, a NOT_FOUND error is returned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\SiteSearchEngineService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The target site to update. - * If the caller does not have permission to update the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [TargetSite][google.cloud.discoveryengine.v1.TargetSite] to update - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\TargetSite|null - */ - public function getTargetSite() - { - return $this->target_site; - } - - public function hasTargetSite() - { - return isset($this->target_site); - } - - public function clearTargetSite() - { - unset($this->target_site); - } - - /** - * Required. The target site to update. - * If the caller does not have permission to update the - * [TargetSite][google.cloud.discoveryengine.v1.TargetSite], regardless of - * whether or not it exists, a PERMISSION_DENIED error is returned. - * If the [TargetSite][google.cloud.discoveryengine.v1.TargetSite] to update - * does not exist, a NOT_FOUND error is returned. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TargetSite target_site = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\TargetSite $var - * @return $this - */ - public function setTargetSite($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\TargetSite::class); - $this->target_site = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UserEvent.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UserEvent.php deleted file mode 100644 index e149133811d6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UserEvent.php +++ /dev/null @@ -1,1310 +0,0 @@ -google.cloud.discoveryengine.v1.UserEvent - */ -class UserEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Required. User event type. Allowed values are: - * Generic values: - * * `search`: Search for Documents. - * * `view-item`: Detailed page view of a Document. - * * `view-item-list`: View of a panel or ordered list of Documents. - * * `view-home-page`: View of the home page. - * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * Retail-related values: - * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping - * * `purchase`: Purchase an item(s) - * Media-related values: - * * `media-play`: Start/resume watching a video, playing a song, etc. - * * `media-complete`: Finished or stopped midway through a video, song, etc. - * - * Generated from protobuf field string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event_type = ''; - /** - * Required. A unique identifier for tracking visitors. - * For example, this could be implemented with an HTTP cookie, which should be - * able to uniquely identify a visitor on a single device. This unique - * identifier should not change if the visitor log in/out of the website. - * Do not set the field to the same fixed ID for different users. This mixes - * the event history of those users together, which results in degraded model - * quality. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * The field should not contain PII or user-data. We recommend to use Google - * Analytics [Client - * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) - * for this field. - * - * Generated from protobuf field string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user_pseudo_id = ''; - /** - * The [Engine][google.cloud.discoveryengine.v1.Engine] resource name, in the - * form of - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * Optional. Only required for - * [Engine][google.cloud.discoveryengine.v1.Engine] produced user events. For - * example, user events from blended search. - * - * Generated from protobuf field string engine = 19 [(.google.api.resource_reference) = { - */ - protected $engine = ''; - /** - * The [DataStore][google.cloud.discoveryengine.v1.DataStore] resource full - * name, of the form - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * Optional. Only required for user events whose data store can't by - * determined by - * [UserEvent.engine][google.cloud.discoveryengine.v1.UserEvent.engine] or - * [UserEvent.documents][google.cloud.discoveryengine.v1.UserEvent.documents]. - * If data store is set in the parent of write/import/collect user event - * requests, this field can be omitted. - * - * Generated from protobuf field string data_store = 20 [(.google.api.resource_reference) = { - */ - protected $data_store = ''; - /** - * Only required for - * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents] - * method. Timestamp of when the user event happened. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; - */ - protected $event_time = null; - /** - * Information about the end user. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.UserInfo user_info = 4; - */ - protected $user_info = null; - /** - * Should set to true if the request is made directly from the end user, in - * which case the - * [UserEvent.user_info.user_agent][google.cloud.discoveryengine.v1.UserInfo.user_agent] - * can be populated from the HTTP request. - * This flag should be set only if the API request is made directly from the - * end user such as a mobile app (and not if a gateway or a server is - * processing and pushing the user events). - * This should not be set when using the JavaScript tag in - * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent]. - * - * Generated from protobuf field bool direct_user_request = 5; - */ - protected $direct_user_request = false; - /** - * A unique identifier for tracking a visitor session with a length limit of - * 128 bytes. A session is an aggregation of an end user behavior in a time - * span. - * A general guideline to populate the session_id: - * 1. If user has no activity for 30 min, a new session_id should be assigned. - * 2. The session_id should be unique across users, suggest use uuid or add - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * as prefix. - * - * Generated from protobuf field string session_id = 6; - */ - protected $session_id = ''; - /** - * Page metadata such as categories and other critical information for certain - * event types such as `view-category-page`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PageInfo page_info = 7; - */ - protected $page_info = null; - /** - * Token to attribute an API response to user action(s) to trigger the event. - * Highly recommended for user events that are the result of - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend]. - * This field enables accurate attribution of recommendation model - * performance. - * The value must be one of: - * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] for events that are the result of - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend]. - * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] for events that are the result of - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]. - * This token enables us to accurately attribute page view or conversion - * completion back to the event and the particular predict response containing - * this clicked/purchased product. If user clicks on product K in the - * recommendation results, pass - * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] - * as a URL parameter to product K's page. When recording events on product - * K's page, log the - * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] - * to this field. - * - * Generated from protobuf field string attribution_token = 8; - */ - protected $attribution_token = ''; - /** - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. - * One example is for `search` events, the associated - * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain - * a filter expression in - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter] - * conforming to https://google.aip.dev/160#filtering. - * Similarly, for `view-item-list` events that are generated from a - * [RecommendRequest][google.cloud.discoveryengine.v1.RecommendRequest], this - * field may be populated directly from - * [RecommendRequest.filter][google.cloud.discoveryengine.v1.RecommendRequest.filter] - * conforming to https://google.aip.dev/160#filtering. - * The value must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string filter = 9; - */ - protected $filter = ''; - /** - * List of [Document][google.cloud.discoveryengine.v1.Document]s associated - * with this user event. - * This field is optional except for the following event types: - * * `view-item` - * * `add-to-cart` - * * `purchase` - * * `media-play` - * * `media-complete` - * In a `search` event, this field represents the documents returned to the - * end user on the current page (the end user may have not finished browsing - * the whole page yet). When a new page is returned to the end user, after - * pagination/filtering/ordering even for the same query, a new `search` event - * with different - * [UserEvent.documents][google.cloud.discoveryengine.v1.UserEvent.documents] - * is desired. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10; - */ - private $documents; - /** - * Panel metadata associated with this user event. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PanelInfo panel = 11; - */ - protected $panel = null; - /** - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * details related to the event. - * This field should be set for `search` event. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchInfo search_info = 12; - */ - protected $search_info = null; - /** - * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery] - * details related to the event. - * This field should be set for `search` event when autocomplete function is - * enabled and the user clicks a suggestion for search. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13; - */ - protected $completion_info = null; - /** - * The transaction metadata (if any) associated with this user event. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; - */ - protected $transaction_info = null; - /** - * A list of identifiers for the independent experiment groups this user event - * belongs to. This is used to distinguish between user events associated with - * different experiment setups. - * - * Generated from protobuf field repeated string tag_ids = 15; - */ - private $tag_ids; - /** - * The promotion IDs if this is an event associated with promotions. - * Currently, this field is restricted to at most one ID. - * - * Generated from protobuf field repeated string promotion_ids = 16; - */ - private $promotion_ids; - /** - * Extra user event features to include in the recommendation model. - * These attributes must NOT contain data that needs to be parsed or processed - * further, e.g. JSON or other encodings. - * If you provide custom attributes for ingested user events, also include - * them in the user events that you associate with prediction requests. Custom - * attribute formatting must be consistent between imported events and events - * provided with prediction requests. This lets the Discovery Engine API use - * those custom attributes when training models and serving predictions, which - * helps improve recommendation quality. - * This field needs to pass all below criteria, otherwise an - * `INVALID_ARGUMENT` error is returned: - * * The key must be a UTF-8 encoded string with a length limit of 5,000 - * characters. - * * For text attributes, at most 400 values are allowed. Empty values are not - * allowed. Each value must be a UTF-8 encoded string with a length limit of - * 256 characters. - * * For number attributes, at most 400 values are allowed. - * For product recommendations, an example of extra user information is - * `traffic_channel`, which is how a user arrives at the site. Users can - * arrive - * at the site by coming to the site directly, coming through Google - * search, or in other ways. - * - * Generated from protobuf field map attributes = 17; - */ - private $attributes; - /** - * Media-specific info. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.MediaInfo media_info = 18; - */ - protected $media_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $event_type - * Required. User event type. Allowed values are: - * Generic values: - * * `search`: Search for Documents. - * * `view-item`: Detailed page view of a Document. - * * `view-item-list`: View of a panel or ordered list of Documents. - * * `view-home-page`: View of the home page. - * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * Retail-related values: - * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping - * * `purchase`: Purchase an item(s) - * Media-related values: - * * `media-play`: Start/resume watching a video, playing a song, etc. - * * `media-complete`: Finished or stopped midway through a video, song, etc. - * @type string $user_pseudo_id - * Required. A unique identifier for tracking visitors. - * For example, this could be implemented with an HTTP cookie, which should be - * able to uniquely identify a visitor on a single device. This unique - * identifier should not change if the visitor log in/out of the website. - * Do not set the field to the same fixed ID for different users. This mixes - * the event history of those users together, which results in degraded model - * quality. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * The field should not contain PII or user-data. We recommend to use Google - * Analytics [Client - * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) - * for this field. - * @type string $engine - * The [Engine][google.cloud.discoveryengine.v1.Engine] resource name, in the - * form of - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * Optional. Only required for - * [Engine][google.cloud.discoveryengine.v1.Engine] produced user events. For - * example, user events from blended search. - * @type string $data_store - * The [DataStore][google.cloud.discoveryengine.v1.DataStore] resource full - * name, of the form - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * Optional. Only required for user events whose data store can't by - * determined by - * [UserEvent.engine][google.cloud.discoveryengine.v1.UserEvent.engine] or - * [UserEvent.documents][google.cloud.discoveryengine.v1.UserEvent.documents]. - * If data store is set in the parent of write/import/collect user event - * requests, this field can be omitted. - * @type \Google\Protobuf\Timestamp $event_time - * Only required for - * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents] - * method. Timestamp of when the user event happened. - * @type \Google\Cloud\DiscoveryEngine\V1\UserInfo $user_info - * Information about the end user. - * @type bool $direct_user_request - * Should set to true if the request is made directly from the end user, in - * which case the - * [UserEvent.user_info.user_agent][google.cloud.discoveryengine.v1.UserInfo.user_agent] - * can be populated from the HTTP request. - * This flag should be set only if the API request is made directly from the - * end user such as a mobile app (and not if a gateway or a server is - * processing and pushing the user events). - * This should not be set when using the JavaScript tag in - * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent]. - * @type string $session_id - * A unique identifier for tracking a visitor session with a length limit of - * 128 bytes. A session is an aggregation of an end user behavior in a time - * span. - * A general guideline to populate the session_id: - * 1. If user has no activity for 30 min, a new session_id should be assigned. - * 2. The session_id should be unique across users, suggest use uuid or add - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * as prefix. - * @type \Google\Cloud\DiscoveryEngine\V1\PageInfo $page_info - * Page metadata such as categories and other critical information for certain - * event types such as `view-category-page`. - * @type string $attribution_token - * Token to attribute an API response to user action(s) to trigger the event. - * Highly recommended for user events that are the result of - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend]. - * This field enables accurate attribution of recommendation model - * performance. - * The value must be one of: - * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] for events that are the result of - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend]. - * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] for events that are the result of - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]. - * This token enables us to accurately attribute page view or conversion - * completion back to the event and the particular predict response containing - * this clicked/purchased product. If user clicks on product K in the - * recommendation results, pass - * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] - * as a URL parameter to product K's page. When recording events on product - * K's page, log the - * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] - * to this field. - * @type string $filter - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. - * One example is for `search` events, the associated - * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain - * a filter expression in - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter] - * conforming to https://google.aip.dev/160#filtering. - * Similarly, for `view-item-list` events that are generated from a - * [RecommendRequest][google.cloud.discoveryengine.v1.RecommendRequest], this - * field may be populated directly from - * [RecommendRequest.filter][google.cloud.discoveryengine.v1.RecommendRequest.filter] - * conforming to https://google.aip.dev/160#filtering. - * The value must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * @type array<\Google\Cloud\DiscoveryEngine\V1\DocumentInfo>|\Google\Protobuf\Internal\RepeatedField $documents - * List of [Document][google.cloud.discoveryengine.v1.Document]s associated - * with this user event. - * This field is optional except for the following event types: - * * `view-item` - * * `add-to-cart` - * * `purchase` - * * `media-play` - * * `media-complete` - * In a `search` event, this field represents the documents returned to the - * end user on the current page (the end user may have not finished browsing - * the whole page yet). When a new page is returned to the end user, after - * pagination/filtering/ordering even for the same query, a new `search` event - * with different - * [UserEvent.documents][google.cloud.discoveryengine.v1.UserEvent.documents] - * is desired. - * @type \Google\Cloud\DiscoveryEngine\V1\PanelInfo $panel - * Panel metadata associated with this user event. - * @type \Google\Cloud\DiscoveryEngine\V1\SearchInfo $search_info - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * details related to the event. - * This field should be set for `search` event. - * @type \Google\Cloud\DiscoveryEngine\V1\CompletionInfo $completion_info - * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery] - * details related to the event. - * This field should be set for `search` event when autocomplete function is - * enabled and the user clicks a suggestion for search. - * @type \Google\Cloud\DiscoveryEngine\V1\TransactionInfo $transaction_info - * The transaction metadata (if any) associated with this user event. - * @type array|\Google\Protobuf\Internal\RepeatedField $tag_ids - * A list of identifiers for the independent experiment groups this user event - * belongs to. This is used to distinguish between user events associated with - * different experiment setups. - * @type array|\Google\Protobuf\Internal\RepeatedField $promotion_ids - * The promotion IDs if this is an event associated with promotions. - * Currently, this field is restricted to at most one ID. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Extra user event features to include in the recommendation model. - * These attributes must NOT contain data that needs to be parsed or processed - * further, e.g. JSON or other encodings. - * If you provide custom attributes for ingested user events, also include - * them in the user events that you associate with prediction requests. Custom - * attribute formatting must be consistent between imported events and events - * provided with prediction requests. This lets the Discovery Engine API use - * those custom attributes when training models and serving predictions, which - * helps improve recommendation quality. - * This field needs to pass all below criteria, otherwise an - * `INVALID_ARGUMENT` error is returned: - * * The key must be a UTF-8 encoded string with a length limit of 5,000 - * characters. - * * For text attributes, at most 400 values are allowed. Empty values are not - * allowed. Each value must be a UTF-8 encoded string with a length limit of - * 256 characters. - * * For number attributes, at most 400 values are allowed. - * For product recommendations, an example of extra user information is - * `traffic_channel`, which is how a user arrives at the site. Users can - * arrive - * at the site by coming to the site directly, coming through Google - * search, or in other ways. - * @type \Google\Cloud\DiscoveryEngine\V1\MediaInfo $media_info - * Media-specific info. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\UserEvent::initOnce(); - parent::__construct($data); - } - - /** - * Required. User event type. Allowed values are: - * Generic values: - * * `search`: Search for Documents. - * * `view-item`: Detailed page view of a Document. - * * `view-item-list`: View of a panel or ordered list of Documents. - * * `view-home-page`: View of the home page. - * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * Retail-related values: - * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping - * * `purchase`: Purchase an item(s) - * Media-related values: - * * `media-play`: Start/resume watching a video, playing a song, etc. - * * `media-complete`: Finished or stopped midway through a video, song, etc. - * - * Generated from protobuf field string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEventType() - { - return $this->event_type; - } - - /** - * Required. User event type. Allowed values are: - * Generic values: - * * `search`: Search for Documents. - * * `view-item`: Detailed page view of a Document. - * * `view-item-list`: View of a panel or ordered list of Documents. - * * `view-home-page`: View of the home page. - * * `view-category-page`: View of a category page, e.g. Home > Men > Jeans - * Retail-related values: - * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping - * * `purchase`: Purchase an item(s) - * Media-related values: - * * `media-play`: Start/resume watching a video, playing a song, etc. - * * `media-complete`: Finished or stopped midway through a video, song, etc. - * - * Generated from protobuf field string event_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEventType($var) - { - GPBUtil::checkString($var, True); - $this->event_type = $var; - - return $this; - } - - /** - * Required. A unique identifier for tracking visitors. - * For example, this could be implemented with an HTTP cookie, which should be - * able to uniquely identify a visitor on a single device. This unique - * identifier should not change if the visitor log in/out of the website. - * Do not set the field to the same fixed ID for different users. This mixes - * the event history of those users together, which results in degraded model - * quality. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * The field should not contain PII or user-data. We recommend to use Google - * Analytics [Client - * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) - * for this field. - * - * Generated from protobuf field string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUserPseudoId() - { - return $this->user_pseudo_id; - } - - /** - * Required. A unique identifier for tracking visitors. - * For example, this could be implemented with an HTTP cookie, which should be - * able to uniquely identify a visitor on a single device. This unique - * identifier should not change if the visitor log in/out of the website. - * Do not set the field to the same fixed ID for different users. This mixes - * the event history of those users together, which results in degraded model - * quality. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * The field should not contain PII or user-data. We recommend to use Google - * Analytics [Client - * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) - * for this field. - * - * Generated from protobuf field string user_pseudo_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUserPseudoId($var) - { - GPBUtil::checkString($var, True); - $this->user_pseudo_id = $var; - - return $this; - } - - /** - * The [Engine][google.cloud.discoveryengine.v1.Engine] resource name, in the - * form of - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * Optional. Only required for - * [Engine][google.cloud.discoveryengine.v1.Engine] produced user events. For - * example, user events from blended search. - * - * Generated from protobuf field string engine = 19 [(.google.api.resource_reference) = { - * @return string - */ - public function getEngine() - { - return $this->engine; - } - - /** - * The [Engine][google.cloud.discoveryengine.v1.Engine] resource name, in the - * form of - * `projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`. - * Optional. Only required for - * [Engine][google.cloud.discoveryengine.v1.Engine] produced user events. For - * example, user events from blended search. - * - * Generated from protobuf field string engine = 19 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEngine($var) - { - GPBUtil::checkString($var, True); - $this->engine = $var; - - return $this; - } - - /** - * The [DataStore][google.cloud.discoveryengine.v1.DataStore] resource full - * name, of the form - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * Optional. Only required for user events whose data store can't by - * determined by - * [UserEvent.engine][google.cloud.discoveryengine.v1.UserEvent.engine] or - * [UserEvent.documents][google.cloud.discoveryengine.v1.UserEvent.documents]. - * If data store is set in the parent of write/import/collect user event - * requests, this field can be omitted. - * - * Generated from protobuf field string data_store = 20 [(.google.api.resource_reference) = { - * @return string - */ - public function getDataStore() - { - return $this->data_store; - } - - /** - * The [DataStore][google.cloud.discoveryengine.v1.DataStore] resource full - * name, of the form - * `projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}`. - * Optional. Only required for user events whose data store can't by - * determined by - * [UserEvent.engine][google.cloud.discoveryengine.v1.UserEvent.engine] or - * [UserEvent.documents][google.cloud.discoveryengine.v1.UserEvent.documents]. - * If data store is set in the parent of write/import/collect user event - * requests, this field can be omitted. - * - * Generated from protobuf field string data_store = 20 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDataStore($var) - { - GPBUtil::checkString($var, True); - $this->data_store = $var; - - return $this; - } - - /** - * Only required for - * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents] - * method. Timestamp of when the user event happened. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEventTime() - { - return $this->event_time; - } - - public function hasEventTime() - { - return isset($this->event_time); - } - - public function clearEventTime() - { - unset($this->event_time); - } - - /** - * Only required for - * [UserEventService.ImportUserEvents][google.cloud.discoveryengine.v1.UserEventService.ImportUserEvents] - * method. Timestamp of when the user event happened. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEventTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->event_time = $var; - - return $this; - } - - /** - * Information about the end user. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.UserInfo user_info = 4; - * @return \Google\Cloud\DiscoveryEngine\V1\UserInfo|null - */ - public function getUserInfo() - { - return $this->user_info; - } - - public function hasUserInfo() - { - return isset($this->user_info); - } - - public function clearUserInfo() - { - unset($this->user_info); - } - - /** - * Information about the end user. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.UserInfo user_info = 4; - * @param \Google\Cloud\DiscoveryEngine\V1\UserInfo $var - * @return $this - */ - public function setUserInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\UserInfo::class); - $this->user_info = $var; - - return $this; - } - - /** - * Should set to true if the request is made directly from the end user, in - * which case the - * [UserEvent.user_info.user_agent][google.cloud.discoveryengine.v1.UserInfo.user_agent] - * can be populated from the HTTP request. - * This flag should be set only if the API request is made directly from the - * end user such as a mobile app (and not if a gateway or a server is - * processing and pushing the user events). - * This should not be set when using the JavaScript tag in - * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent]. - * - * Generated from protobuf field bool direct_user_request = 5; - * @return bool - */ - public function getDirectUserRequest() - { - return $this->direct_user_request; - } - - /** - * Should set to true if the request is made directly from the end user, in - * which case the - * [UserEvent.user_info.user_agent][google.cloud.discoveryengine.v1.UserInfo.user_agent] - * can be populated from the HTTP request. - * This flag should be set only if the API request is made directly from the - * end user such as a mobile app (and not if a gateway or a server is - * processing and pushing the user events). - * This should not be set when using the JavaScript tag in - * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent]. - * - * Generated from protobuf field bool direct_user_request = 5; - * @param bool $var - * @return $this - */ - public function setDirectUserRequest($var) - { - GPBUtil::checkBool($var); - $this->direct_user_request = $var; - - return $this; - } - - /** - * A unique identifier for tracking a visitor session with a length limit of - * 128 bytes. A session is an aggregation of an end user behavior in a time - * span. - * A general guideline to populate the session_id: - * 1. If user has no activity for 30 min, a new session_id should be assigned. - * 2. The session_id should be unique across users, suggest use uuid or add - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * as prefix. - * - * Generated from protobuf field string session_id = 6; - * @return string - */ - public function getSessionId() - { - return $this->session_id; - } - - /** - * A unique identifier for tracking a visitor session with a length limit of - * 128 bytes. A session is an aggregation of an end user behavior in a time - * span. - * A general guideline to populate the session_id: - * 1. If user has no activity for 30 min, a new session_id should be assigned. - * 2. The session_id should be unique across users, suggest use uuid or add - * [UserEvent.user_pseudo_id][google.cloud.discoveryengine.v1.UserEvent.user_pseudo_id] - * as prefix. - * - * Generated from protobuf field string session_id = 6; - * @param string $var - * @return $this - */ - public function setSessionId($var) - { - GPBUtil::checkString($var, True); - $this->session_id = $var; - - return $this; - } - - /** - * Page metadata such as categories and other critical information for certain - * event types such as `view-category-page`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PageInfo page_info = 7; - * @return \Google\Cloud\DiscoveryEngine\V1\PageInfo|null - */ - public function getPageInfo() - { - return $this->page_info; - } - - public function hasPageInfo() - { - return isset($this->page_info); - } - - public function clearPageInfo() - { - unset($this->page_info); - } - - /** - * Page metadata such as categories and other critical information for certain - * event types such as `view-category-page`. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PageInfo page_info = 7; - * @param \Google\Cloud\DiscoveryEngine\V1\PageInfo $var - * @return $this - */ - public function setPageInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\PageInfo::class); - $this->page_info = $var; - - return $this; - } - - /** - * Token to attribute an API response to user action(s) to trigger the event. - * Highly recommended for user events that are the result of - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend]. - * This field enables accurate attribution of recommendation model - * performance. - * The value must be one of: - * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] for events that are the result of - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend]. - * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] for events that are the result of - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]. - * This token enables us to accurately attribute page view or conversion - * completion back to the event and the particular predict response containing - * this clicked/purchased product. If user clicks on product K in the - * recommendation results, pass - * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] - * as a URL parameter to product K's page. When recording events on product - * K's page, log the - * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] - * to this field. - * - * Generated from protobuf field string attribution_token = 8; - * @return string - */ - public function getAttributionToken() - { - return $this->attribution_token; - } - - /** - * Token to attribute an API response to user action(s) to trigger the event. - * Highly recommended for user events that are the result of - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend]. - * This field enables accurate attribution of recommendation model - * performance. - * The value must be one of: - * * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] for events that are the result of - * [RecommendationService.Recommend][google.cloud.discoveryengine.v1.RecommendationService.Recommend]. - * * [SearchResponse.attribution_token][google.cloud.discoveryengine.v1.SearchResponse.attribution_token] for events that are the result of - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]. - * This token enables us to accurately attribute page view or conversion - * completion back to the event and the particular predict response containing - * this clicked/purchased product. If user clicks on product K in the - * recommendation results, pass - * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] - * as a URL parameter to product K's page. When recording events on product - * K's page, log the - * [RecommendResponse.attribution_token][google.cloud.discoveryengine.v1.RecommendResponse.attribution_token] - * to this field. - * - * Generated from protobuf field string attribution_token = 8; - * @param string $var - * @return $this - */ - public function setAttributionToken($var) - { - GPBUtil::checkString($var, True); - $this->attribution_token = $var; - - return $this; - } - - /** - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. - * One example is for `search` events, the associated - * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain - * a filter expression in - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter] - * conforming to https://google.aip.dev/160#filtering. - * Similarly, for `view-item-list` events that are generated from a - * [RecommendRequest][google.cloud.discoveryengine.v1.RecommendRequest], this - * field may be populated directly from - * [RecommendRequest.filter][google.cloud.discoveryengine.v1.RecommendRequest.filter] - * conforming to https://google.aip.dev/160#filtering. - * The value must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string filter = 9; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The filter syntax consists of an expression language for constructing a - * predicate from one or more fields of the documents being filtered. - * One example is for `search` events, the associated - * [SearchRequest][google.cloud.discoveryengine.v1.SearchRequest] may contain - * a filter expression in - * [SearchRequest.filter][google.cloud.discoveryengine.v1.SearchRequest.filter] - * conforming to https://google.aip.dev/160#filtering. - * Similarly, for `view-item-list` events that are generated from a - * [RecommendRequest][google.cloud.discoveryengine.v1.RecommendRequest], this - * field may be populated directly from - * [RecommendRequest.filter][google.cloud.discoveryengine.v1.RecommendRequest.filter] - * conforming to https://google.aip.dev/160#filtering. - * The value must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string filter = 9; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * List of [Document][google.cloud.discoveryengine.v1.Document]s associated - * with this user event. - * This field is optional except for the following event types: - * * `view-item` - * * `add-to-cart` - * * `purchase` - * * `media-play` - * * `media-complete` - * In a `search` event, this field represents the documents returned to the - * end user on the current page (the end user may have not finished browsing - * the whole page yet). When a new page is returned to the end user, after - * pagination/filtering/ordering even for the same query, a new `search` event - * with different - * [UserEvent.documents][google.cloud.discoveryengine.v1.UserEvent.documents] - * is desired. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDocuments() - { - return $this->documents; - } - - /** - * List of [Document][google.cloud.discoveryengine.v1.Document]s associated - * with this user event. - * This field is optional except for the following event types: - * * `view-item` - * * `add-to-cart` - * * `purchase` - * * `media-play` - * * `media-complete` - * In a `search` event, this field represents the documents returned to the - * end user on the current page (the end user may have not finished browsing - * the whole page yet). When a new page is returned to the end user, after - * pagination/filtering/ordering even for the same query, a new `search` event - * with different - * [UserEvent.documents][google.cloud.discoveryengine.v1.UserEvent.documents] - * is desired. - * - * Generated from protobuf field repeated .google.cloud.discoveryengine.v1.DocumentInfo documents = 10; - * @param array<\Google\Cloud\DiscoveryEngine\V1\DocumentInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDocuments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\DocumentInfo::class); - $this->documents = $arr; - - return $this; - } - - /** - * Panel metadata associated with this user event. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PanelInfo panel = 11; - * @return \Google\Cloud\DiscoveryEngine\V1\PanelInfo|null - */ - public function getPanel() - { - return $this->panel; - } - - public function hasPanel() - { - return isset($this->panel); - } - - public function clearPanel() - { - unset($this->panel); - } - - /** - * Panel metadata associated with this user event. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.PanelInfo panel = 11; - * @param \Google\Cloud\DiscoveryEngine\V1\PanelInfo $var - * @return $this - */ - public function setPanel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\PanelInfo::class); - $this->panel = $var; - - return $this; - } - - /** - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * details related to the event. - * This field should be set for `search` event. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchInfo search_info = 12; - * @return \Google\Cloud\DiscoveryEngine\V1\SearchInfo|null - */ - public function getSearchInfo() - { - return $this->search_info; - } - - public function hasSearchInfo() - { - return isset($this->search_info); - } - - public function clearSearchInfo() - { - unset($this->search_info); - } - - /** - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * details related to the event. - * This field should be set for `search` event. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.SearchInfo search_info = 12; - * @param \Google\Cloud\DiscoveryEngine\V1\SearchInfo $var - * @return $this - */ - public function setSearchInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\SearchInfo::class); - $this->search_info = $var; - - return $this; - } - - /** - * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery] - * details related to the event. - * This field should be set for `search` event when autocomplete function is - * enabled and the user clicks a suggestion for search. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13; - * @return \Google\Cloud\DiscoveryEngine\V1\CompletionInfo|null - */ - public function getCompletionInfo() - { - return $this->completion_info; - } - - public function hasCompletionInfo() - { - return isset($this->completion_info); - } - - public function clearCompletionInfo() - { - unset($this->completion_info); - } - - /** - * [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1.CompletionService.CompleteQuery] - * details related to the event. - * This field should be set for `search` event when autocomplete function is - * enabled and the user clicks a suggestion for search. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.CompletionInfo completion_info = 13; - * @param \Google\Cloud\DiscoveryEngine\V1\CompletionInfo $var - * @return $this - */ - public function setCompletionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\CompletionInfo::class); - $this->completion_info = $var; - - return $this; - } - - /** - * The transaction metadata (if any) associated with this user event. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; - * @return \Google\Cloud\DiscoveryEngine\V1\TransactionInfo|null - */ - public function getTransactionInfo() - { - return $this->transaction_info; - } - - public function hasTransactionInfo() - { - return isset($this->transaction_info); - } - - public function clearTransactionInfo() - { - unset($this->transaction_info); - } - - /** - * The transaction metadata (if any) associated with this user event. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.TransactionInfo transaction_info = 14; - * @param \Google\Cloud\DiscoveryEngine\V1\TransactionInfo $var - * @return $this - */ - public function setTransactionInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\TransactionInfo::class); - $this->transaction_info = $var; - - return $this; - } - - /** - * A list of identifiers for the independent experiment groups this user event - * belongs to. This is used to distinguish between user events associated with - * different experiment setups. - * - * Generated from protobuf field repeated string tag_ids = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTagIds() - { - return $this->tag_ids; - } - - /** - * A list of identifiers for the independent experiment groups this user event - * belongs to. This is used to distinguish between user events associated with - * different experiment setups. - * - * Generated from protobuf field repeated string tag_ids = 15; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTagIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->tag_ids = $arr; - - return $this; - } - - /** - * The promotion IDs if this is an event associated with promotions. - * Currently, this field is restricted to at most one ID. - * - * Generated from protobuf field repeated string promotion_ids = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPromotionIds() - { - return $this->promotion_ids; - } - - /** - * The promotion IDs if this is an event associated with promotions. - * Currently, this field is restricted to at most one ID. - * - * Generated from protobuf field repeated string promotion_ids = 16; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPromotionIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->promotion_ids = $arr; - - return $this; - } - - /** - * Extra user event features to include in the recommendation model. - * These attributes must NOT contain data that needs to be parsed or processed - * further, e.g. JSON or other encodings. - * If you provide custom attributes for ingested user events, also include - * them in the user events that you associate with prediction requests. Custom - * attribute formatting must be consistent between imported events and events - * provided with prediction requests. This lets the Discovery Engine API use - * those custom attributes when training models and serving predictions, which - * helps improve recommendation quality. - * This field needs to pass all below criteria, otherwise an - * `INVALID_ARGUMENT` error is returned: - * * The key must be a UTF-8 encoded string with a length limit of 5,000 - * characters. - * * For text attributes, at most 400 values are allowed. Empty values are not - * allowed. Each value must be a UTF-8 encoded string with a length limit of - * 256 characters. - * * For number attributes, at most 400 values are allowed. - * For product recommendations, an example of extra user information is - * `traffic_channel`, which is how a user arrives at the site. Users can - * arrive - * at the site by coming to the site directly, coming through Google - * search, or in other ways. - * - * Generated from protobuf field map attributes = 17; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Extra user event features to include in the recommendation model. - * These attributes must NOT contain data that needs to be parsed or processed - * further, e.g. JSON or other encodings. - * If you provide custom attributes for ingested user events, also include - * them in the user events that you associate with prediction requests. Custom - * attribute formatting must be consistent between imported events and events - * provided with prediction requests. This lets the Discovery Engine API use - * those custom attributes when training models and serving predictions, which - * helps improve recommendation quality. - * This field needs to pass all below criteria, otherwise an - * `INVALID_ARGUMENT` error is returned: - * * The key must be a UTF-8 encoded string with a length limit of 5,000 - * characters. - * * For text attributes, at most 400 values are allowed. Empty values are not - * allowed. Each value must be a UTF-8 encoded string with a length limit of - * 256 characters. - * * For number attributes, at most 400 values are allowed. - * For product recommendations, an example of extra user information is - * `traffic_channel`, which is how a user arrives at the site. Users can - * arrive - * at the site by coming to the site directly, coming through Google - * search, or in other ways. - * - * Generated from protobuf field map attributes = 17; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DiscoveryEngine\V1\CustomAttribute::class); - $this->attributes = $arr; - - return $this; - } - - /** - * Media-specific info. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.MediaInfo media_info = 18; - * @return \Google\Cloud\DiscoveryEngine\V1\MediaInfo|null - */ - public function getMediaInfo() - { - return $this->media_info; - } - - public function hasMediaInfo() - { - return isset($this->media_info); - } - - public function clearMediaInfo() - { - unset($this->media_info); - } - - /** - * Media-specific info. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.MediaInfo media_info = 18; - * @param \Google\Cloud\DiscoveryEngine\V1\MediaInfo $var - * @return $this - */ - public function setMediaInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\MediaInfo::class); - $this->media_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UserInfo.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UserInfo.php deleted file mode 100644 index ac368656ad66..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/UserInfo.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.discoveryengine.v1.UserInfo - */ -class UserInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Highly recommended for logged-in users. Unique identifier for logged-in - * user, such as a user name. Don't set for anonymous users. - * Always use a hashed value for this ID. - * Don't set the field to the same fixed ID for different users. This mixes - * the event history of those users together, which results in degraded - * model quality. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_id = 1; - */ - protected $user_id = ''; - /** - * User agent as included in the HTTP header. - * The field must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * This should not be set when using the client side event reporting with - * GTM or JavaScript tag in - * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent] - * or if - * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1.UserEvent.direct_user_request] - * is set. - * - * Generated from protobuf field string user_agent = 2; - */ - protected $user_agent = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $user_id - * Highly recommended for logged-in users. Unique identifier for logged-in - * user, such as a user name. Don't set for anonymous users. - * Always use a hashed value for this ID. - * Don't set the field to the same fixed ID for different users. This mixes - * the event history of those users together, which results in degraded - * model quality. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * @type string $user_agent - * User agent as included in the HTTP header. - * The field must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * This should not be set when using the client side event reporting with - * GTM or JavaScript tag in - * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent] - * or if - * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1.UserEvent.direct_user_request] - * is set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Highly recommended for logged-in users. Unique identifier for logged-in - * user, such as a user name. Don't set for anonymous users. - * Always use a hashed value for this ID. - * Don't set the field to the same fixed ID for different users. This mixes - * the event history of those users together, which results in degraded - * model quality. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_id = 1; - * @return string - */ - public function getUserId() - { - return $this->user_id; - } - - /** - * Highly recommended for logged-in users. Unique identifier for logged-in - * user, such as a user name. Don't set for anonymous users. - * Always use a hashed value for this ID. - * Don't set the field to the same fixed ID for different users. This mixes - * the event history of those users together, which results in degraded - * model quality. - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * Generated from protobuf field string user_id = 1; - * @param string $var - * @return $this - */ - public function setUserId($var) - { - GPBUtil::checkString($var, True); - $this->user_id = $var; - - return $this; - } - - /** - * User agent as included in the HTTP header. - * The field must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * This should not be set when using the client side event reporting with - * GTM or JavaScript tag in - * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent] - * or if - * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1.UserEvent.direct_user_request] - * is set. - * - * Generated from protobuf field string user_agent = 2; - * @return string - */ - public function getUserAgent() - { - return $this->user_agent; - } - - /** - * User agent as included in the HTTP header. - * The field must be a UTF-8 encoded string with a length limit of 1,000 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * This should not be set when using the client side event reporting with - * GTM or JavaScript tag in - * [UserEventService.CollectUserEvent][google.cloud.discoveryengine.v1.UserEventService.CollectUserEvent] - * or if - * [UserEvent.direct_user_request][google.cloud.discoveryengine.v1.UserEvent.direct_user_request] - * is set. - * - * Generated from protobuf field string user_agent = 2; - * @param string $var - * @return $this - */ - public function setUserAgent($var) - { - GPBUtil::checkString($var, True); - $this->user_agent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WorkspaceConfig.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WorkspaceConfig.php deleted file mode 100644 index eebbfc3e2900..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WorkspaceConfig.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.discoveryengine.v1.WorkspaceConfig - */ -class WorkspaceConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Google Workspace data source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; - */ - protected $type = 0; - /** - * Obfuscated Dasher customer ID. - * - * Generated from protobuf field string dasher_customer_id = 2; - */ - protected $dasher_customer_id = ''; - /** - * Optional. The super admin service account for the workspace that will be - * used for access token generation. For now we only use it for Native Google - * Drive connector data ingestion. - * - * Generated from protobuf field string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $super_admin_service_account = ''; - /** - * Optional. The super admin email address for the workspace that will be used - * for access token generation. For now we only use it for Native Google Drive - * connector data ingestion. - * - * Generated from protobuf field string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $super_admin_email_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The Google Workspace data source. - * @type string $dasher_customer_id - * Obfuscated Dasher customer ID. - * @type string $super_admin_service_account - * Optional. The super admin service account for the workspace that will be - * used for access token generation. For now we only use it for Native Google - * Drive connector data ingestion. - * @type string $super_admin_email_address - * Optional. The super admin email address for the workspace that will be used - * for access token generation. For now we only use it for Native Google Drive - * connector data ingestion. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\DataStore::initOnce(); - parent::__construct($data); - } - - /** - * The Google Workspace data source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The Google Workspace data source. - * - * Generated from protobuf field .google.cloud.discoveryengine.v1.WorkspaceConfig.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DiscoveryEngine\V1\WorkspaceConfig\Type::class); - $this->type = $var; - - return $this; - } - - /** - * Obfuscated Dasher customer ID. - * - * Generated from protobuf field string dasher_customer_id = 2; - * @return string - */ - public function getDasherCustomerId() - { - return $this->dasher_customer_id; - } - - /** - * Obfuscated Dasher customer ID. - * - * Generated from protobuf field string dasher_customer_id = 2; - * @param string $var - * @return $this - */ - public function setDasherCustomerId($var) - { - GPBUtil::checkString($var, True); - $this->dasher_customer_id = $var; - - return $this; - } - - /** - * Optional. The super admin service account for the workspace that will be - * used for access token generation. For now we only use it for Native Google - * Drive connector data ingestion. - * - * Generated from protobuf field string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSuperAdminServiceAccount() - { - return $this->super_admin_service_account; - } - - /** - * Optional. The super admin service account for the workspace that will be - * used for access token generation. For now we only use it for Native Google - * Drive connector data ingestion. - * - * Generated from protobuf field string super_admin_service_account = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSuperAdminServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->super_admin_service_account = $var; - - return $this; - } - - /** - * Optional. The super admin email address for the workspace that will be used - * for access token generation. For now we only use it for Native Google Drive - * connector data ingestion. - * - * Generated from protobuf field string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSuperAdminEmailAddress() - { - return $this->super_admin_email_address; - } - - /** - * Optional. The super admin email address for the workspace that will be used - * for access token generation. For now we only use it for Native Google Drive - * connector data ingestion. - * - * Generated from protobuf field string super_admin_email_address = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSuperAdminEmailAddress($var) - { - GPBUtil::checkString($var, True); - $this->super_admin_email_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WorkspaceConfig/Type.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WorkspaceConfig/Type.php deleted file mode 100644 index b96a01b9bfb2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WorkspaceConfig/Type.php +++ /dev/null @@ -1,99 +0,0 @@ -google.cloud.discoveryengine.v1.WorkspaceConfig.Type - */ -class Type -{ - /** - * Defaults to an unspecified Workspace type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Workspace Data Store contains Drive data - * - * Generated from protobuf enum GOOGLE_DRIVE = 1; - */ - const GOOGLE_DRIVE = 1; - /** - * Workspace Data Store contains Mail data - * - * Generated from protobuf enum GOOGLE_MAIL = 2; - */ - const GOOGLE_MAIL = 2; - /** - * Workspace Data Store contains Sites data - * - * Generated from protobuf enum GOOGLE_SITES = 3; - */ - const GOOGLE_SITES = 3; - /** - * Workspace Data Store contains Calendar data - * - * Generated from protobuf enum GOOGLE_CALENDAR = 4; - */ - const GOOGLE_CALENDAR = 4; - /** - * Workspace Data Store contains Chat data - * - * Generated from protobuf enum GOOGLE_CHAT = 5; - */ - const GOOGLE_CHAT = 5; - /** - * Workspace Data Store contains Groups data - * - * Generated from protobuf enum GOOGLE_GROUPS = 6; - */ - const GOOGLE_GROUPS = 6; - /** - * Workspace Data Store contains Keep data - * - * Generated from protobuf enum GOOGLE_KEEP = 7; - */ - const GOOGLE_KEEP = 7; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::GOOGLE_DRIVE => 'GOOGLE_DRIVE', - self::GOOGLE_MAIL => 'GOOGLE_MAIL', - self::GOOGLE_SITES => 'GOOGLE_SITES', - self::GOOGLE_CALENDAR => 'GOOGLE_CALENDAR', - self::GOOGLE_CHAT => 'GOOGLE_CHAT', - self::GOOGLE_GROUPS => 'GOOGLE_GROUPS', - self::GOOGLE_KEEP => 'GOOGLE_KEEP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DiscoveryEngine\V1\WorkspaceConfig_Type::class); - diff --git a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WriteUserEventRequest.php b/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WriteUserEventRequest.php deleted file mode 100644 index c3694fc7145a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/proto/src/Google/Cloud/DiscoveryEngine/V1/WriteUserEventRequest.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.discoveryengine.v1.WriteUserEventRequest - */ -class WriteUserEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name. - * If the write user event action is applied in - * [DataStore][google.cloud.discoveryengine.v1.DataStore] level, the format - * is: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1.DataStore], the format is: - * `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. User event to write. - * - * Generated from protobuf field optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $user_event = null; - /** - * If set to true, the user event is written asynchronously after - * validation, and the API responds without waiting for the write. - * - * Generated from protobuf field bool write_async = 3; - */ - protected $write_async = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource name. - * If the write user event action is applied in - * [DataStore][google.cloud.discoveryengine.v1.DataStore] level, the format - * is: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1.DataStore], the format is: - * `projects/{project}/locations/{location}`. - * @type \Google\Cloud\DiscoveryEngine\V1\UserEvent $user_event - * Required. User event to write. - * @type bool $write_async - * If set to true, the user event is written asynchronously after - * validation, and the API responds without waiting for the write. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Discoveryengine\V1\UserEventService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name. - * If the write user event action is applied in - * [DataStore][google.cloud.discoveryengine.v1.DataStore] level, the format - * is: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1.DataStore], the format is: - * `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 name. - * If the write user event action is applied in - * [DataStore][google.cloud.discoveryengine.v1.DataStore] level, the format - * is: - * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`. - * If the write user event action is applied in [Location][] level, for - * example, the event with - * [Document][google.cloud.discoveryengine.v1.Document] across multiple - * [DataStore][google.cloud.discoveryengine.v1.DataStore], the format is: - * `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. User event to write. - * - * Generated from protobuf field optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DiscoveryEngine\V1\UserEvent|null - */ - public function getUserEvent() - { - return $this->user_event; - } - - public function hasUserEvent() - { - return isset($this->user_event); - } - - public function clearUserEvent() - { - unset($this->user_event); - } - - /** - * Required. User event to write. - * - * Generated from protobuf field optional .google.cloud.discoveryengine.v1.UserEvent user_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DiscoveryEngine\V1\UserEvent $var - * @return $this - */ - public function setUserEvent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DiscoveryEngine\V1\UserEvent::class); - $this->user_event = $var; - - return $this; - } - - /** - * If set to true, the user event is written asynchronously after - * validation, and the API responds without waiting for the write. - * - * Generated from protobuf field bool write_async = 3; - * @return bool - */ - public function getWriteAsync() - { - return $this->write_async; - } - - /** - * If set to true, the user event is written asynchronously after - * validation, and the API responds without waiting for the write. - * - * Generated from protobuf field bool write_async = 3; - * @param bool $var - * @return $this - */ - public function setWriteAsync($var) - { - GPBUtil::checkBool($var); - $this->write_async = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/complete_query.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/complete_query.php deleted file mode 100644 index 74bde1aae7a3..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/complete_query.php +++ /dev/null @@ -1,81 +0,0 @@ -setDataStore($formattedDataStore) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var CompleteQueryResponse $response */ - $response = $completionServiceClient->completeQuery($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedDataStore = CompletionServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - $query = '[QUERY]'; - - complete_query_sample($formattedDataStore, $query); -} -// [END discoveryengine_v1_generated_CompletionService_CompleteQuery_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/import_completion_suggestions.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/import_completion_suggestions.php deleted file mode 100644 index cdfa766a10c0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/import_completion_suggestions.php +++ /dev/null @@ -1,92 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $completionServiceClient->importCompletionSuggestions($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ImportCompletionSuggestionsResponse $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 = CompletionServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - import_completion_suggestions_sample($formattedParent); -} -// [END discoveryengine_v1_generated_CompletionService_ImportCompletionSuggestions_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/import_suggestion_deny_list_entries.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/import_suggestion_deny_list_entries.php deleted file mode 100644 index 2433770ac793..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/import_suggestion_deny_list_entries.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $completionServiceClient->importSuggestionDenyListEntries($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ImportSuggestionDenyListEntriesResponse $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 = CompletionServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - import_suggestion_deny_list_entries_sample($formattedParent); -} -// [END discoveryengine_v1_generated_CompletionService_ImportSuggestionDenyListEntries_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/purge_completion_suggestions.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/purge_completion_suggestions.php deleted file mode 100644 index 25e589e2fd60..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/purge_completion_suggestions.php +++ /dev/null @@ -1,91 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $completionServiceClient->purgeCompletionSuggestions($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var PurgeCompletionSuggestionsResponse $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 = CompletionServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - purge_completion_suggestions_sample($formattedParent); -} -// [END discoveryengine_v1_generated_CompletionService_PurgeCompletionSuggestions_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/purge_suggestion_deny_list_entries.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/purge_suggestion_deny_list_entries.php deleted file mode 100644 index 74c3f4412aa6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/CompletionServiceClient/purge_suggestion_deny_list_entries.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $completionServiceClient->purgeSuggestionDenyListEntries($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var PurgeSuggestionDenyListEntriesResponse $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 = CompletionServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - purge_suggestion_deny_list_entries_sample($formattedParent); -} -// [END discoveryengine_v1_generated_CompletionService_PurgeSuggestionDenyListEntries_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/create_control.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/create_control.php deleted file mode 100644 index 93edef83211e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/create_control.php +++ /dev/null @@ -1,105 +0,0 @@ -setDisplayName($controlDisplayName) - ->setSolutionType($controlSolutionType); - $request = (new CreateControlRequest()) - ->setParent($formattedParent) - ->setControl($control) - ->setControlId($controlId); - - // Call the API and handle any network failures. - try { - /** @var Control $response */ - $response = $controlServiceClient->createControl($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ControlServiceClient::dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $controlDisplayName = '[DISPLAY_NAME]'; - $controlSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $controlId = '[CONTROL_ID]'; - - create_control_sample($formattedParent, $controlDisplayName, $controlSolutionType, $controlId); -} -// [END discoveryengine_v1_generated_ControlService_CreateControl_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/delete_control.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/delete_control.php deleted file mode 100644 index e772aa8570de..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/delete_control.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $controlServiceClient->deleteControl($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 = ControlServiceClient::controlName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[CONTROL]' - ); - - delete_control_sample($formattedName); -} -// [END discoveryengine_v1_generated_ControlService_DeleteControl_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/get_control.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/get_control.php deleted file mode 100644 index 6f3b84a43497..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/get_control.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Control $response */ - $response = $controlServiceClient->getControl($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ControlServiceClient::controlName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[CONTROL]' - ); - - get_control_sample($formattedName); -} -// [END discoveryengine_v1_generated_ControlService_GetControl_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/list_controls.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/list_controls.php deleted file mode 100644 index a11fbe61af5a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/list_controls.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $controlServiceClient->listControls($request); - - /** @var Control $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 = ControlServiceClient::dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - - list_controls_sample($formattedParent); -} -// [END discoveryengine_v1_generated_ControlService_ListControls_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/update_control.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/update_control.php deleted file mode 100644 index 83411860c378..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ControlServiceClient/update_control.php +++ /dev/null @@ -1,86 +0,0 @@ -setDisplayName($controlDisplayName) - ->setSolutionType($controlSolutionType); - $request = (new UpdateControlRequest()) - ->setControl($control); - - // Call the API and handle any network failures. - try { - /** @var Control $response */ - $response = $controlServiceClient->updateControl($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $controlDisplayName = '[DISPLAY_NAME]'; - $controlSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - - update_control_sample($controlDisplayName, $controlSolutionType); -} -// [END discoveryengine_v1_generated_ControlService_UpdateControl_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/answer_query.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/answer_query.php deleted file mode 100644 index 0ecbc54e367d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/answer_query.php +++ /dev/null @@ -1,84 +0,0 @@ -setServingConfig($formattedServingConfig) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var AnswerQueryResponse $response */ - $response = $conversationalSearchServiceClient->answerQuery($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedServingConfig = ConversationalSearchServiceClient::servingConfigName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[SERVING_CONFIG]' - ); - - answer_query_sample($formattedServingConfig); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_AnswerQuery_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/converse_conversation.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/converse_conversation.php deleted file mode 100644 index 716d9fc3bc16..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/converse_conversation.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName) - ->setQuery($query); - - // Call the API and handle any network failures. - try { - /** @var ConverseConversationResponse $response */ - $response = $conversationalSearchServiceClient->converseConversation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConversationalSearchServiceClient::conversationName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[CONVERSATION]' - ); - - converse_conversation_sample($formattedName); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_ConverseConversation_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/create_conversation.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/create_conversation.php deleted file mode 100644 index 926ecc0d2084..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/create_conversation.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent) - ->setConversation($conversation); - - // Call the API and handle any network failures. - try { - /** @var Conversation $response */ - $response = $conversationalSearchServiceClient->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 = ConversationalSearchServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - create_conversation_sample($formattedParent); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_CreateConversation_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/create_session.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/create_session.php deleted file mode 100644 index 5c2b291d9d5b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/create_session.php +++ /dev/null @@ -1,81 +0,0 @@ -setParent($formattedParent) - ->setSession($session); - - // Call the API and handle any network failures. - try { - /** @var Session $response */ - $response = $conversationalSearchServiceClient->createSession($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = ConversationalSearchServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - create_session_sample($formattedParent); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_CreateSession_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/delete_conversation.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/delete_conversation.php deleted file mode 100644 index 290b898999e9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/delete_conversation.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $conversationalSearchServiceClient->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 = ConversationalSearchServiceClient::conversationName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[CONVERSATION]' - ); - - delete_conversation_sample($formattedName); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_DeleteConversation_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/delete_session.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/delete_session.php deleted file mode 100644 index 56a10c6c761a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/delete_session.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $conversationalSearchServiceClient->deleteSession($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 = ConversationalSearchServiceClient::sessionName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[SESSION]' - ); - - delete_session_sample($formattedName); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_DeleteSession_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_answer.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_answer.php deleted file mode 100644 index b2522b33de54..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_answer.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Answer $response */ - $response = $conversationalSearchServiceClient->getAnswer($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConversationalSearchServiceClient::answerName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[SESSION]', - '[ANSWER]' - ); - - get_answer_sample($formattedName); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_GetAnswer_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_conversation.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_conversation.php deleted file mode 100644 index 8d0e1a75c08b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_conversation.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Conversation $response */ - $response = $conversationalSearchServiceClient->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 = ConversationalSearchServiceClient::conversationName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[CONVERSATION]' - ); - - get_conversation_sample($formattedName); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_GetConversation_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_session.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_session.php deleted file mode 100644 index b4d11faecb87..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/get_session.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Session $response */ - $response = $conversationalSearchServiceClient->getSession($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = ConversationalSearchServiceClient::sessionName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[SESSION]' - ); - - get_session_sample($formattedName); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_GetSession_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/list_conversations.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/list_conversations.php deleted file mode 100644 index 0e42b7036f50..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/list_conversations.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conversationalSearchServiceClient->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 = ConversationalSearchServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - list_conversations_sample($formattedParent); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_ListConversations_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/list_sessions.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/list_sessions.php deleted file mode 100644 index 8dff2d9fff49..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/list_sessions.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $conversationalSearchServiceClient->listSessions($request); - - /** @var Session $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 = ConversationalSearchServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - list_sessions_sample($formattedParent); -} -// [END discoveryengine_v1_generated_ConversationalSearchService_ListSessions_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/update_conversation.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/update_conversation.php deleted file mode 100644 index aadde0112e93..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/update_conversation.php +++ /dev/null @@ -1,64 +0,0 @@ -setConversation($conversation); - - // Call the API and handle any network failures. - try { - /** @var Conversation $response */ - $response = $conversationalSearchServiceClient->updateConversation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END discoveryengine_v1_generated_ConversationalSearchService_UpdateConversation_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/update_session.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/update_session.php deleted file mode 100644 index 39815db255b1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ConversationalSearchServiceClient/update_session.php +++ /dev/null @@ -1,63 +0,0 @@ -setSession($session); - - // Call the API and handle any network failures. - try { - /** @var Session $response */ - $response = $conversationalSearchServiceClient->updateSession($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END discoveryengine_v1_generated_ConversationalSearchService_UpdateSession_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/create_data_store.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/create_data_store.php deleted file mode 100644 index 061f2048e5b3..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/create_data_store.php +++ /dev/null @@ -1,115 +0,0 @@ -setDisplayName($dataStoreDisplayName); - $request = (new CreateDataStoreRequest()) - ->setParent($formattedParent) - ->setDataStore($dataStore) - ->setDataStoreId($dataStoreId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataStoreServiceClient->createDataStore($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DataStore $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 = DataStoreServiceClient::collectionName( - '[PROJECT]', - '[LOCATION]', - '[COLLECTION]' - ); - $dataStoreDisplayName = '[DISPLAY_NAME]'; - $dataStoreId = '[DATA_STORE_ID]'; - - create_data_store_sample($formattedParent, $dataStoreDisplayName, $dataStoreId); -} -// [END discoveryengine_v1_generated_DataStoreService_CreateDataStore_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/delete_data_store.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/delete_data_store.php deleted file mode 100644 index 3ac5c6f0f61c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/delete_data_store.php +++ /dev/null @@ -1,89 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $dataStoreServiceClient->deleteDataStore($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 = DataStoreServiceClient::dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - - delete_data_store_sample($formattedName); -} -// [END discoveryengine_v1_generated_DataStoreService_DeleteDataStore_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/get_data_store.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/get_data_store.php deleted file mode 100644 index 1c736ce4dba1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/get_data_store.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DataStore $response */ - $response = $dataStoreServiceClient->getDataStore($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DataStoreServiceClient::dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - - get_data_store_sample($formattedName); -} -// [END discoveryengine_v1_generated_DataStoreService_GetDataStore_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/list_data_stores.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/list_data_stores.php deleted file mode 100644 index 541a485e5886..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/list_data_stores.php +++ /dev/null @@ -1,87 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dataStoreServiceClient->listDataStores($request); - - /** @var DataStore $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 = DataStoreServiceClient::collectionName( - '[PROJECT]', - '[LOCATION]', - '[COLLECTION]' - ); - - list_data_stores_sample($formattedParent); -} -// [END discoveryengine_v1_generated_DataStoreService_ListDataStores_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/update_data_store.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/update_data_store.php deleted file mode 100644 index 0625666d0e06..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DataStoreServiceClient/update_data_store.php +++ /dev/null @@ -1,75 +0,0 @@ -setDisplayName($dataStoreDisplayName); - $request = (new UpdateDataStoreRequest()) - ->setDataStore($dataStore); - - // Call the API and handle any network failures. - try { - /** @var DataStore $response */ - $response = $dataStoreServiceClient->updateDataStore($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $dataStoreDisplayName = '[DISPLAY_NAME]'; - - update_data_store_sample($dataStoreDisplayName); -} -// [END discoveryengine_v1_generated_DataStoreService_UpdateDataStore_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/batch_get_documents_metadata.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/batch_get_documents_metadata.php deleted file mode 100644 index 8ececf25d6ca..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/batch_get_documents_metadata.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent) - ->setMatcher($matcher); - - // Call the API and handle any network failures. - try { - /** @var BatchGetDocumentsMetadataResponse $response */ - $response = $documentServiceClient->batchGetDocumentsMetadata($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DocumentServiceClient::branchName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[BRANCH]' - ); - - batch_get_documents_metadata_sample($formattedParent); -} -// [END discoveryengine_v1_generated_DocumentService_BatchGetDocumentsMetadata_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/create_document.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/create_document.php deleted file mode 100644 index 98e057a75169..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/create_document.php +++ /dev/null @@ -1,98 +0,0 @@ -setParent($formattedParent) - ->setDocument($document) - ->setDocumentId($documentId); - - // Call the API and handle any network failures. - try { - /** @var Document $response */ - $response = $documentServiceClient->createDocument($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DocumentServiceClient::branchName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[BRANCH]' - ); - $documentId = '[DOCUMENT_ID]'; - - create_document_sample($formattedParent, $documentId); -} -// [END discoveryengine_v1_generated_DocumentService_CreateDocument_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/delete_document.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/delete_document.php deleted file mode 100644 index b8bcf319dffd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/delete_document.php +++ /dev/null @@ -1,84 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $documentServiceClient->deleteDocument($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 = DocumentServiceClient::documentName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[BRANCH]', - '[DOCUMENT]' - ); - - delete_document_sample($formattedName); -} -// [END discoveryengine_v1_generated_DocumentService_DeleteDocument_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/get_document.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/get_document.php deleted file mode 100644 index 00b20a1ab737..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/get_document.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Document $response */ - $response = $documentServiceClient->getDocument($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DocumentServiceClient::documentName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[BRANCH]', - '[DOCUMENT]' - ); - - get_document_sample($formattedName); -} -// [END discoveryengine_v1_generated_DocumentService_GetDocument_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/import_documents.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/import_documents.php deleted file mode 100644 index 02fdc8ded1af..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/import_documents.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentServiceClient->importDocuments($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ImportDocumentsResponse $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 = DocumentServiceClient::branchName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[BRANCH]' - ); - - import_documents_sample($formattedParent); -} -// [END discoveryengine_v1_generated_DocumentService_ImportDocuments_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/list_documents.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/list_documents.php deleted file mode 100644 index c4b2951da2a5..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/list_documents.php +++ /dev/null @@ -1,89 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $documentServiceClient->listDocuments($request); - - /** @var Document $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 = DocumentServiceClient::branchName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[BRANCH]' - ); - - list_documents_sample($formattedParent); -} -// [END discoveryengine_v1_generated_DocumentService_ListDocuments_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/purge_documents.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/purge_documents.php deleted file mode 100644 index 4e75e275dc71..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/purge_documents.php +++ /dev/null @@ -1,109 +0,0 @@ -setParent($formattedParent) - ->setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentServiceClient->purgeDocuments($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var PurgeDocumentsResponse $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 = DocumentServiceClient::branchName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[BRANCH]' - ); - $filter = '[FILTER]'; - - purge_documents_sample($formattedParent, $filter); -} -// [END discoveryengine_v1_generated_DocumentService_PurgeDocuments_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/update_document.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/update_document.php deleted file mode 100644 index 4b8255c0ce26..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/DocumentServiceClient/update_document.php +++ /dev/null @@ -1,59 +0,0 @@ -setDocument($document); - - // Call the API and handle any network failures. - try { - /** @var Document $response */ - $response = $documentServiceClient->updateDocument($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END discoveryengine_v1_generated_DocumentService_UpdateDocument_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/create_engine.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/create_engine.php deleted file mode 100644 index f9f614e446a1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/create_engine.php +++ /dev/null @@ -1,108 +0,0 @@ -setDisplayName($engineDisplayName) - ->setSolutionType($engineSolutionType); - $request = (new CreateEngineRequest()) - ->setParent($formattedParent) - ->setEngine($engine) - ->setEngineId($engineId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $engineServiceClient->createEngine($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Engine $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 = EngineServiceClient::collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $engineDisplayName = '[DISPLAY_NAME]'; - $engineSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $engineId = '[ENGINE_ID]'; - - create_engine_sample($formattedParent, $engineDisplayName, $engineSolutionType, $engineId); -} -// [END discoveryengine_v1_generated_EngineService_CreateEngine_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/delete_engine.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/delete_engine.php deleted file mode 100644 index 1cc82aa63e0d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/delete_engine.php +++ /dev/null @@ -1,94 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $engineServiceClient->deleteEngine($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 = EngineServiceClient::engineName( - '[PROJECT]', - '[LOCATION]', - '[COLLECTION]', - '[ENGINE]' - ); - - delete_engine_sample($formattedName); -} -// [END discoveryengine_v1_generated_EngineService_DeleteEngine_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/get_engine.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/get_engine.php deleted file mode 100644 index 12cd3aad78c4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/get_engine.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Engine $response */ - $response = $engineServiceClient->getEngine($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EngineServiceClient::engineName( - '[PROJECT]', - '[LOCATION]', - '[COLLECTION]', - '[ENGINE]' - ); - - get_engine_sample($formattedName); -} -// [END discoveryengine_v1_generated_EngineService_GetEngine_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/list_engines.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/list_engines.php deleted file mode 100644 index e4ad52697b11..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/list_engines.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $engineServiceClient->listEngines($request); - - /** @var Engine $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 = EngineServiceClient::collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - - list_engines_sample($formattedParent); -} -// [END discoveryengine_v1_generated_EngineService_ListEngines_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/update_engine.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/update_engine.php deleted file mode 100644 index afaf15f2e882..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/EngineServiceClient/update_engine.php +++ /dev/null @@ -1,77 +0,0 @@ -setDisplayName($engineDisplayName) - ->setSolutionType($engineSolutionType); - $request = (new UpdateEngineRequest()) - ->setEngine($engine); - - // Call the API and handle any network failures. - try { - /** @var Engine $response */ - $response = $engineServiceClient->updateEngine($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $engineDisplayName = '[DISPLAY_NAME]'; - $engineSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - - update_engine_sample($engineDisplayName, $engineSolutionType); -} -// [END discoveryengine_v1_generated_EngineService_UpdateEngine_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/check_grounding.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/check_grounding.php deleted file mode 100644 index 0ce05015a4f6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/check_grounding.php +++ /dev/null @@ -1,76 +0,0 @@ -setGroundingConfig($formattedGroundingConfig); - - // Call the API and handle any network failures. - try { - /** @var CheckGroundingResponse $response */ - $response = $groundedGenerationServiceClient->checkGrounding($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedGroundingConfig = GroundedGenerationServiceClient::groundingConfigName( - '[PROJECT]', - '[LOCATION]', - '[GROUNDING_CONFIG]' - ); - - check_grounding_sample($formattedGroundingConfig); -} -// [END discoveryengine_v1_generated_GroundedGenerationService_CheckGrounding_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/generate_grounded_content.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/generate_grounded_content.php deleted file mode 100644 index ea3865e75052..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/generate_grounded_content.php +++ /dev/null @@ -1,73 +0,0 @@ -setLocation($formattedLocation); - - // Call the API and handle any network failures. - try { - /** @var GenerateGroundedContentResponse $response */ - $response = $groundedGenerationServiceClient->generateGroundedContent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - 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 = GroundedGenerationServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - generate_grounded_content_sample($formattedLocation); -} -// [END discoveryengine_v1_generated_GroundedGenerationService_GenerateGroundedContent_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/stream_generate_grounded_content.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/stream_generate_grounded_content.php deleted file mode 100644 index ea57f6a63064..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/GroundedGenerationServiceClient/stream_generate_grounded_content.php +++ /dev/null @@ -1,79 +0,0 @@ -setLocation($formattedLocation); - - // Call the API and handle any network failures. - try { - /** @var BidiStream $stream */ - $stream = $groundedGenerationServiceClient->streamGenerateGroundedContent(); - $stream->writeAll([$request,]); - - /** @var GenerateGroundedContentResponse $element */ - foreach ($stream->closeWriteAndReadAll() as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - 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 = GroundedGenerationServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - stream_generate_grounded_content_sample($formattedLocation); -} -// [END discoveryengine_v1_generated_GroundedGenerationService_StreamGenerateGroundedContent_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ProjectServiceClient/provision_project.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ProjectServiceClient/provision_project.php deleted file mode 100644 index deda6d674ee8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/ProjectServiceClient/provision_project.php +++ /dev/null @@ -1,105 +0,0 @@ -setName($formattedName) - ->setAcceptDataUseTerms($acceptDataUseTerms) - ->setDataUseTermsVersion($dataUseTermsVersion); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $projectServiceClient->provisionProject($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Project $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 = ProjectServiceClient::projectName('[PROJECT]'); - $acceptDataUseTerms = false; - $dataUseTermsVersion = '[DATA_USE_TERMS_VERSION]'; - - provision_project_sample($formattedName, $acceptDataUseTerms, $dataUseTermsVersion); -} -// [END discoveryengine_v1_generated_ProjectService_ProvisionProject_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/RankServiceClient/rank.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/RankServiceClient/rank.php deleted file mode 100644 index 41a011e4e30e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/RankServiceClient/rank.php +++ /dev/null @@ -1,79 +0,0 @@ -setRankingConfig($formattedRankingConfig) - ->setRecords($records); - - // Call the API and handle any network failures. - try { - /** @var RankResponse $response */ - $response = $rankServiceClient->rank($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedRankingConfig = RankServiceClient::rankingConfigName( - '[PROJECT]', - '[LOCATION]', - '[RANKING_CONFIG]' - ); - - rank_sample($formattedRankingConfig); -} -// [END discoveryengine_v1_generated_RankService_Rank_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/RecommendationServiceClient/recommend.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/RecommendationServiceClient/recommend.php deleted file mode 100644 index c81e2ef31989..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/RecommendationServiceClient/recommend.php +++ /dev/null @@ -1,134 +0,0 @@ - Men > Jeans - * - * Retail-related values: - * - * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping - * * `purchase`: Purchase an item(s) - * - * Media-related values: - * - * * `media-play`: Start/resume watching a video, playing a song, etc. - * * `media-complete`: Finished or stopped midway through a video, song, etc. - * @param string $userEventUserPseudoId A unique identifier for tracking visitors. - * - * For example, this could be implemented with an HTTP cookie, which should be - * able to uniquely identify a visitor on a single device. This unique - * identifier should not change if the visitor log in/out of the website. - * - * Do not set the field to the same fixed ID for different users. This mixes - * the event history of those users together, which results in degraded model - * quality. - * - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * The field should not contain PII or user-data. We recommend to use Google - * Analytics [Client - * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) - * for this field. - */ -function recommend_sample( - string $formattedServingConfig, - string $userEventEventType, - string $userEventUserPseudoId -): void { - // Create a client. - $recommendationServiceClient = new RecommendationServiceClient(); - - // Prepare the request message. - $userEvent = (new UserEvent()) - ->setEventType($userEventEventType) - ->setUserPseudoId($userEventUserPseudoId); - $request = (new RecommendRequest()) - ->setServingConfig($formattedServingConfig) - ->setUserEvent($userEvent); - - // Call the API and handle any network failures. - try { - /** @var RecommendResponse $response */ - $response = $recommendationServiceClient->recommend($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedServingConfig = RecommendationServiceClient::servingConfigName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[SERVING_CONFIG]' - ); - $userEventEventType = '[EVENT_TYPE]'; - $userEventUserPseudoId = '[USER_PSEUDO_ID]'; - - recommend_sample($formattedServingConfig, $userEventEventType, $userEventUserPseudoId); -} -// [END discoveryengine_v1_generated_RecommendationService_Recommend_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/create_schema.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/create_schema.php deleted file mode 100644 index f94b4251c250..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/create_schema.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setSchema($schema) - ->setSchemaId($schemaId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $schemaServiceClient->createSchema($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Schema $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 = SchemaServiceClient::dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $schemaId = '[SCHEMA_ID]'; - - create_schema_sample($formattedParent, $schemaId); -} -// [END discoveryengine_v1_generated_SchemaService_CreateSchema_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/delete_schema.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/delete_schema.php deleted file mode 100644 index 4334b38beb1a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/delete_schema.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $schemaServiceClient->deleteSchema($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 = SchemaServiceClient::schemaName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[SCHEMA]' - ); - - delete_schema_sample($formattedName); -} -// [END discoveryengine_v1_generated_SchemaService_DeleteSchema_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/get_schema.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/get_schema.php deleted file mode 100644 index 1217bd31b7d8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/get_schema.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Schema $response */ - $response = $schemaServiceClient->getSchema($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = SchemaServiceClient::schemaName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[SCHEMA]' - ); - - get_schema_sample($formattedName); -} -// [END discoveryengine_v1_generated_SchemaService_GetSchema_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/list_schemas.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/list_schemas.php deleted file mode 100644 index 7d1fd2e1aa37..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/list_schemas.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $schemaServiceClient->listSchemas($request); - - /** @var Schema $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 = SchemaServiceClient::dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - - list_schemas_sample($formattedParent); -} -// [END discoveryengine_v1_generated_SchemaService_ListSchemas_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/update_schema.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/update_schema.php deleted file mode 100644 index 3ae944f1062c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SchemaServiceClient/update_schema.php +++ /dev/null @@ -1,71 +0,0 @@ -setSchema($schema); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $schemaServiceClient->updateSchema($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Schema $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 discoveryengine_v1_generated_SchemaService_UpdateSchema_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchServiceClient/search.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchServiceClient/search.php deleted file mode 100644 index f83a1d7a0738..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchServiceClient/search.php +++ /dev/null @@ -1,86 +0,0 @@ -setServingConfig($formattedServingConfig); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $searchServiceClient->search($request); - - /** @var SearchResult $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 -{ - $formattedServingConfig = SearchServiceClient::servingConfigName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[SERVING_CONFIG]' - ); - - search_sample($formattedServingConfig); -} -// [END discoveryengine_v1_generated_SearchService_Search_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchServiceClient/search_lite.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchServiceClient/search_lite.php deleted file mode 100644 index 241b97ea5a71..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchServiceClient/search_lite.php +++ /dev/null @@ -1,98 +0,0 @@ -setServingConfig($formattedServingConfig); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $searchServiceClient->searchLite($request); - - /** @var SearchResult $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 -{ - $formattedServingConfig = SearchServiceClient::servingConfigName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[SERVING_CONFIG]' - ); - - search_lite_sample($formattedServingConfig); -} -// [END discoveryengine_v1_generated_SearchService_SearchLite_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchTuningServiceClient/list_custom_models.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchTuningServiceClient/list_custom_models.php deleted file mode 100644 index deab985b73cf..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchTuningServiceClient/list_custom_models.php +++ /dev/null @@ -1,78 +0,0 @@ -setDataStore($formattedDataStore); - - // Call the API and handle any network failures. - try { - /** @var ListCustomModelsResponse $response */ - $response = $searchTuningServiceClient->listCustomModels($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedDataStore = SearchTuningServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - list_custom_models_sample($formattedDataStore); -} -// [END discoveryengine_v1_generated_SearchTuningService_ListCustomModels_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchTuningServiceClient/train_custom_model.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchTuningServiceClient/train_custom_model.php deleted file mode 100644 index 5de4605788d8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SearchTuningServiceClient/train_custom_model.php +++ /dev/null @@ -1,89 +0,0 @@ -setDataStore($formattedDataStore); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $searchTuningServiceClient->trainCustomModel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var TrainCustomModelResponse $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 -{ - $formattedDataStore = SearchTuningServiceClient::dataStoreName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - train_custom_model_sample($formattedDataStore); -} -// [END discoveryengine_v1_generated_SearchTuningService_TrainCustomModel_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/batch_create_target_sites.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/batch_create_target_sites.php deleted file mode 100644 index 4e97b37be45a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/batch_create_target_sites.php +++ /dev/null @@ -1,119 +0,0 @@ -setProvidedUriPattern($requestsTargetSiteProvidedUriPattern); - $createTargetSiteRequest = (new CreateTargetSiteRequest()) - ->setParent($formattedRequestsParent) - ->setTargetSite($requestsTargetSite); - $requests = [$createTargetSiteRequest,]; - $request = (new BatchCreateTargetSitesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $siteSearchEngineServiceClient->batchCreateTargetSites($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BatchCreateTargetSitesResponse $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 = SiteSearchEngineServiceClient::siteSearchEngineName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - $formattedRequestsParent = SiteSearchEngineServiceClient::siteSearchEngineName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - $requestsTargetSiteProvidedUriPattern = '[PROVIDED_URI_PATTERN]'; - - batch_create_target_sites_sample( - $formattedParent, - $formattedRequestsParent, - $requestsTargetSiteProvidedUriPattern - ); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_BatchCreateTargetSites_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/batch_verify_target_sites.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/batch_verify_target_sites.php deleted file mode 100644 index 472b36762b84..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/batch_verify_target_sites.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $siteSearchEngineServiceClient->batchVerifyTargetSites($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BatchVerifyTargetSitesResponse $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 = SiteSearchEngineServiceClient::siteSearchEngineName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - batch_verify_target_sites_sample($formattedParent); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_BatchVerifyTargetSites_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/create_target_site.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/create_target_site.php deleted file mode 100644 index a2ca7eb7c357..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/create_target_site.php +++ /dev/null @@ -1,97 +0,0 @@ -setProvidedUriPattern($targetSiteProvidedUriPattern); - $request = (new CreateTargetSiteRequest()) - ->setParent($formattedParent) - ->setTargetSite($targetSite); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $siteSearchEngineServiceClient->createTargetSite($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var TargetSite $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 = SiteSearchEngineServiceClient::siteSearchEngineName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - $targetSiteProvidedUriPattern = '[PROVIDED_URI_PATTERN]'; - - create_target_site_sample($formattedParent, $targetSiteProvidedUriPattern); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_CreateTargetSite_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/delete_target_site.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/delete_target_site.php deleted file mode 100644 index ee04503698c9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/delete_target_site.php +++ /dev/null @@ -1,94 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $siteSearchEngineServiceClient->deleteTargetSite($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 = SiteSearchEngineServiceClient::targetSiteName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[TARGET_SITE]' - ); - - delete_target_site_sample($formattedName); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_DeleteTargetSite_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/disable_advanced_site_search.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/disable_advanced_site_search.php deleted file mode 100644 index 8dc330d1dc05..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/disable_advanced_site_search.php +++ /dev/null @@ -1,90 +0,0 @@ -setSiteSearchEngine($formattedSiteSearchEngine); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $siteSearchEngineServiceClient->disableAdvancedSiteSearch($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DisableAdvancedSiteSearchResponse $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 -{ - $formattedSiteSearchEngine = SiteSearchEngineServiceClient::siteSearchEngineName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - disable_advanced_site_search_sample($formattedSiteSearchEngine); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_DisableAdvancedSiteSearch_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/enable_advanced_site_search.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/enable_advanced_site_search.php deleted file mode 100644 index a7e82d9e9f00..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/enable_advanced_site_search.php +++ /dev/null @@ -1,90 +0,0 @@ -setSiteSearchEngine($formattedSiteSearchEngine); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $siteSearchEngineServiceClient->enableAdvancedSiteSearch($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var EnableAdvancedSiteSearchResponse $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 -{ - $formattedSiteSearchEngine = SiteSearchEngineServiceClient::siteSearchEngineName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - enable_advanced_site_search_sample($formattedSiteSearchEngine); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_EnableAdvancedSiteSearch_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/fetch_domain_verification_status.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/fetch_domain_verification_status.php deleted file mode 100644 index 5323c0f8a672..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/fetch_domain_verification_status.php +++ /dev/null @@ -1,84 +0,0 @@ -setSiteSearchEngine($formattedSiteSearchEngine); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $siteSearchEngineServiceClient->fetchDomainVerificationStatus($request); - - /** @var TargetSite $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 -{ - $formattedSiteSearchEngine = SiteSearchEngineServiceClient::siteSearchEngineName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - fetch_domain_verification_status_sample($formattedSiteSearchEngine); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_FetchDomainVerificationStatus_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/get_site_search_engine.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/get_site_search_engine.php deleted file mode 100644 index 01dbe7ce3a9f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/get_site_search_engine.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var SiteSearchEngine $response */ - $response = $siteSearchEngineServiceClient->getSiteSearchEngine($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = SiteSearchEngineServiceClient::siteSearchEngineName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - get_site_search_engine_sample($formattedName); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_GetSiteSearchEngine_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/get_target_site.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/get_target_site.php deleted file mode 100644 index 309e6db14b40..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/get_target_site.php +++ /dev/null @@ -1,85 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var TargetSite $response */ - $response = $siteSearchEngineServiceClient->getTargetSite($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = SiteSearchEngineServiceClient::targetSiteName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]', - '[TARGET_SITE]' - ); - - get_target_site_sample($formattedName); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_GetTargetSite_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/list_target_sites.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/list_target_sites.php deleted file mode 100644 index db7d3f0f9efe..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/list_target_sites.php +++ /dev/null @@ -1,86 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $siteSearchEngineServiceClient->listTargetSites($request); - - /** @var TargetSite $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 = SiteSearchEngineServiceClient::siteSearchEngineName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - - list_target_sites_sample($formattedParent); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_ListTargetSites_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/recrawl_uris.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/recrawl_uris.php deleted file mode 100644 index 11266cfd2a56..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/recrawl_uris.php +++ /dev/null @@ -1,96 +0,0 @@ -setSiteSearchEngine($formattedSiteSearchEngine) - ->setUris($uris); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $siteSearchEngineServiceClient->recrawlUris($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var RecrawlUrisResponse $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 -{ - $formattedSiteSearchEngine = SiteSearchEngineServiceClient::siteSearchEngineName( - '[PROJECT]', - '[LOCATION]', - '[DATA_STORE]' - ); - $urisElement = '[URIS]'; - - recrawl_uris_sample($formattedSiteSearchEngine, $urisElement); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_RecrawlUris_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/update_target_site.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/update_target_site.php deleted file mode 100644 index 271c310b6e2f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/SiteSearchEngineServiceClient/update_target_site.php +++ /dev/null @@ -1,85 +0,0 @@ -setProvidedUriPattern($targetSiteProvidedUriPattern); - $request = (new UpdateTargetSiteRequest()) - ->setTargetSite($targetSite); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $siteSearchEngineServiceClient->updateTargetSite($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var TargetSite $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 -{ - $targetSiteProvidedUriPattern = '[PROVIDED_URI_PATTERN]'; - - update_target_site_sample($targetSiteProvidedUriPattern); -} -// [END discoveryengine_v1_generated_SiteSearchEngineService_UpdateTargetSite_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/collect_user_event.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/collect_user_event.php deleted file mode 100644 index d1568ac8a755..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/collect_user_event.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent) - ->setUserEvent($userEvent); - - // Call the API and handle any network failures. - try { - /** @var HttpBody $response */ - $response = $userEventServiceClient->collectUserEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = UserEventServiceClient::dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $userEvent = '[USER_EVENT]'; - - collect_user_event_sample($formattedParent, $userEvent); -} -// [END discoveryengine_v1_generated_UserEventService_CollectUserEvent_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/import_user_events.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/import_user_events.php deleted file mode 100644 index 07154d9ac98f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/import_user_events.php +++ /dev/null @@ -1,90 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $userEventServiceClient->importUserEvents($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ImportUserEventsResponse $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 = UserEventServiceClient::dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - - import_user_events_sample($formattedParent); -} -// [END discoveryengine_v1_generated_UserEventService_ImportUserEvents_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/purge_user_events.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/purge_user_events.php deleted file mode 100644 index 7e5de6f5ae7d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/purge_user_events.php +++ /dev/null @@ -1,115 +0,0 @@ - "2012-04-23T18:25:43.511Z" - * eventTime < "2012-04-23T18:30:43.511Z"` - * * Deleting specific eventType: - * `eventType = "search"` - * * Deleting all events for a specific visitor: - * `userPseudoId = "visitor1024"` - * * Deleting all events inside a DataStore: - * `*` - * - * The filtering fields are assumed to have an implicit AND. - */ -function purge_user_events_sample(string $formattedParent, string $filter): void -{ - // Create a client. - $userEventServiceClient = new UserEventServiceClient(); - - // Prepare the request message. - $request = (new PurgeUserEventsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $userEventServiceClient->purgeUserEvents($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var PurgeUserEventsResponse $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 = UserEventServiceClient::dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $filter = '[FILTER]'; - - purge_user_events_sample($formattedParent, $filter); -} -// [END discoveryengine_v1_generated_UserEventService_PurgeUserEvents_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/write_user_event.php b/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/write_user_event.php deleted file mode 100644 index d1777a67d9b6..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/samples/V1/UserEventServiceClient/write_user_event.php +++ /dev/null @@ -1,125 +0,0 @@ - Men > Jeans - * - * Retail-related values: - * - * * `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping - * * `purchase`: Purchase an item(s) - * - * Media-related values: - * - * * `media-play`: Start/resume watching a video, playing a song, etc. - * * `media-complete`: Finished or stopped midway through a video, song, etc. - * @param string $userEventUserPseudoId A unique identifier for tracking visitors. - * - * For example, this could be implemented with an HTTP cookie, which should be - * able to uniquely identify a visitor on a single device. This unique - * identifier should not change if the visitor log in/out of the website. - * - * Do not set the field to the same fixed ID for different users. This mixes - * the event history of those users together, which results in degraded model - * quality. - * - * The field must be a UTF-8 encoded string with a length limit of 128 - * characters. Otherwise, an `INVALID_ARGUMENT` error is returned. - * - * The field should not contain PII or user-data. We recommend to use Google - * Analytics [Client - * ID](https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId) - * for this field. - */ -function write_user_event_sample( - string $formattedParent, - string $userEventEventType, - string $userEventUserPseudoId -): void { - // Create a client. - $userEventServiceClient = new UserEventServiceClient(); - - // Prepare the request message. - $userEvent = (new UserEvent()) - ->setEventType($userEventEventType) - ->setUserPseudoId($userEventUserPseudoId); - $request = (new WriteUserEventRequest()) - ->setParent($formattedParent) - ->setUserEvent($userEvent); - - // Call the API and handle any network failures. - try { - /** @var UserEvent $response */ - $response = $userEventServiceClient->writeUserEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = UserEventServiceClient::dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $userEventEventType = '[EVENT_TYPE]'; - $userEventUserPseudoId = '[USER_PSEUDO_ID]'; - - write_user_event_sample($formattedParent, $userEventEventType, $userEventUserPseudoId); -} -// [END discoveryengine_v1_generated_UserEventService_WriteUserEvent_sync] diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/CompletionServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/CompletionServiceClient.php deleted file mode 100644 index a4e30ba1da93..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/CompletionServiceClient.php +++ /dev/null @@ -1,459 +0,0 @@ - completeQueryAsync(CompleteQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface importCompletionSuggestionsAsync(ImportCompletionSuggestionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface importSuggestionDenyListEntriesAsync(ImportSuggestionDenyListEntriesRequest $request, array $optionalArgs = []) - * @method PromiseInterface purgeCompletionSuggestionsAsync(PurgeCompletionSuggestionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface purgeSuggestionDenyListEntriesAsync(PurgeSuggestionDenyListEntriesRequest $request, array $optionalArgs = []) - */ -final class CompletionServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.CompletionService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/completion_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/completion_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/completion_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/completion_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 data_store - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted data_store resource. - */ - public static function dataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('dataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store resource. - */ - public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store resource. - */ - public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store} - * - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - * 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 'discoveryengine.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); - } - - /** - * Completes the specified user input with keyword suggestions. - * - * The async variant is {@see CompletionServiceClient::completeQueryAsync()} . - * - * @example samples/V1/CompletionServiceClient/complete_query.php - * - * @param CompleteQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CompleteQueryResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function completeQuery(CompleteQueryRequest $request, array $callOptions = []): CompleteQueryResponse - { - return $this->startApiCall('CompleteQuery', $request, $callOptions)->wait(); - } - - /** - * Imports - * [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s - * for a DataStore. - * - * The async variant is - * {@see CompletionServiceClient::importCompletionSuggestionsAsync()} . - * - * @example samples/V1/CompletionServiceClient/import_completion_suggestions.php - * - * @param ImportCompletionSuggestionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 importCompletionSuggestions(ImportCompletionSuggestionsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ImportCompletionSuggestions', $request, $callOptions)->wait(); - } - - /** - * Imports all - * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1.SuggestionDenyListEntry] - * for a DataStore. - * - * The async variant is - * {@see CompletionServiceClient::importSuggestionDenyListEntriesAsync()} . - * - * @example samples/V1/CompletionServiceClient/import_suggestion_deny_list_entries.php - * - * @param ImportSuggestionDenyListEntriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 importSuggestionDenyListEntries(ImportSuggestionDenyListEntriesRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ImportSuggestionDenyListEntries', $request, $callOptions)->wait(); - } - - /** - * Permanently deletes all - * [CompletionSuggestion][google.cloud.discoveryengine.v1.CompletionSuggestion]s - * for a DataStore. - * - * The async variant is - * {@see CompletionServiceClient::purgeCompletionSuggestionsAsync()} . - * - * @example samples/V1/CompletionServiceClient/purge_completion_suggestions.php - * - * @param PurgeCompletionSuggestionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 purgeCompletionSuggestions(PurgeCompletionSuggestionsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('PurgeCompletionSuggestions', $request, $callOptions)->wait(); - } - - /** - * Permanently deletes all - * [SuggestionDenyListEntry][google.cloud.discoveryengine.v1.SuggestionDenyListEntry] - * for a DataStore. - * - * The async variant is - * {@see CompletionServiceClient::purgeSuggestionDenyListEntriesAsync()} . - * - * @example samples/V1/CompletionServiceClient/purge_suggestion_deny_list_entries.php - * - * @param PurgeSuggestionDenyListEntriesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 purgeSuggestionDenyListEntries(PurgeSuggestionDenyListEntriesRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('PurgeSuggestionDenyListEntries', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ControlServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ControlServiceClient.php deleted file mode 100644 index 431bddb155a1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ControlServiceClient.php +++ /dev/null @@ -1,522 +0,0 @@ - createControlAsync(CreateControlRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteControlAsync(DeleteControlRequest $request, array $optionalArgs = []) - * @method PromiseInterface getControlAsync(GetControlRequest $request, array $optionalArgs = []) - * @method PromiseInterface listControlsAsync(ListControlsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateControlAsync(UpdateControlRequest $request, array $optionalArgs = []) - */ -final class ControlServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.ControlService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/control_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/control_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/control_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/control_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a control - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $control - * - * @return string The formatted control resource. - */ - public static function controlName(string $project, string $location, string $dataStore, string $control): string - { - return self::getPathTemplate('control')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'control' => $control, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_store - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted data_store resource. - */ - public static function dataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('dataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a engine - * resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * - * @return string The formatted engine resource. - */ - public static function engineName(string $project, string $location, string $collection, string $engine): string - { - return self::getPathTemplate('engine')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store resource. - */ - public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_control resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $control - * - * @return string The formatted project_location_collection_data_store_control resource. - */ - public static function projectLocationCollectionDataStoreControlName(string $project, string $location, string $collection, string $dataStore, string $control): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreControl')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'control' => $control, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_engine_control resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * @param string $control - * - * @return string The formatted project_location_collection_engine_control resource. - */ - public static function projectLocationCollectionEngineControlName(string $project, string $location, string $collection, string $engine, string $control): string - { - return self::getPathTemplate('projectLocationCollectionEngineControl')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - 'control' => $control, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store resource. - */ - public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_control resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $control - * - * @return string The formatted project_location_data_store_control resource. - */ - public static function projectLocationDataStoreControlName(string $project, string $location, string $dataStore, string $control): string - { - return self::getPathTemplate('projectLocationDataStoreControl')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'control' => $control, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - control: projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control} - * - dataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - engine: projects/{project}/locations/{location}/collections/{collection}/engines/{engine} - * - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store} - * - projectLocationCollectionDataStoreControl: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control} - * - projectLocationCollectionEngineControl: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control} - * - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationDataStoreControl: projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control} - * - * 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 'discoveryengine.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 Control. - * - * By default 1000 controls are allowed for a data store. - * A request can be submitted to adjust this limit. - * If the [Control][google.cloud.discoveryengine.v1.Control] to create already - * exists, an ALREADY_EXISTS error is returned. - * - * The async variant is {@see ControlServiceClient::createControlAsync()} . - * - * @example samples/V1/ControlServiceClient/create_control.php - * - * @param CreateControlRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Control - * - * @throws ApiException Thrown if the API call fails. - */ - public function createControl(CreateControlRequest $request, array $callOptions = []): Control - { - return $this->startApiCall('CreateControl', $request, $callOptions)->wait(); - } - - /** - * Deletes a Control. - * - * If the [Control][google.cloud.discoveryengine.v1.Control] to delete does - * not exist, a NOT_FOUND error is returned. - * - * The async variant is {@see ControlServiceClient::deleteControlAsync()} . - * - * @example samples/V1/ControlServiceClient/delete_control.php - * - * @param DeleteControlRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteControl(DeleteControlRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteControl', $request, $callOptions)->wait(); - } - - /** - * Gets a Control. - * - * The async variant is {@see ControlServiceClient::getControlAsync()} . - * - * @example samples/V1/ControlServiceClient/get_control.php - * - * @param GetControlRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Control - * - * @throws ApiException Thrown if the API call fails. - */ - public function getControl(GetControlRequest $request, array $callOptions = []): Control - { - return $this->startApiCall('GetControl', $request, $callOptions)->wait(); - } - - /** - * Lists all Controls by their parent - * [DataStore][google.cloud.discoveryengine.v1.DataStore]. - * - * The async variant is {@see ControlServiceClient::listControlsAsync()} . - * - * @example samples/V1/ControlServiceClient/list_controls.php - * - * @param ListControlsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listControls(ListControlsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListControls', $request, $callOptions); - } - - /** - * Updates a Control. - * - * [Control][google.cloud.discoveryengine.v1.Control] action type cannot be - * changed. If the [Control][google.cloud.discoveryengine.v1.Control] to - * update does not exist, a NOT_FOUND error is returned. - * - * The async variant is {@see ControlServiceClient::updateControlAsync()} . - * - * @example samples/V1/ControlServiceClient/update_control.php - * - * @param UpdateControlRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Control - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateControl(UpdateControlRequest $request, array $callOptions = []): Control - { - return $this->startApiCall('UpdateControl', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ConversationalSearchServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ConversationalSearchServiceClient.php deleted file mode 100644 index 03b24a4d575c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ConversationalSearchServiceClient.php +++ /dev/null @@ -1,1184 +0,0 @@ - answerQueryAsync(AnswerQueryRequest $request, array $optionalArgs = []) - * @method PromiseInterface converseConversationAsync(ConverseConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConversationAsync(CreateConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSessionAsync(CreateSessionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConversationAsync(DeleteConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSessionAsync(DeleteSessionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getAnswerAsync(GetAnswerRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConversationAsync(GetConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSessionAsync(GetSessionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConversationsAsync(ListConversationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSessionsAsync(ListSessionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConversationAsync(UpdateConversationRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSessionAsync(UpdateSessionRequest $request, array $optionalArgs = []) - */ -final class ConversationalSearchServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.ConversationalSearchService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/conversational_search_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/conversational_search_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/conversational_search_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/conversational_search_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a answer - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $session - * @param string $answer - * - * @return string The formatted answer resource. - */ - public static function answerName(string $project, string $location, string $dataStore, string $session, string $answer): string - { - return self::getPathTemplate('answer')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'session' => $session, - 'answer' => $answer, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a chunk - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * @param string $document - * @param string $chunk - * - * @return string The formatted chunk resource. - */ - public static function chunkName(string $project, string $location, string $dataStore, string $branch, string $document, string $chunk): string - { - return self::getPathTemplate('chunk')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - 'chunk' => $chunk, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a conversation - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $conversation - * - * @return string The formatted conversation resource. - */ - public static function conversationName(string $project, string $location, string $dataStore, string $conversation): string - { - return self::getPathTemplate('conversation')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'conversation' => $conversation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_store - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted data_store resource. - */ - public static function dataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('dataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a document - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted document resource. - */ - public static function documentName(string $project, string $location, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('document')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store resource. - */ - public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_branch_document resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted project_location_collection_data_store_branch_document resource. - */ - public static function projectLocationCollectionDataStoreBranchDocumentName(string $project, string $location, string $collection, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreBranchDocument')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_branch_document_chunk resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $branch - * @param string $document - * @param string $chunk - * - * @return string The formatted project_location_collection_data_store_branch_document_chunk resource. - */ - public static function projectLocationCollectionDataStoreBranchDocumentChunkName(string $project, string $location, string $collection, string $dataStore, string $branch, string $document, string $chunk): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreBranchDocumentChunk')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - 'chunk' => $chunk, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_conversation resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $conversation - * - * @return string The formatted project_location_collection_data_store_conversation resource. - */ - public static function projectLocationCollectionDataStoreConversationName(string $project, string $location, string $collection, string $dataStore, string $conversation): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreConversation')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'conversation' => $conversation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted project_location_collection_data_store_serving_config resource. - */ - public static function projectLocationCollectionDataStoreServingConfigName(string $project, string $location, string $collection, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_session resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $session - * - * @return string The formatted project_location_collection_data_store_session resource. - */ - public static function projectLocationCollectionDataStoreSessionName(string $project, string $location, string $collection, string $dataStore, string $session): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreSession')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'session' => $session, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_session_answer resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $session - * @param string $answer - * - * @return string The formatted project_location_collection_data_store_session_answer resource. - */ - public static function projectLocationCollectionDataStoreSessionAnswerName(string $project, string $location, string $collection, string $dataStore, string $session, string $answer): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreSessionAnswer')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'session' => $session, - 'answer' => $answer, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_engine_conversation resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * @param string $conversation - * - * @return string The formatted project_location_collection_engine_conversation resource. - */ - public static function projectLocationCollectionEngineConversationName(string $project, string $location, string $collection, string $engine, string $conversation): string - { - return self::getPathTemplate('projectLocationCollectionEngineConversation')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - 'conversation' => $conversation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_engine_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * @param string $servingConfig - * - * @return string The formatted project_location_collection_engine_serving_config resource. - */ - public static function projectLocationCollectionEngineServingConfigName(string $project, string $location, string $collection, string $engine, string $servingConfig): string - { - return self::getPathTemplate('projectLocationCollectionEngineServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_engine_session resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * @param string $session - * - * @return string The formatted project_location_collection_engine_session resource. - */ - public static function projectLocationCollectionEngineSessionName(string $project, string $location, string $collection, string $engine, string $session): string - { - return self::getPathTemplate('projectLocationCollectionEngineSession')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - 'session' => $session, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_engine_session_answer resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * @param string $session - * @param string $answer - * - * @return string The formatted project_location_collection_engine_session_answer resource. - */ - public static function projectLocationCollectionEngineSessionAnswerName(string $project, string $location, string $collection, string $engine, string $session, string $answer): string - { - return self::getPathTemplate('projectLocationCollectionEngineSessionAnswer')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - 'session' => $session, - 'answer' => $answer, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store resource. - */ - public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_branch_document resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted project_location_data_store_branch_document resource. - */ - public static function projectLocationDataStoreBranchDocumentName(string $project, string $location, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('projectLocationDataStoreBranchDocument')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_branch_document_chunk resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * @param string $document - * @param string $chunk - * - * @return string The formatted project_location_data_store_branch_document_chunk resource. - */ - public static function projectLocationDataStoreBranchDocumentChunkName(string $project, string $location, string $dataStore, string $branch, string $document, string $chunk): string - { - return self::getPathTemplate('projectLocationDataStoreBranchDocumentChunk')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - 'chunk' => $chunk, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_conversation resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $conversation - * - * @return string The formatted project_location_data_store_conversation resource. - */ - public static function projectLocationDataStoreConversationName(string $project, string $location, string $dataStore, string $conversation): string - { - return self::getPathTemplate('projectLocationDataStoreConversation')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'conversation' => $conversation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted project_location_data_store_serving_config resource. - */ - public static function projectLocationDataStoreServingConfigName(string $project, string $location, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('projectLocationDataStoreServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_session resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $session - * - * @return string The formatted project_location_data_store_session resource. - */ - public static function projectLocationDataStoreSessionName(string $project, string $location, string $dataStore, string $session): string - { - return self::getPathTemplate('projectLocationDataStoreSession')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'session' => $session, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_session_answer resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $session - * @param string $answer - * - * @return string The formatted project_location_data_store_session_answer resource. - */ - public static function projectLocationDataStoreSessionAnswerName(string $project, string $location, string $dataStore, string $session, string $answer): string - { - return self::getPathTemplate('projectLocationDataStoreSessionAnswer')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'session' => $session, - 'answer' => $answer, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * serving_config resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted serving_config resource. - */ - public static function servingConfigName(string $project, string $location, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('servingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a session - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $session - * - * @return string The formatted session resource. - */ - public static function sessionName(string $project, string $location, string $dataStore, string $session): string - { - return self::getPathTemplate('session')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'session' => $session, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - answer: projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer} - * - chunk: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk} - * - conversation: projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation} - * - dataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - document: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store} - * - projectLocationCollectionDataStoreBranchDocument: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - projectLocationCollectionDataStoreBranchDocumentChunk: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk} - * - projectLocationCollectionDataStoreConversation: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation} - * - projectLocationCollectionDataStoreServingConfig: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config} - * - projectLocationCollectionDataStoreSession: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session} - * - projectLocationCollectionDataStoreSessionAnswer: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer} - * - projectLocationCollectionEngineConversation: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation} - * - projectLocationCollectionEngineServingConfig: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config} - * - projectLocationCollectionEngineSession: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session} - * - projectLocationCollectionEngineSessionAnswer: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer} - * - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationDataStoreBranchDocument: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - projectLocationDataStoreBranchDocumentChunk: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk} - * - projectLocationDataStoreConversation: projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation} - * - projectLocationDataStoreServingConfig: projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config} - * - projectLocationDataStoreSession: projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session} - * - projectLocationDataStoreSessionAnswer: projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer} - * - servingConfig: projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config} - * - session: projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session} - * - * 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 'discoveryengine.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); - } - - /** - * Answer query method. - * - * The async variant is - * {@see ConversationalSearchServiceClient::answerQueryAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/answer_query.php - * - * @param AnswerQueryRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AnswerQueryResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function answerQuery(AnswerQueryRequest $request, array $callOptions = []): AnswerQueryResponse - { - return $this->startApiCall('AnswerQuery', $request, $callOptions)->wait(); - } - - /** - * Converses a conversation. - * - * The async variant is - * {@see ConversationalSearchServiceClient::converseConversationAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/converse_conversation.php - * - * @param ConverseConversationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ConverseConversationResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function converseConversation(ConverseConversationRequest $request, array $callOptions = []): ConverseConversationResponse - { - return $this->startApiCall('ConverseConversation', $request, $callOptions)->wait(); - } - - /** - * Creates a Conversation. - * - * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to - * create already exists, an ALREADY_EXISTS error is returned. - * - * The async variant is - * {@see ConversationalSearchServiceClient::createConversationAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/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 a Session. - * - * If the [Session][google.cloud.discoveryengine.v1.Session] to create already - * exists, an ALREADY_EXISTS error is returned. - * - * The async variant is - * {@see ConversationalSearchServiceClient::createSessionAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/create_session.php - * - * @param CreateSessionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Session - * - * @throws ApiException Thrown if the API call fails. - */ - public function createSession(CreateSessionRequest $request, array $callOptions = []): Session - { - return $this->startApiCall('CreateSession', $request, $callOptions)->wait(); - } - - /** - * Deletes a Conversation. - * - * If the [Conversation][google.cloud.discoveryengine.v1.Conversation] to - * delete does not exist, a NOT_FOUND error is returned. - * - * The async variant is - * {@see ConversationalSearchServiceClient::deleteConversationAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/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 a Session. - * - * If the [Session][google.cloud.discoveryengine.v1.Session] to delete does - * not exist, a NOT_FOUND error is returned. - * - * The async variant is - * {@see ConversationalSearchServiceClient::deleteSessionAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/delete_session.php - * - * @param DeleteSessionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteSession(DeleteSessionRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteSession', $request, $callOptions)->wait(); - } - - /** - * Gets a Answer. - * - * The async variant is {@see ConversationalSearchServiceClient::getAnswerAsync()} - * . - * - * @example samples/V1/ConversationalSearchServiceClient/get_answer.php - * - * @param GetAnswerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Answer - * - * @throws ApiException Thrown if the API call fails. - */ - public function getAnswer(GetAnswerRequest $request, array $callOptions = []): Answer - { - return $this->startApiCall('GetAnswer', $request, $callOptions)->wait(); - } - - /** - * Gets a Conversation. - * - * The async variant is - * {@see ConversationalSearchServiceClient::getConversationAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/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 a Session. - * - * The async variant is {@see ConversationalSearchServiceClient::getSessionAsync()} - * . - * - * @example samples/V1/ConversationalSearchServiceClient/get_session.php - * - * @param GetSessionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Session - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSession(GetSessionRequest $request, array $callOptions = []): Session - { - return $this->startApiCall('GetSession', $request, $callOptions)->wait(); - } - - /** - * Lists all Conversations by their parent - * [DataStore][google.cloud.discoveryengine.v1.DataStore]. - * - * The async variant is - * {@see ConversationalSearchServiceClient::listConversationsAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/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 all Sessions by their parent - * [DataStore][google.cloud.discoveryengine.v1.DataStore]. - * - * The async variant is - * {@see ConversationalSearchServiceClient::listSessionsAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/list_sessions.php - * - * @param ListSessionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listSessions(ListSessionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSessions', $request, $callOptions); - } - - /** - * Updates a Conversation. - * - * [Conversation][google.cloud.discoveryengine.v1.Conversation] action type - * cannot be changed. If the - * [Conversation][google.cloud.discoveryengine.v1.Conversation] to update does - * not exist, a NOT_FOUND error is returned. - * - * The async variant is - * {@see ConversationalSearchServiceClient::updateConversationAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/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 a Session. - * - * [Session][google.cloud.discoveryengine.v1.Session] action type cannot be - * changed. If the [Session][google.cloud.discoveryengine.v1.Session] to - * update does not exist, a NOT_FOUND error is returned. - * - * The async variant is - * {@see ConversationalSearchServiceClient::updateSessionAsync()} . - * - * @example samples/V1/ConversationalSearchServiceClient/update_session.php - * - * @param UpdateSessionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Session - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateSession(UpdateSessionRequest $request, array $callOptions = []): Session - { - return $this->startApiCall('UpdateSession', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/DataStoreServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/DataStoreServiceClient.php deleted file mode 100644 index 75e52bb331dd..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/DataStoreServiceClient.php +++ /dev/null @@ -1,606 +0,0 @@ - createDataStoreAsync(CreateDataStoreRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDataStoreAsync(DeleteDataStoreRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDataStoreAsync(GetDataStoreRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDataStoresAsync(ListDataStoresRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDataStoreAsync(UpdateDataStoreRequest $request, array $optionalArgs = []) - */ -final class DataStoreServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.DataStoreService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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_store_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/data_store_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/data_store_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/data_store_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 collection - * resource. - * - * @param string $project - * @param string $location - * @param string $collection - * - * @return string The formatted collection resource. - */ - public static function collectionName(string $project, string $location, string $collection): string - { - return self::getPathTemplate('collection')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_store - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted data_store resource. - */ - public static function dataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('dataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * document_processing_config resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted document_processing_config resource. - */ - public static function documentProcessingConfigName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('documentProcessingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store resource. - */ - public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_documentProcessingConfig resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store_documentProcessingConfig resource. - */ - public static function projectLocationCollectionDataStoreDocumentProcessingConfigName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreDocumentProcessingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_schema resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $schema - * - * @return string The formatted project_location_collection_data_store_schema resource. - */ - public static function projectLocationCollectionDataStoreSchemaName(string $project, string $location, string $collection, string $dataStore, string $schema): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreSchema')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'schema' => $schema, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store resource. - */ - public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_documentProcessingConfig resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store_documentProcessingConfig resource. - */ - public static function projectLocationDataStoreDocumentProcessingConfigName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStoreDocumentProcessingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_schema resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $schema - * - * @return string The formatted project_location_data_store_schema resource. - */ - public static function projectLocationDataStoreSchemaName(string $project, string $location, string $dataStore, string $schema): string - { - return self::getPathTemplate('projectLocationDataStoreSchema')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'schema' => $schema, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a schema - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $schema - * - * @return string The formatted schema resource. - */ - public static function schemaName(string $project, string $location, string $dataStore, string $schema): string - { - return self::getPathTemplate('schema')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'schema' => $schema, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - collection: projects/{project}/locations/{location}/collections/{collection} - * - dataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - documentProcessingConfig: projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig - * - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store} - * - projectLocationCollectionDataStoreDocumentProcessingConfig: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig - * - projectLocationCollectionDataStoreSchema: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema} - * - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationDataStoreDocumentProcessingConfig: projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig - * - projectLocationDataStoreSchema: projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema} - * - schema: projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema} - * - * 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 'discoveryengine.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 [DataStore][google.cloud.discoveryengine.v1.DataStore]. - * - * DataStore is for storing - * [Documents][google.cloud.discoveryengine.v1.Document]. To serve these - * documents for Search, or Recommendation use case, an - * [Engine][google.cloud.discoveryengine.v1.Engine] needs to be created - * separately. - * - * The async variant is {@see DataStoreServiceClient::createDataStoreAsync()} . - * - * @example samples/V1/DataStoreServiceClient/create_data_store.php - * - * @param CreateDataStoreRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createDataStore(CreateDataStoreRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateDataStore', $request, $callOptions)->wait(); - } - - /** - * Deletes a [DataStore][google.cloud.discoveryengine.v1.DataStore]. - * - * The async variant is {@see DataStoreServiceClient::deleteDataStoreAsync()} . - * - * @example samples/V1/DataStoreServiceClient/delete_data_store.php - * - * @param DeleteDataStoreRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteDataStore(DeleteDataStoreRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteDataStore', $request, $callOptions)->wait(); - } - - /** - * Gets a [DataStore][google.cloud.discoveryengine.v1.DataStore]. - * - * The async variant is {@see DataStoreServiceClient::getDataStoreAsync()} . - * - * @example samples/V1/DataStoreServiceClient/get_data_store.php - * - * @param GetDataStoreRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStore - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDataStore(GetDataStoreRequest $request, array $callOptions = []): DataStore - { - return $this->startApiCall('GetDataStore', $request, $callOptions)->wait(); - } - - /** - * Lists all the [DataStore][google.cloud.discoveryengine.v1.DataStore]s - * associated with the project. - * - * The async variant is {@see DataStoreServiceClient::listDataStoresAsync()} . - * - * @example samples/V1/DataStoreServiceClient/list_data_stores.php - * - * @param ListDataStoresRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listDataStores(ListDataStoresRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDataStores', $request, $callOptions); - } - - /** - * Updates a [DataStore][google.cloud.discoveryengine.v1.DataStore] - * - * The async variant is {@see DataStoreServiceClient::updateDataStoreAsync()} . - * - * @example samples/V1/DataStoreServiceClient/update_data_store.php - * - * @param UpdateDataStoreRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DataStore - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDataStore(UpdateDataStoreRequest $request, array $callOptions = []): DataStore - { - return $this->startApiCall('UpdateDataStore', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/DocumentServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/DocumentServiceClient.php deleted file mode 100644 index c195d82f260b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/DocumentServiceClient.php +++ /dev/null @@ -1,684 +0,0 @@ - batchGetDocumentsMetadataAsync(BatchGetDocumentsMetadataRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDocumentAsync(CreateDocumentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDocumentAsync(DeleteDocumentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDocumentAsync(GetDocumentRequest $request, array $optionalArgs = []) - * @method PromiseInterface importDocumentsAsync(ImportDocumentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDocumentsAsync(ListDocumentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface purgeDocumentsAsync(PurgeDocumentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDocumentAsync(UpdateDocumentRequest $request, array $optionalArgs = []) - */ -final class DocumentServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.DocumentService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/document_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/document_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/document_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/document_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 branch - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * - * @return string The formatted branch resource. - */ - public static function branchName(string $project, string $location, string $dataStore, string $branch): string - { - return self::getPathTemplate('branch')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a document - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted document resource. - */ - public static function documentName(string $project, string $location, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('document')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * fhir_resource resource. - * - * @param string $project - * @param string $location - * @param string $dataset - * @param string $fhirStore - * @param string $resourceType - * @param string $fhirResourceId - * - * @return string The formatted fhir_resource resource. - */ - public static function fhirResourceName(string $project, string $location, string $dataset, string $fhirStore, string $resourceType, string $fhirResourceId): string - { - return self::getPathTemplate('fhirResource')->render([ - 'project' => $project, - 'location' => $location, - 'dataset' => $dataset, - 'fhir_store' => $fhirStore, - 'resource_type' => $resourceType, - 'fhir_resource_id' => $fhirResourceId, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a fhir_store - * resource. - * - * @param string $project - * @param string $location - * @param string $dataset - * @param string $fhirStore - * - * @return string The formatted fhir_store resource. - */ - public static function fhirStoreName(string $project, string $location, string $dataset, string $fhirStore): string - { - return self::getPathTemplate('fhirStore')->render([ - 'project' => $project, - 'location' => $location, - 'dataset' => $dataset, - 'fhir_store' => $fhirStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_branch resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $branch - * - * @return string The formatted project_location_collection_data_store_branch resource. - */ - public static function projectLocationCollectionDataStoreBranchName(string $project, string $location, string $collection, string $dataStore, string $branch): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreBranch')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'branch' => $branch, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_branch_document resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted project_location_collection_data_store_branch_document resource. - */ - public static function projectLocationCollectionDataStoreBranchDocumentName(string $project, string $location, string $collection, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreBranchDocument')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_branch resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * - * @return string The formatted project_location_data_store_branch resource. - */ - public static function projectLocationDataStoreBranchName(string $project, string $location, string $dataStore, string $branch): string - { - return self::getPathTemplate('projectLocationDataStoreBranch')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_branch_document resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted project_location_data_store_branch_document resource. - */ - public static function projectLocationDataStoreBranchDocumentName(string $project, string $location, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('projectLocationDataStoreBranchDocument')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - branch: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch} - * - document: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - fhirResource: projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id} - * - fhirStore: projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store} - * - projectLocationCollectionDataStoreBranch: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch} - * - projectLocationCollectionDataStoreBranchDocument: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - projectLocationDataStoreBranch: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch} - * - projectLocationDataStoreBranchDocument: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - * 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 'discoveryengine.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); - } - - /** - * Gets index freshness metadata for - * [Document][google.cloud.discoveryengine.v1.Document]s. Supported for - * website search only. - * - * The async variant is - * {@see DocumentServiceClient::batchGetDocumentsMetadataAsync()} . - * - * @example samples/V1/DocumentServiceClient/batch_get_documents_metadata.php - * - * @param BatchGetDocumentsMetadataRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return BatchGetDocumentsMetadataResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function batchGetDocumentsMetadata(BatchGetDocumentsMetadataRequest $request, array $callOptions = []): BatchGetDocumentsMetadataResponse - { - return $this->startApiCall('BatchGetDocumentsMetadata', $request, $callOptions)->wait(); - } - - /** - * Creates a [Document][google.cloud.discoveryengine.v1.Document]. - * - * The async variant is {@see DocumentServiceClient::createDocumentAsync()} . - * - * @example samples/V1/DocumentServiceClient/create_document.php - * - * @param CreateDocumentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Document - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDocument(CreateDocumentRequest $request, array $callOptions = []): Document - { - return $this->startApiCall('CreateDocument', $request, $callOptions)->wait(); - } - - /** - * Deletes a [Document][google.cloud.discoveryengine.v1.Document]. - * - * The async variant is {@see DocumentServiceClient::deleteDocumentAsync()} . - * - * @example samples/V1/DocumentServiceClient/delete_document.php - * - * @param DeleteDocumentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteDocument(DeleteDocumentRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDocument', $request, $callOptions)->wait(); - } - - /** - * Gets a [Document][google.cloud.discoveryengine.v1.Document]. - * - * The async variant is {@see DocumentServiceClient::getDocumentAsync()} . - * - * @example samples/V1/DocumentServiceClient/get_document.php - * - * @param GetDocumentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Document - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDocument(GetDocumentRequest $request, array $callOptions = []): Document - { - return $this->startApiCall('GetDocument', $request, $callOptions)->wait(); - } - - /** - * Bulk import of multiple - * [Document][google.cloud.discoveryengine.v1.Document]s. Request processing - * may be synchronous. Non-existing items are created. - * - * Note: It is possible for a subset of the - * [Document][google.cloud.discoveryengine.v1.Document]s to be successfully - * updated. - * - * The async variant is {@see DocumentServiceClient::importDocumentsAsync()} . - * - * @example samples/V1/DocumentServiceClient/import_documents.php - * - * @param ImportDocumentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 importDocuments(ImportDocumentsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ImportDocuments', $request, $callOptions)->wait(); - } - - /** - * Gets a list of [Document][google.cloud.discoveryengine.v1.Document]s. - * - * The async variant is {@see DocumentServiceClient::listDocumentsAsync()} . - * - * @example samples/V1/DocumentServiceClient/list_documents.php - * - * @param ListDocumentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listDocuments(ListDocumentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDocuments', $request, $callOptions); - } - - /** - * Permanently deletes all selected - * [Document][google.cloud.discoveryengine.v1.Document]s in a branch. - * - * This process is asynchronous. Depending on the number of - * [Document][google.cloud.discoveryengine.v1.Document]s to be deleted, this - * operation can take hours to complete. Before the delete operation - * completes, some [Document][google.cloud.discoveryengine.v1.Document]s might - * still be returned by - * [DocumentService.GetDocument][google.cloud.discoveryengine.v1.DocumentService.GetDocument] - * or - * [DocumentService.ListDocuments][google.cloud.discoveryengine.v1.DocumentService.ListDocuments]. - * - * To get a list of the [Document][google.cloud.discoveryengine.v1.Document]s - * to be deleted, set - * [PurgeDocumentsRequest.force][google.cloud.discoveryengine.v1.PurgeDocumentsRequest.force] - * to false. - * - * The async variant is {@see DocumentServiceClient::purgeDocumentsAsync()} . - * - * @example samples/V1/DocumentServiceClient/purge_documents.php - * - * @param PurgeDocumentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 purgeDocuments(PurgeDocumentsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('PurgeDocuments', $request, $callOptions)->wait(); - } - - /** - * Updates a [Document][google.cloud.discoveryengine.v1.Document]. - * - * The async variant is {@see DocumentServiceClient::updateDocumentAsync()} . - * - * @example samples/V1/DocumentServiceClient/update_document.php - * - * @param UpdateDocumentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Document - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDocument(UpdateDocumentRequest $request, array $callOptions = []): Document - { - return $this->startApiCall('UpdateDocument', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/EngineServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/EngineServiceClient.php deleted file mode 100644 index 08b10dec5694..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/EngineServiceClient.php +++ /dev/null @@ -1,430 +0,0 @@ - createEngineAsync(CreateEngineRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEngineAsync(DeleteEngineRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEngineAsync(GetEngineRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEnginesAsync(ListEnginesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEngineAsync(UpdateEngineRequest $request, array $optionalArgs = []) - */ -final class EngineServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.EngineService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/engine_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/engine_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/engine_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/engine_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 collection - * resource. - * - * @param string $project - * @param string $location - * @param string $collection - * - * @return string The formatted collection resource. - */ - public static function collectionName(string $project, string $location, string $collection): string - { - return self::getPathTemplate('collection')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a engine - * resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * - * @return string The formatted engine resource. - */ - public static function engineName(string $project, string $location, string $collection, string $engine): string - { - return self::getPathTemplate('engine')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - collection: projects/{project}/locations/{location}/collections/{collection} - * - engine: projects/{project}/locations/{location}/collections/{collection}/engines/{engine} - * - * 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 'discoveryengine.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 [Engine][google.cloud.discoveryengine.v1.Engine]. - * - * The async variant is {@see EngineServiceClient::createEngineAsync()} . - * - * @example samples/V1/EngineServiceClient/create_engine.php - * - * @param CreateEngineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createEngine(CreateEngineRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateEngine', $request, $callOptions)->wait(); - } - - /** - * Deletes a [Engine][google.cloud.discoveryengine.v1.Engine]. - * - * The async variant is {@see EngineServiceClient::deleteEngineAsync()} . - * - * @example samples/V1/EngineServiceClient/delete_engine.php - * - * @param DeleteEngineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteEngine(DeleteEngineRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteEngine', $request, $callOptions)->wait(); - } - - /** - * Gets a [Engine][google.cloud.discoveryengine.v1.Engine]. - * - * The async variant is {@see EngineServiceClient::getEngineAsync()} . - * - * @example samples/V1/EngineServiceClient/get_engine.php - * - * @param GetEngineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Engine - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEngine(GetEngineRequest $request, array $callOptions = []): Engine - { - return $this->startApiCall('GetEngine', $request, $callOptions)->wait(); - } - - /** - * Lists all the [Engine][google.cloud.discoveryengine.v1.Engine]s associated - * with the project. - * - * The async variant is {@see EngineServiceClient::listEnginesAsync()} . - * - * @example samples/V1/EngineServiceClient/list_engines.php - * - * @param ListEnginesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listEngines(ListEnginesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEngines', $request, $callOptions); - } - - /** - * Updates an [Engine][google.cloud.discoveryengine.v1.Engine] - * - * The async variant is {@see EngineServiceClient::updateEngineAsync()} . - * - * @example samples/V1/EngineServiceClient/update_engine.php - * - * @param UpdateEngineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Engine - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateEngine(UpdateEngineRequest $request, array $callOptions = []): Engine - { - return $this->startApiCall('UpdateEngine', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/GroundedGenerationServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/GroundedGenerationServiceClient.php deleted file mode 100644 index bb0a380316a7..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/GroundedGenerationServiceClient.php +++ /dev/null @@ -1,402 +0,0 @@ - checkGroundingAsync(CheckGroundingRequest $request, array $optionalArgs = []) - * @method PromiseInterface generateGroundedContentAsync(GenerateGroundedContentRequest $request, array $optionalArgs = []) - */ -final class GroundedGenerationServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.GroundedGenerationService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/grounded_generation_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/grounded_generation_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/grounded_generation_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/grounded_generation_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * grounding_config resource. - * - * @param string $project - * @param string $location - * @param string $groundingConfig - * - * @return string The formatted grounding_config resource. - */ - public static function groundingConfigName(string $project, string $location, string $groundingConfig): string - { - return self::getPathTemplate('groundingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'grounding_config' => $groundingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted project_location_collection_data_store_serving_config resource. - */ - public static function projectLocationCollectionDataStoreServingConfigName(string $project, string $location, string $collection, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_engine_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * @param string $servingConfig - * - * @return string The formatted project_location_collection_engine_serving_config resource. - */ - public static function projectLocationCollectionEngineServingConfigName(string $project, string $location, string $collection, string $engine, string $servingConfig): string - { - return self::getPathTemplate('projectLocationCollectionEngineServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted project_location_data_store_serving_config resource. - */ - public static function projectLocationDataStoreServingConfigName(string $project, string $location, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('projectLocationDataStoreServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * serving_config resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted serving_config resource. - */ - public static function servingConfigName(string $project, string $location, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('servingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - groundingConfig: projects/{project}/locations/{location}/groundingConfigs/{grounding_config} - * - location: projects/{project}/locations/{location} - * - projectLocationCollectionDataStoreServingConfig: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config} - * - projectLocationCollectionEngineServingConfig: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config} - * - projectLocationDataStoreServingConfig: projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config} - * - servingConfig: projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config} - * - * 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 'discoveryengine.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); - } - - /** - * Performs a grounding check. - * - * The async variant is - * {@see GroundedGenerationServiceClient::checkGroundingAsync()} . - * - * @example samples/V1/GroundedGenerationServiceClient/check_grounding.php - * - * @param CheckGroundingRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return CheckGroundingResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function checkGrounding(CheckGroundingRequest $request, array $callOptions = []): CheckGroundingResponse - { - return $this->startApiCall('CheckGrounding', $request, $callOptions)->wait(); - } - - /** - * Generates grounded content. - * - * The async variant is - * {@see GroundedGenerationServiceClient::generateGroundedContentAsync()} . - * - * @example samples/V1/GroundedGenerationServiceClient/generate_grounded_content.php - * - * @param GenerateGroundedContentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GenerateGroundedContentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function generateGroundedContent(GenerateGroundedContentRequest $request, array $callOptions = []): GenerateGroundedContentResponse - { - return $this->startApiCall('GenerateGroundedContent', $request, $callOptions)->wait(); - } - - /** - * Generates grounded content in a streaming fashion. - * - * @example samples/V1/GroundedGenerationServiceClient/stream_generate_grounded_content.php - * - * @param array $callOptions { - * Optional. - * - * @type int $timeoutMillis - * Timeout to use for this call. - * } - * - * @return BidiStream - * - * @throws ApiException Thrown if the API call fails. - */ - public function streamGenerateGroundedContent(array $callOptions = []): BidiStream - { - return $this->startApiCall('StreamGenerateGroundedContent', null, $callOptions); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ProjectServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ProjectServiceClient.php deleted file mode 100644 index 66483c22639f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/ProjectServiceClient.php +++ /dev/null @@ -1,295 +0,0 @@ - provisionProjectAsync(ProvisionProjectRequest $request, array $optionalArgs = []) - */ -final class ProjectServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.ProjectService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/project_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/project_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/project_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/project_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 project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - project: projects/{project} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'discoveryengine.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Provisions the project resource. During the - * process, related systems will get prepared and initialized. - * - * Caller must read the [Terms for data - * use](https://cloud.google.com/retail/data-use-terms), and optionally - * specify in request to provide consent to that service terms. - * - * The async variant is {@see ProjectServiceClient::provisionProjectAsync()} . - * - * @example samples/V1/ProjectServiceClient/provision_project.php - * - * @param ProvisionProjectRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 provisionProject(ProvisionProjectRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ProvisionProject', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/RankServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/RankServiceClient.php deleted file mode 100644 index e393fbb28d9e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/RankServiceClient.php +++ /dev/null @@ -1,239 +0,0 @@ - rankAsync(RankRequest $request, array $optionalArgs = []) - */ -final class RankServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.RankService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/rank_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/rank_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/rank_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/rank_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * ranking_config resource. - * - * @param string $project - * @param string $location - * @param string $rankingConfig - * - * @return string The formatted ranking_config resource. - */ - public static function rankingConfigName(string $project, string $location, string $rankingConfig): string - { - return self::getPathTemplate('rankingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'ranking_config' => $rankingConfig, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - rankingConfig: projects/{project}/locations/{location}/rankingConfigs/{ranking_config} - * - * 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 'discoveryengine.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); - } - - /** - * Ranks a list of text records based on the given input query. - * - * The async variant is {@see RankServiceClient::rankAsync()} . - * - * @example samples/V1/RankServiceClient/rank.php - * - * @param RankRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RankResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function rank(RankRequest $request, array $callOptions = []): RankResponse - { - return $this->startApiCall('Rank', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/RecommendationServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/RecommendationServiceClient.php deleted file mode 100644 index 9d2cc34d690d..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/RecommendationServiceClient.php +++ /dev/null @@ -1,469 +0,0 @@ - recommendAsync(RecommendRequest $request, array $optionalArgs = []) - */ -final class RecommendationServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.RecommendationService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/recommendation_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/recommendation_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/recommendation_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/recommendation_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a data_store - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted data_store resource. - */ - public static function dataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('dataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a document - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted document resource. - */ - public static function documentName(string $project, string $location, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('document')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a engine - * resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * - * @return string The formatted engine resource. - */ - public static function engineName(string $project, string $location, string $collection, string $engine): string - { - return self::getPathTemplate('engine')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store resource. - */ - public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_branch_document resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted project_location_collection_data_store_branch_document resource. - */ - public static function projectLocationCollectionDataStoreBranchDocumentName(string $project, string $location, string $collection, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreBranchDocument')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted project_location_collection_data_store_serving_config resource. - */ - public static function projectLocationCollectionDataStoreServingConfigName(string $project, string $location, string $collection, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_engine_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * @param string $servingConfig - * - * @return string The formatted project_location_collection_engine_serving_config resource. - */ - public static function projectLocationCollectionEngineServingConfigName(string $project, string $location, string $collection, string $engine, string $servingConfig): string - { - return self::getPathTemplate('projectLocationCollectionEngineServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store resource. - */ - public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_branch_document resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted project_location_data_store_branch_document resource. - */ - public static function projectLocationDataStoreBranchDocumentName(string $project, string $location, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('projectLocationDataStoreBranchDocument')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted project_location_data_store_serving_config resource. - */ - public static function projectLocationDataStoreServingConfigName(string $project, string $location, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('projectLocationDataStoreServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * serving_config resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted serving_config resource. - */ - public static function servingConfigName(string $project, string $location, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('servingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - document: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - engine: projects/{project}/locations/{location}/collections/{collection}/engines/{engine} - * - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store} - * - projectLocationCollectionDataStoreBranchDocument: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - projectLocationCollectionDataStoreServingConfig: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config} - * - projectLocationCollectionEngineServingConfig: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config} - * - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationDataStoreBranchDocument: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - projectLocationDataStoreServingConfig: projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config} - * - servingConfig: projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config} - * - * 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 'discoveryengine.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); - } - - /** - * Makes a recommendation, which requires a contextual user event. - * - * The async variant is {@see RecommendationServiceClient::recommendAsync()} . - * - * @example samples/V1/RecommendationServiceClient/recommend.php - * - * @param RecommendRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RecommendResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function recommend(RecommendRequest $request, array $callOptions = []): RecommendResponse - { - return $this->startApiCall('Recommend', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SchemaServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SchemaServiceClient.php deleted file mode 100644 index f90ecdaf4ce1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SchemaServiceClient.php +++ /dev/null @@ -1,516 +0,0 @@ - createSchemaAsync(CreateSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSchemaAsync(DeleteSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSchemaAsync(GetSchemaRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSchemasAsync(ListSchemasRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSchemaAsync(UpdateSchemaRequest $request, array $optionalArgs = []) - */ -final class SchemaServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.SchemaService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/schema_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/schema_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/schema_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/schema_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 data_store - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted data_store resource. - */ - public static function dataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('dataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store resource. - */ - public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_schema resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $schema - * - * @return string The formatted project_location_collection_data_store_schema resource. - */ - public static function projectLocationCollectionDataStoreSchemaName(string $project, string $location, string $collection, string $dataStore, string $schema): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreSchema')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'schema' => $schema, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store resource. - */ - public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_schema resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $schema - * - * @return string The formatted project_location_data_store_schema resource. - */ - public static function projectLocationDataStoreSchemaName(string $project, string $location, string $dataStore, string $schema): string - { - return self::getPathTemplate('projectLocationDataStoreSchema')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'schema' => $schema, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a schema - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $schema - * - * @return string The formatted schema resource. - */ - public static function schemaName(string $project, string $location, string $dataStore, string $schema): string - { - return self::getPathTemplate('schema')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'schema' => $schema, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store} - * - projectLocationCollectionDataStoreSchema: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema} - * - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationDataStoreSchema: projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema} - * - schema: projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema} - * - * 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 'discoveryengine.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 [Schema][google.cloud.discoveryengine.v1.Schema]. - * - * The async variant is {@see SchemaServiceClient::createSchemaAsync()} . - * - * @example samples/V1/SchemaServiceClient/create_schema.php - * - * @param CreateSchemaRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createSchema(CreateSchemaRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateSchema', $request, $callOptions)->wait(); - } - - /** - * Deletes a [Schema][google.cloud.discoveryengine.v1.Schema]. - * - * The async variant is {@see SchemaServiceClient::deleteSchemaAsync()} . - * - * @example samples/V1/SchemaServiceClient/delete_schema.php - * - * @param DeleteSchemaRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteSchema(DeleteSchemaRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteSchema', $request, $callOptions)->wait(); - } - - /** - * Gets a [Schema][google.cloud.discoveryengine.v1.Schema]. - * - * The async variant is {@see SchemaServiceClient::getSchemaAsync()} . - * - * @example samples/V1/SchemaServiceClient/get_schema.php - * - * @param GetSchemaRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Schema - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSchema(GetSchemaRequest $request, array $callOptions = []): Schema - { - return $this->startApiCall('GetSchema', $request, $callOptions)->wait(); - } - - /** - * Gets a list of [Schema][google.cloud.discoveryengine.v1.Schema]s. - * - * The async variant is {@see SchemaServiceClient::listSchemasAsync()} . - * - * @example samples/V1/SchemaServiceClient/list_schemas.php - * - * @param ListSchemasRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listSchemas(ListSchemasRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSchemas', $request, $callOptions); - } - - /** - * Updates a [Schema][google.cloud.discoveryengine.v1.Schema]. - * - * The async variant is {@see SchemaServiceClient::updateSchemaAsync()} . - * - * @example samples/V1/SchemaServiceClient/update_schema.php - * - * @param UpdateSchemaRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateSchema(UpdateSchemaRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateSchema', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SearchServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SearchServiceClient.php deleted file mode 100644 index b683b57189d9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SearchServiceClient.php +++ /dev/null @@ -1,572 +0,0 @@ - searchAsync(SearchRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchLiteAsync(SearchRequest $request, array $optionalArgs = []) - */ -final class SearchServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.SearchService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/search_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/search_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/search_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/search_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a branch - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * - * @return string The formatted branch resource. - */ - public static function branchName(string $project, string $location, string $dataStore, string $branch): string - { - return self::getPathTemplate('branch')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a data_store - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted data_store resource. - */ - public static function dataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('dataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store resource. - */ - public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_branch resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $branch - * - * @return string The formatted project_location_collection_data_store_branch resource. - */ - public static function projectLocationCollectionDataStoreBranchName(string $project, string $location, string $collection, string $dataStore, string $branch): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreBranch')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'branch' => $branch, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted project_location_collection_data_store_serving_config resource. - */ - public static function projectLocationCollectionDataStoreServingConfigName(string $project, string $location, string $collection, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_session resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $session - * - * @return string The formatted project_location_collection_data_store_session resource. - */ - public static function projectLocationCollectionDataStoreSessionName(string $project, string $location, string $collection, string $dataStore, string $session): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreSession')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'session' => $session, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_engine_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * @param string $servingConfig - * - * @return string The formatted project_location_collection_engine_serving_config resource. - */ - public static function projectLocationCollectionEngineServingConfigName(string $project, string $location, string $collection, string $engine, string $servingConfig): string - { - return self::getPathTemplate('projectLocationCollectionEngineServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_engine_session resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * @param string $session - * - * @return string The formatted project_location_collection_engine_session resource. - */ - public static function projectLocationCollectionEngineSessionName(string $project, string $location, string $collection, string $engine, string $session): string - { - return self::getPathTemplate('projectLocationCollectionEngineSession')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - 'session' => $session, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store resource. - */ - public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_branch resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * - * @return string The formatted project_location_data_store_branch resource. - */ - public static function projectLocationDataStoreBranchName(string $project, string $location, string $dataStore, string $branch): string - { - return self::getPathTemplate('projectLocationDataStoreBranch')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_serving_config resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted project_location_data_store_serving_config resource. - */ - public static function projectLocationDataStoreServingConfigName(string $project, string $location, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('projectLocationDataStoreServingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_session resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $session - * - * @return string The formatted project_location_data_store_session resource. - */ - public static function projectLocationDataStoreSessionName(string $project, string $location, string $dataStore, string $session): string - { - return self::getPathTemplate('projectLocationDataStoreSession')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'session' => $session, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * serving_config resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $servingConfig - * - * @return string The formatted serving_config resource. - */ - public static function servingConfigName(string $project, string $location, string $dataStore, string $servingConfig): string - { - return self::getPathTemplate('servingConfig')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'serving_config' => $servingConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a session - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $session - * - * @return string The formatted session resource. - */ - public static function sessionName(string $project, string $location, string $dataStore, string $session): string - { - return self::getPathTemplate('session')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'session' => $session, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - branch: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch} - * - dataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store} - * - projectLocationCollectionDataStoreBranch: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch} - * - projectLocationCollectionDataStoreServingConfig: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config} - * - projectLocationCollectionDataStoreSession: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session} - * - projectLocationCollectionEngineServingConfig: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config} - * - projectLocationCollectionEngineSession: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session} - * - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationDataStoreBranch: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch} - * - projectLocationDataStoreServingConfig: projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config} - * - projectLocationDataStoreSession: projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session} - * - servingConfig: projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config} - * - session: projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session} - * - * 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 'discoveryengine.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); - } - - /** - * Performs a search. - * - * The async variant is {@see SearchServiceClient::searchAsync()} . - * - * @example samples/V1/SearchServiceClient/search.php - * - * @param SearchRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 search(SearchRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('Search', $request, $callOptions); - } - - /** - * Performs a search. Similar to the - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * method, but a lite version that allows API key for authentication, where - * OAuth and IAM checks are not required. - * - * Only public website search is supported by this method. If data stores and - * engines not associated with public website search are specified, a - * `FAILED_PRECONDITION` error is returned. - * - * This method can be used for easy onboarding without having to implement an - * authentication backend. However, it is strongly recommended to use - * [SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search] - * instead with required OAuth and IAM checks to provide better data security. - * - * The async variant is {@see SearchServiceClient::searchLiteAsync()} . - * - * @example samples/V1/SearchServiceClient/search_lite.php - * - * @param SearchRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 searchLite(SearchRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchLite', $request, $callOptions); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SearchTuningServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SearchTuningServiceClient.php deleted file mode 100644 index e07412d536e4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SearchTuningServiceClient.php +++ /dev/null @@ -1,363 +0,0 @@ - listCustomModelsAsync(ListCustomModelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface trainCustomModelAsync(TrainCustomModelRequest $request, array $optionalArgs = []) - */ -final class SearchTuningServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.SearchTuningService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/search_tuning_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/search_tuning_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/search_tuning_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/search_tuning_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 data_store - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted data_store resource. - */ - public static function dataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('dataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store resource. - */ - public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store resource. - */ - public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store} - * - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - * 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 'discoveryengine.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); - } - - /** - * Gets a list of all the custom models. - * - * The async variant is {@see SearchTuningServiceClient::listCustomModelsAsync()} . - * - * @example samples/V1/SearchTuningServiceClient/list_custom_models.php - * - * @param ListCustomModelsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListCustomModelsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listCustomModels(ListCustomModelsRequest $request, array $callOptions = []): ListCustomModelsResponse - { - return $this->startApiCall('ListCustomModels', $request, $callOptions)->wait(); - } - - /** - * Trains a custom model. - * - * The async variant is {@see SearchTuningServiceClient::trainCustomModelAsync()} . - * - * @example samples/V1/SearchTuningServiceClient/train_custom_model.php - * - * @param TrainCustomModelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 trainCustomModel(TrainCustomModelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('TrainCustomModel', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SiteSearchEngineServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SiteSearchEngineServiceClient.php deleted file mode 100644 index 6950f4dcc9a9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/SiteSearchEngineServiceClient.php +++ /dev/null @@ -1,730 +0,0 @@ - batchCreateTargetSitesAsync(BatchCreateTargetSitesRequest $request, array $optionalArgs = []) - * @method PromiseInterface batchVerifyTargetSitesAsync(BatchVerifyTargetSitesRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTargetSiteAsync(CreateTargetSiteRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTargetSiteAsync(DeleteTargetSiteRequest $request, array $optionalArgs = []) - * @method PromiseInterface disableAdvancedSiteSearchAsync(DisableAdvancedSiteSearchRequest $request, array $optionalArgs = []) - * @method PromiseInterface enableAdvancedSiteSearchAsync(EnableAdvancedSiteSearchRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchDomainVerificationStatusAsync(FetchDomainVerificationStatusRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSiteSearchEngineAsync(GetSiteSearchEngineRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTargetSiteAsync(GetTargetSiteRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTargetSitesAsync(ListTargetSitesRequest $request, array $optionalArgs = []) - * @method PromiseInterface recrawlUrisAsync(RecrawlUrisRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTargetSiteAsync(UpdateTargetSiteRequest $request, array $optionalArgs = []) - */ -final class SiteSearchEngineServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.SiteSearchEngineService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/site_search_engine_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/site_search_engine_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/site_search_engine_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/site_search_engine_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 - * project_location_collection_data_store_siteSearchEngine resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store_siteSearchEngine resource. - */ - public static function projectLocationCollectionDataStoreSiteSearchEngineName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreSiteSearchEngine')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_target_site resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $targetSite - * - * @return string The formatted project_location_collection_data_store_target_site resource. - */ - public static function projectLocationCollectionDataStoreTargetSiteName(string $project, string $location, string $collection, string $dataStore, string $targetSite): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreTargetSite')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'target_site' => $targetSite, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_siteSearchEngine resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store_siteSearchEngine resource. - */ - public static function projectLocationDataStoreSiteSearchEngineName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStoreSiteSearchEngine')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_target_site resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $targetSite - * - * @return string The formatted project_location_data_store_target_site resource. - */ - public static function projectLocationDataStoreTargetSiteName(string $project, string $location, string $dataStore, string $targetSite): string - { - return self::getPathTemplate('projectLocationDataStoreTargetSite')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'target_site' => $targetSite, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * site_search_engine resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted site_search_engine resource. - */ - public static function siteSearchEngineName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('siteSearchEngine')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a target_site - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $targetSite - * - * @return string The formatted target_site resource. - */ - public static function targetSiteName(string $project, string $location, string $dataStore, string $targetSite): string - { - return self::getPathTemplate('targetSite')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'target_site' => $targetSite, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - projectLocationCollectionDataStoreSiteSearchEngine: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine - * - projectLocationCollectionDataStoreTargetSite: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site} - * - projectLocationDataStoreSiteSearchEngine: projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine - * - projectLocationDataStoreTargetSite: projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site} - * - siteSearchEngine: projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine - * - targetSite: projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site} - * - * 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 'discoveryengine.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 [TargetSite][google.cloud.discoveryengine.v1.TargetSite] in a - * batch. - * - * The async variant is - * {@see SiteSearchEngineServiceClient::batchCreateTargetSitesAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/batch_create_target_sites.php - * - * @param BatchCreateTargetSitesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 batchCreateTargetSites(BatchCreateTargetSitesRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('BatchCreateTargetSites', $request, $callOptions)->wait(); - } - - /** - * Verify target sites' ownership and validity. - * This API sends all the target sites under site search engine for - * verification. - * - * The async variant is - * {@see SiteSearchEngineServiceClient::batchVerifyTargetSitesAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/batch_verify_target_sites.php - * - * @param BatchVerifyTargetSitesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 batchVerifyTargetSites(BatchVerifyTargetSitesRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('BatchVerifyTargetSites', $request, $callOptions)->wait(); - } - - /** - * Creates a [TargetSite][google.cloud.discoveryengine.v1.TargetSite]. - * - * The async variant is - * {@see SiteSearchEngineServiceClient::createTargetSiteAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/create_target_site.php - * - * @param CreateTargetSiteRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createTargetSite(CreateTargetSiteRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateTargetSite', $request, $callOptions)->wait(); - } - - /** - * Deletes a [TargetSite][google.cloud.discoveryengine.v1.TargetSite]. - * - * The async variant is - * {@see SiteSearchEngineServiceClient::deleteTargetSiteAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/delete_target_site.php - * - * @param DeleteTargetSiteRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteTargetSite(DeleteTargetSiteRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteTargetSite', $request, $callOptions)->wait(); - } - - /** - * Downgrade from advanced site search to basic site search. - * - * The async variant is - * {@see SiteSearchEngineServiceClient::disableAdvancedSiteSearchAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/disable_advanced_site_search.php - * - * @param DisableAdvancedSiteSearchRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 disableAdvancedSiteSearch(DisableAdvancedSiteSearchRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DisableAdvancedSiteSearch', $request, $callOptions)->wait(); - } - - /** - * Upgrade from basic site search to advanced site search. - * - * The async variant is - * {@see SiteSearchEngineServiceClient::enableAdvancedSiteSearchAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/enable_advanced_site_search.php - * - * @param EnableAdvancedSiteSearchRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 enableAdvancedSiteSearch(EnableAdvancedSiteSearchRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('EnableAdvancedSiteSearch', $request, $callOptions)->wait(); - } - - /** - * Returns list of target sites with its domain verification status. - * This method can only be called under data store with BASIC_SITE_SEARCH - * state at the moment. - * - * The async variant is - * {@see SiteSearchEngineServiceClient::fetchDomainVerificationStatusAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/fetch_domain_verification_status.php - * - * @param FetchDomainVerificationStatusRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 fetchDomainVerificationStatus(FetchDomainVerificationStatusRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('FetchDomainVerificationStatus', $request, $callOptions); - } - - /** - * Gets the - * [SiteSearchEngine][google.cloud.discoveryengine.v1.SiteSearchEngine]. - * - * The async variant is - * {@see SiteSearchEngineServiceClient::getSiteSearchEngineAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/get_site_search_engine.php - * - * @param GetSiteSearchEngineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SiteSearchEngine - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSiteSearchEngine(GetSiteSearchEngineRequest $request, array $callOptions = []): SiteSearchEngine - { - return $this->startApiCall('GetSiteSearchEngine', $request, $callOptions)->wait(); - } - - /** - * Gets a [TargetSite][google.cloud.discoveryengine.v1.TargetSite]. - * - * The async variant is {@see SiteSearchEngineServiceClient::getTargetSiteAsync()} - * . - * - * @example samples/V1/SiteSearchEngineServiceClient/get_target_site.php - * - * @param GetTargetSiteRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TargetSite - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTargetSite(GetTargetSiteRequest $request, array $callOptions = []): TargetSite - { - return $this->startApiCall('GetTargetSite', $request, $callOptions)->wait(); - } - - /** - * Gets a list of [TargetSite][google.cloud.discoveryengine.v1.TargetSite]s. - * - * The async variant is - * {@see SiteSearchEngineServiceClient::listTargetSitesAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/list_target_sites.php - * - * @param ListTargetSitesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listTargetSites(ListTargetSitesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTargetSites', $request, $callOptions); - } - - /** - * Request on-demand recrawl for a list of URIs. - * - * The async variant is {@see SiteSearchEngineServiceClient::recrawlUrisAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/recrawl_uris.php - * - * @param RecrawlUrisRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 recrawlUris(RecrawlUrisRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RecrawlUris', $request, $callOptions)->wait(); - } - - /** - * Updates a [TargetSite][google.cloud.discoveryengine.v1.TargetSite]. - * - * The async variant is - * {@see SiteSearchEngineServiceClient::updateTargetSiteAsync()} . - * - * @example samples/V1/SiteSearchEngineServiceClient/update_target_site.php - * - * @param UpdateTargetSiteRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateTargetSite(UpdateTargetSiteRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateTargetSite', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/UserEventServiceClient.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/UserEventServiceClient.php deleted file mode 100644 index 083a8fecbd5a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/Client/UserEventServiceClient.php +++ /dev/null @@ -1,529 +0,0 @@ - collectUserEventAsync(CollectUserEventRequest $request, array $optionalArgs = []) - * @method PromiseInterface importUserEventsAsync(ImportUserEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface purgeUserEventsAsync(PurgeUserEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface writeUserEventAsync(WriteUserEventRequest $request, array $optionalArgs = []) - */ -final class UserEventServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.discoveryengine.v1.UserEventService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'discoveryengine.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'discoveryengine.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/user_event_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/user_event_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/user_event_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/user_event_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 data_store - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted data_store resource. - */ - public static function dataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('dataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a document - * resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted document resource. - */ - public static function documentName(string $project, string $location, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('document')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a engine - * resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $engine - * - * @return string The formatted engine resource. - */ - public static function engineName(string $project, string $location, string $collection, string $engine): string - { - return self::getPathTemplate('engine')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'engine' => $engine, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * - * @return string The formatted project_location_collection_data_store resource. - */ - public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string - { - return self::getPathTemplate('projectLocationCollectionDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_collection_data_store_branch_document resource. - * - * @param string $project - * @param string $location - * @param string $collection - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted project_location_collection_data_store_branch_document resource. - */ - public static function projectLocationCollectionDataStoreBranchDocumentName(string $project, string $location, string $collection, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('projectLocationCollectionDataStoreBranchDocument')->render([ - 'project' => $project, - 'location' => $location, - 'collection' => $collection, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * - * @return string The formatted project_location_data_store resource. - */ - public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string - { - return self::getPathTemplate('projectLocationDataStore')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_data_store_branch_document resource. - * - * @param string $project - * @param string $location - * @param string $dataStore - * @param string $branch - * @param string $document - * - * @return string The formatted project_location_data_store_branch_document resource. - */ - public static function projectLocationDataStoreBranchDocumentName(string $project, string $location, string $dataStore, string $branch, string $document): string - { - return self::getPathTemplate('projectLocationDataStoreBranchDocument')->render([ - 'project' => $project, - 'location' => $location, - 'data_store' => $dataStore, - 'branch' => $branch, - 'document' => $document, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - dataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - document: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - engine: projects/{project}/locations/{location}/collections/{collection}/engines/{engine} - * - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store} - * - projectLocationCollectionDataStoreBranchDocument: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store} - * - projectLocationDataStoreBranchDocument: projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document} - * - * 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 'discoveryengine.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); - } - - /** - * Writes a single user event from the browser. This uses a GET request to - * due to browser restriction of POST-ing to a third-party domain. - * - * This method is used only by the Discovery Engine API JavaScript pixel and - * Google Tag Manager. Users should not call this method directly. - * - * The async variant is {@see UserEventServiceClient::collectUserEventAsync()} . - * - * @example samples/V1/UserEventServiceClient/collect_user_event.php - * - * @param CollectUserEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return HttpBody - * - * @throws ApiException Thrown if the API call fails. - */ - public function collectUserEvent(CollectUserEventRequest $request, array $callOptions = []): HttpBody - { - return $this->startApiCall('CollectUserEvent', $request, $callOptions)->wait(); - } - - /** - * Bulk import of user events. Request processing might be - * synchronous. Events that already exist are skipped. - * Use this method for backfilling historical user events. - * - * Operation.response is of type ImportResponse. Note that it is - * possible for a subset of the items to be successfully inserted. - * Operation.metadata is of type ImportMetadata. - * - * The async variant is {@see UserEventServiceClient::importUserEventsAsync()} . - * - * @example samples/V1/UserEventServiceClient/import_user_events.php - * - * @param ImportUserEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 importUserEvents(ImportUserEventsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ImportUserEvents', $request, $callOptions)->wait(); - } - - /** - * Deletes permanently all user events specified by the filter provided. - * Depending on the number of events specified by the filter, this operation - * could take hours or days to complete. To test a filter, use the list - * command first. - * - * The async variant is {@see UserEventServiceClient::purgeUserEventsAsync()} . - * - * @example samples/V1/UserEventServiceClient/purge_user_events.php - * - * @param PurgeUserEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 purgeUserEvents(PurgeUserEventsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('PurgeUserEvents', $request, $callOptions)->wait(); - } - - /** - * Writes a single user event. - * - * The async variant is {@see UserEventServiceClient::writeUserEventAsync()} . - * - * @example samples/V1/UserEventServiceClient/write_user_event.php - * - * @param WriteUserEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return UserEvent - * - * @throws ApiException Thrown if the API call fails. - */ - public function writeUserEvent(WriteUserEventRequest $request, array $callOptions = []): UserEvent - { - return $this->startApiCall('WriteUserEvent', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/gapic_metadata.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 22ca1b944631..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,504 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.discoveryengine.v1", - "libraryPackage": "Google\\Cloud\\DiscoveryEngine\\V1", - "services": { - "CompletionService": { - "clients": { - "grpc": { - "libraryClient": "CompletionServiceGapicClient", - "rpcs": { - "CompleteQuery": { - "methods": [ - "completeQuery" - ] - }, - "ImportCompletionSuggestions": { - "methods": [ - "importCompletionSuggestions" - ] - }, - "ImportSuggestionDenyListEntries": { - "methods": [ - "importSuggestionDenyListEntries" - ] - }, - "PurgeCompletionSuggestions": { - "methods": [ - "purgeCompletionSuggestions" - ] - }, - "PurgeSuggestionDenyListEntries": { - "methods": [ - "purgeSuggestionDenyListEntries" - ] - } - } - } - } - }, - "ControlService": { - "clients": { - "grpc": { - "libraryClient": "ControlServiceGapicClient", - "rpcs": { - "CreateControl": { - "methods": [ - "createControl" - ] - }, - "DeleteControl": { - "methods": [ - "deleteControl" - ] - }, - "GetControl": { - "methods": [ - "getControl" - ] - }, - "ListControls": { - "methods": [ - "listControls" - ] - }, - "UpdateControl": { - "methods": [ - "updateControl" - ] - } - } - } - } - }, - "SearchService": { - "clients": { - "grpc": { - "libraryClient": "SearchServiceGapicClient", - "rpcs": { - "Search": { - "methods": [ - "search" - ] - }, - "SearchLite": { - "methods": [ - "searchLite" - ] - } - } - } - } - }, - "ConversationalSearchService": { - "clients": { - "grpc": { - "libraryClient": "ConversationalSearchServiceGapicClient", - "rpcs": { - "AnswerQuery": { - "methods": [ - "answerQuery" - ] - }, - "ConverseConversation": { - "methods": [ - "converseConversation" - ] - }, - "CreateConversation": { - "methods": [ - "createConversation" - ] - }, - "CreateSession": { - "methods": [ - "createSession" - ] - }, - "DeleteConversation": { - "methods": [ - "deleteConversation" - ] - }, - "DeleteSession": { - "methods": [ - "deleteSession" - ] - }, - "GetAnswer": { - "methods": [ - "getAnswer" - ] - }, - "GetConversation": { - "methods": [ - "getConversation" - ] - }, - "GetSession": { - "methods": [ - "getSession" - ] - }, - "ListConversations": { - "methods": [ - "listConversations" - ] - }, - "ListSessions": { - "methods": [ - "listSessions" - ] - }, - "UpdateConversation": { - "methods": [ - "updateConversation" - ] - }, - "UpdateSession": { - "methods": [ - "updateSession" - ] - } - } - } - } - }, - "DataStoreService": { - "clients": { - "grpc": { - "libraryClient": "DataStoreServiceGapicClient", - "rpcs": { - "CreateDataStore": { - "methods": [ - "createDataStore" - ] - }, - "DeleteDataStore": { - "methods": [ - "deleteDataStore" - ] - }, - "GetDataStore": { - "methods": [ - "getDataStore" - ] - }, - "ListDataStores": { - "methods": [ - "listDataStores" - ] - }, - "UpdateDataStore": { - "methods": [ - "updateDataStore" - ] - } - } - } - } - }, - "DocumentService": { - "clients": { - "grpc": { - "libraryClient": "DocumentServiceGapicClient", - "rpcs": { - "BatchGetDocumentsMetadata": { - "methods": [ - "batchGetDocumentsMetadata" - ] - }, - "CreateDocument": { - "methods": [ - "createDocument" - ] - }, - "DeleteDocument": { - "methods": [ - "deleteDocument" - ] - }, - "GetDocument": { - "methods": [ - "getDocument" - ] - }, - "ImportDocuments": { - "methods": [ - "importDocuments" - ] - }, - "ListDocuments": { - "methods": [ - "listDocuments" - ] - }, - "PurgeDocuments": { - "methods": [ - "purgeDocuments" - ] - }, - "UpdateDocument": { - "methods": [ - "updateDocument" - ] - } - } - } - } - }, - "EngineService": { - "clients": { - "grpc": { - "libraryClient": "EngineServiceGapicClient", - "rpcs": { - "CreateEngine": { - "methods": [ - "createEngine" - ] - }, - "DeleteEngine": { - "methods": [ - "deleteEngine" - ] - }, - "GetEngine": { - "methods": [ - "getEngine" - ] - }, - "ListEngines": { - "methods": [ - "listEngines" - ] - }, - "UpdateEngine": { - "methods": [ - "updateEngine" - ] - } - } - } - } - }, - "GroundedGenerationService": { - "clients": { - "grpc": { - "libraryClient": "GroundedGenerationServiceGapicClient", - "rpcs": { - "CheckGrounding": { - "methods": [ - "checkGrounding" - ] - }, - "GenerateGroundedContent": { - "methods": [ - "generateGroundedContent" - ] - }, - "StreamGenerateGroundedContent": { - "methods": [ - "streamGenerateGroundedContent" - ] - } - } - } - } - }, - "ProjectService": { - "clients": { - "grpc": { - "libraryClient": "ProjectServiceGapicClient", - "rpcs": { - "ProvisionProject": { - "methods": [ - "provisionProject" - ] - } - } - } - } - }, - "RankService": { - "clients": { - "grpc": { - "libraryClient": "RankServiceGapicClient", - "rpcs": { - "Rank": { - "methods": [ - "rank" - ] - } - } - } - } - }, - "RecommendationService": { - "clients": { - "grpc": { - "libraryClient": "RecommendationServiceGapicClient", - "rpcs": { - "Recommend": { - "methods": [ - "recommend" - ] - } - } - } - } - }, - "SchemaService": { - "clients": { - "grpc": { - "libraryClient": "SchemaServiceGapicClient", - "rpcs": { - "CreateSchema": { - "methods": [ - "createSchema" - ] - }, - "DeleteSchema": { - "methods": [ - "deleteSchema" - ] - }, - "GetSchema": { - "methods": [ - "getSchema" - ] - }, - "ListSchemas": { - "methods": [ - "listSchemas" - ] - }, - "UpdateSchema": { - "methods": [ - "updateSchema" - ] - } - } - } - } - }, - "SearchTuningService": { - "clients": { - "grpc": { - "libraryClient": "SearchTuningServiceGapicClient", - "rpcs": { - "ListCustomModels": { - "methods": [ - "listCustomModels" - ] - }, - "TrainCustomModel": { - "methods": [ - "trainCustomModel" - ] - } - } - } - } - }, - "SiteSearchEngineService": { - "clients": { - "grpc": { - "libraryClient": "SiteSearchEngineServiceGapicClient", - "rpcs": { - "BatchCreateTargetSites": { - "methods": [ - "batchCreateTargetSites" - ] - }, - "BatchVerifyTargetSites": { - "methods": [ - "batchVerifyTargetSites" - ] - }, - "CreateTargetSite": { - "methods": [ - "createTargetSite" - ] - }, - "DeleteTargetSite": { - "methods": [ - "deleteTargetSite" - ] - }, - "DisableAdvancedSiteSearch": { - "methods": [ - "disableAdvancedSiteSearch" - ] - }, - "EnableAdvancedSiteSearch": { - "methods": [ - "enableAdvancedSiteSearch" - ] - }, - "FetchDomainVerificationStatus": { - "methods": [ - "fetchDomainVerificationStatus" - ] - }, - "GetSiteSearchEngine": { - "methods": [ - "getSiteSearchEngine" - ] - }, - "GetTargetSite": { - "methods": [ - "getTargetSite" - ] - }, - "ListTargetSites": { - "methods": [ - "listTargetSites" - ] - }, - "RecrawlUris": { - "methods": [ - "recrawlUris" - ] - }, - "UpdateTargetSite": { - "methods": [ - "updateTargetSite" - ] - } - } - } - } - }, - "UserEventService": { - "clients": { - "grpc": { - "libraryClient": "UserEventServiceGapicClient", - "rpcs": { - "CollectUserEvent": { - "methods": [ - "collectUserEvent" - ] - }, - "ImportUserEvents": { - "methods": [ - "importUserEvents" - ] - }, - "PurgeUserEvents": { - "methods": [ - "purgeUserEvents" - ] - }, - "WriteUserEvent": { - "methods": [ - "writeUserEvent" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_client_config.json deleted file mode 100644 index 5aae19f8665c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_client_config.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.CompletionService": { - "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": 5000, - "initial_rpc_timeout_millis": 5000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 5000, - "total_timeout_millis": 5000 - } - }, - "methods": { - "CompleteQuery": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ImportCompletionSuggestions": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ImportSuggestionDenyListEntries": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "PurgeCompletionSuggestions": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "PurgeSuggestionDenyListEntries": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_descriptor_config.php deleted file mode 100644 index 69073542fe1c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_descriptor_config.php +++ /dev/null @@ -1,121 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.CompletionService' => [ - 'ImportCompletionSuggestions' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\ImportCompletionSuggestionsResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\ImportCompletionSuggestionsMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ImportSuggestionDenyListEntries' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\ImportSuggestionDenyListEntriesResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\ImportSuggestionDenyListEntriesMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'PurgeCompletionSuggestions' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\PurgeCompletionSuggestionsResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\PurgeCompletionSuggestionsMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'PurgeSuggestionDenyListEntries' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\PurgeSuggestionDenyListEntriesResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\PurgeSuggestionDenyListEntriesMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CompleteQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\CompleteQueryResponse', - 'headerParams' => [ - [ - 'keyName' => 'data_store', - 'fieldAccessors' => [ - 'getDataStore', - ], - ], - ], - ], - 'templateMap' => [ - 'dataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationCollectionDataStore' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}', - 'projectLocationDataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_rest_client_config.php deleted file mode 100644 index 77562ec9af55..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/completion_service_rest_client_config.php +++ /dev/null @@ -1,294 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.CompletionService' => [ - 'CompleteQuery' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{data_store=projects/*/locations/*/dataStores/*}:completeQuery', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{data_store=projects/*/locations/*/collections/*/dataStores/*}:completeQuery', - ], - ], - 'placeholders' => [ - 'data_store' => [ - 'getters' => [ - 'getDataStore', - ], - ], - ], - ], - 'ImportCompletionSuggestions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:import', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:import', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ImportSuggestionDenyListEntries' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:import', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/suggestionDenyListEntries:import', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'PurgeCompletionSuggestions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/completionSuggestions:purge', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/completionSuggestions:purge', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'PurgeSuggestionDenyListEntries' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/suggestionDenyListEntries:purge', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/**}/suggestionDenyListEntries:purge', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_client_config.json deleted file mode 100644 index 33605a623944..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_client_config.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.ControlService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_2_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_2_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "CreateControl": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "DeleteControl": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "GetControl": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListControls": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "UpdateControl": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_descriptor_config.php deleted file mode 100644 index 700f71e26f1b..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_descriptor_config.php +++ /dev/null @@ -1,107 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.ControlService' => [ - 'CreateControl' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Control', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteControl' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetControl' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Control', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListControls' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getControls', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\ListControlsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateControl' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Control', - 'headerParams' => [ - [ - 'keyName' => 'control.name', - 'fieldAccessors' => [ - 'getControl', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'control' => 'projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}', - 'dataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'engine' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}', - 'projectLocationCollectionDataStore' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}', - 'projectLocationCollectionDataStoreControl' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/controls/{control}', - 'projectLocationCollectionEngineControl' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/controls/{control}', - 'projectLocationDataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationDataStoreControl' => 'projects/{project}/locations/{location}/dataStores/{data_store}/controls/{control}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_rest_client_config.php deleted file mode 100644 index 744ce1c6caa2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/control_service_rest_client_config.php +++ /dev/null @@ -1,322 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.ControlService' => [ - 'CreateControl' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/controls', - 'body' => 'control', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/controls', - 'body' => 'control', - 'queryParams' => [ - 'control_id', - ], - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/engines/*}/controls', - 'body' => 'control', - 'queryParams' => [ - 'control_id', - ], - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'control_id', - ], - ], - 'DeleteControl' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/controls/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/controls/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/controls/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetControl' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/controls/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/controls/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/controls/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListControls' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/controls', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/controls', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/engines/*}/controls', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateControl' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{control.name=projects/*/locations/*/dataStores/*/controls/*}', - 'body' => 'control', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{control.name=projects/*/locations/*/collections/*/dataStores/*/controls/*}', - 'body' => 'control', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{control.name=projects/*/locations/*/collections/*/engines/*/controls/*}', - 'body' => 'control', - ], - ], - 'placeholders' => [ - 'control.name' => [ - 'getters' => [ - 'getControl', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_client_config.json deleted file mode 100644 index adf744b2626c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_client_config.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.ConversationalSearchService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_2_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_2_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "AnswerQuery": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ConverseConversation": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "CreateConversation": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "CreateSession": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "DeleteConversation": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "DeleteSession": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "GetAnswer": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "GetConversation": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "GetSession": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListConversations": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListSessions": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "UpdateConversation": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "UpdateSession": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_descriptor_config.php deleted file mode 100644 index 09ebae4664d4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_descriptor_config.php +++ /dev/null @@ -1,229 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.ConversationalSearchService' => [ - 'AnswerQuery' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\AnswerQueryResponse', - 'headerParams' => [ - [ - 'keyName' => 'serving_config', - 'fieldAccessors' => [ - 'getServingConfig', - ], - ], - ], - ], - 'ConverseConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\ConverseConversationResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Conversation', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSession' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Session', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSession' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetAnswer' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Answer', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Conversation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSession' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Session', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListConversations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConversations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\ListConversationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSessions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSessions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\ListSessionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateConversation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Conversation', - 'headerParams' => [ - [ - 'keyName' => 'conversation.name', - 'fieldAccessors' => [ - 'getConversation', - 'getName', - ], - ], - ], - ], - 'UpdateSession' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Session', - 'headerParams' => [ - [ - 'keyName' => 'session.name', - 'fieldAccessors' => [ - 'getSession', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'answer' => 'projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}', - 'chunk' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}', - 'conversation' => 'projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}', - 'dataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'document' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}', - 'projectLocationCollectionDataStore' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}', - 'projectLocationCollectionDataStoreBranchDocument' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}', - 'projectLocationCollectionDataStoreBranchDocumentChunk' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}', - 'projectLocationCollectionDataStoreConversation' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/conversations/{conversation}', - 'projectLocationCollectionDataStoreServingConfig' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}', - 'projectLocationCollectionDataStoreSession' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}', - 'projectLocationCollectionDataStoreSessionAnswer' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}/answers/{answer}', - 'projectLocationCollectionEngineConversation' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/conversations/{conversation}', - 'projectLocationCollectionEngineServingConfig' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}', - 'projectLocationCollectionEngineSession' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}', - 'projectLocationCollectionEngineSessionAnswer' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}/answers/{answer}', - 'projectLocationDataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationDataStoreBranchDocument' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}', - 'projectLocationDataStoreBranchDocumentChunk' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}', - 'projectLocationDataStoreConversation' => 'projects/{project}/locations/{location}/dataStores/{data_store}/conversations/{conversation}', - 'projectLocationDataStoreServingConfig' => 'projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}', - 'projectLocationDataStoreSession' => 'projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}', - 'projectLocationDataStoreSessionAnswer' => 'projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}/answers/{answer}', - 'servingConfig' => 'projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}', - 'session' => 'projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_rest_client_config.php deleted file mode 100644 index 72f19e677eea..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/conversational_search_service_rest_client_config.php +++ /dev/null @@ -1,494 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.ConversationalSearchService' => [ - 'AnswerQuery' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:answer', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:answer', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:answer', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'serving_config' => [ - 'getters' => [ - 'getServingConfig', - ], - ], - ], - ], - 'ConverseConversation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/conversations/*}:converse', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}:converse', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}:converse', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateConversation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/conversations', - 'body' => 'conversation', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations', - 'body' => 'conversation', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/engines/*}/conversations', - 'body' => 'conversation', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSession' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/sessions', - 'body' => 'session', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/sessions', - 'body' => 'session', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/engines/*}/sessions', - 'body' => 'session', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConversation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/conversations/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSession' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/sessions/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/sessions/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetAnswer' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/sessions/*/answers/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/sessions/*/answers/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/sessions/*/answers/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConversation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/conversations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/conversations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSession' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/sessions/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/sessions/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/sessions/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListConversations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/conversations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/conversations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/engines/*}/conversations', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSessions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/sessions', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/sessions', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/engines/*}/sessions', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateConversation' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{conversation.name=projects/*/locations/*/dataStores/*/conversations/*}', - 'body' => 'conversation', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{conversation.name=projects/*/locations/*/collections/*/dataStores/*/conversations/*}', - 'body' => 'conversation', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{conversation.name=projects/*/locations/*/collections/*/engines/*/conversations/*}', - 'body' => 'conversation', - ], - ], - 'placeholders' => [ - 'conversation.name' => [ - 'getters' => [ - 'getConversation', - 'getName', - ], - ], - ], - ], - 'UpdateSession' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{session.name=projects/*/locations/*/dataStores/*/sessions/*}', - 'body' => 'session', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{session.name=projects/*/locations/*/collections/*/dataStores/*/sessions/*}', - 'body' => 'session', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{session.name=projects/*/locations/*/collections/*/engines/*/sessions/*}', - 'body' => 'session', - ], - ], - 'placeholders' => [ - 'session.name' => [ - 'getters' => [ - 'getSession', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_client_config.json deleted file mode 100644 index f7f1ae4282fe..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_client_config.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.DataStoreService": { - "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": { - "CreateDataStore": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteDataStore": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetDataStore": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDataStores": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateDataStore": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_descriptor_config.php deleted file mode 100644 index b065b9584949..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_descriptor_config.php +++ /dev/null @@ -1,123 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.DataStoreService' => [ - 'CreateDataStore' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\DataStore', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\CreateDataStoreMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDataStore' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\DeleteDataStoreMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDataStore' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\DataStore', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDataStores' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDataStores', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\ListDataStoresResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataStore' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\DataStore', - 'headerParams' => [ - [ - 'keyName' => 'data_store.name', - 'fieldAccessors' => [ - 'getDataStore', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'collection' => 'projects/{project}/locations/{location}/collections/{collection}', - 'dataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'documentProcessingConfig' => 'projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig', - 'projectLocationCollectionDataStore' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}', - 'projectLocationCollectionDataStoreDocumentProcessingConfig' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/documentProcessingConfig', - 'projectLocationCollectionDataStoreSchema' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}', - 'projectLocationDataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationDataStoreDocumentProcessingConfig' => 'projects/{project}/locations/{location}/dataStores/{data_store}/documentProcessingConfig', - 'projectLocationDataStoreSchema' => 'projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}', - 'schema' => 'projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_rest_client_config.php deleted file mode 100644 index 80dec2169fdb..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/data_store_service_rest_client_config.php +++ /dev/null @@ -1,297 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.DataStoreService' => [ - 'CreateDataStore' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataStores', - 'body' => 'data_store', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*}/dataStores', - 'body' => 'data_store', - 'queryParams' => [ - 'data_store_id', - ], - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'data_store_id', - ], - ], - 'DeleteDataStore' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDataStore' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListDataStores' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/dataStores', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*}/dataStores', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDataStore' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_store.name=projects/*/locations/*/dataStores/*}', - 'body' => 'data_store', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{data_store.name=projects/*/locations/*/collections/*/dataStores/*}', - 'body' => 'data_store', - ], - ], - 'placeholders' => [ - 'data_store.name' => [ - 'getters' => [ - 'getDataStore', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_client_config.json deleted file mode 100644 index 454ed0f9c2b1..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_client_config.json +++ /dev/null @@ -1,86 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.DocumentService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_2_codes": [ - "UNAVAILABLE" - ], - "retry_policy_3_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_2_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - }, - "retry_policy_3_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 30000, - "initial_rpc_timeout_millis": 300000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 300000, - "total_timeout_millis": 300000 - } - }, - "methods": { - "BatchGetDocumentsMetadata": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "CreateDocument": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "DeleteDocument": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "GetDocument": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ImportDocuments": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "ListDocuments": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "PurgeDocuments": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "UpdateDocument": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_descriptor_config.php deleted file mode 100644 index 0ce6edcf1c89..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_descriptor_config.php +++ /dev/null @@ -1,157 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.DocumentService' => [ - 'ImportDocuments' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\ImportDocumentsResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\ImportDocumentsMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'PurgeDocuments' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\PurgeDocumentsResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\PurgeDocumentsMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchGetDocumentsMetadata' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\BatchGetDocumentsMetadataResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDocument' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Document', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteDocument' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDocument' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Document', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListDocuments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDocuments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\ListDocumentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDocument' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Document', - 'headerParams' => [ - [ - 'keyName' => 'document.name', - 'fieldAccessors' => [ - 'getDocument', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'branch' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}', - 'document' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}', - 'fhirResource' => 'projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}/fhir/{resource_type}/{fhir_resource_id}', - 'fhirStore' => 'projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_store}', - 'projectLocationCollectionDataStoreBranch' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}', - 'projectLocationCollectionDataStoreBranchDocument' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}', - 'projectLocationDataStoreBranch' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}', - 'projectLocationDataStoreBranchDocument' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_rest_client_config.php deleted file mode 100644 index ee26521bf65c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/document_service_rest_client_config.php +++ /dev/null @@ -1,358 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.DocumentService' => [ - 'BatchGetDocumentsMetadata' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*/branches/*}/batchGetDocumentsMetadata', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/batchGetDocumentsMetadata', - 'queryParams' => [ - 'matcher', - ], - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'matcher', - ], - ], - 'CreateDocument' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents', - 'body' => 'document', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents', - 'body' => 'document', - 'queryParams' => [ - 'document_id', - ], - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'document_id', - ], - ], - 'DeleteDocument' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDocument' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/documents/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ImportDocuments' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:import', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:import', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDocuments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'PurgeDocuments' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*/branches/*}/documents:purge', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*/branches/*}/documents:purge', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateDocument' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{document.name=projects/*/locations/*/dataStores/*/branches/*/documents/*}', - 'body' => 'document', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{document.name=projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*}', - 'body' => 'document', - ], - ], - 'placeholders' => [ - 'document.name' => [ - 'getters' => [ - 'getDocument', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_client_config.json deleted file mode 100644 index 66e13c2d889c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_client_config.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.EngineService": { - "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": { - "CreateEngine": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteEngine": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetEngine": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListEngines": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateEngine": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_descriptor_config.php deleted file mode 100644 index 004daa47b2e4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_descriptor_config.php +++ /dev/null @@ -1,115 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.EngineService' => [ - 'CreateEngine' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\Engine', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\CreateEngineMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteEngine' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\DeleteEngineMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEngine' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Engine', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListEngines' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEngines', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\ListEnginesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateEngine' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Engine', - 'headerParams' => [ - [ - 'keyName' => 'engine.name', - 'fieldAccessors' => [ - 'getEngine', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'collection' => 'projects/{project}/locations/{location}/collections/{collection}', - 'engine' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_rest_client_config.php deleted file mode 100644 index 0ef80187bf41..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/engine_service_rest_client_config.php +++ /dev/null @@ -1,262 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.EngineService' => [ - 'CreateEngine' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*}/engines', - 'body' => 'engine', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'engine_id', - ], - ], - 'DeleteEngine' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEngine' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListEngines' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*}/engines', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateEngine' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{engine.name=projects/*/locations/*/collections/*/engines/*}', - 'body' => 'engine', - 'placeholders' => [ - 'engine.name' => [ - 'getters' => [ - 'getEngine', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_client_config.json deleted file mode 100644 index 527fcc44020a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_client_config.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.GroundedGenerationService": { - "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": 5000, - "initial_rpc_timeout_millis": 5000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 5000, - "total_timeout_millis": 5000 - } - }, - "methods": { - "CheckGrounding": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GenerateGroundedContent": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "StreamGenerateGroundedContent": { - "timeout_millis": 5000 - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_descriptor_config.php deleted file mode 100644 index e4fc58d92897..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_descriptor_config.php +++ /dev/null @@ -1,75 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.GroundedGenerationService' => [ - 'CheckGrounding' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\CheckGroundingResponse', - 'headerParams' => [ - [ - 'keyName' => 'grounding_config', - 'fieldAccessors' => [ - 'getGroundingConfig', - ], - ], - ], - ], - 'GenerateGroundedContent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse', - 'headerParams' => [ - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'StreamGenerateGroundedContent' => [ - 'grpcStreaming' => [ - 'grpcStreamingType' => 'BidiStreaming', - ], - 'callType' => \Google\ApiCore\Call::BIDI_STREAMING_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\GenerateGroundedContentResponse', - 'headerParams' => [ - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'templateMap' => [ - 'groundingConfig' => 'projects/{project}/locations/{location}/groundingConfigs/{grounding_config}', - 'location' => 'projects/{project}/locations/{location}', - 'projectLocationCollectionDataStoreServingConfig' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}', - 'projectLocationCollectionEngineServingConfig' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}', - 'projectLocationDataStoreServingConfig' => 'projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}', - 'servingConfig' => 'projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_rest_client_config.php deleted file mode 100644 index 4ff1f90c475f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/grounded_generation_service_rest_client_config.php +++ /dev/null @@ -1,225 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.GroundedGenerationService' => [ - 'CheckGrounding' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{grounding_config=projects/*/locations/*/groundingConfigs/*}:check', - 'body' => '*', - 'placeholders' => [ - 'grounding_config' => [ - 'getters' => [ - 'getGroundingConfig', - ], - ], - ], - ], - 'GenerateGroundedContent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{location=projects/*/locations/*}:generateGroundedContent', - 'body' => '*', - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_client_config.json deleted file mode 100644 index f839e50fb937..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_client_config.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.ProjectService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_2_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_2_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "ProvisionProject": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_descriptor_config.php deleted file mode 100644 index c9c26b083790..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_descriptor_config.php +++ /dev/null @@ -1,50 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.ProjectService' => [ - 'ProvisionProject' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\Project', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\ProvisionProjectMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_rest_client_config.php deleted file mode 100644 index 273237494a76..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/project_service_rest_client_config.php +++ /dev/null @@ -1,213 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.ProjectService' => [ - 'ProvisionProject' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*}:provision', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_client_config.json deleted file mode 100644 index 3f12f3704101..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_client_config.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.RankService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_2_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_2_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "Rank": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_descriptor_config.php deleted file mode 100644 index 8bd837aebc52..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_descriptor_config.php +++ /dev/null @@ -1,43 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.RankService' => [ - 'Rank' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\RankResponse', - 'headerParams' => [ - [ - 'keyName' => 'ranking_config', - 'fieldAccessors' => [ - 'getRankingConfig', - ], - ], - ], - ], - 'templateMap' => [ - 'rankingConfig' => 'projects/{project}/locations/{location}/rankingConfigs/{ranking_config}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_rest_client_config.php deleted file mode 100644 index c9c4ea80db4a..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/rank_service_rest_client_config.php +++ /dev/null @@ -1,213 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.RankService' => [ - 'Rank' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{ranking_config=projects/*/locations/*/rankingConfigs/*}:rank', - 'body' => '*', - 'placeholders' => [ - 'ranking_config' => [ - 'getters' => [ - 'getRankingConfig', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_client_config.json deleted file mode 100644 index f9b55119b59f..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_client_config.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.RecommendationService": { - "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": 5000, - "initial_rpc_timeout_millis": 5000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 5000, - "total_timeout_millis": 5000 - } - }, - "methods": { - "Recommend": { - "timeout_millis": 5000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_descriptor_config.php deleted file mode 100644 index 06583f9a1429..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_descriptor_config.php +++ /dev/null @@ -1,53 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.RecommendationService' => [ - 'Recommend' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\RecommendResponse', - 'headerParams' => [ - [ - 'keyName' => 'serving_config', - 'fieldAccessors' => [ - 'getServingConfig', - ], - ], - ], - ], - 'templateMap' => [ - 'dataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'document' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}', - 'engine' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}', - 'projectLocationCollectionDataStore' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}', - 'projectLocationCollectionDataStoreBranchDocument' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}', - 'projectLocationCollectionDataStoreServingConfig' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}', - 'projectLocationCollectionEngineServingConfig' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}', - 'projectLocationDataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationDataStoreBranchDocument' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}', - 'projectLocationDataStoreServingConfig' => 'projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}', - 'servingConfig' => 'projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_rest_client_config.php deleted file mode 100644 index 1dcb170de077..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/recommendation_service_rest_client_config.php +++ /dev/null @@ -1,225 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.RecommendationService' => [ - 'Recommend' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:recommend', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:recommend', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:recommend', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'serving_config' => [ - 'getters' => [ - 'getServingConfig', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_client_config.json deleted file mode 100644 index 1a3d7794fef9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_client_config.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.SchemaService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_2_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_2_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "CreateSchema": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "DeleteSchema": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "GetSchema": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ListSchemas": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "UpdateSchema": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_descriptor_config.php deleted file mode 100644 index 235a2c1ade96..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_descriptor_config.php +++ /dev/null @@ -1,126 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.SchemaService' => [ - 'CreateSchema' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\Schema', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\CreateSchemaMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteSchema' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\DeleteSchemaMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateSchema' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\Schema', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\UpdateSchemaMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'schema.name', - 'fieldAccessors' => [ - 'getSchema', - 'getName', - ], - ], - ], - ], - 'GetSchema' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\Schema', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListSchemas' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSchemas', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\ListSchemasResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'dataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationCollectionDataStore' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}', - 'projectLocationCollectionDataStoreSchema' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/schemas/{schema}', - 'projectLocationDataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationDataStoreSchema' => 'projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}', - 'schema' => 'projects/{project}/locations/{location}/dataStores/{data_store}/schemas/{schema}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_rest_client_config.php deleted file mode 100644 index b7810150dda4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/schema_service_rest_client_config.php +++ /dev/null @@ -1,297 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.SchemaService' => [ - 'CreateSchema' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/schemas', - 'body' => 'schema', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/schemas', - 'body' => 'schema', - 'queryParams' => [ - 'schema_id', - ], - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'schema_id', - ], - ], - 'DeleteSchema' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/schemas/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSchema' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/schemas/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListSchemas' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/schemas', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/schemas', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateSchema' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{schema.name=projects/*/locations/*/dataStores/*/schemas/*}', - 'body' => 'schema', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{schema.name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}', - 'body' => 'schema', - ], - ], - 'placeholders' => [ - 'schema.name' => [ - 'getters' => [ - 'getSchema', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_client_config.json deleted file mode 100644 index 7b29799035ac..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_client_config.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.SearchService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_2_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_2_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - } - }, - "methods": { - "Search": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "SearchLite": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_descriptor_config.php deleted file mode 100644 index 04927acc01a2..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_descriptor_config.php +++ /dev/null @@ -1,84 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.SearchService' => [ - 'Search' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\SearchResponse', - 'headerParams' => [ - [ - 'keyName' => 'serving_config', - 'fieldAccessors' => [ - 'getServingConfig', - ], - ], - ], - ], - 'SearchLite' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getResults', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\SearchResponse', - 'headerParams' => [ - [ - 'keyName' => 'serving_config', - 'fieldAccessors' => [ - 'getServingConfig', - ], - ], - ], - ], - 'templateMap' => [ - 'branch' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}', - 'dataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationCollectionDataStore' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}', - 'projectLocationCollectionDataStoreBranch' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}', - 'projectLocationCollectionDataStoreServingConfig' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/servingConfigs/{serving_config}', - 'projectLocationCollectionDataStoreSession' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/sessions/{session}', - 'projectLocationCollectionEngineServingConfig' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config}', - 'projectLocationCollectionEngineSession' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}', - 'projectLocationDataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationDataStoreBranch' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}', - 'projectLocationDataStoreServingConfig' => 'projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}', - 'projectLocationDataStoreSession' => 'projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}', - 'servingConfig' => 'projects/{project}/locations/{location}/dataStores/{data_store}/servingConfigs/{serving_config}', - 'session' => 'projects/{project}/locations/{location}/dataStores/{data_store}/sessions/{session}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_rest_client_config.php deleted file mode 100644 index 57bb2e58e3ff..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_service_rest_client_config.php +++ /dev/null @@ -1,249 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.SearchService' => [ - 'Search' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:search', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:search', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:search', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'serving_config' => [ - 'getters' => [ - 'getServingConfig', - ], - ], - ], - ], - 'SearchLite' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/dataStores/*/servingConfigs/*}:searchLite', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/collections/*/dataStores/*/servingConfigs/*}:searchLite', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{serving_config=projects/*/locations/*/collections/*/engines/*/servingConfigs/*}:searchLite', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'serving_config' => [ - 'getters' => [ - 'getServingConfig', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_client_config.json deleted file mode 100644 index 72b314ee3611..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_client_config.json +++ /dev/null @@ -1,32 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.SearchTuningService": { - "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": { - "ListCustomModels": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TrainCustomModel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_descriptor_config.php deleted file mode 100644 index 196bb3447ba9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.SearchTuningService' => [ - 'TrainCustomModel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\TrainCustomModelResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\TrainCustomModelMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'data_store', - 'fieldAccessors' => [ - 'getDataStore', - ], - ], - ], - ], - 'ListCustomModels' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\ListCustomModelsResponse', - 'headerParams' => [ - [ - 'keyName' => 'data_store', - 'fieldAccessors' => [ - 'getDataStore', - ], - ], - ], - ], - 'templateMap' => [ - 'dataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationCollectionDataStore' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}', - 'projectLocationDataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_rest_client_config.php deleted file mode 100644 index 24a6d6eb4c13..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/search_tuning_service_rest_client_config.php +++ /dev/null @@ -1,224 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.SearchTuningService' => [ - 'ListCustomModels' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{data_store=projects/*/locations/*/collections/*/dataStores/*}/customModels', - 'placeholders' => [ - 'data_store' => [ - 'getters' => [ - 'getDataStore', - ], - ], - ], - ], - 'TrainCustomModel' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{data_store=projects/*/locations/*/collections/*/dataStores/*}:trainCustomModel', - 'body' => '*', - 'placeholders' => [ - 'data_store' => [ - 'getters' => [ - 'getDataStore', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_client_config.json deleted file mode 100644 index 485f00cdbb30..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_client_config.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.SiteSearchEngineService": { - "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": { - "BatchCreateTargetSites": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "BatchVerifyTargetSites": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateTargetSite": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteTargetSite": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DisableAdvancedSiteSearch": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "EnableAdvancedSiteSearch": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchDomainVerificationStatus": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetSiteSearchEngine": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetTargetSite": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListTargetSites": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RecrawlUris": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateTargetSite": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_descriptor_config.php deleted file mode 100644 index a33ba3031299..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_descriptor_config.php +++ /dev/null @@ -1,253 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.SiteSearchEngineService' => [ - 'BatchCreateTargetSites' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\BatchCreateTargetSitesResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\BatchCreateTargetSiteMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'BatchVerifyTargetSites' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\BatchVerifyTargetSitesResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\BatchVerifyTargetSitesMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTargetSite' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\TargetSite', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\CreateTargetSiteMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteTargetSite' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\DeleteTargetSiteMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DisableAdvancedSiteSearch' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\DisableAdvancedSiteSearchResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\DisableAdvancedSiteSearchMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'site_search_engine', - 'fieldAccessors' => [ - 'getSiteSearchEngine', - ], - ], - ], - ], - 'EnableAdvancedSiteSearch' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\EnableAdvancedSiteSearchResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\EnableAdvancedSiteSearchMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'site_search_engine', - 'fieldAccessors' => [ - 'getSiteSearchEngine', - ], - ], - ], - ], - 'RecrawlUris' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\RecrawlUrisResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\RecrawlUrisMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'site_search_engine', - 'fieldAccessors' => [ - 'getSiteSearchEngine', - ], - ], - ], - ], - 'UpdateTargetSite' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\TargetSite', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\UpdateTargetSiteMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'target_site.name', - 'fieldAccessors' => [ - 'getTargetSite', - 'getName', - ], - ], - ], - ], - 'FetchDomainVerificationStatus' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTargetSites', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\FetchDomainVerificationStatusResponse', - 'headerParams' => [ - [ - 'keyName' => 'site_search_engine', - 'fieldAccessors' => [ - 'getSiteSearchEngine', - ], - ], - ], - ], - 'GetSiteSearchEngine' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\SiteSearchEngine', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTargetSite' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\TargetSite', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListTargetSites' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTargetSites', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\ListTargetSitesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'projectLocationCollectionDataStoreSiteSearchEngine' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine', - 'projectLocationCollectionDataStoreTargetSite' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}', - 'projectLocationDataStoreSiteSearchEngine' => 'projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine', - 'projectLocationDataStoreTargetSite' => 'projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}', - 'siteSearchEngine' => 'projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine', - 'targetSite' => 'projects/{project}/locations/{location}/dataStores/{data_store}/siteSearchEngine/targetSites/{target_site}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_rest_client_config.php deleted file mode 100644 index a8fa128e0290..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/site_search_engine_service_rest_client_config.php +++ /dev/null @@ -1,407 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.SiteSearchEngineService' => [ - 'BatchCreateTargetSites' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*/siteSearchEngine}/targetSites:batchCreate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/targetSites:batchCreate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'BatchVerifyTargetSites' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:batchVerifyTargetSites', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTargetSite' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*/siteSearchEngine}/targetSites', - 'body' => 'target_site', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/targetSites', - 'body' => 'target_site', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteTargetSite' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/siteSearchEngine/targetSites/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DisableAdvancedSiteSearch' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{site_search_engine=projects/*/locations/*/dataStores/*/siteSearchEngine}:disableAdvancedSiteSearch', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{site_search_engine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:disableAdvancedSiteSearch', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'site_search_engine' => [ - 'getters' => [ - 'getSiteSearchEngine', - ], - ], - ], - ], - 'EnableAdvancedSiteSearch' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{site_search_engine=projects/*/locations/*/dataStores/*/siteSearchEngine}:enableAdvancedSiteSearch', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{site_search_engine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:enableAdvancedSiteSearch', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'site_search_engine' => [ - 'getters' => [ - 'getSiteSearchEngine', - ], - ], - ], - ], - 'FetchDomainVerificationStatus' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{site_search_engine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:fetchDomainVerificationStatus', - 'placeholders' => [ - 'site_search_engine' => [ - 'getters' => [ - 'getSiteSearchEngine', - ], - ], - ], - ], - 'GetSiteSearchEngine' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/siteSearchEngine}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTargetSite' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/siteSearchEngine/targetSites/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListTargetSites' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*/siteSearchEngine}/targetSites', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/targetSites', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RecrawlUris' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{site_search_engine=projects/*/locations/*/dataStores/*/siteSearchEngine}:recrawlUris', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{site_search_engine=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}:recrawlUris', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'site_search_engine' => [ - 'getters' => [ - 'getSiteSearchEngine', - ], - ], - ], - ], - 'UpdateTargetSite' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{target_site.name=projects/*/locations/*/dataStores/*/siteSearchEngine/targetSites/*}', - 'body' => 'target_site', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{target_site.name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/*}', - 'body' => 'target_site', - ], - ], - 'placeholders' => [ - 'target_site.name' => [ - 'getters' => [ - 'getTargetSite', - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_client_config.json b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_client_config.json deleted file mode 100644 index f081e0dbbb9e..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_client_config.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "interfaces": { - "google.cloud.discoveryengine.v1.UserEventService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_2_codes": [ - "UNAVAILABLE" - ], - "retry_policy_3_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_2_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 10000, - "initial_rpc_timeout_millis": 30000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 30000, - "total_timeout_millis": 30000 - }, - "retry_policy_3_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 30000, - "initial_rpc_timeout_millis": 300000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 300000, - "total_timeout_millis": 300000 - } - }, - "methods": { - "CollectUserEvent": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "ImportUserEvents": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_3_codes", - "retry_params_name": "retry_policy_3_params" - }, - "PurgeUserEvents": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "WriteUserEvent": { - "timeout_millis": 30000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - } - } - } - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_descriptor_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_descriptor_config.php deleted file mode 100644 index 2ba790187ee0..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_descriptor_config.php +++ /dev/null @@ -1,99 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.UserEventService' => [ - 'ImportUserEvents' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\ImportUserEventsResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\ImportUserEventsMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'PurgeUserEvents' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DiscoveryEngine\V1\PurgeUserEventsResponse', - 'metadataReturnType' => '\Google\Cloud\DiscoveryEngine\V1\PurgeUserEventsMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CollectUserEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Api\HttpBody', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'WriteUserEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DiscoveryEngine\V1\UserEvent', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'templateMap' => [ - 'dataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'document' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}', - 'engine' => 'projects/{project}/locations/{location}/collections/{collection}/engines/{engine}', - 'projectLocationCollectionDataStore' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}', - 'projectLocationCollectionDataStoreBranchDocument' => 'projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document}', - 'projectLocationDataStore' => 'projects/{project}/locations/{location}/dataStores/{data_store}', - 'projectLocationDataStoreBranchDocument' => 'projects/{project}/locations/{location}/dataStores/{data_store}/branches/{branch}/documents/{document}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_rest_client_config.php b/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_rest_client_config.php deleted file mode 100644 index 806309062225..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/src/V1/resources/user_event_service_rest_client_config.php +++ /dev/null @@ -1,284 +0,0 @@ - [ - 'google.cloud.discoveryengine.v1.UserEventService' => [ - 'CollectUserEvent' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:collect', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:collect', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/userEvents:collect', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ImportUserEvents' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:import', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:import', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'PurgeUserEvents' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:purge', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:purge', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'WriteUserEvent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/dataStores/*}/userEvents:write', - 'body' => 'user_event', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/collections/*/dataStores/*}/userEvents:write', - 'body' => 'user_event', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/userEvents:write', - 'body' => 'user_event', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataConnector}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/schemas/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine/targetSites}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*/engines/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/collections/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/branches/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*/models/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/dataStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/identityMappingStores/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/operations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/CompletionServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/CompletionServiceClientTest.php deleted file mode 100644 index cefb1d6b6646..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/CompletionServiceClientTest.php +++ /dev/null @@ -1,669 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return CompletionServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new CompletionServiceClient($options); - } - - /** @test */ - public function completeQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $tailMatchTriggered = true; - $expectedResponse = new CompleteQueryResponse(); - $expectedResponse->setTailMatchTriggered($tailMatchTriggered); - $transport->addResponse($expectedResponse); - // Mock request - $formattedDataStore = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $query = 'query107944136'; - $request = (new CompleteQueryRequest()) - ->setDataStore($formattedDataStore) - ->setQuery($query); - $response = $gapicClient->completeQuery($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.discoveryengine.v1.CompletionService/CompleteQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getDataStore(); - $this->assertProtobufEquals($formattedDataStore, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function completeQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedDataStore = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $query = 'query107944136'; - $request = (new CompleteQueryRequest()) - ->setDataStore($formattedDataStore) - ->setQuery($query); - try { - $gapicClient->completeQuery($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function importCompletionSuggestionsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importCompletionSuggestionsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new ImportCompletionSuggestionsResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/importCompletionSuggestionsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ImportCompletionSuggestionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->importCompletionSuggestions($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.discoveryengine.v1.CompletionService/ImportCompletionSuggestions', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importCompletionSuggestionsTest'); - $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 importCompletionSuggestionsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importCompletionSuggestionsTest'); - $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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ImportCompletionSuggestionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->importCompletionSuggestions($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importCompletionSuggestionsTest'); - 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 importSuggestionDenyListEntriesTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importSuggestionDenyListEntriesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $importedEntriesCount = 325324123; - $failedEntriesCount = 1467071458; - $expectedResponse = new ImportSuggestionDenyListEntriesResponse(); - $expectedResponse->setImportedEntriesCount($importedEntriesCount); - $expectedResponse->setFailedEntriesCount($failedEntriesCount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/importSuggestionDenyListEntriesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ImportSuggestionDenyListEntriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->importSuggestionDenyListEntries($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.discoveryengine.v1.CompletionService/ImportSuggestionDenyListEntries', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importSuggestionDenyListEntriesTest'); - $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 importSuggestionDenyListEntriesExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importSuggestionDenyListEntriesTest'); - $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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ImportSuggestionDenyListEntriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->importSuggestionDenyListEntries($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importSuggestionDenyListEntriesTest'); - 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 purgeCompletionSuggestionsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/purgeCompletionSuggestionsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $purgeSucceeded = false; - $expectedResponse = new PurgeCompletionSuggestionsResponse(); - $expectedResponse->setPurgeSucceeded($purgeSucceeded); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/purgeCompletionSuggestionsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new PurgeCompletionSuggestionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->purgeCompletionSuggestions($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.discoveryengine.v1.CompletionService/PurgeCompletionSuggestions', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/purgeCompletionSuggestionsTest'); - $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 purgeCompletionSuggestionsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/purgeCompletionSuggestionsTest'); - $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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new PurgeCompletionSuggestionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->purgeCompletionSuggestions($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/purgeCompletionSuggestionsTest'); - 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 purgeSuggestionDenyListEntriesTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/purgeSuggestionDenyListEntriesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $purgeCount = 575305851; - $expectedResponse = new PurgeSuggestionDenyListEntriesResponse(); - $expectedResponse->setPurgeCount($purgeCount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/purgeSuggestionDenyListEntriesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new PurgeSuggestionDenyListEntriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->purgeSuggestionDenyListEntries($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.discoveryengine.v1.CompletionService/PurgeSuggestionDenyListEntries', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/purgeSuggestionDenyListEntriesTest'); - $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 purgeSuggestionDenyListEntriesExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/purgeSuggestionDenyListEntriesTest'); - $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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new PurgeSuggestionDenyListEntriesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->purgeSuggestionDenyListEntries($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/purgeSuggestionDenyListEntriesTest'); - 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 completeQueryAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $tailMatchTriggered = true; - $expectedResponse = new CompleteQueryResponse(); - $expectedResponse->setTailMatchTriggered($tailMatchTriggered); - $transport->addResponse($expectedResponse); - // Mock request - $formattedDataStore = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $query = 'query107944136'; - $request = (new CompleteQueryRequest()) - ->setDataStore($formattedDataStore) - ->setQuery($query); - $response = $gapicClient->completeQueryAsync($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.discoveryengine.v1.CompletionService/CompleteQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getDataStore(); - $this->assertProtobufEquals($formattedDataStore, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ControlServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ControlServiceClientTest.php deleted file mode 100644 index f72a8957c594..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ControlServiceClientTest.php +++ /dev/null @@ -1,471 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ControlServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ControlServiceClient($options); - } - - /** @test */ - public function createControlTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Control(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $control = new Control(); - $controlDisplayName = 'controlDisplayName-1438249776'; - $control->setDisplayName($controlDisplayName); - $controlSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $control->setSolutionType($controlSolutionType); - $controlId = 'controlId637416253'; - $request = (new CreateControlRequest()) - ->setParent($formattedParent) - ->setControl($control) - ->setControlId($controlId); - $response = $gapicClient->createControl($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.discoveryengine.v1.ControlService/CreateControl', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getControl(); - $this->assertProtobufEquals($control, $actualValue); - $actualValue = $actualRequestObject->getControlId(); - $this->assertProtobufEquals($controlId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createControlExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $control = new Control(); - $controlDisplayName = 'controlDisplayName-1438249776'; - $control->setDisplayName($controlDisplayName); - $controlSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $control->setSolutionType($controlSolutionType); - $controlId = 'controlId637416253'; - $request = (new CreateControlRequest()) - ->setParent($formattedParent) - ->setControl($control) - ->setControlId($controlId); - try { - $gapicClient->createControl($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteControlTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->controlName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[CONTROL]'); - $request = (new DeleteControlRequest()) - ->setName($formattedName); - $gapicClient->deleteControl($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.ControlService/DeleteControl', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteControlExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->controlName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[CONTROL]'); - $request = (new DeleteControlRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteControl($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getControlTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Control(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->controlName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[CONTROL]'); - $request = (new GetControlRequest()) - ->setName($formattedName); - $response = $gapicClient->getControl($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.discoveryengine.v1.ControlService/GetControl', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getControlExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->controlName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[CONTROL]'); - $request = (new GetControlRequest()) - ->setName($formattedName); - try { - $gapicClient->getControl($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listControlsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $controlsElement = new Control(); - $controls = [ - $controlsElement, - ]; - $expectedResponse = new ListControlsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setControls($controls); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListControlsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listControls($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getControls()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.ControlService/ListControls', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listControlsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListControlsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listControls($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateControlTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Control(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $control = new Control(); - $controlDisplayName = 'controlDisplayName-1438249776'; - $control->setDisplayName($controlDisplayName); - $controlSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $control->setSolutionType($controlSolutionType); - $request = (new UpdateControlRequest()) - ->setControl($control); - $response = $gapicClient->updateControl($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.discoveryengine.v1.ControlService/UpdateControl', $actualFuncCall); - $actualValue = $actualRequestObject->getControl(); - $this->assertProtobufEquals($control, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateControlExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $control = new Control(); - $controlDisplayName = 'controlDisplayName-1438249776'; - $control->setDisplayName($controlDisplayName); - $controlSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $control->setSolutionType($controlSolutionType); - $request = (new UpdateControlRequest()) - ->setControl($control); - try { - $gapicClient->updateControl($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createControlAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Control(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $control = new Control(); - $controlDisplayName = 'controlDisplayName-1438249776'; - $control->setDisplayName($controlDisplayName); - $controlSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $control->setSolutionType($controlSolutionType); - $controlId = 'controlId637416253'; - $request = (new CreateControlRequest()) - ->setParent($formattedParent) - ->setControl($control) - ->setControlId($controlId); - $response = $gapicClient->createControlAsync($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.discoveryengine.v1.ControlService/CreateControl', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getControl(); - $this->assertProtobufEquals($control, $actualValue); - $actualValue = $actualRequestObject->getControlId(); - $this->assertProtobufEquals($controlId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ConversationalSearchServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ConversationalSearchServiceClientTest.php deleted file mode 100644 index 52cb666f31a4..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ConversationalSearchServiceClientTest.php +++ /dev/null @@ -1,994 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ConversationalSearchServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ConversationalSearchServiceClient($options); - } - - /** @test */ - public function answerQueryTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $answerQueryToken = 'answerQueryToken886927553'; - $expectedResponse = new AnswerQueryResponse(); - $expectedResponse->setAnswerQueryToken($answerQueryToken); - $transport->addResponse($expectedResponse); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $query = new Query(); - $request = (new AnswerQueryRequest()) - ->setServingConfig($formattedServingConfig) - ->setQuery($query); - $response = $gapicClient->answerQuery($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.discoveryengine.v1.ConversationalSearchService/AnswerQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getServingConfig(); - $this->assertProtobufEquals($formattedServingConfig, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function answerQueryExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $query = new Query(); - $request = (new AnswerQueryRequest()) - ->setServingConfig($formattedServingConfig) - ->setQuery($query); - try { - $gapicClient->answerQuery($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function converseConversationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ConverseConversationResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[CONVERSATION]'); - $query = new TextInput(); - $request = (new ConverseConversationRequest()) - ->setName($formattedName) - ->setQuery($query); - $response = $gapicClient->converseConversation($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.discoveryengine.v1.ConversationalSearchService/ConverseConversation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function converseConversationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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]', '[DATA_STORE]', '[CONVERSATION]'); - $query = new TextInput(); - $request = (new ConverseConversationRequest()) - ->setName($formattedName) - ->setQuery($query); - try { - $gapicClient->converseConversation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConversationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $userPseudoId = 'userPseudoId-1850666040'; - $expectedResponse = new Conversation(); - $expectedResponse->setName($name); - $expectedResponse->setUserPseudoId($userPseudoId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $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.discoveryengine.v1.ConversationalSearchService/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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $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 createSessionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $userPseudoId = 'userPseudoId-1850666040'; - $expectedResponse = new Session(); - $expectedResponse->setName($name); - $expectedResponse->setUserPseudoId($userPseudoId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $session = new Session(); - $request = (new CreateSessionRequest()) - ->setParent($formattedParent) - ->setSession($session); - $response = $gapicClient->createSession($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.discoveryengine.v1.ConversationalSearchService/CreateSession', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getSession(); - $this->assertProtobufEquals($session, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createSessionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $session = new Session(); - $request = (new CreateSessionRequest()) - ->setParent($formattedParent) - ->setSession($session); - try { - $gapicClient->createSession($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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]', '[DATA_STORE]', '[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.discoveryengine.v1.ConversationalSearchService/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]', '[DATA_STORE]', '[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 deleteSessionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sessionName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SESSION]'); - $request = (new DeleteSessionRequest()) - ->setName($formattedName); - $gapicClient->deleteSession($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.ConversationalSearchService/DeleteSession', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteSessionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sessionName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SESSION]'); - $request = (new DeleteSessionRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteSession($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAnswerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $answerText = 'answerText-311499506'; - $expectedResponse = new Answer(); - $expectedResponse->setName($name2); - $expectedResponse->setAnswerText($answerText); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->answerName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SESSION]', '[ANSWER]'); - $request = (new GetAnswerRequest()) - ->setName($formattedName); - $response = $gapicClient->getAnswer($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.discoveryengine.v1.ConversationalSearchService/GetAnswer', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getAnswerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->answerName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SESSION]', '[ANSWER]'); - $request = (new GetAnswerRequest()) - ->setName($formattedName); - try { - $gapicClient->getAnswer($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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'; - $userPseudoId = 'userPseudoId-1850666040'; - $expectedResponse = new Conversation(); - $expectedResponse->setName($name2); - $expectedResponse->setUserPseudoId($userPseudoId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->conversationName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[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.discoveryengine.v1.ConversationalSearchService/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]', '[DATA_STORE]', '[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 getSessionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $userPseudoId = 'userPseudoId-1850666040'; - $expectedResponse = new Session(); - $expectedResponse->setName($name2); - $expectedResponse->setUserPseudoId($userPseudoId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->sessionName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SESSION]'); - $request = (new GetSessionRequest()) - ->setName($formattedName); - $response = $gapicClient->getSession($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.discoveryengine.v1.ConversationalSearchService/GetSession', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSessionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->sessionName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SESSION]'); - $request = (new GetSessionRequest()) - ->setName($formattedName); - try { - $gapicClient->getSession($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $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.discoveryengine.v1.ConversationalSearchService/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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $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 listSessionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $sessionsElement = new Session(); - $sessions = [ - $sessionsElement, - ]; - $expectedResponse = new ListSessionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSessions($sessions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListSessionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSessions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSessions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.ConversationalSearchService/ListSessions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSessionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListSessionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSessions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConversationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $userPseudoId = 'userPseudoId-1850666040'; - $expectedResponse = new Conversation(); - $expectedResponse->setName($name); - $expectedResponse->setUserPseudoId($userPseudoId); - $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.discoveryengine.v1.ConversationalSearchService/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 updateSessionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $userPseudoId = 'userPseudoId-1850666040'; - $expectedResponse = new Session(); - $expectedResponse->setName($name); - $expectedResponse->setUserPseudoId($userPseudoId); - $transport->addResponse($expectedResponse); - // Mock request - $session = new Session(); - $request = (new UpdateSessionRequest()) - ->setSession($session); - $response = $gapicClient->updateSession($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.discoveryengine.v1.ConversationalSearchService/UpdateSession', $actualFuncCall); - $actualValue = $actualRequestObject->getSession(); - $this->assertProtobufEquals($session, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSessionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $session = new Session(); - $request = (new UpdateSessionRequest()) - ->setSession($session); - try { - $gapicClient->updateSession($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function answerQueryAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $answerQueryToken = 'answerQueryToken886927553'; - $expectedResponse = new AnswerQueryResponse(); - $expectedResponse->setAnswerQueryToken($answerQueryToken); - $transport->addResponse($expectedResponse); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $query = new Query(); - $request = (new AnswerQueryRequest()) - ->setServingConfig($formattedServingConfig) - ->setQuery($query); - $response = $gapicClient->answerQueryAsync($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.discoveryengine.v1.ConversationalSearchService/AnswerQuery', $actualFuncCall); - $actualValue = $actualRequestObject->getServingConfig(); - $this->assertProtobufEquals($formattedServingConfig, $actualValue); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/DataStoreServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/DataStoreServiceClientTest.php deleted file mode 100644 index c4caa4baee08..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/DataStoreServiceClientTest.php +++ /dev/null @@ -1,628 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DataStoreServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DataStoreServiceClient($options); - } - - /** @test */ - public function createDataStoreTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDataStoreTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $defaultSchemaId = 'defaultSchemaId972292091'; - $expectedResponse = new DataStore(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDefaultSchemaId($defaultSchemaId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataStoreTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $dataStore = new DataStore(); - $dataStoreDisplayName = 'dataStoreDisplayName-584810858'; - $dataStore->setDisplayName($dataStoreDisplayName); - $dataStoreId = 'dataStoreId-2001599954'; - $request = (new CreateDataStoreRequest()) - ->setParent($formattedParent) - ->setDataStore($dataStore) - ->setDataStoreId($dataStoreId); - $response = $gapicClient->createDataStore($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.discoveryengine.v1.DataStoreService/CreateDataStore', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataStore(); - $this->assertProtobufEquals($dataStore, $actualValue); - $actualValue = $actualApiRequestObject->getDataStoreId(); - $this->assertProtobufEquals($dataStoreId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataStoreTest'); - $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 createDataStoreExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDataStoreTest'); - $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->collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $dataStore = new DataStore(); - $dataStoreDisplayName = 'dataStoreDisplayName-584810858'; - $dataStore->setDisplayName($dataStoreDisplayName); - $dataStoreId = 'dataStoreId-2001599954'; - $request = (new CreateDataStoreRequest()) - ->setParent($formattedParent) - ->setDataStore($dataStore) - ->setDataStoreId($dataStoreId); - $response = $gapicClient->createDataStore($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataStoreTest'); - 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 deleteDataStoreTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteDataStoreTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteDataStoreTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new DeleteDataStoreRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataStore($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.discoveryengine.v1.DataStoreService/DeleteDataStore', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataStoreTest'); - $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 deleteDataStoreExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteDataStoreTest'); - $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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new DeleteDataStoreRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteDataStore($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteDataStoreTest'); - 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 getDataStoreTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $defaultSchemaId = 'defaultSchemaId972292091'; - $expectedResponse = new DataStore(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDefaultSchemaId($defaultSchemaId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new GetDataStoreRequest()) - ->setName($formattedName); - $response = $gapicClient->getDataStore($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.discoveryengine.v1.DataStoreService/GetDataStore', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDataStoreExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new GetDataStoreRequest()) - ->setName($formattedName); - try { - $gapicClient->getDataStore($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStoresTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $dataStoresElement = new DataStore(); - $dataStores = [ - $dataStoresElement, - ]; - $expectedResponse = new ListDataStoresResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDataStores($dataStores); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $request = (new ListDataStoresRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDataStores($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDataStores()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.DataStoreService/ListDataStores', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDataStoresExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $request = (new ListDataStoresRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDataStores($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStoreTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $defaultSchemaId = 'defaultSchemaId972292091'; - $expectedResponse = new DataStore(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDefaultSchemaId($defaultSchemaId); - $transport->addResponse($expectedResponse); - // Mock request - $dataStore = new DataStore(); - $dataStoreDisplayName = 'dataStoreDisplayName-584810858'; - $dataStore->setDisplayName($dataStoreDisplayName); - $request = (new UpdateDataStoreRequest()) - ->setDataStore($dataStore); - $response = $gapicClient->updateDataStore($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.discoveryengine.v1.DataStoreService/UpdateDataStore', $actualFuncCall); - $actualValue = $actualRequestObject->getDataStore(); - $this->assertProtobufEquals($dataStore, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDataStoreExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $dataStore = new DataStore(); - $dataStoreDisplayName = 'dataStoreDisplayName-584810858'; - $dataStore->setDisplayName($dataStoreDisplayName); - $request = (new UpdateDataStoreRequest()) - ->setDataStore($dataStore); - try { - $gapicClient->updateDataStore($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDataStoreAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createDataStoreTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $defaultSchemaId = 'defaultSchemaId972292091'; - $expectedResponse = new DataStore(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDefaultSchemaId($defaultSchemaId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createDataStoreTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $dataStore = new DataStore(); - $dataStoreDisplayName = 'dataStoreDisplayName-584810858'; - $dataStore->setDisplayName($dataStoreDisplayName); - $dataStoreId = 'dataStoreId-2001599954'; - $request = (new CreateDataStoreRequest()) - ->setParent($formattedParent) - ->setDataStore($dataStore) - ->setDataStoreId($dataStoreId); - $response = $gapicClient->createDataStoreAsync($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.discoveryengine.v1.DataStoreService/CreateDataStore', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getDataStore(); - $this->assertProtobufEquals($dataStore, $actualValue); - $actualValue = $actualApiRequestObject->getDataStoreId(); - $this->assertProtobufEquals($dataStoreId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createDataStoreTest'); - $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/DiscoveryEngine/v1/tests/Unit/V1/Client/DocumentServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/DocumentServiceClientTest.php deleted file mode 100644 index c762aa7ddbd8..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/DocumentServiceClientTest.php +++ /dev/null @@ -1,789 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DocumentServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DocumentServiceClient($options); - } - - /** @test */ - public function batchGetDocumentsMetadataTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetDocumentsMetadataResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $matcher = new Matcher(); - $request = (new BatchGetDocumentsMetadataRequest()) - ->setParent($formattedParent) - ->setMatcher($matcher); - $response = $gapicClient->batchGetDocumentsMetadata($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.discoveryengine.v1.DocumentService/BatchGetDocumentsMetadata', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMatcher(); - $this->assertProtobufEquals($matcher, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetDocumentsMetadataExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $matcher = new Matcher(); - $request = (new BatchGetDocumentsMetadataRequest()) - ->setParent($formattedParent) - ->setMatcher($matcher); - try { - $gapicClient->batchGetDocumentsMetadata($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDocumentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $jsonData = 'jsonData-1083208543'; - $name = 'name3373707'; - $id = 'id3355'; - $schemaId = 'schemaId-153006983'; - $parentDocumentId = 'parentDocumentId-1870594390'; - $expectedResponse = new Document(); - $expectedResponse->setJsonData($jsonData); - $expectedResponse->setName($name); - $expectedResponse->setId($id); - $expectedResponse->setSchemaId($schemaId); - $expectedResponse->setParentDocumentId($parentDocumentId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $document = new Document(); - $documentId = 'documentId506676927'; - $request = (new CreateDocumentRequest()) - ->setParent($formattedParent) - ->setDocument($document) - ->setDocumentId($documentId); - $response = $gapicClient->createDocument($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.discoveryengine.v1.DocumentService/CreateDocument', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDocument(); - $this->assertProtobufEquals($document, $actualValue); - $actualValue = $actualRequestObject->getDocumentId(); - $this->assertProtobufEquals($documentId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDocumentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $document = new Document(); - $documentId = 'documentId506676927'; - $request = (new CreateDocumentRequest()) - ->setParent($formattedParent) - ->setDocument($document) - ->setDocumentId($documentId); - try { - $gapicClient->createDocument($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDocumentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->documentName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]', '[DOCUMENT]'); - $request = (new DeleteDocumentRequest()) - ->setName($formattedName); - $gapicClient->deleteDocument($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.DocumentService/DeleteDocument', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDocumentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->documentName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]', '[DOCUMENT]'); - $request = (new DeleteDocumentRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDocument($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDocumentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $jsonData = 'jsonData-1083208543'; - $name2 = 'name2-1052831874'; - $id = 'id3355'; - $schemaId = 'schemaId-153006983'; - $parentDocumentId = 'parentDocumentId-1870594390'; - $expectedResponse = new Document(); - $expectedResponse->setJsonData($jsonData); - $expectedResponse->setName($name2); - $expectedResponse->setId($id); - $expectedResponse->setSchemaId($schemaId); - $expectedResponse->setParentDocumentId($parentDocumentId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->documentName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]', '[DOCUMENT]'); - $request = (new GetDocumentRequest()) - ->setName($formattedName); - $response = $gapicClient->getDocument($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.discoveryengine.v1.DocumentService/GetDocument', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDocumentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->documentName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]', '[DOCUMENT]'); - $request = (new GetDocumentRequest()) - ->setName($formattedName); - try { - $gapicClient->getDocument($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function importDocumentsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importDocumentsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new ImportDocumentsResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/importDocumentsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $request = (new ImportDocumentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->importDocuments($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.discoveryengine.v1.DocumentService/ImportDocuments', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importDocumentsTest'); - $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 importDocumentsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importDocumentsTest'); - $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->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $request = (new ImportDocumentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->importDocuments($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importDocumentsTest'); - 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 listDocumentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $documentsElement = new Document(); - $documents = [ - $documentsElement, - ]; - $expectedResponse = new ListDocumentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDocuments($documents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $request = (new ListDocumentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDocuments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDocuments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.DocumentService/ListDocuments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDocumentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $request = (new ListDocumentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDocuments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function purgeDocumentsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/purgeDocumentsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $purgeCount = 575305851; - $expectedResponse = new PurgeDocumentsResponse(); - $expectedResponse->setPurgeCount($purgeCount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/purgeDocumentsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $filter = 'filter-1274492040'; - $request = (new PurgeDocumentsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - $response = $gapicClient->purgeDocuments($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.discoveryengine.v1.DocumentService/PurgeDocuments', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/purgeDocumentsTest'); - $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 purgeDocumentsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/purgeDocumentsTest'); - $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->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $filter = 'filter-1274492040'; - $request = (new PurgeDocumentsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - $response = $gapicClient->purgeDocuments($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/purgeDocumentsTest'); - 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 updateDocumentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $jsonData = 'jsonData-1083208543'; - $name = 'name3373707'; - $id = 'id3355'; - $schemaId = 'schemaId-153006983'; - $parentDocumentId = 'parentDocumentId-1870594390'; - $expectedResponse = new Document(); - $expectedResponse->setJsonData($jsonData); - $expectedResponse->setName($name); - $expectedResponse->setId($id); - $expectedResponse->setSchemaId($schemaId); - $expectedResponse->setParentDocumentId($parentDocumentId); - $transport->addResponse($expectedResponse); - // Mock request - $document = new Document(); - $request = (new UpdateDocumentRequest()) - ->setDocument($document); - $response = $gapicClient->updateDocument($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.discoveryengine.v1.DocumentService/UpdateDocument', $actualFuncCall); - $actualValue = $actualRequestObject->getDocument(); - $this->assertProtobufEquals($document, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDocumentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $document = new Document(); - $request = (new UpdateDocumentRequest()) - ->setDocument($document); - try { - $gapicClient->updateDocument($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function batchGetDocumentsMetadataAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new BatchGetDocumentsMetadataResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->branchName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[BRANCH]'); - $matcher = new Matcher(); - $request = (new BatchGetDocumentsMetadataRequest()) - ->setParent($formattedParent) - ->setMatcher($matcher); - $response = $gapicClient->batchGetDocumentsMetadataAsync($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.discoveryengine.v1.DocumentService/BatchGetDocumentsMetadata', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getMatcher(); - $this->assertProtobufEquals($matcher, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/EngineServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/EngineServiceClientTest.php deleted file mode 100644 index eee17ae4ed21..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/EngineServiceClientTest.php +++ /dev/null @@ -1,639 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return EngineServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new EngineServiceClient($options); - } - - /** @test */ - public function createEngineTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createEngineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $disableAnalytics = false; - $expectedResponse = new Engine(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDisableAnalytics($disableAnalytics); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createEngineTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $engine = new Engine(); - $engineDisplayName = 'engineDisplayName-638982453'; - $engine->setDisplayName($engineDisplayName); - $engineSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $engine->setSolutionType($engineSolutionType); - $engineId = 'engineId600651832'; - $request = (new CreateEngineRequest()) - ->setParent($formattedParent) - ->setEngine($engine) - ->setEngineId($engineId); - $response = $gapicClient->createEngine($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.discoveryengine.v1.EngineService/CreateEngine', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getEngine(); - $this->assertProtobufEquals($engine, $actualValue); - $actualValue = $actualApiRequestObject->getEngineId(); - $this->assertProtobufEquals($engineId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEngineTest'); - $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 createEngineExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createEngineTest'); - $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->collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $engine = new Engine(); - $engineDisplayName = 'engineDisplayName-638982453'; - $engine->setDisplayName($engineDisplayName); - $engineSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $engine->setSolutionType($engineSolutionType); - $engineId = 'engineId600651832'; - $request = (new CreateEngineRequest()) - ->setParent($formattedParent) - ->setEngine($engine) - ->setEngineId($engineId); - $response = $gapicClient->createEngine($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEngineTest'); - 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 deleteEngineTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteEngineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteEngineTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->engineName('[PROJECT]', '[LOCATION]', '[COLLECTION]', '[ENGINE]'); - $request = (new DeleteEngineRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEngine($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.discoveryengine.v1.EngineService/DeleteEngine', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteEngineTest'); - $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 deleteEngineExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteEngineTest'); - $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->engineName('[PROJECT]', '[LOCATION]', '[COLLECTION]', '[ENGINE]'); - $request = (new DeleteEngineRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEngine($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteEngineTest'); - 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 getEngineTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $disableAnalytics = false; - $expectedResponse = new Engine(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDisableAnalytics($disableAnalytics); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->engineName('[PROJECT]', '[LOCATION]', '[COLLECTION]', '[ENGINE]'); - $request = (new GetEngineRequest()) - ->setName($formattedName); - $response = $gapicClient->getEngine($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.discoveryengine.v1.EngineService/GetEngine', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEngineExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->engineName('[PROJECT]', '[LOCATION]', '[COLLECTION]', '[ENGINE]'); - $request = (new GetEngineRequest()) - ->setName($formattedName); - try { - $gapicClient->getEngine($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEnginesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $enginesElement = new Engine(); - $engines = [ - $enginesElement, - ]; - $expectedResponse = new ListEnginesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEngines($engines); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $request = (new ListEnginesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEngines($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEngines()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.EngineService/ListEngines', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEnginesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $request = (new ListEnginesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEngines($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEngineTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $disableAnalytics = false; - $expectedResponse = new Engine(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDisableAnalytics($disableAnalytics); - $transport->addResponse($expectedResponse); - // Mock request - $engine = new Engine(); - $engineDisplayName = 'engineDisplayName-638982453'; - $engine->setDisplayName($engineDisplayName); - $engineSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $engine->setSolutionType($engineSolutionType); - $request = (new UpdateEngineRequest()) - ->setEngine($engine); - $response = $gapicClient->updateEngine($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.discoveryengine.v1.EngineService/UpdateEngine', $actualFuncCall); - $actualValue = $actualRequestObject->getEngine(); - $this->assertProtobufEquals($engine, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateEngineExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $engine = new Engine(); - $engineDisplayName = 'engineDisplayName-638982453'; - $engine->setDisplayName($engineDisplayName); - $engineSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $engine->setSolutionType($engineSolutionType); - $request = (new UpdateEngineRequest()) - ->setEngine($engine); - try { - $gapicClient->updateEngine($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createEngineAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createEngineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $disableAnalytics = false; - $expectedResponse = new Engine(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDisableAnalytics($disableAnalytics); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createEngineTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->collectionName('[PROJECT]', '[LOCATION]', '[COLLECTION]'); - $engine = new Engine(); - $engineDisplayName = 'engineDisplayName-638982453'; - $engine->setDisplayName($engineDisplayName); - $engineSolutionType = SolutionType::SOLUTION_TYPE_UNSPECIFIED; - $engine->setSolutionType($engineSolutionType); - $engineId = 'engineId600651832'; - $request = (new CreateEngineRequest()) - ->setParent($formattedParent) - ->setEngine($engine) - ->setEngineId($engineId); - $response = $gapicClient->createEngineAsync($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.discoveryengine.v1.EngineService/CreateEngine', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getEngine(); - $this->assertProtobufEquals($engine, $actualValue); - $actualValue = $actualApiRequestObject->getEngineId(); - $this->assertProtobufEquals($engineId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEngineTest'); - $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/DiscoveryEngine/v1/tests/Unit/V1/Client/GroundedGenerationServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/GroundedGenerationServiceClientTest.php deleted file mode 100644 index 9ef62ebf82f9..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/GroundedGenerationServiceClientTest.php +++ /dev/null @@ -1,314 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return GroundedGenerationServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new GroundedGenerationServiceClient($options); - } - - /** @test */ - public function checkGroundingTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $supportScore = -13206883; - $expectedResponse = new CheckGroundingResponse(); - $expectedResponse->setSupportScore($supportScore); - $transport->addResponse($expectedResponse); - // Mock request - $formattedGroundingConfig = $gapicClient->groundingConfigName('[PROJECT]', '[LOCATION]', '[GROUNDING_CONFIG]'); - $request = (new CheckGroundingRequest()) - ->setGroundingConfig($formattedGroundingConfig); - $response = $gapicClient->checkGrounding($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.discoveryengine.v1.GroundedGenerationService/CheckGrounding', $actualFuncCall); - $actualValue = $actualRequestObject->getGroundingConfig(); - $this->assertProtobufEquals($formattedGroundingConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkGroundingExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedGroundingConfig = $gapicClient->groundingConfigName('[PROJECT]', '[LOCATION]', '[GROUNDING_CONFIG]'); - $request = (new CheckGroundingRequest()) - ->setGroundingConfig($formattedGroundingConfig); - try { - $gapicClient->checkGrounding($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateGroundedContentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GenerateGroundedContentResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new GenerateGroundedContentRequest()) - ->setLocation($formattedLocation); - $response = $gapicClient->generateGroundedContent($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.discoveryengine.v1.GroundedGenerationService/GenerateGroundedContent', $actualFuncCall); - $actualValue = $actualRequestObject->getLocation(); - $this->assertProtobufEquals($formattedLocation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function generateGroundedContentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 GenerateGroundedContentRequest()) - ->setLocation($formattedLocation); - try { - $gapicClient->generateGroundedContent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function streamGenerateGroundedContentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GenerateGroundedContentResponse(); - $transport->addResponse($expectedResponse); - $expectedResponse2 = new GenerateGroundedContentResponse(); - $transport->addResponse($expectedResponse2); - $expectedResponse3 = new GenerateGroundedContentResponse(); - $transport->addResponse($expectedResponse3); - // Mock request - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = new GenerateGroundedContentRequest(); - $request->setLocation($formattedLocation); - $formattedLocation2 = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request2 = new GenerateGroundedContentRequest(); - $request2->setLocation($formattedLocation2); - $formattedLocation3 = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request3 = new GenerateGroundedContentRequest(); - $request3->setLocation($formattedLocation3); - $bidi = $gapicClient->streamGenerateGroundedContent(); - $this->assertInstanceOf(BidiStream::class, $bidi); - $bidi->write($request); - $responses = []; - $responses[] = $bidi->read(); - $bidi->writeAll([ - $request2, - $request3, - ]); - foreach ($bidi->closeWriteAndReadAll() as $response) { - $responses[] = $response; - } - - $expectedResponses = []; - $expectedResponses[] = $expectedResponse; - $expectedResponses[] = $expectedResponse2; - $expectedResponses[] = $expectedResponse3; - $this->assertEquals($expectedResponses, $responses); - $createStreamRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($createStreamRequests)); - $streamFuncCall = $createStreamRequests[0]->getFuncCall(); - $streamRequestObject = $createStreamRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.GroundedGenerationService/StreamGenerateGroundedContent', $streamFuncCall); - $this->assertNull($streamRequestObject); - $callObjects = $transport->popCallObjects(); - $this->assertSame(1, count($callObjects)); - $bidiCall = $callObjects[0]; - $writeRequests = $bidiCall->popReceivedCalls(); - $expectedRequests = []; - $expectedRequests[] = $request; - $expectedRequests[] = $request2; - $expectedRequests[] = $request3; - $this->assertEquals($expectedRequests, $writeRequests); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function streamGenerateGroundedContentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->setStreamingStatus($status); - $this->assertTrue($transport->isExhausted()); - $bidi = $gapicClient->streamGenerateGroundedContent(); - $results = $bidi->closeWriteAndReadAll(); - try { - iterator_to_array($results); - // If the close stream method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function checkGroundingAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $supportScore = -13206883; - $expectedResponse = new CheckGroundingResponse(); - $expectedResponse->setSupportScore($supportScore); - $transport->addResponse($expectedResponse); - // Mock request - $formattedGroundingConfig = $gapicClient->groundingConfigName('[PROJECT]', '[LOCATION]', '[GROUNDING_CONFIG]'); - $request = (new CheckGroundingRequest()) - ->setGroundingConfig($formattedGroundingConfig); - $response = $gapicClient->checkGroundingAsync($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.discoveryengine.v1.GroundedGenerationService/CheckGrounding', $actualFuncCall); - $actualValue = $actualRequestObject->getGroundingConfig(); - $this->assertProtobufEquals($formattedGroundingConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ProjectServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ProjectServiceClientTest.php deleted file mode 100644 index 4f65e836328c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/ProjectServiceClientTest.php +++ /dev/null @@ -1,275 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ProjectServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ProjectServiceClient($options); - } - - /** @test */ - public function provisionProjectTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/provisionProjectTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $expectedResponse = new Project(); - $expectedResponse->setName($name2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/provisionProjectTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->projectName('[PROJECT]'); - $acceptDataUseTerms = false; - $dataUseTermsVersion = 'dataUseTermsVersion1209366547'; - $request = (new ProvisionProjectRequest()) - ->setName($formattedName) - ->setAcceptDataUseTerms($acceptDataUseTerms) - ->setDataUseTermsVersion($dataUseTermsVersion); - $response = $gapicClient->provisionProject($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.discoveryengine.v1.ProjectService/ProvisionProject', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getAcceptDataUseTerms(); - $this->assertProtobufEquals($acceptDataUseTerms, $actualValue); - $actualValue = $actualApiRequestObject->getDataUseTermsVersion(); - $this->assertProtobufEquals($dataUseTermsVersion, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/provisionProjectTest'); - $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 provisionProjectExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/provisionProjectTest'); - $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->projectName('[PROJECT]'); - $acceptDataUseTerms = false; - $dataUseTermsVersion = 'dataUseTermsVersion1209366547'; - $request = (new ProvisionProjectRequest()) - ->setName($formattedName) - ->setAcceptDataUseTerms($acceptDataUseTerms) - ->setDataUseTermsVersion($dataUseTermsVersion); - $response = $gapicClient->provisionProject($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/provisionProjectTest'); - 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 provisionProjectAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/provisionProjectTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $expectedResponse = new Project(); - $expectedResponse->setName($name2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/provisionProjectTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->projectName('[PROJECT]'); - $acceptDataUseTerms = false; - $dataUseTermsVersion = 'dataUseTermsVersion1209366547'; - $request = (new ProvisionProjectRequest()) - ->setName($formattedName) - ->setAcceptDataUseTerms($acceptDataUseTerms) - ->setDataUseTermsVersion($dataUseTermsVersion); - $response = $gapicClient->provisionProjectAsync($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.discoveryengine.v1.ProjectService/ProvisionProject', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualApiRequestObject->getAcceptDataUseTerms(); - $this->assertProtobufEquals($acceptDataUseTerms, $actualValue); - $actualValue = $actualApiRequestObject->getDataUseTermsVersion(); - $this->assertProtobufEquals($dataUseTermsVersion, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/provisionProjectTest'); - $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/DiscoveryEngine/v1/tests/Unit/V1/Client/RankServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/RankServiceClientTest.php deleted file mode 100644 index 750b1ffb511c..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/RankServiceClientTest.php +++ /dev/null @@ -1,161 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return RankServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new RankServiceClient($options); - } - - /** @test */ - public function rankTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RankResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedRankingConfig = $gapicClient->rankingConfigName('[PROJECT]', '[LOCATION]', '[RANKING_CONFIG]'); - $records = []; - $request = (new RankRequest()) - ->setRankingConfig($formattedRankingConfig) - ->setRecords($records); - $response = $gapicClient->rank($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.discoveryengine.v1.RankService/Rank', $actualFuncCall); - $actualValue = $actualRequestObject->getRankingConfig(); - $this->assertProtobufEquals($formattedRankingConfig, $actualValue); - $actualValue = $actualRequestObject->getRecords(); - $this->assertProtobufEquals($records, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rankExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedRankingConfig = $gapicClient->rankingConfigName('[PROJECT]', '[LOCATION]', '[RANKING_CONFIG]'); - $records = []; - $request = (new RankRequest()) - ->setRankingConfig($formattedRankingConfig) - ->setRecords($records); - try { - $gapicClient->rank($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function rankAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RankResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedRankingConfig = $gapicClient->rankingConfigName('[PROJECT]', '[LOCATION]', '[RANKING_CONFIG]'); - $records = []; - $request = (new RankRequest()) - ->setRankingConfig($formattedRankingConfig) - ->setRecords($records); - $response = $gapicClient->rankAsync($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.discoveryengine.v1.RankService/Rank', $actualFuncCall); - $actualValue = $actualRequestObject->getRankingConfig(); - $this->assertProtobufEquals($formattedRankingConfig, $actualValue); - $actualValue = $actualRequestObject->getRecords(); - $this->assertProtobufEquals($records, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/RecommendationServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/RecommendationServiceClientTest.php deleted file mode 100644 index 0e129982c774..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/RecommendationServiceClientTest.php +++ /dev/null @@ -1,182 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return RecommendationServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new RecommendationServiceClient($options); - } - - /** @test */ - public function recommendTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $attributionToken = 'attributionToken-729411015'; - $validateOnly2 = true; - $expectedResponse = new RecommendResponse(); - $expectedResponse->setAttributionToken($attributionToken); - $expectedResponse->setValidateOnly($validateOnly2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $userEvent = new UserEvent(); - $userEventEventType = 'userEventEventType341658661'; - $userEvent->setEventType($userEventEventType); - $userEventUserPseudoId = 'userEventUserPseudoId-1929667693'; - $userEvent->setUserPseudoId($userEventUserPseudoId); - $request = (new RecommendRequest()) - ->setServingConfig($formattedServingConfig) - ->setUserEvent($userEvent); - $response = $gapicClient->recommend($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.discoveryengine.v1.RecommendationService/Recommend', $actualFuncCall); - $actualValue = $actualRequestObject->getServingConfig(); - $this->assertProtobufEquals($formattedServingConfig, $actualValue); - $actualValue = $actualRequestObject->getUserEvent(); - $this->assertProtobufEquals($userEvent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function recommendExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $userEvent = new UserEvent(); - $userEventEventType = 'userEventEventType341658661'; - $userEvent->setEventType($userEventEventType); - $userEventUserPseudoId = 'userEventUserPseudoId-1929667693'; - $userEvent->setUserPseudoId($userEventUserPseudoId); - $request = (new RecommendRequest()) - ->setServingConfig($formattedServingConfig) - ->setUserEvent($userEvent); - try { - $gapicClient->recommend($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function recommendAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $attributionToken = 'attributionToken-729411015'; - $validateOnly2 = true; - $expectedResponse = new RecommendResponse(); - $expectedResponse->setAttributionToken($attributionToken); - $expectedResponse->setValidateOnly($validateOnly2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $userEvent = new UserEvent(); - $userEventEventType = 'userEventEventType341658661'; - $userEvent->setEventType($userEventEventType); - $userEventUserPseudoId = 'userEventUserPseudoId-1929667693'; - $userEvent->setUserPseudoId($userEventUserPseudoId); - $request = (new RecommendRequest()) - ->setServingConfig($formattedServingConfig) - ->setUserEvent($userEvent); - $response = $gapicClient->recommendAsync($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.discoveryengine.v1.RecommendationService/Recommend', $actualFuncCall); - $actualValue = $actualRequestObject->getServingConfig(); - $this->assertProtobufEquals($formattedServingConfig, $actualValue); - $actualValue = $actualRequestObject->getUserEvent(); - $this->assertProtobufEquals($userEvent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SchemaServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SchemaServiceClientTest.php deleted file mode 100644 index 39df7e1373e7..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SchemaServiceClientTest.php +++ /dev/null @@ -1,669 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return SchemaServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new SchemaServiceClient($options); - } - - /** @test */ - public function createSchemaTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSchemaTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $jsonSchema = 'jsonSchema-1150390056'; - $name = 'name3373707'; - $expectedResponse = new Schema(); - $expectedResponse->setJsonSchema($jsonSchema); - $expectedResponse->setName($name); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createSchemaTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $schema = new Schema(); - $schemaId = 'schemaId-153006983'; - $request = (new CreateSchemaRequest()) - ->setParent($formattedParent) - ->setSchema($schema) - ->setSchemaId($schemaId); - $response = $gapicClient->createSchema($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.discoveryengine.v1.SchemaService/CreateSchema', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getSchema(); - $this->assertProtobufEquals($schema, $actualValue); - $actualValue = $actualApiRequestObject->getSchemaId(); - $this->assertProtobufEquals($schemaId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSchemaTest'); - $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 createSchemaExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSchemaTest'); - $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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $schema = new Schema(); - $schemaId = 'schemaId-153006983'; - $request = (new CreateSchemaRequest()) - ->setParent($formattedParent) - ->setSchema($schema) - ->setSchemaId($schemaId); - $response = $gapicClient->createSchema($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSchemaTest'); - 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 deleteSchemaTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteSchemaTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteSchemaTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->schemaName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SCHEMA]'); - $request = (new DeleteSchemaRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteSchema($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.discoveryengine.v1.SchemaService/DeleteSchema', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteSchemaTest'); - $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 deleteSchemaExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteSchemaTest'); - $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->schemaName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SCHEMA]'); - $request = (new DeleteSchemaRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteSchema($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteSchemaTest'); - 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 getSchemaTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $jsonSchema = 'jsonSchema-1150390056'; - $name2 = 'name2-1052831874'; - $expectedResponse = new Schema(); - $expectedResponse->setJsonSchema($jsonSchema); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->schemaName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SCHEMA]'); - $request = (new GetSchemaRequest()) - ->setName($formattedName); - $response = $gapicClient->getSchema($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.discoveryengine.v1.SchemaService/GetSchema', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSchemaExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->schemaName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SCHEMA]'); - $request = (new GetSchemaRequest()) - ->setName($formattedName); - try { - $gapicClient->getSchema($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSchemasTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $schemasElement = new Schema(); - $schemas = [ - $schemasElement, - ]; - $expectedResponse = new ListSchemasResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSchemas($schemas); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListSchemasRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSchemas($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSchemas()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.SchemaService/ListSchemas', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSchemasExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListSchemasRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSchemas($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateSchemaTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateSchemaTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $jsonSchema = 'jsonSchema-1150390056'; - $name = 'name3373707'; - $expectedResponse = new Schema(); - $expectedResponse->setJsonSchema($jsonSchema); - $expectedResponse->setName($name); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateSchemaTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $schema = new Schema(); - $request = (new UpdateSchemaRequest()) - ->setSchema($schema); - $response = $gapicClient->updateSchema($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.discoveryengine.v1.SchemaService/UpdateSchema', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getSchema(); - $this->assertProtobufEquals($schema, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateSchemaTest'); - $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 updateSchemaExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateSchemaTest'); - $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 - $schema = new Schema(); - $request = (new UpdateSchemaRequest()) - ->setSchema($schema); - $response = $gapicClient->updateSchema($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateSchemaTest'); - 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 createSchemaAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSchemaTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $jsonSchema = 'jsonSchema-1150390056'; - $name = 'name3373707'; - $expectedResponse = new Schema(); - $expectedResponse->setJsonSchema($jsonSchema); - $expectedResponse->setName($name); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createSchemaTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $schema = new Schema(); - $schemaId = 'schemaId-153006983'; - $request = (new CreateSchemaRequest()) - ->setParent($formattedParent) - ->setSchema($schema) - ->setSchemaId($schemaId); - $response = $gapicClient->createSchemaAsync($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.discoveryengine.v1.SchemaService/CreateSchema', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getSchema(); - $this->assertProtobufEquals($schema, $actualValue); - $actualValue = $actualApiRequestObject->getSchemaId(); - $this->assertProtobufEquals($schemaId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSchemaTest'); - $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/DiscoveryEngine/v1/tests/Unit/V1/Client/SearchServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SearchServiceClientTest.php deleted file mode 100644 index 12b823f159a7..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SearchServiceClientTest.php +++ /dev/null @@ -1,268 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return SearchServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new SearchServiceClient($options); - } - - /** @test */ - public function searchTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $totalSize = 705419236; - $attributionToken = 'attributionToken-729411015'; - $redirectUri = 'redirectUri951230089'; - $nextPageToken = ''; - $correctedQuery = 'correctedQuery107869074'; - $resultsElement = new SearchResult(); - $results = [ - $resultsElement, - ]; - $expectedResponse = new SearchResponse(); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setAttributionToken($attributionToken); - $expectedResponse->setRedirectUri($redirectUri); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCorrectedQuery($correctedQuery); - $expectedResponse->setResults($results); - $transport->addResponse($expectedResponse); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $request = (new SearchRequest()) - ->setServingConfig($formattedServingConfig); - $response = $gapicClient->search($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.discoveryengine.v1.SearchService/Search', $actualFuncCall); - $actualValue = $actualRequestObject->getServingConfig(); - $this->assertProtobufEquals($formattedServingConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $request = (new SearchRequest()) - ->setServingConfig($formattedServingConfig); - try { - $gapicClient->search($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchLiteTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $totalSize = 705419236; - $attributionToken = 'attributionToken-729411015'; - $redirectUri = 'redirectUri951230089'; - $nextPageToken = ''; - $correctedQuery = 'correctedQuery107869074'; - $resultsElement = new SearchResult(); - $results = [ - $resultsElement, - ]; - $expectedResponse = new SearchResponse(); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setAttributionToken($attributionToken); - $expectedResponse->setRedirectUri($redirectUri); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCorrectedQuery($correctedQuery); - $expectedResponse->setResults($results); - $transport->addResponse($expectedResponse); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $request = (new SearchRequest()) - ->setServingConfig($formattedServingConfig); - $response = $gapicClient->searchLite($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.discoveryengine.v1.SearchService/SearchLite', $actualFuncCall); - $actualValue = $actualRequestObject->getServingConfig(); - $this->assertProtobufEquals($formattedServingConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchLiteExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $request = (new SearchRequest()) - ->setServingConfig($formattedServingConfig); - try { - $gapicClient->searchLite($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $totalSize = 705419236; - $attributionToken = 'attributionToken-729411015'; - $redirectUri = 'redirectUri951230089'; - $nextPageToken = ''; - $correctedQuery = 'correctedQuery107869074'; - $resultsElement = new SearchResult(); - $results = [ - $resultsElement, - ]; - $expectedResponse = new SearchResponse(); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setAttributionToken($attributionToken); - $expectedResponse->setRedirectUri($redirectUri); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setCorrectedQuery($correctedQuery); - $expectedResponse->setResults($results); - $transport->addResponse($expectedResponse); - // Mock request - $formattedServingConfig = $gapicClient->servingConfigName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[SERVING_CONFIG]'); - $request = (new SearchRequest()) - ->setServingConfig($formattedServingConfig); - $response = $gapicClient->searchAsync($request)->wait(); - $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.discoveryengine.v1.SearchService/Search', $actualFuncCall); - $actualValue = $actualRequestObject->getServingConfig(); - $this->assertProtobufEquals($formattedServingConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SearchTuningServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SearchTuningServiceClientTest.php deleted file mode 100644 index 3976c0e4a3fe..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SearchTuningServiceClientTest.php +++ /dev/null @@ -1,282 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return SearchTuningServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new SearchTuningServiceClient($options); - } - - /** @test */ - public function listCustomModelsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListCustomModelsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedDataStore = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListCustomModelsRequest()) - ->setDataStore($formattedDataStore); - $response = $gapicClient->listCustomModels($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.discoveryengine.v1.SearchTuningService/ListCustomModels', $actualFuncCall); - $actualValue = $actualRequestObject->getDataStore(); - $this->assertProtobufEquals($formattedDataStore, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listCustomModelsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedDataStore = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListCustomModelsRequest()) - ->setDataStore($formattedDataStore); - try { - $gapicClient->listCustomModels($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function trainCustomModelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/trainCustomModelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $modelStatus = 'modelStatus12165576'; - $modelName = 'modelName2104871393'; - $expectedResponse = new TrainCustomModelResponse(); - $expectedResponse->setModelStatus($modelStatus); - $expectedResponse->setModelName($modelName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/trainCustomModelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedDataStore = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new TrainCustomModelRequest()) - ->setDataStore($formattedDataStore); - $response = $gapicClient->trainCustomModel($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.discoveryengine.v1.SearchTuningService/TrainCustomModel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getDataStore(); - $this->assertProtobufEquals($formattedDataStore, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/trainCustomModelTest'); - $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 trainCustomModelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/trainCustomModelTest'); - $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 - $formattedDataStore = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new TrainCustomModelRequest()) - ->setDataStore($formattedDataStore); - $response = $gapicClient->trainCustomModel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/trainCustomModelTest'); - 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 listCustomModelsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListCustomModelsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedDataStore = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListCustomModelsRequest()) - ->setDataStore($formattedDataStore); - $response = $gapicClient->listCustomModelsAsync($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.discoveryengine.v1.SearchTuningService/ListCustomModels', $actualFuncCall); - $actualValue = $actualRequestObject->getDataStore(); - $this->assertProtobufEquals($formattedDataStore, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SiteSearchEngineServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SiteSearchEngineServiceClientTest.php deleted file mode 100644 index 48707712dd97..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/SiteSearchEngineServiceClientTest.php +++ /dev/null @@ -1,1452 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return SiteSearchEngineServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new SiteSearchEngineServiceClient($options); - } - - /** @test */ - public function batchCreateTargetSitesTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchCreateTargetSitesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchCreateTargetSitesResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchCreateTargetSitesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $requests = []; - $request = (new BatchCreateTargetSitesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateTargetSites($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.discoveryengine.v1.SiteSearchEngineService/BatchCreateTargetSites', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchCreateTargetSitesTest'); - $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 batchCreateTargetSitesExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchCreateTargetSitesTest'); - $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->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $requests = []; - $request = (new BatchCreateTargetSitesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateTargetSites($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchCreateTargetSitesTest'); - 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 batchVerifyTargetSitesTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchVerifyTargetSitesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchVerifyTargetSitesResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchVerifyTargetSitesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new BatchVerifyTargetSitesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->batchVerifyTargetSites($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.discoveryengine.v1.SiteSearchEngineService/BatchVerifyTargetSites', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchVerifyTargetSitesTest'); - $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 batchVerifyTargetSitesExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchVerifyTargetSitesTest'); - $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->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new BatchVerifyTargetSitesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->batchVerifyTargetSites($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchVerifyTargetSitesTest'); - 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 createTargetSiteTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createTargetSiteTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $providedUriPattern = 'providedUriPattern437506913'; - $exactMatch = false; - $generatedUriPattern = 'generatedUriPattern-1580317427'; - $rootDomainUri = 'rootDomainUri-789734674'; - $expectedResponse = new TargetSite(); - $expectedResponse->setName($name); - $expectedResponse->setProvidedUriPattern($providedUriPattern); - $expectedResponse->setExactMatch($exactMatch); - $expectedResponse->setGeneratedUriPattern($generatedUriPattern); - $expectedResponse->setRootDomainUri($rootDomainUri); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createTargetSiteTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $targetSite = new TargetSite(); - $targetSiteProvidedUriPattern = 'targetSiteProvidedUriPattern1272598879'; - $targetSite->setProvidedUriPattern($targetSiteProvidedUriPattern); - $request = (new CreateTargetSiteRequest()) - ->setParent($formattedParent) - ->setTargetSite($targetSite); - $response = $gapicClient->createTargetSite($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.discoveryengine.v1.SiteSearchEngineService/CreateTargetSite', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getTargetSite(); - $this->assertProtobufEquals($targetSite, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createTargetSiteTest'); - $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 createTargetSiteExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createTargetSiteTest'); - $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->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $targetSite = new TargetSite(); - $targetSiteProvidedUriPattern = 'targetSiteProvidedUriPattern1272598879'; - $targetSite->setProvidedUriPattern($targetSiteProvidedUriPattern); - $request = (new CreateTargetSiteRequest()) - ->setParent($formattedParent) - ->setTargetSite($targetSite); - $response = $gapicClient->createTargetSite($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createTargetSiteTest'); - 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 deleteTargetSiteTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteTargetSiteTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteTargetSiteTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->targetSiteName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[TARGET_SITE]'); - $request = (new DeleteTargetSiteRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteTargetSite($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.discoveryengine.v1.SiteSearchEngineService/DeleteTargetSite', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteTargetSiteTest'); - $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 deleteTargetSiteExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteTargetSiteTest'); - $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->targetSiteName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[TARGET_SITE]'); - $request = (new DeleteTargetSiteRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteTargetSite($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteTargetSiteTest'); - 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 disableAdvancedSiteSearchTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/disableAdvancedSiteSearchTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new DisableAdvancedSiteSearchResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/disableAdvancedSiteSearchTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedSiteSearchEngine = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new DisableAdvancedSiteSearchRequest()) - ->setSiteSearchEngine($formattedSiteSearchEngine); - $response = $gapicClient->disableAdvancedSiteSearch($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.discoveryengine.v1.SiteSearchEngineService/DisableAdvancedSiteSearch', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getSiteSearchEngine(); - $this->assertProtobufEquals($formattedSiteSearchEngine, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/disableAdvancedSiteSearchTest'); - $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 disableAdvancedSiteSearchExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/disableAdvancedSiteSearchTest'); - $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 - $formattedSiteSearchEngine = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new DisableAdvancedSiteSearchRequest()) - ->setSiteSearchEngine($formattedSiteSearchEngine); - $response = $gapicClient->disableAdvancedSiteSearch($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/disableAdvancedSiteSearchTest'); - 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 enableAdvancedSiteSearchTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/enableAdvancedSiteSearchTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new EnableAdvancedSiteSearchResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/enableAdvancedSiteSearchTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedSiteSearchEngine = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new EnableAdvancedSiteSearchRequest()) - ->setSiteSearchEngine($formattedSiteSearchEngine); - $response = $gapicClient->enableAdvancedSiteSearch($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.discoveryengine.v1.SiteSearchEngineService/EnableAdvancedSiteSearch', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getSiteSearchEngine(); - $this->assertProtobufEquals($formattedSiteSearchEngine, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/enableAdvancedSiteSearchTest'); - $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 enableAdvancedSiteSearchExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/enableAdvancedSiteSearchTest'); - $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 - $formattedSiteSearchEngine = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new EnableAdvancedSiteSearchRequest()) - ->setSiteSearchEngine($formattedSiteSearchEngine); - $response = $gapicClient->enableAdvancedSiteSearch($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/enableAdvancedSiteSearchTest'); - 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 fetchDomainVerificationStatusTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $targetSitesElement = new TargetSite(); - $targetSites = [ - $targetSitesElement, - ]; - $expectedResponse = new FetchDomainVerificationStatusResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setTargetSites($targetSites); - $transport->addResponse($expectedResponse); - // Mock request - $formattedSiteSearchEngine = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new FetchDomainVerificationStatusRequest()) - ->setSiteSearchEngine($formattedSiteSearchEngine); - $response = $gapicClient->fetchDomainVerificationStatus($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTargetSites()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.SiteSearchEngineService/FetchDomainVerificationStatus', $actualFuncCall); - $actualValue = $actualRequestObject->getSiteSearchEngine(); - $this->assertProtobufEquals($formattedSiteSearchEngine, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchDomainVerificationStatusExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedSiteSearchEngine = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new FetchDomainVerificationStatusRequest()) - ->setSiteSearchEngine($formattedSiteSearchEngine); - try { - $gapicClient->fetchDomainVerificationStatus($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSiteSearchEngineTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new SiteSearchEngine(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new GetSiteSearchEngineRequest()) - ->setName($formattedName); - $response = $gapicClient->getSiteSearchEngine($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.discoveryengine.v1.SiteSearchEngineService/GetSiteSearchEngine', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSiteSearchEngineExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new GetSiteSearchEngineRequest()) - ->setName($formattedName); - try { - $gapicClient->getSiteSearchEngine($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTargetSiteTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $providedUriPattern = 'providedUriPattern437506913'; - $exactMatch = false; - $generatedUriPattern = 'generatedUriPattern-1580317427'; - $rootDomainUri = 'rootDomainUri-789734674'; - $expectedResponse = new TargetSite(); - $expectedResponse->setName($name2); - $expectedResponse->setProvidedUriPattern($providedUriPattern); - $expectedResponse->setExactMatch($exactMatch); - $expectedResponse->setGeneratedUriPattern($generatedUriPattern); - $expectedResponse->setRootDomainUri($rootDomainUri); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->targetSiteName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[TARGET_SITE]'); - $request = (new GetTargetSiteRequest()) - ->setName($formattedName); - $response = $gapicClient->getTargetSite($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.discoveryengine.v1.SiteSearchEngineService/GetTargetSite', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTargetSiteExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->targetSiteName('[PROJECT]', '[LOCATION]', '[DATA_STORE]', '[TARGET_SITE]'); - $request = (new GetTargetSiteRequest()) - ->setName($formattedName); - try { - $gapicClient->getTargetSite($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTargetSitesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $totalSize = 705419236; - $targetSitesElement = new TargetSite(); - $targetSites = [ - $targetSitesElement, - ]; - $expectedResponse = new ListTargetSitesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTotalSize($totalSize); - $expectedResponse->setTargetSites($targetSites); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListTargetSitesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTargetSites($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTargetSites()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.discoveryengine.v1.SiteSearchEngineService/ListTargetSites', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTargetSitesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ListTargetSitesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTargetSites($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function recrawlUrisTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/recrawlUrisTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new RecrawlUrisResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/recrawlUrisTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedSiteSearchEngine = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $uris = []; - $request = (new RecrawlUrisRequest()) - ->setSiteSearchEngine($formattedSiteSearchEngine) - ->setUris($uris); - $response = $gapicClient->recrawlUris($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.discoveryengine.v1.SiteSearchEngineService/RecrawlUris', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getSiteSearchEngine(); - $this->assertProtobufEquals($formattedSiteSearchEngine, $actualValue); - $actualValue = $actualApiRequestObject->getUris(); - $this->assertProtobufEquals($uris, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/recrawlUrisTest'); - $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 recrawlUrisExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/recrawlUrisTest'); - $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 - $formattedSiteSearchEngine = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $uris = []; - $request = (new RecrawlUrisRequest()) - ->setSiteSearchEngine($formattedSiteSearchEngine) - ->setUris($uris); - $response = $gapicClient->recrawlUris($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/recrawlUrisTest'); - 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 updateTargetSiteTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateTargetSiteTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $providedUriPattern = 'providedUriPattern437506913'; - $exactMatch = false; - $generatedUriPattern = 'generatedUriPattern-1580317427'; - $rootDomainUri = 'rootDomainUri-789734674'; - $expectedResponse = new TargetSite(); - $expectedResponse->setName($name); - $expectedResponse->setProvidedUriPattern($providedUriPattern); - $expectedResponse->setExactMatch($exactMatch); - $expectedResponse->setGeneratedUriPattern($generatedUriPattern); - $expectedResponse->setRootDomainUri($rootDomainUri); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateTargetSiteTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $targetSite = new TargetSite(); - $targetSiteProvidedUriPattern = 'targetSiteProvidedUriPattern1272598879'; - $targetSite->setProvidedUriPattern($targetSiteProvidedUriPattern); - $request = (new UpdateTargetSiteRequest()) - ->setTargetSite($targetSite); - $response = $gapicClient->updateTargetSite($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.discoveryengine.v1.SiteSearchEngineService/UpdateTargetSite', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getTargetSite(); - $this->assertProtobufEquals($targetSite, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateTargetSiteTest'); - $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 updateTargetSiteExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateTargetSiteTest'); - $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 - $targetSite = new TargetSite(); - $targetSiteProvidedUriPattern = 'targetSiteProvidedUriPattern1272598879'; - $targetSite->setProvidedUriPattern($targetSiteProvidedUriPattern); - $request = (new UpdateTargetSiteRequest()) - ->setTargetSite($targetSite); - $response = $gapicClient->updateTargetSite($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateTargetSiteTest'); - 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 batchCreateTargetSitesAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchCreateTargetSitesTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchCreateTargetSitesResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchCreateTargetSitesTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->siteSearchEngineName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $requests = []; - $request = (new BatchCreateTargetSitesRequest()) - ->setParent($formattedParent) - ->setRequests($requests); - $response = $gapicClient->batchCreateTargetSitesAsync($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.discoveryengine.v1.SiteSearchEngineService/BatchCreateTargetSites', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRequests(); - $this->assertProtobufEquals($requests, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchCreateTargetSitesTest'); - $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/DiscoveryEngine/v1/tests/Unit/V1/Client/UserEventServiceClientTest.php b/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/UserEventServiceClientTest.php deleted file mode 100644 index a682d81e0309..000000000000 --- a/owl-bot-staging/DiscoveryEngine/v1/tests/Unit/V1/Client/UserEventServiceClientTest.php +++ /dev/null @@ -1,525 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return UserEventServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new UserEventServiceClient($options); - } - - /** @test */ - public function collectUserEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $contentType = 'contentType831846208'; - $data = '-86'; - $expectedResponse = new HttpBody(); - $expectedResponse->setContentType($contentType); - $expectedResponse->setData($data); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $userEvent = 'userEvent1921940774'; - $request = (new CollectUserEventRequest()) - ->setParent($formattedParent) - ->setUserEvent($userEvent); - $response = $gapicClient->collectUserEvent($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.discoveryengine.v1.UserEventService/CollectUserEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getUserEvent(); - $this->assertProtobufEquals($userEvent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function collectUserEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $userEvent = 'userEvent1921940774'; - $request = (new CollectUserEventRequest()) - ->setParent($formattedParent) - ->setUserEvent($userEvent); - try { - $gapicClient->collectUserEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function importUserEventsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importUserEventsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $joinedEventsCount = 720068705; - $unjoinedEventsCount = 512159846; - $expectedResponse = new ImportUserEventsResponse(); - $expectedResponse->setJoinedEventsCount($joinedEventsCount); - $expectedResponse->setUnjoinedEventsCount($unjoinedEventsCount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/importUserEventsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ImportUserEventsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->importUserEvents($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.discoveryengine.v1.UserEventService/ImportUserEvents', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importUserEventsTest'); - $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 importUserEventsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/importUserEventsTest'); - $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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $request = (new ImportUserEventsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->importUserEvents($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/importUserEventsTest'); - 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 purgeUserEventsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/purgeUserEventsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $purgeCount = 575305851; - $expectedResponse = new PurgeUserEventsResponse(); - $expectedResponse->setPurgeCount($purgeCount); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/purgeUserEventsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $filter = 'filter-1274492040'; - $request = (new PurgeUserEventsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - $response = $gapicClient->purgeUserEvents($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.discoveryengine.v1.UserEventService/PurgeUserEvents', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getFilter(); - $this->assertProtobufEquals($filter, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/purgeUserEventsTest'); - $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 purgeUserEventsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/purgeUserEventsTest'); - $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->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $filter = 'filter-1274492040'; - $request = (new PurgeUserEventsRequest()) - ->setParent($formattedParent) - ->setFilter($filter); - $response = $gapicClient->purgeUserEvents($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/purgeUserEventsTest'); - 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 writeUserEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $eventType = 'eventType984376767'; - $userPseudoId = 'userPseudoId-1850666040'; - $engine = 'engine-1298662846'; - $dataStore = 'dataStore1619682316'; - $directUserRequest = false; - $sessionId = 'sessionId1661853540'; - $attributionToken = 'attributionToken-729411015'; - $filter = 'filter-1274492040'; - $expectedResponse = new UserEvent(); - $expectedResponse->setEventType($eventType); - $expectedResponse->setUserPseudoId($userPseudoId); - $expectedResponse->setEngine($engine); - $expectedResponse->setDataStore($dataStore); - $expectedResponse->setDirectUserRequest($directUserRequest); - $expectedResponse->setSessionId($sessionId); - $expectedResponse->setAttributionToken($attributionToken); - $expectedResponse->setFilter($filter); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $userEvent = new UserEvent(); - $userEventEventType = 'userEventEventType341658661'; - $userEvent->setEventType($userEventEventType); - $userEventUserPseudoId = 'userEventUserPseudoId-1929667693'; - $userEvent->setUserPseudoId($userEventUserPseudoId); - $request = (new WriteUserEventRequest()) - ->setParent($formattedParent) - ->setUserEvent($userEvent); - $response = $gapicClient->writeUserEvent($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.discoveryengine.v1.UserEventService/WriteUserEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getUserEvent(); - $this->assertProtobufEquals($userEvent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function writeUserEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $userEvent = new UserEvent(); - $userEventEventType = 'userEventEventType341658661'; - $userEvent->setEventType($userEventEventType); - $userEventUserPseudoId = 'userEventUserPseudoId-1929667693'; - $userEvent->setUserPseudoId($userEventUserPseudoId); - $request = (new WriteUserEventRequest()) - ->setParent($formattedParent) - ->setUserEvent($userEvent); - try { - $gapicClient->writeUserEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function collectUserEventAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $contentType = 'contentType831846208'; - $data = '-86'; - $expectedResponse = new HttpBody(); - $expectedResponse->setContentType($contentType); - $expectedResponse->setData($data); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->dataStoreName('[PROJECT]', '[LOCATION]', '[DATA_STORE]'); - $userEvent = 'userEvent1921940774'; - $request = (new CollectUserEventRequest()) - ->setParent($formattedParent) - ->setUserEvent($userEvent); - $response = $gapicClient->collectUserEventAsync($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.discoveryengine.v1.UserEventService/CollectUserEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getUserEvent(); - $this->assertProtobufEquals($userEvent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php b/owl-bot-staging/Dlp/v2/proto/src/GPBMetadata/Google/Privacy/Dlp/V2/Dlp.php deleted file mode 100644 index 3ed2683588ef5157ddb1531ea7c02226b9dbe415..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 83982 zcmdtLdvu&hb{{qk5G1=mg3XT{671p3V7__m4rT_}#k?`k2G9U{2%s_D4Zen}-UiSh zdj>#bx*HsF*R*9xmMnSYv$kH5U(tyoKN820l1Tm|j`c|56Dv;aV<*viwUXA69NV+W zajc_bAInLU-@Ui$dslY@y;bYfH^zmySd-ms85gG zY&LIh*C+Q{joY=2yOW#Sdy}`P=>H}dmQuU5oqBt(woxBjSe;p}cWRrpPVL45ce}AF z-EPcn@7=gO^@dU#+qHIk41cOGt1*yD6yS2Z&(P=by$EZVbcccEclKMm zZ}7Ycz&-C@Hxkg4+iTp&?d~=S3(ej3^t8VwAB3&r>~^ER+c{XD`9^(vbEbZ)cDvDR z9jt4qu1TZsNrs8wMj0rt-K_UN>M9W}?cLlyh#3evL{}g^zq8l5dx)-#tL0kzqeJwq zG;laNwVl2G`q!7;5MK2&H|l`&!}(wu_5(%4?g2OEDgYQm=R472f96#J+J%K_8OBL zd=P{$Weq_3VT-7}x~|DxH@Fb!+0rzve|j=`GHoGT-RLo|kx=L4rlwB)`yqLM0 zN1v_g&N9UvP?>IF=FeOf#6Q_Fq@){|mACdbCW$rexAhO_^uQeu#Uz+q0ue4NfV}* z`MTb}``h&iuo?m4{*wW9k{8_u!=c}td8IZR+_cuZt0(!nJ_qso zEk5MDsfJ{oGS7po6TS1wsmoqKQhN9w@u$Ei+lxZHb6xj;bR>KJL$?)JS2sz2|R)b48u-hyuvh=zhln zH9`~NJ=JtZdx-hItwtDsw5`<^ftGD}$^tq>1B(xNbN<8Xba=|;dgoAw!g&ewfO)hr z5jsRqTP6}7&Hby#)Jgqmwz<32xOuq2UsoeLjos>Yd^<5sh|$>V_RxZfI3r)KVU>UysWSUgw}vp+_{ z$dpZ#M0!oo-)&-_&IxsdY%Lz)g!}yiD((N4Rp(}|Rr2L(<=Se#y0%hY&CeF*3;DUs zLrz)^6_#@g`OHygL@EAf^}W^nLMG*$RB8EpW_dL;;QzV0vXB|{|14i#$Q+?REBULH z>RM&~wak!nTAjR7EX`HtinD9W`ISoMm~%`GuFlP8jyvbonbqQzd}*~ z@>gf`Oa3?I99KtjmrKRWF!i4;U(TGMe^l^~lQj3-+FYTSIYs}xT$sxjGZ|V&{%U@9 zt&*Er%4bfyKbBI%K}?@gL$_<&`*mg|X-I(=)KI6k4(3nNYIy3Rg>)*^2F>44>2;vJ z+8~-08TpK*OJutsF@{x|wuw8te?Fy#7^*X=j@_!)HtQ{;Jw0ZD$o5BJ)0t35TFp<4 zm>9FPX5bU0<|o+~)gb=Qd0rjmwVPpVYrRYea=+k771(+E+a2d~>bN5!`=;VwCY$_l~iSj2O^@Zzayg5Pmr0!)*ocN;?=QG z89m1BZ9DirNh;z)&dchgu}rFrs^f&4na6%N_lUYc29T)RFmc)w@Z?Owt@2)T-FZ!& z=(HL)Z$cV#uQc~^e>eBIdNiRIx>Te&WY5v<+IoGvttHR6zod{tueWewi5us4JFUA= zKTdtvT(1W4GTaj{pf2jf(>&SN;vA(kbyXXiqo=4(_60Q@oXM~n{HQJ(I@6ULeIlat z^uTMW=?^~5T~*lxOc=_XhAr_Sl+pI&m-WByO&SuxH}lVXFf5tm@lF5hp8KtoI_}ZQ z=agc;(W>p6L3Jt$=$sny0LjkEk$zX5YSlMj@m0+fnJL&c-V(Pq z6BOOOu>;qU4?t8yn_^X<#)1BG>hxxFV}FNKGj9$(OrAO2Aq-|m`#F6uf-$QFW*nmd zFt4gJKAt@5z7J+{K{lIrpn4kugg6)Rl=O`9d71meFt($^I-d{e99An$FOSuXIdxKd zKB~+dv_5XLTeW-78<|)Hq~I|%#J$}o)!C#bPVm&aH$I~>QOrAM)bJMEN7d%m7AeO> zRfF!&!FCK23Nc$vXod~gNm;sHs^1ksM}8u(6*+QtL5F4#$Zx6qy;|p%=sE(m z*^y7A?WD;nYSp(P@NU=TGaZ363AOz_@)z|h)J~~mA?m}{4ha{7Fo)c0={=&Yt?vp} z2i;51FoNe2LT6;XxzCKWy579wd6Qg=@R`w#XPS55nHmoKNdtA7dyJqVLf3YE%UBSY z(kG2gjg}#3j7M+P8#ixtSmY16|IeUuO7+d!Mu#U?66*tM$kDx83;aTmK0`v(NfM$E zy_ydanHuIoJHs-YXr&<@jw%j4%yms;R@Nnr0h3JosyZ)>ufEu>rkSwxr=-FsBO^+8%gYT{I8jZ167x))a0*x_df$W?7iJe=?;mgq9|_)%$E_ zDc$Rt5nOg zi}~eT#B&E1+f1%pn61thm)4e7%JA5oQo{?gW$(iPw7b)Dxk|2FDVFly=Rx{BQ&_0J zzm_ju^FAM;?zyEU@57K6-zfRMP>M#k!yXwyo6S#RoTwx~H=wPFpdNI8;fNa5+dBu3 zSea8y5Ui;+w%g7J#E97E3;Adq=R%=9Ji9Si6IuY)H^rykM(oZ|kI?Tc7RGCv9Uziu z&i)zLR59QMb)mgm+iN3W1?`=~SP<|chFJL9jc`3)MYo2dQLz(6R79DpRqX1{@ZShk zXa7-39hHf~;d%J*I=s971|`*ISKE4Of)O3Cm6_a#OuT0^Y!U zH`?y+rPM{*@YPn6j6rik;pr^%nL+^Pq*!GbpIYc0uws$Vb^s!d`3!k5w)b~-X$=fR z=+G93f$E6HVHgGSf>Iacl2FkTnqZi|V`uJK=4Y zqbJ)Ao3FOsY|(ZHP9&Lvdoax?cq^Z2f`jh1I+fp!-$|P`{xE!)?-qBGc#0C zUG&&hV9W@|dba2KJf?MB-S~_Lu??6126Er9S4qHSO$Pw}zIx1q&E^!6MA!)Q<|}8a ze~|9~45h$`D3b*UHQNhF&<3X+#PK#8ZP*fb#gw3#r@>uLwD$xoczTmtmtrCp%4`TP^|Fr@s`yI;E-u*PKGBL<&>a^zw(GwJ}{K(X6 z7V3(^m@w`#GhJ|JfQ63?G5Xfsst1;K=Kx>}8bAQ-GUNulYd%P#tC6Xf`kg8HN_}wd z|2m{H(aAfb>g-Z+HdiSWS0b97Qb!k-iZi(-3Bu+|3y7c=R&of!4y$9i5(27)T;@fJ zx#rf&l~QgAe-2XMGj}~-n#mR3%dKQSM{Q^FOS#foIWwjISSYM5BUp<8W=gs1g(XC4 z@$cE(N^UNP2r#0kvx@~pO^@k+V$9<>3df;h7MEu*N}2%8mWr5mE;CMl%;i^>bEQie zMUdu8xs};Gg0=WzzOb^CTbV<^7Jn?{OUt>HYY5t6(u>8Fh3X~zCo@9h6jtT{>=gZi ze->BrW&D|;UWF3o4-lsbcA;F#<(D!Jcd6u-u4T^9Ki|u(Vzp;!^_OzjbC(v&75qI( zKV5>>o69^*otN`h3$w+{Ih?ptmBoB@C6E7>2zWVjo)q7e{FUnUe2#~EmU^rdOILE& zGNZKo)m$mJu!g@bP&|4yUs}s#sm*GU+dsl>ilxfh0`}}8{Q{)ZDxRlBl?y8ixmC<1 z^Qe+Udk*iRnfIr_1ZD_p_a zo}l3>i@5^-;_@$RrAzs1nI{QpYnMs@m(RRF@$|KoLM1;}y@V;u6_+zlQD9zw1D=o* zka?Q>l-78C&k!2duFvEz6&Q^ZH2=%_mHhQJ>_q0qXJ}|d?enD-tn{;p5aXoF@iXL3 zbd7B!y1W*lYat4zkQB{&5%{hwf~wCcr;=aF&lZ=LF*!LC<;SAG54##YXa0|j+!Vv%-7K)d#4$4lb7Upmgurx1S z;V2^4=Vpso>D9_wZmC*WnJ9A&wQDnt18+Tec32Zpv4i^a$;q)v(+;y-3sIrF9 zwY8uohqU%IdrtaoL=b6gS6O1oFo!;vwx5&d>T(q=E& z6_7OUFTx>FYP3JfA%XsGyV3Sc5Ayiwq|Yj1W39%9Rt{}ugU$&@ln8AR0yrT_+7CNh|BrZnE2e(on|L@y0IhVL+wPsR!r$$?GJ7Jf#goVID$kqjuB% zn*%E2nM1X0!NF_BoguoA4e24o$!aPp{V^c}kqVO_@}@t9P|!a*>V(E3yPg~M7U!u5 z)OVEQMVPi)WYzC(n7rJ6kc>>Mvq{h?Z|49TMlrGg*5v^H&?$8?Ono1yb1+)#AViqO zta{_bag0V({nsrB2|<}yF(3#}ZL!F)#Z@(``9>VPP|q8Ef!Dm2fP@DqE9awXZMV65 zmy(~&%!LqM?hEv#oayb&8bG(Jn+Omhxa>ikF5o!Xx9JwX38 z^OY!kf0(|sT-(cw_W}?+@Vjbkv%bxCavd7&Mm=E|$<&$Y3oUa5Y!yyNf)yVxn^$L( z_WXb}nq7d<(b{`>Zx0ISuF6Dr65;;X@$PZ{$j?V78oTZV!fpI5&+Q7E+3$i|EV|)` z8T$=&#@HhDYOMp=u)dG1T{$N`CZ7GHN7dOR(m$ZC?E;iM5Ttzs?7kigP2D? zztA$|G;qz-<0KlxErgX+VvHSB31g zAyEPjEX#J{`@Hs`kZpurVBhas$i1&lXd%Z?4|v{_gj@DMPpL<{@-63;IFf7!OHWQj zdLotQtW<7y9T-=x)?K`S!!JIrF0x+vC3b&`zmSwo?n{bO=3~$mI7dbl!EesMztwTMw%gdL$9ibB7tp zmrKDhf*OV%L*(wc!D8SJyWH63nqH=W~;VSUEkmM zsE#O@Bs%r&<|jz}=8QTvYX_4W!5{54 zB86p;+|shtY8zMY*+LzJRew@{458X~MeQPt>;IVdr!`9@3?N4{phGd74I#?? zh^~a_Jf_aYm&hpReW2jY1%KGcoZv8UlY1ivHM;HgwtepY?d09BK484ZP}_}eewy6s zo@uG+=7&=1Ip1!G9thi6J{0{#$DZ&%MD{BC&6LXezs6SiZ6YA&Y4s?D;1Rp(Af>Z| zdxR3)@z^El)q~C~f~U>B_^-lD`#a&;{|LnDFEN4u=(A5p1`lx9IK6gl{%?U~{e=mc z1-3f2ncYbCM~+18Qcbo$00N2mLp*8)^Cq#jb*R%8@{s81hxL}oW@TIIk#Ga8{WDKL zJiB{Do$(V*JTDa+$%EN{18XHbXk=EDpFsMA-;s0*N@l{P^E-jhi872Ojq~Lw7n94p zo8Kn9hS8Qx7o>a+W`FC5)mGC4@>7t9cAYXxDR&ODqONM?gyq-BE@khjrz|bQ*f=c9 zL(Y;TrA$khJAc{)y51^>v4@6U`s9q#A^@FKo zqPqS2wgq9tb|bSds*Bxpd1N#MQ_e(Zf8Mf=pe^9VekhH;#ip;jq(&k-;B)5YZ9m39 zBwg^o9Ka1 z3MryhJS0t1`%!J)TpGKAW&nkZGXx_kb&zkZy1#)-jpk?PalUqL^6KLAcb-Fri$8lF z)jDtIDa@MYCf>gA>S#8MJi35Qt*T#Y?wUK>wq!grPe%Q9w9mQ-ouf1Tn{Hvq^|31W z0DQ}m7CGepHo|Its+7bOoU*!r@SN1R!Bys9PQLUTp0cGcn)q%d+zWe)6lZ-qEeeqs z&hV7=?D1{LIJ_m?ec(%xQE=iJvgH~Us81Z)HT7s1PF1qzZq;@-w{f8KKG|~q!T|G> zaJQ&?&SY?1E`$yDA44-rngv044XC!sE7+K4$;bAkx0#t9JG% z=&+6Jz94sRyUDB2%~z8EC~?$@vIcDkq74$*QX_PQDKMBYo2C0);zVwHJ2=h<>bQ4R zN|@8a0~n!#YfMA3JFoBQ&Gd6TXgr5XE&gArZUs4Zm+^X>nxfa62?T^e%L^jwGRc1{e zs?p~G10&mL-9>pv&`rq`?wz{|FU{yt8oY1 zg4{ORK`0s2oHQV3dD3#y=BZ~H9mUIsejeNzl@Whg0GJ$G>y1nH6b4~n*=D_;G&;9@ z9%Gg*T8C}fdcjxF)tobLdIYf1p5MUD_b`T?1>E|e-2v6>yQa*{ zMyzT|xIe2*v|;XdLg6#N;o|MXmBMnqij+tc`w5j2LiXLYe6EB%JmfSkBX^Ec`;hQB zm%COi&R6BjAgAWZmn-@FC8Xk^3H^)OaQ`7{vRGUz(HC^i9Ca5}Cc5)&l;Tb>E-iLZ~lgQ8$sTw0H!J+7uz_MlIgzKG6_{2JK1rR9nFkp?K zQjH!m&Qx4T@1P8De-4$yh@H19&BD!HB$hiD!7&VfZxda&KWfMYf3oMQIKs`H9ZDk# zHEM8YZF$&o%|ioC%rczNx5bBC6p}iV@Qd?|aw&5aY234mxe}^u6|02>qz^|+Z6W=2 z1;wzC_lqNfOxE1e>LM=nts7vV`C#UWZ8ytWqOJ*AV&ET6IeN zLZOWo%2P3g9>+C-v;KJ0MdMif#kP#Y5I)`iIHg8y@(%$OluZc7FnR>_BryT~qR!#I z`i;f|UMYs?{@*FoY70wN)M`5>ve{%w+OBR#I!?&n**}M?dGb%^Sv3e*qt96PU=cN~ z-O*g7d($^5{>zFEm$&i#9{nK0{nvwrMe4&ERC!PX;t*_Cb|=8;L>KJA>6{HJfW$|- zw!L=?#bcyG$H#AyIHyWH7YX0>MoVRc^jScFl@+x(P2jDelAy-f~K<*)je?MGN+%+`{ zCzF`T5x<}2#WuH}#k!Ww{sr7SWQ8s^N8IT^NhyPx9xPJ!8FhJ}LTS%S^;SLgytk|We9sD~Mek^M3_wK)%x z_9L&(Xb&x2^+afc3alA7q|NOtv!aWhx&vxioQ{2@a!UTTiJIN#wz=OpqD~1we=AY{ zs(#0e*sD@5KNGht~{yNj+$drxmm$>*?6L*M;x`U9k z7b_AX?5gi%OGqux()3BSF+vs2@%$Wl4N7SITfRpwrI z-T!b1-Uc%k1Ju79ssM?1U#LIjb3PiP(45uAx-9J8&WyyheGq1p^QvYVW~3`b_RWZ# zOX`@!XHBZ)w1vnL@jjvPU*ZsNGAT$x!}lO69&YRfbm`CxLP#9ptBkZ6BYnESHNc7R z++;GdaB4$gH-#j4v(oN&s8MTUsNA?ay;AmWc2-OI^4d}bO88uY?OtA+oz0i2%nsaJ z`BJG^$_%(a4R=y_fWQ?==hZ-wMmq}(_ow@=(YgSHBQEIZ@ikdq_!tPM>}iGkt%2yF zGD-Dp?dv3XuENVYF*ye?t`vCsj-|9WGoH zXOqSaRYs+Cbt?fbl~FCFZG{PUNvWW%^y!XoA8PG3O_p>vjF1o!yiZq7>HY=Z-~?GQ zdT6>MQ??t6c5r+mpY%D4%-k`%g*SI5g!tSI<%YrNll36#jd`MZO&zD|Mw@sS!g)t! zK~eBMbBZ(+s74c|R`lCL+G4+8CW?F}emZNyJe?(mTa%xfaACqN*LL@7+wLzxw~W@J zido5npz)-dD3N>aq{yV~A`k5~gDy92A)Qe;iScpF?BN5cjtHJ4;82wNHhVtkFq- z!J3@@5y-@rU!jvXV2L2U6=}3tm5z~2liMm8L>V`#?zSK z|K_Q@FL^WE+j!N4a-X~}R9b}fN3JRovBaKIWAf-q8C7}kTkbN|dBIC2Xbk;yfeMhM z99KOyk2*b7UD$C6)m9KLLO2$lU(}(&%Ps@%-#Dri@-i#>IS2E?1}h^6Vcu`6VZ*vU zY_4m~%z6Y0!uPy{P$(*>XNCMrdV<2-oU%Cs{OLl)=N`B?ezZ>5Gw&|h9081CPi_RI zjU+jA*4H}tEf^%BuT}DK-GBRX9<4}PXBP~(;TXvCY4b4*X=x?z%oAc z=o&l_e?XyTa=GW^5?UuR7%K=Wu7V%kPoWV>nHc0loorL`mRAm4*o)0{mtGTPbeTtW zG6Y;H(eGV#3=iB^+xzPp={9picVDH~aND;kP5h(0zYYj%>O4P@i)@*;ct|Mry3yX) z(5?xa>K}%vt>{W~7Ciy>WA%&yYZl0Gx10M=CaKuu2L1!z7hl&Ko_fbuC_^=2!lRg# zV;BO2z(x%h7zqr9MC~D8X6PqyY)3$Yo%6&W`d?P(Y1i>cZet4`Ir4i~QG&OD$7ux+oIwSp7j$YHA8q3KN(8>;T=$3IN)rdf^h8=7?)C?1!O3}* zgJIuL`Ty?Zlu$W1JEl&7EQ0ib!!?9UT)Nm&I(tr?)h$B%oqbY0p}*UAD2r@+ZnrTijg8dP+Q(f72{eo37TuSjDHSEl@f;;DGzQ9$C!W4PJStHNfQ%KSDsD_rMec1%5DGQ`sE|A;EO zv;2aU7T!if)K^95B`9Q)nHX?-W}K_ZKjrjeCFSWciAWh_F`#Xsj>sff;E_Yj%$htZ zVpig#VeRzMU(FgnT@nFgR`XgY;H%ftpT&2-Yk}M~CM_q~2#Lp)1r9_}=8n6jE-chL z4|*l;UrMP*C^sttxNUHBKRXVIzelI7)BH%kmcgz|{^ngLA3`|&IHwdLfFL_ZdmP+O zPQt*!xR^XqUBwQMT{R-~Wnw;k5*S_g+J%ab=WoKZcCVtkG&1(-0XC-K=(#vFCDB7g z=jF(OVQ5Xx;Qkx8HoURP?J6+%Z<$D zzL(?vY0YvYfDgrTBQW^+uL$#kr!C!+fM&(P>EOP@?YFP#ICH5`d^Re8ek^eIm?N zTZ6WEML3oek9G)&+Is8Z_1M-|c|^YsRMVBrZkwA(Omz2qPvE&3*!ZjRz=eFpb1RgV zgd+LuOVF#c-H3{Hr^F=m#X0yuorP^q{*#d1uQeT8;nX-lSif+m1kHaB_%{44?E1jf zz1_wJJZhq$9|$-Bfz!i)0Pq^>A&aq2z{y=B5ir{Y%)~hh*fK@?Q0;(nnQ@nP7DidU zg(2`55efq1dYgprjT^)k?2M0q+L7S;{0I-6Rj6lrR1gon@+4epVk7e_+2X9Q5m>0K zaQ3_Kl42a+5myELAw#%ipkD?WnX)-q;*-u(FJ=~(R0b#}+Q12{D()L^)_1%}MOZm%q z0X=-P3Q61int64#R3yJY+^YD5Y!zIRnnf}D+%jDrfjc%36fjK(=^iLn7$Hk|kRJ2C zCQ?=Q=LS)IJwO)DbtHU%$UF=i9&5{g3!qqd0o63dIZx+0MR9H*$qBp^gsw{v337_~tAI~Cnl$PcXe~AlfYv%N}#d+9!J$xYx z35W@=X!KAW%8^$z;B(hC9I|*98*>%VS(Ty8oc12>=57Wqd*QYMd6Oiw+TB-a|7cLO z2_^h1)r89VxI91)9~fGp3MZ#kbq1Z6nWZs6+o?Q1)O}tfz~sC(!;$tZbrG$(aCN z0?0oV3`o<)6X6U(=$%pNt>!karO`)10Y1`g7PIy4UpR&v6=qv;*y%aa?r~7MH=L#n zVvHHKlxf$_k!?35RBG74t=(tb6WH3y(d%WX*Y=4${Ucm~-cUd8#)%?H^X8xmrGJPnSneH`1U;qB`UW3^c|e?x}8 z!Z<4(K`}_D*whk9TWPicAm+k?3o>UIf~bXBtQh>R`x8J|Y@V`UL>qxtNIR00-AX?g zJh6<$i;`542r+KV?+faLY_x_W__AG~v&@5P1M%*M#*rk2Qw$gy2cDt{Ak$jbgO*b= zjbS;Cs&mQESwH1{cW?S661e?V_K zn(a0%12pq_brOdZ!HmsnZ3`5swWV28}j&@F18J_QxlUU8X$E^M$(yzKN?Hxn!WG0MQFL#6}Rpu;tIpE7ab7Vpp znL5No|8hz_=1nwtYu^pe)HaBjX%NT*ooW+Lpn6m7v6~^}5Mdt*IX@4PV^LfVE~5>g z`2$tQHc1+UWrkEM|83jfH8ilIJ`lm5GZ*NRk+W zt;@i5MvH*9Dt{4JiGunXbf)BX$Q6vbDr^z7LE4o>gz`t$t#$Ei)`j>qwGxIHRnXca8k7t+$Y#76 zC^Ho!P?TzXHWQL5%IC+pR$7>PSa|5l7hezROXe5^&hHn+_r%m!-@Vz`^?W`#i+?S4 zdVOdUX1RHWL^Di5?rZgmyck{l?M7P0C+UGTXOOfncUO&shePSwN9J;HtHYmJ&95xr z$<&C~9ZB}NrKPHuQ;%9?q2~H3=<>Dl`&4&@-ia-iD+_STuQEc@T%DsA$T?iw-{t?9!DjIs$s_QBB~s1oy$%61t8wRD~Y)mO{2 zi}~doO8dL!F;5IsEyL0~}@XDQ@{5MPWfi`+X!08poZJk-$L4?ucO~!x?w%S6f5z4GGtnI|5v5`4<)bjt(cVlR z)_h)|!x~x}*@KJuPMQxTru-&*E_a^U*L&p&4)6snAvc0Q+vV zRuop3h_tkV^Q{z~hX~6+;VZFo=DeR|Xdl)@;}zlUzCPRpauDv*O&}QjvqS3f#MS!j z3QwYBJi_8!=MaO5CifeOx%QCl+uNG(C%gv8XW#wL806wsGJC-<1YxpIsWU2gS&IN((EFt|H+H=a^(|+{f;8~J+h4Q zBn5p96yJ`q*0)yT`=NNrChmOohy`STD0DW)oK5GenmbHx=7Q!=uxM~uYB@BkoutBSvh7Xd)K#P zl8p{}mpde%Hav08*3;=7{$|R~TuW4oMA@WeF<~WWehYSA=ZZp+8TfV1&FtWp%2J1Qk44X=JG0 zB3o@@A6}XJ8K|Bh#OfcQ>T_FN^hY#f`71yLDT@wd^E$<$CAxsV5IhuST-_3Zv#35~ zb2nK=bMLD2mY<*;ovZEC@SIGw{h}`6AJA5Yr)(N;jysiK6qd?U1x>}3qtB^Rxlh`; z4Gx}gGg6Ie^0%L?IolB7J9=x zGEs!}U{T@K082>IG34()t&~4aa&?&n>RcbKyRGAS@DRr7s!sqPdJ49T@4yfd#WA2C z{!B0);v>T6W5K8wZP@UXJ?aH#)+13o1;cfs>Df}D!)x_t5ECc=a8Qlf8spCR39VRh z*bO)$x0)^I$OcANt~TN&<=j-~w6f?WuhUDYa0iOgW=jdR4j{^xNp2@tEHT`QQgXa# zY^sl*;3|XO!Cyn#7xa-)T&jh4th$h2LDj>h>grkv9y+ATx(ItY@e%3WfpFq&Or>Mp zhW%|}mF_W>H3}Y8^(f`vU!#=EoRo|^g7bc1VJSCTK$VWd3bm|2i-Q`Ozs#!LdAvrn zQbApW0_KWLO|+vFon!7lOW`@aJ_O(&1Z(9=KmffGMj>|e@bO*crl8O8&W`bDF?oZ zR4M*j%D&F>LS34h`Jbm7SL{ zCaRj4N^~}vB!f*LD;QhQsY9bU!7193bZ^oaZ0c3FXY7HU_eedF3+D!&sDm~>t0T0& z5-oZ86l}xYK}iph+AdQ4satXgiVFb&^ymumMRZ+@Ztb5}$LqVuh@jRzE6yOjQi{!( z)P>PgEP%QVfMnqh{Yz0&y^$);r14y#DXcRLkzjuqfD7xuA2lMW&0dAZ6Wq&|H7se( z8k25Q9rrdHEcLzO3~cIL%z%dNyP98_ljKDFVKNm596T*ESM;o9E+GTU@(6MukIv)L z1pYll|IW=)+5F7W=|A#m?hmOh*ZQ8)ekmj+>VMsv+~m80l%}}7N7wc4Ij<+QGRy(( z%s&&ll8;qWpF68ExF#$#Z?2EwGMryvb4K4o>@s2Ze}lkU!o@xT<6Y|WZ!~g*(Lm~U zqtU;Y$NFaYo+zF4p~!VoiEx_hdvuoi;swF`{d92B@cf7F_sfO857e2^y7Xnf=hP8w zfyqs`-8&O(*e~$S;~pr*aJTOh`+$RDDY(~l|8V3&;eEpSm6UpXRxY@DRdJ%l2~c4w zblLRj4{&@Zv?i!&+;9#G<~7my0kY!r^hU;?<#u_ zW?=`f7x00)NQ~gyvn=;NLxL2aq!@gUTih>69QrPB@B(&S?!N z1^v~lXivV2uWy4;phJHt~pId78b zxMB^oPUMY?-_m_eWfPZ8DqkBV5FNY<(`w$S;@zq0-mMn$nItKC(EW?JJjOxQP4gOr zMpd-ptOzg=*Ji!F(Q0rVTV8gWN~LWR(yRJupH1%(J?+G_#fcN=EaL+|$W;$O62GO* z?PYx#4RGGX!$R!55!KXIKq~^mc$kjr$DP~iOc+ms+lqbd;<2zLuO+UXVPa>^pnrvO z9$;|Pz1_Kt!j4Ez$4%j*8^L;JwpE3D>%EPr+CseDG~3t1wuX()!-LUc>H*bPZbo&j zDT#|zY}C+QD027oKTzBK7lUdfJb{RXm8Z9-T2xxAY6@J-%55obVQ2>P^9Z!Uj(~UA zfFV1OwE6?Vnf^tTtNm{V)DxTAd)nx&?KRpHc!O&)Jh1al&=`j<9Q^a%WIIG3_*p){ zSk(_`-*aA0(5?IERtXLi8`o&$A?3UesP83A=8&-5zeDjh*3HTxEEv@vceFx!*|V&d zJ?Zp;ble`%2TX|MAO}qJFqD&vZUx<)6cs-rrP-oz|2r&4^s(gS;E98PC8HP94+Z($ z;^2!pxb9U}qtLw`>=N9cLKS+_V8UQMb?ZKM`oU^iccj=`Y?@lhdKcH#nNB6v{ z_ow@rl|glVQR4*qX{dEcKR|B?yz`*FCRz`+zCCANuOO!aYrM^^Eu-`fk^_S-E9q~< z-3D=Q3l&muSFI}V9T+d8?KyJ3=2K*qvQ0^b+jxBv)n(<)o>whMOIqH<68FsGsrI|s z7u0azPb7PIPYR}~D2hDPNw`f<54@IgQBYJsYAT1%b`P(Q)m^#`L!4(-ZUB?-68|Jb zc--ee#$Fsw#0kW63j2x(tx07ZeFu}+d3Xtk?Y#IHn5$+%i|XM$eVKU^YpLQ7UJQq; zhOLi>#X;Ix5#9ylN|L;>NeF{L3JK=tSTH~BJei;kMS(mxZ2e*NC~a(X03TIz>P&~} zI0;c!yDKW&$1VqK4JUC4KQGEttL-@Etb&d^Q zhLo|6P?e3Z#{k-qh0?hv2}M-9jqCcrLZq-uOHy`5rfi%d)QN8_cp%Eu-EHCdj38kC zN-qbL3gt`4yQXq1;aDXClKdNeS_*) zggmjVt<)SXmIFa~YLoZ|hmp3az>>DsY<`OnZYjE9=HG^exZl>H8(VK6iP#falX!A! z46okBPNcpmOJ&0cou}2KETmY?3elo&Mj@HO>0d)Vd^{?ZG_QM3Nq_bm+?!0aiTa1>{%y*!@|Pf{e|fjI*S^*4&@PzBUC7L_?SdAH z0tFdbk~W9wFs>0k(9~x$lL9k=`Y2##21ZjzHj0-^6^gV*G);(JPsUnUk3}NhPk+p; z)N_lQpkAM$M)zkxOEU~m&u&S|x+kFaK&HjgN+ zMem556YuE1q8t_+;X}|nBL1Q}h1!x0sTLyRqKbM)^mM{M%oYgkH_*z?Z!aT|{&SGwLp)EA;HBK!ki}JLoi%i!Eh0 zc7n`=g2qq8<9oi>G_o(NGf8lI8Bs_|Azaoe4c(G;U=j^dUZTOk^gn9{87iRQ zoxR=~9jd$F`9OJq-Ef>KmG*dzHtlWM*`_PhsMX=KWl{v4ZxmR|RxqC?QfX;ZF^6T6h(!s1%=oMa8*3>J{AA)Mu3!Wsez z_%yv1A;UmJAnBc^ve?4C`3dB7vUryFX{_9~A3H*XkZq5`;u(sgmMA{8i#+OAG|!-< z4~u4yJ?huA@jMuXaSkMxm(>NIl6Ogq!o#2&@KI8w9%8d2)*#jjTCaMI#iA{$tPgH~ zw?SpDP!m^MYNYPjAH-YpnzQ{X0P)@iD%aqF5PEb&>^%~gDa5jeHTo!5c~nHD&4P{- zy8nf9g;&*yz2_^WOZS!^{AD_PJC&JpU^nqv%_oP#iatn*JK}gZ~BD*?l>^t{+@M*oaCKr~vXUVyLh7t0MFZ(f!_& z>g+uGH{gp2=qM3+mSkQ^T;M*w1gLifl?>)Ai5PpS zjHI3HsT7bc)ZHks7$#&V9mp_AG^?dD?tRH^5-E1aKv-@^Oc4@1-4~y1ul7#IE~s-% zYtSUyxMQiGacn@&XIReLGTLYlXQhu(slOO73Fh-SkJ-W@oD(7n4 z>~naQwgQ7)p$ARBE9x;ugZM)|T`7Q$hj}1d%Dy*{F%}F`$awe9a-)q$A@^V{lhSiM zdqthMEj46AJ{Jtc*%RZrAUlQWexD7~e+I$xk5i~ImmqmO#00r^?clmts^H7w=lW6ImE22iuG($^8-*=|Lc7K=o;Pd)PWB`A~%&F%zbfFaewz` z1^G8ij`AY9r`Hwq1Dqc6$+BSY9K4By16!Dma2no6g!_17f}rYngYftP;eZ}?n|SOO z(R9!RVxcTykGqn<4Ivzfp_p`*1LUR0fw*5#k0C{gRuw&Y4+j1(q|_J%c9TXx$P{K> zyF>TLLqYIKj_p3{^v`Xm^a^QTf#)CP?*F;igJkj@rRu^DLCWVdUI7Ev?)amNjFu<5 ztU+fJEUQtb0}(GlPG$0%Z1!{#ZtT(Db@hZ~Hzjp57=0_0AgA%!KlgU8s4U2$5{dK} z=&y&M>y(AQoR;o2^#}m_hABvrux21nhal@1e}CqV`{|IBkklZf@9SLU7ol2kB7g%+ z*7xv~O=Ss4pa`4^`5W&P8BkeVm!)@+@$e1;4Bl%#4yu7Pc93Vz;bHMO5WgOonzQIh z-3HYmC5lta&1B?rH`E0)Mm(5JHqiqcitcrCno#yX9Z;uZ7;xGugD1A}CN>@~g4?GC zTZpCE$keq%td&t2K(I#nl8jK)10dTzP~L=ZfDcbu3qtxqpvX>X;NH%;cy?NvM8|{s zWU07-f^$pN;wmLG6ibn0h@)ztSc2Q+m>NXc9o+c7%Bc-R;OvQ#ox@eyG5ySqPN~qv zZ^D@sxP8bO5-DI2eQ*=?w@@f>Sv>n?Mg3)eos}zo&a3q~M zG+k}$8Ym*m55&Lj|9LG+Y}D`7Vt00>7`2YFb~?~Q;I(Ts+rFRR!}H~8I13=FvP z@~Z#UOr`&vPrtAGBl^um|C1*T54p6Eq?2$3ml+C+M)q<6 zcWq`L$|H=SX=%}miX0o>t{Q3Edt2=?c3WLYK*G0cH0VhBF=Bsl_d{IwL*>p(2Yf7C z$i{oL^1-aY{pz4nJ}7u;gZcg-Ys#$Eekc)iHXFzX!rpW~$$=MxiQ-F|m=_Ij|Wei-JX*8n@@yi`kFMila9y@l&0c=x2!sBKd@=>0Zc^}-u* zV#ErXpH&z4P#@wGDB8Fih?)l8eIqFeKs%?a>>%gZpsi5b@j<&ki?EZKyCD%YIYGBRbW&}D}4(ZVU61i-ItJ>YJ|YEVCd zvghHV($HfhVe=sel@g*qO0DS>=06(!$*Vm*z}4nFl5nr%g$KUj8r3iiW4jL4?gb>_A<7$o=hQ4D8(6^?aVl|)U3MfiaT*;NLA)tvGC7>vjDFI?&OW^6u68-?W zF6YXZKuSR5Z0Xu+rHJZK0&#x+YIS~fj^g@%9^)i&-TO+R zvPku)io6~W6h(Lu+^w$WN|j8S0=0U)#aww2v0Ma=v5Wa?d9g5GLEsiUq8s3O+I(rb zuu>>j3bV8+^M!@XNzOCp6;*}6N5)$)OU2~z%QO-d8AD5|aWRs^1c=2aw88tNz%lA) zCH%IwN|VhDjQ=QZDVnS3%;soU;o8veW|5r-BCZM*BcQv4Ir68&_E9kE3>SlzhxZyMf`eX9AzOx2wdg|oph~x?3f^?O9gs>54NGr z@iHJ%U1&95BSwmnA* z#w+EQm;>2;8@T9!@^bjSQp6~bVk^Z;)%(J^A$WuW2cuN2;4NRU8l3tiuq*kKxlFJD z`7*dWWr;w_c})X993|G3zly_O&Kw*6K|G(lObJSj-J8rmaXgoE6_hPrSxBN}Y(ezaO9p^(rf`b-i~JqB|P?vp3wlEpV*H) zrNQwn==h#J$1VnvS=js)E$ow$zk!zJ0u(v$Ej(>L2lRsR5c3Ah)P>Zc#SS$TWe%U+93=y1@*w!GOLVzHsl&QIeiE`^4T)NMPqAW5i|S)}dEMjGn{&V4+M>$&s7H=fr#!Yi%D%lSsieJMD7pSgsoPIor5ZqpvV?Y#qS&`F)p*l`qW;%G@f@~b?Ebx!b13Xyf5SOEYOjwwedG1|q;oK&I{!Or zs|cqG9}&k|=8idKxUs>ijrk-E;K{dd0>wd==pi|#pah99en34W>waA*IH9vaa%|9q zwg$<`1I0Ty^xB_z(xa4X!&qW#gXVL7K1Q?CT;JcC$WyYa8zt89LlW!w{SfQ;0f=?{ zfW-P0yjLKC%-63BQ+I3+?btdPY})kF_z><_z=*T5>(BcNQ&u`we_)%=f zQzSl;HX|k)|7mJU6#qnllYk&Cr*c!WF^Sy*`dQM(Y7n2Bl8s>y{g0UVbCx92n)--*)Z`-`8Jo4ub6KuRDjuwDYg<^f!sN zIG)?i%RY||-4?X8H>kETF>5z%R{Wn4A?jh?CZiJQ-NSrxpPnqi!@TbA6M7=k^DrN4 z-g6}9R|XKqwiI8savoa;gL|7;jnee^A!vI1K52UVU^G2`Xqx`>11cjD(=UwZ*kbF^ zh6as6x^wHT8*1XNMSYm$5ZZ;$zti=B--k7jVv`^awn5phG{6$ z>-Dge8WGXmx;lRe_z@B2FUE?WXu|{G=jVZ+i^Tnd*on!sA5TpQrlN8puwX5NUYZh2 zMOy|XO1#(WL36STo`U-#13D;yaXwUoFn}-{ceJ!Oc(b`$Lft&Wq8K#YX56=!P!6#C zTfs7+Fp!<^98f1AC8nXTGtMfxh z#UWYb+|ZGB1`Rf55^JtS+fPJ9n}?N{+z4?84=b@|*7NOQMR)0fm(Wnoze%Z# zNEaV3R;CbbXz*eaKT(<(?~f+N4^9(7d$G&fBWK}!eP&SKJg%b=nDp7Kydc+gvhb=mit;_moBU?(B1i}=WO*}USP0k)7s<= zmv%F&v^iTNz}+7Q-5Y1?rU6BXhZvbLaW^c*e03{K;9g&u^nrb?3H_Zv<2gbjv$mo{ zn|)>-GM9s*jzEl@B9m#2ePNaYjter zA>Q<$X!*{N)My7;d;cr<+-EEyyB+_8Wjo)a-H4Gzx4XI#qm9kFZO4j@pfFawimmQ< zMZ|JU5tl@eq=zjv-3|<#?cp9oAq31qa?g4g9w{Qh-`R}Zy#jC`}Olhmx*)Y z{00(vG@Ikp62}&^4K_0C>cQy08(V2?104vUXVt!*J0+X)Jm1E{7iNQ(-N%zn0Pl4* zk^xrVScF;1Q*NZ~L8uQi#mOgY{5sIatj~svP*bhm{BVSBzX$mqJ=SA4v=bL|eaZ<% zyt|xj4`t4Oky2^mOtQJwyJub#v-BQY`-PxRzN%Lm)yZ+c0(u06JiV1hn*>F--`v3? zyeIUDl8M`PBG|}G-FDi-a~_x7iB8C$#Pt^}#=2$Bf0Is9;H^3PNeVRTHRlicXl%OA zBq~1sWT$aq9N^G1wZNH=Qo8bL&%K7@a_qvaj_a`+r3$hge3WIk4IZn+< z%?$!7(brO1J51)@vG-+y+F^2+@QLDk;obsSm3qEQK21XNKJ#hfJ)QpxXcjFhj0-E8 zlNuio&Hox`K2N0nydXKIW_>L+6;Q{coF%dftzW%06;Q{cU4qn>-2M3}oxl`5g2~Na zo00^kXzQK>IsXH$NrS&dux-ouiM2c+s=p3Y`;q3qlX4D(*Xz^Hp^iZmo1{WwOi zzw8_aozAZg$ZMTpWVRjagJSS8MA{mBb_-0$x@aN$jfjx-(3^bdV|>CxZ*u#tOu|R6 z?(C~*@o@}#V@+2CTdxsj)$@O%6sWbo_u6I({D%I(`5O9X}L>!n4J} zoYh#7mhQovg!TrJuXKq4C3e%)`o|;GdRIrp`XN3|T!FFz?S2C-30DE>`#ire>FQ#hV*!*u3D$gLvrp-UvEAaoz|ns4F@)VznW!zvlFrC>nj$h5X?Z zW{#7xl{gYx8+6zbG2-xDLV+(V&G}#v-(~re2^3C7Mn56o=$0w7-r&J= zY!zs&Jq#*r*M+-u)V$*>5#qS#yxli((8bW$BBBlvjfmKJN$l+W0JthPJqbP55V@tj z!Hq5Ek~D_<10g~&$mmHZiHjjp2_^C+qhiw5nLG+v5xhxrb!?k%?_yA5lh~2fj|(Z> z$LfO~ql2#gU*eJqwl>P&HmC&{9f!LI!L-nxU2IkxSPV zHzm~S0L#4{q?<+`nFN6u5@YB)lOWuWt{8D9!K{bj?wJIEc4l?mG6_P>wQh7LoM>(q z+r!ol%-dURKbBaapYwaTJQgcPWxYHWYiSm23n3}-}h1^{GG9$Ug7_KL$iJxX9?4AADItp6W%cK3T~xH8 zSyUe^=??|ZXtR$*uJAm`%iVV(SFCGx{+DwOgoQS7&AaY@KR0o!)7fiJPfmXF$tRH? zCu{qiTa#RG=>@u%Ms;Ooz6Dze55gy#$}`6yX;xdf&#;=h{w()24e1g2o6Si~VG@Jm zwjBPoxBdqI_dgjpv(Rkb+^(apPji2B0zf7%PyMp_dgBIvzHtNJZ``;%_36MlX+Ay8 zKTJ>Khv{kjkZUE@^}^5CTE3h6sHgIocMmyQW`3SZ_}TX{f7$#q*yq#SjT_1JT#K!n zwcW;-xX8m&QdhamHaL8HJ>clP0(&ZIdB!rpCyIF$N06p7hY83iQC5$Vejz z$FwJlcGJy#fVR7C`xWM#S#{CVk1!vhr|WLI>3#1BAskebX=jl!Pw(D$-~IEuzx$ql zYMz*IN8Bd^Vkr($#m-1{PKan)hGTRMUF-~dJz|MnT(CwO^z4+hR}A zZGy7z?(Gc+T}LwpA{D3&x@7ad$aT`acTEFtyDd(PK?mUF+vR~ntbwApi^T3)nu*rb zace%`CywVfy0UrSJ(jA|dg3OxF`s|O$ZgTFhQxomC|blBT7zfIZmQs|_g8y{t9DGS z-5{>(^OFlr<{vCqU#YLe45w4A% zypr3VQ`tM(E98vmnLmVJ{o)bqi*OrmHl=E_+$tZHTd(BiZml87FRRVEv|HXQOU2X` zVGUOOTPn5V6bK){nt$P0XIF%6?BI~YzD#(3`I zi3WdWWIdUm0O;ClqH8CHp>8a(2;2@3s(2fPJpff>HLqAB*V-Qjh)r9WEqZdLE5dV# zSfo$R-Awwyd@34L1f>sQ#U5Ig(Pw_6w_aok`FK7x&9N+v2daAtaSEzLo)zj5WpmELKR|f3`>=D&34>G`(!?sPn2YjQ9}h4p!*~cy1Fq`W$J$HX|ky} zCzpZCE|s8BK!G~$FI`FBfaqAOkc0@e(MJ2io3TO^mN=%Tw;;muhe8~lLtBuGdFznu zTgK4DzNeCNjNt-`M$)U0oXV8+H;a&*j@U6IP7H_nght=>$)|Jr#2@@@iR+<>fH!&y zF>Ed8+9_hLfcCvX(~LKAhx91?QoxKL*d*L#rH8j+)fh?tE(F&m1-qkufmm@$29B@| zsh)O@N$#tAj=VvsK2d|Qx(RC*(UBsY5x)l7BqF6Ng#>`&ot6G-0ph+32?a=ceqv=$ z502;Fr|g9~#E|lEm$=9i)G{t2&y=Gle(l5h#250!d^ZD2-zAI_pG{m}Sb{~0&DaQ% z(?xm<($eRWn& zf@s1VpGH;j2xkI(=r`;!EWXC$+?akZKw{dW%r9ZX4+N~TDU)gv2fKN^Gwi-5j_e~g zSVYw}~W3;vy=6cIvx}5oE7}osy$G0p(w1=n2HW>q8F2LRy(%G?rAHlWG z$RRcs5*D~@5=*99nft@SUHE9$SGui>g}gzVLPU5Bz$~GOWp6~#>XpE*PtRpdp$bVG zIVxV@lsG3|2p5x$Es3zw;dX_+P_k4PNCLrZtzb{|$)1lXOK zCn<=;b6ay*;g55s1c@nYZo-Y`&SAYG$%j&_R4ZN}dCL%P)#|B`kb*>Gr&_EX%FWhJ zqm^37WTvA%%j}E@DSu39>!EeQS{6U{%Ss&^O;hx8qfyW;Q%{gHs!MMBe@upNvCX^u zV%He-w7yV;t8}Vncqbbi@LaeGR6iUY2XYoC^<`P^TY_`zihNLm4V!4zG9<9F#nzM zE1zmmmb*FqZ3tG_pyMqGSpb}>Er(A>yr=w^=}348Q8GXtKi4cJV6rju>DPo zwhu`sl$ocCl&E<>X;Wc*h&2`bwcygVFc$2J`&dH}BZjm)2FqByj9mUX1hEFe=N6UT z;W;EHko6kl!h38`VEul>W1c~B0xndVBUBKZ^Tic~ui|rrDzor&ViNO`zYNLoUf$oP zNh!ZEt})Y*zj;J81yP=-xWew9`6*%rt-!{(uTp~RljFMla_l`TV^2(AjS`7egsFb7 zzWfLxtQWg(y#y~ZpFkAr4KopWxF^cd>@v~MAi?hGR$Txipu_H^&Gmr;Fquz~3tX?1 z52Q-DRC|XjU4`V4)Odvqifws?tSJFe@7DtTRj)Oh*N&w|y;iQaQgNyY=P0R?N)-MWf*be} zKO64~fDh+x%c_Tdai4YX@m7@D>Kp7;UNJR%n8(Lgv-6Do`ug@Egoogle.privacy.dlp.v2.Action - */ -class Action extends \Google\Protobuf\Internal\Message -{ - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Action\SaveFindings $save_findings - * Save resulting findings in a provided location. - * @type \Google\Cloud\Dlp\V2\Action\PublishToPubSub $pub_sub - * Publish a notification to a Pub/Sub topic. - * @type \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc $publish_summary_to_cscc - * Publish summary to Cloud Security Command Center (Alpha). - * @type \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog $publish_findings_to_cloud_data_catalog - * Publish findings to Cloud Datahub. - * @type \Google\Cloud\Dlp\V2\Action\Deidentify $deidentify - * Create a de-identified copy of the input data. - * @type \Google\Cloud\Dlp\V2\Action\JobNotificationEmails $job_notification_emails - * Sends an email when the job completes. The email goes to IAM project - * owners and technical [Essential - * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). - * @type \Google\Cloud\Dlp\V2\Action\PublishToStackdriver $publish_to_stackdriver - * Enable Stackdriver metric dlp.googleapis.com/finding_count. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Save resulting findings in a provided location. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; - * @return \Google\Cloud\Dlp\V2\Action\SaveFindings|null - */ - public function getSaveFindings() - { - return $this->readOneof(1); - } - - public function hasSaveFindings() - { - return $this->hasOneof(1); - } - - /** - * Save resulting findings in a provided location. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.SaveFindings save_findings = 1; - * @param \Google\Cloud\Dlp\V2\Action\SaveFindings $var - * @return $this - */ - public function setSaveFindings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\SaveFindings::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Publish a notification to a Pub/Sub topic. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2; - * @return \Google\Cloud\Dlp\V2\Action\PublishToPubSub|null - */ - public function getPubSub() - { - return $this->readOneof(2); - } - - public function hasPubSub() - { - return $this->hasOneof(2); - } - - /** - * Publish a notification to a Pub/Sub topic. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToPubSub pub_sub = 2; - * @param \Google\Cloud\Dlp\V2\Action\PublishToPubSub $var - * @return $this - */ - public function setPubSub($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishToPubSub::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Publish summary to Cloud Security Command Center (Alpha). - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3; - * @return \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc|null - */ - public function getPublishSummaryToCscc() - { - return $this->readOneof(3); - } - - public function hasPublishSummaryToCscc() - { - return $this->hasOneof(3); - } - - /** - * Publish summary to Cloud Security Command Center (Alpha). - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishSummaryToCscc publish_summary_to_cscc = 3; - * @param \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc $var - * @return $this - */ - public function setPublishSummaryToCscc($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishSummaryToCscc::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Publish findings to Cloud Datahub. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; - * @return \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog|null - */ - public function getPublishFindingsToCloudDataCatalog() - { - return $this->readOneof(5); - } - - public function hasPublishFindingsToCloudDataCatalog() - { - return $this->hasOneof(5); - } - - /** - * Publish findings to Cloud Datahub. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog publish_findings_to_cloud_data_catalog = 5; - * @param \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog $var - * @return $this - */ - public function setPublishFindingsToCloudDataCatalog($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishFindingsToCloudDataCatalog::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Create a de-identified copy of the input data. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.Deidentify deidentify = 7; - * @return \Google\Cloud\Dlp\V2\Action\Deidentify|null - */ - public function getDeidentify() - { - return $this->readOneof(7); - } - - public function hasDeidentify() - { - return $this->hasOneof(7); - } - - /** - * Create a de-identified copy of the input data. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.Deidentify deidentify = 7; - * @param \Google\Cloud\Dlp\V2\Action\Deidentify $var - * @return $this - */ - public function setDeidentify($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\Deidentify::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Sends an email when the job completes. The email goes to IAM project - * owners and technical [Essential - * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8; - * @return \Google\Cloud\Dlp\V2\Action\JobNotificationEmails|null - */ - public function getJobNotificationEmails() - { - return $this->readOneof(8); - } - - public function hasJobNotificationEmails() - { - return $this->hasOneof(8); - } - - /** - * Sends an email when the job completes. The email goes to IAM project - * owners and technical [Essential - * Contacts](https://cloud.google.com/resource-manager/docs/managing-notification-contacts). - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.JobNotificationEmails job_notification_emails = 8; - * @param \Google\Cloud\Dlp\V2\Action\JobNotificationEmails $var - * @return $this - */ - public function setJobNotificationEmails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\JobNotificationEmails::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Enable Stackdriver metric dlp.googleapis.com/finding_count. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9; - * @return \Google\Cloud\Dlp\V2\Action\PublishToStackdriver|null - */ - public function getPublishToStackdriver() - { - return $this->readOneof(9); - } - - public function hasPublishToStackdriver() - { - return $this->hasOneof(9); - } - - /** - * Enable Stackdriver metric dlp.googleapis.com/finding_count. - * - * Generated from protobuf field .google.privacy.dlp.v2.Action.PublishToStackdriver publish_to_stackdriver = 9; - * @param \Google\Cloud\Dlp\V2\Action\PublishToStackdriver $var - * @return $this - */ - public function setPublishToStackdriver($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Action\PublishToStackdriver::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php deleted file mode 100644 index cc885a3c1675..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/Deidentify.php +++ /dev/null @@ -1,277 +0,0 @@ -google.privacy.dlp.v2.Action.Deidentify - */ -class Deidentify extends \Google\Protobuf\Internal\Message -{ - /** - * User specified deidentify templates and configs for structured, - * unstructured, and image files. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationConfig transformation_config = 7; - */ - protected $transformation_config = null; - /** - * Config for storing transformation details. This is separate from the - * de-identified content, and contains metadata about the successful - * transformations and/or failures that occurred while de-identifying. This - * needs to be set in order for users to access information about the status - * of each transformation (see - * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] - * message for more information about what is noted). - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; - */ - protected $transformation_details_storage_config = null; - /** - * List of user-specified file type groups to transform. If specified, only - * the files with these file types will be transformed. If empty, all - * supported files will be transformed. Supported types may be automatically - * added over time. If a file type is set in this field that isn't supported - * by the Deidentify action then the job will fail and will not be - * successfully created/started. Currently the only file types supported - * are: IMAGES, TEXT_FILES, CSV, TSV. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; - */ - private $file_types_to_transform; - protected $output; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TransformationConfig $transformation_config - * User specified deidentify templates and configs for structured, - * unstructured, and image files. - * @type \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig $transformation_details_storage_config - * Config for storing transformation details. This is separate from the - * de-identified content, and contains metadata about the successful - * transformations and/or failures that occurred while de-identifying. This - * needs to be set in order for users to access information about the status - * of each transformation (see - * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] - * message for more information about what is noted). - * @type string $cloud_storage_output - * Required. User settable Cloud Storage bucket and folders to store - * de-identified files. This field must be set for Cloud Storage - * deidentification. The output Cloud Storage bucket must be different - * from the input bucket. De-identified files will overwrite files in the - * output path. - * Form of: gs://bucket/folder/ or gs://bucket - * @type array|\Google\Protobuf\Internal\RepeatedField $file_types_to_transform - * List of user-specified file type groups to transform. If specified, only - * the files with these file types will be transformed. If empty, all - * supported files will be transformed. Supported types may be automatically - * added over time. If a file type is set in this field that isn't supported - * by the Deidentify action then the job will fail and will not be - * successfully created/started. Currently the only file types supported - * are: IMAGES, TEXT_FILES, CSV, TSV. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * User specified deidentify templates and configs for structured, - * unstructured, and image files. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationConfig transformation_config = 7; - * @return \Google\Cloud\Dlp\V2\TransformationConfig|null - */ - public function getTransformationConfig() - { - return $this->transformation_config; - } - - public function hasTransformationConfig() - { - return isset($this->transformation_config); - } - - public function clearTransformationConfig() - { - unset($this->transformation_config); - } - - /** - * User specified deidentify templates and configs for structured, - * unstructured, and image files. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationConfig transformation_config = 7; - * @param \Google\Cloud\Dlp\V2\TransformationConfig $var - * @return $this - */ - public function setTransformationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationConfig::class); - $this->transformation_config = $var; - - return $this; - } - - /** - * Config for storing transformation details. This is separate from the - * de-identified content, and contains metadata about the successful - * transformations and/or failures that occurred while de-identifying. This - * needs to be set in order for users to access information about the status - * of each transformation (see - * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] - * message for more information about what is noted). - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; - * @return \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig|null - */ - public function getTransformationDetailsStorageConfig() - { - return $this->transformation_details_storage_config; - } - - public function hasTransformationDetailsStorageConfig() - { - return isset($this->transformation_details_storage_config); - } - - public function clearTransformationDetailsStorageConfig() - { - unset($this->transformation_details_storage_config); - } - - /** - * Config for storing transformation details. This is separate from the - * de-identified content, and contains metadata about the successful - * transformations and/or failures that occurred while de-identifying. This - * needs to be set in order for users to access information about the status - * of each transformation (see - * [TransformationDetails][google.privacy.dlp.v2.TransformationDetails] - * message for more information about what is noted). - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationDetailsStorageConfig transformation_details_storage_config = 3; - * @param \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig $var - * @return $this - */ - public function setTransformationDetailsStorageConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationDetailsStorageConfig::class); - $this->transformation_details_storage_config = $var; - - return $this; - } - - /** - * Required. User settable Cloud Storage bucket and folders to store - * de-identified files. This field must be set for Cloud Storage - * deidentification. The output Cloud Storage bucket must be different - * from the input bucket. De-identified files will overwrite files in the - * output path. - * Form of: gs://bucket/folder/ or gs://bucket - * - * Generated from protobuf field string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCloudStorageOutput() - { - return $this->readOneof(9); - } - - public function hasCloudStorageOutput() - { - return $this->hasOneof(9); - } - - /** - * Required. User settable Cloud Storage bucket and folders to store - * de-identified files. This field must be set for Cloud Storage - * deidentification. The output Cloud Storage bucket must be different - * from the input bucket. De-identified files will overwrite files in the - * output path. - * Form of: gs://bucket/folder/ or gs://bucket - * - * Generated from protobuf field string cloud_storage_output = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCloudStorageOutput($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * List of user-specified file type groups to transform. If specified, only - * the files with these file types will be transformed. If empty, all - * supported files will be transformed. Supported types may be automatically - * added over time. If a file type is set in this field that isn't supported - * by the Deidentify action then the job will fail and will not be - * successfully created/started. Currently the only file types supported - * are: IMAGES, TEXT_FILES, CSV, TSV. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileTypesToTransform() - { - return $this->file_types_to_transform; - } - - /** - * List of user-specified file type groups to transform. If specified, only - * the files with these file types will be transformed. If empty, all - * supported files will be transformed. Supported types may be automatically - * added over time. If a file type is set in this field that isn't supported - * by the Deidentify action then the job will fail and will not be - * successfully created/started. Currently the only file types supported - * are: IMAGES, TEXT_FILES, CSV, TSV. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types_to_transform = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileTypesToTransform($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\FileType::class); - $this->file_types_to_transform = $arr; - - return $this; - } - - /** - * @return string - */ - public function getOutput() - { - return $this->whichOneof("output"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Deidentify::class, \Google\Cloud\Dlp\V2\Action_Deidentify::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php deleted file mode 100644 index 24eddd43c8b5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/JobNotificationEmails.php +++ /dev/null @@ -1,38 +0,0 @@ -google.privacy.dlp.v2.Action.JobNotificationEmails - */ -class JobNotificationEmails extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(JobNotificationEmails::class, \Google\Cloud\Dlp\V2\Action_JobNotificationEmails::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php deleted file mode 100644 index 0afab97bd631..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishFindingsToCloudDataCatalog.php +++ /dev/null @@ -1,51 +0,0 @@ -google.privacy.dlp.v2.Action.PublishFindingsToCloudDataCatalog - */ -class PublishFindingsToCloudDataCatalog extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublishFindingsToCloudDataCatalog::class, \Google\Cloud\Dlp\V2\Action_PublishFindingsToCloudDataCatalog::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php deleted file mode 100644 index 56a2fa0844d2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishSummaryToCscc.php +++ /dev/null @@ -1,43 +0,0 @@ -google.privacy.dlp.v2.Action.PublishSummaryToCscc - */ -class PublishSummaryToCscc extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublishSummaryToCscc::class, \Google\Cloud\Dlp\V2\Action_PublishSummaryToCscc::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php deleted file mode 100644 index afad5e77ebae..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToPubSub.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.Action.PublishToPubSub - */ -class PublishToPubSub extends \Google\Protobuf\Internal\Message -{ - /** - * Cloud Pub/Sub topic to send notifications to. The topic must have given - * publishing access rights to the DLP API service account executing - * the long running DlpJob sending the notifications. - * Format is projects/{project}/topics/{topic}. - * - * Generated from protobuf field string topic = 1; - */ - protected $topic = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $topic - * Cloud Pub/Sub topic to send notifications to. The topic must have given - * publishing access rights to the DLP API service account executing - * the long running DlpJob sending the notifications. - * Format is projects/{project}/topics/{topic}. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Pub/Sub topic to send notifications to. The topic must have given - * publishing access rights to the DLP API service account executing - * the long running DlpJob sending the notifications. - * Format is projects/{project}/topics/{topic}. - * - * Generated from protobuf field string topic = 1; - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * Cloud Pub/Sub topic to send notifications to. The topic must have given - * publishing access rights to the DLP API service account executing - * the long running DlpJob sending the notifications. - * Format is projects/{project}/topics/{topic}. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublishToPubSub::class, \Google\Cloud\Dlp\V2\Action_PublishToPubSub::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php deleted file mode 100644 index 186382acf182..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/PublishToStackdriver.php +++ /dev/null @@ -1,39 +0,0 @@ -google.privacy.dlp.v2.Action.PublishToStackdriver - */ -class PublishToStackdriver extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublishToStackdriver::class, \Google\Cloud\Dlp\V2\Action_PublishToStackdriver::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php deleted file mode 100644 index 1b0051e218d2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Action/SaveFindings.php +++ /dev/null @@ -1,83 +0,0 @@ -google.privacy.dlp.v2.Action.SaveFindings - */ -class SaveFindings extends \Google\Protobuf\Internal\Message -{ - /** - * Location to store findings outside of DLP. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig output_config = 1; - */ - protected $output_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\OutputStorageConfig $output_config - * Location to store findings outside of DLP. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Location to store findings outside of DLP. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig output_config = 1; - * @return \Google\Cloud\Dlp\V2\OutputStorageConfig|null - */ - public function getOutputConfig() - { - return $this->output_config; - } - - public function hasOutputConfig() - { - return isset($this->output_config); - } - - public function clearOutputConfig() - { - unset($this->output_config); - } - - /** - * Location to store findings outside of DLP. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig output_config = 1; - * @param \Google\Cloud\Dlp\V2\OutputStorageConfig $var - * @return $this - */ - public function setOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OutputStorageConfig::class); - $this->output_config = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SaveFindings::class, \Google\Cloud\Dlp\V2\Action_SaveFindings::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php deleted file mode 100644 index 9830d068c860..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActionDetails.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.ActionDetails - */ -class ActionDetails extends \Google\Protobuf\Internal\Message -{ - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails $deidentify_details - * Outcome of a de-identification action. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Outcome of a de-identification action. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails deidentify_details = 1; - * @return \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails|null - */ - public function getDeidentifyDetails() - { - return $this->readOneof(1); - } - - public function hasDeidentifyDetails() - { - return $this->hasOneof(1); - } - - /** - * Outcome of a de-identification action. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails deidentify_details = 1; - * @param \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails $var - * @return $this - */ - public function setDeidentifyDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php deleted file mode 100644 index bd9291228bd1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ActivateJobTriggerRequest.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.ActivateJobTriggerRequest - */ -class ActivateJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the trigger to activate, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the trigger to activate, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the trigger to activate, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated 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 trigger to activate, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php deleted file mode 100644 index 77c9979299d6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherDatabaseResources.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.AllOtherDatabaseResources - */ -class AllOtherDatabaseResources extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php deleted file mode 100644 index 239fbc4d64c5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AllOtherResources.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.AllOtherResources - */ -class AllOtherResources extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php deleted file mode 100644 index 1c3c4e034e68..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3Bucket.php +++ /dev/null @@ -1,111 +0,0 @@ -google.privacy.dlp.v2.AmazonS3Bucket - */ -class AmazonS3Bucket extends \Google\Protobuf\Internal\Message -{ - /** - * The AWS account. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccount aws_account = 1; - */ - protected $aws_account = null; - /** - * Required. The bucket name. - * - * Generated from protobuf field string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bucket_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AwsAccount $aws_account - * The AWS account. - * @type string $bucket_name - * Required. The bucket name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The AWS account. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccount aws_account = 1; - * @return \Google\Cloud\Dlp\V2\AwsAccount|null - */ - public function getAwsAccount() - { - return $this->aws_account; - } - - public function hasAwsAccount() - { - return isset($this->aws_account); - } - - public function clearAwsAccount() - { - unset($this->aws_account); - } - - /** - * The AWS account. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccount aws_account = 1; - * @param \Google\Cloud\Dlp\V2\AwsAccount $var - * @return $this - */ - public function setAwsAccount($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AwsAccount::class); - $this->aws_account = $var; - - return $this; - } - - /** - * Required. The bucket name. - * - * Generated from protobuf field string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBucketName() - { - return $this->bucket_name; - } - - /** - * Required. The bucket name. - * - * Generated from protobuf field string bucket_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBucketName($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php deleted file mode 100644 index e1f827661a83..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.AmazonS3BucketConditions - */ -class AmazonS3BucketConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Bucket types that should be profiled. - * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $bucket_types; - /** - * Optional. Object classes that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $object_storage_classes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $bucket_types - * Optional. Bucket types that should be profiled. - * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. - * @type array|\Google\Protobuf\Internal\RepeatedField $object_storage_classes - * Optional. Object classes that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Bucket types that should be profiled. - * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBucketTypes() - { - return $this->bucket_types; - } - - /** - * Optional. Bucket types that should be profiled. - * Optional. Defaults to TYPE_ALL_SUPPORTED if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType bucket_types = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBucketTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions\BucketType::class); - $this->bucket_types = $arr; - - return $this; - } - - /** - * Optional. Object classes that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getObjectStorageClasses() - { - return $this->object_storage_classes; - } - - /** - * Optional. Object classes that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_CLASSES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass object_storage_classes = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setObjectStorageClasses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions\ObjectStorageClass::class); - $this->object_storage_classes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php deleted file mode 100644 index 3325e04f6c49..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/BucketType.php +++ /dev/null @@ -1,65 +0,0 @@ -google.privacy.dlp.v2.AmazonS3BucketConditions.BucketType - */ -class BucketType -{ - /** - * Unused. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * All supported classes. - * - * Generated from protobuf enum TYPE_ALL_SUPPORTED = 1; - */ - const TYPE_ALL_SUPPORTED = 1; - /** - * A general purpose Amazon S3 bucket. - * - * Generated from protobuf enum TYPE_GENERAL_PURPOSE = 2; - */ - const TYPE_GENERAL_PURPOSE = 2; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::TYPE_ALL_SUPPORTED => 'TYPE_ALL_SUPPORTED', - self::TYPE_GENERAL_PURPOSE => 'TYPE_GENERAL_PURPOSE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BucketType::class, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions_BucketType::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php deleted file mode 100644 index 6c821e3d09c0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketConditions/ObjectStorageClass.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.AmazonS3BucketConditions.ObjectStorageClass - */ -class ObjectStorageClass -{ - /** - * Unused. - * - * Generated from protobuf enum UNSPECIFIED = 0; - */ - const UNSPECIFIED = 0; - /** - * All supported classes. - * - * Generated from protobuf enum ALL_SUPPORTED_CLASSES = 1; - */ - const ALL_SUPPORTED_CLASSES = 1; - /** - * Standard object class. - * - * Generated from protobuf enum STANDARD = 2; - */ - const STANDARD = 2; - /** - * Standard - infrequent access object class. - * - * Generated from protobuf enum STANDARD_INFREQUENT_ACCESS = 4; - */ - const STANDARD_INFREQUENT_ACCESS = 4; - /** - * Glacier - instant retrieval object class. - * - * Generated from protobuf enum GLACIER_INSTANT_RETRIEVAL = 6; - */ - const GLACIER_INSTANT_RETRIEVAL = 6; - /** - * Objects in the S3 Intelligent-Tiering access tiers. - * - * Generated from protobuf enum INTELLIGENT_TIERING = 7; - */ - const INTELLIGENT_TIERING = 7; - - private static $valueToName = [ - self::UNSPECIFIED => 'UNSPECIFIED', - self::ALL_SUPPORTED_CLASSES => 'ALL_SUPPORTED_CLASSES', - self::STANDARD => 'STANDARD', - self::STANDARD_INFREQUENT_ACCESS => 'STANDARD_INFREQUENT_ACCESS', - self::GLACIER_INSTANT_RETRIEVAL => 'GLACIER_INSTANT_RETRIEVAL', - self::INTELLIGENT_TIERING => 'INTELLIGENT_TIERING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ObjectStorageClass::class, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions_ObjectStorageClass::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php deleted file mode 100644 index 6ad03965c916..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AmazonS3BucketRegex.php +++ /dev/null @@ -1,115 +0,0 @@ -google.privacy.dlp.v2.AmazonS3BucketRegex - */ -class AmazonS3BucketRegex extends \Google\Protobuf\Internal\Message -{ - /** - * The AWS account regex. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1; - */ - protected $aws_account_regex = null; - /** - * Optional. Regex to test the bucket name against. - * If empty, all buckets match. - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bucket_name_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AwsAccountRegex $aws_account_regex - * The AWS account regex. - * @type string $bucket_name_regex - * Optional. Regex to test the bucket name against. - * If empty, all buckets match. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The AWS account regex. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1; - * @return \Google\Cloud\Dlp\V2\AwsAccountRegex|null - */ - public function getAwsAccountRegex() - { - return $this->aws_account_regex; - } - - public function hasAwsAccountRegex() - { - return isset($this->aws_account_regex); - } - - public function clearAwsAccountRegex() - { - unset($this->aws_account_regex); - } - - /** - * The AWS account regex. - * - * Generated from protobuf field .google.privacy.dlp.v2.AwsAccountRegex aws_account_regex = 1; - * @param \Google\Cloud\Dlp\V2\AwsAccountRegex $var - * @return $this - */ - public function setAwsAccountRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AwsAccountRegex::class); - $this->aws_account_regex = $var; - - return $this; - } - - /** - * Optional. Regex to test the bucket name against. - * If empty, all buckets match. - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBucketNameRegex() - { - return $this->bucket_name_regex; - } - - /** - * Optional. Regex to test the bucket name against. - * If empty, all buckets match. - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBucketNameRegex($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php deleted file mode 100644 index f61ea6917a50..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails.php +++ /dev/null @@ -1,372 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails - */ -class AnalyzeDataSourceRiskDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric requested_privacy_metric = 1; - */ - protected $requested_privacy_metric = null; - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable requested_source_table = 2; - */ - protected $requested_source_table = null; - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions requested_options = 10; - */ - protected $requested_options = null; - protected $result; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PrivacyMetric $requested_privacy_metric - * Privacy metric to compute. - * @type \Google\Cloud\Dlp\V2\BigQueryTable $requested_source_table - * Input dataset to compute metrics over. - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult $numerical_stats_result - * Numerical stats result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult $categorical_stats_result - * Categorical stats result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult $k_anonymity_result - * K-anonymity result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult $l_diversity_result - * L-divesity result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult $k_map_estimation_result - * K-map result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult $delta_presence_estimation_result - * Delta-presence result - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions $requested_options - * The configuration used for this job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric requested_privacy_metric = 1; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric|null - */ - public function getRequestedPrivacyMetric() - { - return $this->requested_privacy_metric; - } - - public function hasRequestedPrivacyMetric() - { - return isset($this->requested_privacy_metric); - } - - public function clearRequestedPrivacyMetric() - { - unset($this->requested_privacy_metric); - } - - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric requested_privacy_metric = 1; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric $var - * @return $this - */ - public function setRequestedPrivacyMetric($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric::class); - $this->requested_privacy_metric = $var; - - return $this; - } - - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable requested_source_table = 2; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getRequestedSourceTable() - { - return $this->requested_source_table; - } - - public function hasRequestedSourceTable() - { - return isset($this->requested_source_table); - } - - public function clearRequestedSourceTable() - { - unset($this->requested_source_table); - } - - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable requested_source_table = 2; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setRequestedSourceTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->requested_source_table = $var; - - return $this; - } - - /** - * Numerical stats result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult numerical_stats_result = 3; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult|null - */ - public function getNumericalStatsResult() - { - return $this->readOneof(3); - } - - public function hasNumericalStatsResult() - { - return $this->hasOneof(3); - } - - /** - * Numerical stats result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult numerical_stats_result = 3; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult $var - * @return $this - */ - public function setNumericalStatsResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\NumericalStatsResult::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Categorical stats result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult categorical_stats_result = 4; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult|null - */ - public function getCategoricalStatsResult() - { - return $this->readOneof(4); - } - - public function hasCategoricalStatsResult() - { - return $this->hasOneof(4); - } - - /** - * Categorical stats result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult categorical_stats_result = 4; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult $var - * @return $this - */ - public function setCategoricalStatsResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * K-anonymity result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult k_anonymity_result = 5; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult|null - */ - public function getKAnonymityResult() - { - return $this->readOneof(5); - } - - public function hasKAnonymityResult() - { - return $this->hasOneof(5); - } - - /** - * K-anonymity result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult k_anonymity_result = 5; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult $var - * @return $this - */ - public function setKAnonymityResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * L-divesity result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult l_diversity_result = 6; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult|null - */ - public function getLDiversityResult() - { - return $this->readOneof(6); - } - - public function hasLDiversityResult() - { - return $this->hasOneof(6); - } - - /** - * L-divesity result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult l_diversity_result = 6; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult $var - * @return $this - */ - public function setLDiversityResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * K-map result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult k_map_estimation_result = 7; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult|null - */ - public function getKMapEstimationResult() - { - return $this->readOneof(7); - } - - public function hasKMapEstimationResult() - { - return $this->hasOneof(7); - } - - /** - * K-map result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult k_map_estimation_result = 7; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult $var - * @return $this - */ - public function setKMapEstimationResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Delta-presence result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult delta_presence_estimation_result = 9; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult|null - */ - public function getDeltaPresenceEstimationResult() - { - return $this->readOneof(9); - } - - public function hasDeltaPresenceEstimationResult() - { - return $this->hasOneof(9); - } - - /** - * Delta-presence result - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult delta_presence_estimation_result = 9; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult $var - * @return $this - */ - public function setDeltaPresenceEstimationResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions requested_options = 10; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions|null - */ - public function getRequestedOptions() - { - return $this->requested_options; - } - - public function hasRequestedOptions() - { - return isset($this->requested_options); - } - - public function clearRequestedOptions() - { - unset($this->requested_options); - } - - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions requested_options = 10; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions $var - * @return $this - */ - public function setRequestedOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\RequestedRiskAnalysisOptions::class); - $this->requested_options = $var; - - return $this; - } - - /** - * @return string - */ - public function getResult() - { - return $this->whichOneof("result"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php deleted file mode 100644 index d052e08ae603..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult.php +++ /dev/null @@ -1,70 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult - */ -class CategoricalStatsResult extends \Google\Protobuf\Internal\Message -{ - /** - * Histogram of value frequencies in the column. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; - */ - private $value_frequency_histogram_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $value_frequency_histogram_buckets - * Histogram of value frequencies in the column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Histogram of value frequencies in the column. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValueFrequencyHistogramBuckets() - { - return $this->value_frequency_histogram_buckets; - } - - /** - * Histogram of value frequencies in the column. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket value_frequency_histogram_buckets = 5; - * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValueFrequencyHistogramBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\CategoricalStatsResult\CategoricalStatsHistogramBucket::class); - $this->value_frequency_histogram_buckets = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CategoricalStatsResult::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_CategoricalStatsResult::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php deleted file mode 100644 index a815c81eb646..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/CategoricalStatsResult/CategoricalStatsHistogramBucket.php +++ /dev/null @@ -1,210 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.CategoricalStatsResult.CategoricalStatsHistogramBucket - */ -class CategoricalStatsHistogramBucket extends \Google\Protobuf\Internal\Message -{ - /** - * Lower bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_lower_bound = 1; - */ - protected $value_frequency_lower_bound = 0; - /** - * Upper bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_upper_bound = 2; - */ - protected $value_frequency_upper_bound = 0; - /** - * Total number of values in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - */ - protected $bucket_size = 0; - /** - * Sample of value frequencies in this bucket. The total number of - * values returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency bucket_values = 4; - */ - private $bucket_values; - /** - * Total number of distinct values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - */ - protected $bucket_value_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $value_frequency_lower_bound - * Lower bound on the value frequency of the values in this bucket. - * @type int|string $value_frequency_upper_bound - * Upper bound on the value frequency of the values in this bucket. - * @type int|string $bucket_size - * Total number of values in this bucket. - * @type array<\Google\Cloud\Dlp\V2\ValueFrequency>|\Google\Protobuf\Internal\RepeatedField $bucket_values - * Sample of value frequencies in this bucket. The total number of - * values returned per bucket is capped at 20. - * @type int|string $bucket_value_count - * Total number of distinct values in this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Lower bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_lower_bound = 1; - * @return int|string - */ - public function getValueFrequencyLowerBound() - { - return $this->value_frequency_lower_bound; - } - - /** - * Lower bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_lower_bound = 1; - * @param int|string $var - * @return $this - */ - public function setValueFrequencyLowerBound($var) - { - GPBUtil::checkInt64($var); - $this->value_frequency_lower_bound = $var; - - return $this; - } - - /** - * Upper bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_upper_bound = 2; - * @return int|string - */ - public function getValueFrequencyUpperBound() - { - return $this->value_frequency_upper_bound; - } - - /** - * Upper bound on the value frequency of the values in this bucket. - * - * Generated from protobuf field int64 value_frequency_upper_bound = 2; - * @param int|string $var - * @return $this - */ - public function setValueFrequencyUpperBound($var) - { - GPBUtil::checkInt64($var); - $this->value_frequency_upper_bound = $var; - - return $this; - } - - /** - * Total number of values in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @return int|string - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Total number of values in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @param int|string $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkInt64($var); - $this->bucket_size = $var; - - return $this; - } - - /** - * Sample of value frequencies in this bucket. The total number of - * values returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency bucket_values = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBucketValues() - { - return $this->bucket_values; - } - - /** - * Sample of value frequencies in this bucket. The total number of - * values returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency bucket_values = 4; - * @param array<\Google\Cloud\Dlp\V2\ValueFrequency>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBucketValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ValueFrequency::class); - $this->bucket_values = $arr; - - return $this; - } - - /** - * Total number of distinct values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @return int|string - */ - public function getBucketValueCount() - { - return $this->bucket_value_count; - } - - /** - * Total number of distinct values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @param int|string $var - * @return $this - */ - public function setBucketValueCount($var) - { - GPBUtil::checkInt64($var); - $this->bucket_value_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CategoricalStatsHistogramBucket::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_CategoricalStatsResult_CategoricalStatsHistogramBucket::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php deleted file mode 100644 index 4ac13f1966a8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult.php +++ /dev/null @@ -1,99 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult - */ -class DeltaPresenceEstimationResult extends \Google\Protobuf\Internal\Message -{ - /** - * The intervals [min_probability, max_probability) do not overlap. If a - * value doesn't correspond to any such interval, the associated frequency - * is zero. For example, the following records: - * {min_probability: 0, max_probability: 0.1, frequency: 17} - * {min_probability: 0.2, max_probability: 0.3, frequency: 42} - * {min_probability: 0.3, max_probability: 0.4, frequency: 99} - * mean that there are no record with an estimated probability in [0.1, 0.2) - * nor larger or equal to 0.4. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; - */ - private $delta_presence_estimation_histogram; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $delta_presence_estimation_histogram - * The intervals [min_probability, max_probability) do not overlap. If a - * value doesn't correspond to any such interval, the associated frequency - * is zero. For example, the following records: - * {min_probability: 0, max_probability: 0.1, frequency: 17} - * {min_probability: 0.2, max_probability: 0.3, frequency: 42} - * {min_probability: 0.3, max_probability: 0.4, frequency: 99} - * mean that there are no record with an estimated probability in [0.1, 0.2) - * nor larger or equal to 0.4. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The intervals [min_probability, max_probability) do not overlap. If a - * value doesn't correspond to any such interval, the associated frequency - * is zero. For example, the following records: - * {min_probability: 0, max_probability: 0.1, frequency: 17} - * {min_probability: 0.2, max_probability: 0.3, frequency: 42} - * {min_probability: 0.3, max_probability: 0.4, frequency: 99} - * mean that there are no record with an estimated probability in [0.1, 0.2) - * nor larger or equal to 0.4. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeltaPresenceEstimationHistogram() - { - return $this->delta_presence_estimation_histogram; - } - - /** - * The intervals [min_probability, max_probability) do not overlap. If a - * value doesn't correspond to any such interval, the associated frequency - * is zero. For example, the following records: - * {min_probability: 0, max_probability: 0.1, frequency: 17} - * {min_probability: 0.2, max_probability: 0.3, frequency: 42} - * {min_probability: 0.3, max_probability: 0.4, frequency: 99} - * mean that there are no record with an estimated probability in [0.1, 0.2) - * nor larger or equal to 0.4. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket delta_presence_estimation_histogram = 1; - * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeltaPresenceEstimationHistogram($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationHistogramBucket::class); - $this->delta_presence_estimation_histogram = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DeltaPresenceEstimationResult::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php deleted file mode 100644 index 2d50a7c114c1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationHistogramBucket.php +++ /dev/null @@ -1,218 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationHistogramBucket - */ -class DeltaPresenceEstimationHistogramBucket extends \Google\Protobuf\Internal\Message -{ - /** - * Between 0 and 1. - * - * Generated from protobuf field double min_probability = 1; - */ - protected $min_probability = 0.0; - /** - * Always greater than or equal to min_probability. - * - * Generated from protobuf field double max_probability = 2; - */ - protected $max_probability = 0.0; - /** - * Number of records within these probability bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - */ - protected $bucket_size = 0; - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues bucket_values = 6; - */ - private $bucket_values; - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - */ - protected $bucket_value_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $min_probability - * Between 0 and 1. - * @type float $max_probability - * Always greater than or equal to min_probability. - * @type int|string $bucket_size - * Number of records within these probability bounds. - * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues>|\Google\Protobuf\Internal\RepeatedField $bucket_values - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * @type int|string $bucket_value_count - * Total number of distinct quasi-identifier tuple values in this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Between 0 and 1. - * - * Generated from protobuf field double min_probability = 1; - * @return float - */ - public function getMinProbability() - { - return $this->min_probability; - } - - /** - * Between 0 and 1. - * - * Generated from protobuf field double min_probability = 1; - * @param float $var - * @return $this - */ - public function setMinProbability($var) - { - GPBUtil::checkDouble($var); - $this->min_probability = $var; - - return $this; - } - - /** - * Always greater than or equal to min_probability. - * - * Generated from protobuf field double max_probability = 2; - * @return float - */ - public function getMaxProbability() - { - return $this->max_probability; - } - - /** - * Always greater than or equal to min_probability. - * - * Generated from protobuf field double max_probability = 2; - * @param float $var - * @return $this - */ - public function setMaxProbability($var) - { - GPBUtil::checkDouble($var); - $this->max_probability = $var; - - return $this; - } - - /** - * Number of records within these probability bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - * @return int|string - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Number of records within these probability bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - * @param int|string $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkInt64($var); - $this->bucket_size = $var; - - return $this; - } - - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues bucket_values = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBucketValues() - { - return $this->bucket_values; - } - - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues bucket_values = 6; - * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBucketValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\DeltaPresenceEstimationResult\DeltaPresenceEstimationQuasiIdValues::class); - $this->bucket_values = $arr; - - return $this; - } - - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - * @return int|string - */ - public function getBucketValueCount() - { - return $this->bucket_value_count; - } - - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - * @param int|string $var - * @return $this - */ - public function setBucketValueCount($var) - { - GPBUtil::checkInt64($var); - $this->bucket_value_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DeltaPresenceEstimationHistogramBucket::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationHistogramBucket::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php deleted file mode 100644 index 3af689322032..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/DeltaPresenceEstimationResult/DeltaPresenceEstimationQuasiIdValues.php +++ /dev/null @@ -1,132 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.DeltaPresenceEstimationResult.DeltaPresenceEstimationQuasiIdValues - */ -class DeltaPresenceEstimationQuasiIdValues extends \Google\Protobuf\Internal\Message -{ - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - */ - private $quasi_ids_values; - /** - * The estimated probability that a given individual sharing these - * quasi-identifier values is in the dataset. This value, typically - * called δ, is the ratio between the number of records in the dataset - * with these quasi-identifier values, and the total number of individuals - * (inside *and* outside the dataset) with these quasi-identifier values. - * For example, if there are 15 individuals in the dataset who share the - * same quasi-identifier values, and an estimated 100 people in the entire - * population with these values, then δ is 0.15. - * - * Generated from protobuf field double estimated_probability = 2; - */ - protected $estimated_probability = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values - * The quasi-identifier values. - * @type float $estimated_probability - * The estimated probability that a given individual sharing these - * quasi-identifier values is in the dataset. This value, typically - * called δ, is the ratio between the number of records in the dataset - * with these quasi-identifier values, and the total number of individuals - * (inside *and* outside the dataset) with these quasi-identifier values. - * For example, if there are 15 individuals in the dataset who share the - * same quasi-identifier values, and an estimated 100 people in the entire - * population with these values, then δ is 0.15. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuasiIdsValues() - { - return $this->quasi_ids_values; - } - - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuasiIdsValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->quasi_ids_values = $arr; - - return $this; - } - - /** - * The estimated probability that a given individual sharing these - * quasi-identifier values is in the dataset. This value, typically - * called δ, is the ratio between the number of records in the dataset - * with these quasi-identifier values, and the total number of individuals - * (inside *and* outside the dataset) with these quasi-identifier values. - * For example, if there are 15 individuals in the dataset who share the - * same quasi-identifier values, and an estimated 100 people in the entire - * population with these values, then δ is 0.15. - * - * Generated from protobuf field double estimated_probability = 2; - * @return float - */ - public function getEstimatedProbability() - { - return $this->estimated_probability; - } - - /** - * The estimated probability that a given individual sharing these - * quasi-identifier values is in the dataset. This value, typically - * called δ, is the ratio between the number of records in the dataset - * with these quasi-identifier values, and the total number of individuals - * (inside *and* outside the dataset) with these quasi-identifier values. - * For example, if there are 15 individuals in the dataset who share the - * same quasi-identifier values, and an estimated 100 people in the entire - * population with these values, then δ is 0.15. - * - * Generated from protobuf field double estimated_probability = 2; - * @param float $var - * @return $this - */ - public function setEstimatedProbability($var) - { - GPBUtil::checkDouble($var); - $this->estimated_probability = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DeltaPresenceEstimationQuasiIdValues::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_DeltaPresenceEstimationResult_DeltaPresenceEstimationQuasiIdValues::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php deleted file mode 100644 index 3bdc61e513dc..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult.php +++ /dev/null @@ -1,70 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult - */ -class KAnonymityResult extends \Google\Protobuf\Internal\Message -{ - /** - * Histogram of k-anonymity equivalence classes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket equivalence_class_histogram_buckets = 5; - */ - private $equivalence_class_histogram_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $equivalence_class_histogram_buckets - * Histogram of k-anonymity equivalence classes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Histogram of k-anonymity equivalence classes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket equivalence_class_histogram_buckets = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEquivalenceClassHistogramBuckets() - { - return $this->equivalence_class_histogram_buckets; - } - - /** - * Histogram of k-anonymity equivalence classes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket equivalence_class_histogram_buckets = 5; - * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEquivalenceClassHistogramBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityHistogramBucket::class); - $this->equivalence_class_histogram_buckets = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KAnonymityResult::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_KAnonymityResult::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php deleted file mode 100644 index fd97e7fb3704..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityEquivalenceClass.php +++ /dev/null @@ -1,116 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass - */ -class KAnonymityEquivalenceClass extends \Google\Protobuf\Internal\Message -{ - /** - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. - * The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - */ - private $quasi_ids_values; - /** - * Size of the equivalence class, for example number of rows with the - * above set of values. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - */ - protected $equivalence_class_size = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. - * The order is always the same as the original request. - * @type int|string $equivalence_class_size - * Size of the equivalence class, for example number of rows with the - * above set of values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. - * The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuasiIdsValues() - { - return $this->quasi_ids_values; - } - - /** - * Set of values defining the equivalence class. One value per - * quasi-identifier column in the original KAnonymity metric message. - * The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuasiIdsValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->quasi_ids_values = $arr; - - return $this; - } - - /** - * Size of the equivalence class, for example number of rows with the - * above set of values. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - * @return int|string - */ - public function getEquivalenceClassSize() - { - return $this->equivalence_class_size; - } - - /** - * Size of the equivalence class, for example number of rows with the - * above set of values. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - * @param int|string $var - * @return $this - */ - public function setEquivalenceClassSize($var) - { - GPBUtil::checkInt64($var); - $this->equivalence_class_size = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KAnonymityEquivalenceClass::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityEquivalenceClass::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php deleted file mode 100644 index 3dce3345ac27..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KAnonymityResult/KAnonymityHistogramBucket.php +++ /dev/null @@ -1,210 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityHistogramBucket - */ -class KAnonymityHistogramBucket extends \Google\Protobuf\Internal\Message -{ - /** - * Lower bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_lower_bound = 1; - */ - protected $equivalence_class_size_lower_bound = 0; - /** - * Upper bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_upper_bound = 2; - */ - protected $equivalence_class_size_upper_bound = 0; - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - */ - protected $bucket_size = 0; - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass bucket_values = 4; - */ - private $bucket_values; - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - */ - protected $bucket_value_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $equivalence_class_size_lower_bound - * Lower bound on the size of the equivalence classes in this bucket. - * @type int|string $equivalence_class_size_upper_bound - * Upper bound on the size of the equivalence classes in this bucket. - * @type int|string $bucket_size - * Total number of equivalence classes in this bucket. - * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass>|\Google\Protobuf\Internal\RepeatedField $bucket_values - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * @type int|string $bucket_value_count - * Total number of distinct equivalence classes in this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Lower bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_lower_bound = 1; - * @return int|string - */ - public function getEquivalenceClassSizeLowerBound() - { - return $this->equivalence_class_size_lower_bound; - } - - /** - * Lower bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_lower_bound = 1; - * @param int|string $var - * @return $this - */ - public function setEquivalenceClassSizeLowerBound($var) - { - GPBUtil::checkInt64($var); - $this->equivalence_class_size_lower_bound = $var; - - return $this; - } - - /** - * Upper bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_upper_bound = 2; - * @return int|string - */ - public function getEquivalenceClassSizeUpperBound() - { - return $this->equivalence_class_size_upper_bound; - } - - /** - * Upper bound on the size of the equivalence classes in this bucket. - * - * Generated from protobuf field int64 equivalence_class_size_upper_bound = 2; - * @param int|string $var - * @return $this - */ - public function setEquivalenceClassSizeUpperBound($var) - { - GPBUtil::checkInt64($var); - $this->equivalence_class_size_upper_bound = $var; - - return $this; - } - - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @return int|string - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @param int|string $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkInt64($var); - $this->bucket_size = $var; - - return $this; - } - - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass bucket_values = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBucketValues() - { - return $this->bucket_values; - } - - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KAnonymityResult.KAnonymityEquivalenceClass bucket_values = 4; - * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBucketValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KAnonymityResult\KAnonymityEquivalenceClass::class); - $this->bucket_values = $arr; - - return $this; - } - - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @return int|string - */ - public function getBucketValueCount() - { - return $this->bucket_value_count; - } - - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @param int|string $var - * @return $this - */ - public function setBucketValueCount($var) - { - GPBUtil::checkInt64($var); - $this->bucket_value_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KAnonymityHistogramBucket::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_KAnonymityResult_KAnonymityHistogramBucket::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php deleted file mode 100644 index a100b0ca2d17..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult.php +++ /dev/null @@ -1,99 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult - */ -class KMapEstimationResult extends \Google\Protobuf\Internal\Message -{ - /** - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: - * {min_anonymity: 1, max_anonymity: 1, frequency: 17} - * {min_anonymity: 2, max_anonymity: 3, frequency: 42} - * {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket k_map_estimation_histogram = 1; - */ - private $k_map_estimation_histogram; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $k_map_estimation_histogram - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: - * {min_anonymity: 1, max_anonymity: 1, frequency: 17} - * {min_anonymity: 2, max_anonymity: 3, frequency: 42} - * {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: - * {min_anonymity: 1, max_anonymity: 1, frequency: 17} - * {min_anonymity: 2, max_anonymity: 3, frequency: 42} - * {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket k_map_estimation_histogram = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getKMapEstimationHistogram() - { - return $this->k_map_estimation_histogram; - } - - /** - * The intervals [min_anonymity, max_anonymity] do not overlap. If a value - * doesn't correspond to any such interval, the associated frequency is - * zero. For example, the following records: - * {min_anonymity: 1, max_anonymity: 1, frequency: 17} - * {min_anonymity: 2, max_anonymity: 3, frequency: 42} - * {min_anonymity: 5, max_anonymity: 10, frequency: 99} - * mean that there are no record with an estimated anonymity of 4, 5, or - * larger than 10. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket k_map_estimation_histogram = 1; - * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setKMapEstimationHistogram($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationHistogramBucket::class); - $this->k_map_estimation_histogram = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KMapEstimationResult::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_KMapEstimationResult::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php deleted file mode 100644 index 1be3e59cf31b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationHistogramBucket.php +++ /dev/null @@ -1,217 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationHistogramBucket - */ -class KMapEstimationHistogramBucket extends \Google\Protobuf\Internal\Message -{ - /** - * Always positive. - * - * Generated from protobuf field int64 min_anonymity = 1; - */ - protected $min_anonymity = 0; - /** - * Always greater than or equal to min_anonymity. - * - * Generated from protobuf field int64 max_anonymity = 2; - */ - protected $max_anonymity = 0; - /** - * Number of records within these anonymity bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - */ - protected $bucket_size = 0; - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues bucket_values = 6; - */ - private $bucket_values; - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - */ - protected $bucket_value_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $min_anonymity - * Always positive. - * @type int|string $max_anonymity - * Always greater than or equal to min_anonymity. - * @type int|string $bucket_size - * Number of records within these anonymity bounds. - * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues>|\Google\Protobuf\Internal\RepeatedField $bucket_values - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * @type int|string $bucket_value_count - * Total number of distinct quasi-identifier tuple values in this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Always positive. - * - * Generated from protobuf field int64 min_anonymity = 1; - * @return int|string - */ - public function getMinAnonymity() - { - return $this->min_anonymity; - } - - /** - * Always positive. - * - * Generated from protobuf field int64 min_anonymity = 1; - * @param int|string $var - * @return $this - */ - public function setMinAnonymity($var) - { - GPBUtil::checkInt64($var); - $this->min_anonymity = $var; - - return $this; - } - - /** - * Always greater than or equal to min_anonymity. - * - * Generated from protobuf field int64 max_anonymity = 2; - * @return int|string - */ - public function getMaxAnonymity() - { - return $this->max_anonymity; - } - - /** - * Always greater than or equal to min_anonymity. - * - * Generated from protobuf field int64 max_anonymity = 2; - * @param int|string $var - * @return $this - */ - public function setMaxAnonymity($var) - { - GPBUtil::checkInt64($var); - $this->max_anonymity = $var; - - return $this; - } - - /** - * Number of records within these anonymity bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - * @return int|string - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Number of records within these anonymity bounds. - * - * Generated from protobuf field int64 bucket_size = 5; - * @param int|string $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkInt64($var); - $this->bucket_size = $var; - - return $this; - } - - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues bucket_values = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBucketValues() - { - return $this->bucket_values; - } - - /** - * Sample of quasi-identifier tuple values in this bucket. The total - * number of classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues bucket_values = 6; - * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBucketValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\KMapEstimationResult\KMapEstimationQuasiIdValues::class); - $this->bucket_values = $arr; - - return $this; - } - - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - * @return int|string - */ - public function getBucketValueCount() - { - return $this->bucket_value_count; - } - - /** - * Total number of distinct quasi-identifier tuple values in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 7; - * @param int|string $var - * @return $this - */ - public function setBucketValueCount($var) - { - GPBUtil::checkInt64($var); - $this->bucket_value_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KMapEstimationHistogramBucket::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationHistogramBucket::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php deleted file mode 100644 index abdb15fe761d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/KMapEstimationResult/KMapEstimationQuasiIdValues.php +++ /dev/null @@ -1,104 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.KMapEstimationResult.KMapEstimationQuasiIdValues - */ -class KMapEstimationQuasiIdValues extends \Google\Protobuf\Internal\Message -{ - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - */ - private $quasi_ids_values; - /** - * The estimated anonymity for these quasi-identifier values. - * - * Generated from protobuf field int64 estimated_anonymity = 2; - */ - protected $estimated_anonymity = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values - * The quasi-identifier values. - * @type int|string $estimated_anonymity - * The estimated anonymity for these quasi-identifier values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuasiIdsValues() - { - return $this->quasi_ids_values; - } - - /** - * The quasi-identifier values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuasiIdsValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->quasi_ids_values = $arr; - - return $this; - } - - /** - * The estimated anonymity for these quasi-identifier values. - * - * Generated from protobuf field int64 estimated_anonymity = 2; - * @return int|string - */ - public function getEstimatedAnonymity() - { - return $this->estimated_anonymity; - } - - /** - * The estimated anonymity for these quasi-identifier values. - * - * Generated from protobuf field int64 estimated_anonymity = 2; - * @param int|string $var - * @return $this - */ - public function setEstimatedAnonymity($var) - { - GPBUtil::checkInt64($var); - $this->estimated_anonymity = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KMapEstimationQuasiIdValues::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_KMapEstimationResult_KMapEstimationQuasiIdValues::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php deleted file mode 100644 index eb7cd5fd1392..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult.php +++ /dev/null @@ -1,70 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult - */ -class LDiversityResult extends \Google\Protobuf\Internal\Message -{ - /** - * Histogram of l-diversity equivalence class sensitive value frequencies. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; - */ - private $sensitive_value_frequency_histogram_buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $sensitive_value_frequency_histogram_buckets - * Histogram of l-diversity equivalence class sensitive value frequencies. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Histogram of l-diversity equivalence class sensitive value frequencies. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSensitiveValueFrequencyHistogramBuckets() - { - return $this->sensitive_value_frequency_histogram_buckets; - } - - /** - * Histogram of l-diversity equivalence class sensitive value frequencies. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket sensitive_value_frequency_histogram_buckets = 5; - * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSensitiveValueFrequencyHistogramBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityHistogramBucket::class); - $this->sensitive_value_frequency_histogram_buckets = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LDiversityResult::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_LDiversityResult::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php deleted file mode 100644 index 7b8f0fcf1822..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityEquivalenceClass.php +++ /dev/null @@ -1,176 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass - */ -class LDiversityEquivalenceClass extends \Google\Protobuf\Internal\Message -{ - /** - * Quasi-identifier values defining the k-anonymity equivalence - * class. The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - */ - private $quasi_ids_values; - /** - * Size of the k-anonymity equivalence class. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - */ - protected $equivalence_class_size = 0; - /** - * Number of distinct sensitive values in this equivalence class. - * - * Generated from protobuf field int64 num_distinct_sensitive_values = 3; - */ - protected $num_distinct_sensitive_values = 0; - /** - * Estimated frequencies of top sensitive values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency top_sensitive_values = 4; - */ - private $top_sensitive_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $quasi_ids_values - * Quasi-identifier values defining the k-anonymity equivalence - * class. The order is always the same as the original request. - * @type int|string $equivalence_class_size - * Size of the k-anonymity equivalence class. - * @type int|string $num_distinct_sensitive_values - * Number of distinct sensitive values in this equivalence class. - * @type array<\Google\Cloud\Dlp\V2\ValueFrequency>|\Google\Protobuf\Internal\RepeatedField $top_sensitive_values - * Estimated frequencies of top sensitive values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Quasi-identifier values defining the k-anonymity equivalence - * class. The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuasiIdsValues() - { - return $this->quasi_ids_values; - } - - /** - * Quasi-identifier values defining the k-anonymity equivalence - * class. The order is always the same as the original request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quasi_ids_values = 1; - * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuasiIdsValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->quasi_ids_values = $arr; - - return $this; - } - - /** - * Size of the k-anonymity equivalence class. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - * @return int|string - */ - public function getEquivalenceClassSize() - { - return $this->equivalence_class_size; - } - - /** - * Size of the k-anonymity equivalence class. - * - * Generated from protobuf field int64 equivalence_class_size = 2; - * @param int|string $var - * @return $this - */ - public function setEquivalenceClassSize($var) - { - GPBUtil::checkInt64($var); - $this->equivalence_class_size = $var; - - return $this; - } - - /** - * Number of distinct sensitive values in this equivalence class. - * - * Generated from protobuf field int64 num_distinct_sensitive_values = 3; - * @return int|string - */ - public function getNumDistinctSensitiveValues() - { - return $this->num_distinct_sensitive_values; - } - - /** - * Number of distinct sensitive values in this equivalence class. - * - * Generated from protobuf field int64 num_distinct_sensitive_values = 3; - * @param int|string $var - * @return $this - */ - public function setNumDistinctSensitiveValues($var) - { - GPBUtil::checkInt64($var); - $this->num_distinct_sensitive_values = $var; - - return $this; - } - - /** - * Estimated frequencies of top sensitive values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency top_sensitive_values = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTopSensitiveValues() - { - return $this->top_sensitive_values; - } - - /** - * Estimated frequencies of top sensitive values. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ValueFrequency top_sensitive_values = 4; - * @param array<\Google\Cloud\Dlp\V2\ValueFrequency>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTopSensitiveValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ValueFrequency::class); - $this->top_sensitive_values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LDiversityEquivalenceClass::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityEquivalenceClass::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php deleted file mode 100644 index 6c7082628ea1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/LDiversityResult/LDiversityHistogramBucket.php +++ /dev/null @@ -1,218 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityHistogramBucket - */ -class LDiversityHistogramBucket extends \Google\Protobuf\Internal\Message -{ - /** - * Lower bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_lower_bound = 1; - */ - protected $sensitive_value_frequency_lower_bound = 0; - /** - * Upper bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_upper_bound = 2; - */ - protected $sensitive_value_frequency_upper_bound = 0; - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - */ - protected $bucket_size = 0; - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass bucket_values = 4; - */ - private $bucket_values; - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - */ - protected $bucket_value_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $sensitive_value_frequency_lower_bound - * Lower bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * @type int|string $sensitive_value_frequency_upper_bound - * Upper bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * @type int|string $bucket_size - * Total number of equivalence classes in this bucket. - * @type array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass>|\Google\Protobuf\Internal\RepeatedField $bucket_values - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * @type int|string $bucket_value_count - * Total number of distinct equivalence classes in this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Lower bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_lower_bound = 1; - * @return int|string - */ - public function getSensitiveValueFrequencyLowerBound() - { - return $this->sensitive_value_frequency_lower_bound; - } - - /** - * Lower bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_lower_bound = 1; - * @param int|string $var - * @return $this - */ - public function setSensitiveValueFrequencyLowerBound($var) - { - GPBUtil::checkInt64($var); - $this->sensitive_value_frequency_lower_bound = $var; - - return $this; - } - - /** - * Upper bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_upper_bound = 2; - * @return int|string - */ - public function getSensitiveValueFrequencyUpperBound() - { - return $this->sensitive_value_frequency_upper_bound; - } - - /** - * Upper bound on the sensitive value frequencies of the equivalence - * classes in this bucket. - * - * Generated from protobuf field int64 sensitive_value_frequency_upper_bound = 2; - * @param int|string $var - * @return $this - */ - public function setSensitiveValueFrequencyUpperBound($var) - { - GPBUtil::checkInt64($var); - $this->sensitive_value_frequency_upper_bound = $var; - - return $this; - } - - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @return int|string - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Total number of equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_size = 3; - * @param int|string $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkInt64($var); - $this->bucket_size = $var; - - return $this; - } - - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass bucket_values = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBucketValues() - { - return $this->bucket_values; - } - - /** - * Sample of equivalence classes in this bucket. The total number of - * classes returned per bucket is capped at 20. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.LDiversityResult.LDiversityEquivalenceClass bucket_values = 4; - * @param array<\Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBucketValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails\LDiversityResult\LDiversityEquivalenceClass::class); - $this->bucket_values = $arr; - - return $this; - } - - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @return int|string - */ - public function getBucketValueCount() - { - return $this->bucket_value_count; - } - - /** - * Total number of distinct equivalence classes in this bucket. - * - * Generated from protobuf field int64 bucket_value_count = 5; - * @param int|string $var - * @return $this - */ - public function setBucketValueCount($var) - { - GPBUtil::checkInt64($var); - $this->bucket_value_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LDiversityHistogramBucket::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_LDiversityResult_LDiversityHistogramBucket::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php deleted file mode 100644 index 46207acfa508..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/NumericalStatsResult.php +++ /dev/null @@ -1,162 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.NumericalStatsResult - */ -class NumericalStatsResult extends \Google\Protobuf\Internal\Message -{ - /** - * Minimum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min_value = 1; - */ - protected $min_value = null; - /** - * Maximum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max_value = 2; - */ - protected $max_value = null; - /** - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quantile_values = 4; - */ - private $quantile_values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value $min_value - * Minimum value appearing in the column. - * @type \Google\Cloud\Dlp\V2\Value $max_value - * Maximum value appearing in the column. - * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $quantile_values - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Minimum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min_value = 1; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getMinValue() - { - return $this->min_value; - } - - public function hasMinValue() - { - return isset($this->min_value); - } - - public function clearMinValue() - { - unset($this->min_value); - } - - /** - * Minimum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min_value = 1; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setMinValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->min_value = $var; - - return $this; - } - - /** - * Maximum value appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max_value = 2; - * @return \Google\Cloud\Dlp\V2\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 appearing in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max_value = 2; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setMaxValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->max_value = $var; - - return $this; - } - - /** - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quantile_values = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuantileValues() - { - return $this->quantile_values; - } - - /** - * List of 99 values that partition the set of field values into 100 equal - * sized buckets. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value quantile_values = 4; - * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuantileValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->quantile_values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NumericalStatsResult::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_NumericalStatsResult::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php deleted file mode 100644 index 3bcb2274cf7f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AnalyzeDataSourceRiskDetails/RequestedRiskAnalysisOptions.php +++ /dev/null @@ -1,80 +0,0 @@ -google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails.RequestedRiskAnalysisOptions - */ -class RequestedRiskAnalysisOptions extends \Google\Protobuf\Internal\Message -{ - /** - * The job config for the risk job. - * - * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig job_config = 1; - */ - protected $job_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $job_config - * The job config for the risk job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The job config for the risk job. - * - * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig job_config = 1; - * @return \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig|null - */ - public function getJobConfig() - { - return $this->job_config; - } - - public function hasJobConfig() - { - return isset($this->job_config); - } - - public function clearJobConfig() - { - unset($this->job_config); - } - - /** - * The job config for the risk job. - * - * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig job_config = 1; - * @param \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $var - * @return $this - */ - public function setJobConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig::class); - $this->job_config = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RequestedRiskAnalysisOptions::class, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails_RequestedRiskAnalysisOptions::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php deleted file mode 100644 index 31359143b5ea..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccount.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.AwsAccount - */ -class AwsAccount extends \Google\Protobuf\Internal\Message -{ - /** - * Required. AWS account ID. - * - * Generated from protobuf field string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $account_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_id - * Required. AWS account ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. AWS account ID. - * - * Generated from protobuf field string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAccountId() - { - return $this->account_id; - } - - /** - * Required. AWS account ID. - * - * Generated from protobuf field string account_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAccountId($var) - { - GPBUtil::checkString($var, True); - $this->account_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php deleted file mode 100644 index 94fe40cd0f64..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/AwsAccountRegex.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.AwsAccountRegex - */ -class AwsAccountRegex extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Regex to test the AWS account ID against. - * If empty, all accounts match. - * - * Generated from protobuf field string account_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $account_id_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_id_regex - * Optional. Regex to test the AWS account ID against. - * If empty, all accounts match. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Regex to test the AWS account ID against. - * If empty, all accounts match. - * - * Generated from protobuf field string account_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAccountIdRegex() - { - return $this->account_id_regex; - } - - /** - * Optional. Regex to test the AWS account ID against. - * If empty, all accounts match. - * - * Generated from protobuf field string account_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAccountIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->account_id_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php deleted file mode 100644 index 6c568fa2188f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryDiscoveryTarget.php +++ /dev/null @@ -1,210 +0,0 @@ -google.privacy.dlp.v2.BigQueryDiscoveryTarget - */ -class BigQueryDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = null; - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions conditions = 2; - */ - protected $conditions = null; - protected $frequency; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter $filter - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions $conditions - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * @type \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence $cadence - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * @type \Google\Cloud\Dlp\V2\Disabled $disabled - * Tables that match this filter will not have profiles created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter::class); - $this->filter = $var; - - return $this; - } - - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions conditions = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions|null - */ - public function getConditions() - { - return $this->conditions; - } - - public function hasConditions() - { - return isset($this->conditions); - } - - public function clearConditions() - { - unset($this->conditions); - } - - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions conditions = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions::class); - $this->conditions = $var; - - return $this; - } - - /** - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryGenerationCadence cadence = 3; - * @return \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence|null - */ - public function getCadence() - { - return $this->readOneof(3); - } - - public function hasCadence() - { - return $this->hasOneof(3); - } - - /** - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryGenerationCadence cadence = 3; - * @param \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence $var - * @return $this - */ - public function setCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryGenerationCadence::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Tables that match this filter will not have profiles created. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; - * @return \Google\Cloud\Dlp\V2\Disabled|null - */ - public function getDisabled() - { - return $this->readOneof(4); - } - - public function hasDisabled() - { - return $this->hasOneof(4); - } - - /** - * Tables that match this filter will not have profiles created. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; - * @param \Google\Cloud\Dlp\V2\Disabled $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getFrequency() - { - return $this->whichOneof("frequency"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php deleted file mode 100644 index ff205ef48b1f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryField.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.BigQueryField - */ -class BigQueryField extends \Google\Protobuf\Internal\Message -{ - /** - * Source table of the field. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - */ - protected $table = null; - /** - * Designated field in the BigQuery table. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - */ - protected $field = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table - * Source table of the field. - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Designated field in the BigQuery table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Source table of the field. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTable() - { - return $this->table; - } - - public function hasTable() - { - return isset($this->table); - } - - public function clearTable() - { - unset($this->table); - } - - /** - * Source table of the field. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->table = $var; - - return $this; - } - - /** - * Designated field in the BigQuery table. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Designated field in the BigQuery table. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php deleted file mode 100644 index 142e075dda01..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryKey.php +++ /dev/null @@ -1,127 +0,0 @@ -google.privacy.dlp.v2.BigQueryKey - */ -class BigQueryKey extends \Google\Protobuf\Internal\Message -{ - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - */ - protected $table_reference = null; - /** - * Row number inferred at the time the table was scanned. This value is - * nondeterministic, cannot be queried, and may be null for inspection - * jobs. To locate findings within a table, specify - * `inspect_job.storage_config.big_query_options.identifying_fields` in - * `CreateDlpJobRequest`. - * - * Generated from protobuf field int64 row_number = 2; - */ - protected $row_number = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table_reference - * Complete BigQuery table reference. - * @type int|string $row_number - * Row number inferred at the time the table was scanned. This value is - * nondeterministic, cannot be queried, and may be null for inspection - * jobs. To locate findings within a table, specify - * `inspect_job.storage_config.big_query_options.identifying_fields` in - * `CreateDlpJobRequest`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTableReference() - { - return $this->table_reference; - } - - public function hasTableReference() - { - return isset($this->table_reference); - } - - public function clearTableReference() - { - unset($this->table_reference); - } - - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTableReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->table_reference = $var; - - return $this; - } - - /** - * Row number inferred at the time the table was scanned. This value is - * nondeterministic, cannot be queried, and may be null for inspection - * jobs. To locate findings within a table, specify - * `inspect_job.storage_config.big_query_options.identifying_fields` in - * `CreateDlpJobRequest`. - * - * Generated from protobuf field int64 row_number = 2; - * @return int|string - */ - public function getRowNumber() - { - return $this->row_number; - } - - /** - * Row number inferred at the time the table was scanned. This value is - * nondeterministic, cannot be queried, and may be null for inspection - * jobs. To locate findings within a table, specify - * `inspect_job.storage_config.big_query_options.identifying_fields` in - * `CreateDlpJobRequest`. - * - * Generated from protobuf field int64 row_number = 2; - * @param int|string $var - * @return $this - */ - public function setRowNumber($var) - { - GPBUtil::checkInt64($var); - $this->row_number = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php deleted file mode 100644 index 0886b43eaab5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions.php +++ /dev/null @@ -1,369 +0,0 @@ -google.privacy.dlp.v2.BigQueryOptions - */ -class BigQueryOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - */ - protected $table_reference = null; - /** - * Table fields that may uniquely identify a row within the table. When - * `actions.saveFindings.outputConfig.table` is specified, the values of - * columns specified here are available in the output table under - * `location.content_locations.record_location.record_key.id_values`. Nested - * fields such as `person.birthdate.year` are allowed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; - */ - private $identifying_fields; - /** - * Max number of rows to scan. If the table has more rows than this value, the - * rest of the rows are omitted. If not set, or if set to 0, all rows will be - * scanned. Only one of rows_limit and rows_limit_percent can be specified. - * Cannot be used in conjunction with TimespanConfig. - * - * Generated from protobuf field int64 rows_limit = 3; - */ - protected $rows_limit = 0; - /** - * Max percentage of rows to scan. The rest are omitted. The number of rows - * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and - * 100 means no limit. Defaults to 0. Only one of rows_limit and - * rows_limit_percent can be specified. Cannot be used in conjunction with - * TimespanConfig. - * Caution: A [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) - * is causing the `rowsLimitPercent` field to behave unexpectedly. We - * recommend using `rowsLimit` instead. - * - * Generated from protobuf field int32 rows_limit_percent = 6; - */ - protected $rows_limit_percent = 0; - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; - */ - protected $sample_method = 0; - /** - * References to fields excluded from scanning. This allows you to skip - * inspection of entire columns which you know have no findings. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId excluded_fields = 5; - */ - private $excluded_fields; - /** - * Limit scanning only to these fields. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId included_fields = 7; - */ - private $included_fields; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table_reference - * Complete BigQuery table reference. - * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $identifying_fields - * Table fields that may uniquely identify a row within the table. When - * `actions.saveFindings.outputConfig.table` is specified, the values of - * columns specified here are available in the output table under - * `location.content_locations.record_location.record_key.id_values`. Nested - * fields such as `person.birthdate.year` are allowed. - * @type int|string $rows_limit - * Max number of rows to scan. If the table has more rows than this value, the - * rest of the rows are omitted. If not set, or if set to 0, all rows will be - * scanned. Only one of rows_limit and rows_limit_percent can be specified. - * Cannot be used in conjunction with TimespanConfig. - * @type int $rows_limit_percent - * Max percentage of rows to scan. The rest are omitted. The number of rows - * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and - * 100 means no limit. Defaults to 0. Only one of rows_limit and - * rows_limit_percent can be specified. Cannot be used in conjunction with - * TimespanConfig. - * Caution: A [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) - * is causing the `rowsLimitPercent` field to behave unexpectedly. We - * recommend using `rowsLimit` instead. - * @type int $sample_method - * How to sample the data. - * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $excluded_fields - * References to fields excluded from scanning. This allows you to skip - * inspection of entire columns which you know have no findings. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $included_fields - * Limit scanning only to these fields. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTableReference() - { - return $this->table_reference; - } - - public function hasTableReference() - { - return isset($this->table_reference); - } - - public function clearTableReference() - { - unset($this->table_reference); - } - - /** - * Complete BigQuery table reference. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table_reference = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTableReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->table_reference = $var; - - return $this; - } - - /** - * Table fields that may uniquely identify a row within the table. When - * `actions.saveFindings.outputConfig.table` is specified, the values of - * columns specified here are available in the output table under - * `location.content_locations.record_location.record_key.id_values`. Nested - * fields such as `person.birthdate.year` are allowed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIdentifyingFields() - { - return $this->identifying_fields; - } - - /** - * Table fields that may uniquely identify a row within the table. When - * `actions.saveFindings.outputConfig.table` is specified, the values of - * columns specified here are available in the output table under - * `location.content_locations.record_location.record_key.id_values`. Nested - * fields such as `person.birthdate.year` are allowed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 2; - * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIdentifyingFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->identifying_fields = $arr; - - return $this; - } - - /** - * Max number of rows to scan. If the table has more rows than this value, the - * rest of the rows are omitted. If not set, or if set to 0, all rows will be - * scanned. Only one of rows_limit and rows_limit_percent can be specified. - * Cannot be used in conjunction with TimespanConfig. - * - * Generated from protobuf field int64 rows_limit = 3; - * @return int|string - */ - public function getRowsLimit() - { - return $this->rows_limit; - } - - /** - * Max number of rows to scan. If the table has more rows than this value, the - * rest of the rows are omitted. If not set, or if set to 0, all rows will be - * scanned. Only one of rows_limit and rows_limit_percent can be specified. - * Cannot be used in conjunction with TimespanConfig. - * - * Generated from protobuf field int64 rows_limit = 3; - * @param int|string $var - * @return $this - */ - public function setRowsLimit($var) - { - GPBUtil::checkInt64($var); - $this->rows_limit = $var; - - return $this; - } - - /** - * Max percentage of rows to scan. The rest are omitted. The number of rows - * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and - * 100 means no limit. Defaults to 0. Only one of rows_limit and - * rows_limit_percent can be specified. Cannot be used in conjunction with - * TimespanConfig. - * Caution: A [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) - * is causing the `rowsLimitPercent` field to behave unexpectedly. We - * recommend using `rowsLimit` instead. - * - * Generated from protobuf field int32 rows_limit_percent = 6; - * @return int - */ - public function getRowsLimitPercent() - { - return $this->rows_limit_percent; - } - - /** - * Max percentage of rows to scan. The rest are omitted. The number of rows - * scanned is rounded down. Must be between 0 and 100, inclusively. Both 0 and - * 100 means no limit. Defaults to 0. Only one of rows_limit and - * rows_limit_percent can be specified. Cannot be used in conjunction with - * TimespanConfig. - * Caution: A [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-sampling) - * is causing the `rowsLimitPercent` field to behave unexpectedly. We - * recommend using `rowsLimit` instead. - * - * Generated from protobuf field int32 rows_limit_percent = 6; - * @param int $var - * @return $this - */ - public function setRowsLimitPercent($var) - { - GPBUtil::checkInt32($var); - $this->rows_limit_percent = $var; - - return $this; - } - - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; - * @return int - */ - public function getSampleMethod() - { - return $this->sample_method; - } - - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions.SampleMethod sample_method = 4; - * @param int $var - * @return $this - */ - public function setSampleMethod($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\BigQueryOptions\SampleMethod::class); - $this->sample_method = $var; - - return $this; - } - - /** - * References to fields excluded from scanning. This allows you to skip - * inspection of entire columns which you know have no findings. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId excluded_fields = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludedFields() - { - return $this->excluded_fields; - } - - /** - * References to fields excluded from scanning. This allows you to skip - * inspection of entire columns which you know have no findings. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId excluded_fields = 5; - * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludedFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->excluded_fields = $arr; - - return $this; - } - - /** - * Limit scanning only to these fields. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId included_fields = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIncludedFields() - { - return $this->included_fields; - } - - /** - * Limit scanning only to these fields. - * When inspecting a table, we recommend that you inspect all columns. - * Otherwise, findings might be affected because hints from excluded columns - * will not be used. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId included_fields = 7; - * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIncludedFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->included_fields = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php deleted file mode 100644 index a62e95948378..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryOptions/SampleMethod.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.BigQueryOptions.SampleMethod - */ -class SampleMethod -{ - /** - * No sampling. - * - * Generated from protobuf enum SAMPLE_METHOD_UNSPECIFIED = 0; - */ - const SAMPLE_METHOD_UNSPECIFIED = 0; - /** - * Scan groups of rows in the order BigQuery provides (default). Multiple - * groups of rows may be scanned in parallel, so results may not appear in - * the same order the rows are read. - * - * Generated from protobuf enum TOP = 1; - */ - const TOP = 1; - /** - * Randomly pick groups of rows to scan. - * - * Generated from protobuf enum RANDOM_START = 2; - */ - const RANDOM_START = 2; - - private static $valueToName = [ - self::SAMPLE_METHOD_UNSPECIFIED => 'SAMPLE_METHOD_UNSPECIFIED', - self::TOP => 'TOP', - self::RANDOM_START => 'RANDOM_START', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SampleMethod::class, \Google\Cloud\Dlp\V2\BigQueryOptions_SampleMethod::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php deleted file mode 100644 index e0379d8b0e9a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegex.php +++ /dev/null @@ -1,143 +0,0 @@ -google.privacy.dlp.v2.BigQueryRegex - */ -class BigQueryRegex extends \Google\Protobuf\Internal\Message -{ - /** - * For organizations, if unset, will match all projects. Has no effect - * for data profile configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - */ - protected $project_id_regex = ''; - /** - * If unset, this property matches all datasets. - * - * Generated from protobuf field string dataset_id_regex = 2; - */ - protected $dataset_id_regex = ''; - /** - * If unset, this property matches all tables. - * - * Generated from protobuf field string table_id_regex = 3; - */ - protected $table_id_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id_regex - * For organizations, if unset, will match all projects. Has no effect - * for data profile configurations created within a project. - * @type string $dataset_id_regex - * If unset, this property matches all datasets. - * @type string $table_id_regex - * If unset, this property matches all tables. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * For organizations, if unset, will match all projects. Has no effect - * for data profile configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - * @return string - */ - public function getProjectIdRegex() - { - return $this->project_id_regex; - } - - /** - * For organizations, if unset, will match all projects. Has no effect - * for data profile configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - * @param string $var - * @return $this - */ - public function setProjectIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->project_id_regex = $var; - - return $this; - } - - /** - * If unset, this property matches all datasets. - * - * Generated from protobuf field string dataset_id_regex = 2; - * @return string - */ - public function getDatasetIdRegex() - { - return $this->dataset_id_regex; - } - - /** - * If unset, this property matches all datasets. - * - * Generated from protobuf field string dataset_id_regex = 2; - * @param string $var - * @return $this - */ - public function setDatasetIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id_regex = $var; - - return $this; - } - - /** - * If unset, this property matches all tables. - * - * Generated from protobuf field string table_id_regex = 3; - * @return string - */ - public function getTableIdRegex() - { - return $this->table_id_regex; - } - - /** - * If unset, this property matches all tables. - * - * Generated from protobuf field string table_id_regex = 3; - * @param string $var - * @return $this - */ - public function setTableIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->table_id_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php deleted file mode 100644 index ead1a639827f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryRegexes.php +++ /dev/null @@ -1,72 +0,0 @@ -google.privacy.dlp.v2.BigQueryRegexes - */ -class BigQueryRegexes extends \Google\Protobuf\Internal\Message -{ - /** - * A single BigQuery regular expression pattern to match against one or more - * tables, datasets, or projects that contain BigQuery tables. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryRegex patterns = 1; - */ - private $patterns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\BigQueryRegex>|\Google\Protobuf\Internal\RepeatedField $patterns - * A single BigQuery regular expression pattern to match against one or more - * tables, datasets, or projects that contain BigQuery tables. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A single BigQuery regular expression pattern to match against one or more - * tables, datasets, or projects that contain BigQuery tables. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryRegex patterns = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPatterns() - { - return $this->patterns; - } - - /** - * A single BigQuery regular expression pattern to match against one or more - * tables, datasets, or projects that contain BigQuery tables. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryRegex patterns = 1; - * @param array<\Google\Cloud\Dlp\V2\BigQueryRegex>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\BigQueryRegex::class); - $this->patterns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php deleted file mode 100644 index 331f232a4b09..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQuerySchemaModification.php +++ /dev/null @@ -1,63 +0,0 @@ -google.privacy.dlp.v2.BigQuerySchemaModification - */ -class BigQuerySchemaModification -{ - /** - * Unused - * - * Generated from protobuf enum SCHEMA_MODIFICATION_UNSPECIFIED = 0; - */ - const SCHEMA_MODIFICATION_UNSPECIFIED = 0; - /** - * Profiles should be regenerated when new columns are added to the table. - * Default. - * - * Generated from protobuf enum SCHEMA_NEW_COLUMNS = 1; - */ - const SCHEMA_NEW_COLUMNS = 1; - /** - * Profiles should be regenerated when columns are removed from the table. - * - * Generated from protobuf enum SCHEMA_REMOVED_COLUMNS = 2; - */ - const SCHEMA_REMOVED_COLUMNS = 2; - - private static $valueToName = [ - self::SCHEMA_MODIFICATION_UNSPECIFIED => 'SCHEMA_MODIFICATION_UNSPECIFIED', - self::SCHEMA_NEW_COLUMNS => 'SCHEMA_NEW_COLUMNS', - self::SCHEMA_REMOVED_COLUMNS => 'SCHEMA_REMOVED_COLUMNS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php deleted file mode 100644 index c3352043e7f5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTable.php +++ /dev/null @@ -1,143 +0,0 @@ -:.` or - * `..`. - * - * Generated from protobuf message google.privacy.dlp.v2.BigQueryTable - */ -class BigQueryTable extends \Google\Protobuf\Internal\Message -{ - /** - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - * - * Generated from protobuf field string project_id = 1; - */ - protected $project_id = ''; - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 2; - */ - protected $dataset_id = ''; - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 3; - */ - protected $table_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - * @type string $dataset_id - * Dataset ID of the table. - * @type string $table_id - * Name of the table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - * - * Generated from protobuf field string project_id = 1; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The Google Cloud Platform project ID of the project containing the table. - * If omitted, project ID is inferred from the API call. - * - * Generated from protobuf field string project_id = 1; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 2; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 2; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 3; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 3; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php deleted file mode 100644 index 6c26ad1fcc08..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableCollection.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.BigQueryTableCollection - */ -class BigQueryTableCollection extends \Google\Protobuf\Internal\Message -{ - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryRegexes $include_regexes - * A collection of regular expressions to match a BigQuery table against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A collection of regular expressions to match a BigQuery table against. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryRegexes include_regexes = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryRegexes|null - */ - public function getIncludeRegexes() - { - return $this->readOneof(1); - } - - public function hasIncludeRegexes() - { - return $this->hasOneof(1); - } - - /** - * A collection of regular expressions to match a BigQuery table against. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryRegexes include_regexes = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryRegexes $var - * @return $this - */ - public function setIncludeRegexes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryRegexes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php deleted file mode 100644 index c2f8c68bd6b5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableModification.php +++ /dev/null @@ -1,56 +0,0 @@ -google.privacy.dlp.v2.BigQueryTableModification - */ -class BigQueryTableModification -{ - /** - * Unused. - * - * Generated from protobuf enum TABLE_MODIFICATION_UNSPECIFIED = 0; - */ - const TABLE_MODIFICATION_UNSPECIFIED = 0; - /** - * A table will be considered modified when the last_modified_time from - * BigQuery has been updated. - * - * Generated from protobuf enum TABLE_MODIFIED_TIMESTAMP = 1; - */ - const TABLE_MODIFIED_TIMESTAMP = 1; - - private static $valueToName = [ - self::TABLE_MODIFICATION_UNSPECIFIED => 'TABLE_MODIFICATION_UNSPECIFIED', - self::TABLE_MODIFIED_TIMESTAMP => 'TABLE_MODIFIED_TIMESTAMP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php deleted file mode 100644 index 92406d4bd856..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableType.php +++ /dev/null @@ -1,69 +0,0 @@ -google.privacy.dlp.v2.BigQueryTableType - */ -class BigQueryTableType -{ - /** - * Unused. - * - * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_UNSPECIFIED = 0; - */ - const BIG_QUERY_TABLE_TYPE_UNSPECIFIED = 0; - /** - * A normal BigQuery table. - * - * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_TABLE = 1; - */ - const BIG_QUERY_TABLE_TYPE_TABLE = 1; - /** - * A table that references data stored in Cloud Storage. - * - * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2; - */ - const BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE = 2; - /** - * A snapshot of a BigQuery table. - * - * Generated from protobuf enum BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3; - */ - const BIG_QUERY_TABLE_TYPE_SNAPSHOT = 3; - - private static $valueToName = [ - self::BIG_QUERY_TABLE_TYPE_UNSPECIFIED => 'BIG_QUERY_TABLE_TYPE_UNSPECIFIED', - self::BIG_QUERY_TABLE_TYPE_TABLE => 'BIG_QUERY_TABLE_TYPE_TABLE', - self::BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE => 'BIG_QUERY_TABLE_TYPE_EXTERNAL_BIG_LAKE', - self::BIG_QUERY_TABLE_TYPE_SNAPSHOT => 'BIG_QUERY_TABLE_TYPE_SNAPSHOT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php deleted file mode 100644 index 28c960f7cf56..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypeCollection.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.BigQueryTableTypeCollection - */ -class BigQueryTableTypeCollection -{ - /** - * Unused. - * - * Generated from protobuf enum BIG_QUERY_COLLECTION_UNSPECIFIED = 0; - */ - const BIG_QUERY_COLLECTION_UNSPECIFIED = 0; - /** - * Automatically generate profiles for all tables, even if the table type is - * not yet fully supported for analysis. Profiles for unsupported tables will - * be generated with errors to indicate their partial support. When full - * support is added, the tables will automatically be profiled during the next - * scheduled run. - * - * Generated from protobuf enum BIG_QUERY_COLLECTION_ALL_TYPES = 1; - */ - const BIG_QUERY_COLLECTION_ALL_TYPES = 1; - /** - * Only those types fully supported will be profiled. Will expand - * automatically as Cloud DLP adds support for new table types. Unsupported - * table types will not have partial profiles generated. - * - * Generated from protobuf enum BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES = 2; - */ - const BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES = 2; - - private static $valueToName = [ - self::BIG_QUERY_COLLECTION_UNSPECIFIED => 'BIG_QUERY_COLLECTION_UNSPECIFIED', - self::BIG_QUERY_COLLECTION_ALL_TYPES => 'BIG_QUERY_COLLECTION_ALL_TYPES', - self::BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES => 'BIG_QUERY_COLLECTION_ONLY_SUPPORTED_TYPES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php deleted file mode 100644 index 3235dd3795d3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BigQueryTableTypes.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.BigQueryTableTypes - */ -class BigQueryTableTypes extends \Google\Protobuf\Internal\Message -{ - /** - * A set of BigQuery table types. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableType types = 1; - */ - private $types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $types - * A set of BigQuery table types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A set of BigQuery table types. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableType types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * A set of BigQuery table types. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableType types = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\BigQueryTableType::class); - $this->types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php deleted file mode 100644 index f0032c6eab48..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BoundingBox.php +++ /dev/null @@ -1,169 +0,0 @@ -google.privacy.dlp.v2.BoundingBox - */ -class BoundingBox extends \Google\Protobuf\Internal\Message -{ - /** - * Top coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 top = 1; - */ - protected $top = 0; - /** - * Left coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 left = 2; - */ - protected $left = 0; - /** - * Width of the bounding box in pixels. - * - * Generated from protobuf field int32 width = 3; - */ - protected $width = 0; - /** - * Height of the bounding box in pixels. - * - * Generated from protobuf field int32 height = 4; - */ - protected $height = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $top - * Top coordinate of the bounding box. (0,0) is upper left. - * @type int $left - * Left coordinate of the bounding box. (0,0) is upper left. - * @type int $width - * Width of the bounding box in pixels. - * @type int $height - * Height of the bounding box in pixels. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Top coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 top = 1; - * @return int - */ - public function getTop() - { - return $this->top; - } - - /** - * Top coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 top = 1; - * @param int $var - * @return $this - */ - public function setTop($var) - { - GPBUtil::checkInt32($var); - $this->top = $var; - - return $this; - } - - /** - * Left coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 left = 2; - * @return int - */ - public function getLeft() - { - return $this->left; - } - - /** - * Left coordinate of the bounding box. (0,0) is upper left. - * - * Generated from protobuf field int32 left = 2; - * @param int $var - * @return $this - */ - public function setLeft($var) - { - GPBUtil::checkInt32($var); - $this->left = $var; - - return $this; - } - - /** - * Width of the bounding box in pixels. - * - * Generated from protobuf field int32 width = 3; - * @return int - */ - public function getWidth() - { - return $this->width; - } - - /** - * Width of the bounding box in pixels. - * - * Generated from protobuf field int32 width = 3; - * @param int $var - * @return $this - */ - public function setWidth($var) - { - GPBUtil::checkInt32($var); - $this->width = $var; - - return $this; - } - - /** - * Height of the bounding box in pixels. - * - * Generated from protobuf field int32 height = 4; - * @return int - */ - public function getHeight() - { - return $this->height; - } - - /** - * Height of the bounding box in pixels. - * - * Generated from protobuf field int32 height = 4; - * @param int $var - * @return $this - */ - public function setHeight($var) - { - GPBUtil::checkInt32($var); - $this->height = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php deleted file mode 100644 index 0885bb2f144f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig.php +++ /dev/null @@ -1,76 +0,0 @@ - LOW, 31-65 -> MEDIUM, 66-100 -> HIGH. - * This can be used on data of type: number, long, string, timestamp. - * If the bound `Value` type differs from the type of data being transformed, we - * will first attempt converting the type of the data to be transformed to match - * the type of the bound before comparing. - * See - * https://cloud.google.com/sensitive-data-protection/docs/concepts-bucketing to - * learn more. - * - * Generated from protobuf message google.privacy.dlp.v2.BucketingConfig - */ -class BucketingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Set of buckets. Ranges must be non-overlapping. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1; - */ - private $buckets; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\BucketingConfig\Bucket>|\Google\Protobuf\Internal\RepeatedField $buckets - * Set of buckets. Ranges must be non-overlapping. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of buckets. Ranges must be non-overlapping. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBuckets() - { - return $this->buckets; - } - - /** - * Set of buckets. Ranges must be non-overlapping. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BucketingConfig.Bucket buckets = 1; - * @param array<\Google\Cloud\Dlp\V2\BucketingConfig\Bucket>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBuckets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\BucketingConfig\Bucket::class); - $this->buckets = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php deleted file mode 100644 index d70110e8ae4d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/BucketingConfig/Bucket.php +++ /dev/null @@ -1,172 +0,0 @@ -google.privacy.dlp.v2.BucketingConfig.Bucket - */ -class Bucket extends \Google\Protobuf\Internal\Message -{ - /** - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min = 1; - */ - protected $min = null; - /** - * Upper bound of the range, exclusive; type must match min. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max = 2; - */ - protected $max = null; - /** - * Required. Replacement value for this bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $replacement_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value $min - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - * @type \Google\Cloud\Dlp\V2\Value $max - * Upper bound of the range, exclusive; type must match min. - * @type \Google\Cloud\Dlp\V2\Value $replacement_value - * Required. Replacement value for this bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min = 1; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getMin() - { - return $this->min; - } - - public function hasMin() - { - return isset($this->min); - } - - public function clearMin() - { - unset($this->min); - } - - /** - * Lower bound of the range, inclusive. Type should be the same as max if - * used. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value min = 1; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setMin($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->min = $var; - - return $this; - } - - /** - * Upper bound of the range, exclusive; type must match min. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max = 2; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getMax() - { - return $this->max; - } - - public function hasMax() - { - return isset($this->max); - } - - public function clearMax() - { - unset($this->max); - } - - /** - * Upper bound of the range, exclusive; type must match min. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value max = 2; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setMax($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->max = $var; - - return $this; - } - - /** - * Required. Replacement value for this bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getReplacementValue() - { - return $this->replacement_value; - } - - public function hasReplacementValue() - { - return isset($this->replacement_value); - } - - public function clearReplacementValue() - { - unset($this->replacement_value); - } - - /** - * Required. Replacement value for this bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value replacement_value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setReplacementValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->replacement_value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Bucket::class, \Google\Cloud\Dlp\V2\BucketingConfig_Bucket::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php deleted file mode 100644 index afd0d936d3f5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.ByteContentItem - */ -class ByteContentItem extends \Google\Protobuf\Internal\Message -{ - /** - * The type of data stored in the bytes string. Default will be TEXT_UTF8. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem.BytesType type = 1; - */ - protected $type = 0; - /** - * Content data to inspect or redact. - * - * Generated from protobuf field bytes data = 2; - */ - protected $data = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The type of data stored in the bytes string. Default will be TEXT_UTF8. - * @type string $data - * Content data to inspect or redact. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The type of data stored in the bytes string. Default will be TEXT_UTF8. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem.BytesType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of data stored in the bytes string. Default will be TEXT_UTF8. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem.BytesType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ByteContentItem\BytesType::class); - $this->type = $var; - - return $this; - } - - /** - * Content data to inspect or redact. - * - * Generated from protobuf field bytes data = 2; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * Content data to inspect or redact. - * - * Generated from protobuf field bytes data = 2; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php deleted file mode 100644 index df603ec766f0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ByteContentItem/BytesType.php +++ /dev/null @@ -1,164 +0,0 @@ -google.privacy.dlp.v2.ByteContentItem.BytesType - */ -class BytesType -{ - /** - * Unused - * - * Generated from protobuf enum BYTES_TYPE_UNSPECIFIED = 0; - */ - const BYTES_TYPE_UNSPECIFIED = 0; - /** - * Any image type. - * - * Generated from protobuf enum IMAGE = 6; - */ - const IMAGE = 6; - /** - * jpeg - * - * Generated from protobuf enum IMAGE_JPEG = 1; - */ - const IMAGE_JPEG = 1; - /** - * bmp - * - * Generated from protobuf enum IMAGE_BMP = 2; - */ - const IMAGE_BMP = 2; - /** - * png - * - * Generated from protobuf enum IMAGE_PNG = 3; - */ - const IMAGE_PNG = 3; - /** - * svg - * - * Generated from protobuf enum IMAGE_SVG = 4; - */ - const IMAGE_SVG = 4; - /** - * plain text - * - * Generated from protobuf enum TEXT_UTF8 = 5; - */ - const TEXT_UTF8 = 5; - /** - * docx, docm, dotx, dotm - * - * Generated from protobuf enum WORD_DOCUMENT = 7; - */ - const WORD_DOCUMENT = 7; - /** - * pdf - * - * Generated from protobuf enum PDF = 8; - */ - const PDF = 8; - /** - * pptx, pptm, potx, potm, pot - * - * Generated from protobuf enum POWERPOINT_DOCUMENT = 9; - */ - const POWERPOINT_DOCUMENT = 9; - /** - * xlsx, xlsm, xltx, xltm - * - * Generated from protobuf enum EXCEL_DOCUMENT = 10; - */ - const EXCEL_DOCUMENT = 10; - /** - * avro - * - * Generated from protobuf enum AVRO = 11; - */ - const AVRO = 11; - /** - * csv - * - * Generated from protobuf enum CSV = 12; - */ - const CSV = 12; - /** - * tsv - * - * Generated from protobuf enum TSV = 13; - */ - const TSV = 13; - /** - * Audio file types. Only used for profiling. - * - * Generated from protobuf enum AUDIO = 15; - */ - const AUDIO = 15; - /** - * Video file types. Only used for profiling. - * - * Generated from protobuf enum VIDEO = 16; - */ - const VIDEO = 16; - /** - * Executable file types. Only used for profiling. - * - * Generated from protobuf enum EXECUTABLE = 17; - */ - const EXECUTABLE = 17; - - private static $valueToName = [ - self::BYTES_TYPE_UNSPECIFIED => 'BYTES_TYPE_UNSPECIFIED', - self::IMAGE => 'IMAGE', - self::IMAGE_JPEG => 'IMAGE_JPEG', - self::IMAGE_BMP => 'IMAGE_BMP', - self::IMAGE_PNG => 'IMAGE_PNG', - self::IMAGE_SVG => 'IMAGE_SVG', - self::TEXT_UTF8 => 'TEXT_UTF8', - self::WORD_DOCUMENT => 'WORD_DOCUMENT', - self::PDF => 'PDF', - self::POWERPOINT_DOCUMENT => 'POWERPOINT_DOCUMENT', - self::EXCEL_DOCUMENT => 'EXCEL_DOCUMENT', - self::AVRO => 'AVRO', - self::CSV => 'CSV', - self::TSV => 'TSV', - self::AUDIO => 'AUDIO', - self::VIDEO => 'VIDEO', - self::EXECUTABLE => 'EXECUTABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BytesType::class, \Google\Cloud\Dlp\V2\ByteContentItem_BytesType::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php deleted file mode 100644 index d9285b185051..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CancelDlpJobRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.CancelDlpJobRequest - */ -class CancelDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DlpJob resource to be cancelled. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DlpJob resource to be cancelled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DlpJob resource to be cancelled. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DlpJob resource to be cancelled. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php deleted file mode 100644 index 82eaa69cab08..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharacterMaskConfig.php +++ /dev/null @@ -1,266 +0,0 @@ -google.privacy.dlp.v2.CharacterMaskConfig - */ -class CharacterMaskConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Character to use to mask the sensitive values—for example, `*` for an - * alphabetic string such as a name, or `0` for a numeric string such as ZIP - * code or credit card number. This string must have a length of 1. If not - * supplied, this value defaults to `*` for strings, and `0` for digits. - * - * Generated from protobuf field string masking_character = 1; - */ - protected $masking_character = ''; - /** - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP - * masks all but a number of characters. - * For example, suppose you have the following values: - * - `masking_character` is `*` - * - `number_to_mask` is `-4` - * - `reverse_order` is `false` - * - `CharsToIgnore` includes `-` - * - Input string is `1234-5678-9012-3456` - * The resulting de-identified string is - * `****-****-****-3456`. Cloud DLP masks all but the last four characters. - * If `reverse_order` is `true`, all but the first four characters are masked - * as `1234-****-****-****`. - * - * Generated from protobuf field int32 number_to_mask = 2; - */ - protected $number_to_mask = 0; - /** - * Mask characters in reverse order. For example, if `masking_character` is - * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the - * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. - * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` - * is `true`, then the string `12345` is masked as `12***`. - * - * Generated from protobuf field bool reverse_order = 3; - */ - protected $reverse_order = false; - /** - * When masking a string, items in this list will be skipped when replacing - * characters. For example, if the input string is `555-555-5555` and you - * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP - * returns `***-**5-5555`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CharsToIgnore characters_to_ignore = 4; - */ - private $characters_to_ignore; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $masking_character - * Character to use to mask the sensitive values—for example, `*` for an - * alphabetic string such as a name, or `0` for a numeric string such as ZIP - * code or credit card number. This string must have a length of 1. If not - * supplied, this value defaults to `*` for strings, and `0` for digits. - * @type int $number_to_mask - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP - * masks all but a number of characters. - * For example, suppose you have the following values: - * - `masking_character` is `*` - * - `number_to_mask` is `-4` - * - `reverse_order` is `false` - * - `CharsToIgnore` includes `-` - * - Input string is `1234-5678-9012-3456` - * The resulting de-identified string is - * `****-****-****-3456`. Cloud DLP masks all but the last four characters. - * If `reverse_order` is `true`, all but the first four characters are masked - * as `1234-****-****-****`. - * @type bool $reverse_order - * Mask characters in reverse order. For example, if `masking_character` is - * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the - * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. - * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` - * is `true`, then the string `12345` is masked as `12***`. - * @type array<\Google\Cloud\Dlp\V2\CharsToIgnore>|\Google\Protobuf\Internal\RepeatedField $characters_to_ignore - * When masking a string, items in this list will be skipped when replacing - * characters. For example, if the input string is `555-555-5555` and you - * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP - * returns `***-**5-5555`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Character to use to mask the sensitive values—for example, `*` for an - * alphabetic string such as a name, or `0` for a numeric string such as ZIP - * code or credit card number. This string must have a length of 1. If not - * supplied, this value defaults to `*` for strings, and `0` for digits. - * - * Generated from protobuf field string masking_character = 1; - * @return string - */ - public function getMaskingCharacter() - { - return $this->masking_character; - } - - /** - * Character to use to mask the sensitive values—for example, `*` for an - * alphabetic string such as a name, or `0` for a numeric string such as ZIP - * code or credit card number. This string must have a length of 1. If not - * supplied, this value defaults to `*` for strings, and `0` for digits. - * - * Generated from protobuf field string masking_character = 1; - * @param string $var - * @return $this - */ - public function setMaskingCharacter($var) - { - GPBUtil::checkString($var, True); - $this->masking_character = $var; - - return $this; - } - - /** - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP - * masks all but a number of characters. - * For example, suppose you have the following values: - * - `masking_character` is `*` - * - `number_to_mask` is `-4` - * - `reverse_order` is `false` - * - `CharsToIgnore` includes `-` - * - Input string is `1234-5678-9012-3456` - * The resulting de-identified string is - * `****-****-****-3456`. Cloud DLP masks all but the last four characters. - * If `reverse_order` is `true`, all but the first four characters are masked - * as `1234-****-****-****`. - * - * Generated from protobuf field int32 number_to_mask = 2; - * @return int - */ - public function getNumberToMask() - { - return $this->number_to_mask; - } - - /** - * Number of characters to mask. If not set, all matching chars will be - * masked. Skipped characters do not count towards this tally. - * If `number_to_mask` is negative, this denotes inverse masking. Cloud DLP - * masks all but a number of characters. - * For example, suppose you have the following values: - * - `masking_character` is `*` - * - `number_to_mask` is `-4` - * - `reverse_order` is `false` - * - `CharsToIgnore` includes `-` - * - Input string is `1234-5678-9012-3456` - * The resulting de-identified string is - * `****-****-****-3456`. Cloud DLP masks all but the last four characters. - * If `reverse_order` is `true`, all but the first four characters are masked - * as `1234-****-****-****`. - * - * Generated from protobuf field int32 number_to_mask = 2; - * @param int $var - * @return $this - */ - public function setNumberToMask($var) - { - GPBUtil::checkInt32($var); - $this->number_to_mask = $var; - - return $this; - } - - /** - * Mask characters in reverse order. For example, if `masking_character` is - * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the - * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. - * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` - * is `true`, then the string `12345` is masked as `12***`. - * - * Generated from protobuf field bool reverse_order = 3; - * @return bool - */ - public function getReverseOrder() - { - return $this->reverse_order; - } - - /** - * Mask characters in reverse order. For example, if `masking_character` is - * `0`, `number_to_mask` is `14`, and `reverse_order` is `false`, then the - * input string `1234-5678-9012-3456` is masked as `00000000000000-3456`. - * If `masking_character` is `*`, `number_to_mask` is `3`, and `reverse_order` - * is `true`, then the string `12345` is masked as `12***`. - * - * Generated from protobuf field bool reverse_order = 3; - * @param bool $var - * @return $this - */ - public function setReverseOrder($var) - { - GPBUtil::checkBool($var); - $this->reverse_order = $var; - - return $this; - } - - /** - * When masking a string, items in this list will be skipped when replacing - * characters. For example, if the input string is `555-555-5555` and you - * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP - * returns `***-**5-5555`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CharsToIgnore characters_to_ignore = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCharactersToIgnore() - { - return $this->characters_to_ignore; - } - - /** - * When masking a string, items in this list will be skipped when replacing - * characters. For example, if the input string is `555-555-5555` and you - * instruct Cloud DLP to skip `-` and mask 5 characters with `*`, Cloud DLP - * returns `***-**5-5555`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CharsToIgnore characters_to_ignore = 4; - * @param array<\Google\Cloud\Dlp\V2\CharsToIgnore>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCharactersToIgnore($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\CharsToIgnore::class); - $this->characters_to_ignore = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php deleted file mode 100644 index 810e5f7da92f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore.php +++ /dev/null @@ -1,112 +0,0 @@ -google.privacy.dlp.v2.CharsToIgnore - */ -class CharsToIgnore extends \Google\Protobuf\Internal\Message -{ - protected $characters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $characters_to_skip - * Characters to not transform when masking. - * @type int $common_characters_to_ignore - * Common characters to not transform when masking. Useful to avoid removing - * punctuation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Characters to not transform when masking. - * - * Generated from protobuf field string characters_to_skip = 1; - * @return string - */ - public function getCharactersToSkip() - { - return $this->readOneof(1); - } - - public function hasCharactersToSkip() - { - return $this->hasOneof(1); - } - - /** - * Characters to not transform when masking. - * - * Generated from protobuf field string characters_to_skip = 1; - * @param string $var - * @return $this - */ - public function setCharactersToSkip($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Common characters to not transform when masking. Useful to avoid removing - * punctuation. - * - * Generated from protobuf field .google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2; - * @return int - */ - public function getCommonCharactersToIgnore() - { - return $this->readOneof(2); - } - - public function hasCommonCharactersToIgnore() - { - return $this->hasOneof(2); - } - - /** - * Common characters to not transform when masking. Useful to avoid removing - * punctuation. - * - * Generated from protobuf field .google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore common_characters_to_ignore = 2; - * @param int $var - * @return $this - */ - public function setCommonCharactersToIgnore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CharsToIgnore\CommonCharsToIgnore::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getCharacters() - { - return $this->whichOneof("characters"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php deleted file mode 100644 index bdda9d51629b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CharsToIgnore/CommonCharsToIgnore.php +++ /dev/null @@ -1,85 +0,0 @@ -google.privacy.dlp.v2.CharsToIgnore.CommonCharsToIgnore - */ -class CommonCharsToIgnore -{ - /** - * Unused. - * - * Generated from protobuf enum COMMON_CHARS_TO_IGNORE_UNSPECIFIED = 0; - */ - const COMMON_CHARS_TO_IGNORE_UNSPECIFIED = 0; - /** - * 0-9 - * - * Generated from protobuf enum NUMERIC = 1; - */ - const NUMERIC = 1; - /** - * A-Z - * - * Generated from protobuf enum ALPHA_UPPER_CASE = 2; - */ - const ALPHA_UPPER_CASE = 2; - /** - * a-z - * - * Generated from protobuf enum ALPHA_LOWER_CASE = 3; - */ - const ALPHA_LOWER_CASE = 3; - /** - * US Punctuation, one of !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~ - * - * Generated from protobuf enum PUNCTUATION = 4; - */ - const PUNCTUATION = 4; - /** - * Whitespace character, one of [ \t\n\x0B\f\r] - * - * Generated from protobuf enum WHITESPACE = 5; - */ - const WHITESPACE = 5; - - private static $valueToName = [ - self::COMMON_CHARS_TO_IGNORE_UNSPECIFIED => 'COMMON_CHARS_TO_IGNORE_UNSPECIFIED', - self::NUMERIC => 'NUMERIC', - self::ALPHA_UPPER_CASE => 'ALPHA_UPPER_CASE', - self::ALPHA_LOWER_CASE => 'ALPHA_LOWER_CASE', - self::PUNCTUATION => 'PUNCTUATION', - self::WHITESPACE => 'WHITESPACE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CommonCharsToIgnore::class, \Google\Cloud\Dlp\V2\CharsToIgnore_CommonCharsToIgnore::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php deleted file mode 100644 index 64cf2263cd10..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlDiscoveryTarget.php +++ /dev/null @@ -1,210 +0,0 @@ -google.privacy.dlp.v2.CloudSqlDiscoveryTarget - */ -class CloudSqlDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = null; - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2; - */ - protected $conditions = null; - protected $cadence; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter $filter - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions $conditions - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence $generation_cadence - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * @type \Google\Cloud\Dlp\V2\Disabled $disabled - * Disable profiling for database resources that match this filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Required. The tables the discovery cadence applies to. The first target - * with a matching filter will be the one to apply to a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlFilter::class); - $this->filter = $var; - - return $this; - } - - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions|null - */ - public function getConditions() - { - return $this->conditions; - } - - public function hasConditions() - { - return isset($this->conditions); - } - - public function clearConditions() - { - unset($this->conditions); - } - - /** - * In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlConditions conditions = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions::class); - $this->conditions = $var; - - return $this; - } - - /** - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence|null - */ - public function getGenerationCadence() - { - return $this->readOneof(3); - } - - public function hasGenerationCadence() - { - return $this->hasOneof(3); - } - - /** - * How often and when to update profiles. New tables that match both the - * filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence generation_cadence = 3; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence $var - * @return $this - */ - public function setGenerationCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Disable profiling for database resources that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; - * @return \Google\Cloud\Dlp\V2\Disabled|null - */ - public function getDisabled() - { - return $this->readOneof(4); - } - - public function hasDisabled() - { - return $this->hasOneof(4); - } - - /** - * Disable profiling for database resources that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 4; - * @param \Google\Cloud\Dlp\V2\Disabled $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getCadence() - { - return $this->whichOneof("cadence"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php deleted file mode 100644 index bd753580e0b9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlIamCredential.php +++ /dev/null @@ -1,36 +0,0 @@ -google.privacy.dlp.v2.CloudSqlIamCredential - */ -class CloudSqlIamCredential extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php deleted file mode 100644 index f14189ddced5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties.php +++ /dev/null @@ -1,250 +0,0 @@ -google.privacy.dlp.v2.CloudSqlProperties - */ -class CloudSqlProperties extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Immutable. The Cloud SQL instance for which the connection is - * defined. Only one connection per instance is allowed. This can only be set - * at creation time, and cannot be updated. - * It is an error to use a connection_name from different project or region - * than the one that holds the connection. - * For example, a Connection resource for Cloud SQL connection_name - * `project-id:us-central1:sql-instance` - * must be created under the parent - * `projects/project-id/locations/us-central1` - * - * Generated from protobuf field string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - */ - protected $connection_name = ''; - /** - * Required. DLP will limit its connections to max_connections. - * Must be 2 or greater. - * - * Generated from protobuf field int32 max_connections = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $max_connections = 0; - /** - * Required. The database engine used by the Cloud SQL instance that this - * connection configures. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_engine = 0; - protected $credential; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $connection_name - * Optional. Immutable. The Cloud SQL instance for which the connection is - * defined. Only one connection per instance is allowed. This can only be set - * at creation time, and cannot be updated. - * It is an error to use a connection_name from different project or region - * than the one that holds the connection. - * For example, a Connection resource for Cloud SQL connection_name - * `project-id:us-central1:sql-instance` - * must be created under the parent - * `projects/project-id/locations/us-central1` - * @type \Google\Cloud\Dlp\V2\SecretManagerCredential $username_password - * A username and password stored in Secret Manager. - * @type \Google\Cloud\Dlp\V2\CloudSqlIamCredential $cloud_sql_iam - * Built-in IAM authentication (must be configured in Cloud SQL). - * @type int $max_connections - * Required. DLP will limit its connections to max_connections. - * Must be 2 or greater. - * @type int $database_engine - * Required. The database engine used by the Cloud SQL instance that this - * connection configures. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Immutable. The Cloud SQL instance for which the connection is - * defined. Only one connection per instance is allowed. This can only be set - * at creation time, and cannot be updated. - * It is an error to use a connection_name from different project or region - * than the one that holds the connection. - * For example, a Connection resource for Cloud SQL connection_name - * `project-id:us-central1:sql-instance` - * must be created under the parent - * `projects/project-id/locations/us-central1` - * - * Generated from protobuf field string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getConnectionName() - { - return $this->connection_name; - } - - /** - * Optional. Immutable. The Cloud SQL instance for which the connection is - * defined. Only one connection per instance is allowed. This can only be set - * at creation time, and cannot be updated. - * It is an error to use a connection_name from different project or region - * than the one that holds the connection. - * For example, a Connection resource for Cloud SQL connection_name - * `project-id:us-central1:sql-instance` - * must be created under the parent - * `projects/project-id/locations/us-central1` - * - * Generated from protobuf field string connection_name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setConnectionName($var) - { - GPBUtil::checkString($var, True); - $this->connection_name = $var; - - return $this; - } - - /** - * A username and password stored in Secret Manager. - * - * Generated from protobuf field .google.privacy.dlp.v2.SecretManagerCredential username_password = 2; - * @return \Google\Cloud\Dlp\V2\SecretManagerCredential|null - */ - public function getUsernamePassword() - { - return $this->readOneof(2); - } - - public function hasUsernamePassword() - { - return $this->hasOneof(2); - } - - /** - * A username and password stored in Secret Manager. - * - * Generated from protobuf field .google.privacy.dlp.v2.SecretManagerCredential username_password = 2; - * @param \Google\Cloud\Dlp\V2\SecretManagerCredential $var - * @return $this - */ - public function setUsernamePassword($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SecretManagerCredential::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Built-in IAM authentication (must be configured in Cloud SQL). - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; - * @return \Google\Cloud\Dlp\V2\CloudSqlIamCredential|null - */ - public function getCloudSqlIam() - { - return $this->readOneof(3); - } - - public function hasCloudSqlIam() - { - return $this->hasOneof(3); - } - - /** - * Built-in IAM authentication (must be configured in Cloud SQL). - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlIamCredential cloud_sql_iam = 3; - * @param \Google\Cloud\Dlp\V2\CloudSqlIamCredential $var - * @return $this - */ - public function setCloudSqlIam($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudSqlIamCredential::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Required. DLP will limit its connections to max_connections. - * Must be 2 or greater. - * - * Generated from protobuf field int32 max_connections = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getMaxConnections() - { - return $this->max_connections; - } - - /** - * Required. DLP will limit its connections to max_connections. - * Must be 2 or greater. - * - * Generated from protobuf field int32 max_connections = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setMaxConnections($var) - { - GPBUtil::checkInt32($var); - $this->max_connections = $var; - - return $this; - } - - /** - * Required. The database engine used by the Cloud SQL instance that this - * connection configures. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getDatabaseEngine() - { - return $this->database_engine; - } - - /** - * Required. The database engine used by the Cloud SQL instance that this - * connection configures. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine database_engine = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setDatabaseEngine($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CloudSqlProperties\DatabaseEngine::class); - $this->database_engine = $var; - - return $this; - } - - /** - * @return string - */ - public function getCredential() - { - return $this->whichOneof("credential"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php deleted file mode 100644 index c21e1f3d23c8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudSqlProperties/DatabaseEngine.php +++ /dev/null @@ -1,65 +0,0 @@ -google.privacy.dlp.v2.CloudSqlProperties.DatabaseEngine - */ -class DatabaseEngine -{ - /** - * An engine that is not currently supported by Sensitive Data Protection. - * - * Generated from protobuf enum DATABASE_ENGINE_UNKNOWN = 0; - */ - const DATABASE_ENGINE_UNKNOWN = 0; - /** - * Cloud SQL for MySQL instance. - * - * Generated from protobuf enum DATABASE_ENGINE_MYSQL = 1; - */ - const DATABASE_ENGINE_MYSQL = 1; - /** - * Cloud SQL for PostgreSQL instance. - * - * Generated from protobuf enum DATABASE_ENGINE_POSTGRES = 2; - */ - const DATABASE_ENGINE_POSTGRES = 2; - - private static $valueToName = [ - self::DATABASE_ENGINE_UNKNOWN => 'DATABASE_ENGINE_UNKNOWN', - self::DATABASE_ENGINE_MYSQL => 'DATABASE_ENGINE_MYSQL', - self::DATABASE_ENGINE_POSTGRES => 'DATABASE_ENGINE_POSTGRES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DatabaseEngine::class, \Google\Cloud\Dlp\V2\CloudSqlProperties_DatabaseEngine::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php deleted file mode 100644 index 8c40707d3a0d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageDiscoveryTarget.php +++ /dev/null @@ -1,210 +0,0 @@ -google.privacy.dlp.v2.CloudStorageDiscoveryTarget - */ -class CloudStorageDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The buckets the generation_cadence applies to. The first target - * with a matching filter will be the one to apply to a bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = null; - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $conditions = null; - protected $cadence; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter $filter - * Required. The buckets the generation_cadence applies to. The first target - * with a matching filter will be the one to apply to a bucket. - * @type \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions $conditions - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence $generation_cadence - * Optional. How often and when to update profiles. New buckets that match - * both the filter and conditions are scanned as quickly as possible - * depending on system capacity. - * @type \Google\Cloud\Dlp\V2\Disabled $disabled - * Optional. Disable profiling for buckets that match this filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The buckets the generation_cadence applies to. The first target - * with a matching filter will be the one to apply to a bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Required. The buckets the generation_cadence applies to. The first target - * with a matching filter will be the one to apply to a bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageFilter filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageFilter::class); - $this->filter = $var; - - return $this; - } - - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions|null - */ - public function getConditions() - { - return $this->conditions; - } - - public function hasConditions() - { - return isset($this->conditions); - } - - public function clearConditions() - { - unset($this->conditions); - } - - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryFileStoreConditions conditions = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryFileStoreConditions::class); - $this->conditions = $var; - - return $this; - } - - /** - * Optional. How often and when to update profiles. New buckets that match - * both the filter and conditions are scanned as quickly as possible - * depending on system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence|null - */ - public function getGenerationCadence() - { - return $this->readOneof(2); - } - - public function hasGenerationCadence() - { - return $this->hasOneof(2); - } - - /** - * Optional. How often and when to update profiles. New buckets that match - * both the filter and conditions are scanned as quickly as possible - * depending on system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence generation_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence $var - * @return $this - */ - public function setGenerationCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageGenerationCadence::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. Disable profiling for buckets that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\Disabled|null - */ - public function getDisabled() - { - return $this->readOneof(3); - } - - public function hasDisabled() - { - return $this->hasOneof(3); - } - - /** - * Optional. Disable profiling for buckets that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\Disabled $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getCadence() - { - return $this->whichOneof("cadence"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php deleted file mode 100644 index 39377fbb5684..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageFileSet.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.CloudStorageFileSet - */ -class CloudStorageFileSet extends \Google\Protobuf\Internal\Message -{ - /** - * The url, in the format `gs:///`. Trailing wildcard in the - * path is allowed. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * The url, in the format `gs:///`. Trailing wildcard in the - * path is allowed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The url, in the format `gs:///`. Trailing wildcard in the - * path is allowed. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The url, in the format `gs:///`. Trailing wildcard in the - * path is allowed. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php deleted file mode 100644 index b68860969e30..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions.php +++ /dev/null @@ -1,332 +0,0 @@ -google.privacy.dlp.v2.CloudStorageOptions - */ -class CloudStorageOptions extends \Google\Protobuf\Internal\Message -{ - /** - * The set of one or more files to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; - */ - protected $file_set = null; - /** - * Max number of bytes to scan from a file. If a scanned file's size is bigger - * than this value then the rest of the bytes are omitted. Only one of - * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int64 bytes_limit_per_file = 4; - */ - protected $bytes_limit_per_file = 0; - /** - * Max percentage of bytes to scan from a file. The rest are omitted. The - * number of bytes scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of - * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int32 bytes_limit_per_file_percent = 8; - */ - protected $bytes_limit_per_file_percent = 0; - /** - * List of file type groups to include in the scan. - * If empty, all files are scanned and available data format processors - * are applied. In addition, the binary content of the selected files - * is always scanned as well. - * Images are scanned only as binary if the specified region - * does not support image inspection and no file_types were specified. - * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types = 5; - */ - private $file_types; - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; - */ - protected $sample_method = 0; - /** - * Limits the number of files to scan to this percentage of the input FileSet. - * Number of files scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. - * - * Generated from protobuf field int32 files_limit_percent = 7; - */ - protected $files_limit_percent = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet $file_set - * The set of one or more files to scan. - * @type int|string $bytes_limit_per_file - * Max number of bytes to scan from a file. If a scanned file's size is bigger - * than this value then the rest of the bytes are omitted. Only one of - * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * @type int $bytes_limit_per_file_percent - * Max percentage of bytes to scan from a file. The rest are omitted. The - * number of bytes scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of - * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * @type array|\Google\Protobuf\Internal\RepeatedField $file_types - * List of file type groups to include in the scan. - * If empty, all files are scanned and available data format processors - * are applied. In addition, the binary content of the selected files - * is always scanned as well. - * Images are scanned only as binary if the specified region - * does not support image inspection and no file_types were specified. - * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. - * @type int $sample_method - * How to sample the data. - * @type int $files_limit_percent - * Limits the number of files to scan to this percentage of the input FileSet. - * Number of files scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The set of one or more files to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; - * @return \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet|null - */ - public function getFileSet() - { - return $this->file_set; - } - - public function hasFileSet() - { - return isset($this->file_set); - } - - public function clearFileSet() - { - unset($this->file_set); - } - - /** - * The set of one or more files to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.FileSet file_set = 1; - * @param \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet $var - * @return $this - */ - public function setFileSet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageOptions\FileSet::class); - $this->file_set = $var; - - return $this; - } - - /** - * Max number of bytes to scan from a file. If a scanned file's size is bigger - * than this value then the rest of the bytes are omitted. Only one of - * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int64 bytes_limit_per_file = 4; - * @return int|string - */ - public function getBytesLimitPerFile() - { - return $this->bytes_limit_per_file; - } - - /** - * Max number of bytes to scan from a file. If a scanned file's size is bigger - * than this value then the rest of the bytes are omitted. Only one of - * `bytes_limit_per_file` and `bytes_limit_per_file_percent` can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int64 bytes_limit_per_file = 4; - * @param int|string $var - * @return $this - */ - public function setBytesLimitPerFile($var) - { - GPBUtil::checkInt64($var); - $this->bytes_limit_per_file = $var; - - return $this; - } - - /** - * Max percentage of bytes to scan from a file. The rest are omitted. The - * number of bytes scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of - * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int32 bytes_limit_per_file_percent = 8; - * @return int - */ - public function getBytesLimitPerFilePercent() - { - return $this->bytes_limit_per_file_percent; - } - - /** - * Max percentage of bytes to scan from a file. The rest are omitted. The - * number of bytes scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. Only one of - * bytes_limit_per_file and bytes_limit_per_file_percent can be specified. - * This field can't be set if de-identification is requested. For certain file - * types, setting this field has no effect. For more information, see [Limits - * on bytes scanned per - * file](https://cloud.google.com/sensitive-data-protection/docs/supported-file-types#max-byte-size-per-file). - * - * Generated from protobuf field int32 bytes_limit_per_file_percent = 8; - * @param int $var - * @return $this - */ - public function setBytesLimitPerFilePercent($var) - { - GPBUtil::checkInt32($var); - $this->bytes_limit_per_file_percent = $var; - - return $this; - } - - /** - * List of file type groups to include in the scan. - * If empty, all files are scanned and available data format processors - * are applied. In addition, the binary content of the selected files - * is always scanned as well. - * Images are scanned only as binary if the specified region - * does not support image inspection and no file_types were specified. - * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileTypes() - { - return $this->file_types; - } - - /** - * List of file type groups to include in the scan. - * If empty, all files are scanned and available data format processors - * are applied. In addition, the binary content of the selected files - * is always scanned as well. - * Images are scanned only as binary if the specified region - * does not support image inspection and no file_types were specified. - * Image inspection is restricted to 'global', 'us', 'asia', and 'europe'. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileType file_types = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\FileType::class); - $this->file_types = $arr; - - return $this; - } - - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; - * @return int - */ - public function getSampleMethod() - { - return $this->sample_method; - } - - /** - * How to sample the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions.SampleMethod sample_method = 6; - * @param int $var - * @return $this - */ - public function setSampleMethod($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CloudStorageOptions\SampleMethod::class); - $this->sample_method = $var; - - return $this; - } - - /** - * Limits the number of files to scan to this percentage of the input FileSet. - * Number of files scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. - * - * Generated from protobuf field int32 files_limit_percent = 7; - * @return int - */ - public function getFilesLimitPercent() - { - return $this->files_limit_percent; - } - - /** - * Limits the number of files to scan to this percentage of the input FileSet. - * Number of files scanned is rounded down. Must be between 0 and 100, - * inclusively. Both 0 and 100 means no limit. Defaults to 0. - * - * Generated from protobuf field int32 files_limit_percent = 7; - * @param int $var - * @return $this - */ - public function setFilesLimitPercent($var) - { - GPBUtil::checkInt32($var); - $this->files_limit_percent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php deleted file mode 100644 index ac18796373e3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/FileSet.php +++ /dev/null @@ -1,146 +0,0 @@ -google.privacy.dlp.v2.CloudStorageOptions.FileSet - */ -class FileSet extends \Google\Protobuf\Internal\Message -{ - /** - * The Cloud Storage url of the file(s) to scan, in the format - * `gs:///`. Trailing wildcard in the path is allowed. - * If the url ends in a trailing slash, the bucket or directory represented - * by the url will be scanned non-recursively (content in sub-directories - * will not be scanned). This means that `gs://mybucket/` is equivalent to - * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to - * `gs://mybucket/directory/*`. - * Exactly one of `url` or `regex_file_set` must be set. - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - /** - * The regex-filtered set of files to scan. Exactly one of `url` or - * `regex_file_set` must be set. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2; - */ - protected $regex_file_set = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * The Cloud Storage url of the file(s) to scan, in the format - * `gs:///`. Trailing wildcard in the path is allowed. - * If the url ends in a trailing slash, the bucket or directory represented - * by the url will be scanned non-recursively (content in sub-directories - * will not be scanned). This means that `gs://mybucket/` is equivalent to - * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to - * `gs://mybucket/directory/*`. - * Exactly one of `url` or `regex_file_set` must be set. - * @type \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet $regex_file_set - * The regex-filtered set of files to scan. Exactly one of `url` or - * `regex_file_set` must be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Storage url of the file(s) to scan, in the format - * `gs:///`. Trailing wildcard in the path is allowed. - * If the url ends in a trailing slash, the bucket or directory represented - * by the url will be scanned non-recursively (content in sub-directories - * will not be scanned). This means that `gs://mybucket/` is equivalent to - * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to - * `gs://mybucket/directory/*`. - * Exactly one of `url` or `regex_file_set` must be set. - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The Cloud Storage url of the file(s) to scan, in the format - * `gs:///`. Trailing wildcard in the path is allowed. - * If the url ends in a trailing slash, the bucket or directory represented - * by the url will be scanned non-recursively (content in sub-directories - * will not be scanned). This means that `gs://mybucket/` is equivalent to - * `gs://mybucket/*`, and `gs://mybucket/directory/` is equivalent to - * `gs://mybucket/directory/*`. - * Exactly one of `url` or `regex_file_set` must be set. - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * The regex-filtered set of files to scan. Exactly one of `url` or - * `regex_file_set` must be set. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2; - * @return \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet|null - */ - public function getRegexFileSet() - { - return $this->regex_file_set; - } - - public function hasRegexFileSet() - { - return isset($this->regex_file_set); - } - - public function clearRegexFileSet() - { - unset($this->regex_file_set); - } - - /** - * The regex-filtered set of files to scan. Exactly one of `url` or - * `regex_file_set` must be set. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegexFileSet regex_file_set = 2; - * @param \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet $var - * @return $this - */ - public function setRegexFileSet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageRegexFileSet::class); - $this->regex_file_set = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FileSet::class, \Google\Cloud\Dlp\V2\CloudStorageOptions_FileSet::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php deleted file mode 100644 index ea69dd317b55..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageOptions/SampleMethod.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.CloudStorageOptions.SampleMethod - */ -class SampleMethod -{ - /** - * No sampling. - * - * Generated from protobuf enum SAMPLE_METHOD_UNSPECIFIED = 0; - */ - const SAMPLE_METHOD_UNSPECIFIED = 0; - /** - * Scan from the top (default). - * - * Generated from protobuf enum TOP = 1; - */ - const TOP = 1; - /** - * For each file larger than bytes_limit_per_file, randomly pick the offset - * to start scanning. The scanned bytes are contiguous. - * - * Generated from protobuf enum RANDOM_START = 2; - */ - const RANDOM_START = 2; - - private static $valueToName = [ - self::SAMPLE_METHOD_UNSPECIFIED => 'SAMPLE_METHOD_UNSPECIFIED', - self::TOP => 'TOP', - self::RANDOM_START => 'RANDOM_START', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SampleMethod::class, \Google\Cloud\Dlp\V2\CloudStorageOptions_SampleMethod::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php deleted file mode 100644 index af52b7c78587..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStoragePath.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.CloudStoragePath - */ -class CloudStoragePath extends \Google\Protobuf\Internal\Message -{ - /** - * A URL representing a file or path (no wildcards) in Cloud Storage. - * Example: `gs://[BUCKET_NAME]/dictionary.txt` - * - * Generated from protobuf field string path = 1; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $path - * A URL representing a file or path (no wildcards) in Cloud Storage. - * Example: `gs://[BUCKET_NAME]/dictionary.txt` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * A URL representing a file or path (no wildcards) in Cloud Storage. - * Example: `gs://[BUCKET_NAME]/dictionary.txt` - * - * Generated from protobuf field string path = 1; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * A URL representing a file or path (no wildcards) in Cloud Storage. - * Example: `gs://[BUCKET_NAME]/dictionary.txt` - * - * Generated from protobuf field string path = 1; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php deleted file mode 100644 index 4efbbfde819e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegex.php +++ /dev/null @@ -1,112 +0,0 @@ -google.privacy.dlp.v2.CloudStorageRegex - */ -class CloudStorageRegex extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. For organizations, if unset, will match all projects. - * - * Generated from protobuf field string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $project_id_regex = ''; - /** - * Optional. Regex to test the bucket name against. If empty, all buckets - * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the - * bucket gs://marketing2021 - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bucket_name_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id_regex - * Optional. For organizations, if unset, will match all projects. - * @type string $bucket_name_regex - * Optional. Regex to test the bucket name against. If empty, all buckets - * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the - * bucket gs://marketing2021 - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. For organizations, if unset, will match all projects. - * - * Generated from protobuf field string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getProjectIdRegex() - { - return $this->project_id_regex; - } - - /** - * Optional. For organizations, if unset, will match all projects. - * - * Generated from protobuf field string project_id_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setProjectIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->project_id_regex = $var; - - return $this; - } - - /** - * Optional. Regex to test the bucket name against. If empty, all buckets - * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the - * bucket gs://marketing2021 - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBucketNameRegex() - { - return $this->bucket_name_regex; - } - - /** - * Optional. Regex to test the bucket name against. If empty, all buckets - * match. Example: "marketing2021" or "(marketing)\d{4}" will both match the - * bucket gs://marketing2021 - * - * Generated from protobuf field string bucket_name_regex = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBucketNameRegex($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php deleted file mode 100644 index 73325c4e9ca7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageRegexFileSet.php +++ /dev/null @@ -1,208 +0,0 @@ -google.privacy.dlp.v2.CloudStorageRegexFileSet - */ -class CloudStorageRegexFileSet extends \Google\Protobuf\Internal\Message -{ - /** - * The name of a Cloud Storage bucket. Required. - * - * Generated from protobuf field string bucket_name = 1; - */ - protected $bucket_name = ''; - /** - * A list of regular expressions matching file paths to include. All files in - * the bucket that match at least one of these regular expressions will be - * included in the set of files, except for those that also match an item in - * `exclude_regex`. Leaving this field empty will match all files by default - * (this is equivalent to including `.*` in the list). - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string include_regex = 2; - */ - private $include_regex; - /** - * A list of regular expressions matching file paths to exclude. All files in - * the bucket that match at least one of these regular expressions will be - * excluded from the scan. - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string exclude_regex = 3; - */ - private $exclude_regex; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket_name - * The name of a Cloud Storage bucket. Required. - * @type array|\Google\Protobuf\Internal\RepeatedField $include_regex - * A list of regular expressions matching file paths to include. All files in - * the bucket that match at least one of these regular expressions will be - * included in the set of files, except for those that also match an item in - * `exclude_regex`. Leaving this field empty will match all files by default - * (this is equivalent to including `.*` in the list). - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * @type array|\Google\Protobuf\Internal\RepeatedField $exclude_regex - * A list of regular expressions matching file paths to exclude. All files in - * the bucket that match at least one of these regular expressions will be - * excluded from the scan. - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The name of a Cloud Storage bucket. Required. - * - * Generated from protobuf field string bucket_name = 1; - * @return string - */ - public function getBucketName() - { - return $this->bucket_name; - } - - /** - * The name of a Cloud Storage bucket. Required. - * - * Generated from protobuf field string bucket_name = 1; - * @param string $var - * @return $this - */ - public function setBucketName($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name = $var; - - return $this; - } - - /** - * A list of regular expressions matching file paths to include. All files in - * the bucket that match at least one of these regular expressions will be - * included in the set of files, except for those that also match an item in - * `exclude_regex`. Leaving this field empty will match all files by default - * (this is equivalent to including `.*` in the list). - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string include_regex = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIncludeRegex() - { - return $this->include_regex; - } - - /** - * A list of regular expressions matching file paths to include. All files in - * the bucket that match at least one of these regular expressions will be - * included in the set of files, except for those that also match an item in - * `exclude_regex`. Leaving this field empty will match all files by default - * (this is equivalent to including `.*` in the list). - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string include_regex = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIncludeRegex($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->include_regex = $arr; - - return $this; - } - - /** - * A list of regular expressions matching file paths to exclude. All files in - * the bucket that match at least one of these regular expressions will be - * excluded from the scan. - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string exclude_regex = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getExcludeRegex() - { - return $this->exclude_regex; - } - - /** - * A list of regular expressions matching file paths to exclude. All files in - * the bucket that match at least one of these regular expressions will be - * excluded from the scan. - * Regular expressions use RE2 - * [syntax](https://github.com/google/re2/wiki/Syntax); a guide can be found - * under the google/re2 repository on GitHub. - * - * Generated from protobuf field repeated string exclude_regex = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setExcludeRegex($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->exclude_regex = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php deleted file mode 100644 index afe46c913ba6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CloudStorageResourceReference.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.CloudStorageResourceReference - */ -class CloudStorageResourceReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The bucket to scan. - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bucket_name = ''; - /** - * Required. If within a project-level config, then this must match the - * config's project id. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $bucket_name - * Required. The bucket to scan. - * @type string $project_id - * Required. If within a project-level config, then this must match the - * config's project id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The bucket to scan. - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getBucketName() - { - return $this->bucket_name; - } - - /** - * Required. The bucket to scan. - * - * Generated from protobuf field string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setBucketName($var) - { - GPBUtil::checkString($var, True); - $this->bucket_name = $var; - - return $this; - } - - /** - * Required. If within a project-level config, then this must match the - * config's project id. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. If within a project-level config, then this must match the - * config's project id. - * - * Generated from protobuf field string project_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php deleted file mode 100644 index 4685448260e1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Color.php +++ /dev/null @@ -1,135 +0,0 @@ -google.privacy.dlp.v2.Color - */ -class Color extends \Google\Protobuf\Internal\Message -{ - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - */ - protected $red = 0.0; - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - */ - protected $green = 0.0; - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - */ - protected $blue = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $red - * The amount of red in the color as a value in the interval [0, 1]. - * @type float $green - * The amount of green in the color as a value in the interval [0, 1]. - * @type float $blue - * The amount of blue in the color as a value in the interval [0, 1]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - * @return float - */ - public function getRed() - { - return $this->red; - } - - /** - * The amount of red in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float red = 1; - * @param float $var - * @return $this - */ - public function setRed($var) - { - GPBUtil::checkFloat($var); - $this->red = $var; - - return $this; - } - - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - * @return float - */ - public function getGreen() - { - return $this->green; - } - - /** - * The amount of green in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float green = 2; - * @param float $var - * @return $this - */ - public function setGreen($var) - { - GPBUtil::checkFloat($var); - $this->green = $var; - - return $this; - } - - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - * @return float - */ - public function getBlue() - { - return $this->blue; - } - - /** - * The amount of blue in the color as a value in the interval [0, 1]. - * - * Generated from protobuf field float blue = 3; - * @param float $var - * @return $this - */ - public function setBlue($var) - { - GPBUtil::checkFloat($var); - $this->blue = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php deleted file mode 100644 index 31666dd0d547..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile.php +++ /dev/null @@ -1,795 +0,0 @@ -google.privacy.dlp.v2.ColumnDataProfile - */ -class ColumnDataProfile extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 17; - */ - protected $profile_status = null; - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.State state = 18; - */ - protected $state = 0; - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - */ - protected $profile_last_generated = null; - /** - * The resource name of the table data profile. - * - * Generated from protobuf field string table_data_profile = 4; - */ - protected $table_data_profile = ''; - /** - * The resource name of the resource this column is within. - * - * Generated from protobuf field string table_full_resource = 5; - */ - protected $table_full_resource = ''; - /** - * The Google Cloud project ID that owns the profiled resource. - * - * Generated from protobuf field string dataset_project_id = 19; - */ - protected $dataset_project_id = ''; - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * BigQuery locations. - * - * Generated from protobuf field string dataset_location = 20; - */ - protected $dataset_location = ''; - /** - * The BigQuery dataset ID, if the resource profiled is a BigQuery table. - * - * Generated from protobuf field string dataset_id = 21; - */ - protected $dataset_id = ''; - /** - * The table ID. - * - * Generated from protobuf field string table_id = 22; - */ - protected $table_id = ''; - /** - * The name of the column. - * - * Generated from protobuf field string column = 6; - */ - protected $column = ''; - /** - * The sensitivity of this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 7; - */ - protected $sensitivity_score = null; - /** - * The data risk level for this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 8; - */ - protected $data_risk_level = null; - /** - * If it's been determined this column can be identified as a single type, - * this will be set. Otherwise the column either has unidentifiable content - * or mixed types. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeSummary column_info_type = 9; - */ - protected $column_info_type = null; - /** - * Other types found within this column. List will be unordered. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_matches = 10; - */ - private $other_matches; - /** - * Approximate percentage of entries being null in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.NullPercentageLevel estimated_null_percentage = 23; - */ - protected $estimated_null_percentage = 0; - /** - * Approximate uniqueness of the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.UniquenessScoreLevel estimated_uniqueness_score = 24; - */ - protected $estimated_uniqueness_score = 0; - /** - * The likelihood that this column contains free-form text. - * A value close to 1 may indicate the column is likely to contain - * free-form or natural language text. - * Range in 0-1. - * - * Generated from protobuf field double free_text_score = 13; - */ - protected $free_text_score = 0.0; - /** - * The data type of a given column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType column_type = 14; - */ - protected $column_type = 0; - /** - * Indicates if a policy tag has been applied to the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState policy_state = 15; - */ - protected $policy_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the profile. - * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * @type int $state - * State of a profile. - * @type \Google\Protobuf\Timestamp $profile_last_generated - * The last time the profile was generated. - * @type string $table_data_profile - * The resource name of the table data profile. - * @type string $table_full_resource - * The resource name of the resource this column is within. - * @type string $dataset_project_id - * The Google Cloud project ID that owns the profiled resource. - * @type string $dataset_location - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * BigQuery locations. - * @type string $dataset_id - * The BigQuery dataset ID, if the resource profiled is a BigQuery table. - * @type string $table_id - * The table ID. - * @type string $column - * The name of the column. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The sensitivity of this column. - * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level - * The data risk level for this column. - * @type \Google\Cloud\Dlp\V2\InfoTypeSummary $column_info_type - * If it's been determined this column can be identified as a single type, - * this will be set. Otherwise the column either has unidentifiable content - * or mixed types. - * @type array<\Google\Cloud\Dlp\V2\OtherInfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $other_matches - * Other types found within this column. List will be unordered. - * @type int $estimated_null_percentage - * Approximate percentage of entries being null in the column. - * @type int $estimated_uniqueness_score - * Approximate uniqueness of the column. - * @type float $free_text_score - * The likelihood that this column contains free-form text. - * A value close to 1 may indicate the column is likely to contain - * free-form or natural language text. - * Range in 0-1. - * @type int $column_type - * The data type of a given column. - * @type int $policy_state - * Indicates if a policy tag has been applied to the column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the profile. - * - * 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; - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 17; - * @return \Google\Cloud\Dlp\V2\ProfileStatus|null - */ - public function getProfileStatus() - { - return $this->profile_status; - } - - public function hasProfileStatus() - { - return isset($this->profile_status); - } - - public function clearProfileStatus() - { - unset($this->profile_status); - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 17; - * @param \Google\Cloud\Dlp\V2\ProfileStatus $var - * @return $this - */ - public function setProfileStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); - $this->profile_status = $var; - - return $this; - } - - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.State state = 18; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.State state = 18; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ColumnDataProfile\State::class); - $this->state = $var; - - return $this; - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getProfileLastGenerated() - { - return $this->profile_last_generated; - } - - public function hasProfileLastGenerated() - { - return isset($this->profile_last_generated); - } - - public function clearProfileLastGenerated() - { - unset($this->profile_last_generated); - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setProfileLastGenerated($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->profile_last_generated = $var; - - return $this; - } - - /** - * The resource name of the table data profile. - * - * Generated from protobuf field string table_data_profile = 4; - * @return string - */ - public function getTableDataProfile() - { - return $this->table_data_profile; - } - - /** - * The resource name of the table data profile. - * - * Generated from protobuf field string table_data_profile = 4; - * @param string $var - * @return $this - */ - public function setTableDataProfile($var) - { - GPBUtil::checkString($var, True); - $this->table_data_profile = $var; - - return $this; - } - - /** - * The resource name of the resource this column is within. - * - * Generated from protobuf field string table_full_resource = 5; - * @return string - */ - public function getTableFullResource() - { - return $this->table_full_resource; - } - - /** - * The resource name of the resource this column is within. - * - * Generated from protobuf field string table_full_resource = 5; - * @param string $var - * @return $this - */ - public function setTableFullResource($var) - { - GPBUtil::checkString($var, True); - $this->table_full_resource = $var; - - return $this; - } - - /** - * The Google Cloud project ID that owns the profiled resource. - * - * Generated from protobuf field string dataset_project_id = 19; - * @return string - */ - public function getDatasetProjectId() - { - return $this->dataset_project_id; - } - - /** - * The Google Cloud project ID that owns the profiled resource. - * - * Generated from protobuf field string dataset_project_id = 19; - * @param string $var - * @return $this - */ - public function setDatasetProjectId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_project_id = $var; - - return $this; - } - - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * BigQuery locations. - * - * Generated from protobuf field string dataset_location = 20; - * @return string - */ - public function getDatasetLocation() - { - return $this->dataset_location; - } - - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * BigQuery locations. - * - * Generated from protobuf field string dataset_location = 20; - * @param string $var - * @return $this - */ - public function setDatasetLocation($var) - { - GPBUtil::checkString($var, True); - $this->dataset_location = $var; - - return $this; - } - - /** - * The BigQuery dataset ID, if the resource profiled is a BigQuery table. - * - * Generated from protobuf field string dataset_id = 21; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * The BigQuery dataset ID, if the resource profiled is a BigQuery table. - * - * Generated from protobuf field string dataset_id = 21; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * The table ID. - * - * Generated from protobuf field string table_id = 22; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * The table ID. - * - * Generated from protobuf field string table_id = 22; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * The name of the column. - * - * Generated from protobuf field string column = 6; - * @return string - */ - public function getColumn() - { - return $this->column; - } - - /** - * The name of the column. - * - * Generated from protobuf field string column = 6; - * @param string $var - * @return $this - */ - public function setColumn($var) - { - GPBUtil::checkString($var, True); - $this->column = $var; - - return $this; - } - - /** - * The sensitivity of this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 7; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The sensitivity of this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 7; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * The data risk level for this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 8; - * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null - */ - public function getDataRiskLevel() - { - return $this->data_risk_level; - } - - public function hasDataRiskLevel() - { - return isset($this->data_risk_level); - } - - public function clearDataRiskLevel() - { - unset($this->data_risk_level); - } - - /** - * The data risk level for this column. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 8; - * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var - * @return $this - */ - public function setDataRiskLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); - $this->data_risk_level = $var; - - return $this; - } - - /** - * If it's been determined this column can be identified as a single type, - * this will be set. Otherwise the column either has unidentifiable content - * or mixed types. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeSummary column_info_type = 9; - * @return \Google\Cloud\Dlp\V2\InfoTypeSummary|null - */ - public function getColumnInfoType() - { - return $this->column_info_type; - } - - public function hasColumnInfoType() - { - return isset($this->column_info_type); - } - - public function clearColumnInfoType() - { - unset($this->column_info_type); - } - - /** - * If it's been determined this column can be identified as a single type, - * this will be set. Otherwise the column either has unidentifiable content - * or mixed types. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeSummary column_info_type = 9; - * @param \Google\Cloud\Dlp\V2\InfoTypeSummary $var - * @return $this - */ - public function setColumnInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeSummary::class); - $this->column_info_type = $var; - - return $this; - } - - /** - * Other types found within this column. List will be unordered. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_matches = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOtherMatches() - { - return $this->other_matches; - } - - /** - * Other types found within this column. List will be unordered. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_matches = 10; - * @param array<\Google\Cloud\Dlp\V2\OtherInfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOtherMatches($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\OtherInfoTypeSummary::class); - $this->other_matches = $arr; - - return $this; - } - - /** - * Approximate percentage of entries being null in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.NullPercentageLevel estimated_null_percentage = 23; - * @return int - */ - public function getEstimatedNullPercentage() - { - return $this->estimated_null_percentage; - } - - /** - * Approximate percentage of entries being null in the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.NullPercentageLevel estimated_null_percentage = 23; - * @param int $var - * @return $this - */ - public function setEstimatedNullPercentage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\NullPercentageLevel::class); - $this->estimated_null_percentage = $var; - - return $this; - } - - /** - * Approximate uniqueness of the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.UniquenessScoreLevel estimated_uniqueness_score = 24; - * @return int - */ - public function getEstimatedUniquenessScore() - { - return $this->estimated_uniqueness_score; - } - - /** - * Approximate uniqueness of the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.UniquenessScoreLevel estimated_uniqueness_score = 24; - * @param int $var - * @return $this - */ - public function setEstimatedUniquenessScore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\UniquenessScoreLevel::class); - $this->estimated_uniqueness_score = $var; - - return $this; - } - - /** - * The likelihood that this column contains free-form text. - * A value close to 1 may indicate the column is likely to contain - * free-form or natural language text. - * Range in 0-1. - * - * Generated from protobuf field double free_text_score = 13; - * @return float - */ - public function getFreeTextScore() - { - return $this->free_text_score; - } - - /** - * The likelihood that this column contains free-form text. - * A value close to 1 may indicate the column is likely to contain - * free-form or natural language text. - * Range in 0-1. - * - * Generated from protobuf field double free_text_score = 13; - * @param float $var - * @return $this - */ - public function setFreeTextScore($var) - { - GPBUtil::checkDouble($var); - $this->free_text_score = $var; - - return $this; - } - - /** - * The data type of a given column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType column_type = 14; - * @return int - */ - public function getColumnType() - { - return $this->column_type; - } - - /** - * The data type of a given column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType column_type = 14; - * @param int $var - * @return $this - */ - public function setColumnType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ColumnDataProfile\ColumnDataType::class); - $this->column_type = $var; - - return $this; - } - - /** - * Indicates if a policy tag has been applied to the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState policy_state = 15; - * @return int - */ - public function getPolicyState() - { - return $this->policy_state; - } - - /** - * Indicates if a policy tag has been applied to the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState policy_state = 15; - * @param int $var - * @return $this - */ - public function setPolicyState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ColumnDataProfile\ColumnPolicyState::class); - $this->policy_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php deleted file mode 100644 index 83faea00b595..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnDataType.php +++ /dev/null @@ -1,177 +0,0 @@ -google.privacy.dlp.v2.ColumnDataProfile.ColumnDataType - */ -class ColumnDataType -{ - /** - * Invalid type. - * - * Generated from protobuf enum COLUMN_DATA_TYPE_UNSPECIFIED = 0; - */ - const COLUMN_DATA_TYPE_UNSPECIFIED = 0; - /** - * Encoded as a string in decimal format. - * - * Generated from protobuf enum TYPE_INT64 = 1; - */ - const TYPE_INT64 = 1; - /** - * Encoded as a boolean "false" or "true". - * - * Generated from protobuf enum TYPE_BOOL = 2; - */ - const TYPE_BOOL = 2; - /** - * Encoded as a number, or string "NaN", "Infinity" or "-Infinity". - * - * Generated from protobuf enum TYPE_FLOAT64 = 3; - */ - const TYPE_FLOAT64 = 3; - /** - * Encoded as a string value. - * - * Generated from protobuf enum TYPE_STRING = 4; - */ - const TYPE_STRING = 4; - /** - * Encoded as a base64 string per RFC 4648, section 4. - * - * Generated from protobuf enum TYPE_BYTES = 5; - */ - const TYPE_BYTES = 5; - /** - * Encoded as an RFC 3339 timestamp with mandatory "Z" time zone string: - * 1985-04-12T23:20:50.52Z - * - * Generated from protobuf enum TYPE_TIMESTAMP = 6; - */ - const TYPE_TIMESTAMP = 6; - /** - * Encoded as RFC 3339 full-date format string: 1985-04-12 - * - * Generated from protobuf enum TYPE_DATE = 7; - */ - const TYPE_DATE = 7; - /** - * Encoded as RFC 3339 partial-time format string: 23:20:50.52 - * - * Generated from protobuf enum TYPE_TIME = 8; - */ - const TYPE_TIME = 8; - /** - * Encoded as RFC 3339 full-date "T" partial-time: 1985-04-12T23:20:50.52 - * - * Generated from protobuf enum TYPE_DATETIME = 9; - */ - const TYPE_DATETIME = 9; - /** - * Encoded as WKT - * - * Generated from protobuf enum TYPE_GEOGRAPHY = 10; - */ - const TYPE_GEOGRAPHY = 10; - /** - * Encoded as a decimal string. - * - * Generated from protobuf enum TYPE_NUMERIC = 11; - */ - const TYPE_NUMERIC = 11; - /** - * Container of ordered fields, each with a type and field name. - * - * Generated from protobuf enum TYPE_RECORD = 12; - */ - const TYPE_RECORD = 12; - /** - * Decimal type. - * - * Generated from protobuf enum TYPE_BIGNUMERIC = 13; - */ - const TYPE_BIGNUMERIC = 13; - /** - * Json type. - * - * Generated from protobuf enum TYPE_JSON = 14; - */ - const TYPE_JSON = 14; - /** - * Interval type. - * - * Generated from protobuf enum TYPE_INTERVAL = 15; - */ - const TYPE_INTERVAL = 15; - /** - * `Range` type. - * - * Generated from protobuf enum TYPE_RANGE_DATE = 16; - */ - const TYPE_RANGE_DATE = 16; - /** - * `Range` type. - * - * Generated from protobuf enum TYPE_RANGE_DATETIME = 17; - */ - const TYPE_RANGE_DATETIME = 17; - /** - * `Range` type. - * - * Generated from protobuf enum TYPE_RANGE_TIMESTAMP = 18; - */ - const TYPE_RANGE_TIMESTAMP = 18; - - private static $valueToName = [ - self::COLUMN_DATA_TYPE_UNSPECIFIED => 'COLUMN_DATA_TYPE_UNSPECIFIED', - self::TYPE_INT64 => 'TYPE_INT64', - self::TYPE_BOOL => 'TYPE_BOOL', - self::TYPE_FLOAT64 => 'TYPE_FLOAT64', - self::TYPE_STRING => 'TYPE_STRING', - self::TYPE_BYTES => 'TYPE_BYTES', - self::TYPE_TIMESTAMP => 'TYPE_TIMESTAMP', - self::TYPE_DATE => 'TYPE_DATE', - self::TYPE_TIME => 'TYPE_TIME', - self::TYPE_DATETIME => 'TYPE_DATETIME', - self::TYPE_GEOGRAPHY => 'TYPE_GEOGRAPHY', - self::TYPE_NUMERIC => 'TYPE_NUMERIC', - self::TYPE_RECORD => 'TYPE_RECORD', - self::TYPE_BIGNUMERIC => 'TYPE_BIGNUMERIC', - self::TYPE_JSON => 'TYPE_JSON', - self::TYPE_INTERVAL => 'TYPE_INTERVAL', - self::TYPE_RANGE_DATE => 'TYPE_RANGE_DATE', - self::TYPE_RANGE_DATETIME => 'TYPE_RANGE_DATETIME', - self::TYPE_RANGE_TIMESTAMP => 'TYPE_RANGE_TIMESTAMP', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ColumnDataType::class, \Google\Cloud\Dlp\V2\ColumnDataProfile_ColumnDataType::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php deleted file mode 100644 index b00c7d7e26b9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/ColumnPolicyState.php +++ /dev/null @@ -1,57 +0,0 @@ -google.privacy.dlp.v2.ColumnDataProfile.ColumnPolicyState - */ -class ColumnPolicyState -{ - /** - * No policy tags. - * - * Generated from protobuf enum COLUMN_POLICY_STATE_UNSPECIFIED = 0; - */ - const COLUMN_POLICY_STATE_UNSPECIFIED = 0; - /** - * Column has policy tag applied. - * - * Generated from protobuf enum COLUMN_POLICY_TAGGED = 1; - */ - const COLUMN_POLICY_TAGGED = 1; - - private static $valueToName = [ - self::COLUMN_POLICY_STATE_UNSPECIFIED => 'COLUMN_POLICY_STATE_UNSPECIFIED', - self::COLUMN_POLICY_TAGGED => 'COLUMN_POLICY_TAGGED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ColumnPolicyState::class, \Google\Cloud\Dlp\V2\ColumnDataProfile_ColumnPolicyState::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php deleted file mode 100644 index a8698a1945a3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ColumnDataProfile/State.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.ColumnDataProfile.State - */ -class State -{ - /** - * Unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The profile is currently running. Once a profile has finished it will - * transition to DONE. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The profile is no longer generating. - * If profile_status.status.code is 0, the profile succeeded, otherwise, it - * failed. - * - * Generated from protobuf enum DONE = 2; - */ - const DONE = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::DONE => '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(State::class, \Google\Cloud\Dlp\V2\ColumnDataProfile_State::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php deleted file mode 100644 index 911eb5b4d87d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Connection.php +++ /dev/null @@ -1,186 +0,0 @@ -google.privacy.dlp.v2.Connection - */ -class Connection extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the connection: - * `projects/{project}/locations/{location}/connections/{name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The connection's state in its lifecycle. - * - * Generated from protobuf field .google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $state = 0; - /** - * Output only. Set if status == ERROR, to provide additional details. Will - * store the last 10 errors sorted with the most recent first. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - protected $properties; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of the connection: - * `projects/{project}/locations/{location}/connections/{name}`. - * @type int $state - * Required. The connection's state in its lifecycle. - * @type array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. Set if status == ERROR, to provide additional details. Will - * store the last 10 errors sorted with the most recent first. - * @type \Google\Cloud\Dlp\V2\CloudSqlProperties $cloud_sql - * Connect to a Cloud SQL instance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the connection: - * `projects/{project}/locations/{location}/connections/{name}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of the connection: - * `projects/{project}/locations/{location}/connections/{name}`. - * - * 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 connection's state in its lifecycle. - * - * Generated from protobuf field .google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Required. The connection's state in its lifecycle. - * - * Generated from protobuf field .google.privacy.dlp.v2.ConnectionState state = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ConnectionState::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. Set if status == ERROR, to provide additional details. Will - * store the last 10 errors sorted with the most recent first. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. Set if status == ERROR, to provide additional details. Will - * store the last 10 errors sorted with the most recent first. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * Connect to a Cloud SQL instance. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; - * @return \Google\Cloud\Dlp\V2\CloudSqlProperties|null - */ - public function getCloudSql() - { - return $this->readOneof(4); - } - - public function hasCloudSql() - { - return $this->hasOneof(4); - } - - /** - * Connect to a Cloud SQL instance. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlProperties cloud_sql = 4; - * @param \Google\Cloud\Dlp\V2\CloudSqlProperties $var - * @return $this - */ - public function setCloudSql($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudSqlProperties::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getProperties() - { - return $this->whichOneof("properties"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php deleted file mode 100644 index 84cec3815510..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ConnectionState.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.ConnectionState - */ -class ConnectionState -{ - /** - * Unused - * - * Generated from protobuf enum CONNECTION_STATE_UNSPECIFIED = 0; - */ - const CONNECTION_STATE_UNSPECIFIED = 0; - /** - * DLP automatically created this connection during an initial scan, and it is - * awaiting full configuration by a user. - * - * Generated from protobuf enum MISSING_CREDENTIALS = 1; - */ - const MISSING_CREDENTIALS = 1; - /** - * A configured connection that has not encountered any errors. - * - * Generated from protobuf enum AVAILABLE = 2; - */ - const AVAILABLE = 2; - /** - * A configured connection that encountered errors during its last use. It - * will not be used again until it is set to AVAILABLE. - * If the resolution requires external action, then the client must send a - * request to set the status to AVAILABLE when the connection is ready for - * use. If the resolution doesn't require external action, then any changes to - * the connection properties will automatically mark it as AVAILABLE. - * - * Generated from protobuf enum ERROR = 3; - */ - const ERROR = 3; - - private static $valueToName = [ - self::CONNECTION_STATE_UNSPECIFIED => 'CONNECTION_STATE_UNSPECIFIED', - self::MISSING_CREDENTIALS => 'MISSING_CREDENTIALS', - self::AVAILABLE => 'AVAILABLE', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php deleted file mode 100644 index 2c70c94a5360..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Container.php +++ /dev/null @@ -1,354 +0,0 @@ -google.privacy.dlp.v2.Container - */ -class Container extends \Google\Protobuf\Internal\Message -{ - /** - * Container type, for example BigQuery or Cloud Storage. - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Project where the finding was found. - * Can be different from the project that owns the finding. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * A string representation of the full container name. - * Examples: - * - BigQuery: 'Project:DataSetId.TableId' - * - Cloud Storage: 'gs://Bucket/folders/filename.txt' - * - * Generated from protobuf field string full_path = 3; - */ - protected $full_path = ''; - /** - * The root of the container. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the root is - * `dataset_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root - * is `gs://bucket` - * - * Generated from protobuf field string root_path = 4; - */ - protected $root_path = ''; - /** - * The rest of the path after the root. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is - * `table_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative - * path is `folder/filename.txt` - * - * Generated from protobuf field string relative_path = 5; - */ - protected $relative_path = ''; - /** - * Findings container modification timestamp, if applicable. For Cloud - * Storage, this field contains the last file modification timestamp. For a - * BigQuery table, this field contains the last_modified_time property. For - * Datastore, this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - */ - protected $update_time = null; - /** - * Findings container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string version = 7; - */ - protected $version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * Container type, for example BigQuery or Cloud Storage. - * @type string $project_id - * Project where the finding was found. - * Can be different from the project that owns the finding. - * @type string $full_path - * A string representation of the full container name. - * Examples: - * - BigQuery: 'Project:DataSetId.TableId' - * - Cloud Storage: 'gs://Bucket/folders/filename.txt' - * @type string $root_path - * The root of the container. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the root is - * `dataset_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root - * is `gs://bucket` - * @type string $relative_path - * The rest of the path after the root. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is - * `table_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative - * path is `folder/filename.txt` - * @type \Google\Protobuf\Timestamp $update_time - * Findings container modification timestamp, if applicable. For Cloud - * Storage, this field contains the last file modification timestamp. For a - * BigQuery table, this field contains the last_modified_time property. For - * Datastore, this field isn't populated. - * @type string $version - * Findings container version, if available - * ("generation" for Cloud Storage). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Container type, for example BigQuery or Cloud Storage. - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Container type, for example BigQuery or Cloud Storage. - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Project where the finding was found. - * Can be different from the project that owns the finding. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project where the finding was found. - * Can be different from the project that owns the finding. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * A string representation of the full container name. - * Examples: - * - BigQuery: 'Project:DataSetId.TableId' - * - Cloud Storage: 'gs://Bucket/folders/filename.txt' - * - * Generated from protobuf field string full_path = 3; - * @return string - */ - public function getFullPath() - { - return $this->full_path; - } - - /** - * A string representation of the full container name. - * Examples: - * - BigQuery: 'Project:DataSetId.TableId' - * - Cloud Storage: 'gs://Bucket/folders/filename.txt' - * - * Generated from protobuf field string full_path = 3; - * @param string $var - * @return $this - */ - public function setFullPath($var) - { - GPBUtil::checkString($var, True); - $this->full_path = $var; - - return $this; - } - - /** - * The root of the container. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the root is - * `dataset_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root - * is `gs://bucket` - * - * Generated from protobuf field string root_path = 4; - * @return string - */ - public function getRootPath() - { - return $this->root_path; - } - - /** - * The root of the container. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the root is - * `dataset_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the root - * is `gs://bucket` - * - * Generated from protobuf field string root_path = 4; - * @param string $var - * @return $this - */ - public function setRootPath($var) - { - GPBUtil::checkString($var, True); - $this->root_path = $var; - - return $this; - } - - /** - * The rest of the path after the root. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is - * `table_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative - * path is `folder/filename.txt` - * - * Generated from protobuf field string relative_path = 5; - * @return string - */ - public function getRelativePath() - { - return $this->relative_path; - } - - /** - * The rest of the path after the root. - * Examples: - * - For BigQuery table `project_id:dataset_id.table_id`, the relative path is - * `table_id` - * - For Cloud Storage file `gs://bucket/folder/filename.txt`, the relative - * path is `folder/filename.txt` - * - * Generated from protobuf field string relative_path = 5; - * @param string $var - * @return $this - */ - public function setRelativePath($var) - { - GPBUtil::checkString($var, True); - $this->relative_path = $var; - - return $this; - } - - /** - * Findings container modification timestamp, if applicable. For Cloud - * Storage, this field contains the last file modification timestamp. For a - * BigQuery table, this field contains the last_modified_time property. For - * Datastore, this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - * @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); - } - - /** - * Findings container modification timestamp, if applicable. For Cloud - * Storage, this field contains the last file modification timestamp. For a - * BigQuery table, this field contains the last_modified_time property. For - * Datastore, this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Findings container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string version = 7; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Findings container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string version = 7; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php deleted file mode 100644 index 272e11b07211..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentItem.php +++ /dev/null @@ -1,147 +0,0 @@ -google.privacy.dlp.v2.ContentItem - */ -class ContentItem extends \Google\Protobuf\Internal\Message -{ - protected $data_item; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $value - * String data to inspect or redact. - * @type \Google\Cloud\Dlp\V2\Table $table - * Structured content for inspection. See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table - * to learn more. - * @type \Google\Cloud\Dlp\V2\ByteContentItem $byte_item - * Content data to inspect or redact. Replaces `type` and `data`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * String data to inspect or redact. - * - * Generated from protobuf field string value = 3; - * @return string - */ - public function getValue() - { - return $this->readOneof(3); - } - - public function hasValue() - { - return $this->hasOneof(3); - } - - /** - * String data to inspect or redact. - * - * Generated from protobuf field string value = 3; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Structured content for inspection. See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table - * to learn more. - * - * Generated from protobuf field .google.privacy.dlp.v2.Table table = 4; - * @return \Google\Cloud\Dlp\V2\Table|null - */ - public function getTable() - { - return $this->readOneof(4); - } - - public function hasTable() - { - return $this->hasOneof(4); - } - - /** - * Structured content for inspection. See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text#inspecting_a_table - * to learn more. - * - * Generated from protobuf field .google.privacy.dlp.v2.Table table = 4; - * @param \Google\Cloud\Dlp\V2\Table $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Table::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Content data to inspect or redact. Replaces `type` and `data`. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 5; - * @return \Google\Cloud\Dlp\V2\ByteContentItem|null - */ - public function getByteItem() - { - return $this->readOneof(5); - } - - public function hasByteItem() - { - return $this->hasOneof(5); - } - - /** - * Content data to inspect or redact. Replaces `type` and `data`. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 5; - * @param \Google\Cloud\Dlp\V2\ByteContentItem $var - * @return $this - */ - public function setByteItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ByteContentItem::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getDataItem() - { - return $this->whichOneof("data_item"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php deleted file mode 100644 index 24ecf1d49145..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentLocation.php +++ /dev/null @@ -1,331 +0,0 @@ -google.privacy.dlp.v2.ContentLocation - */ -class ContentLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the container where the finding is located. - * The top level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * * Datastore namespace: {namespace} - * Nested names could be absent if the embedded object has no string - * identifier (for example, an image contained within a document). - * - * Generated from protobuf field string container_name = 1; - */ - protected $container_name = ''; - /** - * Finding container modification timestamp, if applicable. For Cloud Storage, - * this field contains the last file modification timestamp. For a BigQuery - * table, this field contains the last_modified_time property. For Datastore, - * this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 6; - */ - protected $container_timestamp = null; - /** - * Finding container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 7; - */ - protected $container_version = ''; - protected $location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $container_name - * Name of the container where the finding is located. - * The top level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * * Datastore namespace: {namespace} - * Nested names could be absent if the embedded object has no string - * identifier (for example, an image contained within a document). - * @type \Google\Cloud\Dlp\V2\RecordLocation $record_location - * Location within a row or record of a database table. - * @type \Google\Cloud\Dlp\V2\ImageLocation $image_location - * Location within an image's pixels. - * @type \Google\Cloud\Dlp\V2\DocumentLocation $document_location - * Location data for document files. - * @type \Google\Cloud\Dlp\V2\MetadataLocation $metadata_location - * Location within the metadata for inspected content. - * @type \Google\Protobuf\Timestamp $container_timestamp - * Finding container modification timestamp, if applicable. For Cloud Storage, - * this field contains the last file modification timestamp. For a BigQuery - * table, this field contains the last_modified_time property. For Datastore, - * this field isn't populated. - * @type string $container_version - * Finding container version, if available - * ("generation" for Cloud Storage). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Name of the container where the finding is located. - * The top level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * * Datastore namespace: {namespace} - * Nested names could be absent if the embedded object has no string - * identifier (for example, an image contained within a document). - * - * Generated from protobuf field string container_name = 1; - * @return string - */ - public function getContainerName() - { - return $this->container_name; - } - - /** - * Name of the container where the finding is located. - * The top level name is the source file name or table name. Names of some - * common storage containers are formatted as follows: - * * BigQuery tables: `{project_id}:{dataset_id}.{table_id}` - * * Cloud Storage files: `gs://{bucket}/{path}` - * * Datastore namespace: {namespace} - * Nested names could be absent if the embedded object has no string - * identifier (for example, an image contained within a document). - * - * Generated from protobuf field string container_name = 1; - * @param string $var - * @return $this - */ - public function setContainerName($var) - { - GPBUtil::checkString($var, True); - $this->container_name = $var; - - return $this; - } - - /** - * Location within a row or record of a database table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordLocation record_location = 2; - * @return \Google\Cloud\Dlp\V2\RecordLocation|null - */ - public function getRecordLocation() - { - return $this->readOneof(2); - } - - public function hasRecordLocation() - { - return $this->hasOneof(2); - } - - /** - * Location within a row or record of a database table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordLocation record_location = 2; - * @param \Google\Cloud\Dlp\V2\RecordLocation $var - * @return $this - */ - public function setRecordLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordLocation::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Location within an image's pixels. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageLocation image_location = 3; - * @return \Google\Cloud\Dlp\V2\ImageLocation|null - */ - public function getImageLocation() - { - return $this->readOneof(3); - } - - public function hasImageLocation() - { - return $this->hasOneof(3); - } - - /** - * Location within an image's pixels. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageLocation image_location = 3; - * @param \Google\Cloud\Dlp\V2\ImageLocation $var - * @return $this - */ - public function setImageLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageLocation::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Location data for document files. - * - * Generated from protobuf field .google.privacy.dlp.v2.DocumentLocation document_location = 5; - * @return \Google\Cloud\Dlp\V2\DocumentLocation|null - */ - public function getDocumentLocation() - { - return $this->readOneof(5); - } - - public function hasDocumentLocation() - { - return $this->hasOneof(5); - } - - /** - * Location data for document files. - * - * Generated from protobuf field .google.privacy.dlp.v2.DocumentLocation document_location = 5; - * @param \Google\Cloud\Dlp\V2\DocumentLocation $var - * @return $this - */ - public function setDocumentLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DocumentLocation::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Location within the metadata for inspected content. - * - * Generated from protobuf field .google.privacy.dlp.v2.MetadataLocation metadata_location = 8; - * @return \Google\Cloud\Dlp\V2\MetadataLocation|null - */ - public function getMetadataLocation() - { - return $this->readOneof(8); - } - - public function hasMetadataLocation() - { - return $this->hasOneof(8); - } - - /** - * Location within the metadata for inspected content. - * - * Generated from protobuf field .google.privacy.dlp.v2.MetadataLocation metadata_location = 8; - * @param \Google\Cloud\Dlp\V2\MetadataLocation $var - * @return $this - */ - public function setMetadataLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\MetadataLocation::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Finding container modification timestamp, if applicable. For Cloud Storage, - * this field contains the last file modification timestamp. For a BigQuery - * table, this field contains the last_modified_time property. For Datastore, - * this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getContainerTimestamp() - { - return $this->container_timestamp; - } - - public function hasContainerTimestamp() - { - return isset($this->container_timestamp); - } - - public function clearContainerTimestamp() - { - unset($this->container_timestamp); - } - - /** - * Finding container modification timestamp, if applicable. For Cloud Storage, - * this field contains the last file modification timestamp. For a BigQuery - * table, this field contains the last_modified_time property. For Datastore, - * this field isn't populated. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setContainerTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->container_timestamp = $var; - - return $this; - } - - /** - * Finding container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 7; - * @return string - */ - public function getContainerVersion() - { - return $this->container_version; - } - - /** - * Finding container version, if available - * ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 7; - * @param string $var - * @return $this - */ - public function setContainerVersion($var) - { - GPBUtil::checkString($var, True); - $this->container_version = $var; - - return $this; - } - - /** - * @return string - */ - public function getLocation() - { - return $this->whichOneof("location"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php deleted file mode 100644 index 69a85fe92312..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ContentOption.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.ContentOption - */ -class ContentOption -{ - /** - * Includes entire content of a file or a data stream. - * - * Generated from protobuf enum CONTENT_UNSPECIFIED = 0; - */ - const CONTENT_UNSPECIFIED = 0; - /** - * Text content within the data, excluding any metadata. - * - * Generated from protobuf enum CONTENT_TEXT = 1; - */ - const CONTENT_TEXT = 1; - /** - * Images found in the data. - * - * Generated from protobuf enum CONTENT_IMAGE = 2; - */ - const CONTENT_IMAGE = 2; - - private static $valueToName = [ - self::CONTENT_UNSPECIFIED => 'CONTENT_UNSPECIFIED', - self::CONTENT_TEXT => 'CONTENT_TEXT', - self::CONTENT_IMAGE => 'CONTENT_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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php deleted file mode 100644 index 1ccdbf99e85c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateConnectionRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.privacy.dlp.v2.CreateConnectionRequest - */ -class CreateConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The connection resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $connection = null; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization): - * - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\Connection $connection Required. The connection resource. - * - * @return \Google\Cloud\Dlp\V2\CreateConnectionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\Connection $connection): self - { - return (new self()) - ->setParent($parent) - ->setConnection($connection); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * @type \Google\Cloud\Dlp\V2\Connection $connection - * Required. The connection resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The connection resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\Connection|null - */ - public function getConnection() - { - return $this->connection; - } - - public function hasConnection() - { - return isset($this->connection); - } - - public function clearConnection() - { - unset($this->connection); - } - - /** - * Required. The connection resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\Connection $var - * @return $this - */ - public function setConnection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Connection::class); - $this->connection = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php deleted file mode 100644 index 5a0b59dc29be..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDeidentifyTemplateRequest.php +++ /dev/null @@ -1,286 +0,0 @@ -google.privacy.dlp.v2.CreateDeidentifyTemplateRequest - */ -class CreateDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DeidentifyTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $deidentify_template = null; - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - */ - protected $template_id = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate Required. The DeidentifyTemplate to create. - * - * @return \Google\Cloud\Dlp\V2\CreateDeidentifyTemplateRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate): self - { - return (new self()) - ->setParent($parent) - ->setDeidentifyTemplate($deidentifyTemplate); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentify_template - * Required. The DeidentifyTemplate to create. - * @type string $template_id - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 DeidentifyTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null - */ - public function getDeidentifyTemplate() - { - return $this->deidentify_template; - } - - public function hasDeidentifyTemplate() - { - return isset($this->deidentify_template); - } - - public function clearDeidentifyTemplate() - { - unset($this->deidentify_template); - } - - /** - * Required. The DeidentifyTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var - * @return $this - */ - public function setDeidentifyTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->deidentify_template = $var; - - return $this; - } - - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - * @return string - */ - public function getTemplateId() - { - return $this->template_id; - } - - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - * @param string $var - * @return $this - */ - public function setTemplateId($var) - { - GPBUtil::checkString($var, True); - $this->template_id = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php deleted file mode 100644 index 295e25056a4f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDiscoveryConfigRequest.php +++ /dev/null @@ -1,227 +0,0 @@ -google.privacy.dlp.v2.CreateDiscoveryConfigRequest - */ -class CreateDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The DiscoveryConfig to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $discovery_config = null; - /** - * The config ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string config_id = 3; - */ - protected $config_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization): - * - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig Required. The DiscoveryConfig to create. - * - * @return \Google\Cloud\Dlp\V2\CreateDiscoveryConfigRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig): self - { - return (new self()) - ->setParent($parent) - ->setDiscoveryConfig($discoveryConfig); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\DiscoveryConfig $discovery_config - * Required. The DiscoveryConfig to create. - * @type string $config_id - * The config ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on the scope of the request - * (project or organization): - * + Projects scope: - * `projects/{project_id}/locations/{location_id}` - * + Organizations scope: - * `organizations/{org_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 DiscoveryConfig to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryConfig|null - */ - public function getDiscoveryConfig() - { - return $this->discovery_config; - } - - public function hasDiscoveryConfig() - { - return isset($this->discovery_config); - } - - public function clearDiscoveryConfig() - { - unset($this->discovery_config); - } - - /** - * Required. The DiscoveryConfig to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $var - * @return $this - */ - public function setDiscoveryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); - $this->discovery_config = $var; - - return $this; - } - - /** - * The config ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string config_id = 3; - * @return string - */ - public function getConfigId() - { - return $this->config_id; - } - - /** - * The config ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string config_id = 3; - * @param string $var - * @return $this - */ - public function setConfigId($var) - { - GPBUtil::checkString($var, True); - $this->config_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php deleted file mode 100644 index 2ebdcf89fd98..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateDlpJobRequest.php +++ /dev/null @@ -1,334 +0,0 @@ -google.privacy.dlp.v2.CreateDlpJobRequest - */ -class CreateDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The job id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string job_id = 4; - */ - protected $job_id = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - */ - protected $location_id = ''; - protected $job; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::projectName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\InspectJobConfig $inspectJob An inspection job scans a storage repository for InfoTypes. - * - * @return \Google\Cloud\Dlp\V2\CreateDlpJobRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\InspectJobConfig $inspectJob): self - { - return (new self()) - ->setParent($parent) - ->setInspectJob($inspectJob); - } - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::projectName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $riskJob A risk analysis job calculates re-identification risk metrics for a - * BigQuery table. - * - * @return \Google\Cloud\Dlp\V2\CreateDlpJobRequest - * - * @experimental - */ - public static function buildFromParentRiskJob(string $parent, \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $riskJob): self - { - return (new self()) - ->setParent($parent) - ->setRiskJob($riskJob); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\InspectJobConfig $inspect_job - * An inspection job scans a storage repository for InfoTypes. - * @type \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $risk_job - * A risk analysis job calculates re-identification risk metrics for a - * BigQuery table. - * @type string $job_id - * The job id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * An inspection job scans a storage repository for InfoTypes. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2; - * @return \Google\Cloud\Dlp\V2\InspectJobConfig|null - */ - public function getInspectJob() - { - return $this->readOneof(2); - } - - public function hasInspectJob() - { - return $this->hasOneof(2); - } - - /** - * An inspection job scans a storage repository for InfoTypes. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2; - * @param \Google\Cloud\Dlp\V2\InspectJobConfig $var - * @return $this - */ - public function setInspectJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectJobConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A risk analysis job calculates re-identification risk metrics for a - * BigQuery table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3; - * @return \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig|null - */ - public function getRiskJob() - { - return $this->readOneof(3); - } - - public function hasRiskJob() - { - return $this->hasOneof(3); - } - - /** - * A risk analysis job calculates re-identification risk metrics for a - * BigQuery table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3; - * @param \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig $var - * @return $this - */ - public function setRiskJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RiskAnalysisJobConfig::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The job id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string job_id = 4; - * @return string - */ - public function getJobId() - { - return $this->job_id; - } - - /** - * The job id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string job_id = 4; - * @param string $var - * @return $this - */ - public function setJobId($var) - { - GPBUtil::checkString($var, True); - $this->job_id = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - - /** - * @return string - */ - public function getJob() - { - return $this->whichOneof("job"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php deleted file mode 100644 index a6afcc647fa6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateInspectTemplateRequest.php +++ /dev/null @@ -1,286 +0,0 @@ -google.privacy.dlp.v2.CreateInspectTemplateRequest - */ -class CreateInspectTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The InspectTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $inspect_template = null; - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - */ - protected $template_id = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate Required. The InspectTemplate to create. - * - * @return \Google\Cloud\Dlp\V2\CreateInspectTemplateRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate): self - { - return (new self()) - ->setParent($parent) - ->setInspectTemplate($inspectTemplate); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\InspectTemplate $inspect_template - * Required. The InspectTemplate to create. - * @type string $template_id - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 InspectTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\InspectTemplate|null - */ - public function getInspectTemplate() - { - return $this->inspect_template; - } - - public function hasInspectTemplate() - { - return isset($this->inspect_template); - } - - public function clearInspectTemplate() - { - unset($this->inspect_template); - } - - /** - * Required. The InspectTemplate to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\InspectTemplate $var - * @return $this - */ - public function setInspectTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectTemplate::class); - $this->inspect_template = $var; - - return $this; - } - - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - * @return string - */ - public function getTemplateId() - { - return $this->template_id; - } - - /** - * The template id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string template_id = 3; - * @param string $var - * @return $this - */ - public function setTemplateId($var) - { - GPBUtil::checkString($var, True); - $this->template_id = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php deleted file mode 100644 index adfae7262776..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateJobTriggerRequest.php +++ /dev/null @@ -1,266 +0,0 @@ -google.privacy.dlp.v2.CreateJobTriggerRequest - */ -class CreateJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The JobTrigger to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $job_trigger = null; - /** - * The trigger id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string trigger_id = 3; - */ - protected $trigger_id = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::projectName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger Required. The JobTrigger to create. - * - * @return \Google\Cloud\Dlp\V2\CreateJobTriggerRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger): self - { - return (new self()) - ->setParent($parent) - ->setJobTrigger($jobTrigger); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\JobTrigger $job_trigger - * Required. The JobTrigger to create. - * @type string $trigger_id - * The trigger id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 JobTrigger to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\JobTrigger|null - */ - public function getJobTrigger() - { - return $this->job_trigger; - } - - public function hasJobTrigger() - { - return isset($this->job_trigger); - } - - public function clearJobTrigger() - { - unset($this->job_trigger); - } - - /** - * Required. The JobTrigger to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\JobTrigger $var - * @return $this - */ - public function setJobTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\JobTrigger::class); - $this->job_trigger = $var; - - return $this; - } - - /** - * The trigger id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string trigger_id = 3; - * @return string - */ - public function getTriggerId() - { - return $this->trigger_id; - } - - /** - * The trigger id can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string trigger_id = 3; - * @param string $var - * @return $this - */ - public function setTriggerId($var) - { - GPBUtil::checkString($var, True); - $this->trigger_id = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php deleted file mode 100644 index e222f3014b2c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CreateStoredInfoTypeRequest.php +++ /dev/null @@ -1,286 +0,0 @@ -google.privacy.dlp.v2.CreateStoredInfoTypeRequest - */ -class CreateStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Configuration of the storedInfoType to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $config = null; - /** - * The storedInfoType ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string stored_info_type_id = 3; - */ - protected $stored_info_type_id = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config Required. Configuration of the storedInfoType to create. - * - * @return \Google\Cloud\Dlp\V2\CreateStoredInfoTypeRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config): self - { - return (new self()) - ->setParent($parent) - ->setConfig($config); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config - * Required. Configuration of the storedInfoType to create. - * @type string $stored_info_type_id - * The storedInfoType ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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. Configuration of the storedInfoType to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\StoredInfoTypeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Required. Configuration of the storedInfoType to create. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * The storedInfoType ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string stored_info_type_id = 3; - * @return string - */ - public function getStoredInfoTypeId() - { - return $this->stored_info_type_id; - } - - /** - * The storedInfoType ID can contain uppercase and lowercase letters, - * numbers, and hyphens; that is, it must match the regular - * expression: `[a-zA-Z\d-_]+`. The maximum length is 100 - * characters. Can be empty to allow the system to generate one. - * - * Generated from protobuf field string stored_info_type_id = 3; - * @param string $var - * @return $this - */ - public function setStoredInfoTypeId($var) - { - GPBUtil::checkString($var, True); - $this->stored_info_type_id = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 4; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php deleted file mode 100644 index fc425a4a7ee1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoDeterministicConfig.php +++ /dev/null @@ -1,327 +0,0 @@ -google.privacy.dlp.v2.CryptoDeterministicConfig - */ -class CryptoDeterministicConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The key used by the encryption function. For deterministic encryption - * using AES-SIV, the provided key is internally expanded to 64 bytes prior to - * use. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - */ - protected $crypto_key = null; - /** - * The custom info type to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom info type followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: {info type name}({surrogate character count}):{surrogate} - * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom info type 'Surrogate'. This facilitates reversal of the - * surrogate when it occurs in free text. - * Note: For record transformations where the entire cell in a table is being - * transformed, surrogates are not mandatory. Surrogates are used to denote - * the location of the token and are necessary for re-identification in free - * form text. - * In order for inspection to work properly, the name of this info type must - * not occur naturally anywhere in your data; otherwise, inspection may either - * - reverse a surrogate that does not correspond to an actual identifier - * - be unable to parse the surrogate and result in an error - * Therefore, choose your custom info type name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * â§MY_TOKEN_TYPE. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 2; - */ - protected $surrogate_info_type = null; - /** - * A context may be used for higher security and maintaining - * referential integrity such that the same identifier in two different - * contexts will be given a distinct surrogate. The context is appended to - * plaintext value being encrypted. On decryption the provided context is - * validated against the value used during encryption. If a context was - * provided during encryption, same context must be provided during decryption - * as well. - * If the context is not set, plaintext would be used as is for encryption. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 2. the field is not present when transforming a given value, - * plaintext would be used as is for encryption. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - */ - protected $context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key - * The key used by the encryption function. For deterministic encryption - * using AES-SIV, the provided key is internally expanded to 64 bytes prior to - * use. - * @type \Google\Cloud\Dlp\V2\InfoType $surrogate_info_type - * The custom info type to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom info type followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: {info type name}({surrogate character count}):{surrogate} - * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom info type 'Surrogate'. This facilitates reversal of the - * surrogate when it occurs in free text. - * Note: For record transformations where the entire cell in a table is being - * transformed, surrogates are not mandatory. Surrogates are used to denote - * the location of the token and are necessary for re-identification in free - * form text. - * In order for inspection to work properly, the name of this info type must - * not occur naturally anywhere in your data; otherwise, inspection may either - * - reverse a surrogate that does not correspond to an actual identifier - * - be unable to parse the surrogate and result in an error - * Therefore, choose your custom info type name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * â§MY_TOKEN_TYPE. - * @type \Google\Cloud\Dlp\V2\FieldId $context - * A context may be used for higher security and maintaining - * referential integrity such that the same identifier in two different - * contexts will be given a distinct surrogate. The context is appended to - * plaintext value being encrypted. On decryption the provided context is - * validated against the value used during encryption. If a context was - * provided during encryption, same context must be provided during decryption - * as well. - * If the context is not set, plaintext would be used as is for encryption. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 2. the field is not present when transforming a given value, - * plaintext would be used as is for encryption. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The key used by the encryption function. For deterministic encryption - * using AES-SIV, the provided key is internally expanded to 64 bytes prior to - * use. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - * @return \Google\Cloud\Dlp\V2\CryptoKey|null - */ - public function getCryptoKey() - { - return $this->crypto_key; - } - - public function hasCryptoKey() - { - return isset($this->crypto_key); - } - - public function clearCryptoKey() - { - unset($this->crypto_key); - } - - /** - * The key used by the encryption function. For deterministic encryption - * using AES-SIV, the provided key is internally expanded to 64 bytes prior to - * use. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - * @param \Google\Cloud\Dlp\V2\CryptoKey $var - * @return $this - */ - public function setCryptoKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); - $this->crypto_key = $var; - - return $this; - } - - /** - * The custom info type to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom info type followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: {info type name}({surrogate character count}):{surrogate} - * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom info type 'Surrogate'. This facilitates reversal of the - * surrogate when it occurs in free text. - * Note: For record transformations where the entire cell in a table is being - * transformed, surrogates are not mandatory. Surrogates are used to denote - * the location of the token and are necessary for re-identification in free - * form text. - * In order for inspection to work properly, the name of this info type must - * not occur naturally anywhere in your data; otherwise, inspection may either - * - reverse a surrogate that does not correspond to an actual identifier - * - be unable to parse the surrogate and result in an error - * Therefore, choose your custom info type name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * â§MY_TOKEN_TYPE. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 2; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getSurrogateInfoType() - { - return $this->surrogate_info_type; - } - - public function hasSurrogateInfoType() - { - return isset($this->surrogate_info_type); - } - - public function clearSurrogateInfoType() - { - unset($this->surrogate_info_type); - } - - /** - * The custom info type to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom info type followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: {info type name}({surrogate character count}):{surrogate} - * For example, if the name of custom info type is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom info type 'Surrogate'. This facilitates reversal of the - * surrogate when it occurs in free text. - * Note: For record transformations where the entire cell in a table is being - * transformed, surrogates are not mandatory. Surrogates are used to denote - * the location of the token and are necessary for re-identification in free - * form text. - * In order for inspection to work properly, the name of this info type must - * not occur naturally anywhere in your data; otherwise, inspection may either - * - reverse a surrogate that does not correspond to an actual identifier - * - be unable to parse the surrogate and result in an error - * Therefore, choose your custom info type name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * â§MY_TOKEN_TYPE. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 2; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setSurrogateInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->surrogate_info_type = $var; - - return $this; - } - - /** - * A context may be used for higher security and maintaining - * referential integrity such that the same identifier in two different - * contexts will be given a distinct surrogate. The context is appended to - * plaintext value being encrypted. On decryption the provided context is - * validated against the value used during encryption. If a context was - * provided during encryption, same context must be provided during decryption - * as well. - * If the context is not set, plaintext would be used as is for encryption. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 2. the field is not present when transforming a given value, - * plaintext would be used as is for encryption. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * A context may be used for higher security and maintaining - * referential integrity such that the same identifier in two different - * contexts will be given a distinct surrogate. The context is appended to - * plaintext value being encrypted. On decryption the provided context is - * validated against the value used during encryption. If a context was - * provided during encryption, same context must be provided during decryption - * as well. - * If the context is not set, plaintext would be used as is for encryption. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 2. the field is not present when transforming a given value, - * plaintext would be used as is for encryption. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php deleted file mode 100644 index 3b749b878b35..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoHashConfig.php +++ /dev/null @@ -1,84 +0,0 @@ -google.privacy.dlp.v2.CryptoHashConfig - */ -class CryptoHashConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The key used by the hash function. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - */ - protected $crypto_key = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key - * The key used by the hash function. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The key used by the hash function. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - * @return \Google\Cloud\Dlp\V2\CryptoKey|null - */ - public function getCryptoKey() - { - return $this->crypto_key; - } - - public function hasCryptoKey() - { - return isset($this->crypto_key); - } - - public function clearCryptoKey() - { - unset($this->crypto_key); - } - - /** - * The key used by the hash function. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1; - * @param \Google\Cloud\Dlp\V2\CryptoKey $var - * @return $this - */ - public function setCryptoKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); - $this->crypto_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php deleted file mode 100644 index 403e1b4170a0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoKey.php +++ /dev/null @@ -1,146 +0,0 @@ -google.privacy.dlp.v2.CryptoKey - */ -class CryptoKey extends \Google\Protobuf\Internal\Message -{ - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TransientCryptoKey $transient - * Transient crypto key - * @type \Google\Cloud\Dlp\V2\UnwrappedCryptoKey $unwrapped - * Unwrapped crypto key - * @type \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey $kms_wrapped - * Key wrapped using Cloud KMS - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Transient crypto key - * - * Generated from protobuf field .google.privacy.dlp.v2.TransientCryptoKey transient = 1; - * @return \Google\Cloud\Dlp\V2\TransientCryptoKey|null - */ - public function getTransient() - { - return $this->readOneof(1); - } - - public function hasTransient() - { - return $this->hasOneof(1); - } - - /** - * Transient crypto key - * - * Generated from protobuf field .google.privacy.dlp.v2.TransientCryptoKey transient = 1; - * @param \Google\Cloud\Dlp\V2\TransientCryptoKey $var - * @return $this - */ - public function setTransient($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransientCryptoKey::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Unwrapped crypto key - * - * Generated from protobuf field .google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2; - * @return \Google\Cloud\Dlp\V2\UnwrappedCryptoKey|null - */ - public function getUnwrapped() - { - return $this->readOneof(2); - } - - public function hasUnwrapped() - { - return $this->hasOneof(2); - } - - /** - * Unwrapped crypto key - * - * Generated from protobuf field .google.privacy.dlp.v2.UnwrappedCryptoKey unwrapped = 2; - * @param \Google\Cloud\Dlp\V2\UnwrappedCryptoKey $var - * @return $this - */ - public function setUnwrapped($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\UnwrappedCryptoKey::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Key wrapped using Cloud KMS - * - * Generated from protobuf field .google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3; - * @return \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey|null - */ - public function getKmsWrapped() - { - return $this->readOneof(3); - } - - public function hasKmsWrapped() - { - return $this->hasOneof(3); - } - - /** - * Key wrapped using Cloud KMS - * - * Generated from protobuf field .google.privacy.dlp.v2.KmsWrappedCryptoKey kms_wrapped = 3; - * @param \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey $var - * @return $this - */ - public function setKmsWrapped($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\KmsWrappedCryptoKey::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php deleted file mode 100644 index 0a8bbf1ec03e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig.php +++ /dev/null @@ -1,445 +0,0 @@ -google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig - */ -class CryptoReplaceFfxFpeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The key used by the encryption algorithm. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $crypto_key = null; - /** - * The 'tweak', a context may be used for higher security since the same - * identifier in two different contexts won't be given the same surrogate. If - * the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 2; - */ - protected $context = null; - /** - * The custom infoType to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom infoType followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: info_type_name(surrogate_character_count):surrogate - * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom infoType - * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). - * This facilitates reversal of the surrogate when it occurs in free text. - * In order for inspection to work properly, the name of this infoType must - * not occur naturally anywhere in your data; otherwise, inspection may - * find a surrogate that does not correspond to an actual identifier. - * Therefore, choose your custom infoType name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * â§MY_TOKEN_TYPE - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 8; - */ - protected $surrogate_info_type = null; - protected $alphabet; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key - * Required. The key used by the encryption algorithm. - * @type \Google\Cloud\Dlp\V2\FieldId $context - * The 'tweak', a context may be used for higher security since the same - * identifier in two different contexts won't be given the same surrogate. If - * the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * @type int $common_alphabet - * Common alphabets. - * @type string $custom_alphabet - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 95]. - * This must be encoded as ASCII. - * The order of characters does not matter. - * The full list of allowed characters is: - * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` - * @type int $radix - * The native way to select the alphabet. Must be in the range [2, 95]. - * @type \Google\Cloud\Dlp\V2\InfoType $surrogate_info_type - * The custom infoType to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom infoType followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: info_type_name(surrogate_character_count):surrogate - * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom infoType - * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). - * This facilitates reversal of the surrogate when it occurs in free text. - * In order for inspection to work properly, the name of this infoType must - * not occur naturally anywhere in your data; otherwise, inspection may - * find a surrogate that does not correspond to an actual identifier. - * Therefore, choose your custom infoType name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * â§MY_TOKEN_TYPE - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The key used by the encryption algorithm. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\CryptoKey|null - */ - public function getCryptoKey() - { - return $this->crypto_key; - } - - public function hasCryptoKey() - { - return isset($this->crypto_key); - } - - public function clearCryptoKey() - { - unset($this->crypto_key); - } - - /** - * Required. The key used by the encryption algorithm. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\CryptoKey $var - * @return $this - */ - public function setCryptoKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); - $this->crypto_key = $var; - - return $this; - } - - /** - * The 'tweak', a context may be used for higher security since the same - * identifier in two different contexts won't be given the same surrogate. If - * the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 2; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * The 'tweak', a context may be used for higher security since the same - * identifier in two different contexts won't be given the same surrogate. If - * the context is not set, a default tweak will be used. - * If the context is set but: - * 1. there is no record present when transforming a given value or - * 1. the field is not present when transforming a given value, - * a default tweak will be used. - * Note that case (1) is expected when an `InfoTypeTransformation` is - * applied to both structured and unstructured `ContentItem`s. - * Currently, the referenced field may be of value type integer or string. - * The tweak is constructed as a sequence of bytes in big endian byte order - * such that: - * - a 64 bit integer is encoded followed by a single byte of value 1 - * - a string is encoded in UTF-8 format followed by a single byte of value 2 - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 2; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->context = $var; - - return $this; - } - - /** - * Common alphabets. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4; - * @return int - */ - public function getCommonAlphabet() - { - return $this->readOneof(4); - } - - public function hasCommonAlphabet() - { - return $this->hasOneof(4); - } - - /** - * Common alphabets. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet common_alphabet = 4; - * @param int $var - * @return $this - */ - public function setCommonAlphabet($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig\FfxCommonNativeAlphabet::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 95]. - * This must be encoded as ASCII. - * The order of characters does not matter. - * The full list of allowed characters is: - * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` - * - * Generated from protobuf field string custom_alphabet = 5; - * @return string - */ - public function getCustomAlphabet() - { - return $this->readOneof(5); - } - - public function hasCustomAlphabet() - { - return $this->hasOneof(5); - } - - /** - * This is supported by mapping these to the alphanumeric characters - * that the FFX mode natively supports. This happens before/after - * encryption/decryption. - * Each character listed must appear only once. - * Number of characters must be in the range [2, 95]. - * This must be encoded as ASCII. - * The order of characters does not matter. - * The full list of allowed characters is: - * ``0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz~`!@#$%^&*()_-+={[}]|\:;"'<,>.?/`` - * - * Generated from protobuf field string custom_alphabet = 5; - * @param string $var - * @return $this - */ - public function setCustomAlphabet($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * The native way to select the alphabet. Must be in the range [2, 95]. - * - * Generated from protobuf field int32 radix = 6; - * @return int - */ - public function getRadix() - { - return $this->readOneof(6); - } - - public function hasRadix() - { - return $this->hasOneof(6); - } - - /** - * The native way to select the alphabet. Must be in the range [2, 95]. - * - * Generated from protobuf field int32 radix = 6; - * @param int $var - * @return $this - */ - public function setRadix($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The custom infoType to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom infoType followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: info_type_name(surrogate_character_count):surrogate - * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom infoType - * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). - * This facilitates reversal of the surrogate when it occurs in free text. - * In order for inspection to work properly, the name of this infoType must - * not occur naturally anywhere in your data; otherwise, inspection may - * find a surrogate that does not correspond to an actual identifier. - * Therefore, choose your custom infoType name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * â§MY_TOKEN_TYPE - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 8; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getSurrogateInfoType() - { - return $this->surrogate_info_type; - } - - public function hasSurrogateInfoType() - { - return isset($this->surrogate_info_type); - } - - public function clearSurrogateInfoType() - { - unset($this->surrogate_info_type); - } - - /** - * The custom infoType to annotate the surrogate with. - * This annotation will be applied to the surrogate by prefixing it with - * the name of the custom infoType followed by the number of - * characters comprising the surrogate. The following scheme defines the - * format: info_type_name(surrogate_character_count):surrogate - * For example, if the name of custom infoType is 'MY_TOKEN_INFO_TYPE' and - * the surrogate is 'abc', the full replacement value - * will be: 'MY_TOKEN_INFO_TYPE(3):abc' - * This annotation identifies the surrogate when inspecting content using the - * custom infoType - * [`SurrogateType`](https://cloud.google.com/sensitive-data-protection/docs/reference/rest/v2/InspectConfig#surrogatetype). - * This facilitates reversal of the surrogate when it occurs in free text. - * In order for inspection to work properly, the name of this infoType must - * not occur naturally anywhere in your data; otherwise, inspection may - * find a surrogate that does not correspond to an actual identifier. - * Therefore, choose your custom infoType name carefully after considering - * what your data looks like. One way to select a name that has a high chance - * of yielding reliable detection is to include one or more unicode characters - * that are highly improbable to exist in your data. - * For example, assuming your data is entered from a regular ASCII keyboard, - * the symbol with the hex code point 29DD might be used like so: - * â§MY_TOKEN_TYPE - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType surrogate_info_type = 8; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setSurrogateInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->surrogate_info_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getAlphabet() - { - return $this->whichOneof("alphabet"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php deleted file mode 100644 index c08c85b4dd25..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CryptoReplaceFfxFpeConfig/FfxCommonNativeAlphabet.php +++ /dev/null @@ -1,80 +0,0 @@ -google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig.FfxCommonNativeAlphabet - */ -class FfxCommonNativeAlphabet -{ - /** - * Unused. - * - * Generated from protobuf enum FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0; - */ - const FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED = 0; - /** - * `[0-9]` (radix of 10) - * - * Generated from protobuf enum NUMERIC = 1; - */ - const NUMERIC = 1; - /** - * `[0-9A-F]` (radix of 16) - * - * Generated from protobuf enum HEXADECIMAL = 2; - */ - const HEXADECIMAL = 2; - /** - * `[0-9A-Z]` (radix of 36) - * - * Generated from protobuf enum UPPER_CASE_ALPHA_NUMERIC = 3; - */ - const UPPER_CASE_ALPHA_NUMERIC = 3; - /** - * `[0-9A-Za-z]` (radix of 62) - * - * Generated from protobuf enum ALPHA_NUMERIC = 4; - */ - const ALPHA_NUMERIC = 4; - - private static $valueToName = [ - self::FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED => 'FFX_COMMON_NATIVE_ALPHABET_UNSPECIFIED', - self::NUMERIC => 'NUMERIC', - self::HEXADECIMAL => 'HEXADECIMAL', - self::UPPER_CASE_ALPHA_NUMERIC => 'UPPER_CASE_ALPHA_NUMERIC', - self::ALPHA_NUMERIC => 'ALPHA_NUMERIC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FfxCommonNativeAlphabet::class, \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig_FfxCommonNativeAlphabet::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php deleted file mode 100644 index 741a2b367937..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType.php +++ /dev/null @@ -1,427 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType - */ -class CustomInfoType extends \Google\Protobuf\Internal\Message -{ - /** - * CustomInfoType can either be a new infoType, or an extension of built-in - * infoType, when the name matches one of existing infoTypes and that infoType - * is specified in `InspectContent.info_types` field. Specifying the latter - * adds findings to the one detected by the system. If built-in info type is - * not specified in `InspectContent.info_types` list then the name is treated - * as a custom info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Likelihood to return for this CustomInfoType. This base value can be - * altered by a detection rule if the finding meets the criteria specified by - * the rule. Defaults to `VERY_LIKELY` if not specified. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 6; - */ - protected $likelihood = 0; - /** - * Set of detection rules to apply to all findings of this CustomInfoType. - * Rules are applied in order that they are specified. Not supported for the - * `surrogate_type` CustomInfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7; - */ - private $detection_rules; - /** - * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding - * to be returned. It still can be used for rules matching. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; - */ - protected $exclusion_type = 0; - /** - * Sensitivity for this CustomInfoType. If this CustomInfoType extends an - * existing InfoType, the sensitivity here will take precedence over that of - * the original InfoType. If unset for a CustomInfoType, it will default to - * HIGH. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9; - */ - protected $sensitivity_score = null; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * CustomInfoType can either be a new infoType, or an extension of built-in - * infoType, when the name matches one of existing infoTypes and that infoType - * is specified in `InspectContent.info_types` field. Specifying the latter - * adds findings to the one detected by the system. If built-in info type is - * not specified in `InspectContent.info_types` list then the name is treated - * as a custom info type. - * @type int $likelihood - * Likelihood to return for this CustomInfoType. This base value can be - * altered by a detection rule if the finding meets the criteria specified by - * the rule. Defaults to `VERY_LIKELY` if not specified. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $dictionary - * A list of phrases to detect as a CustomInfoType. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $regex - * Regular expression based CustomInfoType. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType $surrogate_type - * Message for detecting output from deidentification transformations that - * support reversing. - * @type \Google\Cloud\Dlp\V2\StoredType $stored_type - * Load an existing `StoredInfoType` resource for use in - * `InspectDataSource`. Not currently supported in `InspectContent`. - * @type array<\Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule>|\Google\Protobuf\Internal\RepeatedField $detection_rules - * Set of detection rules to apply to all findings of this CustomInfoType. - * Rules are applied in order that they are specified. Not supported for the - * `surrogate_type` CustomInfoType. - * @type int $exclusion_type - * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding - * to be returned. It still can be used for rules matching. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * Sensitivity for this CustomInfoType. If this CustomInfoType extends an - * existing InfoType, the sensitivity here will take precedence over that of - * the original InfoType. If unset for a CustomInfoType, it will default to - * HIGH. - * This only applies to data profiling. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * CustomInfoType can either be a new infoType, or an extension of built-in - * infoType, when the name matches one of existing infoTypes and that infoType - * is specified in `InspectContent.info_types` field. Specifying the latter - * adds findings to the one detected by the system. If built-in info type is - * not specified in `InspectContent.info_types` list then the name is treated - * as a custom info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * CustomInfoType can either be a new infoType, or an extension of built-in - * infoType, when the name matches one of existing infoTypes and that infoType - * is specified in `InspectContent.info_types` field. Specifying the latter - * adds findings to the one detected by the system. If built-in info type is - * not specified in `InspectContent.info_types` list then the name is treated - * as a custom info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Likelihood to return for this CustomInfoType. This base value can be - * altered by a detection rule if the finding meets the criteria specified by - * the rule. Defaults to `VERY_LIKELY` if not specified. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 6; - * @return int - */ - public function getLikelihood() - { - return $this->likelihood; - } - - /** - * Likelihood to return for this CustomInfoType. This base value can be - * altered by a detection rule if the finding meets the criteria specified by - * the rule. Defaults to `VERY_LIKELY` if not specified. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 6; - * @param int $var - * @return $this - */ - public function setLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->likelihood = $var; - - return $this; - } - - /** - * A list of phrases to detect as a CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null - */ - public function getDictionary() - { - return $this->readOneof(2); - } - - public function hasDictionary() - { - return $this->hasOneof(2); - } - - /** - * A list of phrases to detect as a CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 2; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $var - * @return $this - */ - public function setDictionary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Regular expression based CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null - */ - public function getRegex() - { - return $this->readOneof(3); - } - - public function hasRegex() - { - return $this->hasOneof(3); - } - - /** - * Regular expression based CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 3; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var - * @return $this - */ - public function setRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Message for detecting output from deidentification transformations that - * support reversing. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType|null - */ - public function getSurrogateType() - { - return $this->readOneof(4); - } - - public function hasSurrogateType() - { - return $this->hasOneof(4); - } - - /** - * Message for detecting output from deidentification transformations that - * support reversing. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.SurrogateType surrogate_type = 4; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType $var - * @return $this - */ - public function setSurrogateType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\SurrogateType::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Load an existing `StoredInfoType` resource for use in - * `InspectDataSource`. Not currently supported in `InspectContent`. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredType stored_type = 5; - * @return \Google\Cloud\Dlp\V2\StoredType|null - */ - public function getStoredType() - { - return $this->readOneof(5); - } - - public function hasStoredType() - { - return $this->hasOneof(5); - } - - /** - * Load an existing `StoredInfoType` resource for use in - * `InspectDataSource`. Not currently supported in `InspectContent`. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredType stored_type = 5; - * @param \Google\Cloud\Dlp\V2\StoredType $var - * @return $this - */ - public function setStoredType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredType::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Set of detection rules to apply to all findings of this CustomInfoType. - * Rules are applied in order that they are specified. Not supported for the - * `surrogate_type` CustomInfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectionRules() - { - return $this->detection_rules; - } - - /** - * Set of detection rules to apply to all findings of this CustomInfoType. - * Rules are applied in order that they are specified. Not supported for the - * `surrogate_type` CustomInfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType.DetectionRule detection_rules = 7; - * @param array<\Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectionRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule::class); - $this->detection_rules = $arr; - - return $this; - } - - /** - * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding - * to be returned. It still can be used for rules matching. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; - * @return int - */ - public function getExclusionType() - { - return $this->exclusion_type; - } - - /** - * If set to EXCLUSION_TYPE_EXCLUDE this infoType will not cause a finding - * to be returned. It still can be used for rules matching. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.ExclusionType exclusion_type = 8; - * @param int $var - * @return $this - */ - public function setExclusionType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\CustomInfoType\ExclusionType::class); - $this->exclusion_type = $var; - - return $this; - } - - /** - * Sensitivity for this CustomInfoType. If this CustomInfoType extends an - * existing InfoType, the sensitivity here will take precedence over that of - * the original InfoType. If unset for a CustomInfoType, it will default to - * HIGH. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * Sensitivity for this CustomInfoType. If this CustomInfoType extends an - * existing InfoType, the sensitivity here will take precedence over that of - * the original InfoType. If unset for a CustomInfoType, it will default to - * HIGH. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 9; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php deleted file mode 100644 index 88b6f48d1a0d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.DetectionRule - */ -class DetectionRule extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $hotword_rule - * Hotword-based detection rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Hotword-based detection rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule|null - */ - public function getHotwordRule() - { - return $this->readOneof(1); - } - - public function hasHotwordRule() - { - return $this->hasOneof(1); - } - - /** - * Hotword-based detection rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $var - * @return $this - */ - public function setHotwordRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DetectionRule::class, \Google\Cloud\Dlp\V2\CustomInfoType_DetectionRule::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php deleted file mode 100644 index 55e0494d670f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/HotwordRule.php +++ /dev/null @@ -1,213 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule - */ -class HotwordRule extends \Google\Protobuf\Internal\Message -{ - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - */ - protected $hotword_regex = null; - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The finding itself will be included in the window, so that hotwords can - * be used to match substrings of the finding itself. Suppose you - * want Cloud DLP to promote the likelihood of the phone number - * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the - * area code of a company's office. In this case, use the hotword regex - * "\(xxx\)", where "xxx" is the area code in question. - * For tabular data, if you want to modify the likelihood of an entire - * column of findngs, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - */ - protected $proximity = null; - /** - * Likelihood adjustment to apply to all matching findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; - */ - protected $likelihood_adjustment = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $hotword_regex - * Regular expression pattern defining what qualifies as a hotword. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $proximity - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The finding itself will be included in the window, so that hotwords can - * be used to match substrings of the finding itself. Suppose you - * want Cloud DLP to promote the likelihood of the phone number - * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the - * area code of a company's office. In this case, use the hotword regex - * "\(xxx\)", where "xxx" is the area code in question. - * For tabular data, if you want to modify the likelihood of an entire - * column of findngs, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $likelihood_adjustment - * Likelihood adjustment to apply to all matching findings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null - */ - public function getHotwordRegex() - { - return $this->hotword_regex; - } - - public function hasHotwordRegex() - { - return isset($this->hotword_regex); - } - - public function clearHotwordRegex() - { - unset($this->hotword_regex); - } - - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var - * @return $this - */ - public function setHotwordRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); - $this->hotword_regex = $var; - - return $this; - } - - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The finding itself will be included in the window, so that hotwords can - * be used to match substrings of the finding itself. Suppose you - * want Cloud DLP to promote the likelihood of the phone number - * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the - * area code of a company's office. In this case, use the hotword regex - * "\(xxx\)", where "xxx" is the area code in question. - * For tabular data, if you want to modify the likelihood of an entire - * column of findngs, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity|null - */ - public function getProximity() - { - return $this->proximity; - } - - public function hasProximity() - { - return isset($this->proximity); - } - - public function clearProximity() - { - unset($this->proximity); - } - - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The finding itself will be included in the window, so that hotwords can - * be used to match substrings of the finding itself. Suppose you - * want Cloud DLP to promote the likelihood of the phone number - * regex "\(\d{3}\) \d{3}-\d{4}" if the area code is known to be the - * area code of a company's office. In this case, use the hotword regex - * "\(xxx\)", where "xxx" is the area code in question. - * For tabular data, if you want to modify the likelihood of an entire - * column of findngs, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $var - * @return $this - */ - public function setProximity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity::class); - $this->proximity = $var; - - return $this; - } - - /** - * Likelihood adjustment to apply to all matching findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment|null - */ - public function getLikelihoodAdjustment() - { - return $this->likelihood_adjustment; - } - - public function hasLikelihoodAdjustment() - { - return isset($this->likelihood_adjustment); - } - - public function clearLikelihoodAdjustment() - { - unset($this->likelihood_adjustment); - } - - /** - * Likelihood adjustment to apply to all matching findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment likelihood_adjustment = 3; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment $var - * @return $this - */ - public function setLikelihoodAdjustment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\LikelihoodAdjustment::class); - $this->likelihood_adjustment = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(HotwordRule::class, \Google\Cloud\Dlp\V2\CustomInfoType_DetectionRule_HotwordRule::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php deleted file mode 100644 index 9532708c58cf..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/LikelihoodAdjustment.php +++ /dev/null @@ -1,133 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.DetectionRule.LikelihoodAdjustment - */ -class LikelihoodAdjustment extends \Google\Protobuf\Internal\Message -{ - protected $adjustment; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $fixed_likelihood - * Set the likelihood of a finding to a fixed value. - * @type int $relative_likelihood - * Increase or decrease the likelihood by the specified number of - * levels. For example, if a finding would be `POSSIBLE` without the - * detection rule and `relative_likelihood` is 1, then it is upgraded to - * `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. - * Likelihood may never drop below `VERY_UNLIKELY` or exceed - * `VERY_LIKELY`, so applying an adjustment of 1 followed by an - * adjustment of -1 when base likelihood is `VERY_LIKELY` will result in - * a final likelihood of `LIKELY`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Set the likelihood of a finding to a fixed value. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood fixed_likelihood = 1; - * @return int - */ - public function getFixedLikelihood() - { - return $this->readOneof(1); - } - - public function hasFixedLikelihood() - { - return $this->hasOneof(1); - } - - /** - * Set the likelihood of a finding to a fixed value. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood fixed_likelihood = 1; - * @param int $var - * @return $this - */ - public function setFixedLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Increase or decrease the likelihood by the specified number of - * levels. For example, if a finding would be `POSSIBLE` without the - * detection rule and `relative_likelihood` is 1, then it is upgraded to - * `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. - * Likelihood may never drop below `VERY_UNLIKELY` or exceed - * `VERY_LIKELY`, so applying an adjustment of 1 followed by an - * adjustment of -1 when base likelihood is `VERY_LIKELY` will result in - * a final likelihood of `LIKELY`. - * - * Generated from protobuf field int32 relative_likelihood = 2; - * @return int - */ - public function getRelativeLikelihood() - { - return $this->readOneof(2); - } - - public function hasRelativeLikelihood() - { - return $this->hasOneof(2); - } - - /** - * Increase or decrease the likelihood by the specified number of - * levels. For example, if a finding would be `POSSIBLE` without the - * detection rule and `relative_likelihood` is 1, then it is upgraded to - * `LIKELY`, while a value of -1 would downgrade it to `UNLIKELY`. - * Likelihood may never drop below `VERY_UNLIKELY` or exceed - * `VERY_LIKELY`, so applying an adjustment of 1 followed by an - * adjustment of -1 when base likelihood is `VERY_LIKELY` will result in - * a final likelihood of `LIKELY`. - * - * Generated from protobuf field int32 relative_likelihood = 2; - * @param int $var - * @return $this - */ - public function setRelativeLikelihood($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getAdjustment() - { - return $this->whichOneof("adjustment"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LikelihoodAdjustment::class, \Google\Cloud\Dlp\V2\CustomInfoType_DetectionRule_LikelihoodAdjustment::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php deleted file mode 100644 index 65e1f624e4f7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/DetectionRule/Proximity.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity - */ -class Proximity extends \Google\Protobuf\Internal\Message -{ - /** - * Number of characters before the finding to consider. For tabular data, - * if you want to modify the likelihood of an entire column of findngs, - * set this to 1. For more information, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field int32 window_before = 1; - */ - protected $window_before = 0; - /** - * Number of characters after the finding to consider. - * - * Generated from protobuf field int32 window_after = 2; - */ - protected $window_after = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $window_before - * Number of characters before the finding to consider. For tabular data, - * if you want to modify the likelihood of an entire column of findngs, - * set this to 1. For more information, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * @type int $window_after - * Number of characters after the finding to consider. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Number of characters before the finding to consider. For tabular data, - * if you want to modify the likelihood of an entire column of findngs, - * set this to 1. For more information, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field int32 window_before = 1; - * @return int - */ - public function getWindowBefore() - { - return $this->window_before; - } - - /** - * Number of characters before the finding to consider. For tabular data, - * if you want to modify the likelihood of an entire column of findngs, - * set this to 1. For more information, see - * [Hotword example: Set the match likelihood of a table column] - * (https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes-likelihood#match-column-values). - * - * Generated from protobuf field int32 window_before = 1; - * @param int $var - * @return $this - */ - public function setWindowBefore($var) - { - GPBUtil::checkInt32($var); - $this->window_before = $var; - - return $this; - } - - /** - * Number of characters after the finding to consider. - * - * Generated from protobuf field int32 window_after = 2; - * @return int - */ - public function getWindowAfter() - { - return $this->window_after; - } - - /** - * Number of characters after the finding to consider. - * - * Generated from protobuf field int32 window_after = 2; - * @param int $var - * @return $this - */ - public function setWindowAfter($var) - { - GPBUtil::checkInt32($var); - $this->window_after = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Proximity::class, \Google\Cloud\Dlp\V2\CustomInfoType_DetectionRule_Proximity::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php deleted file mode 100644 index 049f1f42dff4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary.php +++ /dev/null @@ -1,134 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.Dictionary - */ -class Dictionary extends \Google\Protobuf\Internal\Message -{ - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $word_list - * List of words or phrases to search for. - * @type \Google\Cloud\Dlp\V2\CloudStoragePath $cloud_storage_path - * Newline-delimited file of words in Cloud Storage. Only a single file - * is accepted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * List of words or phrases to search for. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList|null - */ - public function getWordList() - { - return $this->readOneof(1); - } - - public function hasWordList() - { - return $this->hasOneof(1); - } - - /** - * List of words or phrases to search for. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $var - * @return $this - */ - public function setWordList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Newline-delimited file of words in Cloud Storage. Only a single file - * is accepted. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; - * @return \Google\Cloud\Dlp\V2\CloudStoragePath|null - */ - public function getCloudStoragePath() - { - return $this->readOneof(3); - } - - public function hasCloudStoragePath() - { - return $this->hasOneof(3); - } - - /** - * Newline-delimited file of words in Cloud Storage. Only a single file - * is accepted. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath cloud_storage_path = 3; - * @param \Google\Cloud\Dlp\V2\CloudStoragePath $var - * @return $this - */ - public function setCloudStoragePath($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStoragePath::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Dictionary::class, \Google\Cloud\Dlp\V2\CustomInfoType_Dictionary::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php deleted file mode 100644 index 2b8f09b8a095..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Dictionary/WordList.php +++ /dev/null @@ -1,78 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList - */ -class WordList extends \Google\Protobuf\Internal\Message -{ - /** - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - * - * Generated from protobuf field repeated string words = 1; - */ - private $words; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $words - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - * - * Generated from protobuf field repeated string words = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getWords() - { - return $this->words; - } - - /** - * Words or phrases defining the dictionary. The dictionary must contain - * at least one phrase and every phrase must contain at least 2 characters - * that are letters or digits. [required] - * - * Generated from protobuf field repeated string words = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setWords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->words = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(WordList::class, \Google\Cloud\Dlp\V2\CustomInfoType_Dictionary_WordList::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php deleted file mode 100644 index 7c0cee8c1898..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/ExclusionType.php +++ /dev/null @@ -1,58 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.ExclusionType - */ -class ExclusionType -{ - /** - * A finding of this custom info type will not be excluded from results. - * - * Generated from protobuf enum EXCLUSION_TYPE_UNSPECIFIED = 0; - */ - const EXCLUSION_TYPE_UNSPECIFIED = 0; - /** - * A finding of this custom info type will be excluded from final results, - * but can still affect rule execution. - * - * Generated from protobuf enum EXCLUSION_TYPE_EXCLUDE = 1; - */ - const EXCLUSION_TYPE_EXCLUDE = 1; - - private static $valueToName = [ - self::EXCLUSION_TYPE_UNSPECIFIED => 'EXCLUSION_TYPE_UNSPECIFIED', - self::EXCLUSION_TYPE_EXCLUDE => 'EXCLUSION_TYPE_EXCLUDE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ExclusionType::class, \Google\Cloud\Dlp\V2\CustomInfoType_ExclusionType::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php deleted file mode 100644 index b54260ff0a67..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/Regex.php +++ /dev/null @@ -1,116 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.Regex - */ -class Regex extends \Google\Protobuf\Internal\Message -{ - /** - * Pattern defining the regular expression. Its syntax - * (https://github.com/google/re2/wiki/Syntax) can be found under the - * google/re2 repository on GitHub. - * - * Generated from protobuf field string pattern = 1; - */ - protected $pattern = ''; - /** - * The index of the submatch to extract as findings. When not - * specified, the entire match is returned. No more than 3 may be included. - * - * Generated from protobuf field repeated int32 group_indexes = 2; - */ - private $group_indexes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $pattern - * Pattern defining the regular expression. Its syntax - * (https://github.com/google/re2/wiki/Syntax) can be found under the - * google/re2 repository on GitHub. - * @type array|\Google\Protobuf\Internal\RepeatedField $group_indexes - * The index of the submatch to extract as findings. When not - * specified, the entire match is returned. No more than 3 may be included. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Pattern defining the regular expression. Its syntax - * (https://github.com/google/re2/wiki/Syntax) can be found under the - * google/re2 repository on GitHub. - * - * Generated from protobuf field string pattern = 1; - * @return string - */ - public function getPattern() - { - return $this->pattern; - } - - /** - * Pattern defining the regular expression. Its syntax - * (https://github.com/google/re2/wiki/Syntax) can be found under the - * google/re2 repository on GitHub. - * - * Generated from protobuf field string pattern = 1; - * @param string $var - * @return $this - */ - public function setPattern($var) - { - GPBUtil::checkString($var, True); - $this->pattern = $var; - - return $this; - } - - /** - * The index of the submatch to extract as findings. When not - * specified, the entire match is returned. No more than 3 may be included. - * - * Generated from protobuf field repeated int32 group_indexes = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGroupIndexes() - { - return $this->group_indexes; - } - - /** - * The index of the submatch to extract as findings. When not - * specified, the entire match is returned. No more than 3 may be included. - * - * Generated from protobuf field repeated int32 group_indexes = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGroupIndexes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->group_indexes = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Regex::class, \Google\Cloud\Dlp\V2\CustomInfoType_Regex::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php deleted file mode 100644 index 688c5e044728..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/CustomInfoType/SurrogateType.php +++ /dev/null @@ -1,43 +0,0 @@ -google.privacy.dlp.v2.CustomInfoType.SurrogateType - */ -class SurrogateType extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SurrogateType::class, \Google\Cloud\Dlp\V2\CustomInfoType_SurrogateType::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php deleted file mode 100644 index cac156496bc9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction.php +++ /dev/null @@ -1,216 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction - */ -class DataProfileAction extends \Google\Protobuf\Internal\Message -{ - protected $action; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataProfileAction\Export $export_data - * Export data profiles into a provided location. - * @type \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification $pub_sub_notification - * Publish a message into the Pub/Sub topic. - * @type \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle $publish_to_chronicle - * Publishes generated data profiles to Google Security Operations. - * For more information, see [Use Sensitive Data Protection data in - * context-aware - * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). - * @type \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter $publish_to_scc - * Publishes findings to SCC for each data profile. - * @type \Google\Cloud\Dlp\V2\DataProfileAction\TagResources $tag_resources - * Tags the profiled resources with the specified tag values. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Export data profiles into a provided location. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\Export|null - */ - public function getExportData() - { - return $this->readOneof(1); - } - - public function hasExportData() - { - return $this->hasOneof(1); - } - - /** - * Export data profiles into a provided location. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.Export export_data = 1; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\Export $var - * @return $this - */ - public function setExportData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\Export::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Publish a message into the Pub/Sub topic. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification|null - */ - public function getPubSubNotification() - { - return $this->readOneof(2); - } - - public function hasPubSubNotification() - { - return $this->hasOneof(2); - } - - /** - * Publish a message into the Pub/Sub topic. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification pub_sub_notification = 2; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification $var - * @return $this - */ - public function setPubSubNotification($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Publishes generated data profiles to Google Security Operations. - * For more information, see [Use Sensitive Data Protection data in - * context-aware - * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle|null - */ - public function getPublishToChronicle() - { - return $this->readOneof(3); - } - - public function hasPublishToChronicle() - { - return $this->hasOneof(3); - } - - /** - * Publishes generated data profiles to Google Security Operations. - * For more information, see [Use Sensitive Data Protection data in - * context-aware - * analytics](https://cloud.google.com/chronicle/docs/detection/usecase-dlp-high-risk-user-download). - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToChronicle publish_to_chronicle = 3; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle $var - * @return $this - */ - public function setPublishToChronicle($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PublishToChronicle::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Publishes findings to SCC for each data profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter|null - */ - public function getPublishToScc() - { - return $this->readOneof(4); - } - - public function hasPublishToScc() - { - return $this->hasOneof(4); - } - - /** - * Publishes findings to SCC for each data profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter publish_to_scc = 4; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter $var - * @return $this - */ - public function setPublishToScc($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\PublishToSecurityCommandCenter::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Tags the profiled resources with the specified tag values. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\TagResources|null - */ - public function getTagResources() - { - return $this->readOneof(8); - } - - public function hasTagResources() - { - return $this->hasOneof(8); - } - - /** - * Tags the profiled resources with the specified tag values. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources tag_resources = 8; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\TagResources $var - * @return $this - */ - public function setTagResources($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\TagResources::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getAction() - { - return $this->whichOneof("action"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php deleted file mode 100644 index 0c49c9ad18c9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/EventType.php +++ /dev/null @@ -1,80 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.EventType - */ -class EventType -{ - /** - * Unused. - * - * Generated from protobuf enum EVENT_TYPE_UNSPECIFIED = 0; - */ - const EVENT_TYPE_UNSPECIFIED = 0; - /** - * New profile (not a re-profile). - * - * Generated from protobuf enum NEW_PROFILE = 1; - */ - const NEW_PROFILE = 1; - /** - * One of the following profile metrics changed: Data risk score, - * Sensitivity score, Resource visibility, Encryption type, Predicted - * infoTypes, Other infoTypes - * - * Generated from protobuf enum CHANGED_PROFILE = 2; - */ - const CHANGED_PROFILE = 2; - /** - * Table data risk score or sensitivity score increased. - * - * Generated from protobuf enum SCORE_INCREASED = 3; - */ - const SCORE_INCREASED = 3; - /** - * A user (non-internal) error occurred. - * - * Generated from protobuf enum ERROR_CHANGED = 4; - */ - const ERROR_CHANGED = 4; - - private static $valueToName = [ - self::EVENT_TYPE_UNSPECIFIED => 'EVENT_TYPE_UNSPECIFIED', - self::NEW_PROFILE => 'NEW_PROFILE', - self::CHANGED_PROFILE => 'CHANGED_PROFILE', - self::SCORE_INCREASED => 'SCORE_INCREASED', - self::ERROR_CHANGED => 'ERROR_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(EventType::class, \Google\Cloud\Dlp\V2\DataProfileAction_EventType::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php deleted file mode 100644 index f406b2dec6cf..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/Export.php +++ /dev/null @@ -1,113 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.Export - */ -class Export extends \Google\Protobuf\Internal\Message -{ - /** - * Store all table and column profiles in an existing table or a new table - * in an existing dataset. Each re-generation will result in new rows in - * BigQuery. Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the profile - * has finished. The Pub/Sub notification is sent before the streaming - * buffer is guaranteed to be written, so data may not be instantly - * visible to queries by the time your topic receives the Pub/Sub - * notification. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable profile_table = 1; - */ - protected $profile_table = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $profile_table - * Store all table and column profiles in an existing table or a new table - * in an existing dataset. Each re-generation will result in new rows in - * BigQuery. Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the profile - * has finished. The Pub/Sub notification is sent before the streaming - * buffer is guaranteed to be written, so data may not be instantly - * visible to queries by the time your topic receives the Pub/Sub - * notification. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Store all table and column profiles in an existing table or a new table - * in an existing dataset. Each re-generation will result in new rows in - * BigQuery. Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the profile - * has finished. The Pub/Sub notification is sent before the streaming - * buffer is guaranteed to be written, so data may not be instantly - * visible to queries by the time your topic receives the Pub/Sub - * notification. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable profile_table = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getProfileTable() - { - return $this->profile_table; - } - - public function hasProfileTable() - { - return isset($this->profile_table); - } - - public function clearProfileTable() - { - unset($this->profile_table); - } - - /** - * Store all table and column profiles in an existing table or a new table - * in an existing dataset. Each re-generation will result in new rows in - * BigQuery. Data is inserted using [streaming - * insert](https://cloud.google.com/blog/products/bigquery/life-of-a-bigquery-streaming-insert) - * and so data may be in the buffer for a period of time after the profile - * has finished. The Pub/Sub notification is sent before the streaming - * buffer is guaranteed to be written, so data may not be instantly - * visible to queries by the time your topic receives the Pub/Sub - * notification. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable profile_table = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setProfileTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->profile_table = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Export::class, \Google\Cloud\Dlp\V2\DataProfileAction_Export::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php deleted file mode 100644 index 57a33ee43c26..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification.php +++ /dev/null @@ -1,204 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.PubSubNotification - */ -class PubSubNotification extends \Google\Protobuf\Internal\Message -{ - /** - * Cloud Pub/Sub topic to send notifications to. - * Format is projects/{project}/topics/{topic}. - * - * Generated from protobuf field string topic = 1; - */ - protected $topic = ''; - /** - * The type of event that triggers a Pub/Sub. At most one - * `PubSubNotification` per EventType is permitted. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - */ - protected $event = 0; - /** - * Conditions (e.g., data risk or sensitivity level) for triggering a - * Pub/Sub. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; - */ - protected $pubsub_condition = null; - /** - * How much data to include in the Pub/Sub message. If the user wishes to - * limit the size of the message, they can use resource_name and fetch the - * profile fields they wish to. Per table profile (not per column). - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; - */ - protected $detail_of_message = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $topic - * Cloud Pub/Sub topic to send notifications to. - * Format is projects/{project}/topics/{topic}. - * @type int $event - * The type of event that triggers a Pub/Sub. At most one - * `PubSubNotification` per EventType is permitted. - * @type \Google\Cloud\Dlp\V2\DataProfilePubSubCondition $pubsub_condition - * Conditions (e.g., data risk or sensitivity level) for triggering a - * Pub/Sub. - * @type int $detail_of_message - * How much data to include in the Pub/Sub message. If the user wishes to - * limit the size of the message, they can use resource_name and fetch the - * profile fields they wish to. Per table profile (not per column). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Pub/Sub topic to send notifications to. - * Format is projects/{project}/topics/{topic}. - * - * Generated from protobuf field string topic = 1; - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * Cloud Pub/Sub topic to send notifications to. - * Format is projects/{project}/topics/{topic}. - * - * 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; - } - - /** - * The type of event that triggers a Pub/Sub. At most one - * `PubSubNotification` per EventType is permitted. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - * @return int - */ - public function getEvent() - { - return $this->event; - } - - /** - * The type of event that triggers a Pub/Sub. At most one - * `PubSubNotification` per EventType is permitted. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - * @param int $var - * @return $this - */ - public function setEvent($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileAction\EventType::class); - $this->event = $var; - - return $this; - } - - /** - * Conditions (e.g., data risk or sensitivity level) for triggering a - * Pub/Sub. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; - * @return \Google\Cloud\Dlp\V2\DataProfilePubSubCondition|null - */ - public function getPubsubCondition() - { - return $this->pubsub_condition; - } - - public function hasPubsubCondition() - { - return isset($this->pubsub_condition); - } - - public function clearPubsubCondition() - { - unset($this->pubsub_condition); - } - - /** - * Conditions (e.g., data risk or sensitivity level) for triggering a - * Pub/Sub. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition pubsub_condition = 3; - * @param \Google\Cloud\Dlp\V2\DataProfilePubSubCondition $var - * @return $this - */ - public function setPubsubCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition::class); - $this->pubsub_condition = $var; - - return $this; - } - - /** - * How much data to include in the Pub/Sub message. If the user wishes to - * limit the size of the message, they can use resource_name and fetch the - * profile fields they wish to. Per table profile (not per column). - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; - * @return int - */ - public function getDetailOfMessage() - { - return $this->detail_of_message; - } - - /** - * How much data to include in the Pub/Sub message. If the user wishes to - * limit the size of the message, they can use resource_name and fetch the - * profile fields they wish to. Per table profile (not per column). - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel detail_of_message = 4; - * @param int $var - * @return $this - */ - public function setDetailOfMessage($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileAction\PubSubNotification\DetailLevel::class); - $this->detail_of_message = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PubSubNotification::class, \Google\Cloud\Dlp\V2\DataProfileAction_PubSubNotification::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php deleted file mode 100644 index a79c4eede556..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PubSubNotification/DetailLevel.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.PubSubNotification.DetailLevel - */ -class DetailLevel -{ - /** - * Unused. - * - * Generated from protobuf enum DETAIL_LEVEL_UNSPECIFIED = 0; - */ - const DETAIL_LEVEL_UNSPECIFIED = 0; - /** - * The full table data profile. - * - * Generated from protobuf enum TABLE_PROFILE = 1; - */ - const TABLE_PROFILE = 1; - /** - * The name of the profiled resource. - * - * Generated from protobuf enum RESOURCE_NAME = 2; - */ - const RESOURCE_NAME = 2; - /** - * The full file store data profile. - * - * Generated from protobuf enum FILE_STORE_PROFILE = 3; - */ - const FILE_STORE_PROFILE = 3; - - private static $valueToName = [ - self::DETAIL_LEVEL_UNSPECIFIED => 'DETAIL_LEVEL_UNSPECIFIED', - self::TABLE_PROFILE => 'TABLE_PROFILE', - self::RESOURCE_NAME => 'RESOURCE_NAME', - self::FILE_STORE_PROFILE => 'FILE_STORE_PROFILE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DetailLevel::class, \Google\Cloud\Dlp\V2\DataProfileAction_PubSubNotification_DetailLevel::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php deleted file mode 100644 index cf46d3480bad..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToChronicle.php +++ /dev/null @@ -1,36 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.PublishToChronicle - */ -class PublishToChronicle extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublishToChronicle::class, \Google\Cloud\Dlp\V2\DataProfileAction_PublishToChronicle::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php deleted file mode 100644 index 3d3b769e38e4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/PublishToSecurityCommandCenter.php +++ /dev/null @@ -1,36 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.PublishToSecurityCommandCenter - */ -class PublishToSecurityCommandCenter extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PublishToSecurityCommandCenter::class, \Google\Cloud\Dlp\V2\DataProfileAction_PublishToSecurityCommandCenter::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php deleted file mode 100644 index 97940be375c7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources.php +++ /dev/null @@ -1,191 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.TagResources - */ -class TagResources extends \Google\Protobuf\Internal\Message -{ - /** - * The tags to associate with different conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; - */ - private $tag_conditions; - /** - * The profile generations for which the tag should be attached to - * resources. If you attach a tag to only new profiles, then if the - * sensitivity score of a profile subsequently changes, its tag doesn't - * change. By default, this field includes only new profiles. To include - * both new and updated profiles for tagging, this field should explicitly - * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; - */ - private $profile_generations_to_tag; - /** - * Whether applying a tag to a resource should lower the risk of the profile - * for that resource. For example, in conjunction with an [IAM deny - * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny - * all principals a permission if a tag value is present, mitigating the - * risk of the resource. This also lowers the data risk of resources at the - * lower levels of the resource hierarchy. For example, reducing the data - * risk of a table data profile also reduces the data risk of the - * constituent column data profiles. - * - * Generated from protobuf field bool lower_data_risk_to_low = 3; - */ - protected $lower_data_risk_to_low = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition>|\Google\Protobuf\Internal\RepeatedField $tag_conditions - * The tags to associate with different conditions. - * @type array|\Google\Protobuf\Internal\RepeatedField $profile_generations_to_tag - * The profile generations for which the tag should be attached to - * resources. If you attach a tag to only new profiles, then if the - * sensitivity score of a profile subsequently changes, its tag doesn't - * change. By default, this field includes only new profiles. To include - * both new and updated profiles for tagging, this field should explicitly - * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. - * @type bool $lower_data_risk_to_low - * Whether applying a tag to a resource should lower the risk of the profile - * for that resource. For example, in conjunction with an [IAM deny - * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny - * all principals a permission if a tag value is present, mitigating the - * risk of the resource. This also lowers the data risk of resources at the - * lower levels of the resource hierarchy. For example, reducing the data - * risk of a table data profile also reduces the data risk of the - * constituent column data profiles. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The tags to associate with different conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTagConditions() - { - return $this->tag_conditions; - } - - /** - * The tags to associate with different conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition tag_conditions = 1; - * @param array<\Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTagConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagCondition::class); - $this->tag_conditions = $arr; - - return $this; - } - - /** - * The profile generations for which the tag should be attached to - * resources. If you attach a tag to only new profiles, then if the - * sensitivity score of a profile subsequently changes, its tag doesn't - * change. By default, this field includes only new profiles. To include - * both new and updated profiles for tagging, this field should explicitly - * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProfileGenerationsToTag() - { - return $this->profile_generations_to_tag; - } - - /** - * The profile generations for which the tag should be attached to - * resources. If you attach a tag to only new profiles, then if the - * sensitivity score of a profile subsequently changes, its tag doesn't - * change. By default, this field includes only new profiles. To include - * both new and updated profiles for tagging, this field should explicitly - * include both `PROFILE_GENERATION_NEW` and `PROFILE_GENERATION_UPDATE`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProfileGeneration profile_generations_to_tag = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProfileGenerationsToTag($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\ProfileGeneration::class); - $this->profile_generations_to_tag = $arr; - - return $this; - } - - /** - * Whether applying a tag to a resource should lower the risk of the profile - * for that resource. For example, in conjunction with an [IAM deny - * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny - * all principals a permission if a tag value is present, mitigating the - * risk of the resource. This also lowers the data risk of resources at the - * lower levels of the resource hierarchy. For example, reducing the data - * risk of a table data profile also reduces the data risk of the - * constituent column data profiles. - * - * Generated from protobuf field bool lower_data_risk_to_low = 3; - * @return bool - */ - public function getLowerDataRiskToLow() - { - return $this->lower_data_risk_to_low; - } - - /** - * Whether applying a tag to a resource should lower the risk of the profile - * for that resource. For example, in conjunction with an [IAM deny - * policy](https://cloud.google.com/iam/docs/deny-overview), you can deny - * all principals a permission if a tag value is present, mitigating the - * risk of the resource. This also lowers the data risk of resources at the - * lower levels of the resource hierarchy. For example, reducing the data - * risk of a table data profile also reduces the data risk of the - * constituent column data profiles. - * - * Generated from protobuf field bool lower_data_risk_to_low = 3; - * @param bool $var - * @return $this - */ - public function setLowerDataRiskToLow($var) - { - GPBUtil::checkBool($var); - $this->lower_data_risk_to_low = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TagResources::class, \Google\Cloud\Dlp\V2\DataProfileAction_TagResources::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php deleted file mode 100644 index 8d3f26cc2375..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagCondition.php +++ /dev/null @@ -1,126 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.TagResources.TagCondition - */ -class TagCondition extends \Google\Protobuf\Internal\Message -{ - /** - * The tag value to attach to resources. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; - */ - protected $tag = null; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue $tag - * The tag value to attach to resources. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * Conditions attaching the tag to a resource on its profile having this - * sensitivity score. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The tag value to attach to resources. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; - * @return \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue|null - */ - public function getTag() - { - return $this->tag; - } - - public function hasTag() - { - return isset($this->tag); - } - - public function clearTag() - { - unset($this->tag); - } - - /** - * The tag value to attach to resources. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue tag = 1; - * @param \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue $var - * @return $this - */ - public function setTag($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileAction\TagResources\TagValue::class); - $this->tag = $var; - - return $this; - } - - /** - * Conditions attaching the tag to a resource on its profile having this - * sensitivity score. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->readOneof(2); - } - - public function hasSensitivityScore() - { - return $this->hasOneof(2); - } - - /** - * Conditions attaching the tag to a resource on its profile having this - * sensitivity score. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 2; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TagCondition::class, \Google\Cloud\Dlp\V2\DataProfileAction_TagResources_TagCondition::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php deleted file mode 100644 index 80360d7cb194..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileAction/TagResources/TagValue.php +++ /dev/null @@ -1,84 +0,0 @@ -google.privacy.dlp.v2.DataProfileAction.TagResources.TagValue - */ -class TagValue extends \Google\Protobuf\Internal\Message -{ - protected $format; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $namespaced_value - * The namespaced name for the tag value to attach to resources. Must be - * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - * example, "123456/environment/prod". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The namespaced name for the tag value to attach to resources. Must be - * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - * example, "123456/environment/prod". - * - * Generated from protobuf field string namespaced_value = 1; - * @return string - */ - public function getNamespacedValue() - { - return $this->readOneof(1); - } - - public function hasNamespacedValue() - { - return $this->hasOneof(1); - } - - /** - * The namespaced name for the tag value to attach to resources. Must be - * in the format `{parent_id}/{tag_key_short_name}/{short_name}`, for - * example, "123456/environment/prod". - * - * Generated from protobuf field string namespaced_value = 1; - * @param string $var - * @return $this - */ - public function setNamespacedValue($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getFormat() - { - return $this->whichOneof("format"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TagValue::class, \Google\Cloud\Dlp\V2\DataProfileAction_TagResources_TagValue::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php deleted file mode 100644 index df23f68ea6d0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileBigQueryRowSchema.php +++ /dev/null @@ -1,142 +0,0 @@ -google.privacy.dlp.v2.DataProfileBigQueryRowSchema - */ -class DataProfileBigQueryRowSchema extends \Google\Protobuf\Internal\Message -{ - protected $data_profile; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TableDataProfile $table_profile - * Table data profile column - * @type \Google\Cloud\Dlp\V2\ColumnDataProfile $column_profile - * Column data profile column - * @type \Google\Cloud\Dlp\V2\FileStoreDataProfile $file_store_profile - * File store data profile column. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Table data profile column - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile table_profile = 1; - * @return \Google\Cloud\Dlp\V2\TableDataProfile|null - */ - public function getTableProfile() - { - return $this->readOneof(1); - } - - public function hasTableProfile() - { - return $this->hasOneof(1); - } - - /** - * Table data profile column - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile table_profile = 1; - * @param \Google\Cloud\Dlp\V2\TableDataProfile $var - * @return $this - */ - public function setTableProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableDataProfile::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Column data profile column - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile column_profile = 2; - * @return \Google\Cloud\Dlp\V2\ColumnDataProfile|null - */ - public function getColumnProfile() - { - return $this->readOneof(2); - } - - public function hasColumnProfile() - { - return $this->hasOneof(2); - } - - /** - * Column data profile column - * - * Generated from protobuf field .google.privacy.dlp.v2.ColumnDataProfile column_profile = 2; - * @param \Google\Cloud\Dlp\V2\ColumnDataProfile $var - * @return $this - */ - public function setColumnProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ColumnDataProfile::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * File store data profile column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; - * @return \Google\Cloud\Dlp\V2\FileStoreDataProfile|null - */ - public function getFileStoreProfile() - { - return $this->readOneof(3); - } - - public function hasFileStoreProfile() - { - return $this->hasOneof(3); - } - - /** - * File store data profile column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; - * @param \Google\Cloud\Dlp\V2\FileStoreDataProfile $var - * @return $this - */ - public function setFileStoreProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreDataProfile::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getDataProfile() - { - return $this->whichOneof("data_profile"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php deleted file mode 100644 index 77e66e42ffe8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileConfigSnapshot.php +++ /dev/null @@ -1,270 +0,0 @@ -google.privacy.dlp.v2.DataProfileConfigSnapshot - */ -class DataProfileConfigSnapshot extends \Google\Protobuf\Internal\Message -{ - /** - * A copy of the inspection config used to generate this profile. This - * is a copy of the inspect_template specified in `DataProfileJobConfig`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - */ - protected $inspect_config = null; - /** - * A copy of the configuration used to generate this profile. This is - * deprecated, and the DiscoveryConfig field is preferred moving forward. - * DataProfileJobConfig will still be written here for Discovery in BigQuery - * for backwards compatibility, but will not be updated with new fields, while - * DiscoveryConfig will. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; - * @deprecated - */ - protected $data_profile_job = null; - /** - * A copy of the configuration used to generate this profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; - */ - protected $discovery_config = null; - /** - * Name of the inspection template used to generate this profile - * - * Generated from protobuf field string inspect_template_name = 5; - */ - protected $inspect_template_name = ''; - /** - * Timestamp when the template was modified - * - * Generated from protobuf field .google.protobuf.Timestamp inspect_template_modified_time = 6; - */ - protected $inspect_template_modified_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * A copy of the inspection config used to generate this profile. This - * is a copy of the inspect_template specified in `DataProfileJobConfig`. - * @type \Google\Cloud\Dlp\V2\DataProfileJobConfig $data_profile_job - * A copy of the configuration used to generate this profile. This is - * deprecated, and the DiscoveryConfig field is preferred moving forward. - * DataProfileJobConfig will still be written here for Discovery in BigQuery - * for backwards compatibility, but will not be updated with new fields, while - * DiscoveryConfig will. - * @type \Google\Cloud\Dlp\V2\DiscoveryConfig $discovery_config - * A copy of the configuration used to generate this profile. - * @type string $inspect_template_name - * Name of the inspection template used to generate this profile - * @type \Google\Protobuf\Timestamp $inspect_template_modified_time - * Timestamp when the template was modified - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A copy of the inspection config used to generate this profile. This - * is a copy of the inspect_template specified in `DataProfileJobConfig`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * A copy of the inspection config used to generate this profile. This - * is a copy of the inspect_template specified in `DataProfileJobConfig`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * A copy of the configuration used to generate this profile. This is - * deprecated, and the DiscoveryConfig field is preferred moving forward. - * DataProfileJobConfig will still be written here for Discovery in BigQuery - * for backwards compatibility, but will not be updated with new fields, while - * DiscoveryConfig will. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; - * @return \Google\Cloud\Dlp\V2\DataProfileJobConfig|null - * @deprecated - */ - public function getDataProfileJob() - { - @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); - return $this->data_profile_job; - } - - public function hasDataProfileJob() - { - @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); - return isset($this->data_profile_job); - } - - public function clearDataProfileJob() - { - @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); - unset($this->data_profile_job); - } - - /** - * A copy of the configuration used to generate this profile. This is - * deprecated, and the DiscoveryConfig field is preferred moving forward. - * DataProfileJobConfig will still be written here for Discovery in BigQuery - * for backwards compatibility, but will not be updated with new fields, while - * DiscoveryConfig will. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileJobConfig data_profile_job = 3 [deprecated = true]; - * @param \Google\Cloud\Dlp\V2\DataProfileJobConfig $var - * @return $this - * @deprecated - */ - public function setDataProfileJob($var) - { - @trigger_error('data_profile_job is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileJobConfig::class); - $this->data_profile_job = $var; - - return $this; - } - - /** - * A copy of the configuration used to generate this profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; - * @return \Google\Cloud\Dlp\V2\DiscoveryConfig|null - */ - public function getDiscoveryConfig() - { - return $this->discovery_config; - } - - public function hasDiscoveryConfig() - { - return isset($this->discovery_config); - } - - public function clearDiscoveryConfig() - { - unset($this->discovery_config); - } - - /** - * A copy of the configuration used to generate this profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 4; - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $var - * @return $this - */ - public function setDiscoveryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); - $this->discovery_config = $var; - - return $this; - } - - /** - * Name of the inspection template used to generate this profile - * - * Generated from protobuf field string inspect_template_name = 5; - * @return string - */ - public function getInspectTemplateName() - { - return $this->inspect_template_name; - } - - /** - * Name of the inspection template used to generate this profile - * - * Generated from protobuf field string inspect_template_name = 5; - * @param string $var - * @return $this - */ - public function setInspectTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template_name = $var; - - return $this; - } - - /** - * Timestamp when the template was modified - * - * Generated from protobuf field .google.protobuf.Timestamp inspect_template_modified_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getInspectTemplateModifiedTime() - { - return $this->inspect_template_modified_time; - } - - public function hasInspectTemplateModifiedTime() - { - return isset($this->inspect_template_modified_time); - } - - public function clearInspectTemplateModifiedTime() - { - unset($this->inspect_template_modified_time); - } - - /** - * Timestamp when the template was modified - * - * Generated from protobuf field .google.protobuf.Timestamp inspect_template_modified_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setInspectTemplateModifiedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->inspect_template_modified_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php deleted file mode 100644 index 0725c0c22439..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileJobConfig.php +++ /dev/null @@ -1,284 +0,0 @@ -google.privacy.dlp.v2.DataProfileJobConfig - */ -class DataProfileJobConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileLocation location = 1; - */ - protected $location = null; - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the Cloud DLP API must be enabled. - * - * Generated from protobuf field string project_id = 5; - */ - protected $project_id = ''; - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; - */ - protected $other_cloud_starting_location = null; - /** - * Detection logic for profile generation. - * Not all template features are used by profiles. FindingLimits, - * include_quote and exclude_info_types have no impact on - * data profiling. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 7; - */ - private $inspect_templates; - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; - */ - private $data_profile_actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataProfileLocation $location - * The data to scan. - * @type string $project_id - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the Cloud DLP API must be enabled. - * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $other_cloud_starting_location - * Must be set only when scanning other clouds. - * @type array|\Google\Protobuf\Internal\RepeatedField $inspect_templates - * Detection logic for profile generation. - * Not all template features are used by profiles. FindingLimits, - * include_quote and exclude_info_types have no impact on - * data profiling. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * @type array<\Google\Cloud\Dlp\V2\DataProfileAction>|\Google\Protobuf\Internal\RepeatedField $data_profile_actions - * Actions to execute at the completion of the job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileLocation location = 1; - * @return \Google\Cloud\Dlp\V2\DataProfileLocation|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileLocation location = 1; - * @param \Google\Cloud\Dlp\V2\DataProfileLocation $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileLocation::class); - $this->location = $var; - - return $this; - } - - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the Cloud DLP API must be enabled. - * - * Generated from protobuf field string project_id = 5; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the Cloud DLP API must be enabled. - * - * Generated from protobuf field string project_id = 5; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; - * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation|null - */ - public function getOtherCloudStartingLocation() - { - return $this->other_cloud_starting_location; - } - - public function hasOtherCloudStartingLocation() - { - return isset($this->other_cloud_starting_location); - } - - public function clearOtherCloudStartingLocation() - { - unset($this->other_cloud_starting_location); - } - - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 8; - * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $var - * @return $this - */ - public function setOtherCloudStartingLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation::class); - $this->other_cloud_starting_location = $var; - - return $this; - } - - /** - * Detection logic for profile generation. - * Not all template features are used by profiles. FindingLimits, - * include_quote and exclude_info_types have no impact on - * data profiling. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInspectTemplates() - { - return $this->inspect_templates; - } - - /** - * Detection logic for profile generation. - * Not all template features are used by profiles. FindingLimits, - * include_quote and exclude_info_types have no impact on - * data profiling. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInspectTemplates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->inspect_templates = $arr; - - return $this; - } - - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataProfileActions() - { - return $this->data_profile_actions; - } - - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction data_profile_actions = 6; - * @param array<\Google\Cloud\Dlp\V2\DataProfileAction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataProfileActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfileAction::class); - $this->data_profile_actions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php deleted file mode 100644 index f288e5db84af..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileLocation.php +++ /dev/null @@ -1,108 +0,0 @@ -google.privacy.dlp.v2.DataProfileLocation - */ -class DataProfileLocation extends \Google\Protobuf\Internal\Message -{ - protected $location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $organization_id - * The ID of an organization to scan. - * @type int|string $folder_id - * The ID of the folder within an organization to scan. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The ID of an organization to scan. - * - * Generated from protobuf field int64 organization_id = 1; - * @return int|string - */ - public function getOrganizationId() - { - return $this->readOneof(1); - } - - public function hasOrganizationId() - { - return $this->hasOneof(1); - } - - /** - * The ID of an organization to scan. - * - * Generated from protobuf field int64 organization_id = 1; - * @param int|string $var - * @return $this - */ - public function setOrganizationId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The ID of the folder within an organization to scan. - * - * Generated from protobuf field int64 folder_id = 2; - * @return int|string - */ - public function getFolderId() - { - return $this->readOneof(2); - } - - public function hasFolderId() - { - return $this->hasOneof(2); - } - - /** - * The ID of the folder within an organization to scan. - * - * Generated from protobuf field int64 folder_id = 2; - * @param int|string $var - * @return $this - */ - public function setFolderId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getLocation() - { - return $this->whichOneof("location"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php deleted file mode 100644 index c5858b4bb75d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubCondition - */ -class DataProfilePubSubCondition extends \Google\Protobuf\Internal\Message -{ - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1; - */ - protected $expressions = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions $expressions - * An expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1; - * @return \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions|null - */ - public function getExpressions() - { - return $this->expressions; - } - - public function hasExpressions() - { - return isset($this->expressions); - } - - public function clearExpressions() - { - unset($this->expressions); - } - - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions expressions = 1; - * @param \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions $var - * @return $this - */ - public function setExpressions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions::class); - $this->expressions = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php deleted file mode 100644 index 3badf79759e1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/ProfileScoreBucket.php +++ /dev/null @@ -1,64 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket - */ -class ProfileScoreBucket -{ - /** - * Unused. - * - * Generated from protobuf enum PROFILE_SCORE_BUCKET_UNSPECIFIED = 0; - */ - const PROFILE_SCORE_BUCKET_UNSPECIFIED = 0; - /** - * High risk/sensitivity detected. - * - * Generated from protobuf enum HIGH = 1; - */ - const HIGH = 1; - /** - * Medium or high risk/sensitivity detected. - * - * Generated from protobuf enum MEDIUM_OR_HIGH = 2; - */ - const MEDIUM_OR_HIGH = 2; - - private static $valueToName = [ - self::PROFILE_SCORE_BUCKET_UNSPECIFIED => 'PROFILE_SCORE_BUCKET_UNSPECIFIED', - self::HIGH => 'HIGH', - self::MEDIUM_OR_HIGH => 'MEDIUM_OR_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ProfileScoreBucket::class, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition_ProfileScoreBucket::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php deleted file mode 100644 index 5cff0909ffa3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubCondition.php +++ /dev/null @@ -1,111 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition - */ -class PubSubCondition extends \Google\Protobuf\Internal\Message -{ - protected $value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $minimum_risk_score - * The minimum data risk score that triggers the condition. - * @type int $minimum_sensitivity_score - * The minimum sensitivity level that triggers the condition. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The minimum data risk score that triggers the condition. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1; - * @return int - */ - public function getMinimumRiskScore() - { - return $this->readOneof(1); - } - - public function hasMinimumRiskScore() - { - return $this->hasOneof(1); - } - - /** - * The minimum data risk score that triggers the condition. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_risk_score = 1; - * @param int $var - * @return $this - */ - public function setMinimumRiskScore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\ProfileScoreBucket::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The minimum sensitivity level that triggers the condition. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2; - * @return int - */ - public function getMinimumSensitivityScore() - { - return $this->readOneof(2); - } - - public function hasMinimumSensitivityScore() - { - return $this->hasOneof(2); - } - - /** - * The minimum sensitivity level that triggers the condition. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.ProfileScoreBucket minimum_sensitivity_score = 2; - * @param int $var - * @return $this - */ - public function setMinimumSensitivityScore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\ProfileScoreBucket::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->whichOneof("value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PubSubCondition::class, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition_PubSubCondition::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php deleted file mode 100644 index 5db8a91afd83..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions.php +++ /dev/null @@ -1,104 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions - */ -class PubSubExpressions extends \Google\Protobuf\Internal\Message -{ - /** - * The operator to apply to the collection of conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1; - */ - protected $logical_operator = 0; - /** - * Conditions to apply to the expression. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2; - */ - private $conditions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $logical_operator - * The operator to apply to the collection of conditions. - * @type array<\Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition>|\Google\Protobuf\Internal\RepeatedField $conditions - * Conditions to apply to the expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The operator to apply to the collection of conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1; - * @return int - */ - public function getLogicalOperator() - { - return $this->logical_operator; - } - - /** - * The operator to apply to the collection of conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator logical_operator = 1; - * @param int $var - * @return $this - */ - public function setLogicalOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubExpressions\PubSubLogicalOperator::class); - $this->logical_operator = $var; - - return $this; - } - - /** - * Conditions to apply to the expression. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Conditions to apply to the expression. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubCondition conditions = 2; - * @param array<\Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition\PubSubCondition::class); - $this->conditions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PubSubExpressions::class, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition_PubSubExpressions::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php deleted file mode 100644 index 47586059b5bf..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubCondition/PubSubExpressions/PubSubLogicalOperator.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubCondition.PubSubExpressions.PubSubLogicalOperator - */ -class PubSubLogicalOperator -{ - /** - * Unused. - * - * Generated from protobuf enum LOGICAL_OPERATOR_UNSPECIFIED = 0; - */ - const LOGICAL_OPERATOR_UNSPECIFIED = 0; - /** - * Conditional OR. - * - * Generated from protobuf enum OR = 1; - */ - const PBOR = 1; - /** - * Conditional AND. - * - * Generated from protobuf enum AND = 2; - */ - const PBAND = 2; - - private static $valueToName = [ - self::LOGICAL_OPERATOR_UNSPECIFIED => 'LOGICAL_OPERATOR_UNSPECIFIED', - self::PBOR => 'OR', - self::PBAND => 'AND', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has 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(PubSubLogicalOperator::class, \Google\Cloud\Dlp\V2\DataProfilePubSubCondition_PubSubExpressions_PubSubLogicalOperator::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php deleted file mode 100644 index 7d64eb76ab81..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfilePubSubMessage.php +++ /dev/null @@ -1,173 +0,0 @@ -google.privacy.dlp.v2.DataProfilePubSubMessage - */ -class DataProfilePubSubMessage extends \Google\Protobuf\Internal\Message -{ - /** - * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `full_resource` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile profile = 1; - */ - protected $profile = null; - /** - * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `file_store_path` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; - */ - protected $file_store_profile = null; - /** - * The event that caused the Pub/Sub message to be sent. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - */ - protected $event = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TableDataProfile $profile - * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `full_resource` will be populated. - * @type \Google\Cloud\Dlp\V2\FileStoreDataProfile $file_store_profile - * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `file_store_path` will be populated. - * @type int $event - * The event that caused the Pub/Sub message to be sent. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `full_resource` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile profile = 1; - * @return \Google\Cloud\Dlp\V2\TableDataProfile|null - */ - public function getProfile() - { - return $this->profile; - } - - public function hasProfile() - { - return isset($this->profile); - } - - public function clearProfile() - { - unset($this->profile); - } - - /** - * If `DetailLevel` is `TABLE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `full_resource` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile profile = 1; - * @param \Google\Cloud\Dlp\V2\TableDataProfile $var - * @return $this - */ - public function setProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableDataProfile::class); - $this->profile = $var; - - return $this; - } - - /** - * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `file_store_path` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; - * @return \Google\Cloud\Dlp\V2\FileStoreDataProfile|null - */ - public function getFileStoreProfile() - { - return $this->file_store_profile; - } - - public function hasFileStoreProfile() - { - return isset($this->file_store_profile); - } - - public function clearFileStoreProfile() - { - unset($this->file_store_profile); - } - - /** - * If `DetailLevel` is `FILE_STORE_PROFILE` this will be fully populated. - * Otherwise, if `DetailLevel` is `RESOURCE_NAME`, then only `name` and - * `file_store_path` will be populated. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile file_store_profile = 3; - * @param \Google\Cloud\Dlp\V2\FileStoreDataProfile $var - * @return $this - */ - public function setFileStoreProfile($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreDataProfile::class); - $this->file_store_profile = $var; - - return $this; - } - - /** - * The event that caused the Pub/Sub message to be sent. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - * @return int - */ - public function getEvent() - { - return $this->event; - } - - /** - * The event that caused the Pub/Sub message to be sent. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileAction.EventType event = 2; - * @param int $var - * @return $this - */ - public function setEvent($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileAction\EventType::class); - $this->event = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php deleted file mode 100644 index 4b4fc355a7b8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataProfileUpdateFrequency.php +++ /dev/null @@ -1,69 +0,0 @@ -google.privacy.dlp.v2.DataProfileUpdateFrequency - */ -class DataProfileUpdateFrequency -{ - /** - * Unspecified. - * - * Generated from protobuf enum UPDATE_FREQUENCY_UNSPECIFIED = 0; - */ - const UPDATE_FREQUENCY_UNSPECIFIED = 0; - /** - * After the data profile is created, it will never be updated. - * - * Generated from protobuf enum UPDATE_FREQUENCY_NEVER = 1; - */ - const UPDATE_FREQUENCY_NEVER = 1; - /** - * The data profile can be updated up to once every 24 hours. - * - * Generated from protobuf enum UPDATE_FREQUENCY_DAILY = 2; - */ - const UPDATE_FREQUENCY_DAILY = 2; - /** - * The data profile can be updated up to once every 30 days. Default. - * - * Generated from protobuf enum UPDATE_FREQUENCY_MONTHLY = 4; - */ - const UPDATE_FREQUENCY_MONTHLY = 4; - - private static $valueToName = [ - self::UPDATE_FREQUENCY_UNSPECIFIED => 'UPDATE_FREQUENCY_UNSPECIFIED', - self::UPDATE_FREQUENCY_NEVER => 'UPDATE_FREQUENCY_NEVER', - self::UPDATE_FREQUENCY_DAILY => 'UPDATE_FREQUENCY_DAILY', - self::UPDATE_FREQUENCY_MONTHLY => 'UPDATE_FREQUENCY_MONTHLY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php deleted file mode 100644 index 5736ca6f76a3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.DataRiskLevel - */ -class DataRiskLevel extends \Google\Protobuf\Internal\Message -{ - /** - * The score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1; - */ - protected $score = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $score - * The score applied to the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1; - * @return int - */ - public function getScore() - { - return $this->score; - } - - /** - * The score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore score = 1; - * @param int $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataRiskLevel\DataRiskLevelScore::class); - $this->score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php deleted file mode 100644 index 0da443d2b45e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataRiskLevel/DataRiskLevelScore.php +++ /dev/null @@ -1,84 +0,0 @@ -google.privacy.dlp.v2.DataRiskLevel.DataRiskLevelScore - */ -class DataRiskLevelScore -{ - /** - * Unused. - * - * Generated from protobuf enum RISK_SCORE_UNSPECIFIED = 0; - */ - const RISK_SCORE_UNSPECIFIED = 0; - /** - * Low risk - Lower indication of sensitive data that appears to have - * additional access restrictions in place or no indication of sensitive - * data found. - * - * Generated from protobuf enum RISK_LOW = 10; - */ - const RISK_LOW = 10; - /** - * Unable to determine risk. - * - * Generated from protobuf enum RISK_UNKNOWN = 12; - */ - const RISK_UNKNOWN = 12; - /** - * Medium risk - Sensitive data may be present but additional access or fine - * grain access restrictions appear to be present. Consider limiting - * access even further or transform data to mask. - * - * Generated from protobuf enum RISK_MODERATE = 20; - */ - const RISK_MODERATE = 20; - /** - * High risk – SPII may be present. Access controls may include public - * ACLs. Exfiltration of data may lead to user data loss. Re-identification - * of users may be possible. Consider limiting usage and or removing SPII. - * - * Generated from protobuf enum RISK_HIGH = 30; - */ - const RISK_HIGH = 30; - - private static $valueToName = [ - self::RISK_SCORE_UNSPECIFIED => 'RISK_SCORE_UNSPECIFIED', - self::RISK_LOW => 'RISK_LOW', - self::RISK_UNKNOWN => 'RISK_UNKNOWN', - self::RISK_MODERATE => 'RISK_MODERATE', - self::RISK_HIGH => 'RISK_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DataRiskLevelScore::class, \Google\Cloud\Dlp\V2\DataRiskLevel_DataRiskLevelScore::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php deleted file mode 100644 index 587836592839..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DataSourceType.php +++ /dev/null @@ -1,87 +0,0 @@ -google.privacy.dlp.v2.DataSourceType - */ -class DataSourceType extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. An identifying string to the type of resource being profiled. - * Current values: - * * google/bigquery/table - * * google/project - * * google/sql/table - * * google/gcs/bucket - * - * Generated from protobuf field string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $data_source = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $data_source - * Output only. An identifying string to the type of resource being profiled. - * Current values: - * * google/bigquery/table - * * google/project - * * google/sql/table - * * google/gcs/bucket - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Output only. An identifying string to the type of resource being profiled. - * Current values: - * * google/bigquery/table - * * google/project - * * google/sql/table - * * google/gcs/bucket - * - * Generated from protobuf field string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDataSource() - { - return $this->data_source; - } - - /** - * Output only. An identifying string to the type of resource being profiled. - * Current values: - * * google/bigquery/table - * * google/project - * * google/sql/table - * * google/gcs/bucket - * - * Generated from protobuf field string data_source = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDataSource($var) - { - GPBUtil::checkString($var, True); - $this->data_source = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php deleted file mode 100644 index 61a1ce7130dd..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceCollection.php +++ /dev/null @@ -1,76 +0,0 @@ -google.privacy.dlp.v2.DatabaseResourceCollection - */ -class DatabaseResourceCollection extends \Google\Protobuf\Internal\Message -{ - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DatabaseResourceRegexes $include_regexes - * A collection of regular expressions to match a database resource against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A collection of regular expressions to match a database resource against. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceRegexes include_regexes = 1; - * @return \Google\Cloud\Dlp\V2\DatabaseResourceRegexes|null - */ - public function getIncludeRegexes() - { - return $this->readOneof(1); - } - - public function hasIncludeRegexes() - { - return $this->hasOneof(1); - } - - /** - * A collection of regular expressions to match a database resource against. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceRegexes include_regexes = 1; - * @param \Google\Cloud\Dlp\V2\DatabaseResourceRegexes $var - * @return $this - */ - public function setIncludeRegexes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatabaseResourceRegexes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php deleted file mode 100644 index e04211fa322d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceReference.php +++ /dev/null @@ -1,181 +0,0 @@ -google.privacy.dlp.v2.DatabaseResourceReference - */ -class DatabaseResourceReference extends \Google\Protobuf\Internal\Message -{ - /** - * Required. If within a project-level config, then this must match the - * config's project ID. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $project_id = ''; - /** - * Required. The instance where this resource is located. For example: Cloud - * SQL instance ID. - * - * Generated from protobuf field string instance = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $instance = ''; - /** - * Required. Name of a database within the instance. - * - * Generated from protobuf field string database = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database = ''; - /** - * Required. Name of a database resource, for example, a table within the - * database. - * - * Generated from protobuf field string database_resource = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $database_resource = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * Required. If within a project-level config, then this must match the - * config's project ID. - * @type string $instance - * Required. The instance where this resource is located. For example: Cloud - * SQL instance ID. - * @type string $database - * Required. Name of a database within the instance. - * @type string $database_resource - * Required. Name of a database resource, for example, a table within the - * database. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. If within a project-level config, then this must match the - * config's project ID. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Required. If within a project-level config, then this must match the - * config's project ID. - * - * Generated from protobuf field string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * Required. The instance where this resource is located. For example: Cloud - * SQL instance ID. - * - * Generated from protobuf field string instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInstance() - { - return $this->instance; - } - - /** - * Required. The instance where this resource is located. For example: Cloud - * SQL instance ID. - * - * Generated from protobuf field string instance = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInstance($var) - { - GPBUtil::checkString($var, True); - $this->instance = $var; - - return $this; - } - - /** - * Required. Name of a database within the instance. - * - * Generated from protobuf field string database = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabase() - { - return $this->database; - } - - /** - * Required. Name of a database within the instance. - * - * Generated from protobuf field string database = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabase($var) - { - GPBUtil::checkString($var, True); - $this->database = $var; - - return $this; - } - - /** - * Required. Name of a database resource, for example, a table within the - * database. - * - * Generated from protobuf field string database_resource = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDatabaseResource() - { - return $this->database_resource; - } - - /** - * Required. Name of a database resource, for example, a table within the - * database. - * - * Generated from protobuf field string database_resource = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDatabaseResource($var) - { - GPBUtil::checkString($var, True); - $this->database_resource = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php deleted file mode 100644 index 87663fec9fd7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegex.php +++ /dev/null @@ -1,188 +0,0 @@ -google.privacy.dlp.v2.DatabaseResourceRegex - */ -class DatabaseResourceRegex extends \Google\Protobuf\Internal\Message -{ - /** - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - */ - protected $project_id_regex = ''; - /** - * Regex to test the instance name against. If empty, all instances match. - * - * Generated from protobuf field string instance_regex = 2; - */ - protected $instance_regex = ''; - /** - * Regex to test the database name against. If empty, all databases match. - * - * Generated from protobuf field string database_regex = 3; - */ - protected $database_regex = ''; - /** - * Regex to test the database resource's name against. An example of a - * database resource name is a table's name. Other database resource names - * like view names could be included in the future. If empty, all database - * resources match. - * - * Generated from protobuf field string database_resource_name_regex = 4; - */ - protected $database_resource_name_regex = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id_regex - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * @type string $instance_regex - * Regex to test the instance name against. If empty, all instances match. - * @type string $database_regex - * Regex to test the database name against. If empty, all databases match. - * @type string $database_resource_name_regex - * Regex to test the database resource's name against. An example of a - * database resource name is a table's name. Other database resource names - * like view names could be included in the future. If empty, all database - * resources match. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - * @return string - */ - public function getProjectIdRegex() - { - return $this->project_id_regex; - } - - /** - * For organizations, if unset, will match all projects. Has no effect - * for configurations created within a project. - * - * Generated from protobuf field string project_id_regex = 1; - * @param string $var - * @return $this - */ - public function setProjectIdRegex($var) - { - GPBUtil::checkString($var, True); - $this->project_id_regex = $var; - - return $this; - } - - /** - * Regex to test the instance name against. If empty, all instances match. - * - * Generated from protobuf field string instance_regex = 2; - * @return string - */ - public function getInstanceRegex() - { - return $this->instance_regex; - } - - /** - * Regex to test the instance name against. If empty, all instances match. - * - * Generated from protobuf field string instance_regex = 2; - * @param string $var - * @return $this - */ - public function setInstanceRegex($var) - { - GPBUtil::checkString($var, True); - $this->instance_regex = $var; - - return $this; - } - - /** - * Regex to test the database name against. If empty, all databases match. - * - * Generated from protobuf field string database_regex = 3; - * @return string - */ - public function getDatabaseRegex() - { - return $this->database_regex; - } - - /** - * Regex to test the database name against. If empty, all databases match. - * - * Generated from protobuf field string database_regex = 3; - * @param string $var - * @return $this - */ - public function setDatabaseRegex($var) - { - GPBUtil::checkString($var, True); - $this->database_regex = $var; - - return $this; - } - - /** - * Regex to test the database resource's name against. An example of a - * database resource name is a table's name. Other database resource names - * like view names could be included in the future. If empty, all database - * resources match. - * - * Generated from protobuf field string database_resource_name_regex = 4; - * @return string - */ - public function getDatabaseResourceNameRegex() - { - return $this->database_resource_name_regex; - } - - /** - * Regex to test the database resource's name against. An example of a - * database resource name is a table's name. Other database resource names - * like view names could be included in the future. If empty, all database - * resources match. - * - * Generated from protobuf field string database_resource_name_regex = 4; - * @param string $var - * @return $this - */ - public function setDatabaseResourceNameRegex($var) - { - GPBUtil::checkString($var, True); - $this->database_resource_name_regex = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php deleted file mode 100644 index c9a5d6122541..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatabaseResourceRegexes.php +++ /dev/null @@ -1,80 +0,0 @@ -google.privacy.dlp.v2.DatabaseResourceRegexes - */ -class DatabaseResourceRegexes extends \Google\Protobuf\Internal\Message -{ - /** - * A group of regular expression patterns to match against one or more - * database resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DatabaseResourceRegex patterns = 1; - */ - private $patterns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\DatabaseResourceRegex>|\Google\Protobuf\Internal\RepeatedField $patterns - * A group of regular expression patterns to match against one or more - * database resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A group of regular expression patterns to match against one or more - * database resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DatabaseResourceRegex patterns = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPatterns() - { - return $this->patterns; - } - - /** - * A group of regular expression patterns to match against one or more - * database resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DatabaseResourceRegex patterns = 1; - * @param array<\Google\Cloud\Dlp\V2\DatabaseResourceRegex>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DatabaseResourceRegex::class); - $this->patterns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php deleted file mode 100644 index a4eec6118bf7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreKey.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.DatastoreKey - */ -class DatastoreKey extends \Google\Protobuf\Internal\Message -{ - /** - * Datastore entity key. - * - * Generated from protobuf field .google.privacy.dlp.v2.Key entity_key = 1; - */ - protected $entity_key = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Key $entity_key - * Datastore entity key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Datastore entity key. - * - * Generated from protobuf field .google.privacy.dlp.v2.Key entity_key = 1; - * @return \Google\Cloud\Dlp\V2\Key|null - */ - public function getEntityKey() - { - return $this->entity_key; - } - - public function hasEntityKey() - { - return isset($this->entity_key); - } - - public function clearEntityKey() - { - unset($this->entity_key); - } - - /** - * Datastore entity key. - * - * Generated from protobuf field .google.privacy.dlp.v2.Key entity_key = 1; - * @param \Google\Cloud\Dlp\V2\Key $var - * @return $this - */ - public function setEntityKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Key::class); - $this->entity_key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php deleted file mode 100644 index 2bcb48315e54..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DatastoreOptions.php +++ /dev/null @@ -1,125 +0,0 @@ -google.privacy.dlp.v2.DatastoreOptions - */ -class DatastoreOptions extends \Google\Protobuf\Internal\Message -{ - /** - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - */ - protected $partition_id = null; - /** - * The kind to process. - * - * Generated from protobuf field .google.privacy.dlp.v2.KindExpression kind = 2; - */ - protected $kind = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PartitionId $partition_id - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - * @type \Google\Cloud\Dlp\V2\KindExpression $kind - * The kind to process. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - * @return \Google\Cloud\Dlp\V2\PartitionId|null - */ - public function getPartitionId() - { - return $this->partition_id; - } - - public function hasPartitionId() - { - return isset($this->partition_id); - } - - public function clearPartitionId() - { - unset($this->partition_id); - } - - /** - * A partition ID identifies a grouping of entities. The grouping is always - * by project and namespace, however the namespace ID may be empty. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - * @param \Google\Cloud\Dlp\V2\PartitionId $var - * @return $this - */ - public function setPartitionId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PartitionId::class); - $this->partition_id = $var; - - return $this; - } - - /** - * The kind to process. - * - * Generated from protobuf field .google.privacy.dlp.v2.KindExpression kind = 2; - * @return \Google\Cloud\Dlp\V2\KindExpression|null - */ - public function getKind() - { - return $this->kind; - } - - public function hasKind() - { - return isset($this->kind); - } - - public function clearKind() - { - unset($this->kind); - } - - /** - * The kind to process. - * - * Generated from protobuf field .google.privacy.dlp.v2.KindExpression kind = 2; - * @param \Google\Cloud\Dlp\V2\KindExpression $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\KindExpression::class); - $this->kind = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php deleted file mode 100644 index 710be7fdb1a7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateShiftConfig.php +++ /dev/null @@ -1,220 +0,0 @@ -google.privacy.dlp.v2.DateShiftConfig - */ -class DateShiftConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Range of shift in days. Actual shift will be selected at random - * within this range (inclusive ends). Negative means shift to earlier in - * time. Must not be more than 365250 days (1000 years) each direction. - * For example, 3 means shift date to at most 3 days into the future. - * - * Generated from protobuf field int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $upper_bound_days = 0; - /** - * Required. For example, -5 means shift date to at most 5 days back in the - * past. - * - * Generated from protobuf field int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lower_bound_days = 0; - /** - * Points to the field that contains the context, for example, an entity id. - * If set, must also set cryptoKey. If set, shift will be consistent for the - * given context. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - */ - protected $context = null; - protected $method; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $upper_bound_days - * Required. Range of shift in days. Actual shift will be selected at random - * within this range (inclusive ends). Negative means shift to earlier in - * time. Must not be more than 365250 days (1000 years) each direction. - * For example, 3 means shift date to at most 3 days into the future. - * @type int $lower_bound_days - * Required. For example, -5 means shift date to at most 5 days back in the - * past. - * @type \Google\Cloud\Dlp\V2\FieldId $context - * Points to the field that contains the context, for example, an entity id. - * If set, must also set cryptoKey. If set, shift will be consistent for the - * given context. - * @type \Google\Cloud\Dlp\V2\CryptoKey $crypto_key - * Causes the shift to be computed based on this key and the context. This - * results in the same shift for the same context and crypto_key. If - * set, must also set context. Can only be applied to table items. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Range of shift in days. Actual shift will be selected at random - * within this range (inclusive ends). Negative means shift to earlier in - * time. Must not be more than 365250 days (1000 years) each direction. - * For example, 3 means shift date to at most 3 days into the future. - * - * Generated from protobuf field int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getUpperBoundDays() - { - return $this->upper_bound_days; - } - - /** - * Required. Range of shift in days. Actual shift will be selected at random - * within this range (inclusive ends). Negative means shift to earlier in - * time. Must not be more than 365250 days (1000 years) each direction. - * For example, 3 means shift date to at most 3 days into the future. - * - * Generated from protobuf field int32 upper_bound_days = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setUpperBoundDays($var) - { - GPBUtil::checkInt32($var); - $this->upper_bound_days = $var; - - return $this; - } - - /** - * Required. For example, -5 means shift date to at most 5 days back in the - * past. - * - * Generated from protobuf field int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getLowerBoundDays() - { - return $this->lower_bound_days; - } - - /** - * Required. For example, -5 means shift date to at most 5 days back in the - * past. - * - * Generated from protobuf field int32 lower_bound_days = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setLowerBoundDays($var) - { - GPBUtil::checkInt32($var); - $this->lower_bound_days = $var; - - return $this; - } - - /** - * Points to the field that contains the context, for example, an entity id. - * If set, must also set cryptoKey. If set, shift will be consistent for the - * given context. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * Points to the field that contains the context, for example, an entity id. - * If set, must also set cryptoKey. If set, shift will be consistent for the - * given context. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId context = 3; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->context = $var; - - return $this; - } - - /** - * Causes the shift to be computed based on this key and the context. This - * results in the same shift for the same context and crypto_key. If - * set, must also set context. Can only be applied to table items. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 4; - * @return \Google\Cloud\Dlp\V2\CryptoKey|null - */ - public function getCryptoKey() - { - return $this->readOneof(4); - } - - public function hasCryptoKey() - { - return $this->hasOneof(4); - } - - /** - * Causes the shift to be computed based on this key and the context. This - * results in the same shift for the same context and crypto_key. If - * set, must also set context. Can only be applied to table items. - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoKey crypto_key = 4; - * @param \Google\Cloud\Dlp\V2\CryptoKey $var - * @return $this - */ - public function setCryptoKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoKey::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getMethod() - { - return $this->whichOneof("method"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php deleted file mode 100644 index da1a586cf1a2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime.php +++ /dev/null @@ -1,204 +0,0 @@ -google.privacy.dlp.v2.DateTime - */ -class DateTime extends \Google\Protobuf\Internal\Message -{ - /** - * One or more of the following must be set. - * Must be a valid date or time value. - * - * Generated from protobuf field .google.type.Date date = 1; - */ - protected $date = null; - /** - * Day of week - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - */ - protected $day_of_week = 0; - /** - * Time of day - * - * Generated from protobuf field .google.type.TimeOfDay time = 3; - */ - protected $time = null; - /** - * Time zone - * - * Generated from protobuf field .google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; - */ - protected $time_zone = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Date $date - * One or more of the following must be set. - * Must be a valid date or time value. - * @type int $day_of_week - * Day of week - * @type \Google\Type\TimeOfDay $time - * Time of day - * @type \Google\Cloud\Dlp\V2\DateTime\TimeZone $time_zone - * Time zone - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * One or more of the following must be set. - * Must be a valid date or time value. - * - * Generated from protobuf field .google.type.Date date = 1; - * @return \Google\Type\Date|null - */ - public function getDate() - { - return $this->date; - } - - public function hasDate() - { - return isset($this->date); - } - - public function clearDate() - { - unset($this->date); - } - - /** - * One or more of the following must be set. - * Must be a valid date or time value. - * - * Generated from protobuf field .google.type.Date date = 1; - * @param \Google\Type\Date $var - * @return $this - */ - public function setDate($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->date = $var; - - return $this; - } - - /** - * Day of week - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - * @return int - */ - public function getDayOfWeek() - { - return $this->day_of_week; - } - - /** - * Day of week - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week = 2; - * @param int $var - * @return $this - */ - public function setDayOfWeek($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->day_of_week = $var; - - return $this; - } - - /** - * Time of day - * - * Generated from protobuf field .google.type.TimeOfDay time = 3; - * @return \Google\Type\TimeOfDay|null - */ - public function getTime() - { - return $this->time; - } - - public function hasTime() - { - return isset($this->time); - } - - public function clearTime() - { - unset($this->time); - } - - /** - * Time of day - * - * Generated from protobuf field .google.type.TimeOfDay time = 3; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setTime($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->time = $var; - - return $this; - } - - /** - * Time zone - * - * Generated from protobuf field .google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; - * @return \Google\Cloud\Dlp\V2\DateTime\TimeZone|null - */ - public function getTimeZone() - { - return $this->time_zone; - } - - public function hasTimeZone() - { - return isset($this->time_zone); - } - - public function clearTimeZone() - { - unset($this->time_zone); - } - - /** - * Time zone - * - * Generated from protobuf field .google.privacy.dlp.v2.DateTime.TimeZone time_zone = 4; - * @param \Google\Cloud\Dlp\V2\DateTime\TimeZone $var - * @return $this - */ - public function setTimeZone($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DateTime\TimeZone::class); - $this->time_zone = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php deleted file mode 100644 index e371a018541a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DateTime/TimeZone.php +++ /dev/null @@ -1,74 +0,0 @@ -google.privacy.dlp.v2.DateTime.TimeZone - */ -class TimeZone extends \Google\Protobuf\Internal\Message -{ - /** - * Set only if the offset can be determined. Positive for time ahead of UTC. - * E.g. For "UTC-9", this value is -540. - * - * Generated from protobuf field int32 offset_minutes = 1; - */ - protected $offset_minutes = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $offset_minutes - * Set only if the offset can be determined. Positive for time ahead of UTC. - * E.g. For "UTC-9", this value is -540. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set only if the offset can be determined. Positive for time ahead of UTC. - * E.g. For "UTC-9", this value is -540. - * - * Generated from protobuf field int32 offset_minutes = 1; - * @return int - */ - public function getOffsetMinutes() - { - return $this->offset_minutes; - } - - /** - * Set only if the offset can be determined. Positive for time ahead of UTC. - * E.g. For "UTC-9", this value is -540. - * - * Generated from protobuf field int32 offset_minutes = 1; - * @param int $var - * @return $this - */ - public function setOffsetMinutes($var) - { - GPBUtil::checkInt32($var); - $this->offset_minutes = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TimeZone::class, \Google\Cloud\Dlp\V2\DateTime_TimeZone::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php deleted file mode 100644 index 0ffdb2d9697d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyConfig.php +++ /dev/null @@ -1,198 +0,0 @@ -google.privacy.dlp.v2.DeidentifyConfig - */ -class DeidentifyConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Mode for handling transformation errors. If left unspecified, the default - * mode is `TransformationErrorHandling.ThrowError`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; - */ - protected $transformation_error_handling = null; - protected $transformation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoTypeTransformations $info_type_transformations - * Treat the dataset as free-form text and apply the same free text - * transformation everywhere. - * @type \Google\Cloud\Dlp\V2\RecordTransformations $record_transformations - * Treat the dataset as structured. Transformations can be applied to - * specific locations within structured datasets, such as transforming - * a column within a table. - * @type \Google\Cloud\Dlp\V2\ImageTransformations $image_transformations - * Treat the dataset as an image and redact. - * @type \Google\Cloud\Dlp\V2\TransformationErrorHandling $transformation_error_handling - * Mode for handling transformation errors. If left unspecified, the default - * mode is `TransformationErrorHandling.ThrowError`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Treat the dataset as free-form text and apply the same free text - * transformation everywhere. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1; - * @return \Google\Cloud\Dlp\V2\InfoTypeTransformations|null - */ - public function getInfoTypeTransformations() - { - return $this->readOneof(1); - } - - public function hasInfoTypeTransformations() - { - return $this->hasOneof(1); - } - - /** - * Treat the dataset as free-form text and apply the same free text - * transformation everywhere. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1; - * @param \Google\Cloud\Dlp\V2\InfoTypeTransformations $var - * @return $this - */ - public function setInfoTypeTransformations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeTransformations::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Treat the dataset as structured. Transformations can be applied to - * specific locations within structured datasets, such as transforming - * a column within a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformations record_transformations = 2; - * @return \Google\Cloud\Dlp\V2\RecordTransformations|null - */ - public function getRecordTransformations() - { - return $this->readOneof(2); - } - - public function hasRecordTransformations() - { - return $this->hasOneof(2); - } - - /** - * Treat the dataset as structured. Transformations can be applied to - * specific locations within structured datasets, such as transforming - * a column within a table. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformations record_transformations = 2; - * @param \Google\Cloud\Dlp\V2\RecordTransformations $var - * @return $this - */ - public function setRecordTransformations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordTransformations::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Treat the dataset as an image and redact. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations image_transformations = 4; - * @return \Google\Cloud\Dlp\V2\ImageTransformations|null - */ - public function getImageTransformations() - { - return $this->readOneof(4); - } - - public function hasImageTransformations() - { - return $this->hasOneof(4); - } - - /** - * Treat the dataset as an image and redact. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations image_transformations = 4; - * @param \Google\Cloud\Dlp\V2\ImageTransformations $var - * @return $this - */ - public function setImageTransformations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Mode for handling transformation errors. If left unspecified, the default - * mode is `TransformationErrorHandling.ThrowError`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; - * @return \Google\Cloud\Dlp\V2\TransformationErrorHandling|null - */ - public function getTransformationErrorHandling() - { - return $this->transformation_error_handling; - } - - public function hasTransformationErrorHandling() - { - return isset($this->transformation_error_handling); - } - - public function clearTransformationErrorHandling() - { - unset($this->transformation_error_handling); - } - - /** - * Mode for handling transformation errors. If left unspecified, the default - * mode is `TransformationErrorHandling.ThrowError`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3; - * @param \Google\Cloud\Dlp\V2\TransformationErrorHandling $var - * @return $this - */ - public function setTransformationErrorHandling($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationErrorHandling::class); - $this->transformation_error_handling = $var; - - return $this; - } - - /** - * @return string - */ - public function getTransformation() - { - return $this->whichOneof("transformation"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php deleted file mode 100644 index ea80b28b68f4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentRequest.php +++ /dev/null @@ -1,417 +0,0 @@ -google.privacy.dlp.v2.DeidentifyContentRequest - */ -class DeidentifyContentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Configuration for the de-identification of the content item. - * Items specified here will override the template referenced by the - * deidentify_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2; - */ - protected $deidentify_config = null; - /** - * Configuration for the inspector. - * Items specified here will override the template referenced by the - * inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - */ - protected $inspect_config = null; - /** - * The item to de-identify. Will be treated as text. - * This value must be of type - * [Table][google.privacy.dlp.v2.Table] if your - * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] - * is a - * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] - * object. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - */ - protected $item = null; - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - */ - protected $inspect_template_name = ''; - /** - * Template to use. Any configuration directly specified in - * deidentify_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string deidentify_template_name = 6; - */ - protected $deidentify_template_name = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - */ - protected $location_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\DeidentifyConfig $deidentify_config - * Configuration for the de-identification of the content item. - * Items specified here will override the template referenced by the - * deidentify_template_name argument. - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * Configuration for the inspector. - * Items specified here will override the template referenced by the - * inspect_template_name argument. - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The item to de-identify. Will be treated as text. - * This value must be of type - * [Table][google.privacy.dlp.v2.Table] if your - * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] - * is a - * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] - * object. - * @type string $inspect_template_name - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * @type string $deidentify_template_name - * Template to use. Any configuration directly specified in - * deidentify_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Configuration for the de-identification of the content item. - * Items specified here will override the template referenced by the - * deidentify_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2; - * @return \Google\Cloud\Dlp\V2\DeidentifyConfig|null - */ - public function getDeidentifyConfig() - { - return $this->deidentify_config; - } - - public function hasDeidentifyConfig() - { - return isset($this->deidentify_config); - } - - public function clearDeidentifyConfig() - { - unset($this->deidentify_config); - } - - /** - * Configuration for the de-identification of the content item. - * Items specified here will override the template referenced by the - * deidentify_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 2; - * @param \Google\Cloud\Dlp\V2\DeidentifyConfig $var - * @return $this - */ - public function setDeidentifyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyConfig::class); - $this->deidentify_config = $var; - - return $this; - } - - /** - * Configuration for the inspector. - * Items specified here will override the template referenced by the - * inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * Configuration for the inspector. - * Items specified here will override the template referenced by the - * inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * The item to de-identify. Will be treated as text. - * This value must be of type - * [Table][google.privacy.dlp.v2.Table] if your - * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] - * is a - * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] - * object. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The item to de-identify. Will be treated as text. - * This value must be of type - * [Table][google.privacy.dlp.v2.Table] if your - * [deidentify_config][google.privacy.dlp.v2.DeidentifyContentRequest.deidentify_config] - * is a - * [RecordTransformations][google.privacy.dlp.v2.RecordTransformations] - * object. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - * @return string - */ - public function getInspectTemplateName() - { - return $this->inspect_template_name; - } - - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - * @param string $var - * @return $this - */ - public function setInspectTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template_name = $var; - - return $this; - } - - /** - * Template to use. Any configuration directly specified in - * deidentify_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string deidentify_template_name = 6; - * @return string - */ - public function getDeidentifyTemplateName() - { - return $this->deidentify_template_name; - } - - /** - * Template to use. Any configuration directly specified in - * deidentify_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string deidentify_template_name = 6; - * @param string $var - * @return $this - */ - public function setDeidentifyTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->deidentify_template_name = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php deleted file mode 100644 index dd41fd9c0f4d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyContentResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.DeidentifyContentResponse - */ -class DeidentifyContentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The de-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - */ - protected $item = null; - /** - * An overview of the changes that were made on the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - */ - protected $overview = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The de-identified item. - * @type \Google\Cloud\Dlp\V2\TransformationOverview $overview - * An overview of the changes that were made on the `item`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The de-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The de-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * An overview of the changes that were made on the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - * @return \Google\Cloud\Dlp\V2\TransformationOverview|null - */ - public function getOverview() - { - return $this->overview; - } - - public function hasOverview() - { - return isset($this->overview); - } - - public function clearOverview() - { - unset($this->overview); - } - - /** - * An overview of the changes that were made on the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - * @param \Google\Cloud\Dlp\V2\TransformationOverview $var - * @return $this - */ - public function setOverview($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationOverview::class); - $this->overview = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php deleted file mode 100644 index 7df95b625939..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails.php +++ /dev/null @@ -1,122 +0,0 @@ -google.privacy.dlp.v2.DeidentifyDataSourceDetails - */ -class DeidentifyDataSourceDetails extends \Google\Protobuf\Internal\Message -{ - /** - * De-identification config used for the request. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; - */ - protected $requested_options = null; - /** - * Stats about the de-identification operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; - */ - protected $deidentify_stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions $requested_options - * De-identification config used for the request. - * @type \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats $deidentify_stats - * Stats about the de-identification operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * De-identification config used for the request. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; - * @return \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions|null - */ - public function getRequestedOptions() - { - return $this->requested_options; - } - - public function hasRequestedOptions() - { - return isset($this->requested_options); - } - - public function clearRequestedOptions() - { - unset($this->requested_options); - } - - /** - * De-identification config used for the request. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions requested_options = 1; - * @param \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions $var - * @return $this - */ - public function setRequestedOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails\RequestedDeidentifyOptions::class); - $this->requested_options = $var; - - return $this; - } - - /** - * Stats about the de-identification operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; - * @return \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats|null - */ - public function getDeidentifyStats() - { - return $this->deidentify_stats; - } - - public function hasDeidentifyStats() - { - return isset($this->deidentify_stats); - } - - public function clearDeidentifyStats() - { - unset($this->deidentify_stats); - } - - /** - * Stats about the de-identification operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyDataSourceStats deidentify_stats = 2; - * @param \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats $var - * @return $this - */ - public function setDeidentifyStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyDataSourceStats::class); - $this->deidentify_stats = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php deleted file mode 100644 index e19b4098468f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceDetails/RequestedDeidentifyOptions.php +++ /dev/null @@ -1,184 +0,0 @@ -google.privacy.dlp.v2.DeidentifyDataSourceDetails.RequestedDeidentifyOptions - */ -class RequestedDeidentifyOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Snapshot of the state of the `DeidentifyTemplate` from the - * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time - * this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; - */ - protected $snapshot_deidentify_template = null; - /** - * Snapshot of the state of the structured `DeidentifyTemplate` from the - * `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; - */ - protected $snapshot_structured_deidentify_template = null; - /** - * Snapshot of the state of the image transformation `DeidentifyTemplate` - * from the `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; - */ - protected $snapshot_image_redact_template = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $snapshot_deidentify_template - * Snapshot of the state of the `DeidentifyTemplate` from the - * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time - * this job was run. - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $snapshot_structured_deidentify_template - * Snapshot of the state of the structured `DeidentifyTemplate` from the - * `Deidentify` action at the time this job was run. - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $snapshot_image_redact_template - * Snapshot of the state of the image transformation `DeidentifyTemplate` - * from the `Deidentify` action at the time this job was run. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Snapshot of the state of the `DeidentifyTemplate` from the - * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time - * this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; - * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null - */ - public function getSnapshotDeidentifyTemplate() - { - return $this->snapshot_deidentify_template; - } - - public function hasSnapshotDeidentifyTemplate() - { - return isset($this->snapshot_deidentify_template); - } - - public function clearSnapshotDeidentifyTemplate() - { - unset($this->snapshot_deidentify_template); - } - - /** - * Snapshot of the state of the `DeidentifyTemplate` from the - * [Deidentify][google.privacy.dlp.v2.Action.Deidentify] action at the time - * this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_deidentify_template = 1; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var - * @return $this - */ - public function setSnapshotDeidentifyTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->snapshot_deidentify_template = $var; - - return $this; - } - - /** - * Snapshot of the state of the structured `DeidentifyTemplate` from the - * `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; - * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null - */ - public function getSnapshotStructuredDeidentifyTemplate() - { - return $this->snapshot_structured_deidentify_template; - } - - public function hasSnapshotStructuredDeidentifyTemplate() - { - return isset($this->snapshot_structured_deidentify_template); - } - - public function clearSnapshotStructuredDeidentifyTemplate() - { - unset($this->snapshot_structured_deidentify_template); - } - - /** - * Snapshot of the state of the structured `DeidentifyTemplate` from the - * `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_structured_deidentify_template = 2; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var - * @return $this - */ - public function setSnapshotStructuredDeidentifyTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->snapshot_structured_deidentify_template = $var; - - return $this; - } - - /** - * Snapshot of the state of the image transformation `DeidentifyTemplate` - * from the `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; - * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null - */ - public function getSnapshotImageRedactTemplate() - { - return $this->snapshot_image_redact_template; - } - - public function hasSnapshotImageRedactTemplate() - { - return isset($this->snapshot_image_redact_template); - } - - public function clearSnapshotImageRedactTemplate() - { - unset($this->snapshot_image_redact_template); - } - - /** - * Snapshot of the state of the image transformation `DeidentifyTemplate` - * from the `Deidentify` action at the time this job was run. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate snapshot_image_redact_template = 3; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var - * @return $this - */ - public function setSnapshotImageRedactTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->snapshot_image_redact_template = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RequestedDeidentifyOptions::class, \Google\Cloud\Dlp\V2\DeidentifyDataSourceDetails_RequestedDeidentifyOptions::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php deleted file mode 100644 index 59a55b5aa27b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyDataSourceStats.php +++ /dev/null @@ -1,135 +0,0 @@ -google.privacy.dlp.v2.DeidentifyDataSourceStats - */ -class DeidentifyDataSourceStats extends \Google\Protobuf\Internal\Message -{ - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 1; - */ - protected $transformed_bytes = 0; - /** - * Number of successfully applied transformations. - * - * Generated from protobuf field int64 transformation_count = 2; - */ - protected $transformation_count = 0; - /** - * Number of errors encountered while trying to apply transformations. - * - * Generated from protobuf field int64 transformation_error_count = 3; - */ - protected $transformation_error_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $transformed_bytes - * Total size in bytes that were transformed in some way. - * @type int|string $transformation_count - * Number of successfully applied transformations. - * @type int|string $transformation_error_count - * Number of errors encountered while trying to apply transformations. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 1; - * @return int|string - */ - public function getTransformedBytes() - { - return $this->transformed_bytes; - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 1; - * @param int|string $var - * @return $this - */ - public function setTransformedBytes($var) - { - GPBUtil::checkInt64($var); - $this->transformed_bytes = $var; - - return $this; - } - - /** - * Number of successfully applied transformations. - * - * Generated from protobuf field int64 transformation_count = 2; - * @return int|string - */ - public function getTransformationCount() - { - return $this->transformation_count; - } - - /** - * Number of successfully applied transformations. - * - * Generated from protobuf field int64 transformation_count = 2; - * @param int|string $var - * @return $this - */ - public function setTransformationCount($var) - { - GPBUtil::checkInt64($var); - $this->transformation_count = $var; - - return $this; - } - - /** - * Number of errors encountered while trying to apply transformations. - * - * Generated from protobuf field int64 transformation_error_count = 3; - * @return int|string - */ - public function getTransformationErrorCount() - { - return $this->transformation_error_count; - } - - /** - * Number of errors encountered while trying to apply transformations. - * - * Generated from protobuf field int64 transformation_error_count = 3; - * @param int|string $var - * @return $this - */ - public function setTransformationErrorCount($var) - { - GPBUtil::checkInt64($var); - $this->transformation_error_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php deleted file mode 100644 index ed0862cbcb2b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeidentifyTemplate.php +++ /dev/null @@ -1,282 +0,0 @@ -google.privacy.dlp.v2.DeidentifyTemplate - */ -class DeidentifyTemplate extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Display name (max 256 chars). - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * The core content of the template. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6; - */ - protected $deidentify_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` - * @type string $display_name - * Display name (max 256 chars). - * @type string $description - * Short description (max 256 chars). - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation timestamp of an inspectTemplate. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last update timestamp of an inspectTemplate. - * @type \Google\Cloud\Dlp\V2\DeidentifyConfig $deidentify_config - * The core content of the template. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_ID` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/deidentifyTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/deidentifyTemplates/TEMPLATE_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 (max 256 chars). - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name (max 256 chars). - * - * 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; - } - - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The core content of the template. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6; - * @return \Google\Cloud\Dlp\V2\DeidentifyConfig|null - */ - public function getDeidentifyConfig() - { - return $this->deidentify_config; - } - - public function hasDeidentifyConfig() - { - return isset($this->deidentify_config); - } - - public function clearDeidentifyConfig() - { - unset($this->deidentify_config); - } - - /** - * The core content of the template. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig deidentify_config = 6; - * @param \Google\Cloud\Dlp\V2\DeidentifyConfig $var - * @return $this - */ - public function setDeidentifyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyConfig::class); - $this->deidentify_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php deleted file mode 100644 index bb91b2b567db..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteConnectionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.DeleteConnectionRequest - */ -class DeleteConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the Connection to be deleted, in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * 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 Connection to be deleted, in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. Please see - * {@see DlpServiceClient::connectionName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteConnectionRequest - * - * @experimental - */ - public static function 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 Connection to be deleted, in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the Connection to be deleted, in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated 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 Connection to be deleted, in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php deleted file mode 100644 index 0b3e5e031c0a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDeidentifyTemplateRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.privacy.dlp.v2.DeleteDeidentifyTemplateRequest - */ -class DeleteDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and deidentify template to be - * deleted, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * 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 organization and deidentify template to be - * deleted, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. Please see - * {@see DlpServiceClient::deidentifyTemplateName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteDeidentifyTemplateRequest - * - * @experimental - */ - public static function 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 organization and deidentify template to be - * deleted, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and deidentify template to be - * deleted, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated 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 organization and deidentify template to be - * deleted, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php deleted file mode 100644 index 6a20b7235350..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDiscoveryConfigRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.DeleteDiscoveryConfigRequest - */ -class DeleteDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the config, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * 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 project and the config, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. Please see - * {@see DlpServiceClient::discoveryConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteDiscoveryConfigRequest - * - * @experimental - */ - public static function 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 project and the config, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the config, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated 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 project and the config, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php deleted file mode 100644 index 973c1c27b837..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteDlpJobRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.DeleteDlpJobRequest - */ -class DeleteDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DlpJob resource to be deleted. - * - * 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 DlpJob resource to be deleted. Please see - * {@see DlpServiceClient::dlpJobName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteDlpJobRequest - * - * @experimental - */ - public static function 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 DlpJob resource to be deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DlpJob resource to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DlpJob resource to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php deleted file mode 100644 index a6d5959728a2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteFileStoreDataProfileRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.DeleteFileStoreDataProfileRequest - */ -class DeleteFileStoreDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the file store data profile. - * - * 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 file store data profile. Please see - * {@see DlpServiceClient::fileStoreDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteFileStoreDataProfileRequest - * - * @experimental - */ - public static function 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 file store data profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the file store data profile. - * - * Generated 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 file store data profile. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php deleted file mode 100644 index 247a31ff2442..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteInspectTemplateRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.privacy.dlp.v2.DeleteInspectTemplateRequest - */ -class DeleteInspectTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and inspectTemplate to be - * deleted, for example `organizations/433245324/inspectTemplates/432452342` - * or projects/project-id/inspectTemplates/432452342. - * - * 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 organization and inspectTemplate to be - * deleted, for example `organizations/433245324/inspectTemplates/432452342` - * or projects/project-id/inspectTemplates/432452342. Please see - * {@see DlpServiceClient::inspectTemplateName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteInspectTemplateRequest - * - * @experimental - */ - public static function 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 organization and inspectTemplate to be - * deleted, for example `organizations/433245324/inspectTemplates/432452342` - * or projects/project-id/inspectTemplates/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and inspectTemplate to be - * deleted, for example `organizations/433245324/inspectTemplates/432452342` - * or projects/project-id/inspectTemplates/432452342. - * - * Generated 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 organization and inspectTemplate to be - * deleted, for example `organizations/433245324/inspectTemplates/432452342` - * or projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php deleted file mode 100644 index a5b16ef7a905..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteJobTriggerRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.DeleteJobTriggerRequest - */ -class DeleteJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * 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 project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. Please see - * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteJobTriggerRequest - * - * @experimental - */ - public static function 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 project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated 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 project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php deleted file mode 100644 index d8d4c68e7530..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteStoredInfoTypeRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.privacy.dlp.v2.DeleteStoredInfoTypeRequest - */ -class DeleteStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and storedInfoType to be - * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * 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 organization and storedInfoType to be - * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. Please see - * {@see DlpServiceClient::storedInfoTypeName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteStoredInfoTypeRequest - * - * @experimental - */ - public static function 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 organization and storedInfoType to be - * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and storedInfoType to be - * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated 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 organization and storedInfoType to be - * deleted, for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php deleted file mode 100644 index e270dbd6466f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DeleteTableDataProfileRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.DeleteTableDataProfileRequest - */ -class DeleteTableDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the table data profile. - * - * 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 table data profile. Please see - * {@see DlpServiceClient::tableDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\DeleteTableDataProfileRequest - * - * @experimental - */ - public static function 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 table data profile. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the table data profile. - * - * Generated 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 table data profile. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php deleted file mode 100644 index 41edd890b7f6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Disabled.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.Disabled - */ -class Disabled extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php deleted file mode 100644 index 79aa5b244deb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions.php +++ /dev/null @@ -1,204 +0,0 @@ -google.privacy.dlp.v2.DiscoveryBigQueryConditions - */ -class DiscoveryBigQueryConditions extends \Google\Protobuf\Internal\Message -{ - /** - * BigQuery table must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; - */ - protected $created_after = null; - /** - * At least one of the conditions must be true for a table to be scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions or_conditions = 4; - */ - protected $or_conditions = null; - protected $included_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $created_after - * BigQuery table must have been created after this date. Used to avoid - * backfilling. - * @type \Google\Cloud\Dlp\V2\BigQueryTableTypes $types - * Restrict discovery to specific table types. - * @type int $type_collection - * Restrict discovery to categories of table types. - * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions $or_conditions - * At least one of the conditions must be true for a table to be scanned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * BigQuery table must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAfter() - { - return $this->created_after; - } - - public function hasCreatedAfter() - { - return isset($this->created_after); - } - - public function clearCreatedAfter() - { - unset($this->created_after); - } - - /** - * BigQuery table must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAfter($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_after = $var; - - return $this; - } - - /** - * Restrict discovery to specific table types. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypes types = 2; - * @return \Google\Cloud\Dlp\V2\BigQueryTableTypes|null - */ - public function getTypes() - { - return $this->readOneof(2); - } - - public function hasTypes() - { - return $this->hasOneof(2); - } - - /** - * Restrict discovery to specific table types. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypes types = 2; - * @param \Google\Cloud\Dlp\V2\BigQueryTableTypes $var - * @return $this - */ - public function setTypes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTableTypes::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Restrict discovery to categories of table types. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypeCollection type_collection = 3; - * @return int - */ - public function getTypeCollection() - { - return $this->readOneof(3); - } - - public function hasTypeCollection() - { - return $this->hasOneof(3); - } - - /** - * Restrict discovery to categories of table types. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableTypeCollection type_collection = 3; - * @param int $var - * @return $this - */ - public function setTypeCollection($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\BigQueryTableTypeCollection::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * At least one of the conditions must be true for a table to be scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions or_conditions = 4; - * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions|null - */ - public function getOrConditions() - { - return $this->or_conditions; - } - - public function hasOrConditions() - { - return isset($this->or_conditions); - } - - public function clearOrConditions() - { - unset($this->or_conditions); - } - - /** - * At least one of the conditions must be true for a table to be scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions or_conditions = 4; - * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions $var - * @return $this - */ - public function setOrConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions\OrConditions::class); - $this->or_conditions = $var; - - return $this; - } - - /** - * @return string - */ - public function getIncludedTypes() - { - return $this->whichOneof("included_types"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php deleted file mode 100644 index be485bc77246..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryConditions/OrConditions.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.DiscoveryBigQueryConditions.OrConditions - */ -class OrConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Minimum number of rows that should be present before Cloud DLP - * profiles a table - * - * Generated from protobuf field int32 min_row_count = 1; - */ - protected $min_row_count = 0; - /** - * Minimum age a table must have before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2; - */ - protected $min_age = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $min_row_count - * Minimum number of rows that should be present before Cloud DLP - * profiles a table - * @type \Google\Protobuf\Duration $min_age - * Minimum age a table must have before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Minimum number of rows that should be present before Cloud DLP - * profiles a table - * - * Generated from protobuf field int32 min_row_count = 1; - * @return int - */ - public function getMinRowCount() - { - return $this->min_row_count; - } - - /** - * Minimum number of rows that should be present before Cloud DLP - * profiles a table - * - * Generated from protobuf field int32 min_row_count = 1; - * @param int $var - * @return $this - */ - public function setMinRowCount($var) - { - GPBUtil::checkInt32($var); - $this->min_row_count = $var; - - return $this; - } - - /** - * Minimum age a table must have before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2; - * @return \Google\Protobuf\Duration|null - */ - public function getMinAge() - { - return $this->min_age; - } - - public function hasMinAge() - { - return isset($this->min_age); - } - - public function clearMinAge() - { - unset($this->min_age); - } - - /** - * Minimum age a table must have before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinAge($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_age = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrConditions::class, \Google\Cloud\Dlp\V2\DiscoveryBigQueryConditions_OrConditions::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php deleted file mode 100644 index a87ee0ec1d3b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter.php +++ /dev/null @@ -1,167 +0,0 @@ -google.privacy.dlp.v2.DiscoveryBigQueryFilter - */ -class DiscoveryBigQueryFilter extends \Google\Protobuf\Internal\Message -{ - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTableCollection $tables - * A specific set of tables for this filter to apply to. A table collection - * must be specified in only one filter per config. - * If a table id or dataset is empty, Cloud DLP assumes all tables in that - * collection must be profiled. Must specify a project ID. - * @type \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables $other_tables - * Catch-all. This should always be the last filter in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * @type \Google\Cloud\Dlp\V2\TableReference $table_reference - * The table to scan. Discovery configurations including this can only - * include one DiscoveryTarget (the DiscoveryTarget with this - * TableReference). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A specific set of tables for this filter to apply to. A table collection - * must be specified in only one filter per config. - * If a table id or dataset is empty, Cloud DLP assumes all tables in that - * collection must be profiled. Must specify a project ID. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableCollection tables = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTableCollection|null - */ - public function getTables() - { - return $this->readOneof(1); - } - - public function hasTables() - { - return $this->hasOneof(1); - } - - /** - * A specific set of tables for this filter to apply to. A table collection - * must be specified in only one filter per config. - * If a table id or dataset is empty, Cloud DLP assumes all tables in that - * collection must be profiled. Must specify a project ID. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTableCollection tables = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTableCollection $var - * @return $this - */ - public function setTables($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTableCollection::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Catch-all. This should always be the last filter in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTables other_tables = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables|null - */ - public function getOtherTables() - { - return $this->readOneof(2); - } - - public function hasOtherTables() - { - return $this->hasOneof(2); - } - - /** - * Catch-all. This should always be the last filter in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTables other_tables = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables $var - * @return $this - */ - public function setOtherTables($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter\AllOtherBigQueryTables::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The table to scan. Discovery configurations including this can only - * include one DiscoveryTarget (the DiscoveryTarget with this - * TableReference). - * - * Generated from protobuf field .google.privacy.dlp.v2.TableReference table_reference = 3; - * @return \Google\Cloud\Dlp\V2\TableReference|null - */ - public function getTableReference() - { - return $this->readOneof(3); - } - - public function hasTableReference() - { - return $this->hasOneof(3); - } - - /** - * The table to scan. Discovery configurations including this can only - * include one DiscoveryTarget (the DiscoveryTarget with this - * TableReference). - * - * Generated from protobuf field .google.privacy.dlp.v2.TableReference table_reference = 3; - * @param \Google\Cloud\Dlp\V2\TableReference $var - * @return $this - */ - public function setTableReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableReference::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php deleted file mode 100644 index 10dc3a6a889a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryBigQueryFilter/AllOtherBigQueryTables.php +++ /dev/null @@ -1,38 +0,0 @@ -google.privacy.dlp.v2.DiscoveryBigQueryFilter.AllOtherBigQueryTables - */ -class AllOtherBigQueryTables extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AllOtherBigQueryTables::class, \Google\Cloud\Dlp\V2\DiscoveryBigQueryFilter_AllOtherBigQueryTables::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php deleted file mode 100644 index 0697e79227ac..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions.php +++ /dev/null @@ -1,114 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlConditions - */ -class DiscoveryCloudSqlConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Database engines that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $database_engines; - /** - * Data profiles will only be generated for the database resource types - * specified in this field. - * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3; - */ - private $types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $database_engines - * Optional. Database engines that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. - * @type array|\Google\Protobuf\Internal\RepeatedField $types - * Data profiles will only be generated for the database resource types - * specified in this field. - * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Database engines that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDatabaseEngines() - { - return $this->database_engines; - } - - /** - * Optional. Database engines that should be profiled. - * Optional. Defaults to ALL_SUPPORTED_DATABASE_ENGINES if unspecified. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine database_engines = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDatabaseEngines($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions\DatabaseEngine::class); - $this->database_engines = $arr; - - return $this; - } - - /** - * Data profiles will only be generated for the database resource types - * specified in this field. - * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * Data profiles will only be generated for the database resource types - * specified in this field. - * If not specified, defaults to [DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES]. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType types = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions\DatabaseResourceType::class); - $this->types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php deleted file mode 100644 index 8438c6877e4a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseEngine.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseEngine - */ -class DatabaseEngine -{ - /** - * Unused. - * - * Generated from protobuf enum DATABASE_ENGINE_UNSPECIFIED = 0; - */ - const DATABASE_ENGINE_UNSPECIFIED = 0; - /** - * Include all supported database engines. - * - * Generated from protobuf enum ALL_SUPPORTED_DATABASE_ENGINES = 1; - */ - const ALL_SUPPORTED_DATABASE_ENGINES = 1; - /** - * MySQL database. - * - * Generated from protobuf enum MYSQL = 2; - */ - const MYSQL = 2; - /** - * PostgreSQL database. - * - * Generated from protobuf enum POSTGRES = 3; - */ - const POSTGRES = 3; - - private static $valueToName = [ - self::DATABASE_ENGINE_UNSPECIFIED => 'DATABASE_ENGINE_UNSPECIFIED', - self::ALL_SUPPORTED_DATABASE_ENGINES => 'ALL_SUPPORTED_DATABASE_ENGINES', - self::MYSQL => 'MYSQL', - self::POSTGRES => 'POSTGRES', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DatabaseEngine::class, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions_DatabaseEngine::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php deleted file mode 100644 index 50969361416d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlConditions/DatabaseResourceType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlConditions.DatabaseResourceType - */ -class DatabaseResourceType -{ - /** - * Unused. - * - * Generated from protobuf enum DATABASE_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - const DATABASE_RESOURCE_TYPE_UNSPECIFIED = 0; - /** - * Includes database resource types that become supported at a later time. - * - * Generated from protobuf enum DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES = 1; - */ - const DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES = 1; - /** - * Tables. - * - * Generated from protobuf enum DATABASE_RESOURCE_TYPE_TABLE = 2; - */ - const DATABASE_RESOURCE_TYPE_TABLE = 2; - - private static $valueToName = [ - self::DATABASE_RESOURCE_TYPE_UNSPECIFIED => 'DATABASE_RESOURCE_TYPE_UNSPECIFIED', - self::DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES => 'DATABASE_RESOURCE_TYPE_ALL_SUPPORTED_TYPES', - self::DATABASE_RESOURCE_TYPE_TABLE => 'DATABASE_RESOURCE_TYPE_TABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DatabaseResourceType::class, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlConditions_DatabaseResourceType::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php deleted file mode 100644 index c2d34c2f8649..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlFilter.php +++ /dev/null @@ -1,155 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlFilter - */ -class DiscoveryCloudSqlFilter extends \Google\Protobuf\Internal\Message -{ - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DatabaseResourceCollection $collection - * A specific set of database resources for this filter to apply to. - * @type \Google\Cloud\Dlp\V2\AllOtherDatabaseResources $others - * Catch-all. This should always be the last target in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * @type \Google\Cloud\Dlp\V2\DatabaseResourceReference $database_resource_reference - * The database resource to scan. Targets including this can only include - * one target (the target with this database resource reference). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A specific set of database resources for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1; - * @return \Google\Cloud\Dlp\V2\DatabaseResourceCollection|null - */ - public function getCollection() - { - return $this->readOneof(1); - } - - public function hasCollection() - { - return $this->hasOneof(1); - } - - /** - * A specific set of database resources for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceCollection collection = 1; - * @param \Google\Cloud\Dlp\V2\DatabaseResourceCollection $var - * @return $this - */ - public function setCollection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatabaseResourceCollection::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Catch-all. This should always be the last target in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherDatabaseResources others = 2; - * @return \Google\Cloud\Dlp\V2\AllOtherDatabaseResources|null - */ - public function getOthers() - { - return $this->readOneof(2); - } - - public function hasOthers() - { - return $this->hasOneof(2); - } - - /** - * Catch-all. This should always be the last target in the list because - * anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherDatabaseResources others = 2; - * @param \Google\Cloud\Dlp\V2\AllOtherDatabaseResources $var - * @return $this - */ - public function setOthers($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherDatabaseResources::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The database resource to scan. Targets including this can only include - * one target (the target with this database resource reference). - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3; - * @return \Google\Cloud\Dlp\V2\DatabaseResourceReference|null - */ - public function getDatabaseResourceReference() - { - return $this->readOneof(3); - } - - public function hasDatabaseResourceReference() - { - return $this->hasOneof(3); - } - - /** - * The database resource to scan. Targets including this can only include - * one target (the target with this database resource reference). - * - * Generated from protobuf field .google.privacy.dlp.v2.DatabaseResourceReference database_resource_reference = 3; - * @param \Google\Cloud\Dlp\V2\DatabaseResourceReference $var - * @return $this - */ - public function setDatabaseResourceReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatabaseResourceReference::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php deleted file mode 100644 index 9e4bf852b7e2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence.php +++ /dev/null @@ -1,177 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence - */ -class DiscoveryCloudSqlGenerationCadence extends \Google\Protobuf\Internal\Message -{ - /** - * When to reprofile if the schema has changed. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence schema_modified_cadence = 1; - */ - protected $schema_modified_cadence = null; - /** - * Data changes (non-schema changes) in Cloud SQL tables can't trigger - * reprofiling. If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying tables have changed. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2; - */ - protected $refresh_frequency = 0; - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - */ - protected $inspect_template_modified_cadence = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence $schema_modified_cadence - * When to reprofile if the schema has changed. - * @type int $refresh_frequency - * Data changes (non-schema changes) in Cloud SQL tables can't trigger - * reprofiling. If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying tables have changed. - * Defaults to never. - * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * When to reprofile if the schema has changed. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence schema_modified_cadence = 1; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence|null - */ - public function getSchemaModifiedCadence() - { - return $this->schema_modified_cadence; - } - - public function hasSchemaModifiedCadence() - { - return isset($this->schema_modified_cadence); - } - - public function clearSchemaModifiedCadence() - { - unset($this->schema_modified_cadence); - } - - /** - * When to reprofile if the schema has changed. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence schema_modified_cadence = 1; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence $var - * @return $this - */ - public function setSchemaModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence::class); - $this->schema_modified_cadence = $var; - - return $this; - } - - /** - * Data changes (non-schema changes) in Cloud SQL tables can't trigger - * reprofiling. If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying tables have changed. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2; - * @return int - */ - public function getRefreshFrequency() - { - return $this->refresh_frequency; - } - - /** - * Data changes (non-schema changes) in Cloud SQL tables can't trigger - * reprofiling. If you set this field, profiles are refreshed at this - * frequency regardless of whether the underlying tables have changed. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 2; - * @param int $var - * @return $this - */ - public function setRefreshFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->refresh_frequency = $var; - - return $this; - } - - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null - */ - public function getInspectTemplateModifiedCadence() - { - return $this->inspect_template_modified_cadence; - } - - public function hasInspectTemplateModifiedCadence() - { - return isset($this->inspect_template_modified_cadence); - } - - public function clearInspectTemplateModifiedCadence() - { - unset($this->inspect_template_modified_cadence); - } - - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var - * @return $this - */ - public function setInspectTemplateModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); - $this->inspect_template_modified_cadence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php deleted file mode 100644 index 60ebef96f635..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence.php +++ /dev/null @@ -1,112 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence - */ -class SchemaModifiedCadence extends \Google\Protobuf\Internal\Message -{ - /** - * The types of schema modifications to consider. - * Defaults to NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification types = 1; - */ - private $types; - /** - * Frequency to regenerate data profiles when the schema is modified. - * Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - */ - protected $frequency = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $types - * The types of schema modifications to consider. - * Defaults to NEW_COLUMNS. - * @type int $frequency - * Frequency to regenerate data profiles when the schema is modified. - * Defaults to monthly. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The types of schema modifications to consider. - * Defaults to NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * The types of schema modifications to consider. - * Defaults to NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification types = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence\SchemaModifiedCadence\CloudSqlSchemaModification::class); - $this->types = $arr; - - return $this; - } - - /** - * Frequency to regenerate data profiles when the schema is modified. - * Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * Frequency to regenerate data profiles when the schema is modified. - * Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->frequency = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SchemaModifiedCadence::class, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php deleted file mode 100644 index 38682145dfb2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudSqlGenerationCadence/SchemaModifiedCadence/CloudSqlSchemaModification.php +++ /dev/null @@ -1,64 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudSqlGenerationCadence.SchemaModifiedCadence.CloudSqlSchemaModification - */ -class CloudSqlSchemaModification -{ - /** - * Unused. - * - * Generated from protobuf enum SQL_SCHEMA_MODIFICATION_UNSPECIFIED = 0; - */ - const SQL_SCHEMA_MODIFICATION_UNSPECIFIED = 0; - /** - * New columns have appeared. - * - * Generated from protobuf enum NEW_COLUMNS = 1; - */ - const NEW_COLUMNS = 1; - /** - * Columns have been removed from the table. - * - * Generated from protobuf enum REMOVED_COLUMNS = 2; - */ - const REMOVED_COLUMNS = 2; - - private static $valueToName = [ - self::SQL_SCHEMA_MODIFICATION_UNSPECIFIED => 'SQL_SCHEMA_MODIFICATION_UNSPECIFIED', - self::NEW_COLUMNS => 'NEW_COLUMNS', - self::REMOVED_COLUMNS => 'REMOVED_COLUMNS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CloudSqlSchemaModification::class, \Google\Cloud\Dlp\V2\DiscoveryCloudSqlGenerationCadence_SchemaModifiedCadence_CloudSqlSchemaModification::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php deleted file mode 100644 index e007296d9e23..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudStorageConditions - */ -class DiscoveryCloudStorageConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Only objects with the specified attributes will be scanned. If an - * object has one of the specified attributes but is inside an excluded - * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A - * profile will be created even if no objects match the - * included_object_attributes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $included_object_attributes; - /** - * Required. Only objects with the specified attributes will be scanned. - * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private $included_bucket_attributes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $included_object_attributes - * Required. Only objects with the specified attributes will be scanned. If an - * object has one of the specified attributes but is inside an excluded - * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A - * profile will be created even if no objects match the - * included_object_attributes. - * @type array|\Google\Protobuf\Internal\RepeatedField $included_bucket_attributes - * Required. Only objects with the specified attributes will be scanned. - * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Only objects with the specified attributes will be scanned. If an - * object has one of the specified attributes but is inside an excluded - * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A - * profile will be created even if no objects match the - * included_object_attributes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIncludedObjectAttributes() - { - return $this->included_object_attributes; - } - - /** - * Required. Only objects with the specified attributes will be scanned. If an - * object has one of the specified attributes but is inside an excluded - * bucket, it will not be scanned. Defaults to [ALL_SUPPORTED_OBJECTS]. A - * profile will be created even if no objects match the - * included_object_attributes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute included_object_attributes = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIncludedObjectAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions\CloudStorageObjectAttribute::class); - $this->included_object_attributes = $arr; - - return $this; - } - - /** - * Required. Only objects with the specified attributes will be scanned. - * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIncludedBucketAttributes() - { - return $this->included_bucket_attributes; - } - - /** - * Required. Only objects with the specified attributes will be scanned. - * Defaults to [ALL_SUPPORTED_BUCKETS] if unset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute included_bucket_attributes = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIncludedBucketAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions\CloudStorageBucketAttribute::class); - $this->included_bucket_attributes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php deleted file mode 100644 index 25498756eb10..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageBucketAttribute.php +++ /dev/null @@ -1,76 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageBucketAttribute - */ -class CloudStorageBucketAttribute -{ - /** - * Unused. - * - * Generated from protobuf enum CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0; - */ - const CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED = 0; - /** - * Scan buckets regardless of the attribute. - * - * Generated from protobuf enum ALL_SUPPORTED_BUCKETS = 1; - */ - const ALL_SUPPORTED_BUCKETS = 1; - /** - * Buckets with autoclass disabled - * (https://cloud.google.com/storage/docs/autoclass). Only one of - * AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. - * - * Generated from protobuf enum AUTOCLASS_DISABLED = 2; - */ - const AUTOCLASS_DISABLED = 2; - /** - * Buckets with autoclass enabled - * (https://cloud.google.com/storage/docs/autoclass). Only one of - * AUTOCLASS_DISABLED or AUTOCLASS_ENABLED should be set. Scanning - * Autoclass-enabled buckets can affect object storage classes. - * - * Generated from protobuf enum AUTOCLASS_ENABLED = 3; - */ - const AUTOCLASS_ENABLED = 3; - - private static $valueToName = [ - self::CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED => 'CLOUD_STORAGE_BUCKET_ATTRIBUTE_UNSPECIFIED', - self::ALL_SUPPORTED_BUCKETS => 'ALL_SUPPORTED_BUCKETS', - self::AUTOCLASS_DISABLED => 'AUTOCLASS_DISABLED', - self::AUTOCLASS_ENABLED => 'AUTOCLASS_ENABLED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CloudStorageBucketAttribute::class, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions_CloudStorageBucketAttribute::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php deleted file mode 100644 index 9c75c652e006..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageConditions/CloudStorageObjectAttribute.php +++ /dev/null @@ -1,112 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudStorageConditions.CloudStorageObjectAttribute - */ -class CloudStorageObjectAttribute -{ - /** - * Unused. - * - * Generated from protobuf enum CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0; - */ - const CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED = 0; - /** - * Scan objects regardless of the attribute. - * - * Generated from protobuf enum ALL_SUPPORTED_OBJECTS = 1; - */ - const ALL_SUPPORTED_OBJECTS = 1; - /** - * Scan objects with the standard storage class. - * - * Generated from protobuf enum STANDARD = 2; - */ - const STANDARD = 2; - /** - * Scan objects with the nearline storage class. This will incur retrieval - * fees. - * - * Generated from protobuf enum NEARLINE = 3; - */ - const NEARLINE = 3; - /** - * Scan objects with the coldline storage class. This will incur retrieval - * fees. - * - * Generated from protobuf enum COLDLINE = 4; - */ - const COLDLINE = 4; - /** - * Scan objects with the archive storage class. This will incur retrieval - * fees. - * - * Generated from protobuf enum ARCHIVE = 5; - */ - const ARCHIVE = 5; - /** - * Scan objects with the regional storage class. - * - * Generated from protobuf enum REGIONAL = 6; - */ - const REGIONAL = 6; - /** - * Scan objects with the multi-regional storage class. - * - * Generated from protobuf enum MULTI_REGIONAL = 7; - */ - const MULTI_REGIONAL = 7; - /** - * Scan objects with the dual-regional storage class. This will incur - * retrieval fees. - * - * Generated from protobuf enum DURABLE_REDUCED_AVAILABILITY = 8; - */ - const DURABLE_REDUCED_AVAILABILITY = 8; - - private static $valueToName = [ - self::CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED => 'CLOUD_STORAGE_OBJECT_ATTRIBUTE_UNSPECIFIED', - self::ALL_SUPPORTED_OBJECTS => 'ALL_SUPPORTED_OBJECTS', - self::STANDARD => 'STANDARD', - self::NEARLINE => 'NEARLINE', - self::COLDLINE => 'COLDLINE', - self::ARCHIVE => 'ARCHIVE', - self::REGIONAL => 'REGIONAL', - self::MULTI_REGIONAL => 'MULTI_REGIONAL', - self::DURABLE_REDUCED_AVAILABILITY => 'DURABLE_REDUCED_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(CloudStorageObjectAttribute::class, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions_CloudStorageObjectAttribute::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php deleted file mode 100644 index ca30fd02329c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageFilter.php +++ /dev/null @@ -1,161 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudStorageFilter - */ -class DiscoveryCloudStorageFilter extends \Google\Protobuf\Internal\Message -{ - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FileStoreCollection $collection - * Optional. A specific set of buckets for this filter to apply to. - * @type \Google\Cloud\Dlp\V2\CloudStorageResourceReference $cloud_storage_resource_reference - * Optional. The bucket to scan. Targets including this can only include one - * target (the target with this bucket). This enables profiling the contents - * of a single bucket, while the other options allow for easy profiling of - * many bucets within a project or an organization. - * @type \Google\Cloud\Dlp\V2\AllOtherResources $others - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A specific set of buckets for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\FileStoreCollection|null - */ - public function getCollection() - { - return $this->readOneof(1); - } - - public function hasCollection() - { - return $this->hasOneof(1); - } - - /** - * Optional. A specific set of buckets for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreCollection collection = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\FileStoreCollection $var - * @return $this - */ - public function setCollection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreCollection::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. The bucket to scan. Targets including this can only include one - * target (the target with this bucket). This enables profiling the contents - * of a single bucket, while the other options allow for easy profiling of - * many bucets within a project or an organization. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\CloudStorageResourceReference|null - */ - public function getCloudStorageResourceReference() - { - return $this->readOneof(2); - } - - public function hasCloudStorageResourceReference() - { - return $this->hasOneof(2); - } - - /** - * Optional. The bucket to scan. Targets including this can only include one - * target (the target with this bucket). This enables profiling the contents - * of a single bucket, while the other options allow for easy profiling of - * many bucets within a project or an organization. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageResourceReference cloud_storage_resource_reference = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\CloudStorageResourceReference $var - * @return $this - */ - public function setCloudStorageResourceReference($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageResourceReference::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\AllOtherResources|null - */ - public function getOthers() - { - return $this->readOneof(100); - } - - public function hasOthers() - { - return $this->hasOneof(100); - } - - /** - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\AllOtherResources $var - * @return $this - */ - public function setOthers($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherResources::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php deleted file mode 100644 index c3330c4d2c94..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryCloudStorageGenerationCadence.php +++ /dev/null @@ -1,129 +0,0 @@ -google.privacy.dlp.v2.DiscoveryCloudStorageGenerationCadence - */ -class DiscoveryCloudStorageGenerationCadence extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you - * set this field, profiles are refreshed at this frequency regardless of - * whether the underlying buckets have changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $refresh_frequency = 0; - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $inspect_template_modified_cadence = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $refresh_frequency - * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you - * set this field, profiles are refreshed at this frequency regardless of - * whether the underlying buckets have changed. Defaults to never. - * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you - * set this field, profiles are refreshed at this frequency regardless of - * whether the underlying buckets have changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getRefreshFrequency() - { - return $this->refresh_frequency; - } - - /** - * Optional. Data changes in Cloud Storage can't trigger reprofiling. If you - * set this field, profiles are refreshed at this frequency regardless of - * whether the underlying buckets have changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setRefreshFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->refresh_frequency = $var; - - return $this; - } - - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null - */ - public function getInspectTemplateModifiedCadence() - { - return $this->inspect_template_modified_cadence; - } - - public function hasInspectTemplateModifiedCadence() - { - return isset($this->inspect_template_modified_cadence); - } - - public function clearInspectTemplateModifiedCadence() - { - unset($this->inspect_template_modified_cadence); - } - - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var - * @return $this - */ - public function setInspectTemplateModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); - $this->inspect_template_modified_cadence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php deleted file mode 100644 index 9e7e9ec3aa43..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig.php +++ /dev/null @@ -1,564 +0,0 @@ -google.privacy.dlp.v2.DiscoveryConfig - */ -class DiscoveryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Unique resource name for the DiscoveryConfig, assigned by the service when - * the DiscoveryConfig is created, for example - * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Display name (max 100 chars) - * - * Generated from protobuf field string display_name = 11; - */ - protected $display_name = ''; - /** - * Only set when the parent is an org. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; - */ - protected $org_config = null; - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; - */ - protected $other_cloud_starting_location = null; - /** - * Detection logic for profile generation. - * Not all template features are used by Discovery. FindingLimits, - * include_quote and exclude_info_types have no impact on - * Discovery. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 3; - */ - private $inspect_templates; - /** - * Actions to execute at the completion of scanning. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; - */ - private $actions; - /** - * Target to match against for determining what to scan and how frequently. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; - */ - private $targets; - /** - * Output only. A stream of errors encountered when the config was activated. - * Repeated errors may result in the config automatically being paused. Output - * only field. Will return the last 100 errors. Whenever the config is - * modified this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - /** - * Output only. The creation timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last update timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The timestamp of the last time this config was executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_run_time = null; - /** - * Required. A status for this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Unique resource name for the DiscoveryConfig, assigned by the service when - * the DiscoveryConfig is created, for example - * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. - * @type string $display_name - * Display name (max 100 chars) - * @type \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig $org_config - * Only set when the parent is an org. - * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $other_cloud_starting_location - * Must be set only when scanning other clouds. - * @type array|\Google\Protobuf\Internal\RepeatedField $inspect_templates - * Detection logic for profile generation. - * Not all template features are used by Discovery. FindingLimits, - * include_quote and exclude_info_types have no impact on - * Discovery. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * @type array<\Google\Cloud\Dlp\V2\DataProfileAction>|\Google\Protobuf\Internal\RepeatedField $actions - * Actions to execute at the completion of scanning. - * @type array<\Google\Cloud\Dlp\V2\DiscoveryTarget>|\Google\Protobuf\Internal\RepeatedField $targets - * Target to match against for determining what to scan and how frequently. - * @type array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A stream of errors encountered when the config was activated. - * Repeated errors may result in the config automatically being paused. Output - * only field. Will return the last 100 errors. Whenever the config is - * modified this list will be cleared. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation timestamp of a DiscoveryConfig. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last update timestamp of a DiscoveryConfig. - * @type \Google\Protobuf\Timestamp $last_run_time - * Output only. The timestamp of the last time this config was executed. - * @type int $status - * Required. A status for this configuration. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Unique resource name for the DiscoveryConfig, assigned by the service when - * the DiscoveryConfig is created, for example - * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Unique resource name for the DiscoveryConfig, assigned by the service when - * the DiscoveryConfig is created, for example - * `projects/dlp-test-project/locations/global/discoveryConfigs/53234423`. - * - * 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 (max 100 chars) - * - * Generated from protobuf field string display_name = 11; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name (max 100 chars) - * - * Generated from protobuf field string display_name = 11; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Only set when the parent is an org. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig|null - */ - public function getOrgConfig() - { - return $this->org_config; - } - - public function hasOrgConfig() - { - return isset($this->org_config); - } - - public function clearOrgConfig() - { - unset($this->org_config); - } - - /** - * Only set when the parent is an org. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.OrgConfig org_config = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig $var - * @return $this - */ - public function setOrgConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig\OrgConfig::class); - $this->org_config = $var; - - return $this; - } - - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; - * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation|null - */ - public function getOtherCloudStartingLocation() - { - return $this->other_cloud_starting_location; - } - - public function hasOtherCloudStartingLocation() - { - return isset($this->other_cloud_starting_location); - } - - public function clearOtherCloudStartingLocation() - { - unset($this->other_cloud_starting_location); - } - - /** - * Must be set only when scanning other clouds. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation other_cloud_starting_location = 12; - * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation $var - * @return $this - */ - public function setOtherCloudStartingLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation::class); - $this->other_cloud_starting_location = $var; - - return $this; - } - - /** - * Detection logic for profile generation. - * Not all template features are used by Discovery. FindingLimits, - * include_quote and exclude_info_types have no impact on - * Discovery. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInspectTemplates() - { - return $this->inspect_templates; - } - - /** - * Detection logic for profile generation. - * Not all template features are used by Discovery. FindingLimits, - * include_quote and exclude_info_types have no impact on - * Discovery. - * Multiple templates may be provided if there is data in multiple regions. - * At most one template must be specified per-region (including "global"). - * Each region is scanned using the applicable template. If no region-specific - * template is specified, but a "global" template is specified, it will be - * copied to that region and used instead. If no global or region-specific - * template is provided for a region with data, that region's data will not be - * scanned. - * For more information, see - * https://cloud.google.com/sensitive-data-protection/docs/data-profiles#data-residency. - * - * Generated from protobuf field repeated string inspect_templates = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInspectTemplates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->inspect_templates = $arr; - - return $this; - } - - /** - * Actions to execute at the completion of scanning. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActions() - { - return $this->actions; - } - - /** - * Actions to execute at the completion of scanning. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DataProfileAction actions = 4; - * @param array<\Google\Cloud\Dlp\V2\DataProfileAction>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DataProfileAction::class); - $this->actions = $arr; - - return $this; - } - - /** - * Target to match against for determining what to scan and how frequently. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTargets() - { - return $this->targets; - } - - /** - * Target to match against for determining what to scan and how frequently. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryTarget targets = 5; - * @param array<\Google\Cloud\Dlp\V2\DiscoveryTarget>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTargets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DiscoveryTarget::class); - $this->targets = $arr; - - return $this; - } - - /** - * Output only. A stream of errors encountered when the config was activated. - * Repeated errors may result in the config automatically being paused. Output - * only field. Will return the last 100 errors. Whenever the config is - * modified this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A stream of errors encountered when the config was activated. - * Repeated errors may result in the config automatically being paused. Output - * only field. Will return the last 100 errors. Whenever the config is - * modified this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * Output only. The creation timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last update timestamp of a DiscoveryConfig. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last update timestamp of a DiscoveryConfig. - * - * 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 timestamp of the last time this config was executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastRunTime() - { - return $this->last_run_time; - } - - public function hasLastRunTime() - { - return isset($this->last_run_time); - } - - public function clearLastRunTime() - { - unset($this->last_run_time); - } - - /** - * Output only. The timestamp of the last time this config was executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastRunTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_run_time = $var; - - return $this; - } - - /** - * Required. A status for this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Required. A status for this configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DiscoveryConfig\Status::class); - $this->status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php deleted file mode 100644 index f562a26a05a6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/OrgConfig.php +++ /dev/null @@ -1,122 +0,0 @@ -google.privacy.dlp.v2.DiscoveryConfig.OrgConfig - */ -class OrgConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The data to scan: folder, org, or project - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1; - */ - protected $location = null; - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the Cloud DLP API must be enabled. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoveryStartingLocation $location - * The data to scan: folder, org, or project - * @type string $project_id - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the Cloud DLP API must be enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The data to scan: folder, org, or project - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1; - * @return \Google\Cloud\Dlp\V2\DiscoveryStartingLocation|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * The data to scan: folder, org, or project - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryStartingLocation location = 1; - * @param \Google\Cloud\Dlp\V2\DiscoveryStartingLocation $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryStartingLocation::class); - $this->location = $var; - - return $this; - } - - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the Cloud DLP API must be enabled. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The project that will run the scan. The DLP service - * account that exists within this project must have access to all resources - * that are profiled, and the Cloud DLP API must be enabled. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OrgConfig::class, \Google\Cloud\Dlp\V2\DiscoveryConfig_OrgConfig::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php deleted file mode 100644 index 64226233f6e9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryConfig/Status.php +++ /dev/null @@ -1,65 +0,0 @@ -google.privacy.dlp.v2.DiscoveryConfig.Status - */ -class Status -{ - /** - * Unused - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * The discovery config is currently active. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The discovery config is paused temporarily. - * - * Generated from protobuf enum PAUSED = 2; - */ - const PAUSED = 2; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::PAUSED => 'PAUSED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Dlp\V2\DiscoveryConfig_Status::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php deleted file mode 100644 index eb161f68031a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryFileStoreConditions.php +++ /dev/null @@ -1,173 +0,0 @@ -google.privacy.dlp.v2.DiscoveryFileStoreConditions - */ -class DiscoveryFileStoreConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. File store must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $created_after = null; - /** - * Optional. Minimum age a file store must have. If set, the value must be 1 - * hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $min_age = null; - protected $conditions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $created_after - * Optional. File store must have been created after this date. Used to avoid - * backfilling. - * @type \Google\Protobuf\Duration $min_age - * Optional. Minimum age a file store must have. If set, the value must be 1 - * hour or greater. - * @type \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions $cloud_storage_conditions - * Optional. Cloud Storage conditions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. File store must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreatedAfter() - { - return $this->created_after; - } - - public function hasCreatedAfter() - { - return isset($this->created_after); - } - - public function clearCreatedAfter() - { - unset($this->created_after); - } - - /** - * Optional. File store must have been created after this date. Used to avoid - * backfilling. - * - * Generated from protobuf field .google.protobuf.Timestamp created_after = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreatedAfter($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->created_after = $var; - - return $this; - } - - /** - * Optional. Minimum age a file store must have. If set, the value must be 1 - * hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getMinAge() - { - return $this->min_age; - } - - public function hasMinAge() - { - return isset($this->min_age); - } - - public function clearMinAge() - { - unset($this->min_age); - } - - /** - * Optional. Minimum age a file store must have. If set, the value must be 1 - * hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinAge($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_age = $var; - - return $this; - } - - /** - * Optional. Cloud Storage conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions|null - */ - public function getCloudStorageConditions() - { - return $this->readOneof(3); - } - - public function hasCloudStorageConditions() - { - return $this->hasOneof(3); - } - - /** - * Optional. Cloud Storage conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryCloudStorageConditions cloud_storage_conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions $var - * @return $this - */ - public function setCloudStorageConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryCloudStorageConditions::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getConditions() - { - return $this->whichOneof("conditions"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php deleted file mode 100644 index 097c38ea0791..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryGenerationCadence.php +++ /dev/null @@ -1,214 +0,0 @@ -google.privacy.dlp.v2.DiscoveryGenerationCadence - */ -class DiscoveryGenerationCadence extends \Google\Protobuf\Internal\Message -{ - /** - * Governs when to update data profiles when a schema is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoverySchemaModifiedCadence schema_modified_cadence = 1; - */ - protected $schema_modified_cadence = null; - /** - * Governs when to update data profiles when a table is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryTableModifiedCadence table_modified_cadence = 2; - */ - protected $table_modified_cadence = null; - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - */ - protected $inspect_template_modified_cadence = null; - /** - * Frequency at which profiles should be updated, regardless of whether the - * underlying resource has changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; - */ - protected $refresh_frequency = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence $schema_modified_cadence - * Governs when to update data profiles when a schema is modified. - * @type \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence $table_modified_cadence - * Governs when to update data profiles when a table is modified. - * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * @type int $refresh_frequency - * Frequency at which profiles should be updated, regardless of whether the - * underlying resource has changed. Defaults to never. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Governs when to update data profiles when a schema is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoverySchemaModifiedCadence schema_modified_cadence = 1; - * @return \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence|null - */ - public function getSchemaModifiedCadence() - { - return $this->schema_modified_cadence; - } - - public function hasSchemaModifiedCadence() - { - return isset($this->schema_modified_cadence); - } - - public function clearSchemaModifiedCadence() - { - unset($this->schema_modified_cadence); - } - - /** - * Governs when to update data profiles when a schema is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoverySchemaModifiedCadence schema_modified_cadence = 1; - * @param \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence $var - * @return $this - */ - public function setSchemaModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoverySchemaModifiedCadence::class); - $this->schema_modified_cadence = $var; - - return $this; - } - - /** - * Governs when to update data profiles when a table is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryTableModifiedCadence table_modified_cadence = 2; - * @return \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence|null - */ - public function getTableModifiedCadence() - { - return $this->table_modified_cadence; - } - - public function hasTableModifiedCadence() - { - return isset($this->table_modified_cadence); - } - - public function clearTableModifiedCadence() - { - unset($this->table_modified_cadence); - } - - /** - * Governs when to update data profiles when a table is modified. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryTableModifiedCadence table_modified_cadence = 2; - * @param \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence $var - * @return $this - */ - public function setTableModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryTableModifiedCadence::class); - $this->table_modified_cadence = $var; - - return $this; - } - - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null - */ - public function getInspectTemplateModifiedCadence() - { - return $this->inspect_template_modified_cadence; - } - - public function hasInspectTemplateModifiedCadence() - { - return isset($this->inspect_template_modified_cadence); - } - - public function clearInspectTemplateModifiedCadence() - { - unset($this->inspect_template_modified_cadence); - } - - /** - * Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 3; - * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var - * @return $this - */ - public function setInspectTemplateModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); - $this->inspect_template_modified_cadence = $var; - - return $this; - } - - /** - * Frequency at which profiles should be updated, regardless of whether the - * underlying resource has changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; - * @return int - */ - public function getRefreshFrequency() - { - return $this->refresh_frequency; - } - - /** - * Frequency at which profiles should be updated, regardless of whether the - * underlying resource has changed. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 4; - * @param int $var - * @return $this - */ - public function setRefreshFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->refresh_frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php deleted file mode 100644 index 51022f9d6f28..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryInspectTemplateModifiedCadence.php +++ /dev/null @@ -1,72 +0,0 @@ -google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence - */ -class DiscoveryInspectTemplateModifiedCadence extends \Google\Protobuf\Internal\Message -{ - /** - * How frequently data profiles can be updated when the template is modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; - */ - protected $frequency = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $frequency - * How frequently data profiles can be updated when the template is modified. - * Defaults to never. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * How frequently data profiles can be updated when the template is modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * How frequently data profiles can be updated when the template is modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 1; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php deleted file mode 100644 index ce1ab5ced5b3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudConditions.php +++ /dev/null @@ -1,124 +0,0 @@ -google.privacy.dlp.v2.DiscoveryOtherCloudConditions - */ -class DiscoveryOtherCloudConditions extends \Google\Protobuf\Internal\Message -{ - /** - * Minimum age a resource must be before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 1; - */ - protected $min_age = null; - protected $conditions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $min_age - * Minimum age a resource must be before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * @type \Google\Cloud\Dlp\V2\AmazonS3BucketConditions $amazon_s3_bucket_conditions - * Amazon S3 bucket conditions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Minimum age a resource must be before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getMinAge() - { - return $this->min_age; - } - - public function hasMinAge() - { - return isset($this->min_age); - } - - public function clearMinAge() - { - unset($this->min_age); - } - - /** - * Minimum age a resource must be before Cloud DLP can profile it. Value must - * be 1 hour or greater. - * - * Generated from protobuf field .google.protobuf.Duration min_age = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinAge($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_age = $var; - - return $this; - } - - /** - * Amazon S3 bucket conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketConditions amazon_s3_bucket_conditions = 2; - * @return \Google\Cloud\Dlp\V2\AmazonS3BucketConditions|null - */ - public function getAmazonS3BucketConditions() - { - return $this->readOneof(2); - } - - public function hasAmazonS3BucketConditions() - { - return $this->hasOneof(2); - } - - /** - * Amazon S3 bucket conditions. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketConditions amazon_s3_bucket_conditions = 2; - * @param \Google\Cloud\Dlp\V2\AmazonS3BucketConditions $var - * @return $this - */ - public function setAmazonS3BucketConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AmazonS3BucketConditions::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getConditions() - { - return $this->whichOneof("conditions"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php deleted file mode 100644 index b5c32eb8ac64..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudFilter.php +++ /dev/null @@ -1,154 +0,0 @@ -google.privacy.dlp.v2.DiscoveryOtherCloudFilter - */ -class DiscoveryOtherCloudFilter extends \Google\Protobuf\Internal\Message -{ - protected $filter; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\OtherCloudResourceCollection $collection - * A collection of resources for this filter to apply to. - * @type \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference $single_resource - * The resource to scan. Configs using this filter can only have one target - * (the target with this single resource reference). - * @type \Google\Cloud\Dlp\V2\AllOtherResources $others - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A collection of resources for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1; - * @return \Google\Cloud\Dlp\V2\OtherCloudResourceCollection|null - */ - public function getCollection() - { - return $this->readOneof(1); - } - - public function hasCollection() - { - return $this->hasOneof(1); - } - - /** - * A collection of resources for this filter to apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceCollection collection = 1; - * @param \Google\Cloud\Dlp\V2\OtherCloudResourceCollection $var - * @return $this - */ - public function setCollection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudResourceCollection::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The resource to scan. Configs using this filter can only have one target - * (the target with this single resource reference). - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2; - * @return \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference|null - */ - public function getSingleResource() - { - return $this->readOneof(2); - } - - public function hasSingleResource() - { - return $this->hasOneof(2); - } - - /** - * The resource to scan. Configs using this filter can only have one target - * (the target with this single resource reference). - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudSingleResourceReference single_resource = 2; - * @param \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference $var - * @return $this - */ - public function setSingleResource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudSingleResourceReference::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\AllOtherResources|null - */ - public function getOthers() - { - return $this->readOneof(100); - } - - public function hasOthers() - { - return $this->hasOneof(100); - } - - /** - * Optional. Catch-all. This should always be the last target in the list - * because anything above it will apply first. Should only appear once in a - * configuration. If none is specified, a default one will be added - * automatically. - * - * Generated from protobuf field .google.privacy.dlp.v2.AllOtherResources others = 100 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\AllOtherResources $var - * @return $this - */ - public function setOthers($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AllOtherResources::class); - $this->writeOneof(100, $var); - - return $this; - } - - /** - * @return string - */ - public function getFilter() - { - return $this->whichOneof("filter"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php deleted file mode 100644 index 6f51ca458ed7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryOtherCloudGenerationCadence.php +++ /dev/null @@ -1,125 +0,0 @@ -google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence - */ -class DiscoveryOtherCloudGenerationCadence extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Frequency to update profiles regardless of whether the underlying - * resource has changes. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $refresh_frequency = 0; - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $inspect_template_modified_cadence = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $refresh_frequency - * Optional. Frequency to update profiles regardless of whether the underlying - * resource has changes. Defaults to never. - * @type \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $inspect_template_modified_cadence - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Frequency to update profiles regardless of whether the underlying - * resource has changes. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getRefreshFrequency() - { - return $this->refresh_frequency; - } - - /** - * Optional. Frequency to update profiles regardless of whether the underlying - * resource has changes. Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency refresh_frequency = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setRefreshFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->refresh_frequency = $var; - - return $this; - } - - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence|null - */ - public function getInspectTemplateModifiedCadence() - { - return $this->inspect_template_modified_cadence; - } - - public function hasInspectTemplateModifiedCadence() - { - return isset($this->inspect_template_modified_cadence); - } - - public function clearInspectTemplateModifiedCadence() - { - unset($this->inspect_template_modified_cadence); - } - - /** - * Optional. Governs when to update data profiles when the inspection rules - * defined by the `InspectTemplate` change. - * If not set, changing the template will not cause a data profile to update. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryInspectTemplateModifiedCadence inspect_template_modified_cadence = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence $var - * @return $this - */ - public function setInspectTemplateModifiedCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryInspectTemplateModifiedCadence::class); - $this->inspect_template_modified_cadence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php deleted file mode 100644 index 0fa1784d3daf..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoverySchemaModifiedCadence.php +++ /dev/null @@ -1,113 +0,0 @@ -google.privacy.dlp.v2.DiscoverySchemaModifiedCadence - */ -class DiscoverySchemaModifiedCadence extends \Google\Protobuf\Internal\Message -{ - /** - * The type of events to consider when deciding if the table's schema - * has been modified and should have the profile updated. Defaults to - * NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQuerySchemaModification types = 1; - */ - private $types; - /** - * How frequently profiles may be updated when schemas are - * modified. Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - */ - protected $frequency = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $types - * The type of events to consider when deciding if the table's schema - * has been modified and should have the profile updated. Defaults to - * NEW_COLUMNS. - * @type int $frequency - * How frequently profiles may be updated when schemas are - * modified. Defaults to monthly. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The type of events to consider when deciding if the table's schema - * has been modified and should have the profile updated. Defaults to - * NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQuerySchemaModification types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * The type of events to consider when deciding if the table's schema - * has been modified and should have the profile updated. Defaults to - * NEW_COLUMNS. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQuerySchemaModification types = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\BigQuerySchemaModification::class); - $this->types = $arr; - - return $this; - } - - /** - * How frequently profiles may be updated when schemas are - * modified. Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * How frequently profiles may be updated when schemas are - * modified. Defaults to monthly. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php deleted file mode 100644 index a4dea43d8df0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryStartingLocation.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.DiscoveryStartingLocation - */ -class DiscoveryStartingLocation extends \Google\Protobuf\Internal\Message -{ - protected $location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $organization_id - * The ID of an organization to scan. - * @type int|string $folder_id - * The ID of the folder within an organization to be scanned. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The ID of an organization to scan. - * - * Generated from protobuf field int64 organization_id = 1; - * @return int|string - */ - public function getOrganizationId() - { - return $this->readOneof(1); - } - - public function hasOrganizationId() - { - return $this->hasOneof(1); - } - - /** - * The ID of an organization to scan. - * - * Generated from protobuf field int64 organization_id = 1; - * @param int|string $var - * @return $this - */ - public function setOrganizationId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The ID of the folder within an organization to be scanned. - * - * Generated from protobuf field int64 folder_id = 2; - * @return int|string - */ - public function getFolderId() - { - return $this->readOneof(2); - } - - public function hasFolderId() - { - return $this->hasOneof(2); - } - - /** - * The ID of the folder within an organization to be scanned. - * - * Generated from protobuf field int64 folder_id = 2; - * @param int|string $var - * @return $this - */ - public function setFolderId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getLocation() - { - return $this->whichOneof("location"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php deleted file mode 100644 index 41c4460b6233..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTableModifiedCadence.php +++ /dev/null @@ -1,113 +0,0 @@ -google.privacy.dlp.v2.DiscoveryTableModifiedCadence - */ -class DiscoveryTableModifiedCadence extends \Google\Protobuf\Internal\Message -{ - /** - * The type of events to consider when deciding if the table has been - * modified and should have the profile updated. Defaults to - * MODIFIED_TIMESTAMP. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableModification types = 1; - */ - private $types; - /** - * How frequently data profiles can be updated when tables are modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - */ - protected $frequency = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $types - * The type of events to consider when deciding if the table has been - * modified and should have the profile updated. Defaults to - * MODIFIED_TIMESTAMP. - * @type int $frequency - * How frequently data profiles can be updated when tables are modified. - * Defaults to never. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The type of events to consider when deciding if the table has been - * modified and should have the profile updated. Defaults to - * MODIFIED_TIMESTAMP. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableModification types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTypes() - { - return $this->types; - } - - /** - * The type of events to consider when deciding if the table has been - * modified and should have the profile updated. Defaults to - * MODIFIED_TIMESTAMP. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BigQueryTableModification types = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\BigQueryTableModification::class); - $this->types = $arr; - - return $this; - } - - /** - * How frequently data profiles can be updated when tables are modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @return int - */ - public function getFrequency() - { - return $this->frequency; - } - - /** - * How frequently data profiles can be updated when tables are modified. - * Defaults to never. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileUpdateFrequency frequency = 2; - * @param int $var - * @return $this - */ - public function setFrequency($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DataProfileUpdateFrequency::class); - $this->frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php deleted file mode 100644 index e01a879ee1f4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DiscoveryTarget.php +++ /dev/null @@ -1,225 +0,0 @@ -google.privacy.dlp.v2.DiscoveryTarget - */ -class DiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - protected $target; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget $big_query_target - * BigQuery target for Discovery. The first target to match a table will be - * the one applied. - * @type \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget $cloud_sql_target - * Cloud SQL target for Discovery. The first target to match a table will be - * the one applied. - * @type \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget $secrets_target - * Discovery target that looks for credentials and secrets stored in cloud - * resource metadata and reports them as vulnerabilities to Security Command - * Center. Only one target of this type is allowed. - * @type \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget $cloud_storage_target - * Cloud Storage target for Discovery. The first target to match a table - * will be the one applied. - * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget $other_cloud_target - * Other clouds target for discovery. The first target to match a resource - * will be the one applied. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * BigQuery target for Discovery. The first target to match a table will be - * the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget|null - */ - public function getBigQueryTarget() - { - return $this->readOneof(1); - } - - public function hasBigQueryTarget() - { - return $this->hasOneof(1); - } - - /** - * BigQuery target for Discovery. The first target to match a table will be - * the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryDiscoveryTarget big_query_target = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget $var - * @return $this - */ - public function setBigQueryTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryDiscoveryTarget::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Cloud SQL target for Discovery. The first target to match a table will be - * the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2; - * @return \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget|null - */ - public function getCloudSqlTarget() - { - return $this->readOneof(2); - } - - public function hasCloudSqlTarget() - { - return $this->hasOneof(2); - } - - /** - * Cloud SQL target for Discovery. The first target to match a table will be - * the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudSqlDiscoveryTarget cloud_sql_target = 2; - * @param \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget $var - * @return $this - */ - public function setCloudSqlTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudSqlDiscoveryTarget::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Discovery target that looks for credentials and secrets stored in cloud - * resource metadata and reports them as vulnerabilities to Security Command - * Center. Only one target of this type is allowed. - * - * Generated from protobuf field .google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3; - * @return \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget|null - */ - public function getSecretsTarget() - { - return $this->readOneof(3); - } - - public function hasSecretsTarget() - { - return $this->hasOneof(3); - } - - /** - * Discovery target that looks for credentials and secrets stored in cloud - * resource metadata and reports them as vulnerabilities to Security Command - * Center. Only one target of this type is allowed. - * - * Generated from protobuf field .google.privacy.dlp.v2.SecretsDiscoveryTarget secrets_target = 3; - * @param \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget $var - * @return $this - */ - public function setSecretsTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SecretsDiscoveryTarget::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Cloud Storage target for Discovery. The first target to match a table - * will be the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; - * @return \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget|null - */ - public function getCloudStorageTarget() - { - return $this->readOneof(4); - } - - public function hasCloudStorageTarget() - { - return $this->hasOneof(4); - } - - /** - * Cloud Storage target for Discovery. The first target to match a table - * will be the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageDiscoveryTarget cloud_storage_target = 4; - * @param \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget $var - * @return $this - */ - public function setCloudStorageTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageDiscoveryTarget::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Other clouds target for discovery. The first target to match a resource - * will be the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryTarget other_cloud_target = 5; - * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget|null - */ - public function getOtherCloudTarget() - { - return $this->readOneof(5); - } - - public function hasOtherCloudTarget() - { - return $this->hasOneof(5); - } - - /** - * Other clouds target for discovery. The first target to match a resource - * will be the one applied. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryTarget other_cloud_target = 5; - * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget $var - * @return $this - */ - public function setOtherCloudTarget($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryTarget::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getTarget() - { - return $this->whichOneof("target"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php deleted file mode 100644 index 9bd92b2beccb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob.php +++ /dev/null @@ -1,492 +0,0 @@ -google.privacy.dlp.v2.DlpJob - */ -class DlpJob extends \Google\Protobuf\Internal\Message -{ - /** - * The server-assigned name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The type of job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 2; - */ - protected $type = 0; - /** - * State of a job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJob.JobState state = 3; - */ - protected $state = 0; - /** - * Time when the job was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - */ - protected $create_time = null; - /** - * Time when the job started. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 7; - */ - protected $start_time = null; - /** - * Time when the job finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; - */ - protected $end_time = null; - /** - * Time when the job was last modified by the system. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified = 15; - */ - protected $last_modified = null; - /** - * If created by a job trigger, the resource name of the trigger that - * instantiated the job. - * - * Generated from protobuf field string job_trigger_name = 10; - */ - protected $job_trigger_name = ''; - /** - * A stream of errors encountered running the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 11; - */ - private $errors; - /** - * Events that should occur after the job has completed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ActionDetails action_details = 12; - */ - private $action_details; - protected $details; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The server-assigned name. - * @type int $type - * The type of job. - * @type int $state - * State of a job. - * @type \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails $risk_details - * Results from analyzing risk of a data source. - * @type \Google\Cloud\Dlp\V2\InspectDataSourceDetails $inspect_details - * Results from inspecting a data source. - * @type \Google\Protobuf\Timestamp $create_time - * Time when the job was created. - * @type \Google\Protobuf\Timestamp $start_time - * Time when the job started. - * @type \Google\Protobuf\Timestamp $end_time - * Time when the job finished. - * @type \Google\Protobuf\Timestamp $last_modified - * Time when the job was last modified by the system. - * @type string $job_trigger_name - * If created by a job trigger, the resource name of the trigger that - * instantiated the job. - * @type array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $errors - * A stream of errors encountered running the job. - * @type array<\Google\Cloud\Dlp\V2\ActionDetails>|\Google\Protobuf\Internal\RepeatedField $action_details - * Events that should occur after the job has completed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The server-assigned name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The server-assigned name. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The type of job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 2; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 2; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJobType::class); - $this->type = $var; - - return $this; - } - - /** - * State of a job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJob.JobState state = 3; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of a job. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJob.JobState state = 3; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJob\JobState::class); - $this->state = $var; - - return $this; - } - - /** - * Results from analyzing risk of a data source. - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4; - * @return \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails|null - */ - public function getRiskDetails() - { - return $this->readOneof(4); - } - - public function hasRiskDetails() - { - return $this->hasOneof(4); - } - - /** - * Results from analyzing risk of a data source. - * - * Generated from protobuf field .google.privacy.dlp.v2.AnalyzeDataSourceRiskDetails risk_details = 4; - * @param \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails $var - * @return $this - */ - public function setRiskDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AnalyzeDataSourceRiskDetails::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Results from inspecting a data source. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5; - * @return \Google\Cloud\Dlp\V2\InspectDataSourceDetails|null - */ - public function getInspectDetails() - { - return $this->readOneof(5); - } - - public function hasInspectDetails() - { - return $this->hasOneof(5); - } - - /** - * Results from inspecting a data source. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails inspect_details = 5; - * @param \Google\Cloud\Dlp\V2\InspectDataSourceDetails $var - * @return $this - */ - public function setInspectDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectDataSourceDetails::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Time when the job was created. - * - * 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 when the job was created. - * - * 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; - } - - /** - * Time when the job started. - * - * 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); - } - - /** - * Time when the job started. - * - * 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; - } - - /** - * Time when the job finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Time when the job finished. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Time when the job was last modified by the system. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified = 15; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastModified() - { - return $this->last_modified; - } - - public function hasLastModified() - { - return isset($this->last_modified); - } - - public function clearLastModified() - { - unset($this->last_modified); - } - - /** - * Time when the job was last modified by the system. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified = 15; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastModified($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_modified = $var; - - return $this; - } - - /** - * If created by a job trigger, the resource name of the trigger that - * instantiated the job. - * - * Generated from protobuf field string job_trigger_name = 10; - * @return string - */ - public function getJobTriggerName() - { - return $this->job_trigger_name; - } - - /** - * If created by a job trigger, the resource name of the trigger that - * instantiated the job. - * - * Generated from protobuf field string job_trigger_name = 10; - * @param string $var - * @return $this - */ - public function setJobTriggerName($var) - { - GPBUtil::checkString($var, True); - $this->job_trigger_name = $var; - - return $this; - } - - /** - * A stream of errors encountered running the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * A stream of errors encountered running the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 11; - * @param array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * Events that should occur after the job has completed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ActionDetails action_details = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActionDetails() - { - return $this->action_details; - } - - /** - * Events that should occur after the job has completed. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ActionDetails action_details = 12; - * @param array<\Google\Cloud\Dlp\V2\ActionDetails>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActionDetails($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ActionDetails::class); - $this->action_details = $arr; - - return $this; - } - - /** - * @return string - */ - public function getDetails() - { - return $this->whichOneof("details"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php deleted file mode 100644 index 5ba68c696f63..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJob/JobState.php +++ /dev/null @@ -1,96 +0,0 @@ -google.privacy.dlp.v2.DlpJob.JobState - */ -class JobState -{ - /** - * Unused. - * - * Generated from protobuf enum JOB_STATE_UNSPECIFIED = 0; - */ - const JOB_STATE_UNSPECIFIED = 0; - /** - * The job has not yet started. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The job is currently running. Once a job has finished it will transition - * to FAILED or DONE. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The job is no longer running. - * - * Generated from protobuf enum DONE = 3; - */ - const DONE = 3; - /** - * The job was canceled before it could be completed. - * - * Generated from protobuf enum CANCELED = 4; - */ - const CANCELED = 4; - /** - * The job had an error and did not complete. - * - * Generated from protobuf enum FAILED = 5; - */ - const FAILED = 5; - /** - * The job is currently accepting findings via hybridInspect. - * A hybrid job in ACTIVE state may continue to have findings added to it - * through the calling of hybridInspect. After the job has finished no more - * calls to hybridInspect may be made. ACTIVE jobs can transition to DONE. - * - * Generated from protobuf enum ACTIVE = 6; - */ - const ACTIVE = 6; - - private static $valueToName = [ - self::JOB_STATE_UNSPECIFIED => 'JOB_STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::RUNNING => 'RUNNING', - self::DONE => 'DONE', - self::CANCELED => 'CANCELED', - self::FAILED => 'FAILED', - self::ACTIVE => 'ACTIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(JobState::class, \Google\Cloud\Dlp\V2\DlpJob_JobState::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php deleted file mode 100644 index c34fc91f3d4f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DlpJobType.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.DlpJobType - */ -class DlpJobType -{ - /** - * Defaults to INSPECT_JOB. - * - * Generated from protobuf enum DLP_JOB_TYPE_UNSPECIFIED = 0; - */ - const DLP_JOB_TYPE_UNSPECIFIED = 0; - /** - * The job inspected Google Cloud for sensitive data. - * - * Generated from protobuf enum INSPECT_JOB = 1; - */ - const INSPECT_JOB = 1; - /** - * The job executed a Risk Analysis computation. - * - * Generated from protobuf enum RISK_ANALYSIS_JOB = 2; - */ - const RISK_ANALYSIS_JOB = 2; - - private static $valueToName = [ - self::DLP_JOB_TYPE_UNSPECIFIED => 'DLP_JOB_TYPE_UNSPECIFIED', - self::INSPECT_JOB => 'INSPECT_JOB', - self::RISK_ANALYSIS_JOB => 'RISK_ANALYSIS_JOB', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php deleted file mode 100644 index 1abf21ab6a0b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/DocumentLocation.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.DocumentLocation - */ -class DocumentLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Offset of the line, from the beginning of the file, where the finding - * is located. - * - * Generated from protobuf field int64 file_offset = 1; - */ - protected $file_offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $file_offset - * Offset of the line, from the beginning of the file, where the finding - * is located. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Offset of the line, from the beginning of the file, where the finding - * is located. - * - * Generated from protobuf field int64 file_offset = 1; - * @return int|string - */ - public function getFileOffset() - { - return $this->file_offset; - } - - /** - * Offset of the line, from the beginning of the file, where the finding - * is located. - * - * Generated from protobuf field int64 file_offset = 1; - * @param int|string $var - * @return $this - */ - public function setFileOffset($var) - { - GPBUtil::checkInt64($var); - $this->file_offset = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php deleted file mode 100644 index a21080206e59..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EncryptionStatus.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.EncryptionStatus - */ -class EncryptionStatus -{ - /** - * Unused. - * - * Generated from protobuf enum ENCRYPTION_STATUS_UNSPECIFIED = 0; - */ - const ENCRYPTION_STATUS_UNSPECIFIED = 0; - /** - * Google manages server-side encryption keys on your behalf. - * - * Generated from protobuf enum ENCRYPTION_GOOGLE_MANAGED = 1; - */ - const ENCRYPTION_GOOGLE_MANAGED = 1; - /** - * Customer provides the key. - * - * Generated from protobuf enum ENCRYPTION_CUSTOMER_MANAGED = 2; - */ - const ENCRYPTION_CUSTOMER_MANAGED = 2; - - private static $valueToName = [ - self::ENCRYPTION_STATUS_UNSPECIFIED => 'ENCRYPTION_STATUS_UNSPECIFIED', - self::ENCRYPTION_GOOGLE_MANAGED => 'ENCRYPTION_GOOGLE_MANAGED', - self::ENCRYPTION_CUSTOMER_MANAGED => 'ENCRYPTION_CUSTOMER_MANAGED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php deleted file mode 100644 index 5600e90f2b91..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/EntityId.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.EntityId - */ -class EntityId extends \Google\Protobuf\Internal\Message -{ - /** - * Composite key indicating which field contains the entity identifier. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Composite key indicating which field contains the entity identifier. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Composite key indicating which field contains the entity identifier. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Composite key indicating which field contains the entity identifier. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php deleted file mode 100644 index c4187c6b1a9b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error.php +++ /dev/null @@ -1,150 +0,0 @@ -google.privacy.dlp.v2.Error - */ -class Error extends \Google\Protobuf\Internal\Message -{ - /** - * Detailed error codes and messages. - * - * Generated from protobuf field .google.rpc.Status details = 1; - */ - protected $details = null; - /** - * The times the error occurred. List includes the oldest timestamp and the - * last 9 timestamps. - * - * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; - */ - private $timestamps; - /** - * Additional information about the error. - * - * Generated from protobuf field .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; - */ - protected $extra_info = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\Status $details - * Detailed error codes and messages. - * @type array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $timestamps - * The times the error occurred. List includes the oldest timestamp and the - * last 9 timestamps. - * @type int $extra_info - * Additional information about the error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Detailed error codes and messages. - * - * Generated from protobuf field .google.rpc.Status details = 1; - * @return \Google\Rpc\Status|null - */ - public function getDetails() - { - return $this->details; - } - - public function hasDetails() - { - return isset($this->details); - } - - public function clearDetails() - { - unset($this->details); - } - - /** - * Detailed error codes and messages. - * - * Generated from protobuf field .google.rpc.Status details = 1; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->details = $var; - - return $this; - } - - /** - * The times the error occurred. List includes the oldest timestamp and the - * last 9 timestamps. - * - * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTimestamps() - { - return $this->timestamps; - } - - /** - * The times the error occurred. List includes the oldest timestamp and the - * last 9 timestamps. - * - * Generated from protobuf field repeated .google.protobuf.Timestamp timestamps = 2; - * @param array<\Google\Protobuf\Timestamp>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTimestamps($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Timestamp::class); - $this->timestamps = $arr; - - return $this; - } - - /** - * Additional information about the error. - * - * Generated from protobuf field .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; - * @return int - */ - public function getExtraInfo() - { - return $this->extra_info; - } - - /** - * Additional information about the error. - * - * Generated from protobuf field .google.privacy.dlp.v2.Error.ErrorExtraInfo extra_info = 4; - * @param int $var - * @return $this - */ - public function setExtraInfo($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Error\ErrorExtraInfo::class); - $this->extra_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php deleted file mode 100644 index 61fa1f11a92d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Error/ErrorExtraInfo.php +++ /dev/null @@ -1,64 +0,0 @@ -google.privacy.dlp.v2.Error.ErrorExtraInfo - */ -class ErrorExtraInfo -{ - /** - * Unused. - * - * Generated from protobuf enum ERROR_INFO_UNSPECIFIED = 0; - */ - const ERROR_INFO_UNSPECIFIED = 0; - /** - * Image scan is not available in the region. - * - * Generated from protobuf enum IMAGE_SCAN_UNAVAILABLE_IN_REGION = 1; - */ - const IMAGE_SCAN_UNAVAILABLE_IN_REGION = 1; - /** - * File store cluster is not supported for profile generation. - * - * Generated from protobuf enum FILE_STORE_CLUSTER_UNSUPPORTED = 2; - */ - const FILE_STORE_CLUSTER_UNSUPPORTED = 2; - - private static $valueToName = [ - self::ERROR_INFO_UNSPECIFIED => 'ERROR_INFO_UNSPECIFIED', - self::IMAGE_SCAN_UNAVAILABLE_IN_REGION => 'IMAGE_SCAN_UNAVAILABLE_IN_REGION', - self::FILE_STORE_CLUSTER_UNSUPPORTED => 'FILE_STORE_CLUSTER_UNSUPPORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ErrorExtraInfo::class, \Google\Cloud\Dlp\V2\Error_ErrorExtraInfo::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php deleted file mode 100644 index b36a1ee82195..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeByHotword.php +++ /dev/null @@ -1,136 +0,0 @@ -google.privacy.dlp.v2.ExcludeByHotword - */ -class ExcludeByHotword extends \Google\Protobuf\Internal\Message -{ - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - */ - protected $hotword_regex = null; - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The windowBefore property in proximity should be set to 1 if the hotword - * needs to be included in a column header. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - */ - protected $proximity = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $hotword_regex - * Regular expression pattern defining what qualifies as a hotword. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $proximity - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The windowBefore property in proximity should be set to 1 if the hotword - * needs to be included in a column header. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null - */ - public function getHotwordRegex() - { - return $this->hotword_regex; - } - - public function hasHotwordRegex() - { - return isset($this->hotword_regex); - } - - public function clearHotwordRegex() - { - unset($this->hotword_regex); - } - - /** - * Regular expression pattern defining what qualifies as a hotword. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex hotword_regex = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var - * @return $this - */ - public function setHotwordRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); - $this->hotword_regex = $var; - - return $this; - } - - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The windowBefore property in proximity should be set to 1 if the hotword - * needs to be included in a column header. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity|null - */ - public function getProximity() - { - return $this->proximity; - } - - public function hasProximity() - { - return isset($this->proximity); - } - - public function clearProximity() - { - unset($this->proximity); - } - - /** - * Range of characters within which the entire hotword must reside. - * The total length of the window cannot exceed 1000 characters. - * The windowBefore property in proximity should be set to 1 if the hotword - * needs to be included in a column header. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.Proximity proximity = 2; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity $var - * @return $this - */ - public function setProximity($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\Proximity::class); - $this->proximity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php deleted file mode 100644 index bf9b02b680a5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExcludeInfoTypes.php +++ /dev/null @@ -1,95 +0,0 @@ -google.privacy.dlp.v2.ExcludeInfoTypes - */ -class ExcludeInfoTypes extends \Google\Protobuf\Internal\Message -{ - /** - * InfoType list in ExclusionRule rule drops a finding when it overlaps or - * contained within with a finding of an infoType from this list. For - * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and - * `exclusion_rule` containing `exclude_info_types.info_types` with - * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap - * with EMAIL_ADDRESS finding. - * That leads to "555-222-2222@example.org" to generate only a single - * finding, namely email address. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $info_types - * InfoType list in ExclusionRule rule drops a finding when it overlaps or - * contained within with a finding of an infoType from this list. For - * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and - * `exclusion_rule` containing `exclude_info_types.info_types` with - * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap - * with EMAIL_ADDRESS finding. - * That leads to "555-222-2222@example.org" to generate only a single - * finding, namely email address. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * InfoType list in ExclusionRule rule drops a finding when it overlaps or - * contained within with a finding of an infoType from this list. For - * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and - * `exclusion_rule` containing `exclude_info_types.info_types` with - * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap - * with EMAIL_ADDRESS finding. - * That leads to "555-222-2222@example.org" to generate only a single - * finding, namely email address. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * InfoType list in ExclusionRule rule drops a finding when it overlaps or - * contained within with a finding of an infoType from this list. For - * example, for `InspectionRuleSet.info_types` containing "PHONE_NUMBER"` and - * `exclusion_rule` containing `exclude_info_types.info_types` with - * "EMAIL_ADDRESS" the phone number findings are dropped if they overlap - * with EMAIL_ADDRESS finding. - * That leads to "555-222-2222@example.org" to generate only a single - * finding, namely email address. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php deleted file mode 100644 index c238c2b9417d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ExclusionRule.php +++ /dev/null @@ -1,212 +0,0 @@ -google.privacy.dlp.v2.ExclusionRule - */ -class ExclusionRule extends \Google\Protobuf\Internal\Message -{ - /** - * How the rule is applied, see MatchingType documentation for details. - * - * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 4; - */ - protected $matching_type = 0; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $dictionary - * Dictionary which defines the rule. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $regex - * Regular expression which defines the rule. - * @type \Google\Cloud\Dlp\V2\ExcludeInfoTypes $exclude_info_types - * Set of infoTypes for which findings would affect this rule. - * @type \Google\Cloud\Dlp\V2\ExcludeByHotword $exclude_by_hotword - * Drop if the hotword rule is contained in the proximate context. For - * tabular data, the context includes the column name. - * @type int $matching_type - * How the rule is applied, see MatchingType documentation for details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Dictionary which defines the rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null - */ - public function getDictionary() - { - return $this->readOneof(1); - } - - public function hasDictionary() - { - return $this->hasOneof(1); - } - - /** - * Dictionary which defines the rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $var - * @return $this - */ - public function setDictionary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Regular expression which defines the rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null - */ - public function getRegex() - { - return $this->readOneof(2); - } - - public function hasRegex() - { - return $this->hasOneof(2); - } - - /** - * Regular expression which defines the rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var - * @return $this - */ - public function setRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Set of infoTypes for which findings would affect this rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; - * @return \Google\Cloud\Dlp\V2\ExcludeInfoTypes|null - */ - public function getExcludeInfoTypes() - { - return $this->readOneof(3); - } - - public function hasExcludeInfoTypes() - { - return $this->hasOneof(3); - } - - /** - * Set of infoTypes for which findings would affect this rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3; - * @param \Google\Cloud\Dlp\V2\ExcludeInfoTypes $var - * @return $this - */ - public function setExcludeInfoTypes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExcludeInfoTypes::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Drop if the hotword rule is contained in the proximate context. For - * tabular data, the context includes the column name. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5; - * @return \Google\Cloud\Dlp\V2\ExcludeByHotword|null - */ - public function getExcludeByHotword() - { - return $this->readOneof(5); - } - - public function hasExcludeByHotword() - { - return $this->hasOneof(5); - } - - /** - * Drop if the hotword rule is contained in the proximate context. For - * tabular data, the context includes the column name. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5; - * @param \Google\Cloud\Dlp\V2\ExcludeByHotword $var - * @return $this - */ - public function setExcludeByHotword($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExcludeByHotword::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * How the rule is applied, see MatchingType documentation for details. - * - * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 4; - * @return int - */ - public function getMatchingType() - { - return $this->matching_type; - } - - /** - * How the rule is applied, see MatchingType documentation for details. - * - * Generated from protobuf field .google.privacy.dlp.v2.MatchingType matching_type = 4; - * @param int $var - * @return $this - */ - public function setMatchingType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\MatchingType::class); - $this->matching_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php deleted file mode 100644 index 2cdfe5bc25cf..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldId.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.FieldId - */ -class FieldId extends \Google\Protobuf\Internal\Message -{ - /** - * Name describing the field. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name describing the field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Name describing the field. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name describing the field. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php deleted file mode 100644 index 3f7a9a39e9e2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FieldTransformation.php +++ /dev/null @@ -1,225 +0,0 @@ -google.privacy.dlp.v2.FieldTransformation - */ -class FieldTransformation extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Input field(s) to apply the transformation to. - * When you have columns that reference their position within a list, - * omit the index from the FieldId. FieldId name matching ignores the index. - * For example, instead of "contact.nums[0].type", use "contact.nums.type". - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $fields; - /** - * Only apply the transformation if the condition evaluates to true for the - * given `RecordCondition`. The conditions are allowed to reference fields - * that are not used in the actual transformation. - * Example Use Cases: - * - Apply a different bucket transformation to an age column if the zip code - * column for the same record is within a specific range. - * - Redact a field if the date of birth field is greater than 85. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 3; - */ - protected $condition = null; - protected $transformation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $fields - * Required. Input field(s) to apply the transformation to. - * When you have columns that reference their position within a list, - * omit the index from the FieldId. FieldId name matching ignores the index. - * For example, instead of "contact.nums[0].type", use "contact.nums.type". - * @type \Google\Cloud\Dlp\V2\RecordCondition $condition - * Only apply the transformation if the condition evaluates to true for the - * given `RecordCondition`. The conditions are allowed to reference fields - * that are not used in the actual transformation. - * Example Use Cases: - * - Apply a different bucket transformation to an age column if the zip code - * column for the same record is within a specific range. - * - Redact a field if the date of birth field is greater than 85. - * @type \Google\Cloud\Dlp\V2\PrimitiveTransformation $primitive_transformation - * Apply the transformation to the entire field. - * @type \Google\Cloud\Dlp\V2\InfoTypeTransformations $info_type_transformations - * Treat the contents of the field as free text, and selectively - * transform content that matches an `InfoType`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Input field(s) to apply the transformation to. - * When you have columns that reference their position within a list, - * omit the index from the FieldId. FieldId name matching ignores the index. - * For example, instead of "contact.nums[0].type", use "contact.nums.type". - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFields() - { - return $this->fields; - } - - /** - * Required. Input field(s) to apply the transformation to. - * When you have columns that reference their position within a list, - * omit the index from the FieldId. FieldId name matching ignores the index. - * For example, instead of "contact.nums[0].type", use "contact.nums.type". - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId fields = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->fields = $arr; - - return $this; - } - - /** - * Only apply the transformation if the condition evaluates to true for the - * given `RecordCondition`. The conditions are allowed to reference fields - * that are not used in the actual transformation. - * Example Use Cases: - * - Apply a different bucket transformation to an age column if the zip code - * column for the same record is within a specific range. - * - Redact a field if the date of birth field is greater than 85. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 3; - * @return \Google\Cloud\Dlp\V2\RecordCondition|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * Only apply the transformation if the condition evaluates to true for the - * given `RecordCondition`. The conditions are allowed to reference fields - * that are not used in the actual transformation. - * Example Use Cases: - * - Apply a different bucket transformation to an age column if the zip code - * column for the same record is within a specific range. - * - Redact a field if the date of birth field is greater than 85. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 3; - * @param \Google\Cloud\Dlp\V2\RecordCondition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition::class); - $this->condition = $var; - - return $this; - } - - /** - * Apply the transformation to the entire field. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4; - * @return \Google\Cloud\Dlp\V2\PrimitiveTransformation|null - */ - public function getPrimitiveTransformation() - { - return $this->readOneof(4); - } - - public function hasPrimitiveTransformation() - { - return $this->hasOneof(4); - } - - /** - * Apply the transformation to the entire field. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 4; - * @param \Google\Cloud\Dlp\V2\PrimitiveTransformation $var - * @return $this - */ - public function setPrimitiveTransformation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrimitiveTransformation::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Treat the contents of the field as free text, and selectively - * transform content that matches an `InfoType`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5; - * @return \Google\Cloud\Dlp\V2\InfoTypeTransformations|null - */ - public function getInfoTypeTransformations() - { - return $this->readOneof(5); - } - - public function hasInfoTypeTransformations() - { - return $this->hasOneof(5); - } - - /** - * Treat the contents of the field as free text, and selectively - * transform content that matches an `InfoType`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 5; - * @param \Google\Cloud\Dlp\V2\InfoTypeTransformations $var - * @return $this - */ - public function setInfoTypeTransformations($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoTypeTransformations::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getTransformation() - { - return $this->whichOneof("transformation"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php deleted file mode 100644 index 450097605da4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterSummary.php +++ /dev/null @@ -1,367 +0,0 @@ -google.privacy.dlp.v2.FileClusterSummary - */ -class FileClusterSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The file cluster type. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; - */ - protected $file_cluster_type = null; - /** - * InfoTypes detected in this cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; - */ - private $file_store_info_type_summaries; - /** - * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW - * if nothing has been scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - */ - protected $sensitivity_score = null; - /** - * The data risk level of this cluster. RISK_LOW if nothing has been - * scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; - */ - protected $data_risk_level = null; - /** - * A list of errors detected while scanning this cluster. The list is - * truncated to 10 per cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6; - */ - private $errors; - /** - * A sample of file types scanned in this cluster. Empty if no files were - * scanned. File extensions can be derived from the file name or the file - * content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; - */ - private $file_extensions_scanned; - /** - * A sample of file types seen in this cluster. Empty if no files were seen. - * File extensions can be derived from the file name or the file content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; - */ - private $file_extensions_seen; - /** - * True if no files exist in this cluster. If the bucket had more files than - * could be listed, this will be false even if no files for this cluster - * were seen and file_extensions_seen is empty. - * - * Generated from protobuf field bool no_files_exist = 9; - */ - protected $no_files_exist = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FileClusterType $file_cluster_type - * The file cluster type. - * @type array<\Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $file_store_info_type_summaries - * InfoTypes detected in this cluster. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW - * if nothing has been scanned. - * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level - * The data risk level of this cluster. RISK_LOW if nothing has been - * scanned. - * @type array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $errors - * A list of errors detected while scanning this cluster. The list is - * truncated to 10 per cluster. - * @type array<\Google\Cloud\Dlp\V2\FileExtensionInfo>|\Google\Protobuf\Internal\RepeatedField $file_extensions_scanned - * A sample of file types scanned in this cluster. Empty if no files were - * scanned. File extensions can be derived from the file name or the file - * content. - * @type array<\Google\Cloud\Dlp\V2\FileExtensionInfo>|\Google\Protobuf\Internal\RepeatedField $file_extensions_seen - * A sample of file types seen in this cluster. Empty if no files were seen. - * File extensions can be derived from the file name or the file content. - * @type bool $no_files_exist - * True if no files exist in this cluster. If the bucket had more files than - * could be listed, this will be false even if no files for this cluster - * were seen and file_extensions_seen is empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The file cluster type. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; - * @return \Google\Cloud\Dlp\V2\FileClusterType|null - */ - public function getFileClusterType() - { - return $this->file_cluster_type; - } - - public function hasFileClusterType() - { - return isset($this->file_cluster_type); - } - - public function clearFileClusterType() - { - unset($this->file_cluster_type); - } - - /** - * The file cluster type. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType file_cluster_type = 1; - * @param \Google\Cloud\Dlp\V2\FileClusterType $var - * @return $this - */ - public function setFileClusterType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileClusterType::class); - $this->file_cluster_type = $var; - - return $this; - } - - /** - * InfoTypes detected in this cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileStoreInfoTypeSummaries() - { - return $this->file_store_info_type_summaries; - } - - /** - * InfoTypes detected in this cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 2; - * @param array<\Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileStoreInfoTypeSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary::class); - $this->file_store_info_type_summaries = $arr; - - return $this; - } - - /** - * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW - * if nothing has been scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The sensitivity score of this cluster. The score will be SENSITIVITY_LOW - * if nothing has been scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * The data risk level of this cluster. RISK_LOW if nothing has been - * scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; - * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null - */ - public function getDataRiskLevel() - { - return $this->data_risk_level; - } - - public function hasDataRiskLevel() - { - return isset($this->data_risk_level); - } - - public function clearDataRiskLevel() - { - unset($this->data_risk_level); - } - - /** - * The data risk level of this cluster. RISK_LOW if nothing has been - * scanned. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 4; - * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var - * @return $this - */ - public function setDataRiskLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); - $this->data_risk_level = $var; - - return $this; - } - - /** - * A list of errors detected while scanning this cluster. The list is - * truncated to 10 per cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * A list of errors detected while scanning this cluster. The list is - * truncated to 10 per cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6; - * @param array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * A sample of file types scanned in this cluster. Empty if no files were - * scanned. File extensions can be derived from the file name or the file - * content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileExtensionsScanned() - { - return $this->file_extensions_scanned; - } - - /** - * A sample of file types scanned in this cluster. Empty if no files were - * scanned. File extensions can be derived from the file name or the file - * content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_scanned = 7; - * @param array<\Google\Cloud\Dlp\V2\FileExtensionInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileExtensionsScanned($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileExtensionInfo::class); - $this->file_extensions_scanned = $arr; - - return $this; - } - - /** - * A sample of file types seen in this cluster. Empty if no files were seen. - * File extensions can be derived from the file name or the file content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileExtensionsSeen() - { - return $this->file_extensions_seen; - } - - /** - * A sample of file types seen in this cluster. Empty if no files were seen. - * File extensions can be derived from the file name or the file content. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileExtensionInfo file_extensions_seen = 8; - * @param array<\Google\Cloud\Dlp\V2\FileExtensionInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileExtensionsSeen($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileExtensionInfo::class); - $this->file_extensions_seen = $arr; - - return $this; - } - - /** - * True if no files exist in this cluster. If the bucket had more files than - * could be listed, this will be false even if no files for this cluster - * were seen and file_extensions_seen is empty. - * - * Generated from protobuf field bool no_files_exist = 9; - * @return bool - */ - public function getNoFilesExist() - { - return $this->no_files_exist; - } - - /** - * True if no files exist in this cluster. If the bucket had more files than - * could be listed, this will be false even if no files for this cluster - * were seen and file_extensions_seen is empty. - * - * Generated from protobuf field bool no_files_exist = 9; - * @param bool $var - * @return $this - */ - public function setNoFilesExist($var) - { - GPBUtil::checkBool($var); - $this->no_files_exist = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php deleted file mode 100644 index fe211b77bb92..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.FileClusterType - */ -class FileClusterType extends \Google\Protobuf\Internal\Message -{ - protected $file_cluster_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $cluster - * Cluster type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Cluster type. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; - * @return int - */ - public function getCluster() - { - return $this->readOneof(1); - } - - public function hasCluster() - { - return $this->hasOneof(1); - } - - /** - * Cluster type. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileClusterType.Cluster cluster = 1; - * @param int $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\FileClusterType\Cluster::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getFileClusterType() - { - return $this->whichOneof("file_cluster_type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php deleted file mode 100644 index 667b4beb37f5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileClusterType/Cluster.php +++ /dev/null @@ -1,114 +0,0 @@ -google.privacy.dlp.v2.FileClusterType.Cluster - */ -class Cluster -{ - /** - * Unused. - * - * Generated from protobuf enum CLUSTER_UNSPECIFIED = 0; - */ - const CLUSTER_UNSPECIFIED = 0; - /** - * Unsupported files. - * - * Generated from protobuf enum CLUSTER_UNKNOWN = 1; - */ - const CLUSTER_UNKNOWN = 1; - /** - * Plain text. - * - * Generated from protobuf enum CLUSTER_TEXT = 2; - */ - const CLUSTER_TEXT = 2; - /** - * Structured data like CSV, TSV etc. - * - * Generated from protobuf enum CLUSTER_STRUCTURED_DATA = 3; - */ - const CLUSTER_STRUCTURED_DATA = 3; - /** - * Source code. - * - * Generated from protobuf enum CLUSTER_SOURCE_CODE = 4; - */ - const CLUSTER_SOURCE_CODE = 4; - /** - * Rich document like docx, xlsx etc. - * - * Generated from protobuf enum CLUSTER_RICH_DOCUMENT = 5; - */ - const CLUSTER_RICH_DOCUMENT = 5; - /** - * Images like jpeg, bmp. - * - * Generated from protobuf enum CLUSTER_IMAGE = 6; - */ - const CLUSTER_IMAGE = 6; - /** - * Archives and containers like .zip, .tar etc. - * - * Generated from protobuf enum CLUSTER_ARCHIVE = 7; - */ - const CLUSTER_ARCHIVE = 7; - /** - * Multimedia like .mp4, .avi etc. - * - * Generated from protobuf enum CLUSTER_MULTIMEDIA = 8; - */ - const CLUSTER_MULTIMEDIA = 8; - /** - * Executable files like .exe, .class, .apk etc. - * - * Generated from protobuf enum CLUSTER_EXECUTABLE = 9; - */ - const CLUSTER_EXECUTABLE = 9; - - private static $valueToName = [ - self::CLUSTER_UNSPECIFIED => 'CLUSTER_UNSPECIFIED', - self::CLUSTER_UNKNOWN => 'CLUSTER_UNKNOWN', - self::CLUSTER_TEXT => 'CLUSTER_TEXT', - self::CLUSTER_STRUCTURED_DATA => 'CLUSTER_STRUCTURED_DATA', - self::CLUSTER_SOURCE_CODE => 'CLUSTER_SOURCE_CODE', - self::CLUSTER_RICH_DOCUMENT => 'CLUSTER_RICH_DOCUMENT', - self::CLUSTER_IMAGE => 'CLUSTER_IMAGE', - self::CLUSTER_ARCHIVE => 'CLUSTER_ARCHIVE', - self::CLUSTER_MULTIMEDIA => 'CLUSTER_MULTIMEDIA', - self::CLUSTER_EXECUTABLE => 'CLUSTER_EXECUTABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Cluster::class, \Google\Cloud\Dlp\V2\FileClusterType_Cluster::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php deleted file mode 100644 index a791e879275e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileExtensionInfo.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.FileExtensionInfo - */ -class FileExtensionInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The file extension if set. (aka .pdf, .jpg, .txt) - * - * Generated from protobuf field string file_extension = 1; - */ - protected $file_extension = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file_extension - * The file extension if set. (aka .pdf, .jpg, .txt) - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The file extension if set. (aka .pdf, .jpg, .txt) - * - * Generated from protobuf field string file_extension = 1; - * @return string - */ - public function getFileExtension() - { - return $this->file_extension; - } - - /** - * The file extension if set. (aka .pdf, .jpg, .txt) - * - * Generated from protobuf field string file_extension = 1; - * @param string $var - * @return $this - */ - public function setFileExtension($var) - { - GPBUtil::checkString($var, True); - $this->file_extension = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php deleted file mode 100644 index 68352641d24a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreCollection.php +++ /dev/null @@ -1,78 +0,0 @@ -google.privacy.dlp.v2.FileStoreCollection - */ -class FileStoreCollection extends \Google\Protobuf\Internal\Message -{ - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FileStoreRegexes $include_regexes - * Optional. A collection of regular expressions to match a file store - * against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. A collection of regular expressions to match a file store - * against. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\FileStoreRegexes|null - */ - public function getIncludeRegexes() - { - return $this->readOneof(1); - } - - public function hasIncludeRegexes() - { - return $this->hasOneof(1); - } - - /** - * Optional. A collection of regular expressions to match a file store - * against. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreRegexes include_regexes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\FileStoreRegexes $var - * @return $this - */ - public function setIncludeRegexes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FileStoreRegexes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php deleted file mode 100644 index fe95f3a09f08..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile.php +++ /dev/null @@ -1,981 +0,0 @@ -google.privacy.dlp.v2.FileStoreDataProfile - */ -class FileStoreDataProfile extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 2; - */ - protected $data_source_type = null; - /** - * The resource name of the project data profile for this file store. - * - * Generated from protobuf field string project_data_profile = 3; - */ - protected $project_data_profile = ''; - /** - * The Google Cloud project ID that owns the resource. - * For Amazon S3 buckets, this is the AWS Account Id. - * - * Generated from protobuf field string project_id = 4; - */ - protected $project_id = ''; - /** - * The location of the file store. - * * Cloud Storage: - * https://cloud.google.com/storage/docs/locations#available-locations - * * Amazon S3: - * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints - * - * Generated from protobuf field string file_store_location = 5; - */ - protected $file_store_location = ''; - /** - * For resources that have multiple storage locations, these are those - * regions. For Cloud Storage this is the list of regions chosen for - * dual-region storage. `file_store_location` will normally be the - * corresponding multi-region for the list of individual locations. The first - * region is always picked as the processing and storage location for the data - * profile. - * - * Generated from protobuf field repeated string data_storage_locations = 19; - */ - private $data_storage_locations; - /** - * The location type of the bucket (region, dual-region, multi-region, etc). - * If dual-region, expect data_storage_locations to be populated. - * - * Generated from protobuf field string location_type = 20; - */ - protected $location_type = ''; - /** - * The file store path. - * * Cloud Storage: `gs://{bucket}` - * * Amazon S3: `s3://{bucket}` - * - * Generated from protobuf field string file_store_path = 6; - */ - protected $file_store_path = ''; - /** - * The resource name of the resource profiled. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * Example format of an S3 bucket full resource name: - * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` - * - * Generated from protobuf field string full_resource = 24; - */ - protected $full_resource = ''; - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - */ - protected $config_snapshot = null; - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 8; - */ - protected $profile_status = null; - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; - */ - protected $state = 0; - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 10; - */ - protected $profile_last_generated = null; - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; - */ - protected $resource_visibility = 0; - /** - * The sensitivity score of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; - */ - protected $sensitivity_score = null; - /** - * The data risk level of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; - */ - protected $data_risk_level = null; - /** - * The time the file store was first created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; - */ - protected $create_time = null; - /** - * The time the file store was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 15; - */ - protected $last_modified_time = null; - /** - * FileClusterSummary per each cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; - */ - private $file_cluster_summaries; - /** - * Attributes of the resource being profiled. - * Currently used attributes: - * * customer_managed_encryption: boolean - * - true: the resource is encrypted with a customer-managed key. - * - false: the resource is encrypted with a provider-managed key. - * - * Generated from protobuf field map resource_attributes = 17; - */ - private $resource_attributes; - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 18; - */ - private $resource_labels; - /** - * InfoTypes detected in this file store. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; - */ - private $file_store_info_type_summaries; - /** - * The file store does not have any files. - * - * Generated from protobuf field bool file_store_is_empty = 23; - */ - protected $file_store_is_empty = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the profile. - * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type - * The resource type that was profiled. - * @type string $project_data_profile - * The resource name of the project data profile for this file store. - * @type string $project_id - * The Google Cloud project ID that owns the resource. - * For Amazon S3 buckets, this is the AWS Account Id. - * @type string $file_store_location - * The location of the file store. - * * Cloud Storage: - * https://cloud.google.com/storage/docs/locations#available-locations - * * Amazon S3: - * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints - * @type array|\Google\Protobuf\Internal\RepeatedField $data_storage_locations - * For resources that have multiple storage locations, these are those - * regions. For Cloud Storage this is the list of regions chosen for - * dual-region storage. `file_store_location` will normally be the - * corresponding multi-region for the list of individual locations. The first - * region is always picked as the processing and storage location for the data - * profile. - * @type string $location_type - * The location type of the bucket (region, dual-region, multi-region, etc). - * If dual-region, expect data_storage_locations to be populated. - * @type string $file_store_path - * The file store path. - * * Cloud Storage: `gs://{bucket}` - * * Amazon S3: `s3://{bucket}` - * @type string $full_resource - * The resource name of the resource profiled. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * Example format of an S3 bucket full resource name: - * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` - * @type \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $config_snapshot - * The snapshot of the configurations used to generate the profile. - * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * @type int $state - * State of a profile. - * @type \Google\Protobuf\Timestamp $profile_last_generated - * The last time the profile was generated. - * @type int $resource_visibility - * How broadly a resource has been shared. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The sensitivity score of this resource. - * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level - * The data risk level of this resource. - * @type \Google\Protobuf\Timestamp $create_time - * The time the file store was first created. - * @type \Google\Protobuf\Timestamp $last_modified_time - * The time the file store was last modified. - * @type array<\Google\Cloud\Dlp\V2\FileClusterSummary>|\Google\Protobuf\Internal\RepeatedField $file_cluster_summaries - * FileClusterSummary per each cluster. - * @type array|\Google\Protobuf\Internal\MapField $resource_attributes - * Attributes of the resource being profiled. - * Currently used attributes: - * * customer_managed_encryption: boolean - * - true: the resource is encrypted with a customer-managed key. - * - false: the resource is encrypted with a provider-managed key. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * The labels applied to the resource at the time the profile was generated. - * @type array<\Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $file_store_info_type_summaries - * InfoTypes detected in this file store. - * @type bool $file_store_is_empty - * The file store does not have any files. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 2; - * @return \Google\Cloud\Dlp\V2\DataSourceType|null - */ - public function getDataSourceType() - { - return $this->data_source_type; - } - - public function hasDataSourceType() - { - return isset($this->data_source_type); - } - - public function clearDataSourceType() - { - unset($this->data_source_type); - } - - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 2; - * @param \Google\Cloud\Dlp\V2\DataSourceType $var - * @return $this - */ - public function setDataSourceType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); - $this->data_source_type = $var; - - return $this; - } - - /** - * The resource name of the project data profile for this file store. - * - * Generated from protobuf field string project_data_profile = 3; - * @return string - */ - public function getProjectDataProfile() - { - return $this->project_data_profile; - } - - /** - * The resource name of the project data profile for this file store. - * - * Generated from protobuf field string project_data_profile = 3; - * @param string $var - * @return $this - */ - public function setProjectDataProfile($var) - { - GPBUtil::checkString($var, True); - $this->project_data_profile = $var; - - return $this; - } - - /** - * The Google Cloud project ID that owns the resource. - * For Amazon S3 buckets, this is the AWS Account Id. - * - * Generated from protobuf field string project_id = 4; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The Google Cloud project ID that owns the resource. - * For Amazon S3 buckets, this is the AWS Account Id. - * - * 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; - } - - /** - * The location of the file store. - * * Cloud Storage: - * https://cloud.google.com/storage/docs/locations#available-locations - * * Amazon S3: - * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints - * - * Generated from protobuf field string file_store_location = 5; - * @return string - */ - public function getFileStoreLocation() - { - return $this->file_store_location; - } - - /** - * The location of the file store. - * * Cloud Storage: - * https://cloud.google.com/storage/docs/locations#available-locations - * * Amazon S3: - * https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints - * - * Generated from protobuf field string file_store_location = 5; - * @param string $var - * @return $this - */ - public function setFileStoreLocation($var) - { - GPBUtil::checkString($var, True); - $this->file_store_location = $var; - - return $this; - } - - /** - * For resources that have multiple storage locations, these are those - * regions. For Cloud Storage this is the list of regions chosen for - * dual-region storage. `file_store_location` will normally be the - * corresponding multi-region for the list of individual locations. The first - * region is always picked as the processing and storage location for the data - * profile. - * - * Generated from protobuf field repeated string data_storage_locations = 19; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDataStorageLocations() - { - return $this->data_storage_locations; - } - - /** - * For resources that have multiple storage locations, these are those - * regions. For Cloud Storage this is the list of regions chosen for - * dual-region storage. `file_store_location` will normally be the - * corresponding multi-region for the list of individual locations. The first - * region is always picked as the processing and storage location for the data - * profile. - * - * Generated from protobuf field repeated string data_storage_locations = 19; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDataStorageLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->data_storage_locations = $arr; - - return $this; - } - - /** - * The location type of the bucket (region, dual-region, multi-region, etc). - * If dual-region, expect data_storage_locations to be populated. - * - * Generated from protobuf field string location_type = 20; - * @return string - */ - public function getLocationType() - { - return $this->location_type; - } - - /** - * The location type of the bucket (region, dual-region, multi-region, etc). - * If dual-region, expect data_storage_locations to be populated. - * - * Generated from protobuf field string location_type = 20; - * @param string $var - * @return $this - */ - public function setLocationType($var) - { - GPBUtil::checkString($var, True); - $this->location_type = $var; - - return $this; - } - - /** - * The file store path. - * * Cloud Storage: `gs://{bucket}` - * * Amazon S3: `s3://{bucket}` - * - * Generated from protobuf field string file_store_path = 6; - * @return string - */ - public function getFileStorePath() - { - return $this->file_store_path; - } - - /** - * The file store path. - * * Cloud Storage: `gs://{bucket}` - * * Amazon S3: `s3://{bucket}` - * - * Generated from protobuf field string file_store_path = 6; - * @param string $var - * @return $this - */ - public function setFileStorePath($var) - { - GPBUtil::checkString($var, True); - $this->file_store_path = $var; - - return $this; - } - - /** - * The resource name of the resource profiled. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * Example format of an S3 bucket full resource name: - * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` - * - * Generated from protobuf field string full_resource = 24; - * @return string - */ - public function getFullResource() - { - return $this->full_resource; - } - - /** - * The resource name of the resource profiled. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * Example format of an S3 bucket full resource name: - * `//cloudasset.googleapis.com/organizations/{org_id}/otherCloudConnections/aws/arn:aws:s3:::{bucket_name}` - * - * Generated from protobuf field string full_resource = 24; - * @param string $var - * @return $this - */ - public function setFullResource($var) - { - GPBUtil::checkString($var, True); - $this->full_resource = $var; - - return $this; - } - - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - * @return \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot|null - */ - public function getConfigSnapshot() - { - return $this->config_snapshot; - } - - public function hasConfigSnapshot() - { - return isset($this->config_snapshot); - } - - public function clearConfigSnapshot() - { - unset($this->config_snapshot); - } - - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - * @param \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $var - * @return $this - */ - public function setConfigSnapshot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot::class); - $this->config_snapshot = $var; - - return $this; - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 8; - * @return \Google\Cloud\Dlp\V2\ProfileStatus|null - */ - public function getProfileStatus() - { - return $this->profile_status; - } - - public function hasProfileStatus() - { - return isset($this->profile_status); - } - - public function clearProfileStatus() - { - unset($this->profile_status); - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 8; - * @param \Google\Cloud\Dlp\V2\ProfileStatus $var - * @return $this - */ - public function setProfileStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); - $this->profile_status = $var; - - return $this; - } - - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.FileStoreDataProfile.State state = 9; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\FileStoreDataProfile\State::class); - $this->state = $var; - - return $this; - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 10; - * @return \Google\Protobuf\Timestamp|null - */ - public function getProfileLastGenerated() - { - return $this->profile_last_generated; - } - - public function hasProfileLastGenerated() - { - return isset($this->profile_last_generated); - } - - public function clearProfileLastGenerated() - { - unset($this->profile_last_generated); - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 10; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setProfileLastGenerated($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->profile_last_generated = $var; - - return $this; - } - - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; - * @return int - */ - public function getResourceVisibility() - { - return $this->resource_visibility; - } - - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 11; - * @param int $var - * @return $this - */ - public function setResourceVisibility($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ResourceVisibility::class); - $this->resource_visibility = $var; - - return $this; - } - - /** - * The sensitivity score of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The sensitivity score of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 12; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * The data risk level of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; - * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null - */ - public function getDataRiskLevel() - { - return $this->data_risk_level; - } - - public function hasDataRiskLevel() - { - return isset($this->data_risk_level); - } - - public function clearDataRiskLevel() - { - unset($this->data_risk_level); - } - - /** - * The data risk level of this resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 13; - * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var - * @return $this - */ - public function setDataRiskLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); - $this->data_risk_level = $var; - - return $this; - } - - /** - * The time the file store was first created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The time the file store was first created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 14; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The time the file store was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 15; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastModifiedTime() - { - return $this->last_modified_time; - } - - public function hasLastModifiedTime() - { - return isset($this->last_modified_time); - } - - public function clearLastModifiedTime() - { - unset($this->last_modified_time); - } - - /** - * The time the file store was last modified. - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 15; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastModifiedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_modified_time = $var; - - return $this; - } - - /** - * FileClusterSummary per each cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileClusterSummaries() - { - return $this->file_cluster_summaries; - } - - /** - * FileClusterSummary per each cluster. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileClusterSummary file_cluster_summaries = 16; - * @param array<\Google\Cloud\Dlp\V2\FileClusterSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileClusterSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileClusterSummary::class); - $this->file_cluster_summaries = $arr; - - return $this; - } - - /** - * Attributes of the resource being profiled. - * Currently used attributes: - * * customer_managed_encryption: boolean - * - true: the resource is encrypted with a customer-managed key. - * - false: the resource is encrypted with a provider-managed key. - * - * Generated from protobuf field map resource_attributes = 17; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceAttributes() - { - return $this->resource_attributes; - } - - /** - * Attributes of the resource being profiled. - * Currently used attributes: - * * customer_managed_encryption: boolean - * - true: the resource is encrypted with a customer-managed key. - * - false: the resource is encrypted with a provider-managed key. - * - * Generated from protobuf field map resource_attributes = 17; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->resource_attributes = $arr; - - return $this; - } - - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 18; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 18; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * InfoTypes detected in this file store. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileStoreInfoTypeSummaries() - { - return $this->file_store_info_type_summaries; - } - - /** - * InfoTypes detected in this file store. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreInfoTypeSummary file_store_info_type_summaries = 21; - * @param array<\Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileStoreInfoTypeSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreInfoTypeSummary::class); - $this->file_store_info_type_summaries = $arr; - - return $this; - } - - /** - * The file store does not have any files. - * - * Generated from protobuf field bool file_store_is_empty = 23; - * @return bool - */ - public function getFileStoreIsEmpty() - { - return $this->file_store_is_empty; - } - - /** - * The file store does not have any files. - * - * Generated from protobuf field bool file_store_is_empty = 23; - * @param bool $var - * @return $this - */ - public function setFileStoreIsEmpty($var) - { - GPBUtil::checkBool($var); - $this->file_store_is_empty = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php deleted file mode 100644 index 497004b127e1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreDataProfile/State.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.FileStoreDataProfile.State - */ -class State -{ - /** - * Unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The profile is currently running. Once a profile has finished it will - * transition to DONE. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The profile is no longer generating. - * If profile_status.status.code is 0, the profile succeeded, otherwise, it - * failed. - * - * Generated from protobuf enum DONE = 2; - */ - const DONE = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::DONE => '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(State::class, \Google\Cloud\Dlp\V2\FileStoreDataProfile_State::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php deleted file mode 100644 index e1f2bed088e2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreInfoTypeSummary.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.FileStoreInfoTypeSummary - */ -class FileStoreInfoTypeSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The InfoType seen. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * The InfoType seen. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The InfoType seen. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * The InfoType seen. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php deleted file mode 100644 index eb74f484ebd0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegex.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.FileStoreRegex - */ -class FileStoreRegex extends \Google\Protobuf\Internal\Message -{ - protected $resource_regex; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CloudStorageRegex $cloud_storage_regex - * Optional. Regex for Cloud Storage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Regex for Cloud Storage. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\CloudStorageRegex|null - */ - public function getCloudStorageRegex() - { - return $this->readOneof(1); - } - - public function hasCloudStorageRegex() - { - return $this->hasOneof(1); - } - - /** - * Optional. Regex for Cloud Storage. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageRegex cloud_storage_regex = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\CloudStorageRegex $var - * @return $this - */ - public function setCloudStorageRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageRegex::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getResourceRegex() - { - return $this->whichOneof("resource_regex"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php deleted file mode 100644 index 5e076d524b46..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileStoreRegexes.php +++ /dev/null @@ -1,76 +0,0 @@ -google.privacy.dlp.v2.FileStoreRegexes - */ -class FileStoreRegexes extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The group of regular expression patterns to match against one or - * more file stores. Maximum of 100 entries. The sum of all regular - * expression's length can't exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $patterns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\FileStoreRegex>|\Google\Protobuf\Internal\RepeatedField $patterns - * Required. The group of regular expression patterns to match against one or - * more file stores. Maximum of 100 entries. The sum of all regular - * expression's length can't exceed 10 KiB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The group of regular expression patterns to match against one or - * more file stores. Maximum of 100 entries. The sum of all regular - * expression's length can't exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPatterns() - { - return $this->patterns; - } - - /** - * Required. The group of regular expression patterns to match against one or - * more file stores. Maximum of 100 entries. The sum of all regular - * expression's length can't exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreRegex patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Dlp\V2\FileStoreRegex>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreRegex::class); - $this->patterns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php deleted file mode 100644 index 4cf2e8f31733..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FileType.php +++ /dev/null @@ -1,150 +0,0 @@ -google.privacy.dlp.v2.FileType - */ -class FileType -{ - /** - * Includes all files. - * - * Generated from protobuf enum FILE_TYPE_UNSPECIFIED = 0; - */ - const FILE_TYPE_UNSPECIFIED = 0; - /** - * Includes all file extensions not covered by another entry. Binary - * scanning attempts to convert the content of the file to utf_8 to scan - * the file. - * If you wish to avoid this fall back, specify one or more of the other - * file types in your storage scan. - * - * Generated from protobuf enum BINARY_FILE = 1; - */ - const BINARY_FILE = 1; - /** - * Included file extensions: - * asc,asp, aspx, brf, c, cc,cfm, cgi, cpp, csv, cxx, c++, cs, css, dart, - * dat, dot, eml,, epbub, ged, go, h, hh, hpp, hxx, h++, hs, html, htm, - * mkd, markdown, m, ml, mli, perl, pl, plist, pm, php, phtml, pht, - * properties, py, pyw, rb, rbw, rs, rss, rc, scala, sh, sql, swift, tex, - * shtml, shtm, xhtml, lhs, ics, ini, java, js, json, jsonl, kix, kml, - * ocaml, md, txt, text, tsv, vb, vcard, vcs, wml, xcodeproj, xml, xsl, xsd, - * yml, yaml. - * - * Generated from protobuf enum TEXT_FILE = 2; - */ - const TEXT_FILE = 2; - /** - * Included file extensions: - * bmp, gif, jpg, jpeg, jpe, png. Setting - * [bytes_limit_per_file][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file] - * or - * [bytes_limit_per_file_percent][google.privacy.dlp.v2.CloudStorageOptions.bytes_limit_per_file] - * has no effect on image files. Image inspection is restricted to the - * `global`, `us`, `asia`, and `europe` regions. - * - * Generated from protobuf enum IMAGE = 3; - */ - const IMAGE = 3; - /** - * Microsoft Word files larger than 30 MB will be scanned as binary files. - * Included file extensions: - * docx, dotx, docm, dotm. Setting `bytes_limit_per_file` or - * `bytes_limit_per_file_percent` has no effect on Word files. - * - * Generated from protobuf enum WORD = 5; - */ - const WORD = 5; - /** - * PDF files larger than 30 MB will be scanned as binary files. - * Included file extensions: - * pdf. Setting `bytes_limit_per_file` or `bytes_limit_per_file_percent` - * has no effect on PDF files. - * - * Generated from protobuf enum PDF = 6; - */ - const PDF = 6; - /** - * Included file extensions: - * avro - * - * Generated from protobuf enum AVRO = 7; - */ - const AVRO = 7; - /** - * Included file extensions: - * csv - * - * Generated from protobuf enum CSV = 8; - */ - const CSV = 8; - /** - * Included file extensions: - * tsv - * - * Generated from protobuf enum TSV = 9; - */ - const TSV = 9; - /** - * Microsoft PowerPoint files larger than 30 MB will be scanned as binary - * files. Included file extensions: - * pptx, pptm, potx, potm, pot. Setting `bytes_limit_per_file` or - * `bytes_limit_per_file_percent` has no effect on PowerPoint files. - * - * Generated from protobuf enum POWERPOINT = 11; - */ - const POWERPOINT = 11; - /** - * Microsoft Excel files larger than 30 MB will be scanned as binary files. - * Included file extensions: - * xlsx, xlsm, xltx, xltm. Setting `bytes_limit_per_file` or - * `bytes_limit_per_file_percent` has no effect on Excel files. - * - * Generated from protobuf enum EXCEL = 12; - */ - const EXCEL = 12; - - private static $valueToName = [ - self::FILE_TYPE_UNSPECIFIED => 'FILE_TYPE_UNSPECIFIED', - self::BINARY_FILE => 'BINARY_FILE', - self::TEXT_FILE => 'TEXT_FILE', - self::IMAGE => 'IMAGE', - self::WORD => 'WORD', - self::PDF => 'PDF', - self::AVRO => 'AVRO', - self::CSV => 'CSV', - self::TSV => 'TSV', - self::POWERPOINT => 'POWERPOINT', - self::EXCEL => 'EXCEL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php deleted file mode 100644 index 96e95ce3b7da..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Finding.php +++ /dev/null @@ -1,593 +0,0 @@ -google.privacy.dlp.v2.Finding - */ -class Finding extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name in format - * projects/{project}/locations/{location}/findings/{finding} Populated only - * when viewing persisted findings. - * - * Generated from protobuf field string name = 14; - */ - protected $name = ''; - /** - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. - * Provided if `include_quote` is true and the finding is - * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes - * in length, the quote may be omitted. - * - * Generated from protobuf field string quote = 1; - */ - protected $quote = ''; - /** - * The type of content that might have been found. - * Provided if `excluded_types` is false. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - */ - protected $info_type = null; - /** - * Confidence of how likely it is that the `info_type` is correct. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 3; - */ - protected $likelihood = 0; - /** - * Where the content was found. - * - * Generated from protobuf field .google.privacy.dlp.v2.Location location = 4; - */ - protected $location = null; - /** - * Timestamp when finding was detected. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6; - */ - protected $create_time = null; - /** - * Contains data parsed from quotes. Only populated if include_quote was set - * to true and a supported infoType was requested. Currently supported - * infoTypes: DATE, DATE_OF_BIRTH and TIME. - * - * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 7; - */ - protected $quote_info = null; - /** - * The job that stored the finding. - * - * Generated from protobuf field string resource_name = 8 [(.google.api.resource_reference) = { - */ - protected $resource_name = ''; - /** - * Job trigger name, if applicable, for this finding. - * - * Generated from protobuf field string trigger_name = 9 [(.google.api.resource_reference) = { - */ - protected $trigger_name = ''; - /** - * The labels associated with this `Finding`. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 10; - */ - private $labels; - /** - * Time the job started that produced this finding. - * - * Generated from protobuf field .google.protobuf.Timestamp job_create_time = 11; - */ - protected $job_create_time = null; - /** - * The job that stored the finding. - * - * Generated from protobuf field string job_name = 13 [(.google.api.resource_reference) = { - */ - protected $job_name = ''; - /** - * The unique finding id. - * - * Generated from protobuf field string finding_id = 15; - */ - protected $finding_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name in format - * projects/{project}/locations/{location}/findings/{finding} Populated only - * when viewing persisted findings. - * @type string $quote - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. - * Provided if `include_quote` is true and the finding is - * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes - * in length, the quote may be omitted. - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * The type of content that might have been found. - * Provided if `excluded_types` is false. - * @type int $likelihood - * Confidence of how likely it is that the `info_type` is correct. - * @type \Google\Cloud\Dlp\V2\Location $location - * Where the content was found. - * @type \Google\Protobuf\Timestamp $create_time - * Timestamp when finding was detected. - * @type \Google\Cloud\Dlp\V2\QuoteInfo $quote_info - * Contains data parsed from quotes. Only populated if include_quote was set - * to true and a supported infoType was requested. Currently supported - * infoTypes: DATE, DATE_OF_BIRTH and TIME. - * @type string $resource_name - * The job that stored the finding. - * @type string $trigger_name - * Job trigger name, if applicable, for this finding. - * @type array|\Google\Protobuf\Internal\MapField $labels - * The labels associated with this `Finding`. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * @type \Google\Protobuf\Timestamp $job_create_time - * Time the job started that produced this finding. - * @type string $job_name - * The job that stored the finding. - * @type string $finding_id - * The unique finding id. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Resource name in format - * projects/{project}/locations/{location}/findings/{finding} Populated only - * when viewing persisted findings. - * - * Generated from protobuf field string name = 14; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name in format - * projects/{project}/locations/{location}/findings/{finding} Populated only - * when viewing persisted findings. - * - * Generated from protobuf field string name = 14; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. - * Provided if `include_quote` is true and the finding is - * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes - * in length, the quote may be omitted. - * - * Generated from protobuf field string quote = 1; - * @return string - */ - public function getQuote() - { - return $this->quote; - } - - /** - * The content that was found. Even if the content is not textual, it - * may be converted to a textual representation here. - * Provided if `include_quote` is true and the finding is - * less than or equal to 4096 bytes long. If the finding exceeds 4096 bytes - * in length, the quote may be omitted. - * - * Generated from protobuf field string quote = 1; - * @param string $var - * @return $this - */ - public function setQuote($var) - { - GPBUtil::checkString($var, True); - $this->quote = $var; - - return $this; - } - - /** - * The type of content that might have been found. - * Provided if `excluded_types` is false. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * The type of content that might have been found. - * Provided if `excluded_types` is false. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Confidence of how likely it is that the `info_type` is correct. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 3; - * @return int - */ - public function getLikelihood() - { - return $this->likelihood; - } - - /** - * Confidence of how likely it is that the `info_type` is correct. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood likelihood = 3; - * @param int $var - * @return $this - */ - public function setLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->likelihood = $var; - - return $this; - } - - /** - * Where the content was found. - * - * Generated from protobuf field .google.privacy.dlp.v2.Location location = 4; - * @return \Google\Cloud\Dlp\V2\Location|null - */ - public function getLocation() - { - return $this->location; - } - - public function hasLocation() - { - return isset($this->location); - } - - public function clearLocation() - { - unset($this->location); - } - - /** - * Where the content was found. - * - * Generated from protobuf field .google.privacy.dlp.v2.Location location = 4; - * @param \Google\Cloud\Dlp\V2\Location $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Location::class); - $this->location = $var; - - return $this; - } - - /** - * Timestamp when finding was detected. - * - * 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); - } - - /** - * Timestamp when finding was detected. - * - * 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; - } - - /** - * Contains data parsed from quotes. Only populated if include_quote was set - * to true and a supported infoType was requested. Currently supported - * infoTypes: DATE, DATE_OF_BIRTH and TIME. - * - * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 7; - * @return \Google\Cloud\Dlp\V2\QuoteInfo|null - */ - public function getQuoteInfo() - { - return $this->quote_info; - } - - public function hasQuoteInfo() - { - return isset($this->quote_info); - } - - public function clearQuoteInfo() - { - unset($this->quote_info); - } - - /** - * Contains data parsed from quotes. Only populated if include_quote was set - * to true and a supported infoType was requested. Currently supported - * infoTypes: DATE, DATE_OF_BIRTH and TIME. - * - * Generated from protobuf field .google.privacy.dlp.v2.QuoteInfo quote_info = 7; - * @param \Google\Cloud\Dlp\V2\QuoteInfo $var - * @return $this - */ - public function setQuoteInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\QuoteInfo::class); - $this->quote_info = $var; - - return $this; - } - - /** - * The job that stored the finding. - * - * Generated from protobuf field string resource_name = 8 [(.google.api.resource_reference) = { - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * The job that stored the finding. - * - * Generated from protobuf field string resource_name = 8 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * Job trigger name, if applicable, for this finding. - * - * Generated from protobuf field string trigger_name = 9 [(.google.api.resource_reference) = { - * @return string - */ - public function getTriggerName() - { - return $this->trigger_name; - } - - /** - * Job trigger name, if applicable, for this finding. - * - * Generated from protobuf field string trigger_name = 9 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTriggerName($var) - { - GPBUtil::checkString($var, True); - $this->trigger_name = $var; - - return $this; - } - - /** - * The labels associated with this `Finding`. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 10; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * The labels associated with this `Finding`. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 10; - * @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; - } - - /** - * Time the job started that produced this finding. - * - * Generated from protobuf field .google.protobuf.Timestamp job_create_time = 11; - * @return \Google\Protobuf\Timestamp|null - */ - public function getJobCreateTime() - { - return $this->job_create_time; - } - - public function hasJobCreateTime() - { - return isset($this->job_create_time); - } - - public function clearJobCreateTime() - { - unset($this->job_create_time); - } - - /** - * Time the job started that produced this finding. - * - * Generated from protobuf field .google.protobuf.Timestamp job_create_time = 11; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setJobCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->job_create_time = $var; - - return $this; - } - - /** - * The job that stored the finding. - * - * Generated from protobuf field string job_name = 13 [(.google.api.resource_reference) = { - * @return string - */ - public function getJobName() - { - return $this->job_name; - } - - /** - * The job that stored the finding. - * - * Generated from protobuf field string job_name = 13 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setJobName($var) - { - GPBUtil::checkString($var, True); - $this->job_name = $var; - - return $this; - } - - /** - * The unique finding id. - * - * Generated from protobuf field string finding_id = 15; - * @return string - */ - public function getFindingId() - { - return $this->finding_id; - } - - /** - * The unique finding id. - * - * Generated from protobuf field string finding_id = 15; - * @param string $var - * @return $this - */ - public function setFindingId($var) - { - GPBUtil::checkString($var, True); - $this->finding_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php deleted file mode 100644 index 278e8faf1fe8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FinishDlpJobRequest.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.FinishDlpJobRequest - */ -class FinishDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DlpJob resource to be finished. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the DlpJob resource to be finished. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DlpJob resource to be finished. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the DlpJob resource to be finished. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php deleted file mode 100644 index e7b42158b828..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/FixedSizeBucketingConfig.php +++ /dev/null @@ -1,196 +0,0 @@ -google.privacy.dlp.v2.FixedSizeBucketingConfig - */ -class FixedSizeBucketingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Lower bound value of buckets. All values less than `lower_bound` - * are grouped together into a single bucket; for example if `lower_bound` = - * 10, then all values less than 10 are replaced with the value "-10". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $lower_bound = null; - /** - * Required. Upper bound value of buckets. All values greater than upper_bound - * are grouped together into a single bucket; for example if `upper_bound` = - * 89, then all values greater than 89 are replaced with the value "89+". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $upper_bound = null; - /** - * Required. Size of each bucket (except for minimum and maximum buckets). So - * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the - * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, - * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. - * - * Generated from protobuf field double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $bucket_size = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value $lower_bound - * Required. Lower bound value of buckets. All values less than `lower_bound` - * are grouped together into a single bucket; for example if `lower_bound` = - * 10, then all values less than 10 are replaced with the value "-10". - * @type \Google\Cloud\Dlp\V2\Value $upper_bound - * Required. Upper bound value of buckets. All values greater than upper_bound - * are grouped together into a single bucket; for example if `upper_bound` = - * 89, then all values greater than 89 are replaced with the value "89+". - * @type float $bucket_size - * Required. Size of each bucket (except for minimum and maximum buckets). So - * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the - * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, - * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Lower bound value of buckets. All values less than `lower_bound` - * are grouped together into a single bucket; for example if `lower_bound` = - * 10, then all values less than 10 are replaced with the value "-10". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getLowerBound() - { - return $this->lower_bound; - } - - public function hasLowerBound() - { - return isset($this->lower_bound); - } - - public function clearLowerBound() - { - unset($this->lower_bound); - } - - /** - * Required. Lower bound value of buckets. All values less than `lower_bound` - * are grouped together into a single bucket; for example if `lower_bound` = - * 10, then all values less than 10 are replaced with the value "-10". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value lower_bound = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setLowerBound($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->lower_bound = $var; - - return $this; - } - - /** - * Required. Upper bound value of buckets. All values greater than upper_bound - * are grouped together into a single bucket; for example if `upper_bound` = - * 89, then all values greater than 89 are replaced with the value "89+". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getUpperBound() - { - return $this->upper_bound; - } - - public function hasUpperBound() - { - return isset($this->upper_bound); - } - - public function clearUpperBound() - { - unset($this->upper_bound); - } - - /** - * Required. Upper bound value of buckets. All values greater than upper_bound - * are grouped together into a single bucket; for example if `upper_bound` = - * 89, then all values greater than 89 are replaced with the value "89+". - * - * Generated from protobuf field .google.privacy.dlp.v2.Value upper_bound = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setUpperBound($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->upper_bound = $var; - - return $this; - } - - /** - * Required. Size of each bucket (except for minimum and maximum buckets). So - * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the - * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, - * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. - * - * Generated from protobuf field double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return float - */ - public function getBucketSize() - { - return $this->bucket_size; - } - - /** - * Required. Size of each bucket (except for minimum and maximum buckets). So - * if `lower_bound` = 10, `upper_bound` = 89, and `bucket_size` = 10, then the - * following buckets would be used: -10, 10-20, 20-30, 30-40, 40-50, 50-60, - * 60-70, 70-80, 80-89, 89+. Precision up to 2 decimals works. - * - * Generated from protobuf field double bucket_size = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param float $var - * @return $this - */ - public function setBucketSize($var) - { - GPBUtil::checkDouble($var); - $this->bucket_size = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php deleted file mode 100644 index 06e176a0c4d7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetColumnDataProfileRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetColumnDataProfileRequest - */ -class GetColumnDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. Please see - * {@see DlpServiceClient::columnDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetColumnDataProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/columnDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php deleted file mode 100644 index abceabf3a8bb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetConnectionRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetConnectionRequest - */ -class GetConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. Please see - * {@see DlpServiceClient::connectionName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetConnectionRequest - * - * @experimental - */ - public static function 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 in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated 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 in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php deleted file mode 100644 index 33f8f78f48c9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDeidentifyTemplateRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.privacy.dlp.v2.GetDeidentifyTemplateRequest - */ -class GetDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and deidentify template to be - * read, for example `organizations/433245324/deidentifyTemplates/432452342` - * or projects/project-id/deidentifyTemplates/432452342. - * - * 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 organization and deidentify template to be - * read, for example `organizations/433245324/deidentifyTemplates/432452342` - * or projects/project-id/deidentifyTemplates/432452342. Please see - * {@see DlpServiceClient::deidentifyTemplateName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetDeidentifyTemplateRequest - * - * @experimental - */ - public static function 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 organization and deidentify template to be - * read, for example `organizations/433245324/deidentifyTemplates/432452342` - * or projects/project-id/deidentifyTemplates/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and deidentify template to be - * read, for example `organizations/433245324/deidentifyTemplates/432452342` - * or projects/project-id/deidentifyTemplates/432452342. - * - * Generated 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 organization and deidentify template to be - * read, for example `organizations/433245324/deidentifyTemplates/432452342` - * or projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php deleted file mode 100644 index 74e5008be7ec..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDiscoveryConfigRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetDiscoveryConfigRequest - */ -class GetDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * 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 project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. Please see - * {@see DlpServiceClient::discoveryConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetDiscoveryConfigRequest - * - * @experimental - */ - public static function 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 project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated 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 project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php deleted file mode 100644 index 272eaaf940b2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetDlpJobRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.GetDlpJobRequest - */ -class GetDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the DlpJob 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 DlpJob resource. Please see - * {@see DlpServiceClient::dlpJobName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetDlpJobRequest - * - * @experimental - */ - public static function 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 DlpJob resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the DlpJob 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 DlpJob 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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php deleted file mode 100644 index d0caed251ced..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetFileStoreDataProfileRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetFileStoreDataProfileRequest - */ -class GetFileStoreDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name, for example - * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. Please see - * {@see DlpServiceClient::projectDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetFileStoreDataProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name, for example - * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/fileStoreDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php deleted file mode 100644 index 14b95682d6cb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetInspectTemplateRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.privacy.dlp.v2.GetInspectTemplateRequest - */ -class GetInspectTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and inspectTemplate to be read, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * 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 organization and inspectTemplate to be read, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. Please see - * {@see DlpServiceClient::inspectTemplateName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetInspectTemplateRequest - * - * @experimental - */ - public static function 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 organization and inspectTemplate to be read, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and inspectTemplate to be read, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated 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 organization and inspectTemplate to be read, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php deleted file mode 100644 index 3b8f6fcddf1a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetJobTriggerRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetJobTriggerRequest - */ -class GetJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * 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 project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. Please see - * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetJobTriggerRequest - * - * @experimental - */ - public static function 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 project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated 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 project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php deleted file mode 100644 index 853ec07bdbd7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetProjectDataProfileRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetProjectDataProfileRequest - */ -class GetProjectDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/projectDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name, for example - * `organizations/12345/locations/us/projectDataProfiles/53234423`. Please see - * {@see DlpServiceClient::projectDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetProjectDataProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name, for example - * `organizations/12345/locations/us/projectDataProfiles/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/projectDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/projectDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php deleted file mode 100644 index c1fc45586b54..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetStoredInfoTypeRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.privacy.dlp.v2.GetStoredInfoTypeRequest - */ -class GetStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization and storedInfoType to be read, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * 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 organization and storedInfoType to be read, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. Please see - * {@see DlpServiceClient::storedInfoTypeName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetStoredInfoTypeRequest - * - * @experimental - */ - public static function 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 organization and storedInfoType to be read, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization and storedInfoType to be read, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated 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 organization and storedInfoType to be read, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php deleted file mode 100644 index 60adfcef114a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/GetTableDataProfileRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.privacy.dlp.v2.GetTableDataProfileRequest - */ -class GetTableDataProfileRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. Please see - * {@see DlpServiceClient::tableDataProfileName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\GetTableDataProfileRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Resource name, for example - * `organizations/12345/locations/us/tableDataProfiles/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php deleted file mode 100644 index 9aa65f72ffd7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridContentItem.php +++ /dev/null @@ -1,122 +0,0 @@ -google.privacy.dlp.v2.HybridContentItem - */ -class HybridContentItem extends \Google\Protobuf\Internal\Message -{ - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - */ - protected $item = null; - /** - * Supplementary information that will be added to each finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; - */ - protected $finding_details = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The item to inspect. - * @type \Google\Cloud\Dlp\V2\HybridFindingDetails $finding_details - * Supplementary information that will be added to each finding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * Supplementary information that will be added to each finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; - * @return \Google\Cloud\Dlp\V2\HybridFindingDetails|null - */ - public function getFindingDetails() - { - return $this->finding_details; - } - - public function hasFindingDetails() - { - return isset($this->finding_details); - } - - public function clearFindingDetails() - { - unset($this->finding_details); - } - - /** - * Supplementary information that will be added to each finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridFindingDetails finding_details = 2; - * @param \Google\Cloud\Dlp\V2\HybridFindingDetails $var - * @return $this - */ - public function setFindingDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridFindingDetails::class); - $this->finding_details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php deleted file mode 100644 index e27434622dd3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridFindingDetails.php +++ /dev/null @@ -1,303 +0,0 @@ -google.privacy.dlp.v2.HybridFindingDetails - */ -class HybridFindingDetails extends \Google\Protobuf\Internal\Message -{ - /** - * Details about the container where the content being inspected is from. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container_details = 1; - */ - protected $container_details = null; - /** - * Offset in bytes of the line, from the beginning of the file, where the - * finding is located. Populate if the item being scanned is only part of a - * bigger item, such as a shard of a file and you want to track the absolute - * position of the finding. - * - * Generated from protobuf field int64 file_offset = 2; - */ - protected $file_offset = 0; - /** - * Offset of the row for tables. Populate if the row(s) being scanned are - * part of a bigger dataset and you want to keep track of their absolute - * position. - * - * Generated from protobuf field int64 row_offset = 3; - */ - protected $row_offset = 0; - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. If not known ahead - * of time, can also be set within each inspect hybrid call and the two - * will be merged. Note that identifying_fields will only be stored to - * BigQuery, and only if the BigQuery action has been included. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - */ - protected $table_options = null; - /** - * Labels to represent user provided metadata about the data being inspected. - * If configured by the job, some key values may be required. - * The labels associated with `Finding`'s produced by hybrid - * inspection. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 5; - */ - private $labels; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Container $container_details - * Details about the container where the content being inspected is from. - * @type int|string $file_offset - * Offset in bytes of the line, from the beginning of the file, where the - * finding is located. Populate if the item being scanned is only part of a - * bigger item, such as a shard of a file and you want to track the absolute - * position of the finding. - * @type int|string $row_offset - * Offset of the row for tables. Populate if the row(s) being scanned are - * part of a bigger dataset and you want to keep track of their absolute - * position. - * @type \Google\Cloud\Dlp\V2\TableOptions $table_options - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. If not known ahead - * of time, can also be set within each inspect hybrid call and the two - * will be merged. Note that identifying_fields will only be stored to - * BigQuery, and only if the BigQuery action has been included. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels to represent user provided metadata about the data being inspected. - * If configured by the job, some key values may be required. - * The labels associated with `Finding`'s produced by hybrid - * inspection. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Details about the container where the content being inspected is from. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container_details = 1; - * @return \Google\Cloud\Dlp\V2\Container|null - */ - public function getContainerDetails() - { - return $this->container_details; - } - - public function hasContainerDetails() - { - return isset($this->container_details); - } - - public function clearContainerDetails() - { - unset($this->container_details); - } - - /** - * Details about the container where the content being inspected is from. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container_details = 1; - * @param \Google\Cloud\Dlp\V2\Container $var - * @return $this - */ - public function setContainerDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Container::class); - $this->container_details = $var; - - return $this; - } - - /** - * Offset in bytes of the line, from the beginning of the file, where the - * finding is located. Populate if the item being scanned is only part of a - * bigger item, such as a shard of a file and you want to track the absolute - * position of the finding. - * - * Generated from protobuf field int64 file_offset = 2; - * @return int|string - */ - public function getFileOffset() - { - return $this->file_offset; - } - - /** - * Offset in bytes of the line, from the beginning of the file, where the - * finding is located. Populate if the item being scanned is only part of a - * bigger item, such as a shard of a file and you want to track the absolute - * position of the finding. - * - * Generated from protobuf field int64 file_offset = 2; - * @param int|string $var - * @return $this - */ - public function setFileOffset($var) - { - GPBUtil::checkInt64($var); - $this->file_offset = $var; - - return $this; - } - - /** - * Offset of the row for tables. Populate if the row(s) being scanned are - * part of a bigger dataset and you want to keep track of their absolute - * position. - * - * Generated from protobuf field int64 row_offset = 3; - * @return int|string - */ - public function getRowOffset() - { - return $this->row_offset; - } - - /** - * Offset of the row for tables. Populate if the row(s) being scanned are - * part of a bigger dataset and you want to keep track of their absolute - * position. - * - * Generated from protobuf field int64 row_offset = 3; - * @param int|string $var - * @return $this - */ - public function setRowOffset($var) - { - GPBUtil::checkInt64($var); - $this->row_offset = $var; - - return $this; - } - - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. If not known ahead - * of time, can also be set within each inspect hybrid call and the two - * will be merged. Note that identifying_fields will only be stored to - * BigQuery, and only if the BigQuery action has been included. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - * @return \Google\Cloud\Dlp\V2\TableOptions|null - */ - public function getTableOptions() - { - return $this->table_options; - } - - public function hasTableOptions() - { - return isset($this->table_options); - } - - public function clearTableOptions() - { - unset($this->table_options); - } - - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. If not known ahead - * of time, can also be set within each inspect hybrid call and the two - * will be merged. Note that identifying_fields will only be stored to - * BigQuery, and only if the BigQuery action has been included. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - * @param \Google\Cloud\Dlp\V2\TableOptions $var - * @return $this - */ - public function setTableOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableOptions::class); - $this->table_options = $var; - - return $this; - } - - /** - * Labels to represent user provided metadata about the data being inspected. - * If configured by the job, some key values may be required. - * The labels associated with `Finding`'s produced by hybrid - * inspection. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 5; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels to represent user provided metadata about the data being inspected. - * If configured by the job, some key values may be required. - * The labels associated with `Finding`'s produced by hybrid - * inspection. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 5; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php deleted file mode 100644 index f1ed062cc4e2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectDlpJobRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.privacy.dlp.v2.HybridInspectDlpJobRequest - */ -class HybridInspectDlpJobRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the job to execute a hybrid inspect on, for - * example `projects/dlp-test-project/dlpJob/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - */ - protected $hybrid_item = null; - - /** - * @param string $name Required. Resource name of the job to execute a hybrid inspect on, for - * example `projects/dlp-test-project/dlpJob/53234423`. Please see - * {@see DlpServiceClient::dlpJobName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\HybridInspectDlpJobRequest - * - * @experimental - */ - public static function 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 job to execute a hybrid inspect on, for - * example `projects/dlp-test-project/dlpJob/53234423`. - * @type \Google\Cloud\Dlp\V2\HybridContentItem $hybrid_item - * The item to inspect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the job to execute a hybrid inspect on, for - * example `projects/dlp-test-project/dlpJob/53234423`. - * - * Generated 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 job to execute a hybrid inspect on, for - * example `projects/dlp-test-project/dlpJob/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_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 item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - * @return \Google\Cloud\Dlp\V2\HybridContentItem|null - */ - public function getHybridItem() - { - return $this->hybrid_item; - } - - public function hasHybridItem() - { - return isset($this->hybrid_item); - } - - public function clearHybridItem() - { - unset($this->hybrid_item); - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - * @param \Google\Cloud\Dlp\V2\HybridContentItem $var - * @return $this - */ - public function setHybridItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridContentItem::class); - $this->hybrid_item = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php deleted file mode 100644 index 4bca83aaf179..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectJobTriggerRequest.php +++ /dev/null @@ -1,130 +0,0 @@ -google.privacy.dlp.v2.HybridInspectJobTriggerRequest - */ -class HybridInspectJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the trigger to execute a hybrid inspect on, for - * example `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - */ - protected $hybrid_item = null; - - /** - * @param string $name Required. Resource name of the trigger to execute a hybrid inspect on, for - * example `projects/dlp-test-project/jobTriggers/53234423`. Please see - * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\HybridInspectJobTriggerRequest - * - * @experimental - */ - public static function 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 trigger to execute a hybrid inspect on, for - * example `projects/dlp-test-project/jobTriggers/53234423`. - * @type \Google\Cloud\Dlp\V2\HybridContentItem $hybrid_item - * The item to inspect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the trigger to execute a hybrid inspect on, for - * example `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated 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 trigger to execute a hybrid inspect on, for - * example `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_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 item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - * @return \Google\Cloud\Dlp\V2\HybridContentItem|null - */ - public function getHybridItem() - { - return $this->hybrid_item; - } - - public function hasHybridItem() - { - return isset($this->hybrid_item); - } - - public function clearHybridItem() - { - unset($this->hybrid_item); - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridContentItem hybrid_item = 3; - * @param \Google\Cloud\Dlp\V2\HybridContentItem $var - * @return $this - */ - public function setHybridItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridContentItem::class); - $this->hybrid_item = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php deleted file mode 100644 index 0589ade65d3c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.HybridInspectResponse - */ -class HybridInspectResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php deleted file mode 100644 index 9533c8b38f28..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridInspectStatistics.php +++ /dev/null @@ -1,155 +0,0 @@ -google.privacy.dlp.v2.HybridInspectStatistics - */ -class HybridInspectStatistics extends \Google\Protobuf\Internal\Message -{ - /** - * The number of hybrid inspection requests processed within this job. - * - * Generated from protobuf field int64 processed_count = 1; - */ - protected $processed_count = 0; - /** - * The number of hybrid inspection requests aborted because the job ran - * out of quota or was ended before they could be processed. - * - * Generated from protobuf field int64 aborted_count = 2; - */ - protected $aborted_count = 0; - /** - * The number of hybrid requests currently being processed. Only populated - * when called via method `getDlpJob`. - * A burst of traffic may cause hybrid inspect requests to be enqueued. - * Processing will take place as quickly as possible, but resource limitations - * may impact how long a request is enqueued for. - * - * Generated from protobuf field int64 pending_count = 3; - */ - protected $pending_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $processed_count - * The number of hybrid inspection requests processed within this job. - * @type int|string $aborted_count - * The number of hybrid inspection requests aborted because the job ran - * out of quota or was ended before they could be processed. - * @type int|string $pending_count - * The number of hybrid requests currently being processed. Only populated - * when called via method `getDlpJob`. - * A burst of traffic may cause hybrid inspect requests to be enqueued. - * Processing will take place as quickly as possible, but resource limitations - * may impact how long a request is enqueued for. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The number of hybrid inspection requests processed within this job. - * - * Generated from protobuf field int64 processed_count = 1; - * @return int|string - */ - public function getProcessedCount() - { - return $this->processed_count; - } - - /** - * The number of hybrid inspection requests processed within this job. - * - * Generated from protobuf field int64 processed_count = 1; - * @param int|string $var - * @return $this - */ - public function setProcessedCount($var) - { - GPBUtil::checkInt64($var); - $this->processed_count = $var; - - return $this; - } - - /** - * The number of hybrid inspection requests aborted because the job ran - * out of quota or was ended before they could be processed. - * - * Generated from protobuf field int64 aborted_count = 2; - * @return int|string - */ - public function getAbortedCount() - { - return $this->aborted_count; - } - - /** - * The number of hybrid inspection requests aborted because the job ran - * out of quota or was ended before they could be processed. - * - * Generated from protobuf field int64 aborted_count = 2; - * @param int|string $var - * @return $this - */ - public function setAbortedCount($var) - { - GPBUtil::checkInt64($var); - $this->aborted_count = $var; - - return $this; - } - - /** - * The number of hybrid requests currently being processed. Only populated - * when called via method `getDlpJob`. - * A burst of traffic may cause hybrid inspect requests to be enqueued. - * Processing will take place as quickly as possible, but resource limitations - * may impact how long a request is enqueued for. - * - * Generated from protobuf field int64 pending_count = 3; - * @return int|string - */ - public function getPendingCount() - { - return $this->pending_count; - } - - /** - * The number of hybrid requests currently being processed. Only populated - * when called via method `getDlpJob`. - * A burst of traffic may cause hybrid inspect requests to be enqueued. - * Processing will take place as quickly as possible, but resource limitations - * may impact how long a request is enqueued for. - * - * Generated from protobuf field int64 pending_count = 3; - * @param int|string $var - * @return $this - */ - public function setPendingCount($var) - { - GPBUtil::checkInt64($var); - $this->pending_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php deleted file mode 100644 index d5167855184a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/HybridOptions.php +++ /dev/null @@ -1,240 +0,0 @@ -google.privacy.dlp.v2.HybridOptions - */ -class HybridOptions extends \Google\Protobuf\Internal\Message -{ - /** - * A short description of where the data is coming from. Will be stored once - * in the job. 256 max length. - * - * Generated from protobuf field string description = 1; - */ - protected $description = ''; - /** - * These are labels that each inspection request must include within their - * 'finding_labels' map. Request may contain others, but any missing one of - * these will be rejected. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * No more than 10 keys can be required. - * - * Generated from protobuf field repeated string required_finding_label_keys = 2; - */ - private $required_finding_label_keys; - /** - * To organize findings, these labels will be added to each finding. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 3; - */ - private $labels; - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - */ - protected $table_options = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $description - * A short description of where the data is coming from. Will be stored once - * in the job. 256 max length. - * @type array|\Google\Protobuf\Internal\RepeatedField $required_finding_label_keys - * These are labels that each inspection request must include within their - * 'finding_labels' map. Request may contain others, but any missing one of - * these will be rejected. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * No more than 10 keys can be required. - * @type array|\Google\Protobuf\Internal\MapField $labels - * To organize findings, these labels will be added to each finding. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * @type \Google\Cloud\Dlp\V2\TableOptions $table_options - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * A short description of where the data is coming from. Will be stored once - * in the job. 256 max length. - * - * Generated from protobuf field string description = 1; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A short description of where the data is coming from. Will be stored once - * in the job. 256 max length. - * - * Generated from protobuf field string description = 1; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * These are labels that each inspection request must include within their - * 'finding_labels' map. Request may contain others, but any missing one of - * these will be rejected. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * No more than 10 keys can be required. - * - * Generated from protobuf field repeated string required_finding_label_keys = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRequiredFindingLabelKeys() - { - return $this->required_finding_label_keys; - } - - /** - * These are labels that each inspection request must include within their - * 'finding_labels' map. Request may contain others, but any missing one of - * these will be rejected. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * No more than 10 keys can be required. - * - * Generated from protobuf field repeated string required_finding_label_keys = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRequiredFindingLabelKeys($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->required_finding_label_keys = $arr; - - return $this; - } - - /** - * To organize findings, these labels will be added to each finding. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 3; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * To organize findings, these labels will be added to each finding. - * Label keys must be between 1 and 63 characters long and must conform - * to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`. - * Label values must be between 0 and 63 characters long and must conform - * to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. - * No more than 10 labels can be associated with a given finding. - * Examples: - * * `"environment" : "production"` - * * `"pipeline" : "etl"` - * - * Generated from protobuf field map labels = 3; - * @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; - } - - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - * @return \Google\Cloud\Dlp\V2\TableOptions|null - */ - public function getTableOptions() - { - return $this->table_options; - } - - public function hasTableOptions() - { - return isset($this->table_options); - } - - public function clearTableOptions() - { - unset($this->table_options); - } - - /** - * If the container is a table, additional information to make findings - * meaningful such as the columns that are primary keys. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableOptions table_options = 4; - * @param \Google\Cloud\Dlp\V2\TableOptions $var - * @return $this - */ - public function setTableOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableOptions::class); - $this->table_options = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php deleted file mode 100644 index 60678827e0b5..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageLocation.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.ImageLocation - */ -class ImageLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Bounding boxes locating the pixels within the image containing the finding. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1; - */ - private $bounding_boxes; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\BoundingBox>|\Google\Protobuf\Internal\RepeatedField $bounding_boxes - * Bounding boxes locating the pixels within the image containing the finding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Bounding boxes locating the pixels within the image containing the finding. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBoundingBoxes() - { - return $this->bounding_boxes; - } - - /** - * Bounding boxes locating the pixels within the image containing the finding. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1; - * @param array<\Google\Cloud\Dlp\V2\BoundingBox>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBoundingBoxes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\BoundingBox::class); - $this->bounding_boxes = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php deleted file mode 100644 index 816899665ead..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.ImageTransformations - */ -class ImageTransformations extends \Google\Protobuf\Internal\Message -{ - /** - * List of transforms to make. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; - */ - private $transforms; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation>|\Google\Protobuf\Internal\RepeatedField $transforms - * List of transforms to make. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of transforms to make. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransforms() - { - return $this->transforms; - } - - /** - * List of transforms to make. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ImageTransformations.ImageTransformation transforms = 2; - * @param array<\Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransforms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation::class); - $this->transforms = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php deleted file mode 100644 index 51539ea89bd7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation.php +++ /dev/null @@ -1,201 +0,0 @@ -google.privacy.dlp.v2.ImageTransformations.ImageTransformation - */ -class ImageTransformation extends \Google\Protobuf\Internal\Message -{ - /** - * The color to use when redacting content from an image. If not - * specified, the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - */ - protected $redaction_color = null; - protected $target; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes $selected_info_types - * Apply transformation to the selected info_types. - * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes $all_info_types - * Apply transformation to all findings not specified in other - * ImageTransformation's selected_info_types. Only one instance is allowed - * within the ImageTransformations message. - * @type \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText $all_text - * Apply transformation to all text that doesn't match an infoType. Only - * one instance is allowed within the ImageTransformations message. - * @type \Google\Cloud\Dlp\V2\Color $redaction_color - * The color to use when redacting content from an image. If not - * specified, the default is black. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Apply transformation to the selected info_types. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; - * @return \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes|null - */ - public function getSelectedInfoTypes() - { - return $this->readOneof(4); - } - - public function hasSelectedInfoTypes() - { - return $this->hasOneof(4); - } - - /** - * Apply transformation to the selected info_types. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes selected_info_types = 4; - * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes $var - * @return $this - */ - public function setSelectedInfoTypes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\SelectedInfoTypes::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Apply transformation to all findings not specified in other - * ImageTransformation's selected_info_types. Only one instance is allowed - * within the ImageTransformations message. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; - * @return \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes|null - */ - public function getAllInfoTypes() - { - return $this->readOneof(5); - } - - public function hasAllInfoTypes() - { - return $this->hasOneof(5); - } - - /** - * Apply transformation to all findings not specified in other - * ImageTransformation's selected_info_types. Only one instance is allowed - * within the ImageTransformations message. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes all_info_types = 5; - * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes $var - * @return $this - */ - public function setAllInfoTypes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllInfoTypes::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Apply transformation to all text that doesn't match an infoType. Only - * one instance is allowed within the ImageTransformations message. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; - * @return \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText|null - */ - public function getAllText() - { - return $this->readOneof(6); - } - - public function hasAllText() - { - return $this->hasOneof(6); - } - - /** - * Apply transformation to all text that doesn't match an infoType. Only - * one instance is allowed within the ImageTransformations message. - * - * Generated from protobuf field .google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText all_text = 6; - * @param \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText $var - * @return $this - */ - public function setAllText($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ImageTransformations\ImageTransformation\AllText::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * The color to use when redacting content from an image. If not - * specified, the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - * @return \Google\Cloud\Dlp\V2\Color|null - */ - public function getRedactionColor() - { - return $this->redaction_color; - } - - public function hasRedactionColor() - { - return isset($this->redaction_color); - } - - public function clearRedactionColor() - { - unset($this->redaction_color); - } - - /** - * The color to use when redacting content from an image. If not - * specified, the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - * @param \Google\Cloud\Dlp\V2\Color $var - * @return $this - */ - public function setRedactionColor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Color::class); - $this->redaction_color = $var; - - return $this; - } - - /** - * @return string - */ - public function getTarget() - { - return $this->whichOneof("target"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ImageTransformation::class, \Google\Cloud\Dlp\V2\ImageTransformations_ImageTransformation::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php deleted file mode 100644 index 67e3f138716d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllInfoTypes.php +++ /dev/null @@ -1,36 +0,0 @@ -google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllInfoTypes - */ -class AllInfoTypes extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AllInfoTypes::class, \Google\Cloud\Dlp\V2\ImageTransformations_ImageTransformation_AllInfoTypes::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php deleted file mode 100644 index dc4389a8d1ea..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/AllText.php +++ /dev/null @@ -1,36 +0,0 @@ -google.privacy.dlp.v2.ImageTransformations.ImageTransformation.AllText - */ -class AllText extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AllText::class, \Google\Cloud\Dlp\V2\ImageTransformations_ImageTransformation_AllText::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php deleted file mode 100644 index 4561d0012782..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ImageTransformations/ImageTransformation/SelectedInfoTypes.php +++ /dev/null @@ -1,74 +0,0 @@ -google.privacy.dlp.v2.ImageTransformations.ImageTransformation.SelectedInfoTypes - */ -class SelectedInfoTypes extends \Google\Protobuf\Internal\Message -{ - /** - * Required. InfoTypes to apply the transformation to. Required. Provided - * InfoType must be unique within the ImageTransformations message. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - private $info_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $info_types - * Required. InfoTypes to apply the transformation to. Required. Provided - * InfoType must be unique within the ImageTransformations message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. InfoTypes to apply the transformation to. Required. Provided - * InfoType must be unique within the ImageTransformations message. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * Required. InfoTypes to apply the transformation to. Required. Provided - * InfoType must be unique within the ImageTransformations message. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SelectedInfoTypes::class, \Google\Cloud\Dlp\V2\ImageTransformations_ImageTransformation_SelectedInfoTypes::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php deleted file mode 100644 index 7d1307eecacd..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoType.php +++ /dev/null @@ -1,173 +0,0 @@ -google.privacy.dlp.v2.InfoType - */ -class InfoType extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the information type. Either a name of your choosing when - * creating a CustomInfoType, or one of the names listed - * at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference - * when specifying a built-in type. When sending Cloud DLP results to Data - * Catalog, infoType names should conform to the pattern - * `[A-Za-z0-9$_-]{1,64}`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Optional version name for this InfoType. - * - * Generated from protobuf field string version = 2; - */ - protected $version = ''; - /** - * Optional custom sensitivity for this InfoType. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - */ - protected $sensitivity_score = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of the information type. Either a name of your choosing when - * creating a CustomInfoType, or one of the names listed - * at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference - * when specifying a built-in type. When sending Cloud DLP results to Data - * Catalog, infoType names should conform to the pattern - * `[A-Za-z0-9$_-]{1,64}`. - * @type string $version - * Optional version name for this InfoType. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * Optional custom sensitivity for this InfoType. - * This only applies to data profiling. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Name of the information type. Either a name of your choosing when - * creating a CustomInfoType, or one of the names listed - * at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference - * when specifying a built-in type. When sending Cloud DLP results to Data - * Catalog, infoType names should conform to the pattern - * `[A-Za-z0-9$_-]{1,64}`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the information type. Either a name of your choosing when - * creating a CustomInfoType, or one of the names listed - * at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference - * when specifying a built-in type. When sending Cloud DLP results to Data - * Catalog, infoType names should conform to the pattern - * `[A-Za-z0-9$_-]{1,64}`. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional version name for this InfoType. - * - * Generated from protobuf field string version = 2; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Optional version name for this InfoType. - * - * Generated from protobuf field string version = 2; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Optional custom sensitivity for this InfoType. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * Optional custom sensitivity for this InfoType. - * This only applies to data profiling. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 3; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php deleted file mode 100644 index c1579ef0baed..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory.php +++ /dev/null @@ -1,145 +0,0 @@ -google.privacy.dlp.v2.InfoTypeCategory - */ -class InfoTypeCategory extends \Google\Protobuf\Internal\Message -{ - protected $category; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $location_category - * The region or country that issued the ID or document represented by the - * infoType. - * @type int $industry_category - * The group of relevant businesses where this infoType is commonly used - * @type int $type_category - * The class of identifiers where this infoType belongs - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The region or country that issued the ID or document represented by the - * infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1; - * @return int - */ - public function getLocationCategory() - { - return $this->readOneof(1); - } - - public function hasLocationCategory() - { - return $this->hasOneof(1); - } - - /** - * The region or country that issued the ID or document represented by the - * infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.LocationCategory location_category = 1; - * @param int $var - * @return $this - */ - public function setLocationCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\LocationCategory::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The group of relevant businesses where this infoType is commonly used - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2; - * @return int - */ - public function getIndustryCategory() - { - return $this->readOneof(2); - } - - public function hasIndustryCategory() - { - return $this->hasOneof(2); - } - - /** - * The group of relevant businesses where this infoType is commonly used - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory industry_category = 2; - * @param int $var - * @return $this - */ - public function setIndustryCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\IndustryCategory::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The class of identifiers where this infoType belongs - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3; - * @return int - */ - public function getTypeCategory() - { - return $this->readOneof(3); - } - - public function hasTypeCategory() - { - return $this->hasOneof(3); - } - - /** - * The class of identifiers where this infoType belongs - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoTypeCategory.TypeCategory type_category = 3; - * @param int $var - * @return $this - */ - public function setTypeCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\InfoTypeCategory\TypeCategory::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getCategory() - { - return $this->whichOneof("category"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php deleted file mode 100644 index 429186610d6f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/IndustryCategory.php +++ /dev/null @@ -1,72 +0,0 @@ -google.privacy.dlp.v2.InfoTypeCategory.IndustryCategory - */ -class IndustryCategory -{ - /** - * Unused industry - * - * Generated from protobuf enum INDUSTRY_UNSPECIFIED = 0; - */ - const INDUSTRY_UNSPECIFIED = 0; - /** - * The infoType is typically used in the finance industry. - * - * Generated from protobuf enum FINANCE = 1; - */ - const FINANCE = 1; - /** - * The infoType is typically used in the health industry. - * - * Generated from protobuf enum HEALTH = 2; - */ - const HEALTH = 2; - /** - * The infoType is typically used in the telecommunications industry. - * - * Generated from protobuf enum TELECOMMUNICATIONS = 3; - */ - const TELECOMMUNICATIONS = 3; - - private static $valueToName = [ - self::INDUSTRY_UNSPECIFIED => 'INDUSTRY_UNSPECIFIED', - self::FINANCE => 'FINANCE', - self::HEALTH => 'HEALTH', - self::TELECOMMUNICATIONS => 'TELECOMMUNICATIONS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IndustryCategory::class, \Google\Cloud\Dlp\V2\InfoTypeCategory_IndustryCategory::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php deleted file mode 100644 index 317fe184138b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/LocationCategory.php +++ /dev/null @@ -1,406 +0,0 @@ -google.privacy.dlp.v2.InfoTypeCategory.LocationCategory - */ -class LocationCategory -{ - /** - * Unused location - * - * Generated from protobuf enum LOCATION_UNSPECIFIED = 0; - */ - const LOCATION_UNSPECIFIED = 0; - /** - * The infoType is not issued by or tied to a specific region, but is used - * almost everywhere. - * - * Generated from protobuf enum GLOBAL = 1; - */ - const PBGLOBAL = 1; - /** - * The infoType is typically used in Argentina. - * - * Generated from protobuf enum ARGENTINA = 2; - */ - const ARGENTINA = 2; - /** - * The infoType is typically used in Armenia. - * - * Generated from protobuf enum ARMENIA = 51; - */ - const ARMENIA = 51; - /** - * The infoType is typically used in Australia. - * - * Generated from protobuf enum AUSTRALIA = 3; - */ - const AUSTRALIA = 3; - /** - * The infoType is typically used in Azerbaijan. - * - * Generated from protobuf enum AZERBAIJAN = 48; - */ - const AZERBAIJAN = 48; - /** - * The infoType is typically used in Belarus. - * - * Generated from protobuf enum BELARUS = 50; - */ - const BELARUS = 50; - /** - * The infoType is typically used in Belgium. - * - * Generated from protobuf enum BELGIUM = 4; - */ - const BELGIUM = 4; - /** - * The infoType is typically used in Brazil. - * - * Generated from protobuf enum BRAZIL = 5; - */ - const BRAZIL = 5; - /** - * The infoType is typically used in Canada. - * - * Generated from protobuf enum CANADA = 6; - */ - const CANADA = 6; - /** - * The infoType is typically used in Chile. - * - * Generated from protobuf enum CHILE = 7; - */ - const CHILE = 7; - /** - * The infoType is typically used in China. - * - * Generated from protobuf enum CHINA = 8; - */ - const CHINA = 8; - /** - * The infoType is typically used in Colombia. - * - * Generated from protobuf enum COLOMBIA = 9; - */ - const COLOMBIA = 9; - /** - * The infoType is typically used in Croatia. - * - * Generated from protobuf enum CROATIA = 42; - */ - const CROATIA = 42; - /** - * The infoType is typically used in Denmark. - * - * Generated from protobuf enum DENMARK = 10; - */ - const DENMARK = 10; - /** - * The infoType is typically used in France. - * - * Generated from protobuf enum FRANCE = 11; - */ - const FRANCE = 11; - /** - * The infoType is typically used in Finland. - * - * Generated from protobuf enum FINLAND = 12; - */ - const FINLAND = 12; - /** - * The infoType is typically used in Germany. - * - * Generated from protobuf enum GERMANY = 13; - */ - const GERMANY = 13; - /** - * The infoType is typically used in Hong Kong. - * - * Generated from protobuf enum HONG_KONG = 14; - */ - const HONG_KONG = 14; - /** - * The infoType is typically used in India. - * - * Generated from protobuf enum INDIA = 15; - */ - const INDIA = 15; - /** - * The infoType is typically used in Indonesia. - * - * Generated from protobuf enum INDONESIA = 16; - */ - const INDONESIA = 16; - /** - * The infoType is typically used in Ireland. - * - * Generated from protobuf enum IRELAND = 17; - */ - const IRELAND = 17; - /** - * The infoType is typically used in Israel. - * - * Generated from protobuf enum ISRAEL = 18; - */ - const ISRAEL = 18; - /** - * The infoType is typically used in Italy. - * - * Generated from protobuf enum ITALY = 19; - */ - const ITALY = 19; - /** - * The infoType is typically used in Japan. - * - * Generated from protobuf enum JAPAN = 20; - */ - const JAPAN = 20; - /** - * The infoType is typically used in Kazakhstan. - * - * Generated from protobuf enum KAZAKHSTAN = 47; - */ - const KAZAKHSTAN = 47; - /** - * The infoType is typically used in Korea. - * - * Generated from protobuf enum KOREA = 21; - */ - const KOREA = 21; - /** - * The infoType is typically used in Mexico. - * - * Generated from protobuf enum MEXICO = 22; - */ - const MEXICO = 22; - /** - * The infoType is typically used in the Netherlands. - * - * Generated from protobuf enum THE_NETHERLANDS = 23; - */ - const THE_NETHERLANDS = 23; - /** - * The infoType is typically used in New Zealand. - * - * Generated from protobuf enum NEW_ZEALAND = 41; - */ - const NEW_ZEALAND = 41; - /** - * The infoType is typically used in Norway. - * - * Generated from protobuf enum NORWAY = 24; - */ - const NORWAY = 24; - /** - * The infoType is typically used in Paraguay. - * - * Generated from protobuf enum PARAGUAY = 25; - */ - const PARAGUAY = 25; - /** - * The infoType is typically used in Peru. - * - * Generated from protobuf enum PERU = 26; - */ - const PERU = 26; - /** - * The infoType is typically used in Poland. - * - * Generated from protobuf enum POLAND = 27; - */ - const POLAND = 27; - /** - * The infoType is typically used in Portugal. - * - * Generated from protobuf enum PORTUGAL = 28; - */ - const PORTUGAL = 28; - /** - * The infoType is typically used in Russia. - * - * Generated from protobuf enum RUSSIA = 44; - */ - const RUSSIA = 44; - /** - * The infoType is typically used in Singapore. - * - * Generated from protobuf enum SINGAPORE = 29; - */ - const SINGAPORE = 29; - /** - * The infoType is typically used in South Africa. - * - * Generated from protobuf enum SOUTH_AFRICA = 30; - */ - const SOUTH_AFRICA = 30; - /** - * The infoType is typically used in Spain. - * - * Generated from protobuf enum SPAIN = 31; - */ - const SPAIN = 31; - /** - * The infoType is typically used in Sweden. - * - * Generated from protobuf enum SWEDEN = 32; - */ - const SWEDEN = 32; - /** - * The infoType is typically used in Switzerland. - * - * Generated from protobuf enum SWITZERLAND = 43; - */ - const SWITZERLAND = 43; - /** - * The infoType is typically used in Taiwan. - * - * Generated from protobuf enum TAIWAN = 33; - */ - const TAIWAN = 33; - /** - * The infoType is typically used in Thailand. - * - * Generated from protobuf enum THAILAND = 34; - */ - const THAILAND = 34; - /** - * The infoType is typically used in Turkey. - * - * Generated from protobuf enum TURKEY = 35; - */ - const TURKEY = 35; - /** - * The infoType is typically used in Ukraine. - * - * Generated from protobuf enum UKRAINE = 45; - */ - const UKRAINE = 45; - /** - * The infoType is typically used in the United Kingdom. - * - * Generated from protobuf enum UNITED_KINGDOM = 36; - */ - const UNITED_KINGDOM = 36; - /** - * The infoType is typically used in the United States. - * - * Generated from protobuf enum UNITED_STATES = 37; - */ - const UNITED_STATES = 37; - /** - * The infoType is typically used in Uruguay. - * - * Generated from protobuf enum URUGUAY = 38; - */ - const URUGUAY = 38; - /** - * The infoType is typically used in Uzbekistan. - * - * Generated from protobuf enum UZBEKISTAN = 46; - */ - const UZBEKISTAN = 46; - /** - * The infoType is typically used in Venezuela. - * - * Generated from protobuf enum VENEZUELA = 39; - */ - const VENEZUELA = 39; - /** - * The infoType is typically used in Google internally. - * - * Generated from protobuf enum INTERNAL = 40; - */ - const INTERNAL = 40; - - private static $valueToName = [ - self::LOCATION_UNSPECIFIED => 'LOCATION_UNSPECIFIED', - self::PBGLOBAL => 'GLOBAL', - self::ARGENTINA => 'ARGENTINA', - self::ARMENIA => 'ARMENIA', - self::AUSTRALIA => 'AUSTRALIA', - self::AZERBAIJAN => 'AZERBAIJAN', - self::BELARUS => 'BELARUS', - self::BELGIUM => 'BELGIUM', - self::BRAZIL => 'BRAZIL', - self::CANADA => 'CANADA', - self::CHILE => 'CHILE', - self::CHINA => 'CHINA', - self::COLOMBIA => 'COLOMBIA', - self::CROATIA => 'CROATIA', - self::DENMARK => 'DENMARK', - self::FRANCE => 'FRANCE', - self::FINLAND => 'FINLAND', - self::GERMANY => 'GERMANY', - self::HONG_KONG => 'HONG_KONG', - self::INDIA => 'INDIA', - self::INDONESIA => 'INDONESIA', - self::IRELAND => 'IRELAND', - self::ISRAEL => 'ISRAEL', - self::ITALY => 'ITALY', - self::JAPAN => 'JAPAN', - self::KAZAKHSTAN => 'KAZAKHSTAN', - self::KOREA => 'KOREA', - self::MEXICO => 'MEXICO', - self::THE_NETHERLANDS => 'THE_NETHERLANDS', - self::NEW_ZEALAND => 'NEW_ZEALAND', - self::NORWAY => 'NORWAY', - self::PARAGUAY => 'PARAGUAY', - self::PERU => 'PERU', - self::POLAND => 'POLAND', - self::PORTUGAL => 'PORTUGAL', - self::RUSSIA => 'RUSSIA', - self::SINGAPORE => 'SINGAPORE', - self::SOUTH_AFRICA => 'SOUTH_AFRICA', - self::SPAIN => 'SPAIN', - self::SWEDEN => 'SWEDEN', - self::SWITZERLAND => 'SWITZERLAND', - self::TAIWAN => 'TAIWAN', - self::THAILAND => 'THAILAND', - self::TURKEY => 'TURKEY', - self::UKRAINE => 'UKRAINE', - self::UNITED_KINGDOM => 'UNITED_KINGDOM', - self::UNITED_STATES => 'UNITED_STATES', - self::URUGUAY => 'URUGUAY', - self::UZBEKISTAN => 'UZBEKISTAN', - self::VENEZUELA => 'VENEZUELA', - self::INTERNAL => 'INTERNAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has 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(LocationCategory::class, \Google\Cloud\Dlp\V2\InfoTypeCategory_LocationCategory::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php deleted file mode 100644 index bbc6fd462069..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeCategory/TypeCategory.php +++ /dev/null @@ -1,104 +0,0 @@ -google.privacy.dlp.v2.InfoTypeCategory.TypeCategory - */ -class TypeCategory -{ - /** - * Unused type - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * Personally identifiable information, for example, a - * name or phone number - * - * Generated from protobuf enum PII = 1; - */ - const PII = 1; - /** - * Personally identifiable information that is especially sensitive, for - * example, a passport number. - * - * Generated from protobuf enum SPII = 2; - */ - const SPII = 2; - /** - * Attributes that can partially identify someone, especially in - * combination with other attributes, like age, height, and gender. - * - * Generated from protobuf enum DEMOGRAPHIC = 3; - */ - const DEMOGRAPHIC = 3; - /** - * Confidential or secret information, for example, a password. - * - * Generated from protobuf enum CREDENTIAL = 4; - */ - const CREDENTIAL = 4; - /** - * An identification document issued by a government. - * - * Generated from protobuf enum GOVERNMENT_ID = 5; - */ - const GOVERNMENT_ID = 5; - /** - * A document, for example, a resume or source code. - * - * Generated from protobuf enum DOCUMENT = 6; - */ - const DOCUMENT = 6; - /** - * Information that is not sensitive on its own, but provides details about - * the circumstances surrounding an entity or an event. - * - * Generated from protobuf enum CONTEXTUAL_INFORMATION = 7; - */ - const CONTEXTUAL_INFORMATION = 7; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::PII => 'PII', - self::SPII => 'SPII', - self::DEMOGRAPHIC => 'DEMOGRAPHIC', - self::CREDENTIAL => 'CREDENTIAL', - self::GOVERNMENT_ID => 'GOVERNMENT_ID', - self::DOCUMENT => 'DOCUMENT', - self::CONTEXTUAL_INFORMATION => 'CONTEXTUAL_INFORMATION', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TypeCategory::class, \Google\Cloud\Dlp\V2\InfoTypeCategory_TypeCategory::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php deleted file mode 100644 index 68864fe9391f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeDescription.php +++ /dev/null @@ -1,285 +0,0 @@ -google.privacy.dlp.v2.InfoTypeDescription - */ -class InfoTypeDescription extends \Google\Protobuf\Internal\Message -{ - /** - * Internal name of the infoType. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Human readable form of the infoType name. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Which parts of the API supports this InfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3; - */ - private $supported_by; - /** - * Description of the infotype. Translated when language is provided in the - * request. - * - * Generated from protobuf field string description = 4; - */ - protected $description = ''; - /** - * A list of available versions for the infotype. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.VersionDescription versions = 9; - */ - private $versions; - /** - * The category of the infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10; - */ - private $categories; - /** - * The default sensitivity of the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; - */ - protected $sensitivity_score = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Internal name of the infoType. - * @type string $display_name - * Human readable form of the infoType name. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_by - * Which parts of the API supports this InfoType. - * @type string $description - * Description of the infotype. Translated when language is provided in the - * request. - * @type array<\Google\Cloud\Dlp\V2\VersionDescription>|\Google\Protobuf\Internal\RepeatedField $versions - * A list of available versions for the infotype. - * @type array<\Google\Cloud\Dlp\V2\InfoTypeCategory>|\Google\Protobuf\Internal\RepeatedField $categories - * The category of the infoType. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The default sensitivity of the infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Internal name of the infoType. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Internal name of the infoType. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Human readable form of the infoType name. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Human readable form of the infoType 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; - } - - /** - * Which parts of the API supports this InfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedBy() - { - return $this->supported_by; - } - - /** - * Which parts of the API supports this InfoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSupportedBy supported_by = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedBy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\InfoTypeSupportedBy::class); - $this->supported_by = $arr; - - return $this; - } - - /** - * Description of the infotype. Translated when language is provided in the - * request. - * - * Generated from protobuf field string description = 4; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the infotype. Translated when language is provided in the - * request. - * - * 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; - } - - /** - * A list of available versions for the infotype. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.VersionDescription versions = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVersions() - { - return $this->versions; - } - - /** - * A list of available versions for the infotype. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.VersionDescription versions = 9; - * @param array<\Google\Cloud\Dlp\V2\VersionDescription>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\VersionDescription::class); - $this->versions = $arr; - - return $this; - } - - /** - * The category of the infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCategories() - { - return $this->categories; - } - - /** - * The category of the infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeCategory categories = 10; - * @param array<\Google\Cloud\Dlp\V2\InfoTypeCategory>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeCategory::class); - $this->categories = $arr; - - return $this; - } - - /** - * The default sensitivity of the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The default sensitivity of the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 11; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php deleted file mode 100644 index d597096908b4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeStats.php +++ /dev/null @@ -1,111 +0,0 @@ -google.privacy.dlp.v2.InfoTypeStats - */ -class InfoTypeStats extends \Google\Protobuf\Internal\Message -{ - /** - * The type of finding this stat is for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Number of findings for this infoType. - * - * Generated from protobuf field int64 count = 2; - */ - protected $count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * The type of finding this stat is for. - * @type int|string $count - * Number of findings for this infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The type of finding this stat is for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * The type of finding this stat is for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Number of findings for this infoType. - * - * Generated from protobuf field int64 count = 2; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * Number of findings for this infoType. - * - * Generated from protobuf field int64 count = 2; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php deleted file mode 100644 index e99cc8206155..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSummary.php +++ /dev/null @@ -1,116 +0,0 @@ -google.privacy.dlp.v2.InfoTypeSummary - */ -class InfoTypeSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Not populated for predicted infotypes. - * - * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; - * @deprecated - */ - protected $estimated_prevalence = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * The infoType. - * @type int $estimated_prevalence - * Not populated for predicted infotypes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * The infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Not populated for predicted infotypes. - * - * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; - * @return int - * @deprecated - */ - public function getEstimatedPrevalence() - { - @trigger_error('estimated_prevalence is deprecated.', E_USER_DEPRECATED); - return $this->estimated_prevalence; - } - - /** - * Not populated for predicted infotypes. - * - * Generated from protobuf field int32 estimated_prevalence = 2 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setEstimatedPrevalence($var) - { - @trigger_error('estimated_prevalence is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->estimated_prevalence = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php deleted file mode 100644 index 57ea0fb34dad..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeSupportedBy.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.InfoTypeSupportedBy - */ -class InfoTypeSupportedBy -{ - /** - * Unused. - * - * Generated from protobuf enum ENUM_TYPE_UNSPECIFIED = 0; - */ - const ENUM_TYPE_UNSPECIFIED = 0; - /** - * Supported by the inspect operations. - * - * Generated from protobuf enum INSPECT = 1; - */ - const INSPECT = 1; - /** - * Supported by the risk analysis operations. - * - * Generated from protobuf enum RISK_ANALYSIS = 2; - */ - const RISK_ANALYSIS = 2; - - private static $valueToName = [ - self::ENUM_TYPE_UNSPECIFIED => 'ENUM_TYPE_UNSPECIFIED', - self::INSPECT => 'INSPECT', - self::RISK_ANALYSIS => 'RISK_ANALYSIS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php deleted file mode 100644 index c35f65c972d4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations.php +++ /dev/null @@ -1,74 +0,0 @@ -google.privacy.dlp.v2.InfoTypeTransformations - */ -class InfoTypeTransformations extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Transformation for each infoType. Cannot specify more than one - * for a given infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $transformations; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation>|\Google\Protobuf\Internal\RepeatedField $transformations - * Required. Transformation for each infoType. Cannot specify more than one - * for a given infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Transformation for each infoType. Cannot specify more than one - * for a given infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransformations() - { - return $this->transformations; - } - - /** - * Required. Transformation for each infoType. Cannot specify more than one - * for a given infoType. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation transformations = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransformations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeTransformations\InfoTypeTransformation::class); - $this->transformations = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php deleted file mode 100644 index a3d95ca85835..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InfoTypeTransformations/InfoTypeTransformation.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.InfoTypeTransformations.InfoTypeTransformation - */ -class InfoTypeTransformation extends \Google\Protobuf\Internal\Message -{ - /** - * InfoTypes to apply the transformation to. An empty list will cause - * this transformation to apply to all findings that correspond to - * infoTypes that were requested in `InspectConfig`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - /** - * Required. Primitive transformation to apply to the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $primitive_transformation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $info_types - * InfoTypes to apply the transformation to. An empty list will cause - * this transformation to apply to all findings that correspond to - * infoTypes that were requested in `InspectConfig`. - * @type \Google\Cloud\Dlp\V2\PrimitiveTransformation $primitive_transformation - * Required. Primitive transformation to apply to the infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * InfoTypes to apply the transformation to. An empty list will cause - * this transformation to apply to all findings that correspond to - * infoTypes that were requested in `InspectConfig`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * InfoTypes to apply the transformation to. An empty list will cause - * this transformation to apply to all findings that correspond to - * infoTypes that were requested in `InspectConfig`. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - - /** - * Required. Primitive transformation to apply to the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\PrimitiveTransformation|null - */ - public function getPrimitiveTransformation() - { - return $this->primitive_transformation; - } - - public function hasPrimitiveTransformation() - { - return isset($this->primitive_transformation); - } - - public function clearPrimitiveTransformation() - { - unset($this->primitive_transformation); - } - - /** - * Required. Primitive transformation to apply to the infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation primitive_transformation = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\PrimitiveTransformation $var - * @return $this - */ - public function setPrimitiveTransformation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrimitiveTransformation::class); - $this->primitive_transformation = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InfoTypeTransformation::class, \Google\Cloud\Dlp\V2\InfoTypeTransformations_InfoTypeTransformation::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php deleted file mode 100644 index a715717d009f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig.php +++ /dev/null @@ -1,495 +0,0 @@ -google.privacy.dlp.v2.InspectConfig - */ -class InspectConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or listed at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. - * When no InfoTypes or CustomInfoTypes are specified in a request, the - * system may automatically choose a default list of detectors to run, which - * may change over time. - * If you need precise control and predictability as to what detectors are - * run you should specify specific InfoTypes listed in the reference, - * otherwise a default list will be used, which may change over time. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - /** - * Only returns findings equal to or above this threshold. The default is - * POSSIBLE. - * In general, the highest likelihood setting yields the fewest findings in - * results and the lowest chance of a false positive. For more information, - * see [Match - * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - */ - protected $min_likelihood = 0; - /** - * Minimum likelihood per infotype. For each infotype, a user can specify a - * minimum likelihood. The system only returns a finding if its likelihood is - * above this threshold. If this field is not set, the system uses the - * InspectConfig min_likelihood. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood min_likelihood_per_info_type = 11; - */ - private $min_likelihood_per_info_type; - /** - * Configuration to control the number of findings returned. - * This is not used for data profiling. - * When redacting sensitive data from images, finding limits don't apply. They - * can cause unexpected or inconsistent results, where only some data is - * redacted. Don't include finding limits in - * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] - * requests. Otherwise, Cloud DLP returns an error. - * When set within an - * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified - * maximum values aren't hard limits. If an inspection job reaches these - * limits, the job ends gradually, not abruptly. Therefore, the actual number - * of findings that Cloud DLP returns can be multiple times higher than these - * maximum values. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3; - */ - protected $limits = null; - /** - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see - * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for - * data profiling. - * - * Generated from protobuf field bool include_quote = 4; - */ - protected $include_quote = false; - /** - * When true, excludes type information of the findings. - * This is not used for data profiling. - * - * Generated from protobuf field bool exclude_info_types = 5; - */ - protected $exclude_info_types = false; - /** - * CustomInfoTypes provided by the user. See - * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes - * to learn more. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; - */ - private $custom_info_types; - /** - * Deprecated and unused. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentOption content_options = 8; - */ - private $content_options; - /** - * Set of rules to apply to the findings for this InspectConfig. - * Exclusion rules, contained in the set are executed in the end, other - * rules are executed in the order they are specified for each info type. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; - */ - private $rule_set; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $info_types - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or listed at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. - * When no InfoTypes or CustomInfoTypes are specified in a request, the - * system may automatically choose a default list of detectors to run, which - * may change over time. - * If you need precise control and predictability as to what detectors are - * run you should specify specific InfoTypes listed in the reference, - * otherwise a default list will be used, which may change over time. - * @type int $min_likelihood - * Only returns findings equal to or above this threshold. The default is - * POSSIBLE. - * In general, the highest likelihood setting yields the fewest findings in - * results and the lowest chance of a false positive. For more information, - * see [Match - * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). - * @type array<\Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood>|\Google\Protobuf\Internal\RepeatedField $min_likelihood_per_info_type - * Minimum likelihood per infotype. For each infotype, a user can specify a - * minimum likelihood. The system only returns a finding if its likelihood is - * above this threshold. If this field is not set, the system uses the - * InspectConfig min_likelihood. - * @type \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits $limits - * Configuration to control the number of findings returned. - * This is not used for data profiling. - * When redacting sensitive data from images, finding limits don't apply. They - * can cause unexpected or inconsistent results, where only some data is - * redacted. Don't include finding limits in - * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] - * requests. Otherwise, Cloud DLP returns an error. - * When set within an - * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified - * maximum values aren't hard limits. If an inspection job reaches these - * limits, the job ends gradually, not abruptly. Therefore, the actual number - * of findings that Cloud DLP returns can be multiple times higher than these - * maximum values. - * @type bool $include_quote - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see - * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for - * data profiling. - * @type bool $exclude_info_types - * When true, excludes type information of the findings. - * This is not used for data profiling. - * @type array<\Google\Cloud\Dlp\V2\CustomInfoType>|\Google\Protobuf\Internal\RepeatedField $custom_info_types - * CustomInfoTypes provided by the user. See - * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes - * to learn more. - * @type array|\Google\Protobuf\Internal\RepeatedField $content_options - * Deprecated and unused. - * @type array<\Google\Cloud\Dlp\V2\InspectionRuleSet>|\Google\Protobuf\Internal\RepeatedField $rule_set - * Set of rules to apply to the findings for this InspectConfig. - * Exclusion rules, contained in the set are executed in the end, other - * rules are executed in the order they are specified for each info type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or listed at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. - * When no InfoTypes or CustomInfoTypes are specified in a request, the - * system may automatically choose a default list of detectors to run, which - * may change over time. - * If you need precise control and predictability as to what detectors are - * run you should specify specific InfoTypes listed in the reference, - * otherwise a default list will be used, which may change over time. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * Restricts what info_types to look for. The values must correspond to - * InfoType values returned by ListInfoTypes or listed at - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference. - * When no InfoTypes or CustomInfoTypes are specified in a request, the - * system may automatically choose a default list of detectors to run, which - * may change over time. - * If you need precise control and predictability as to what detectors are - * run you should specify specific InfoTypes listed in the reference, - * otherwise a default list will be used, which may change over time. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - - /** - * Only returns findings equal to or above this threshold. The default is - * POSSIBLE. - * In general, the highest likelihood setting yields the fewest findings in - * results and the lowest chance of a false positive. For more information, - * see [Match - * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @return int - */ - public function getMinLikelihood() - { - return $this->min_likelihood; - } - - /** - * Only returns findings equal to or above this threshold. The default is - * POSSIBLE. - * In general, the highest likelihood setting yields the fewest findings in - * results and the lowest chance of a false positive. For more information, - * see [Match - * likelihood](https://cloud.google.com/sensitive-data-protection/docs/likelihood). - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @param int $var - * @return $this - */ - public function setMinLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->min_likelihood = $var; - - return $this; - } - - /** - * Minimum likelihood per infotype. For each infotype, a user can specify a - * minimum likelihood. The system only returns a finding if its likelihood is - * above this threshold. If this field is not set, the system uses the - * InspectConfig min_likelihood. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood min_likelihood_per_info_type = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMinLikelihoodPerInfoType() - { - return $this->min_likelihood_per_info_type; - } - - /** - * Minimum likelihood per infotype. For each infotype, a user can specify a - * minimum likelihood. The system only returns a finding if its likelihood is - * above this threshold. If this field is not set, the system uses the - * InspectConfig min_likelihood. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood min_likelihood_per_info_type = 11; - * @param array<\Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMinLikelihoodPerInfoType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectConfig\InfoTypeLikelihood::class); - $this->min_likelihood_per_info_type = $arr; - - return $this; - } - - /** - * Configuration to control the number of findings returned. - * This is not used for data profiling. - * When redacting sensitive data from images, finding limits don't apply. They - * can cause unexpected or inconsistent results, where only some data is - * redacted. Don't include finding limits in - * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] - * requests. Otherwise, Cloud DLP returns an error. - * When set within an - * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified - * maximum values aren't hard limits. If an inspection job reaches these - * limits, the job ends gradually, not abruptly. Therefore, the actual number - * of findings that Cloud DLP returns can be multiple times higher than these - * maximum values. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3; - * @return \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits|null - */ - public function getLimits() - { - return $this->limits; - } - - public function hasLimits() - { - return isset($this->limits); - } - - public function clearLimits() - { - unset($this->limits); - } - - /** - * Configuration to control the number of findings returned. - * This is not used for data profiling. - * When redacting sensitive data from images, finding limits don't apply. They - * can cause unexpected or inconsistent results, where only some data is - * redacted. Don't include finding limits in - * [RedactImage][google.privacy.dlp.v2.DlpService.RedactImage] - * requests. Otherwise, Cloud DLP returns an error. - * When set within an - * [InspectJobConfig][google.privacy.dlp.v2.InspectJobConfig], the specified - * maximum values aren't hard limits. If an inspection job reaches these - * limits, the job ends gradually, not abruptly. Therefore, the actual number - * of findings that Cloud DLP returns can be multiple times higher than these - * maximum values. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig.FindingLimits limits = 3; - * @param \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits $var - * @return $this - */ - public function setLimits($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits::class); - $this->limits = $var; - - return $this; - } - - /** - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see - * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for - * data profiling. - * - * Generated from protobuf field bool include_quote = 4; - * @return bool - */ - public function getIncludeQuote() - { - return $this->include_quote; - } - - /** - * When true, a contextual quote from the data that triggered a finding is - * included in the response; see - * [Finding.quote][google.privacy.dlp.v2.Finding.quote]. This is not used for - * data profiling. - * - * Generated from protobuf field bool include_quote = 4; - * @param bool $var - * @return $this - */ - public function setIncludeQuote($var) - { - GPBUtil::checkBool($var); - $this->include_quote = $var; - - return $this; - } - - /** - * When true, excludes type information of the findings. - * This is not used for data profiling. - * - * Generated from protobuf field bool exclude_info_types = 5; - * @return bool - */ - public function getExcludeInfoTypes() - { - return $this->exclude_info_types; - } - - /** - * When true, excludes type information of the findings. - * This is not used for data profiling. - * - * Generated from protobuf field bool exclude_info_types = 5; - * @param bool $var - * @return $this - */ - public function setExcludeInfoTypes($var) - { - GPBUtil::checkBool($var); - $this->exclude_info_types = $var; - - return $this; - } - - /** - * CustomInfoTypes provided by the user. See - * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes - * to learn more. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCustomInfoTypes() - { - return $this->custom_info_types; - } - - /** - * CustomInfoTypes provided by the user. See - * https://cloud.google.com/sensitive-data-protection/docs/creating-custom-infotypes - * to learn more. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.CustomInfoType custom_info_types = 6; - * @param array<\Google\Cloud\Dlp\V2\CustomInfoType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCustomInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\CustomInfoType::class); - $this->custom_info_types = $arr; - - return $this; - } - - /** - * Deprecated and unused. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentOption content_options = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContentOptions() - { - return $this->content_options; - } - - /** - * Deprecated and unused. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentOption content_options = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContentOptions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Dlp\V2\ContentOption::class); - $this->content_options = $arr; - - return $this; - } - - /** - * Set of rules to apply to the findings for this InspectConfig. - * Exclusion rules, contained in the set are executed in the end, other - * rules are executed in the order they are specified for each info type. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRuleSet() - { - return $this->rule_set; - } - - /** - * Set of rules to apply to the findings for this InspectConfig. - * Exclusion rules, contained in the set are executed in the end, other - * rules are executed in the order they are specified for each info type. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRuleSet rule_set = 10; - * @param array<\Google\Cloud\Dlp\V2\InspectionRuleSet>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRuleSet($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectionRuleSet::class); - $this->rule_set = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php deleted file mode 100644 index 6c89c0b17c00..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits.php +++ /dev/null @@ -1,204 +0,0 @@ -google.privacy.dlp.v2.InspectConfig.FindingLimits - */ -class FindingLimits extends \Google\Protobuf\Internal\Message -{ - /** - * Max number of findings that are returned for each item scanned. - * When set within an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], - * this field is ignored. - * This value isn't a hard limit. If the number of findings for an item - * reaches this limit, the inspection of that item ends gradually, not - * abruptly. Therefore, the actual number of findings that Cloud DLP returns - * for the item can be multiple times higher than this value. - * - * Generated from protobuf field int32 max_findings_per_item = 1; - */ - protected $max_findings_per_item = 0; - /** - * Max number of findings that are returned per request or job. - * If you set this field in an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the - * resulting maximum value is the value that you set or 3,000, whichever is - * lower. - * This value isn't a hard limit. If an inspection reaches this limit, the - * inspection ends gradually, not abruptly. Therefore, the actual number of - * findings that Cloud DLP returns can be multiple times higher than this - * value. - * - * Generated from protobuf field int32 max_findings_per_request = 2; - */ - protected $max_findings_per_request = 0; - /** - * Configuration of findings limit given for specified infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3; - */ - private $max_findings_per_info_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $max_findings_per_item - * Max number of findings that are returned for each item scanned. - * When set within an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], - * this field is ignored. - * This value isn't a hard limit. If the number of findings for an item - * reaches this limit, the inspection of that item ends gradually, not - * abruptly. Therefore, the actual number of findings that Cloud DLP returns - * for the item can be multiple times higher than this value. - * @type int $max_findings_per_request - * Max number of findings that are returned per request or job. - * If you set this field in an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the - * resulting maximum value is the value that you set or 3,000, whichever is - * lower. - * This value isn't a hard limit. If an inspection reaches this limit, the - * inspection ends gradually, not abruptly. Therefore, the actual number of - * findings that Cloud DLP returns can be multiple times higher than this - * value. - * @type array<\Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit>|\Google\Protobuf\Internal\RepeatedField $max_findings_per_info_type - * Configuration of findings limit given for specified infoTypes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Max number of findings that are returned for each item scanned. - * When set within an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], - * this field is ignored. - * This value isn't a hard limit. If the number of findings for an item - * reaches this limit, the inspection of that item ends gradually, not - * abruptly. Therefore, the actual number of findings that Cloud DLP returns - * for the item can be multiple times higher than this value. - * - * Generated from protobuf field int32 max_findings_per_item = 1; - * @return int - */ - public function getMaxFindingsPerItem() - { - return $this->max_findings_per_item; - } - - /** - * Max number of findings that are returned for each item scanned. - * When set within an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], - * this field is ignored. - * This value isn't a hard limit. If the number of findings for an item - * reaches this limit, the inspection of that item ends gradually, not - * abruptly. Therefore, the actual number of findings that Cloud DLP returns - * for the item can be multiple times higher than this value. - * - * Generated from protobuf field int32 max_findings_per_item = 1; - * @param int $var - * @return $this - */ - public function setMaxFindingsPerItem($var) - { - GPBUtil::checkInt32($var); - $this->max_findings_per_item = $var; - - return $this; - } - - /** - * Max number of findings that are returned per request or job. - * If you set this field in an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the - * resulting maximum value is the value that you set or 3,000, whichever is - * lower. - * This value isn't a hard limit. If an inspection reaches this limit, the - * inspection ends gradually, not abruptly. Therefore, the actual number of - * findings that Cloud DLP returns can be multiple times higher than this - * value. - * - * Generated from protobuf field int32 max_findings_per_request = 2; - * @return int - */ - public function getMaxFindingsPerRequest() - { - return $this->max_findings_per_request; - } - - /** - * Max number of findings that are returned per request or job. - * If you set this field in an - * [InspectContentRequest][google.privacy.dlp.v2.InspectContentRequest], the - * resulting maximum value is the value that you set or 3,000, whichever is - * lower. - * This value isn't a hard limit. If an inspection reaches this limit, the - * inspection ends gradually, not abruptly. Therefore, the actual number of - * findings that Cloud DLP returns can be multiple times higher than this - * value. - * - * Generated from protobuf field int32 max_findings_per_request = 2; - * @param int $var - * @return $this - */ - public function setMaxFindingsPerRequest($var) - { - GPBUtil::checkInt32($var); - $this->max_findings_per_request = $var; - - return $this; - } - - /** - * Configuration of findings limit given for specified infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMaxFindingsPerInfoType() - { - return $this->max_findings_per_info_type; - } - - /** - * Configuration of findings limit given for specified infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit max_findings_per_info_type = 3; - * @param array<\Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMaxFindingsPerInfoType($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectConfig\FindingLimits\InfoTypeLimit::class); - $this->max_findings_per_info_type = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FindingLimits::class, \Google\Cloud\Dlp\V2\InspectConfig_FindingLimits::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php deleted file mode 100644 index cfab8ab3f528..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/FindingLimits/InfoTypeLimit.php +++ /dev/null @@ -1,127 +0,0 @@ -google.privacy.dlp.v2.InspectConfig.FindingLimits.InfoTypeLimit - */ -class InfoTypeLimit extends \Google\Protobuf\Internal\Message -{ - /** - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that - * are found but not specified in another InfoTypeLimit. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Max findings limit for the given infoType. - * - * Generated from protobuf field int32 max_findings = 2; - */ - protected $max_findings = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that - * are found but not specified in another InfoTypeLimit. - * @type int $max_findings - * Max findings limit for the given infoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that - * are found but not specified in another InfoTypeLimit. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * Type of information the findings limit applies to. Only one limit per - * info_type should be provided. If InfoTypeLimit does not have an - * info_type, the DLP API applies the limit against all info_types that - * are found but not specified in another InfoTypeLimit. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Max findings limit for the given infoType. - * - * Generated from protobuf field int32 max_findings = 2; - * @return int - */ - public function getMaxFindings() - { - return $this->max_findings; - } - - /** - * Max findings limit for the given infoType. - * - * Generated from protobuf field int32 max_findings = 2; - * @param int $var - * @return $this - */ - public function setMaxFindings($var) - { - GPBUtil::checkInt32($var); - $this->max_findings = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InfoTypeLimit::class, \Google\Cloud\Dlp\V2\InspectConfig_FindingLimits_InfoTypeLimit::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php deleted file mode 100644 index 2de7fc9c089c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectConfig/InfoTypeLikelihood.php +++ /dev/null @@ -1,130 +0,0 @@ -google.privacy.dlp.v2.InspectConfig.InfoTypeLikelihood - */ -class InfoTypeLikelihood extends \Google\Protobuf\Internal\Message -{ - /** - * Type of information the likelihood threshold applies to. Only one - * likelihood per info_type should be provided. If InfoTypeLikelihood does - * not have an info_type, the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Only returns findings equal to or above this threshold. This field is - * required or else the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - */ - protected $min_likelihood = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * Type of information the likelihood threshold applies to. Only one - * likelihood per info_type should be provided. If InfoTypeLikelihood does - * not have an info_type, the configuration fails. - * @type int $min_likelihood - * Only returns findings equal to or above this threshold. This field is - * required or else the configuration fails. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Type of information the likelihood threshold applies to. Only one - * likelihood per info_type should be provided. If InfoTypeLikelihood does - * not have an info_type, the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * Type of information the likelihood threshold applies to. Only one - * likelihood per info_type should be provided. If InfoTypeLikelihood does - * not have an info_type, the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Only returns findings equal to or above this threshold. This field is - * required or else the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @return int - */ - public function getMinLikelihood() - { - return $this->min_likelihood; - } - - /** - * Only returns findings equal to or above this threshold. This field is - * required or else the configuration fails. - * - * Generated from protobuf field .google.privacy.dlp.v2.Likelihood min_likelihood = 2; - * @param int $var - * @return $this - */ - public function setMinLikelihood($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\Likelihood::class); - $this->min_likelihood = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InfoTypeLikelihood::class, \Google\Cloud\Dlp\V2\InspectConfig_InfoTypeLikelihood::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php deleted file mode 100644 index 3f162eeb36e0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentRequest.php +++ /dev/null @@ -1,287 +0,0 @@ -google.privacy.dlp.v2.InspectContentRequest - */ -class InspectContentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Configuration for the inspector. What specified here will override - * the template referenced by the inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - */ - protected $inspect_config = null; - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 3; - */ - protected $item = null; - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 4; - */ - protected $inspect_template_name = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - */ - protected $location_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * Configuration for the inspector. What specified here will override - * the template referenced by the inspect_template_name argument. - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The item to inspect. - * @type string $inspect_template_name - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Configuration for the inspector. What specified here will override - * the template referenced by the inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * Configuration for the inspector. What specified here will override - * the template referenced by the inspect_template_name argument. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 3; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The item to inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 3; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 4; - * @return string - */ - public function getInspectTemplateName() - { - return $this->inspect_template_name; - } - - /** - * Template to use. Any configuration directly specified in - * inspect_config will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 4; - * @param string $var - * @return $this - */ - public function setInspectTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template_name = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php deleted file mode 100644 index 1bb36f9c611f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectContentResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.InspectContentResponse - */ -class InspectContentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult result = 1; - */ - protected $result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InspectResult $result - * The findings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult result = 1; - * @return \Google\Cloud\Dlp\V2\InspectResult|null - */ - public function getResult() - { - return $this->result; - } - - public function hasResult() - { - return isset($this->result); - } - - public function clearResult() - { - unset($this->result); - } - - /** - * The findings. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult result = 1; - * @param \Google\Cloud\Dlp\V2\InspectResult $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectResult::class); - $this->result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php deleted file mode 100644 index 4c234301fb6e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.InspectDataSourceDetails - */ -class InspectDataSourceDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2; - */ - protected $requested_options = null; - /** - * A summary of the outcome of this inspection job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3; - */ - protected $result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions $requested_options - * The configuration used for this job. - * @type \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result $result - * A summary of the outcome of this inspection job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2; - * @return \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions|null - */ - public function getRequestedOptions() - { - return $this->requested_options; - } - - public function hasRequestedOptions() - { - return isset($this->requested_options); - } - - public function clearRequestedOptions() - { - unset($this->requested_options); - } - - /** - * The configuration used for this job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions requested_options = 2; - * @param \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions $var - * @return $this - */ - public function setRequestedOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectDataSourceDetails\RequestedOptions::class); - $this->requested_options = $var; - - return $this; - } - - /** - * A summary of the outcome of this inspection job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3; - * @return \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result|null - */ - public function getResult() - { - return $this->result; - } - - public function hasResult() - { - return isset($this->result); - } - - public function clearResult() - { - unset($this->result); - } - - /** - * A summary of the outcome of this inspection job. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectDataSourceDetails.Result result = 3; - * @param \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectDataSourceDetails\Result::class); - $this->result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php deleted file mode 100644 index c0e230424154..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/RequestedOptions.php +++ /dev/null @@ -1,128 +0,0 @@ -google.privacy.dlp.v2.InspectDataSourceDetails.RequestedOptions - */ -class RequestedOptions extends \Google\Protobuf\Internal\Message -{ - /** - * If run with an InspectTemplate, a snapshot of its state at the time of - * this run. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1; - */ - protected $snapshot_inspect_template = null; - /** - * Inspect config. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig job_config = 3; - */ - protected $job_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InspectTemplate $snapshot_inspect_template - * If run with an InspectTemplate, a snapshot of its state at the time of - * this run. - * @type \Google\Cloud\Dlp\V2\InspectJobConfig $job_config - * Inspect config. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * If run with an InspectTemplate, a snapshot of its state at the time of - * this run. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1; - * @return \Google\Cloud\Dlp\V2\InspectTemplate|null - */ - public function getSnapshotInspectTemplate() - { - return $this->snapshot_inspect_template; - } - - public function hasSnapshotInspectTemplate() - { - return isset($this->snapshot_inspect_template); - } - - public function clearSnapshotInspectTemplate() - { - unset($this->snapshot_inspect_template); - } - - /** - * If run with an InspectTemplate, a snapshot of its state at the time of - * this run. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate snapshot_inspect_template = 1; - * @param \Google\Cloud\Dlp\V2\InspectTemplate $var - * @return $this - */ - public function setSnapshotInspectTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectTemplate::class); - $this->snapshot_inspect_template = $var; - - return $this; - } - - /** - * Inspect config. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig job_config = 3; - * @return \Google\Cloud\Dlp\V2\InspectJobConfig|null - */ - public function getJobConfig() - { - return $this->job_config; - } - - public function hasJobConfig() - { - return isset($this->job_config); - } - - public function clearJobConfig() - { - unset($this->job_config); - } - - /** - * Inspect config. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig job_config = 3; - * @param \Google\Cloud\Dlp\V2\InspectJobConfig $var - * @return $this - */ - public function setJobConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectJobConfig::class); - $this->job_config = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RequestedOptions::class, \Google\Cloud\Dlp\V2\InspectDataSourceDetails_RequestedOptions::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php deleted file mode 100644 index 45e94c9da3c8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectDataSourceDetails/Result.php +++ /dev/null @@ -1,224 +0,0 @@ -google.privacy.dlp.v2.InspectDataSourceDetails.Result - */ -class Result extends \Google\Protobuf\Internal\Message -{ - /** - * Total size in bytes that were processed. - * - * Generated from protobuf field int64 processed_bytes = 1; - */ - protected $processed_bytes = 0; - /** - * Estimate of the number of bytes to process. - * - * Generated from protobuf field int64 total_estimated_bytes = 2; - */ - protected $total_estimated_bytes = 0; - /** - * Statistics of how many instances of each info type were found during - * inspect job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3; - */ - private $info_type_stats; - /** - * Number of rows scanned after sampling and time filtering (applicable for - * row based stores such as BigQuery). - * - * Generated from protobuf field int64 num_rows_processed = 5; - */ - protected $num_rows_processed = 0; - /** - * Statistics related to the processing of hybrid inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; - */ - protected $hybrid_stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $processed_bytes - * Total size in bytes that were processed. - * @type int|string $total_estimated_bytes - * Estimate of the number of bytes to process. - * @type array<\Google\Cloud\Dlp\V2\InfoTypeStats>|\Google\Protobuf\Internal\RepeatedField $info_type_stats - * Statistics of how many instances of each info type were found during - * inspect job. - * @type int|string $num_rows_processed - * Number of rows scanned after sampling and time filtering (applicable for - * row based stores such as BigQuery). - * @type \Google\Cloud\Dlp\V2\HybridInspectStatistics $hybrid_stats - * Statistics related to the processing of hybrid inspect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Total size in bytes that were processed. - * - * Generated from protobuf field int64 processed_bytes = 1; - * @return int|string - */ - public function getProcessedBytes() - { - return $this->processed_bytes; - } - - /** - * Total size in bytes that were processed. - * - * Generated from protobuf field int64 processed_bytes = 1; - * @param int|string $var - * @return $this - */ - public function setProcessedBytes($var) - { - GPBUtil::checkInt64($var); - $this->processed_bytes = $var; - - return $this; - } - - /** - * Estimate of the number of bytes to process. - * - * Generated from protobuf field int64 total_estimated_bytes = 2; - * @return int|string - */ - public function getTotalEstimatedBytes() - { - return $this->total_estimated_bytes; - } - - /** - * Estimate of the number of bytes to process. - * - * Generated from protobuf field int64 total_estimated_bytes = 2; - * @param int|string $var - * @return $this - */ - public function setTotalEstimatedBytes($var) - { - GPBUtil::checkInt64($var); - $this->total_estimated_bytes = $var; - - return $this; - } - - /** - * Statistics of how many instances of each info type were found during - * inspect job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInfoTypeStats() - { - return $this->info_type_stats; - } - - /** - * Statistics of how many instances of each info type were found during - * inspect job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeStats info_type_stats = 3; - * @param array<\Google\Cloud\Dlp\V2\InfoTypeStats>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInfoTypeStats($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeStats::class); - $this->info_type_stats = $arr; - - return $this; - } - - /** - * Number of rows scanned after sampling and time filtering (applicable for - * row based stores such as BigQuery). - * - * Generated from protobuf field int64 num_rows_processed = 5; - * @return int|string - */ - public function getNumRowsProcessed() - { - return $this->num_rows_processed; - } - - /** - * Number of rows scanned after sampling and time filtering (applicable for - * row based stores such as BigQuery). - * - * Generated from protobuf field int64 num_rows_processed = 5; - * @param int|string $var - * @return $this - */ - public function setNumRowsProcessed($var) - { - GPBUtil::checkInt64($var); - $this->num_rows_processed = $var; - - return $this; - } - - /** - * Statistics related to the processing of hybrid inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; - * @return \Google\Cloud\Dlp\V2\HybridInspectStatistics|null - */ - public function getHybridStats() - { - return $this->hybrid_stats; - } - - public function hasHybridStats() - { - return isset($this->hybrid_stats); - } - - public function clearHybridStats() - { - unset($this->hybrid_stats); - } - - /** - * Statistics related to the processing of hybrid inspect. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridInspectStatistics hybrid_stats = 7; - * @param \Google\Cloud\Dlp\V2\HybridInspectStatistics $var - * @return $this - */ - public function setHybridStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridInspectStatistics::class); - $this->hybrid_stats = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Result::class, \Google\Cloud\Dlp\V2\InspectDataSourceDetails_Result::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php deleted file mode 100644 index 3163d015f708..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectJobConfig.php +++ /dev/null @@ -1,197 +0,0 @@ -google.privacy.dlp.v2.InspectJobConfig - */ -class InspectJobConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig storage_config = 1; - */ - protected $storage_config = null; - /** - * How and what to scan for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - */ - protected $inspect_config = null; - /** - * If provided, will be used as the default for all values in InspectConfig. - * `inspect_config` will be merged into the values persisted as part of the - * template. - * - * Generated from protobuf field string inspect_template_name = 3; - */ - protected $inspect_template_name = ''; - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 4; - */ - private $actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\StorageConfig $storage_config - * The data to scan. - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * How and what to scan for. - * @type string $inspect_template_name - * If provided, will be used as the default for all values in InspectConfig. - * `inspect_config` will be merged into the values persisted as part of the - * template. - * @type array<\Google\Cloud\Dlp\V2\Action>|\Google\Protobuf\Internal\RepeatedField $actions - * Actions to execute at the completion of the job. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig storage_config = 1; - * @return \Google\Cloud\Dlp\V2\StorageConfig|null - */ - public function getStorageConfig() - { - return $this->storage_config; - } - - public function hasStorageConfig() - { - return isset($this->storage_config); - } - - public function clearStorageConfig() - { - unset($this->storage_config); - } - - /** - * The data to scan. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig storage_config = 1; - * @param \Google\Cloud\Dlp\V2\StorageConfig $var - * @return $this - */ - public function setStorageConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StorageConfig::class); - $this->storage_config = $var; - - return $this; - } - - /** - * How and what to scan for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * How and what to scan for. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * If provided, will be used as the default for all values in InspectConfig. - * `inspect_config` will be merged into the values persisted as part of the - * template. - * - * Generated from protobuf field string inspect_template_name = 3; - * @return string - */ - public function getInspectTemplateName() - { - return $this->inspect_template_name; - } - - /** - * If provided, will be used as the default for all values in InspectConfig. - * `inspect_config` will be merged into the values persisted as part of the - * template. - * - * Generated from protobuf field string inspect_template_name = 3; - * @param string $var - * @return $this - */ - public function setInspectTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template_name = $var; - - return $this; - } - - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActions() - { - return $this->actions; - } - - /** - * Actions to execute at the completion of the job. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 4; - * @param array<\Google\Cloud\Dlp\V2\Action>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Action::class); - $this->actions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php deleted file mode 100644 index b929d0e4e696..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectResult.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.InspectResult - */ -class InspectResult extends \Google\Protobuf\Internal\Message -{ - /** - * List of findings for an item. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; - */ - private $findings; - /** - * If true, then this item might have more findings than were returned, - * and the findings returned are an arbitrary subset of all findings. - * The findings list might be truncated because the input items were too - * large, or because the server reached the maximum amount of resources - * allowed for a single API call. For best results, divide the input into - * smaller batches. - * - * Generated from protobuf field bool findings_truncated = 2; - */ - protected $findings_truncated = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\Finding>|\Google\Protobuf\Internal\RepeatedField $findings - * List of findings for an item. - * @type bool $findings_truncated - * If true, then this item might have more findings than were returned, - * and the findings returned are an arbitrary subset of all findings. - * The findings list might be truncated because the input items were too - * large, or because the server reached the maximum amount of resources - * allowed for a single API call. For best results, divide the input into - * smaller batches. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of findings for an item. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFindings() - { - return $this->findings; - } - - /** - * List of findings for an item. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Finding findings = 1; - * @param array<\Google\Cloud\Dlp\V2\Finding>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFindings($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Finding::class); - $this->findings = $arr; - - return $this; - } - - /** - * If true, then this item might have more findings than were returned, - * and the findings returned are an arbitrary subset of all findings. - * The findings list might be truncated because the input items were too - * large, or because the server reached the maximum amount of resources - * allowed for a single API call. For best results, divide the input into - * smaller batches. - * - * Generated from protobuf field bool findings_truncated = 2; - * @return bool - */ - public function getFindingsTruncated() - { - return $this->findings_truncated; - } - - /** - * If true, then this item might have more findings than were returned, - * and the findings returned are an arbitrary subset of all findings. - * The findings list might be truncated because the input items were too - * large, or because the server reached the maximum amount of resources - * allowed for a single API call. For best results, divide the input into - * smaller batches. - * - * Generated from protobuf field bool findings_truncated = 2; - * @param bool $var - * @return $this - */ - public function setFindingsTruncated($var) - { - GPBUtil::checkBool($var); - $this->findings_truncated = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php deleted file mode 100644 index 9dec2b293b5f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectTemplate.php +++ /dev/null @@ -1,283 +0,0 @@ -google.privacy.dlp.v2.InspectTemplate - */ -class InspectTemplate extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Display name (max 256 chars). - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * The core content of the template. Configuration of the scanning process. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 6; - */ - protected $inspect_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; - * @type string $display_name - * Display name (max 256 chars). - * @type string $description - * Short description (max 256 chars). - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation timestamp of an inspectTemplate. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last update timestamp of an inspectTemplate. - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * The core content of the template. Configuration of the scanning process. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_ID`; - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The template name. - * The template will have one of the following formats: - * `projects/PROJECT_ID/inspectTemplates/TEMPLATE_ID` OR - * `organizations/ORGANIZATION_ID/inspectTemplates/TEMPLATE_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 (max 256 chars). - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name (max 256 chars). - * - * 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; - } - - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Short description (max 256 chars). - * - * Generated from protobuf field string description = 3; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last update timestamp of an inspectTemplate. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The core content of the template. Configuration of the scanning process. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 6; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * The core content of the template. Configuration of the scanning process. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 6; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php deleted file mode 100644 index a1854d0497c6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRule.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.InspectionRule - */ -class InspectionRule extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $hotword_rule - * Hotword-based detection rule. - * @type \Google\Cloud\Dlp\V2\ExclusionRule $exclusion_rule - * Exclusion rule. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Hotword-based detection rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule|null - */ - public function getHotwordRule() - { - return $this->readOneof(1); - } - - public function hasHotwordRule() - { - return $this->hasOneof(1); - } - - /** - * Hotword-based detection rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.DetectionRule.HotwordRule hotword_rule = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule $var - * @return $this - */ - public function setHotwordRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\DetectionRule\HotwordRule::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Exclusion rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; - * @return \Google\Cloud\Dlp\V2\ExclusionRule|null - */ - public function getExclusionRule() - { - return $this->readOneof(2); - } - - public function hasExclusionRule() - { - return $this->hasOneof(2); - } - - /** - * Exclusion rule. - * - * Generated from protobuf field .google.privacy.dlp.v2.ExclusionRule exclusion_rule = 2; - * @param \Google\Cloud\Dlp\V2\ExclusionRule $var - * @return $this - */ - public function setExclusionRule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ExclusionRule::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php deleted file mode 100644 index 5ee0f98dd54b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/InspectionRuleSet.php +++ /dev/null @@ -1,102 +0,0 @@ -google.privacy.dlp.v2.InspectionRuleSet - */ -class InspectionRuleSet extends \Google\Protobuf\Internal\Message -{ - /** - * List of infoTypes this rule set is applied to. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - */ - private $info_types; - /** - * Set of rules to be applied to infoTypes. The rules are applied in order. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRule rules = 2; - */ - private $rules; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $info_types - * List of infoTypes this rule set is applied to. - * @type array<\Google\Cloud\Dlp\V2\InspectionRule>|\Google\Protobuf\Internal\RepeatedField $rules - * Set of rules to be applied to infoTypes. The rules are applied in order. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of infoTypes this rule set is applied to. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * List of infoTypes this rule set is applied to. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoType info_types = 1; - * @param array<\Google\Cloud\Dlp\V2\InfoType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_types = $arr; - - return $this; - } - - /** - * Set of rules to be applied to infoTypes. The rules are applied in order. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRule rules = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRules() - { - return $this->rules; - } - - /** - * Set of rules to be applied to infoTypes. The rules are applied in order. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectionRule rules = 2; - * @param array<\Google\Cloud\Dlp\V2\InspectionRule>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRules($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectionRule::class); - $this->rules = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php deleted file mode 100644 index d09ba0071108..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger.php +++ /dev/null @@ -1,442 +0,0 @@ -google.privacy.dlp.v2.JobTrigger - */ -class JobTrigger extends \Google\Protobuf\Internal\Message -{ - /** - * Unique resource name for the triggeredJob, assigned by the service when the - * triggeredJob is created, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Display name (max 100 chars) - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * User provided description (max 256 chars) - * - * Generated from protobuf field string description = 3; - */ - protected $description = ''; - /** - * A list of triggers which will be OR'ed together. Only one in the list - * needs to trigger for a job to be started. The list may contain only - * a single Schedule trigger and must have at least one object. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5; - */ - private $triggers; - /** - * Output only. A stream of errors encountered when the trigger was activated. - * Repeated errors may result in the JobTrigger automatically being paused. - * Will return the last 100 errors. Whenever the JobTrigger is modified - * this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $errors; - /** - * Output only. The creation timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last update timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Output only. The timestamp of the last time this trigger executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $last_run_time = null; - /** - * Required. A status for this trigger. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $status = 0; - protected $job; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Unique resource name for the triggeredJob, assigned by the service when the - * triggeredJob is created, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * @type string $display_name - * Display name (max 100 chars) - * @type string $description - * User provided description (max 256 chars) - * @type \Google\Cloud\Dlp\V2\InspectJobConfig $inspect_job - * For inspect jobs, a snapshot of the configuration. - * @type array<\Google\Cloud\Dlp\V2\JobTrigger\Trigger>|\Google\Protobuf\Internal\RepeatedField $triggers - * A list of triggers which will be OR'ed together. Only one in the list - * needs to trigger for a job to be started. The list may contain only - * a single Schedule trigger and must have at least one object. - * @type array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $errors - * Output only. A stream of errors encountered when the trigger was activated. - * Repeated errors may result in the JobTrigger automatically being paused. - * Will return the last 100 errors. Whenever the JobTrigger is modified - * this list will be cleared. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation timestamp of a triggeredJob. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last update timestamp of a triggeredJob. - * @type \Google\Protobuf\Timestamp $last_run_time - * Output only. The timestamp of the last time this trigger executed. - * @type int $status - * Required. A status for this trigger. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Unique resource name for the triggeredJob, assigned by the service when the - * triggeredJob is created, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Unique resource name for the triggeredJob, assigned by the service when the - * triggeredJob is created, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * 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 (max 100 chars) - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name (max 100 chars) - * - * Generated from protobuf field string display_name = 2; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * User provided description (max 256 chars) - * - * Generated from protobuf field string description = 3; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * User provided description (max 256 chars) - * - * 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; - } - - /** - * For inspect jobs, a snapshot of the configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 4; - * @return \Google\Cloud\Dlp\V2\InspectJobConfig|null - */ - public function getInspectJob() - { - return $this->readOneof(4); - } - - public function hasInspectJob() - { - return $this->hasOneof(4); - } - - /** - * For inspect jobs, a snapshot of the configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectJobConfig inspect_job = 4; - * @param \Google\Cloud\Dlp\V2\InspectJobConfig $var - * @return $this - */ - public function setInspectJob($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectJobConfig::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A list of triggers which will be OR'ed together. Only one in the list - * needs to trigger for a job to be started. The list may contain only - * a single Schedule trigger and must have at least one object. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTriggers() - { - return $this->triggers; - } - - /** - * A list of triggers which will be OR'ed together. Only one in the list - * needs to trigger for a job to be started. The list may contain only - * a single Schedule trigger and must have at least one object. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger.Trigger triggers = 5; - * @param array<\Google\Cloud\Dlp\V2\JobTrigger\Trigger>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTriggers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\JobTrigger\Trigger::class); - $this->triggers = $arr; - - return $this; - } - - /** - * Output only. A stream of errors encountered when the trigger was activated. - * Repeated errors may result in the JobTrigger automatically being paused. - * Will return the last 100 errors. Whenever the JobTrigger is modified - * this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Output only. A stream of errors encountered when the trigger was activated. - * Repeated errors may result in the JobTrigger automatically being paused. - * Will return the last 100 errors. Whenever the JobTrigger is modified - * this list will be cleared. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * Output only. The creation timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last update timestamp of a triggeredJob. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last update timestamp of a triggeredJob. - * - * 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 timestamp of the last time this trigger executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastRunTime() - { - return $this->last_run_time; - } - - public function hasLastRunTime() - { - return isset($this->last_run_time); - } - - public function clearLastRunTime() - { - unset($this->last_run_time); - } - - /** - * Output only. The timestamp of the last time this trigger executed. - * - * Generated from protobuf field .google.protobuf.Timestamp last_run_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastRunTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_run_time = $var; - - return $this; - } - - /** - * Required. A status for this trigger. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * Required. A status for this trigger. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger.Status status = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\JobTrigger\Status::class); - $this->status = $var; - - return $this; - } - - /** - * @return string - */ - public function getJob() - { - return $this->whichOneof("job"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php deleted file mode 100644 index aa040ce1b3a4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Status.php +++ /dev/null @@ -1,74 +0,0 @@ -google.privacy.dlp.v2.JobTrigger.Status - */ -class Status -{ - /** - * Unused. - * - * Generated from protobuf enum STATUS_UNSPECIFIED = 0; - */ - const STATUS_UNSPECIFIED = 0; - /** - * Trigger is healthy. - * - * Generated from protobuf enum HEALTHY = 1; - */ - const HEALTHY = 1; - /** - * Trigger is temporarily paused. - * - * Generated from protobuf enum PAUSED = 2; - */ - const PAUSED = 2; - /** - * Trigger is cancelled and can not be resumed. - * - * Generated from protobuf enum CANCELLED = 3; - */ - const CANCELLED = 3; - - private static $valueToName = [ - self::STATUS_UNSPECIFIED => 'STATUS_UNSPECIFIED', - self::HEALTHY => 'HEALTHY', - self::PAUSED => 'PAUSED', - self::CANCELLED => '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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Status::class, \Google\Cloud\Dlp\V2\JobTrigger_Status::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php deleted file mode 100644 index fc12ffebbe29..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/JobTrigger/Trigger.php +++ /dev/null @@ -1,111 +0,0 @@ -google.privacy.dlp.v2.JobTrigger.Trigger - */ -class Trigger extends \Google\Protobuf\Internal\Message -{ - protected $trigger; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Schedule $schedule - * Create a job on a repeating basis based on the elapse of time. - * @type \Google\Cloud\Dlp\V2\Manual $manual - * For use with hybrid jobs. Jobs must be manually created and finished. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Create a job on a repeating basis based on the elapse of time. - * - * Generated from protobuf field .google.privacy.dlp.v2.Schedule schedule = 1; - * @return \Google\Cloud\Dlp\V2\Schedule|null - */ - public function getSchedule() - { - return $this->readOneof(1); - } - - public function hasSchedule() - { - return $this->hasOneof(1); - } - - /** - * Create a job on a repeating basis based on the elapse of time. - * - * Generated from protobuf field .google.privacy.dlp.v2.Schedule schedule = 1; - * @param \Google\Cloud\Dlp\V2\Schedule $var - * @return $this - */ - public function setSchedule($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Schedule::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * For use with hybrid jobs. Jobs must be manually created and finished. - * - * Generated from protobuf field .google.privacy.dlp.v2.Manual manual = 2; - * @return \Google\Cloud\Dlp\V2\Manual|null - */ - public function getManual() - { - return $this->readOneof(2); - } - - public function hasManual() - { - return $this->hasOneof(2); - } - - /** - * For use with hybrid jobs. Jobs must be manually created and finished. - * - * Generated from protobuf field .google.privacy.dlp.v2.Manual manual = 2; - * @param \Google\Cloud\Dlp\V2\Manual $var - * @return $this - */ - public function setManual($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Manual::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getTrigger() - { - return $this->whichOneof("trigger"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Trigger::class, \Google\Cloud\Dlp\V2\JobTrigger_Trigger::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php deleted file mode 100644 index e21d17e612db..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key.php +++ /dev/null @@ -1,150 +0,0 @@ -google.privacy.dlp.v2.Key - */ -class Key extends \Google\Protobuf\Internal\Message -{ - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - */ - protected $partition_id = null; - /** - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * A path can never be empty, and a path can have at most 100 elements. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Key.PathElement path = 2; - */ - private $path; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PartitionId $partition_id - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * @type array<\Google\Cloud\Dlp\V2\Key\PathElement>|\Google\Protobuf\Internal\RepeatedField $path - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * A path can never be empty, and a path can have at most 100 elements. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - * @return \Google\Cloud\Dlp\V2\PartitionId|null - */ - public function getPartitionId() - { - return $this->partition_id; - } - - public function hasPartitionId() - { - return isset($this->partition_id); - } - - public function clearPartitionId() - { - unset($this->partition_id); - } - - /** - * Entities are partitioned into subsets, currently identified by a project - * ID and namespace ID. - * Queries are scoped to a single partition. - * - * Generated from protobuf field .google.privacy.dlp.v2.PartitionId partition_id = 1; - * @param \Google\Cloud\Dlp\V2\PartitionId $var - * @return $this - */ - public function setPartitionId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PartitionId::class); - $this->partition_id = $var; - - return $this; - } - - /** - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * A path can never be empty, and a path can have at most 100 elements. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Key.PathElement path = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPath() - { - return $this->path; - } - - /** - * The entity path. - * An entity path consists of one or more elements composed of a kind and a - * string or numerical identifier, which identify entities. The first - * element identifies a _root entity_, the second element identifies - * a _child_ of the root entity, the third element identifies a child of the - * second entity, and so forth. The entities identified by all prefixes of - * the path are called the element's _ancestors_. - * A path can never be empty, and a path can have at most 100 elements. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Key.PathElement path = 2; - * @param array<\Google\Cloud\Dlp\V2\Key\PathElement>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPath($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Key\PathElement::class); - $this->path = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php deleted file mode 100644 index 6850456e3a22..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Key/PathElement.php +++ /dev/null @@ -1,174 +0,0 @@ -google.privacy.dlp.v2.Key.PathElement - */ -class PathElement extends \Google\Protobuf\Internal\Message -{ - /** - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * - * Generated from protobuf field string kind = 1; - */ - protected $kind = ''; - protected $id_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $kind - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * @type int|string $id - * The auto-allocated ID of the entity. - * Never equal to zero. Values less than zero are discouraged and may not - * be supported in the future. - * @type string $name - * The name of the entity. - * A name matching regex `__.*__` is reserved/read-only. - * A name must not be more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * - * Generated from protobuf field string kind = 1; - * @return string - */ - public function getKind() - { - return $this->kind; - } - - /** - * The kind of the entity. - * A kind matching regex `__.*__` is reserved/read-only. - * A kind must not contain more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * - * Generated from protobuf field string kind = 1; - * @param string $var - * @return $this - */ - public function setKind($var) - { - GPBUtil::checkString($var, True); - $this->kind = $var; - - return $this; - } - - /** - * The auto-allocated ID of the entity. - * Never equal to zero. Values less than zero are discouraged and may not - * be supported in the future. - * - * Generated from protobuf field int64 id = 2; - * @return int|string - */ - public function getId() - { - return $this->readOneof(2); - } - - public function hasId() - { - return $this->hasOneof(2); - } - - /** - * The auto-allocated ID of the entity. - * Never equal to zero. Values less than zero are discouraged and may not - * be supported in the future. - * - * Generated from protobuf field int64 id = 2; - * @param int|string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The name of the entity. - * A name matching regex `__.*__` is reserved/read-only. - * A name must not be more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * - * Generated from protobuf field string name = 3; - * @return string - */ - public function getName() - { - return $this->readOneof(3); - } - - public function hasName() - { - return $this->hasOneof(3); - } - - /** - * The name of the entity. - * A name matching regex `__.*__` is reserved/read-only. - * A name must not be more than 1500 bytes when UTF-8 encoded. - * Cannot be `""`. - * - * Generated from protobuf field string name = 3; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getIdType() - { - return $this->whichOneof("id_type"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PathElement::class, \Google\Cloud\Dlp\V2\Key_PathElement::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php deleted file mode 100644 index 76d319fa474f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KindExpression.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.KindExpression - */ -class KindExpression extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the kind. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the kind. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The name of the kind. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the kind. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php deleted file mode 100644 index 19894467aa2e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/KmsWrappedCryptoKey.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.KmsWrappedCryptoKey - */ -class KmsWrappedCryptoKey extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The wrapped data crypto key. - * - * Generated from protobuf field bytes wrapped_key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $wrapped_key = ''; - /** - * Required. The resource name of the KMS CryptoKey to use for unwrapping. - * - * Generated from protobuf field string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $crypto_key_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $wrapped_key - * Required. The wrapped data crypto key. - * @type string $crypto_key_name - * Required. The resource name of the KMS CryptoKey to use for unwrapping. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The wrapped data crypto key. - * - * Generated from protobuf field bytes wrapped_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getWrappedKey() - { - return $this->wrapped_key; - } - - /** - * Required. The wrapped data crypto key. - * - * Generated from protobuf field bytes wrapped_key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setWrappedKey($var) - { - GPBUtil::checkString($var, False); - $this->wrapped_key = $var; - - return $this; - } - - /** - * Required. The resource name of the KMS CryptoKey to use for unwrapping. - * - * Generated from protobuf field string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCryptoKeyName() - { - return $this->crypto_key_name; - } - - /** - * Required. The resource name of the KMS CryptoKey to use for unwrapping. - * - * Generated from protobuf field string crypto_key_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCryptoKeyName($var) - { - GPBUtil::checkString($var, True); - $this->crypto_key_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php deleted file mode 100644 index 01eb8bd279ee..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryConfig.php +++ /dev/null @@ -1,169 +0,0 @@ -google.privacy.dlp.v2.LargeCustomDictionaryConfig - */ -class LargeCustomDictionaryConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Location to store dictionary artifacts in Cloud Storage. These files - * will only be accessible by project owners and the DLP API. If any of these - * artifacts are modified, the dictionary is considered invalid and can no - * longer be used. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath output_path = 1; - */ - protected $output_path = null; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CloudStoragePath $output_path - * Location to store dictionary artifacts in Cloud Storage. These files - * will only be accessible by project owners and the DLP API. If any of these - * artifacts are modified, the dictionary is considered invalid and can no - * longer be used. - * @type \Google\Cloud\Dlp\V2\CloudStorageFileSet $cloud_storage_file_set - * Set of files containing newline-delimited lists of dictionary phrases. - * @type \Google\Cloud\Dlp\V2\BigQueryField $big_query_field - * Field in a BigQuery table where each cell represents a dictionary phrase. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Location to store dictionary artifacts in Cloud Storage. These files - * will only be accessible by project owners and the DLP API. If any of these - * artifacts are modified, the dictionary is considered invalid and can no - * longer be used. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath output_path = 1; - * @return \Google\Cloud\Dlp\V2\CloudStoragePath|null - */ - public function getOutputPath() - { - return $this->output_path; - } - - public function hasOutputPath() - { - return isset($this->output_path); - } - - public function clearOutputPath() - { - unset($this->output_path); - } - - /** - * Location to store dictionary artifacts in Cloud Storage. These files - * will only be accessible by project owners and the DLP API. If any of these - * artifacts are modified, the dictionary is considered invalid and can no - * longer be used. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStoragePath output_path = 1; - * @param \Google\Cloud\Dlp\V2\CloudStoragePath $var - * @return $this - */ - public function setOutputPath($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStoragePath::class); - $this->output_path = $var; - - return $this; - } - - /** - * Set of files containing newline-delimited lists of dictionary phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageFileSet cloud_storage_file_set = 2; - * @return \Google\Cloud\Dlp\V2\CloudStorageFileSet|null - */ - public function getCloudStorageFileSet() - { - return $this->readOneof(2); - } - - public function hasCloudStorageFileSet() - { - return $this->hasOneof(2); - } - - /** - * Set of files containing newline-delimited lists of dictionary phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageFileSet cloud_storage_file_set = 2; - * @param \Google\Cloud\Dlp\V2\CloudStorageFileSet $var - * @return $this - */ - public function setCloudStorageFileSet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageFileSet::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Field in a BigQuery table where each cell represents a dictionary phrase. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryField big_query_field = 3; - * @return \Google\Cloud\Dlp\V2\BigQueryField|null - */ - public function getBigQueryField() - { - return $this->readOneof(3); - } - - public function hasBigQueryField() - { - return $this->hasOneof(3); - } - - /** - * Field in a BigQuery table where each cell represents a dictionary phrase. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryField big_query_field = 3; - * @param \Google\Cloud\Dlp\V2\BigQueryField $var - * @return $this - */ - public function setBigQueryField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryField::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php deleted file mode 100644 index 3e6a9284724e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/LargeCustomDictionaryStats.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.LargeCustomDictionaryStats - */ -class LargeCustomDictionaryStats extends \Google\Protobuf\Internal\Message -{ - /** - * Approximate number of distinct phrases in the dictionary. - * - * Generated from protobuf field int64 approx_num_phrases = 1; - */ - protected $approx_num_phrases = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $approx_num_phrases - * Approximate number of distinct phrases in the dictionary. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Approximate number of distinct phrases in the dictionary. - * - * Generated from protobuf field int64 approx_num_phrases = 1; - * @return int|string - */ - public function getApproxNumPhrases() - { - return $this->approx_num_phrases; - } - - /** - * Approximate number of distinct phrases in the dictionary. - * - * Generated from protobuf field int64 approx_num_phrases = 1; - * @param int|string $var - * @return $this - */ - public function setApproxNumPhrases($var) - { - GPBUtil::checkInt64($var); - $this->approx_num_phrases = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php deleted file mode 100644 index bcc9e96e6120..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Likelihood.php +++ /dev/null @@ -1,93 +0,0 @@ -google.privacy.dlp.v2.Likelihood - */ -class Likelihood -{ - /** - * Default value; same as POSSIBLE. - * - * Generated from protobuf enum LIKELIHOOD_UNSPECIFIED = 0; - */ - const LIKELIHOOD_UNSPECIFIED = 0; - /** - * Highest chance of a false positive. - * - * Generated from protobuf enum VERY_UNLIKELY = 1; - */ - const VERY_UNLIKELY = 1; - /** - * High chance of a false positive. - * - * Generated from protobuf enum UNLIKELY = 2; - */ - const UNLIKELY = 2; - /** - * Some matching signals. The default value. - * - * Generated from protobuf enum POSSIBLE = 3; - */ - const POSSIBLE = 3; - /** - * Low chance of a false positive. - * - * Generated from protobuf enum LIKELY = 4; - */ - const LIKELY = 4; - /** - * Confidence level is high. Lowest chance of a false positive. - * - * Generated from protobuf enum VERY_LIKELY = 5; - */ - const VERY_LIKELY = 5; - - private static $valueToName = [ - self::LIKELIHOOD_UNSPECIFIED => 'LIKELIHOOD_UNSPECIFIED', - self::VERY_UNLIKELY => 'VERY_UNLIKELY', - self::UNLIKELY => 'UNLIKELY', - self::POSSIBLE => 'POSSIBLE', - self::LIKELY => 'LIKELY', - self::VERY_LIKELY => 'VERY_LIKELY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php deleted file mode 100644 index 7eb277e41cb4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesRequest.php +++ /dev/null @@ -1,387 +0,0 @@ -google.privacy.dlp.v2.ListColumnDataProfilesRequest - */ -class ListColumnDataProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a column is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `table_data_profile_name` - The name of the related table data - * profile. - * - `project_id` - The Google Cloud project ID. (REQUIRED) - * - `dataset_id` - The BigQuery dataset ID. (REQUIRED) - * - `table_id` - The BigQuery table ID. (REQUIRED) - * - `field_id` - The ID of the BigQuery field. - * - `info_type` - The infotype detected in the resource. - * - `sensitivity_level` - HIGH|MEDIUM|LOW - * - `data_risk_level`: How much risk is associated with this data. - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` for project_id, dataset_id, and table_id. Other - * filters also support `!=`. - * Examples: - * * project_id = 12345 AND status_code = 1 - * * project_id = 12345 AND sensitivity_level = HIGH - * * project_id = 12345 AND info_type = STREET_ADDRESS - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. Please see - * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListColumnDataProfilesRequest - * - * @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 organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * @type string $page_token - * Page token to continue retrieval. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a column is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * @type string $filter - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `table_data_profile_name` - The name of the related table data - * profile. - * - `project_id` - The Google Cloud project ID. (REQUIRED) - * - `dataset_id` - The BigQuery dataset ID. (REQUIRED) - * - `table_id` - The BigQuery table ID. (REQUIRED) - * - `field_id` - The ID of the BigQuery field. - * - `info_type` - The infotype detected in the resource. - * - `sensitivity_level` - HIGH|MEDIUM|LOW - * - `data_risk_level`: How much risk is associated with this data. - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` for project_id, dataset_id, and table_id. Other - * filters also support `!=`. - * Examples: - * * project_id = 12345 AND status_code = 1 - * * project_id = 12345 AND sensitivity_level = HIGH - * * project_id = 12345 AND info_type = STREET_ADDRESS - * The length of this field should be no more than 500 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated 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 organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * 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; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a column is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a column is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `table_data_profile_name` - The name of the related table data - * profile. - * - `project_id` - The Google Cloud project ID. (REQUIRED) - * - `dataset_id` - The BigQuery dataset ID. (REQUIRED) - * - `table_id` - The BigQuery table ID. (REQUIRED) - * - `field_id` - The ID of the BigQuery field. - * - `info_type` - The infotype detected in the resource. - * - `sensitivity_level` - HIGH|MEDIUM|LOW - * - `data_risk_level`: How much risk is associated with this data. - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` for project_id, dataset_id, and table_id. Other - * filters also support `!=`. - * Examples: - * * project_id = 12345 AND status_code = 1 - * * project_id = 12345 AND sensitivity_level = HIGH - * * project_id = 12345 AND info_type = STREET_ADDRESS - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `table_data_profile_name` - The name of the related table data - * profile. - * - `project_id` - The Google Cloud project ID. (REQUIRED) - * - `dataset_id` - The BigQuery dataset ID. (REQUIRED) - * - `table_id` - The BigQuery table ID. (REQUIRED) - * - `field_id` - The ID of the BigQuery field. - * - `info_type` - The infotype detected in the resource. - * - `sensitivity_level` - HIGH|MEDIUM|LOW - * - `data_risk_level`: How much risk is associated with this data. - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` for project_id, dataset_id, and table_id. Other - * filters also support `!=`. - * Examples: - * * project_id = 12345 AND status_code = 1 - * * project_id = 12345 AND sensitivity_level = HIGH - * * project_id = 12345 AND info_type = STREET_ADDRESS - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php deleted file mode 100644 index 81fea408c64d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListColumnDataProfilesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.ListColumnDataProfilesResponse - */ -class ListColumnDataProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; - */ - private $column_data_profiles; - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\ColumnDataProfile>|\Google\Protobuf\Internal\RepeatedField $column_data_profiles - * List of data profiles. - * @type string $next_page_token - * The next page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getColumnDataProfiles() - { - return $this->column_data_profiles; - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ColumnDataProfile column_data_profiles = 1; - * @param array<\Google\Cloud\Dlp\V2\ColumnDataProfile>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setColumnDataProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ColumnDataProfile::class); - $this->column_data_profiles = $arr; - - return $this; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php deleted file mode 100644 index d95354bac67d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsRequest.php +++ /dev/null @@ -1,197 +0,0 @@ -google.privacy.dlp.v2.ListConnectionsRequest - */ -class ListConnectionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization or project, for - * example, `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Number of results per page, max 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the organization or project, for - * example, `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. Please see - * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListConnectionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Resource name of the organization or project, for - * example, `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * @type int $page_size - * Optional. Number of results per page, max 1000. - * @type string $page_token - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * @type string $filter - * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization or project, for - * example, `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated 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 organization or project, for - * example, `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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. Number of results per page, max 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Number of results per page, max 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. Page token from a previous page to return the next set of - * results. If set, all other request fields must match 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. Page token from a previous page to return the next set of - * results. If set, all other request fields must match 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; - } - - /** - * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Supported field/value: `state` - MISSING|AVAILABLE|ERROR - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php deleted file mode 100644 index a16148048980..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListConnectionsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.ListConnectionsResponse - */ -class ListConnectionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of connections. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - */ - private $connections; - /** - * Token to retrieve the next page of results. An empty value means there are - * no more 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\Dlp\V2\Connection>|\Google\Protobuf\Internal\RepeatedField $connections - * List of connections. - * @type string $next_page_token - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of connections. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConnections() - { - return $this->connections; - } - - /** - * List of connections. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - * @param array<\Google\Cloud\Dlp\V2\Connection>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConnections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Connection::class); - $this->connections = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * - * 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. An empty value means there are - * no more 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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php deleted file mode 100644 index ea7874cf52be..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesRequest.php +++ /dev/null @@ -1,340 +0,0 @@ -google.privacy.dlp.v2.ListDeidentifyTemplatesRequest - */ -class ListDeidentifyTemplatesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListDeidentifyTemplates`. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListDeidentifyTemplatesRequest - * - * @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 name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $page_token - * Page token to continue retrieval. Comes from the previous call - * to `ListDeidentifyTemplates`. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListDeidentifyTemplates`. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListDeidentifyTemplates`. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * 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; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php deleted file mode 100644 index 078648be7417..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDeidentifyTemplatesResponse.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.ListDeidentifyTemplatesResponse - */ -class ListDeidentifyTemplatesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of deidentify templates, up to page_size in - * ListDeidentifyTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DeidentifyTemplate deidentify_templates = 1; - */ - private $deidentify_templates; - /** - * If the next page is available then the next page token to be used in the - * following ListDeidentifyTemplates request. - * - * 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\Dlp\V2\DeidentifyTemplate>|\Google\Protobuf\Internal\RepeatedField $deidentify_templates - * List of deidentify templates, up to page_size in - * ListDeidentifyTemplatesRequest. - * @type string $next_page_token - * If the next page is available then the next page token to be used in the - * following ListDeidentifyTemplates request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of deidentify templates, up to page_size in - * ListDeidentifyTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DeidentifyTemplate deidentify_templates = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDeidentifyTemplates() - { - return $this->deidentify_templates; - } - - /** - * List of deidentify templates, up to page_size in - * ListDeidentifyTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DeidentifyTemplate deidentify_templates = 1; - * @param array<\Google\Cloud\Dlp\V2\DeidentifyTemplate>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeidentifyTemplates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->deidentify_templates = $arr; - - return $this; - } - - /** - * If the next page is available then the next page token to be used in the - * following ListDeidentifyTemplates request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If the next page is available then the next page token to be used in the - * following ListDeidentifyTemplates request. - * - * 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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php deleted file mode 100644 index d9c51a1b2b3b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsRequest.php +++ /dev/null @@ -1,256 +0,0 @@ -google.privacy.dlp.v2.ListDiscoveryConfigsRequest - */ -class ListDiscoveryConfigsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value is as follows: - * `projects/{project_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. Comes from the previous call - * to ListDiscoveryConfigs. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by a server. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of config fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - * - `name`: corresponds to the DiscoveryConfig's name. - * - `status`: corresponds to DiscoveryConfig's status. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value is as follows: - * `projects/{project_id}/locations/{location_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListDiscoveryConfigsRequest - * - * @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 name. - * The format of this value is as follows: - * `projects/{project_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $page_token - * Page token to continue retrieval. Comes from the previous call - * to ListDiscoveryConfigs. `order_by` field must not - * change for subsequent calls. - * @type int $page_size - * Size of the page. This value can be limited by a server. - * @type string $order_by - * Comma-separated list of config fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - * - `name`: corresponds to the DiscoveryConfig's name. - * - `status`: corresponds to DiscoveryConfig's status. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value is as follows: - * `projects/{project_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value is as follows: - * `projects/{project_id}/locations/{location_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to ListDiscoveryConfigs. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to ListDiscoveryConfigs. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by a server. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by a server. - * - * 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; - } - - /** - * Comma-separated list of config fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - * - `name`: corresponds to the DiscoveryConfig's name. - * - `status`: corresponds to DiscoveryConfig's status. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of config fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `last_run_time`: corresponds to the last time the DiscoveryConfig ran. - * - `name`: corresponds to the DiscoveryConfig's name. - * - `status`: corresponds to DiscoveryConfig's status. - * - * Generated from protobuf field string order_by = 4; - * @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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php deleted file mode 100644 index 118594acf0b4..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDiscoveryConfigsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.ListDiscoveryConfigsResponse - */ -class ListDiscoveryConfigsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of configs, up to page_size in ListDiscoveryConfigsRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryConfig discovery_configs = 1; - */ - private $discovery_configs; - /** - * If the next page is available then this value is the next page token to be - * used in the following ListDiscoveryConfigs request. - * - * 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\Dlp\V2\DiscoveryConfig>|\Google\Protobuf\Internal\RepeatedField $discovery_configs - * List of configs, up to page_size in ListDiscoveryConfigsRequest. - * @type string $next_page_token - * If the next page is available then this value is the next page token to be - * used in the following ListDiscoveryConfigs request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of configs, up to page_size in ListDiscoveryConfigsRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryConfig discovery_configs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDiscoveryConfigs() - { - return $this->discovery_configs; - } - - /** - * List of configs, up to page_size in ListDiscoveryConfigsRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DiscoveryConfig discovery_configs = 1; - * @param array<\Google\Cloud\Dlp\V2\DiscoveryConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDiscoveryConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); - $this->discovery_configs = $arr; - - return $this; - } - - /** - * If the next page is available then this value is the next page token to be - * used in the following ListDiscoveryConfigs request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If the next page is available then this value is the next page token to be - * used in the following ListDiscoveryConfigs request. - * - * 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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php deleted file mode 100644 index ce2e85caabd9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsRequest.php +++ /dev/null @@ -1,468 +0,0 @@ -google.privacy.dlp.v2.ListDlpJobsRequest - */ -class ListDlpJobsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect jobs: - * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - `trigger_name` - The name of the trigger that created the job. - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * Supported fields for risk analysis jobs: - * - `state` - RUNNING|CANCELED|FINISHED|FAILED - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * The operator must be `=` or `!=`. - * Examples: - * * inspected_storage = cloud_storage AND state = done - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = done OR state = canceled) - * * end_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 1; - */ - protected $filter = ''; - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The standard list page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * The type of job. Defaults to `DlpJobType.INSPECT` - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 5; - */ - protected $type = 0; - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, end_time asc, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the job was created. - * - `end_time`: corresponds to the time the job ended. - * - `name`: corresponds to the job's name. - * - `state`: corresponds to `state` - * - * Generated from protobuf field string order_by = 6; - */ - protected $order_by = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::projectName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListDlpJobsRequest - * - * @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 name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $filter - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect jobs: - * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - `trigger_name` - The name of the trigger that created the job. - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * Supported fields for risk analysis jobs: - * - `state` - RUNNING|CANCELED|FINISHED|FAILED - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * The operator must be `=` or `!=`. - * Examples: - * * inspected_storage = cloud_storage AND state = done - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = done OR state = canceled) - * * end_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * @type int $page_size - * The standard list page size. - * @type string $page_token - * The standard list page token. - * @type int $type - * The type of job. Defaults to `DlpJobType.INSPECT` - * @type string $order_by - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, end_time asc, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the job was created. - * - `end_time`: corresponds to the time the job ended. - * - `name`: corresponds to the job's name. - * - `state`: corresponds to `state` - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect jobs: - * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - `trigger_name` - The name of the trigger that created the job. - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * Supported fields for risk analysis jobs: - * - `state` - RUNNING|CANCELED|FINISHED|FAILED - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * The operator must be `=` or `!=`. - * Examples: - * * inspected_storage = cloud_storage AND state = done - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = done OR state = canceled) - * * end_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 1; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect jobs: - * - `state` - PENDING|RUNNING|CANCELED|FINISHED|FAILED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - `trigger_name` - The name of the trigger that created the job. - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * Supported fields for risk analysis jobs: - * - `state` - RUNNING|CANCELED|FINISHED|FAILED - * - 'end_time` - Corresponds to the time the job finished. - * - 'start_time` - Corresponds to the time the job finished. - * * The operator must be `=` or `!=`. - * Examples: - * * inspected_storage = cloud_storage AND state = done - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = done OR state = canceled) - * * end_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 1; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The standard list page size. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The standard list 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 standard list page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The standard list 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; - } - - /** - * The type of job. Defaults to `DlpJobType.INSPECT` - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 5; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of job. Defaults to `DlpJobType.INSPECT` - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 5; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJobType::class); - $this->type = $var; - - return $this; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, end_time asc, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the job was created. - * - `end_time`: corresponds to the time the job ended. - * - `name`: corresponds to the job's name. - * - `state`: corresponds to `state` - * - * Generated from protobuf field string order_by = 6; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, end_time asc, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the job was created. - * - `end_time`: corresponds to the time the job ended. - * - `name`: corresponds to the job's name. - * - `state`: corresponds to `state` - * - * Generated from protobuf field string order_by = 6; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php deleted file mode 100644 index 62d9df6c8efb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListDlpJobsResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.ListDlpJobsResponse - */ -class ListDlpJobsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of DlpJobs that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DlpJob jobs = 1; - */ - private $jobs; - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\DlpJob>|\Google\Protobuf\Internal\RepeatedField $jobs - * A list of DlpJobs that matches the specified filter in the request. - * @type string $next_page_token - * The standard List next-page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A list of DlpJobs that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DlpJob jobs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getJobs() - { - return $this->jobs; - } - - /** - * A list of DlpJobs that matches the specified filter in the request. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.DlpJob jobs = 1; - * @param array<\Google\Cloud\Dlp\V2\DlpJob>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setJobs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\DlpJob::class); - $this->jobs = $arr; - - return $this; - } - - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The standard List next-page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php deleted file mode 100644 index 6b1c0b335452..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesRequest.php +++ /dev/null @@ -1,400 +0,0 @@ -google.privacy.dlp.v2.ListFileStoreDataProfilesRequest - */ -class ListFileStoreDataProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Size of the page. This value can be limited by the server. If - * zero, server returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Comma-separated list of fields to order by, followed by `asc` or - * `desc` postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `name` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `name`: The name of the profile. - * - `create_time`: The time the file store was first created. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `project_id` - The Google Cloud project ID. - * - `account_id` - The AWS account ID. - * - `file_store_path` - The path like "gs://bucket". - * - `data_source_type` - The profile's data source type, like - * "google/storage/bucket". - * - `data_storage_location` - The location where the file store's data is - * stored, like "us-central1". - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `file_store_path = "gs://mybucket"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. Please see - * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListFileStoreDataProfilesRequest - * - * @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 organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * @type string $page_token - * Optional. Page token to continue retrieval. - * @type int $page_size - * Optional. Size of the page. This value can be limited by the server. If - * zero, server returns a page of max size 100. - * @type string $order_by - * Optional. Comma-separated list of fields to order by, followed by `asc` or - * `desc` postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `name` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `name`: The name of the profile. - * - `create_time`: The time the file store was first created. - * @type string $filter - * Optional. Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `project_id` - The Google Cloud project ID. - * - `account_id` - The AWS account ID. - * - `file_store_path` - The path like "gs://bucket". - * - `data_source_type` - The profile's data source type, like - * "google/storage/bucket". - * - `data_storage_location` - The location where the file store's data is - * stored, like "us-central1". - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `file_store_path = "gs://mybucket"` - * The length of this field should be no more than 500 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated 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 organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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. Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Optional. Size of the page. This value can be limited by the server. If - * zero, server returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Size of the page. This value can be limited by the server. If - * zero, server returns a page of max size 100. - * - * 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. Comma-separated list of fields to order by, followed by `asc` or - * `desc` postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `name` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `name`: The name of the profile. - * - `create_time`: The time the file store was first created. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. Comma-separated list of fields to order by, followed by `asc` or - * `desc` postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `name` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `name`: The name of the profile. - * - `create_time`: The time the file store was first created. - * - * Generated from protobuf field string order_by = 4 [(.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. Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `project_id` - The Google Cloud project ID. - * - `account_id` - The AWS account ID. - * - `file_store_path` - The path like "gs://bucket". - * - `data_source_type` - The profile's data source type, like - * "google/storage/bucket". - * - `data_storage_location` - The location where the file store's data is - * stored, like "us-central1". - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `file_store_path = "gs://mybucket"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `project_id` - The Google Cloud project ID. - * - `account_id` - The AWS account ID. - * - `file_store_path` - The path like "gs://bucket". - * - `data_source_type` - The profile's data source type, like - * "google/storage/bucket". - * - `data_storage_location` - The location where the file store's data is - * stored, like "us-central1". - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * * `file_store_path = "gs://mybucket"` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php deleted file mode 100644 index 2aa436616369..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListFileStoreDataProfilesResponse.php +++ /dev/null @@ -1,102 +0,0 @@ -google.privacy.dlp.v2.ListFileStoreDataProfilesResponse - */ -class ListFileStoreDataProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; - */ - private $file_store_data_profiles; - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\FileStoreDataProfile>|\Google\Protobuf\Internal\RepeatedField $file_store_data_profiles - * List of data profiles. - * @type string $next_page_token - * The next page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFileStoreDataProfiles() - { - return $this->file_store_data_profiles; - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FileStoreDataProfile file_store_data_profiles = 1; - * @param array<\Google\Cloud\Dlp\V2\FileStoreDataProfile>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFileStoreDataProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FileStoreDataProfile::class); - $this->file_store_data_profiles = $arr; - - return $this; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php deleted file mode 100644 index 84e5afb8fbf6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.privacy.dlp.v2.ListInfoTypesRequest - */ -class ListInfoTypesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The parent resource name. - * The format of this value is as follows: - * `locations/{location_id}` - * - * Generated from protobuf field string parent = 4; - */ - protected $parent = ''; - /** - * BCP-47 language code for localized infoType friendly - * names. If omitted, or if localized strings are not available, - * en-US strings will be returned. - * - * Generated from protobuf field string language_code = 1; - */ - protected $language_code = ''; - /** - * filter to only return infoTypes supported by certain parts of the - * API. Defaults to supported_by=INSPECT. - * - * Generated from protobuf field string filter = 2; - */ - protected $filter = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 3; - */ - protected $location_id = ''; - - /** - * @param string $parent The parent resource name. - * - * The format of this value is as follows: - * - * `locations/{location_id}` - * - * @return \Google\Cloud\Dlp\V2\ListInfoTypesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * The parent resource name. - * The format of this value is as follows: - * `locations/{location_id}` - * @type string $language_code - * BCP-47 language code for localized infoType friendly - * names. If omitted, or if localized strings are not available, - * en-US strings will be returned. - * @type string $filter - * filter to only return infoTypes supported by certain parts of the - * API. Defaults to supported_by=INSPECT. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The parent resource name. - * The format of this value is as follows: - * `locations/{location_id}` - * - * Generated from protobuf field string parent = 4; - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * The parent resource name. - * The format of this value is as follows: - * `locations/{location_id}` - * - * Generated from protobuf field string parent = 4; - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * BCP-47 language code for localized infoType friendly - * names. If omitted, or if localized strings are not available, - * en-US strings will be returned. - * - * Generated from protobuf field string language_code = 1; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * BCP-47 language code for localized infoType friendly - * names. If omitted, or if localized strings are not available, - * en-US strings will be returned. - * - * Generated from protobuf field string language_code = 1; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * filter to only return infoTypes supported by certain parts of the - * API. Defaults to supported_by=INSPECT. - * - * Generated from protobuf field string filter = 2; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * filter to only return infoTypes supported by certain parts of the - * API. Defaults to supported_by=INSPECT. - * - * 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; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 3; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 3; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php deleted file mode 100644 index 38951fc4c7e2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInfoTypesResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.ListInfoTypesResponse - */ -class ListInfoTypesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Set of sensitive infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeDescription info_types = 1; - */ - private $info_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\InfoTypeDescription>|\Google\Protobuf\Internal\RepeatedField $info_types - * Set of sensitive infoTypes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of sensitive infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeDescription info_types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInfoTypes() - { - return $this->info_types; - } - - /** - * Set of sensitive infoTypes. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeDescription info_types = 1; - * @param array<\Google\Cloud\Dlp\V2\InfoTypeDescription>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeDescription::class); - $this->info_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php deleted file mode 100644 index a4630415c6ca..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesRequest.php +++ /dev/null @@ -1,340 +0,0 @@ -google.privacy.dlp.v2.ListInspectTemplatesRequest - */ -class ListInspectTemplatesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListInspectTemplates`. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListInspectTemplatesRequest - * - * @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 name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $page_token - * Page token to continue retrieval. Comes from the previous call - * to `ListInspectTemplates`. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * + Organizations scope, location specified: - * `organizations/{org_id}/locations/{location_id}` - * + Organizations scope, no location specified (defaults to global): - * `organizations/{org_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListInspectTemplates`. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListInspectTemplates`. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * 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; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the template was created. - * - `update_time`: corresponds to the time the template was last updated. - * - `name`: corresponds to the template's name. - * - `display_name`: corresponds to the template's display name. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php deleted file mode 100644 index 8d00e0dab910..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListInspectTemplatesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.ListInspectTemplatesResponse - */ -class ListInspectTemplatesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectTemplate inspect_templates = 1; - */ - private $inspect_templates; - /** - * If the next page is available then the next page token to be used in the - * following ListInspectTemplates request. - * - * 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\Dlp\V2\InspectTemplate>|\Google\Protobuf\Internal\RepeatedField $inspect_templates - * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. - * @type string $next_page_token - * If the next page is available then the next page token to be used in the - * following ListInspectTemplates request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectTemplate inspect_templates = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInspectTemplates() - { - return $this->inspect_templates; - } - - /** - * List of inspectTemplates, up to page_size in ListInspectTemplatesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InspectTemplate inspect_templates = 1; - * @param array<\Google\Cloud\Dlp\V2\InspectTemplate>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInspectTemplates($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InspectTemplate::class); - $this->inspect_templates = $arr; - - return $this; - } - - /** - * If the next page is available then the next page token to be used in the - * following ListInspectTemplates request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If the next page is available then the next page token to be used in the - * following ListInspectTemplates request. - * - * 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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php deleted file mode 100644 index fc1d80323188..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersRequest.php +++ /dev/null @@ -1,468 +0,0 @@ -google.privacy.dlp.v2.ListJobTriggersRequest - */ -class ListJobTriggersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. Comes from the previous call - * to ListJobTriggers. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by a server. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of triggeredJob fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the JobTrigger was created. - * - `update_time`: corresponds to the time the JobTrigger was last updated. - * - `last_run_time`: corresponds to the last time the JobTrigger ran. - * - `name`: corresponds to the JobTrigger's name. - * - `display_name`: corresponds to the JobTrigger's display name. - * - `status`: corresponds to JobTrigger's status. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect triggers: - * - `status` - HEALTHY|PAUSED|CANCELLED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by - * quotation marks. Nanoseconds are ignored. - * - 'error_count' - Number of errors that have occurred while running. - * * The operator must be `=` or `!=` for status and inspected_storage. - * Examples: - * * inspected_storage = cloud_storage AND status = HEALTHY - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) - * * last_run_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - /** - * The type of jobs. Will use `DlpJobType.INSPECT` if not set. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 6; - */ - protected $type = 0; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::projectName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListJobTriggersRequest - * - * @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 name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $page_token - * Page token to continue retrieval. Comes from the previous call - * to ListJobTriggers. `order_by` field must not - * change for subsequent calls. - * @type int $page_size - * Size of the page. This value can be limited by a server. - * @type string $order_by - * Comma-separated list of triggeredJob fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the JobTrigger was created. - * - `update_time`: corresponds to the time the JobTrigger was last updated. - * - `last_run_time`: corresponds to the last time the JobTrigger ran. - * - `name`: corresponds to the JobTrigger's name. - * - `display_name`: corresponds to the JobTrigger's display name. - * - `status`: corresponds to JobTrigger's status. - * @type string $filter - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect triggers: - * - `status` - HEALTHY|PAUSED|CANCELLED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by - * quotation marks. Nanoseconds are ignored. - * - 'error_count' - Number of errors that have occurred while running. - * * The operator must be `=` or `!=` for status and inspected_storage. - * Examples: - * * inspected_storage = cloud_storage AND status = HEALTHY - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) - * * last_run_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * @type int $type - * The type of jobs. Will use `DlpJobType.INSPECT` if not set. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to ListJobTriggers. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to ListJobTriggers. `order_by` field must not - * change for subsequent calls. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by a server. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by a server. - * - * 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; - } - - /** - * Comma-separated list of triggeredJob fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the JobTrigger was created. - * - `update_time`: corresponds to the time the JobTrigger was last updated. - * - `last_run_time`: corresponds to the last time the JobTrigger ran. - * - `name`: corresponds to the JobTrigger's name. - * - `display_name`: corresponds to the JobTrigger's display name. - * - `status`: corresponds to JobTrigger's status. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of triggeredJob fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc,update_time, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the JobTrigger was created. - * - `update_time`: corresponds to the time the JobTrigger was last updated. - * - `last_run_time`: corresponds to the last time the JobTrigger ran. - * - `name`: corresponds to the JobTrigger's name. - * - `display_name`: corresponds to the JobTrigger's display name. - * - `status`: corresponds to JobTrigger's status. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect triggers: - * - `status` - HEALTHY|PAUSED|CANCELLED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by - * quotation marks. Nanoseconds are ignored. - * - 'error_count' - Number of errors that have occurred while running. - * * The operator must be `=` or `!=` for status and inspected_storage. - * Examples: - * * inspected_storage = cloud_storage AND status = HEALTHY - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) - * * last_run_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values for inspect triggers: - * - `status` - HEALTHY|PAUSED|CANCELLED - * - `inspected_storage` - DATASTORE|CLOUD_STORAGE|BIGQUERY - * - 'last_run_time` - RFC 3339 formatted timestamp, surrounded by - * quotation marks. Nanoseconds are ignored. - * - 'error_count' - Number of errors that have occurred while running. - * * The operator must be `=` or `!=` for status and inspected_storage. - * Examples: - * * inspected_storage = cloud_storage AND status = HEALTHY - * * inspected_storage = cloud_storage OR inspected_storage = bigquery - * * inspected_storage = cloud_storage AND (state = PAUSED OR state = HEALTHY) - * * last_run_time > \"2017-12-12T00:00:00+00:00\" - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * The type of jobs. Will use `DlpJobType.INSPECT` if not set. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 6; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of jobs. Will use `DlpJobType.INSPECT` if not set. - * - * Generated from protobuf field .google.privacy.dlp.v2.DlpJobType type = 6; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\DlpJobType::class); - $this->type = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php deleted file mode 100644 index a271b151b1f8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListJobTriggersResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.ListJobTriggersResponse - */ -class ListJobTriggersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of triggeredJobs, up to page_size in ListJobTriggersRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger job_triggers = 1; - */ - private $job_triggers; - /** - * If the next page is available then this value is the next page token to be - * used in the following ListJobTriggers request. - * - * 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\Dlp\V2\JobTrigger>|\Google\Protobuf\Internal\RepeatedField $job_triggers - * List of triggeredJobs, up to page_size in ListJobTriggersRequest. - * @type string $next_page_token - * If the next page is available then this value is the next page token to be - * used in the following ListJobTriggers request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of triggeredJobs, up to page_size in ListJobTriggersRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger job_triggers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getJobTriggers() - { - return $this->job_triggers; - } - - /** - * List of triggeredJobs, up to page_size in ListJobTriggersRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.JobTrigger job_triggers = 1; - * @param array<\Google\Cloud\Dlp\V2\JobTrigger>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setJobTriggers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\JobTrigger::class); - $this->job_triggers = $arr; - - return $this; - } - - /** - * If the next page is available then this value is the next page token to be - * used in the following ListJobTriggers request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If the next page is available then this value is the next page token to be - * used in the following ListJobTriggers request. - * - * 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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php deleted file mode 100644 index f90899509289..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesRequest.php +++ /dev/null @@ -1,329 +0,0 @@ -google.privacy.dlp.v2.ListProjectDataProfilesRequest - */ -class ListProjectDataProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. organizations/{org_id}/locations/{loc_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: Google Cloud project ID - * - `sensitivity_level`: How sensitive the data in a project is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - - /** - * @param string $parent Required. organizations/{org_id}/locations/{loc_id} - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListProjectDataProfilesRequest - * - * @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. organizations/{org_id}/locations/{loc_id} - * @type string $page_token - * Page token to continue retrieval. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: Google Cloud project ID - * - `sensitivity_level`: How sensitive the data in a project is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * @type string $filter - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * The length of this field should be no more than 500 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. organizations/{org_id}/locations/{loc_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. organizations/{org_id}/locations/{loc_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; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * 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; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: Google Cloud project ID - * - `sensitivity_level`: How sensitive the data in a project is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: Google Cloud project ID - * - `sensitivity_level`: How sensitive the data in a project is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php deleted file mode 100644 index 3a2e2dab2e96..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListProjectDataProfilesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.ListProjectDataProfilesResponse - */ -class ListProjectDataProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; - */ - private $project_data_profiles; - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\ProjectDataProfile>|\Google\Protobuf\Internal\RepeatedField $project_data_profiles - * List of data profiles. - * @type string $next_page_token - * The next page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProjectDataProfiles() - { - return $this->project_data_profiles; - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ProjectDataProfile project_data_profiles = 1; - * @param array<\Google\Cloud\Dlp\V2\ProjectDataProfile>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProjectDataProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ProjectDataProfile::class); - $this->project_data_profiles = $arr; - - return $this; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php deleted file mode 100644 index de49bd2bb073..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesRequest.php +++ /dev/null @@ -1,324 +0,0 @@ -google.privacy.dlp.v2.ListStoredInfoTypesRequest - */ -class ListStoredInfoTypesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListStoredInfoTypes`. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, display_name, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the most recent version of the - * resource was created. - * - `state`: corresponds to the state of the resource. - * - `name`: corresponds to resource name. - * - `display_name`: corresponds to info type's display name. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - */ - protected $location_id = ''; - - /** - * @param string $parent Required. Parent resource name. - * - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * - * parent=projects/example-project/locations/europe-west3 - * Please see {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListStoredInfoTypesRequest - * - * @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 name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $page_token - * Page token to continue retrieval. Comes from the previous call - * to `ListStoredInfoTypes`. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, display_name, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the most recent version of the - * resource was created. - * - `state`: corresponds to the state of the resource. - * - `name`: corresponds to resource name. - * - `display_name`: corresponds to info type's display name. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on the scope of the request - * (project or organization) and whether you have [specified a processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListStoredInfoTypes`. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. Comes from the previous call - * to `ListStoredInfoTypes`. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero server - * returns a page of max size 100. - * - * 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; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, display_name, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the most recent version of the - * resource was created. - * - `state`: corresponds to the state of the resource. - * - `name`: corresponds to resource name. - * - `display_name`: corresponds to info type's display name. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, - * followed by `asc` or `desc` postfix. This list is case insensitive. The - * default sorting order is ascending. Redundant space characters are - * insignificant. - * Example: `name asc, display_name, create_time desc` - * Supported fields are: - * - `create_time`: corresponds to the time the most recent version of the - * resource was created. - * - `state`: corresponds to the state of the resource. - * - `name`: corresponds to resource name. - * - `display_name`: corresponds to info type's display name. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 5; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php deleted file mode 100644 index 83a7019de840..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListStoredInfoTypesResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.ListStoredInfoTypesResponse - */ -class ListStoredInfoTypesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoType stored_info_types = 1; - */ - private $stored_info_types; - /** - * If the next page is available then the next page token to be used - * in the following ListStoredInfoTypes request. - * - * 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\Dlp\V2\StoredInfoType>|\Google\Protobuf\Internal\RepeatedField $stored_info_types - * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. - * @type string $next_page_token - * If the next page is available then the next page token to be used - * in the following ListStoredInfoTypes request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoType stored_info_types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getStoredInfoTypes() - { - return $this->stored_info_types; - } - - /** - * List of storedInfoTypes, up to page_size in ListStoredInfoTypesRequest. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoType stored_info_types = 1; - * @param array<\Google\Cloud\Dlp\V2\StoredInfoType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setStoredInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StoredInfoType::class); - $this->stored_info_types = $arr; - - return $this; - } - - /** - * If the next page is available then the next page token to be used - * in the following ListStoredInfoTypes request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If the next page is available then the next page token to be used - * in the following ListStoredInfoTypes request. - * - * 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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php deleted file mode 100644 index c695475120c1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesRequest.php +++ /dev/null @@ -1,383 +0,0 @@ -google.privacy.dlp.v2.ListTableDataProfilesRequest - */ -class ListTableDataProfilesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - */ - protected $page_token = ''; - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - */ - protected $page_size = 0; - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `row_count`: Number of rows in this resource. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `project_id` - The Google Cloud project ID. - * - `dataset_id` - The BigQuery dataset ID. - * - `table_id` - The ID of the BigQuery table. - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. Please see - * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\ListTableDataProfilesRequest - * - * @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 organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * @type string $page_token - * Page token to continue retrieval. - * @type int $page_size - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * @type string $order_by - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `row_count`: Number of rows in this resource. - * @type string $filter - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `project_id` - The Google Cloud project ID. - * - `dataset_id` - The BigQuery dataset ID. - * - `table_id` - The ID of the BigQuery table. - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * The length of this field should be no more than 500 characters. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated 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 organization or project, for - * example `organizations/433245324/locations/europe` or - * `projects/project-id/locations/asia`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Page token to continue retrieval. - * - * Generated from protobuf field string page_token = 2; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * Generated from protobuf field int32 page_size = 3; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Size of the page. This value can be limited by the server. If zero, server - * returns a page of max size 100. - * - * 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; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `row_count`: Number of rows in this resource. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Comma-separated list of fields to order by, followed by `asc` or `desc` - * postfix. This list is case insensitive. The default sorting order is - * ascending. Redundant space characters are insignificant. Only one order - * field at a time is allowed. - * Examples: - * * `project_id asc` - * * `table_id` - * * `sensitivity_level desc` - * Supported fields are: - * - `project_id`: The Google Cloud project ID. - * - `dataset_id`: The ID of a BigQuery dataset. - * - `table_id`: The ID of a BigQuery table. - * - `sensitivity_level`: How sensitive the data in a table is, at most. - * - `data_risk_level`: How much risk is associated with this data. - * - `profile_last_generated`: When the profile was last updated in epoch - * seconds. - * - `last_modified`: The last time the resource was modified. - * - `resource_visibility`: Visibility restriction for this resource. - * - `row_count`: Number of rows in this resource. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `project_id` - The Google Cloud project ID. - * - `dataset_id` - The BigQuery dataset ID. - * - `table_id` - The ID of the BigQuery table. - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Allows filtering. - * Supported syntax: - * * Filter expressions are made up of one or more restrictions. - * * Restrictions can be combined by `AND` or `OR` logical operators. A - * sequence of restrictions implicitly uses `AND`. - * * A restriction has the form of `{field} {operator} {value}`. - * * Supported fields/values: - * - `project_id` - The Google Cloud project ID. - * - `dataset_id` - The BigQuery dataset ID. - * - `table_id` - The ID of the BigQuery table. - * - `sensitivity_level` - HIGH|MODERATE|LOW - * - `data_risk_level` - HIGH|MODERATE|LOW - * - `resource_visibility`: PUBLIC|RESTRICTED - * - `status_code` - an RPC status code as defined in - * https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto - * * The operator must be `=` or `!=`. - * Examples: - * * `project_id = 12345 AND status_code = 1` - * * `project_id = 12345 AND sensitivity_level = HIGH` - * * `project_id = 12345 AND resource_visibility = PUBLIC` - * The length of this field should be no more than 500 characters. - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php deleted file mode 100644 index a6b2694c12a0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ListTableDataProfilesResponse.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.ListTableDataProfilesResponse - */ -class ListTableDataProfilesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; - */ - private $table_data_profiles; - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\TableDataProfile>|\Google\Protobuf\Internal\RepeatedField $table_data_profiles - * List of data profiles. - * @type string $next_page_token - * The next page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTableDataProfiles() - { - return $this->table_data_profiles; - } - - /** - * List of data profiles. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TableDataProfile table_data_profiles = 1; - * @param array<\Google\Cloud\Dlp\V2\TableDataProfile>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTableDataProfiles($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TableDataProfile::class); - $this->table_data_profiles = $arr; - - return $this; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * The next page token. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php deleted file mode 100644 index c67c38368c6d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Location.php +++ /dev/null @@ -1,227 +0,0 @@ -google.privacy.dlp.v2.Location - */ -class Location extends \Google\Protobuf\Internal\Message -{ - /** - * Zero-based byte offsets delimiting the finding. - * These are relative to the finding's containing element. - * Note that when the content is not textual, this references - * the UTF-8 encoded textual representation of the content. - * Omitted if content is an image. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range byte_range = 1; - */ - protected $byte_range = null; - /** - * Unicode character offsets delimiting the finding. - * These are relative to the finding's containing element. - * Provided when the content is text. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range codepoint_range = 2; - */ - protected $codepoint_range = null; - /** - * List of nested objects pointing to the precise location of the finding - * within the file or record. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7; - */ - private $content_locations; - /** - * Information about the container where this finding occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container = 8; - */ - protected $container = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Range $byte_range - * Zero-based byte offsets delimiting the finding. - * These are relative to the finding's containing element. - * Note that when the content is not textual, this references - * the UTF-8 encoded textual representation of the content. - * Omitted if content is an image. - * @type \Google\Cloud\Dlp\V2\Range $codepoint_range - * Unicode character offsets delimiting the finding. - * These are relative to the finding's containing element. - * Provided when the content is text. - * @type array<\Google\Cloud\Dlp\V2\ContentLocation>|\Google\Protobuf\Internal\RepeatedField $content_locations - * List of nested objects pointing to the precise location of the finding - * within the file or record. - * @type \Google\Cloud\Dlp\V2\Container $container - * Information about the container where this finding occurred, if available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Zero-based byte offsets delimiting the finding. - * These are relative to the finding's containing element. - * Note that when the content is not textual, this references - * the UTF-8 encoded textual representation of the content. - * Omitted if content is an image. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range byte_range = 1; - * @return \Google\Cloud\Dlp\V2\Range|null - */ - public function getByteRange() - { - return $this->byte_range; - } - - public function hasByteRange() - { - return isset($this->byte_range); - } - - public function clearByteRange() - { - unset($this->byte_range); - } - - /** - * Zero-based byte offsets delimiting the finding. - * These are relative to the finding's containing element. - * Note that when the content is not textual, this references - * the UTF-8 encoded textual representation of the content. - * Omitted if content is an image. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range byte_range = 1; - * @param \Google\Cloud\Dlp\V2\Range $var - * @return $this - */ - public function setByteRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Range::class); - $this->byte_range = $var; - - return $this; - } - - /** - * Unicode character offsets delimiting the finding. - * These are relative to the finding's containing element. - * Provided when the content is text. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range codepoint_range = 2; - * @return \Google\Cloud\Dlp\V2\Range|null - */ - public function getCodepointRange() - { - return $this->codepoint_range; - } - - public function hasCodepointRange() - { - return isset($this->codepoint_range); - } - - public function clearCodepointRange() - { - unset($this->codepoint_range); - } - - /** - * Unicode character offsets delimiting the finding. - * These are relative to the finding's containing element. - * Provided when the content is text. - * - * Generated from protobuf field .google.privacy.dlp.v2.Range codepoint_range = 2; - * @param \Google\Cloud\Dlp\V2\Range $var - * @return $this - */ - public function setCodepointRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Range::class); - $this->codepoint_range = $var; - - return $this; - } - - /** - * List of nested objects pointing to the precise location of the finding - * within the file or record. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContentLocations() - { - return $this->content_locations; - } - - /** - * List of nested objects pointing to the precise location of the finding - * within the file or record. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7; - * @param array<\Google\Cloud\Dlp\V2\ContentLocation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContentLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\ContentLocation::class); - $this->content_locations = $arr; - - return $this; - } - - /** - * Information about the container where this finding occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container = 8; - * @return \Google\Cloud\Dlp\V2\Container|null - */ - public function getContainer() - { - return $this->container; - } - - public function hasContainer() - { - return isset($this->container); - } - - public function clearContainer() - { - unset($this->container); - } - - /** - * Information about the container where this finding occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.Container container = 8; - * @param \Google\Cloud\Dlp\V2\Container $var - * @return $this - */ - public function setContainer($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Container::class); - $this->container = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php deleted file mode 100644 index dbc05788c5db..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Manual.php +++ /dev/null @@ -1,34 +0,0 @@ -google.privacy.dlp.v2.Manual - */ -class Manual extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php deleted file mode 100644 index 5d456a0dc111..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MatchingType.php +++ /dev/null @@ -1,79 +0,0 @@ -google.privacy.dlp.v2.MatchingType - */ -class MatchingType -{ - /** - * Invalid. - * - * Generated from protobuf enum MATCHING_TYPE_UNSPECIFIED = 0; - */ - const MATCHING_TYPE_UNSPECIFIED = 0; - /** - * Full match. - * - Dictionary: join of Dictionary results matched complete finding quote - * - Regex: all regex matches fill a finding quote start to end - * - Exclude info type: completely inside affecting info types findings - * - * Generated from protobuf enum MATCHING_TYPE_FULL_MATCH = 1; - */ - const MATCHING_TYPE_FULL_MATCH = 1; - /** - * Partial match. - * - Dictionary: at least one of the tokens in the finding matches - * - Regex: substring of the finding matches - * - Exclude info type: intersects with affecting info types findings - * - * Generated from protobuf enum MATCHING_TYPE_PARTIAL_MATCH = 2; - */ - const MATCHING_TYPE_PARTIAL_MATCH = 2; - /** - * Inverse match. - * - Dictionary: no tokens in the finding match the dictionary - * - Regex: finding doesn't match the regex - * - Exclude info type: no intersection with affecting info types findings - * - * Generated from protobuf enum MATCHING_TYPE_INVERSE_MATCH = 3; - */ - const MATCHING_TYPE_INVERSE_MATCH = 3; - - private static $valueToName = [ - self::MATCHING_TYPE_UNSPECIFIED => 'MATCHING_TYPE_UNSPECIFIED', - self::MATCHING_TYPE_FULL_MATCH => 'MATCHING_TYPE_FULL_MATCH', - self::MATCHING_TYPE_PARTIAL_MATCH => 'MATCHING_TYPE_PARTIAL_MATCH', - self::MATCHING_TYPE_INVERSE_MATCH => 'MATCHING_TYPE_INVERSE_MATCH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php deleted file mode 100644 index ff36bc6835ea..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataLocation.php +++ /dev/null @@ -1,109 +0,0 @@ -google.privacy.dlp.v2.MetadataLocation - */ -class MetadataLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Type of metadata containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.MetadataType type = 1; - */ - protected $type = 0; - protected $label; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Type of metadata containing the finding. - * @type \Google\Cloud\Dlp\V2\StorageMetadataLabel $storage_label - * Storage metadata. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Type of metadata containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.MetadataType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Type of metadata containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.MetadataType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\MetadataType::class); - $this->type = $var; - - return $this; - } - - /** - * Storage metadata. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3; - * @return \Google\Cloud\Dlp\V2\StorageMetadataLabel|null - */ - public function getStorageLabel() - { - return $this->readOneof(3); - } - - public function hasStorageLabel() - { - return $this->hasOneof(3); - } - - /** - * Storage metadata. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageMetadataLabel storage_label = 3; - * @param \Google\Cloud\Dlp\V2\StorageMetadataLabel $var - * @return $this - */ - public function setStorageLabel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StorageMetadataLabel::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getLabel() - { - return $this->whichOneof("label"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php deleted file mode 100644 index e99808ba042e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/MetadataType.php +++ /dev/null @@ -1,54 +0,0 @@ -google.privacy.dlp.v2.MetadataType - */ -class MetadataType -{ - /** - * Unused - * - * Generated from protobuf enum METADATATYPE_UNSPECIFIED = 0; - */ - const METADATATYPE_UNSPECIFIED = 0; - /** - * General file metadata provided by Cloud Storage. - * - * Generated from protobuf enum STORAGE_METADATA = 2; - */ - const STORAGE_METADATA = 2; - - private static $valueToName = [ - self::METADATATYPE_UNSPECIFIED => 'METADATATYPE_UNSPECIFIED', - self::STORAGE_METADATA => 'STORAGE_METADATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php deleted file mode 100644 index bcd45432e06a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/NullPercentageLevel.php +++ /dev/null @@ -1,76 +0,0 @@ -google.privacy.dlp.v2.NullPercentageLevel - */ -class NullPercentageLevel -{ - /** - * Unused. - * - * Generated from protobuf enum NULL_PERCENTAGE_LEVEL_UNSPECIFIED = 0; - */ - const NULL_PERCENTAGE_LEVEL_UNSPECIFIED = 0; - /** - * Very few null entries. - * - * Generated from protobuf enum NULL_PERCENTAGE_VERY_LOW = 1; - */ - const NULL_PERCENTAGE_VERY_LOW = 1; - /** - * Some null entries. - * - * Generated from protobuf enum NULL_PERCENTAGE_LOW = 2; - */ - const NULL_PERCENTAGE_LOW = 2; - /** - * A few null entries. - * - * Generated from protobuf enum NULL_PERCENTAGE_MEDIUM = 3; - */ - const NULL_PERCENTAGE_MEDIUM = 3; - /** - * A lot of null entries. - * - * Generated from protobuf enum NULL_PERCENTAGE_HIGH = 4; - */ - const NULL_PERCENTAGE_HIGH = 4; - - private static $valueToName = [ - self::NULL_PERCENTAGE_LEVEL_UNSPECIFIED => 'NULL_PERCENTAGE_LEVEL_UNSPECIFIED', - self::NULL_PERCENTAGE_VERY_LOW => 'NULL_PERCENTAGE_VERY_LOW', - self::NULL_PERCENTAGE_LOW => 'NULL_PERCENTAGE_LOW', - self::NULL_PERCENTAGE_MEDIUM => 'NULL_PERCENTAGE_MEDIUM', - self::NULL_PERCENTAGE_HIGH => 'NULL_PERCENTAGE_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php deleted file mode 100644 index c6122596abab..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation - */ -class OtherCloudDiscoveryStartingLocation extends \Google\Protobuf\Internal\Message -{ - protected $location; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation $aws_location - * The AWS starting location for discovery. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The AWS starting location for discovery. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocation aws_location = 1; - * @return \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation|null - */ - public function getAwsLocation() - { - return $this->readOneof(1); - } - - public function hasAwsLocation() - { - return $this->hasOneof(1); - } - - /** - * The AWS starting location for discovery. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocation aws_location = 1; - * @param \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation $var - * @return $this - */ - public function setAwsLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation\AwsDiscoveryStartingLocation::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getLocation() - { - return $this->whichOneof("location"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php deleted file mode 100644 index 651254ee8091..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryStartingLocation/AwsDiscoveryStartingLocation.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.OtherCloudDiscoveryStartingLocation.AwsDiscoveryStartingLocation - */ -class AwsDiscoveryStartingLocation extends \Google\Protobuf\Internal\Message -{ - protected $scope; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $account_id - * The AWS account ID that this discovery config applies to. - * Within an AWS organization, you can find the AWS account ID inside an - * AWS account ARN. Example: - * arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id} - * @type bool $all_asset_inventory_assets - * All AWS assets stored in Asset Inventory that didn't match other AWS - * discovery configs. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The AWS account ID that this discovery config applies to. - * Within an AWS organization, you can find the AWS account ID inside an - * AWS account ARN. Example: - * arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id} - * - * Generated from protobuf field string account_id = 2; - * @return string - */ - public function getAccountId() - { - return $this->readOneof(2); - } - - public function hasAccountId() - { - return $this->hasOneof(2); - } - - /** - * The AWS account ID that this discovery config applies to. - * Within an AWS organization, you can find the AWS account ID inside an - * AWS account ARN. Example: - * arn:{partition}:organizations::{management_account_id}:account/{org_id}/{account_id} - * - * Generated from protobuf field string account_id = 2; - * @param string $var - * @return $this - */ - public function setAccountId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * All AWS assets stored in Asset Inventory that didn't match other AWS - * discovery configs. - * - * Generated from protobuf field bool all_asset_inventory_assets = 3; - * @return bool - */ - public function getAllAssetInventoryAssets() - { - return $this->readOneof(3); - } - - public function hasAllAssetInventoryAssets() - { - return $this->hasOneof(3); - } - - /** - * All AWS assets stored in Asset Inventory that didn't match other AWS - * discovery configs. - * - * Generated from protobuf field bool all_asset_inventory_assets = 3; - * @param bool $var - * @return $this - */ - public function setAllAssetInventoryAssets($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getScope() - { - return $this->whichOneof("scope"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AwsDiscoveryStartingLocation::class, \Google\Cloud\Dlp\V2\OtherCloudDiscoveryStartingLocation_AwsDiscoveryStartingLocation::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php deleted file mode 100644 index 596114d5641e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudDiscoveryTarget.php +++ /dev/null @@ -1,265 +0,0 @@ -google.privacy.dlp.v2.OtherCloudDiscoveryTarget - */ -class OtherCloudDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The type of data profiles generated by this discovery target. - * Supported values are: - * * aws/s3/bucket - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $data_source_type = null; - /** - * Required. The resources that the discovery cadence applies to. The - * first target with a matching filter will be the one to apply to a resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $filter = null; - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $conditions = null; - protected $cadence; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type - * Required. The type of data profiles generated by this discovery target. - * Supported values are: - * * aws/s3/bucket - * @type \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter $filter - * Required. The resources that the discovery cadence applies to. The - * first target with a matching filter will be the one to apply to a resource. - * @type \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions $conditions - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * @type \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence $generation_cadence - * How often and when to update data profiles. New resources that match both - * the filter and conditions are scanned as quickly as possible depending on - * system capacity. - * @type \Google\Cloud\Dlp\V2\Disabled $disabled - * Disable profiling for resources that match this filter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The type of data profiles generated by this discovery target. - * Supported values are: - * * aws/s3/bucket - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DataSourceType|null - */ - public function getDataSourceType() - { - return $this->data_source_type; - } - - public function hasDataSourceType() - { - return isset($this->data_source_type); - } - - public function clearDataSourceType() - { - unset($this->data_source_type); - } - - /** - * Required. The type of data profiles generated by this discovery target. - * Supported values are: - * * aws/s3/bucket - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DataSourceType $var - * @return $this - */ - public function setDataSourceType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); - $this->data_source_type = $var; - - return $this; - } - - /** - * Required. The resources that the discovery cadence applies to. The - * first target with a matching filter will be the one to apply to a resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter|null - */ - public function getFilter() - { - return $this->filter; - } - - public function hasFilter() - { - return isset($this->filter); - } - - public function clearFilter() - { - unset($this->filter); - } - - /** - * Required. The resources that the discovery cadence applies to. The - * first target with a matching filter will be the one to apply to a resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudFilter filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryOtherCloudFilter::class); - $this->filter = $var; - - return $this; - } - - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions|null - */ - public function getConditions() - { - return $this->conditions; - } - - public function hasConditions() - { - return isset($this->conditions); - } - - public function clearConditions() - { - unset($this->conditions); - } - - /** - * Optional. In addition to matching the filter, these conditions must be true - * before a profile is generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudConditions conditions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryOtherCloudConditions::class); - $this->conditions = $var; - - return $this; - } - - /** - * How often and when to update data profiles. New resources that match both - * the filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4; - * @return \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence|null - */ - public function getGenerationCadence() - { - return $this->readOneof(4); - } - - public function hasGenerationCadence() - { - return $this->hasOneof(4); - } - - /** - * How often and when to update data profiles. New resources that match both - * the filter and conditions are scanned as quickly as possible depending on - * system capacity. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryOtherCloudGenerationCadence generation_cadence = 4; - * @param \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence $var - * @return $this - */ - public function setGenerationCadence($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryOtherCloudGenerationCadence::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Disable profiling for resources that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 5; - * @return \Google\Cloud\Dlp\V2\Disabled|null - */ - public function getDisabled() - { - return $this->readOneof(5); - } - - public function hasDisabled() - { - return $this->hasOneof(5); - } - - /** - * Disable profiling for resources that match this filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.Disabled disabled = 5; - * @param \Google\Cloud\Dlp\V2\Disabled $var - * @return $this - */ - public function setDisabled($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Disabled::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getCadence() - { - return $this->whichOneof("cadence"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php deleted file mode 100644 index f8269811066b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceCollection.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.OtherCloudResourceCollection - */ -class OtherCloudResourceCollection extends \Google\Protobuf\Internal\Message -{ - protected $pattern; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes $include_regexes - * A collection of regular expressions to match a resource against. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A collection of regular expressions to match a resource against. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceRegexes include_regexes = 1; - * @return \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes|null - */ - public function getIncludeRegexes() - { - return $this->readOneof(1); - } - - public function hasIncludeRegexes() - { - return $this->hasOneof(1); - } - - /** - * A collection of regular expressions to match a resource against. - * - * Generated from protobuf field .google.privacy.dlp.v2.OtherCloudResourceRegexes include_regexes = 1; - * @param \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes $var - * @return $this - */ - public function setIncludeRegexes($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\OtherCloudResourceRegexes::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getPattern() - { - return $this->whichOneof("pattern"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php deleted file mode 100644 index 3a1c993d1b7f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegex.php +++ /dev/null @@ -1,78 +0,0 @@ -google.privacy.dlp.v2.OtherCloudResourceRegex - */ -class OtherCloudResourceRegex extends \Google\Protobuf\Internal\Message -{ - protected $resource_regex; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AmazonS3BucketRegex $amazon_s3_bucket_regex - * Regex for Amazon S3 buckets. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Regex for Amazon S3 buckets. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketRegex amazon_s3_bucket_regex = 1; - * @return \Google\Cloud\Dlp\V2\AmazonS3BucketRegex|null - */ - public function getAmazonS3BucketRegex() - { - return $this->readOneof(1); - } - - public function hasAmazonS3BucketRegex() - { - return $this->hasOneof(1); - } - - /** - * Regex for Amazon S3 buckets. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3BucketRegex amazon_s3_bucket_regex = 1; - * @param \Google\Cloud\Dlp\V2\AmazonS3BucketRegex $var - * @return $this - */ - public function setAmazonS3BucketRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AmazonS3BucketRegex::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getResourceRegex() - { - return $this->whichOneof("resource_regex"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php deleted file mode 100644 index 912bbce1d39f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudResourceRegexes.php +++ /dev/null @@ -1,80 +0,0 @@ -google.privacy.dlp.v2.OtherCloudResourceRegexes - */ -class OtherCloudResourceRegexes extends \Google\Protobuf\Internal\Message -{ - /** - * A group of regular expression patterns to match against one or more - * resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherCloudResourceRegex patterns = 1; - */ - private $patterns; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\OtherCloudResourceRegex>|\Google\Protobuf\Internal\RepeatedField $patterns - * A group of regular expression patterns to match against one or more - * resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A group of regular expression patterns to match against one or more - * resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherCloudResourceRegex patterns = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPatterns() - { - return $this->patterns; - } - - /** - * A group of regular expression patterns to match against one or more - * resources. - * Maximum of 100 entries. The sum of all regular expression's length can't - * exceed 10 KiB. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherCloudResourceRegex patterns = 1; - * @param array<\Google\Cloud\Dlp\V2\OtherCloudResourceRegex>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPatterns($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\OtherCloudResourceRegex::class); - $this->patterns = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php deleted file mode 100644 index 8e3751c2fa4e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherCloudSingleResourceReference.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.OtherCloudSingleResourceReference - */ -class OtherCloudSingleResourceReference extends \Google\Protobuf\Internal\Message -{ - protected $resource; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\AmazonS3Bucket $amazon_s3_bucket - * Amazon S3 bucket. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Amazon S3 bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3Bucket amazon_s3_bucket = 1; - * @return \Google\Cloud\Dlp\V2\AmazonS3Bucket|null - */ - public function getAmazonS3Bucket() - { - return $this->readOneof(1); - } - - public function hasAmazonS3Bucket() - { - return $this->hasOneof(1); - } - - /** - * Amazon S3 bucket. - * - * Generated from protobuf field .google.privacy.dlp.v2.AmazonS3Bucket amazon_s3_bucket = 1; - * @param \Google\Cloud\Dlp\V2\AmazonS3Bucket $var - * @return $this - */ - public function setAmazonS3Bucket($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\AmazonS3Bucket::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getResource() - { - return $this->whichOneof("resource"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php deleted file mode 100644 index ea7528a8112b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OtherInfoTypeSummary.php +++ /dev/null @@ -1,153 +0,0 @@ -google.privacy.dlp.v2.OtherInfoTypeSummary - */ -class OtherInfoTypeSummary extends \Google\Protobuf\Internal\Message -{ - /** - * The other infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Approximate percentage of non-null rows that contained data detected by - * this infotype. - * - * Generated from protobuf field int32 estimated_prevalence = 2; - */ - protected $estimated_prevalence = 0; - /** - * Whether this infoType was excluded from sensitivity and risk analysis due - * to factors such as low prevalence (subject to change). - * - * Generated from protobuf field bool excluded_from_analysis = 3; - */ - protected $excluded_from_analysis = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * The other infoType. - * @type int $estimated_prevalence - * Approximate percentage of non-null rows that contained data detected by - * this infotype. - * @type bool $excluded_from_analysis - * Whether this infoType was excluded from sensitivity and risk analysis due - * to factors such as low prevalence (subject to change). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The other infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * The other infoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Approximate percentage of non-null rows that contained data detected by - * this infotype. - * - * Generated from protobuf field int32 estimated_prevalence = 2; - * @return int - */ - public function getEstimatedPrevalence() - { - return $this->estimated_prevalence; - } - - /** - * Approximate percentage of non-null rows that contained data detected by - * this infotype. - * - * Generated from protobuf field int32 estimated_prevalence = 2; - * @param int $var - * @return $this - */ - public function setEstimatedPrevalence($var) - { - GPBUtil::checkInt32($var); - $this->estimated_prevalence = $var; - - return $this; - } - - /** - * Whether this infoType was excluded from sensitivity and risk analysis due - * to factors such as low prevalence (subject to change). - * - * Generated from protobuf field bool excluded_from_analysis = 3; - * @return bool - */ - public function getExcludedFromAnalysis() - { - return $this->excluded_from_analysis; - } - - /** - * Whether this infoType was excluded from sensitivity and risk analysis due - * to factors such as low prevalence (subject to change). - * - * Generated from protobuf field bool excluded_from_analysis = 3; - * @param bool $var - * @return $this - */ - public function setExcludedFromAnalysis($var) - { - GPBUtil::checkBool($var); - $this->excluded_from_analysis = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php deleted file mode 100644 index cd7b054981d8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig.php +++ /dev/null @@ -1,174 +0,0 @@ -google.privacy.dlp.v2.OutputStorageConfig - */ -class OutputStorageConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Schema used for writing the findings for Inspect jobs. This field is only - * used for Inspect and must be unspecified for Risk jobs. Columns are derived - * from the `Finding` object. If appending to an existing table, any columns - * from the predefined schema that are missing will be added. No columns in - * the existing table will be deleted. - * If unspecified, then all available columns will be used for a new table or - * an (existing) table with no schema, and no changes will be made to an - * existing table that has a schema. - * Only for use with external storage. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; - */ - protected $output_schema = 0; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table - * Store findings in an existing table or a new table in an existing - * dataset. If table_id is not set a new one will be generated - * for you with the following format: - * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used - * for generating the date details. - * For Inspect, each column in an existing output table must have the same - * name, type, and mode of a field in the `Finding` object. - * For Risk, an existing output table should be the output of a previous - * Risk analysis job run on the same source table, with the same privacy - * metric and quasi-identifiers. Risk jobs that analyze the same table but - * compute a different privacy metric, or use different sets of - * quasi-identifiers, cannot store their results in the same table. - * @type int $output_schema - * Schema used for writing the findings for Inspect jobs. This field is only - * used for Inspect and must be unspecified for Risk jobs. Columns are derived - * from the `Finding` object. If appending to an existing table, any columns - * from the predefined schema that are missing will be added. No columns in - * the existing table will be deleted. - * If unspecified, then all available columns will be used for a new table or - * an (existing) table with no schema, and no changes will be made to an - * existing table that has a schema. - * Only for use with external storage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Store findings in an existing table or a new table in an existing - * dataset. If table_id is not set a new one will be generated - * for you with the following format: - * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used - * for generating the date details. - * For Inspect, each column in an existing output table must have the same - * name, type, and mode of a field in the `Finding` object. - * For Risk, an existing output table should be the output of a previous - * Risk analysis job run on the same source table, with the same privacy - * metric and quasi-identifiers. Risk jobs that analyze the same table but - * compute a different privacy metric, or use different sets of - * quasi-identifiers, cannot store their results in the same table. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTable() - { - return $this->readOneof(1); - } - - public function hasTable() - { - return $this->hasOneof(1); - } - - /** - * Store findings in an existing table or a new table in an existing - * dataset. If table_id is not set a new one will be generated - * for you with the following format: - * dlp_googleapis_yyyy_mm_dd_[dlp_job_id]. Pacific time zone will be used - * for generating the date details. - * For Inspect, each column in an existing output table must have the same - * name, type, and mode of a field in the `Finding` object. - * For Risk, an existing output table should be the output of a previous - * Risk analysis job run on the same source table, with the same privacy - * metric and quasi-identifiers. Risk jobs that analyze the same table but - * compute a different privacy metric, or use different sets of - * quasi-identifiers, cannot store their results in the same table. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Schema used for writing the findings for Inspect jobs. This field is only - * used for Inspect and must be unspecified for Risk jobs. Columns are derived - * from the `Finding` object. If appending to an existing table, any columns - * from the predefined schema that are missing will be added. No columns in - * the existing table will be deleted. - * If unspecified, then all available columns will be used for a new table or - * an (existing) table with no schema, and no changes will be made to an - * existing table that has a schema. - * Only for use with external storage. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; - * @return int - */ - public function getOutputSchema() - { - return $this->output_schema; - } - - /** - * Schema used for writing the findings for Inspect jobs. This field is only - * used for Inspect and must be unspecified for Risk jobs. Columns are derived - * from the `Finding` object. If appending to an existing table, any columns - * from the predefined schema that are missing will be added. No columns in - * the existing table will be deleted. - * If unspecified, then all available columns will be used for a new table or - * an (existing) table with no schema, and no changes will be made to an - * existing table that has a schema. - * Only for use with external storage. - * - * Generated from protobuf field .google.privacy.dlp.v2.OutputStorageConfig.OutputSchema output_schema = 3; - * @param int $var - * @return $this - */ - public function setOutputSchema($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\OutputStorageConfig\OutputSchema::class); - $this->output_schema = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php deleted file mode 100644 index 561e97f7d483..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/OutputStorageConfig/OutputSchema.php +++ /dev/null @@ -1,87 +0,0 @@ -google.privacy.dlp.v2.OutputStorageConfig.OutputSchema - */ -class OutputSchema -{ - /** - * Unused. - * - * Generated from protobuf enum OUTPUT_SCHEMA_UNSPECIFIED = 0; - */ - const OUTPUT_SCHEMA_UNSPECIFIED = 0; - /** - * Basic schema including only `info_type`, `quote`, `certainty`, and - * `timestamp`. - * - * Generated from protobuf enum BASIC_COLUMNS = 1; - */ - const BASIC_COLUMNS = 1; - /** - * Schema tailored to findings from scanning Cloud Storage. - * - * Generated from protobuf enum GCS_COLUMNS = 2; - */ - const GCS_COLUMNS = 2; - /** - * Schema tailored to findings from scanning Google Datastore. - * - * Generated from protobuf enum DATASTORE_COLUMNS = 3; - */ - const DATASTORE_COLUMNS = 3; - /** - * Schema tailored to findings from scanning Google BigQuery. - * - * Generated from protobuf enum BIG_QUERY_COLUMNS = 4; - */ - const BIG_QUERY_COLUMNS = 4; - /** - * Schema containing all columns. - * - * Generated from protobuf enum ALL_COLUMNS = 5; - */ - const ALL_COLUMNS = 5; - - private static $valueToName = [ - self::OUTPUT_SCHEMA_UNSPECIFIED => 'OUTPUT_SCHEMA_UNSPECIFIED', - self::BASIC_COLUMNS => 'BASIC_COLUMNS', - self::GCS_COLUMNS => 'GCS_COLUMNS', - self::DATASTORE_COLUMNS => 'DATASTORE_COLUMNS', - self::BIG_QUERY_COLUMNS => 'BIG_QUERY_COLUMNS', - self::ALL_COLUMNS => 'ALL_COLUMNS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OutputSchema::class, \Google\Cloud\Dlp\V2\OutputStorageConfig_OutputSchema::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php deleted file mode 100644 index 1f8527860eb1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PartitionId.php +++ /dev/null @@ -1,105 +0,0 @@ -google.privacy.dlp.v2.PartitionId - */ -class PartitionId extends \Google\Protobuf\Internal\Message -{ - /** - * The ID of the project to which the entities belong. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * If not empty, the ID of the namespace to which the entities belong. - * - * Generated from protobuf field string namespace_id = 4; - */ - protected $namespace_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_id - * The ID of the project to which the entities belong. - * @type string $namespace_id - * If not empty, the ID of the namespace to which the entities belong. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The ID of the project to which the entities belong. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * The ID of the project to which the entities belong. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * If not empty, the ID of the namespace to which the entities belong. - * - * Generated from protobuf field string namespace_id = 4; - * @return string - */ - public function getNamespaceId() - { - return $this->namespace_id; - } - - /** - * If not empty, the ID of the namespace to which the entities belong. - * - * Generated from protobuf field string namespace_id = 4; - * @param string $var - * @return $this - */ - public function setNamespaceId($var) - { - GPBUtil::checkString($var, True); - $this->namespace_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php deleted file mode 100644 index 3e157d333e06..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrimitiveTransformation.php +++ /dev/null @@ -1,438 +0,0 @@ -google.privacy.dlp.v2.PrimitiveTransformation - */ -class PrimitiveTransformation extends \Google\Protobuf\Internal\Message -{ - protected $transformation; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ReplaceValueConfig $replace_config - * Replace with a specified value. - * @type \Google\Cloud\Dlp\V2\RedactConfig $redact_config - * Redact - * @type \Google\Cloud\Dlp\V2\CharacterMaskConfig $character_mask_config - * Mask - * @type \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig $crypto_replace_ffx_fpe_config - * Ffx-Fpe - * @type \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig $fixed_size_bucketing_config - * Fixed size bucketing - * @type \Google\Cloud\Dlp\V2\BucketingConfig $bucketing_config - * Bucketing - * @type \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig $replace_with_info_type_config - * Replace with infotype - * @type \Google\Cloud\Dlp\V2\TimePartConfig $time_part_config - * Time extraction - * @type \Google\Cloud\Dlp\V2\CryptoHashConfig $crypto_hash_config - * Crypto - * @type \Google\Cloud\Dlp\V2\DateShiftConfig $date_shift_config - * Date Shift - * @type \Google\Cloud\Dlp\V2\CryptoDeterministicConfig $crypto_deterministic_config - * Deterministic Crypto - * @type \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig $replace_dictionary_config - * Replace with a value randomly drawn (with replacement) from a dictionary. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Replace with a specified value. - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceValueConfig replace_config = 1; - * @return \Google\Cloud\Dlp\V2\ReplaceValueConfig|null - */ - public function getReplaceConfig() - { - return $this->readOneof(1); - } - - public function hasReplaceConfig() - { - return $this->hasOneof(1); - } - - /** - * Replace with a specified value. - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceValueConfig replace_config = 1; - * @param \Google\Cloud\Dlp\V2\ReplaceValueConfig $var - * @return $this - */ - public function setReplaceConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ReplaceValueConfig::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Redact - * - * Generated from protobuf field .google.privacy.dlp.v2.RedactConfig redact_config = 2; - * @return \Google\Cloud\Dlp\V2\RedactConfig|null - */ - public function getRedactConfig() - { - return $this->readOneof(2); - } - - public function hasRedactConfig() - { - return $this->hasOneof(2); - } - - /** - * Redact - * - * Generated from protobuf field .google.privacy.dlp.v2.RedactConfig redact_config = 2; - * @param \Google\Cloud\Dlp\V2\RedactConfig $var - * @return $this - */ - public function setRedactConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RedactConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Mask - * - * Generated from protobuf field .google.privacy.dlp.v2.CharacterMaskConfig character_mask_config = 3; - * @return \Google\Cloud\Dlp\V2\CharacterMaskConfig|null - */ - public function getCharacterMaskConfig() - { - return $this->readOneof(3); - } - - public function hasCharacterMaskConfig() - { - return $this->hasOneof(3); - } - - /** - * Mask - * - * Generated from protobuf field .google.privacy.dlp.v2.CharacterMaskConfig character_mask_config = 3; - * @param \Google\Cloud\Dlp\V2\CharacterMaskConfig $var - * @return $this - */ - public function setCharacterMaskConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CharacterMaskConfig::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Ffx-Fpe - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4; - * @return \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig|null - */ - public function getCryptoReplaceFfxFpeConfig() - { - return $this->readOneof(4); - } - - public function hasCryptoReplaceFfxFpeConfig() - { - return $this->hasOneof(4); - } - - /** - * Ffx-Fpe - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoReplaceFfxFpeConfig crypto_replace_ffx_fpe_config = 4; - * @param \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig $var - * @return $this - */ - public function setCryptoReplaceFfxFpeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoReplaceFfxFpeConfig::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Fixed size bucketing - * - * Generated from protobuf field .google.privacy.dlp.v2.FixedSizeBucketingConfig fixed_size_bucketing_config = 5; - * @return \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig|null - */ - public function getFixedSizeBucketingConfig() - { - return $this->readOneof(5); - } - - public function hasFixedSizeBucketingConfig() - { - return $this->hasOneof(5); - } - - /** - * Fixed size bucketing - * - * Generated from protobuf field .google.privacy.dlp.v2.FixedSizeBucketingConfig fixed_size_bucketing_config = 5; - * @param \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig $var - * @return $this - */ - public function setFixedSizeBucketingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FixedSizeBucketingConfig::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Bucketing - * - * Generated from protobuf field .google.privacy.dlp.v2.BucketingConfig bucketing_config = 6; - * @return \Google\Cloud\Dlp\V2\BucketingConfig|null - */ - public function getBucketingConfig() - { - return $this->readOneof(6); - } - - public function hasBucketingConfig() - { - return $this->hasOneof(6); - } - - /** - * Bucketing - * - * Generated from protobuf field .google.privacy.dlp.v2.BucketingConfig bucketing_config = 6; - * @param \Google\Cloud\Dlp\V2\BucketingConfig $var - * @return $this - */ - public function setBucketingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BucketingConfig::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Replace with infotype - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7; - * @return \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig|null - */ - public function getReplaceWithInfoTypeConfig() - { - return $this->readOneof(7); - } - - public function hasReplaceWithInfoTypeConfig() - { - return $this->hasOneof(7); - } - - /** - * Replace with infotype - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceWithInfoTypeConfig replace_with_info_type_config = 7; - * @param \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig $var - * @return $this - */ - public function setReplaceWithInfoTypeConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ReplaceWithInfoTypeConfig::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Time extraction - * - * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig time_part_config = 8; - * @return \Google\Cloud\Dlp\V2\TimePartConfig|null - */ - public function getTimePartConfig() - { - return $this->readOneof(8); - } - - public function hasTimePartConfig() - { - return $this->hasOneof(8); - } - - /** - * Time extraction - * - * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig time_part_config = 8; - * @param \Google\Cloud\Dlp\V2\TimePartConfig $var - * @return $this - */ - public function setTimePartConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TimePartConfig::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Crypto - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoHashConfig crypto_hash_config = 9; - * @return \Google\Cloud\Dlp\V2\CryptoHashConfig|null - */ - public function getCryptoHashConfig() - { - return $this->readOneof(9); - } - - public function hasCryptoHashConfig() - { - return $this->hasOneof(9); - } - - /** - * Crypto - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoHashConfig crypto_hash_config = 9; - * @param \Google\Cloud\Dlp\V2\CryptoHashConfig $var - * @return $this - */ - public function setCryptoHashConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoHashConfig::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Date Shift - * - * Generated from protobuf field .google.privacy.dlp.v2.DateShiftConfig date_shift_config = 11; - * @return \Google\Cloud\Dlp\V2\DateShiftConfig|null - */ - public function getDateShiftConfig() - { - return $this->readOneof(11); - } - - public function hasDateShiftConfig() - { - return $this->hasOneof(11); - } - - /** - * Date Shift - * - * Generated from protobuf field .google.privacy.dlp.v2.DateShiftConfig date_shift_config = 11; - * @param \Google\Cloud\Dlp\V2\DateShiftConfig $var - * @return $this - */ - public function setDateShiftConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DateShiftConfig::class); - $this->writeOneof(11, $var); - - return $this; - } - - /** - * Deterministic Crypto - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoDeterministicConfig crypto_deterministic_config = 12; - * @return \Google\Cloud\Dlp\V2\CryptoDeterministicConfig|null - */ - public function getCryptoDeterministicConfig() - { - return $this->readOneof(12); - } - - public function hasCryptoDeterministicConfig() - { - return $this->hasOneof(12); - } - - /** - * Deterministic Crypto - * - * Generated from protobuf field .google.privacy.dlp.v2.CryptoDeterministicConfig crypto_deterministic_config = 12; - * @param \Google\Cloud\Dlp\V2\CryptoDeterministicConfig $var - * @return $this - */ - public function setCryptoDeterministicConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CryptoDeterministicConfig::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Replace with a value randomly drawn (with replacement) from a dictionary. - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceDictionaryConfig replace_dictionary_config = 13; - * @return \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig|null - */ - public function getReplaceDictionaryConfig() - { - return $this->readOneof(13); - } - - public function hasReplaceDictionaryConfig() - { - return $this->hasOneof(13); - } - - /** - * Replace with a value randomly drawn (with replacement) from a dictionary. - * - * Generated from protobuf field .google.privacy.dlp.v2.ReplaceDictionaryConfig replace_dictionary_config = 13; - * @param \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig $var - * @return $this - */ - public function setReplaceDictionaryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ReplaceDictionaryConfig::class); - $this->writeOneof(13, $var); - - return $this; - } - - /** - * @return string - */ - public function getTransformation() - { - return $this->whichOneof("transformation"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php deleted file mode 100644 index 8b9475f69955..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric.php +++ /dev/null @@ -1,240 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric - */ -class PrivacyMetric extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig $numerical_stats_config - * Numerical stats - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig $categorical_stats_config - * Categorical stats - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig $k_anonymity_config - * K-anonymity - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig $l_diversity_config - * l-diversity - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig $k_map_estimation_config - * k-map - * @type \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig $delta_presence_estimation_config - * delta-presence - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Numerical stats - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig|null - */ - public function getNumericalStatsConfig() - { - return $this->readOneof(1); - } - - public function hasNumericalStatsConfig() - { - return $this->hasOneof(1); - } - - /** - * Numerical stats - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig numerical_stats_config = 1; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig $var - * @return $this - */ - public function setNumericalStatsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\NumericalStatsConfig::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Categorical stats - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig|null - */ - public function getCategoricalStatsConfig() - { - return $this->readOneof(2); - } - - public function hasCategoricalStatsConfig() - { - return $this->hasOneof(2); - } - - /** - * Categorical stats - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig categorical_stats_config = 2; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig $var - * @return $this - */ - public function setCategoricalStatsConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\CategoricalStatsConfig::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * K-anonymity - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig|null - */ - public function getKAnonymityConfig() - { - return $this->readOneof(3); - } - - public function hasKAnonymityConfig() - { - return $this->hasOneof(3); - } - - /** - * K-anonymity - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig k_anonymity_config = 3; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig $var - * @return $this - */ - public function setKAnonymityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\KAnonymityConfig::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * l-diversity - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig|null - */ - public function getLDiversityConfig() - { - return $this->readOneof(4); - } - - public function hasLDiversityConfig() - { - return $this->hasOneof(4); - } - - /** - * l-diversity - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig l_diversity_config = 4; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig $var - * @return $this - */ - public function setLDiversityConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\LDiversityConfig::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * k-map - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig|null - */ - public function getKMapEstimationConfig() - { - return $this->readOneof(5); - } - - public function hasKMapEstimationConfig() - { - return $this->hasOneof(5); - } - - /** - * k-map - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig k_map_estimation_config = 5; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig $var - * @return $this - */ - public function setKMapEstimationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * delta-presence - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig|null - */ - public function getDeltaPresenceEstimationConfig() - { - return $this->readOneof(6); - } - - public function hasDeltaPresenceEstimationConfig() - { - return $this->hasOneof(6); - } - - /** - * delta-presence - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig delta_presence_estimation_config = 6; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig $var - * @return $this - */ - public function setDeltaPresenceEstimationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric\DeltaPresenceEstimationConfig::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php deleted file mode 100644 index d00835a5269d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/CategoricalStatsConfig.php +++ /dev/null @@ -1,93 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.CategoricalStatsConfig - */ -class CategoricalStatsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Field to compute categorical stats on. All column types are - * supported except for arrays and structs. However, it may be more - * informative to use NumericalStats when the field type is supported, - * depending on the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Field to compute categorical stats on. All column types are - * supported except for arrays and structs. However, it may be more - * informative to use NumericalStats when the field type is supported, - * depending on the data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Field to compute categorical stats on. All column types are - * supported except for arrays and structs. However, it may be more - * informative to use NumericalStats when the field type is supported, - * depending on the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Field to compute categorical stats on. All column types are - * supported except for arrays and structs. However, it may be more - * informative to use NumericalStats when the field type is supported, - * depending on the data. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CategoricalStatsConfig::class, \Google\Cloud\Dlp\V2\PrivacyMetric_CategoricalStatsConfig::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php deleted file mode 100644 index 101c63e5430c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/DeltaPresenceEstimationConfig.php +++ /dev/null @@ -1,161 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.DeltaPresenceEstimationConfig - */ -class DeltaPresenceEstimationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fields considered to be quasi-identifiers. No two fields can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $quasi_ids; - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - */ - protected $region_code = ''; - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers field must appear in exactly one - * field of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3; - */ - private $auxiliary_tables; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\QuasiId>|\Google\Protobuf\Internal\RepeatedField $quasi_ids - * Required. Fields considered to be quasi-identifiers. No two fields can - * have the same tag. - * @type string $region_code - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * @type array<\Google\Cloud\Dlp\V2\StatisticalTable>|\Google\Protobuf\Internal\RepeatedField $auxiliary_tables - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers field must appear in exactly one - * field of one auxiliary table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fields considered to be quasi-identifiers. No two fields can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Required. Fields considered to be quasi-identifiers. No two fields can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.QuasiId quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Dlp\V2\QuasiId>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\QuasiId::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers field must appear in exactly one - * field of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAuxiliaryTables() - { - return $this->auxiliary_tables; - } - - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers field must appear in exactly one - * field of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable auxiliary_tables = 3; - * @param array<\Google\Cloud\Dlp\V2\StatisticalTable>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAuxiliaryTables($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StatisticalTable::class); - $this->auxiliary_tables = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DeltaPresenceEstimationConfig::class, \Google\Cloud\Dlp\V2\PrivacyMetric_DeltaPresenceEstimationConfig::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php deleted file mode 100644 index 0628b25d574a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KAnonymityConfig.php +++ /dev/null @@ -1,162 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.KAnonymityConfig - */ -class KAnonymityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within - * a repeated field. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - */ - private $quasi_ids; - /** - * Message indicating that multiple rows might be associated to a - * single individual. If the same entity_id is associated to multiple - * quasi-identifier tuples over distinct rows, we consider the entire - * collection of tuples as the composite quasi-identifier. This collection - * is a multiset: the order in which the different tuples appear in the - * dataset is ignored, but their frequency is taken into account. - * Important note: a maximum of 1000 rows can be associated to a single - * entity ID. If more rows are associated with the same entity ID, some - * might be ignored. - * - * Generated from protobuf field .google.privacy.dlp.v2.EntityId entity_id = 2; - */ - protected $entity_id = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $quasi_ids - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within - * a repeated field. - * @type \Google\Cloud\Dlp\V2\EntityId $entity_id - * Message indicating that multiple rows might be associated to a - * single individual. If the same entity_id is associated to multiple - * quasi-identifier tuples over distinct rows, we consider the entire - * collection of tuples as the composite quasi-identifier. This collection - * is a multiset: the order in which the different tuples appear in the - * dataset is ignored, but their frequency is taken into account. - * Important note: a maximum of 1000 rows can be associated to a single - * entity ID. If more rows are associated with the same entity ID, some - * might be ignored. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within - * a repeated field. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Set of fields to compute k-anonymity over. When multiple fields are - * specified, they are considered a single composite key. Structs and - * repeated data types are not supported; however, nested fields are - * supported so long as they are not structs themselves or nested within - * a repeated field. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * Message indicating that multiple rows might be associated to a - * single individual. If the same entity_id is associated to multiple - * quasi-identifier tuples over distinct rows, we consider the entire - * collection of tuples as the composite quasi-identifier. This collection - * is a multiset: the order in which the different tuples appear in the - * dataset is ignored, but their frequency is taken into account. - * Important note: a maximum of 1000 rows can be associated to a single - * entity ID. If more rows are associated with the same entity ID, some - * might be ignored. - * - * Generated from protobuf field .google.privacy.dlp.v2.EntityId entity_id = 2; - * @return \Google\Cloud\Dlp\V2\EntityId|null - */ - public function getEntityId() - { - return $this->entity_id; - } - - public function hasEntityId() - { - return isset($this->entity_id); - } - - public function clearEntityId() - { - unset($this->entity_id); - } - - /** - * Message indicating that multiple rows might be associated to a - * single individual. If the same entity_id is associated to multiple - * quasi-identifier tuples over distinct rows, we consider the entire - * collection of tuples as the composite quasi-identifier. This collection - * is a multiset: the order in which the different tuples appear in the - * dataset is ignored, but their frequency is taken into account. - * Important note: a maximum of 1000 rows can be associated to a single - * entity ID. If more rows are associated with the same entity ID, some - * might be ignored. - * - * Generated from protobuf field .google.privacy.dlp.v2.EntityId entity_id = 2; - * @param \Google\Cloud\Dlp\V2\EntityId $var - * @return $this - */ - public function setEntityId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\EntityId::class); - $this->entity_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KAnonymityConfig::class, \Google\Cloud\Dlp\V2\PrivacyMetric_KAnonymityConfig::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php deleted file mode 100644 index 036f106c6a86..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig.php +++ /dev/null @@ -1,163 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig - */ -class KMapEstimationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Fields considered to be quasi-identifiers. No two columns can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $quasi_ids; - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - */ - protected $region_code = ''; - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3; - */ - private $auxiliary_tables; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField>|\Google\Protobuf\Internal\RepeatedField $quasi_ids - * Required. Fields considered to be quasi-identifiers. No two columns can - * have the same tag. - * @type string $region_code - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * @type array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable>|\Google\Protobuf\Internal\RepeatedField $auxiliary_tables - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Fields considered to be quasi-identifiers. No two columns can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Required. Fields considered to be quasi-identifiers. No two columns can - * have the same tag. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\TaggedField::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - * @return string - */ - public function getRegionCode() - { - return $this->region_code; - } - - /** - * ISO 3166-1 alpha-2 region code to use in the statistical modeling. - * Set if no column is tagged with a region-specific InfoType (like - * US_ZIP_5) or a region code. - * - * Generated from protobuf field string region_code = 2; - * @param string $var - * @return $this - */ - public function setRegionCode($var) - { - GPBUtil::checkString($var, True); - $this->region_code = $var; - - return $this; - } - - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAuxiliaryTables() - { - return $this->auxiliary_tables; - } - - /** - * Several auxiliary tables can be used in the analysis. Each custom_tag - * used to tag a quasi-identifiers column must appear in exactly one column - * of one auxiliary table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable auxiliary_tables = 3; - * @param array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAuxiliaryTables($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable::class); - $this->auxiliary_tables = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(KMapEstimationConfig::class, \Google\Cloud\Dlp\V2\PrivacyMetric_KMapEstimationConfig::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php deleted file mode 100644 index 339b644973ef..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable.php +++ /dev/null @@ -1,168 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable - */ -class AuxiliaryTable extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table = null; - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $quasi_ids; - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $relative_frequency = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table - * Required. Auxiliary table location. - * @type array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField>|\Google\Protobuf\Internal\RepeatedField $quasi_ids - * Required. Quasi-identifier columns. - * @type \Google\Cloud\Dlp\V2\FieldId $relative_frequency - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTable() - { - return $this->table; - } - - public function hasTable() - { - return isset($this->table); - } - - public function clearTable() - { - unset($this->table); - } - - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->table = $var; - - return $this; - } - - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\PrivacyMetric\KMapEstimationConfig\AuxiliaryTable\QuasiIdField::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getRelativeFrequency() - { - return $this->relative_frequency; - } - - public function hasRelativeFrequency() - { - return isset($this->relative_frequency); - } - - public function clearRelativeFrequency() - { - unset($this->relative_frequency); - } - - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setRelativeFrequency($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->relative_frequency = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AuxiliaryTable::class, \Google\Cloud\Dlp\V2\PrivacyMetric_KMapEstimationConfig_AuxiliaryTable::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php deleted file mode 100644 index b82e7afcb51f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/AuxiliaryTable/QuasiIdField.php +++ /dev/null @@ -1,115 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.AuxiliaryTable.QuasiIdField - */ -class QuasiIdField extends \Google\Protobuf\Internal\Message -{ - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - /** - * A auxiliary field. - * - * Generated from protobuf field string custom_tag = 2; - */ - protected $custom_tag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Identifies the column. - * @type string $custom_tag - * A auxiliary field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * A auxiliary field. - * - * Generated from protobuf field string custom_tag = 2; - * @return string - */ - public function getCustomTag() - { - return $this->custom_tag; - } - - /** - * A auxiliary field. - * - * Generated from protobuf field string custom_tag = 2; - * @param string $var - * @return $this - */ - public function setCustomTag($var) - { - GPBUtil::checkString($var, True); - $this->custom_tag = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QuasiIdField::class, \Google\Cloud\Dlp\V2\PrivacyMetric_KMapEstimationConfig_AuxiliaryTable_QuasiIdField::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php deleted file mode 100644 index 8de01c61e6ae..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/KMapEstimationConfig/TaggedField.php +++ /dev/null @@ -1,209 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.KMapEstimationConfig.TaggedField - */ -class TaggedField extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = null; - protected $tag; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Required. Identifies the column. - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * @type string $custom_tag - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column (below). - * @type \Google\Protobuf\GPBEmpty $inferred - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->readOneof(2); - } - - public function hasInfoType() - { - return $this->hasOneof(2); - } - - /** - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column (below). - * - * Generated from protobuf field string custom_tag = 3; - * @return string - */ - public function getCustomTag() - { - return $this->readOneof(3); - } - - public function hasCustomTag() - { - return $this->hasOneof(3); - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column (below). - * - * Generated from protobuf field string custom_tag = 3; - * @param string $var - * @return $this - */ - public function setCustomTag($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * - * Generated from protobuf field .google.protobuf.Empty inferred = 4; - * @return \Google\Protobuf\GPBEmpty|null - */ - public function getInferred() - { - return $this->readOneof(4); - } - - public function hasInferred() - { - return $this->hasOneof(4); - } - - /** - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * - * Generated from protobuf field .google.protobuf.Empty inferred = 4; - * @param \Google\Protobuf\GPBEmpty $var - * @return $this - */ - public function setInferred($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\GPBEmpty::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getTag() - { - return $this->whichOneof("tag"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TaggedField::class, \Google\Cloud\Dlp\V2\PrivacyMetric_KMapEstimationConfig_TaggedField::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php deleted file mode 100644 index f75061de054d..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/LDiversityConfig.php +++ /dev/null @@ -1,122 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.LDiversityConfig - */ -class LDiversityConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Set of quasi-identifiers indicating how equivalence classes are - * defined for the l-diversity computation. When multiple fields are - * specified, they are considered a single composite key. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - */ - private $quasi_ids; - /** - * Sensitive field for computing the l-value. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId sensitive_attribute = 2; - */ - protected $sensitive_attribute = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $quasi_ids - * Set of quasi-identifiers indicating how equivalence classes are - * defined for the l-diversity computation. When multiple fields are - * specified, they are considered a single composite key. - * @type \Google\Cloud\Dlp\V2\FieldId $sensitive_attribute - * Sensitive field for computing the l-value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set of quasi-identifiers indicating how equivalence classes are - * defined for the l-diversity computation. When multiple fields are - * specified, they are considered a single composite key. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Set of quasi-identifiers indicating how equivalence classes are - * defined for the l-diversity computation. When multiple fields are - * specified, they are considered a single composite key. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId quasi_ids = 1; - * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * Sensitive field for computing the l-value. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId sensitive_attribute = 2; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getSensitiveAttribute() - { - return $this->sensitive_attribute; - } - - public function hasSensitiveAttribute() - { - return isset($this->sensitive_attribute); - } - - public function clearSensitiveAttribute() - { - unset($this->sensitive_attribute); - } - - /** - * Sensitive field for computing the l-value. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId sensitive_attribute = 2; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setSensitiveAttribute($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->sensitive_attribute = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LDiversityConfig::class, \Google\Cloud\Dlp\V2\PrivacyMetric_LDiversityConfig::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php deleted file mode 100644 index 95efdae391d6..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/PrivacyMetric/NumericalStatsConfig.php +++ /dev/null @@ -1,85 +0,0 @@ -google.privacy.dlp.v2.PrivacyMetric.NumericalStatsConfig - */ -class NumericalStatsConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Field to compute numerical stats on. Supported types are - * integer, float, date, datetime, timestamp, time. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Field to compute numerical stats on. Supported types are - * integer, float, date, datetime, timestamp, time. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Field to compute numerical stats on. Supported types are - * integer, float, date, datetime, timestamp, time. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Field to compute numerical stats on. Supported types are - * integer, float, date, datetime, timestamp, time. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NumericalStatsConfig::class, \Google\Cloud\Dlp\V2\PrivacyMetric_NumericalStatsConfig::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php deleted file mode 100644 index 73cc6d4dd013..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileGeneration.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.ProfileGeneration - */ -class ProfileGeneration -{ - /** - * Unused. - * - * Generated from protobuf enum PROFILE_GENERATION_UNSPECIFIED = 0; - */ - const PROFILE_GENERATION_UNSPECIFIED = 0; - /** - * The profile is the first profile for the resource. - * - * Generated from protobuf enum PROFILE_GENERATION_NEW = 1; - */ - const PROFILE_GENERATION_NEW = 1; - /** - * The profile is an update to a previous profile. - * - * Generated from protobuf enum PROFILE_GENERATION_UPDATE = 2; - */ - const PROFILE_GENERATION_UPDATE = 2; - - private static $valueToName = [ - self::PROFILE_GENERATION_UNSPECIFIED => 'PROFILE_GENERATION_UNSPECIFIED', - self::PROFILE_GENERATION_NEW => 'PROFILE_GENERATION_NEW', - self::PROFILE_GENERATION_UPDATE => 'PROFILE_GENERATION_UPDATE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php deleted file mode 100644 index efc705b0d043..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProfileStatus.php +++ /dev/null @@ -1,125 +0,0 @@ -google.privacy.dlp.v2.ProfileStatus - */ -class ProfileStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Profiling status code and optional message. The `status.code` value is 0 - * (default value) for OK. - * - * Generated from protobuf field .google.rpc.Status status = 1; - */ - protected $status = null; - /** - * Time when the profile generation status was updated - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - */ - protected $timestamp = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Rpc\Status $status - * Profiling status code and optional message. The `status.code` value is 0 - * (default value) for OK. - * @type \Google\Protobuf\Timestamp $timestamp - * Time when the profile generation status was updated - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Profiling status code and optional message. The `status.code` value is 0 - * (default value) for OK. - * - * Generated from protobuf field .google.rpc.Status status = 1; - * @return \Google\Rpc\Status|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * Profiling status code and optional message. The `status.code` value is 0 - * (default value) for OK. - * - * Generated from protobuf field .google.rpc.Status status = 1; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->status = $var; - - return $this; - } - - /** - * Time when the profile generation status was updated - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimestamp() - { - return $this->timestamp; - } - - public function hasTimestamp() - { - return isset($this->timestamp); - } - - public function clearTimestamp() - { - unset($this->timestamp); - } - - /** - * Time when the profile generation status was updated - * - * Generated from protobuf field .google.protobuf.Timestamp timestamp = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->timestamp = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php deleted file mode 100644 index 515e53827d29..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ProjectDataProfile.php +++ /dev/null @@ -1,346 +0,0 @@ -google.privacy.dlp.v2.ProjectDataProfile - */ -class ProjectDataProfile extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the profile. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Project ID or account that was profiled. - * - * Generated from protobuf field string project_id = 2; - */ - protected $project_id = ''; - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - */ - protected $profile_last_generated = null; - /** - * The sensitivity score of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; - */ - protected $sensitivity_score = null; - /** - * The data risk level of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; - */ - protected $data_risk_level = null; - /** - * Success or error status of the last attempt to profile the project. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 7; - */ - protected $profile_status = null; - /** - * The number of table data profiles generated for this project. - * - * Generated from protobuf field int64 table_data_profile_count = 9; - */ - protected $table_data_profile_count = 0; - /** - * The number of file store data profiles generated for this project. - * - * Generated from protobuf field int64 file_store_data_profile_count = 10; - */ - protected $file_store_data_profile_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the profile. - * @type string $project_id - * Project ID or account that was profiled. - * @type \Google\Protobuf\Timestamp $profile_last_generated - * The last time the profile was generated. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The sensitivity score of this project. - * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level - * The data risk level of this project. - * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status - * Success or error status of the last attempt to profile the project. - * @type int|string $table_data_profile_count - * The number of table data profiles generated for this project. - * @type int|string $file_store_data_profile_count - * The number of file store data profiles generated for this project. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the profile. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the profile. - * - * 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; - } - - /** - * Project ID or account that was profiled. - * - * Generated from protobuf field string project_id = 2; - * @return string - */ - public function getProjectId() - { - return $this->project_id; - } - - /** - * Project ID or account that was profiled. - * - * Generated from protobuf field string project_id = 2; - * @param string $var - * @return $this - */ - public function setProjectId($var) - { - GPBUtil::checkString($var, True); - $this->project_id = $var; - - return $this; - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getProfileLastGenerated() - { - return $this->profile_last_generated; - } - - public function hasProfileLastGenerated() - { - return isset($this->profile_last_generated); - } - - public function clearProfileLastGenerated() - { - unset($this->profile_last_generated); - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setProfileLastGenerated($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->profile_last_generated = $var; - - return $this; - } - - /** - * The sensitivity score of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The sensitivity score of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 4; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * The data risk level of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; - * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null - */ - public function getDataRiskLevel() - { - return $this->data_risk_level; - } - - public function hasDataRiskLevel() - { - return isset($this->data_risk_level); - } - - public function clearDataRiskLevel() - { - unset($this->data_risk_level); - } - - /** - * The data risk level of this project. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 5; - * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var - * @return $this - */ - public function setDataRiskLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); - $this->data_risk_level = $var; - - return $this; - } - - /** - * Success or error status of the last attempt to profile the project. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 7; - * @return \Google\Cloud\Dlp\V2\ProfileStatus|null - */ - public function getProfileStatus() - { - return $this->profile_status; - } - - public function hasProfileStatus() - { - return isset($this->profile_status); - } - - public function clearProfileStatus() - { - unset($this->profile_status); - } - - /** - * Success or error status of the last attempt to profile the project. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 7; - * @param \Google\Cloud\Dlp\V2\ProfileStatus $var - * @return $this - */ - public function setProfileStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); - $this->profile_status = $var; - - return $this; - } - - /** - * The number of table data profiles generated for this project. - * - * Generated from protobuf field int64 table_data_profile_count = 9; - * @return int|string - */ - public function getTableDataProfileCount() - { - return $this->table_data_profile_count; - } - - /** - * The number of table data profiles generated for this project. - * - * Generated from protobuf field int64 table_data_profile_count = 9; - * @param int|string $var - * @return $this - */ - public function setTableDataProfileCount($var) - { - GPBUtil::checkInt64($var); - $this->table_data_profile_count = $var; - - return $this; - } - - /** - * The number of file store data profiles generated for this project. - * - * Generated from protobuf field int64 file_store_data_profile_count = 10; - * @return int|string - */ - public function getFileStoreDataProfileCount() - { - return $this->file_store_data_profile_count; - } - - /** - * The number of file store data profiles generated for this project. - * - * Generated from protobuf field int64 file_store_data_profile_count = 10; - * @param int|string $var - * @return $this - */ - public function setFileStoreDataProfileCount($var) - { - GPBUtil::checkInt64($var); - $this->file_store_data_profile_count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php deleted file mode 100644 index 032c8e8a2cde..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuasiId.php +++ /dev/null @@ -1,206 +0,0 @@ -google.privacy.dlp.v2.QuasiId - */ -class QuasiId extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = null; - protected $tag; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Required. Identifies the column. - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * @type string $custom_tag - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column (below). - * @type \Google\Protobuf\GPBEmpty $inferred - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Required. Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->readOneof(2); - } - - public function hasInfoType() - { - return $this->hasOneof(2); - } - - /** - * A column can be tagged with a InfoType to use the relevant public - * dataset as a statistical model of population, if available. We - * currently support US ZIP codes, region codes, ages and genders. - * To programmatically obtain the list of supported InfoTypes, use - * ListInfoTypes with the supported_by=RISK_ANALYSIS filter. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 2; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column (below). - * - * Generated from protobuf field string custom_tag = 3; - * @return string - */ - public function getCustomTag() - { - return $this->readOneof(3); - } - - public function hasCustomTag() - { - return $this->hasOneof(3); - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column (below). - * - * Generated from protobuf field string custom_tag = 3; - * @param string $var - * @return $this - */ - public function setCustomTag($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * - * Generated from protobuf field .google.protobuf.Empty inferred = 4; - * @return \Google\Protobuf\GPBEmpty|null - */ - public function getInferred() - { - return $this->readOneof(4); - } - - public function hasInferred() - { - return $this->hasOneof(4); - } - - /** - * If no semantic tag is indicated, we infer the statistical model from - * the distribution of values in the input data - * - * Generated from protobuf field .google.protobuf.Empty inferred = 4; - * @param \Google\Protobuf\GPBEmpty $var - * @return $this - */ - public function setInferred($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\GPBEmpty::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getTag() - { - return $this->whichOneof("tag"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php deleted file mode 100644 index f33288a3dbcc..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/QuoteInfo.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.QuoteInfo - */ -class QuoteInfo extends \Google\Protobuf\Internal\Message -{ - protected $parsed_quote; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DateTime $date_time - * The date time indicated by the quote. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The date time indicated by the quote. - * - * Generated from protobuf field .google.privacy.dlp.v2.DateTime date_time = 2; - * @return \Google\Cloud\Dlp\V2\DateTime|null - */ - public function getDateTime() - { - return $this->readOneof(2); - } - - public function hasDateTime() - { - return $this->hasOneof(2); - } - - /** - * The date time indicated by the quote. - * - * Generated from protobuf field .google.privacy.dlp.v2.DateTime date_time = 2; - * @param \Google\Cloud\Dlp\V2\DateTime $var - * @return $this - */ - public function setDateTime($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DateTime::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getParsedQuote() - { - return $this->whichOneof("parsed_quote"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php deleted file mode 100644 index c7f695bcb24f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Range.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.Range - */ -class Range extends \Google\Protobuf\Internal\Message -{ - /** - * Index of the first character of the range (inclusive). - * - * Generated from protobuf field int64 start = 1; - */ - protected $start = 0; - /** - * Index of the last character of the range (exclusive). - * - * Generated from protobuf field int64 end = 2; - */ - protected $end = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $start - * Index of the first character of the range (inclusive). - * @type int|string $end - * Index of the last character of the range (exclusive). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Index of the first character of the range (inclusive). - * - * Generated from protobuf field int64 start = 1; - * @return int|string - */ - public function getStart() - { - return $this->start; - } - - /** - * Index of the first character of the range (inclusive). - * - * Generated from protobuf field int64 start = 1; - * @param int|string $var - * @return $this - */ - public function setStart($var) - { - GPBUtil::checkInt64($var); - $this->start = $var; - - return $this; - } - - /** - * Index of the last character of the range (exclusive). - * - * Generated from protobuf field int64 end = 2; - * @return int|string - */ - public function getEnd() - { - return $this->end; - } - - /** - * Index of the last character of the range (exclusive). - * - * Generated from protobuf field int64 end = 2; - * @param int|string $var - * @return $this - */ - public function setEnd($var) - { - GPBUtil::checkInt64($var); - $this->end = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php deleted file mode 100644 index 8d4ffb088b55..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition.php +++ /dev/null @@ -1,78 +0,0 @@ -google.privacy.dlp.v2.RecordCondition - */ -class RecordCondition extends \Google\Protobuf\Internal\Message -{ - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions expressions = 3; - */ - protected $expressions = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\RecordCondition\Expressions $expressions - * An expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions expressions = 3; - * @return \Google\Cloud\Dlp\V2\RecordCondition\Expressions|null - */ - public function getExpressions() - { - return $this->expressions; - } - - public function hasExpressions() - { - return isset($this->expressions); - } - - public function clearExpressions() - { - unset($this->expressions); - } - - /** - * An expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions expressions = 3; - * @param \Google\Cloud\Dlp\V2\RecordCondition\Expressions $var - * @return $this - */ - public function setExpressions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition\Expressions::class); - $this->expressions = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php deleted file mode 100644 index b1f05c356b4e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Condition.php +++ /dev/null @@ -1,174 +0,0 @@ -google.privacy.dlp.v2.RecordCondition.Condition - */ -class Condition extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field within the record this condition is evaluated against. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $field = null; - /** - * Required. Operator used to compare the field or infoType to the value. - * - * Generated from protobuf field .google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $operator = 0; - /** - * Value to compare against. [Mandatory, except for `EXISTS` tests.] - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 4; - */ - protected $value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Required. Field within the record this condition is evaluated against. - * @type int $operator - * Required. Operator used to compare the field or infoType to the value. - * @type \Google\Cloud\Dlp\V2\Value $value - * Value to compare against. [Mandatory, except for `EXISTS` tests.] - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field within the record this condition is evaluated against. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Required. Field within the record this condition is evaluated against. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * Required. Operator used to compare the field or infoType to the value. - * - * Generated from protobuf field .google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getOperator() - { - return $this->operator; - } - - /** - * Required. Operator used to compare the field or infoType to the value. - * - * Generated from protobuf field .google.privacy.dlp.v2.RelationalOperator operator = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\RelationalOperator::class); - $this->operator = $var; - - return $this; - } - - /** - * Value to compare against. [Mandatory, except for `EXISTS` tests.] - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 4; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * Value to compare against. [Mandatory, except for `EXISTS` tests.] - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 4; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->value = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Condition::class, \Google\Cloud\Dlp\V2\RecordCondition_Condition::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php deleted file mode 100644 index 29e0ab591806..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Conditions.php +++ /dev/null @@ -1,70 +0,0 @@ -google.privacy.dlp.v2.RecordCondition.Conditions - */ -class Conditions extends \Google\Protobuf\Internal\Message -{ - /** - * A collection of conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordCondition.Condition conditions = 1; - */ - private $conditions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\RecordCondition\Condition>|\Google\Protobuf\Internal\RepeatedField $conditions - * A collection of conditions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A collection of conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordCondition.Condition conditions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * A collection of conditions. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordCondition.Condition conditions = 1; - * @param array<\Google\Cloud\Dlp\V2\RecordCondition\Condition>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RecordCondition\Condition::class); - $this->conditions = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Conditions::class, \Google\Cloud\Dlp\V2\RecordCondition_Conditions::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php deleted file mode 100644 index eccccbd1959e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions.php +++ /dev/null @@ -1,116 +0,0 @@ -google.privacy.dlp.v2.RecordCondition.Expressions - */ -class Expressions extends \Google\Protobuf\Internal\Message -{ - /** - * The operator to apply to the result of conditions. Default and currently - * only supported value is `AND`. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator logical_operator = 1; - */ - protected $logical_operator = 0; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $logical_operator - * The operator to apply to the result of conditions. Default and currently - * only supported value is `AND`. - * @type \Google\Cloud\Dlp\V2\RecordCondition\Conditions $conditions - * Conditions to apply to the expression. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The operator to apply to the result of conditions. Default and currently - * only supported value is `AND`. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator logical_operator = 1; - * @return int - */ - public function getLogicalOperator() - { - return $this->logical_operator; - } - - /** - * The operator to apply to the result of conditions. Default and currently - * only supported value is `AND`. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator logical_operator = 1; - * @param int $var - * @return $this - */ - public function setLogicalOperator($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\RecordCondition\Expressions\LogicalOperator::class); - $this->logical_operator = $var; - - return $this; - } - - /** - * Conditions to apply to the expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Conditions conditions = 3; - * @return \Google\Cloud\Dlp\V2\RecordCondition\Conditions|null - */ - public function getConditions() - { - return $this->readOneof(3); - } - - public function hasConditions() - { - return $this->hasOneof(3); - } - - /** - * Conditions to apply to the expression. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition.Conditions conditions = 3; - * @param \Google\Cloud\Dlp\V2\RecordCondition\Conditions $var - * @return $this - */ - public function setConditions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition\Conditions::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Expressions::class, \Google\Cloud\Dlp\V2\RecordCondition_Expressions::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php deleted file mode 100644 index aeb6e0286883..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordCondition/Expressions/LogicalOperator.php +++ /dev/null @@ -1,61 +0,0 @@ -google.privacy.dlp.v2.RecordCondition.Expressions.LogicalOperator - */ -class LogicalOperator -{ - /** - * Unused - * - * Generated from protobuf enum LOGICAL_OPERATOR_UNSPECIFIED = 0; - */ - const LOGICAL_OPERATOR_UNSPECIFIED = 0; - /** - * Conditional AND - * - * Generated from protobuf enum AND = 1; - */ - const PBAND = 1; - - private static $valueToName = [ - self::LOGICAL_OPERATOR_UNSPECIFIED => 'LOGICAL_OPERATOR_UNSPECIFIED', - self::PBAND => 'AND', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has 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(LogicalOperator::class, \Google\Cloud\Dlp\V2\RecordCondition_Expressions_LogicalOperator::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php deleted file mode 100644 index 12d649962d53..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordKey.php +++ /dev/null @@ -1,146 +0,0 @@ -google.privacy.dlp.v2.RecordKey - */ -class RecordKey extends \Google\Protobuf\Internal\Message -{ - /** - * Values of identifying columns in the given row. Order of values matches - * the order of `identifying_fields` specified in the scanning request. - * - * Generated from protobuf field repeated string id_values = 5; - */ - private $id_values; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DatastoreKey $datastore_key - * BigQuery key - * @type \Google\Cloud\Dlp\V2\BigQueryKey $big_query_key - * Datastore key - * @type array|\Google\Protobuf\Internal\RepeatedField $id_values - * Values of identifying columns in the given row. Order of values matches - * the order of `identifying_fields` specified in the scanning request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * BigQuery key - * - * Generated from protobuf field .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; - * @return \Google\Cloud\Dlp\V2\DatastoreKey|null - */ - public function getDatastoreKey() - { - return $this->readOneof(2); - } - - public function hasDatastoreKey() - { - return $this->hasOneof(2); - } - - /** - * BigQuery key - * - * Generated from protobuf field .google.privacy.dlp.v2.DatastoreKey datastore_key = 2; - * @param \Google\Cloud\Dlp\V2\DatastoreKey $var - * @return $this - */ - public function setDatastoreKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatastoreKey::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Datastore key - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; - * @return \Google\Cloud\Dlp\V2\BigQueryKey|null - */ - public function getBigQueryKey() - { - return $this->readOneof(3); - } - - public function hasBigQueryKey() - { - return $this->hasOneof(3); - } - - /** - * Datastore key - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryKey big_query_key = 3; - * @param \Google\Cloud\Dlp\V2\BigQueryKey $var - * @return $this - */ - public function setBigQueryKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryKey::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Values of identifying columns in the given row. Order of values matches - * the order of `identifying_fields` specified in the scanning request. - * - * Generated from protobuf field repeated string id_values = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIdValues() - { - return $this->id_values; - } - - /** - * Values of identifying columns in the given row. Order of values matches - * the order of `identifying_fields` specified in the scanning request. - * - * Generated from protobuf field repeated string id_values = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIdValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->id_values = $arr; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php deleted file mode 100644 index 08d3831c17e8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordLocation.php +++ /dev/null @@ -1,165 +0,0 @@ -google.privacy.dlp.v2.RecordLocation - */ -class RecordLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Key of the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordKey record_key = 1; - */ - protected $record_key = null; - /** - * Field id of the field containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 2; - */ - protected $field_id = null; - /** - * Location within a `ContentItem.Table`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableLocation table_location = 3; - */ - protected $table_location = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\RecordKey $record_key - * Key of the finding. - * @type \Google\Cloud\Dlp\V2\FieldId $field_id - * Field id of the field containing the finding. - * @type \Google\Cloud\Dlp\V2\TableLocation $table_location - * Location within a `ContentItem.Table`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Key of the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordKey record_key = 1; - * @return \Google\Cloud\Dlp\V2\RecordKey|null - */ - public function getRecordKey() - { - return $this->record_key; - } - - public function hasRecordKey() - { - return isset($this->record_key); - } - - public function clearRecordKey() - { - unset($this->record_key); - } - - /** - * Key of the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordKey record_key = 1; - * @param \Google\Cloud\Dlp\V2\RecordKey $var - * @return $this - */ - public function setRecordKey($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordKey::class); - $this->record_key = $var; - - return $this; - } - - /** - * Field id of the field containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 2; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getFieldId() - { - return $this->field_id; - } - - public function hasFieldId() - { - return isset($this->field_id); - } - - public function clearFieldId() - { - unset($this->field_id); - } - - /** - * Field id of the field containing the finding. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 2; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setFieldId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field_id = $var; - - return $this; - } - - /** - * Location within a `ContentItem.Table`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableLocation table_location = 3; - * @return \Google\Cloud\Dlp\V2\TableLocation|null - */ - public function getTableLocation() - { - return $this->table_location; - } - - public function hasTableLocation() - { - return isset($this->table_location); - } - - public function clearTableLocation() - { - unset($this->table_location); - } - - /** - * Location within a `ContentItem.Table`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableLocation table_location = 3; - * @param \Google\Cloud\Dlp\V2\TableLocation $var - * @return $this - */ - public function setTableLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TableLocation::class); - $this->table_location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php deleted file mode 100644 index 3a6d09b1bbce..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordSuppression.php +++ /dev/null @@ -1,82 +0,0 @@ -google.privacy.dlp.v2.RecordSuppression - */ -class RecordSuppression extends \Google\Protobuf\Internal\Message -{ - /** - * A condition that when it evaluates to true will result in the record being - * evaluated to be suppressed from the transformed content. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 1; - */ - protected $condition = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\RecordCondition $condition - * A condition that when it evaluates to true will result in the record being - * evaluated to be suppressed from the transformed content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A condition that when it evaluates to true will result in the record being - * evaluated to be suppressed from the transformed content. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 1; - * @return \Google\Cloud\Dlp\V2\RecordCondition|null - */ - public function getCondition() - { - return $this->condition; - } - - public function hasCondition() - { - return isset($this->condition); - } - - public function clearCondition() - { - unset($this->condition); - } - - /** - * A condition that when it evaluates to true will result in the record being - * evaluated to be suppressed from the transformed content. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordCondition condition = 1; - * @param \Google\Cloud\Dlp\V2\RecordCondition $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordCondition::class); - $this->condition = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php deleted file mode 100644 index e802da478496..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformation.php +++ /dev/null @@ -1,155 +0,0 @@ -google.privacy.dlp.v2.RecordTransformation - */ -class RecordTransformation extends \Google\Protobuf\Internal\Message -{ - /** - * For record transformations, provide a field. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 1; - */ - protected $field_id = null; - /** - * Findings container modification timestamp, if applicable. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 2; - */ - protected $container_timestamp = null; - /** - * Container version, if available ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 3; - */ - protected $container_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field_id - * For record transformations, provide a field. - * @type \Google\Protobuf\Timestamp $container_timestamp - * Findings container modification timestamp, if applicable. - * @type string $container_version - * Container version, if available ("generation" for Cloud Storage). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * For record transformations, provide a field. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getFieldId() - { - return $this->field_id; - } - - public function hasFieldId() - { - return isset($this->field_id); - } - - public function clearFieldId() - { - unset($this->field_id); - } - - /** - * For record transformations, provide a field. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field_id = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setFieldId($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field_id = $var; - - return $this; - } - - /** - * Findings container modification timestamp, if applicable. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 2; - * @return \Google\Protobuf\Timestamp|null - */ - public function getContainerTimestamp() - { - return $this->container_timestamp; - } - - public function hasContainerTimestamp() - { - return isset($this->container_timestamp); - } - - public function clearContainerTimestamp() - { - unset($this->container_timestamp); - } - - /** - * Findings container modification timestamp, if applicable. - * - * Generated from protobuf field .google.protobuf.Timestamp container_timestamp = 2; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setContainerTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->container_timestamp = $var; - - return $this; - } - - /** - * Container version, if available ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 3; - * @return string - */ - public function getContainerVersion() - { - return $this->container_version; - } - - /** - * Container version, if available ("generation" for Cloud Storage). - * - * Generated from protobuf field string container_version = 3; - * @param string $var - * @return $this - */ - public function setContainerVersion($var) - { - GPBUtil::checkString($var, True); - $this->container_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php deleted file mode 100644 index 33498ce84dd7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RecordTransformations.php +++ /dev/null @@ -1,106 +0,0 @@ -google.privacy.dlp.v2.RecordTransformations - */ -class RecordTransformations extends \Google\Protobuf\Internal\Message -{ - /** - * Transform the record by applying various field transformations. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 1; - */ - private $field_transformations; - /** - * Configuration defining which records get suppressed entirely. Records that - * match any suppression rule are omitted from the output. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordSuppression record_suppressions = 2; - */ - private $record_suppressions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\FieldTransformation>|\Google\Protobuf\Internal\RepeatedField $field_transformations - * Transform the record by applying various field transformations. - * @type array<\Google\Cloud\Dlp\V2\RecordSuppression>|\Google\Protobuf\Internal\RepeatedField $record_suppressions - * Configuration defining which records get suppressed entirely. Records that - * match any suppression rule are omitted from the output. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Transform the record by applying various field transformations. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFieldTransformations() - { - return $this->field_transformations; - } - - /** - * Transform the record by applying various field transformations. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 1; - * @param array<\Google\Cloud\Dlp\V2\FieldTransformation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFieldTransformations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldTransformation::class); - $this->field_transformations = $arr; - - return $this; - } - - /** - * Configuration defining which records get suppressed entirely. Records that - * match any suppression rule are omitted from the output. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordSuppression record_suppressions = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRecordSuppressions() - { - return $this->record_suppressions; - } - - /** - * Configuration defining which records get suppressed entirely. Records that - * match any suppression rule are omitted from the output. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RecordSuppression record_suppressions = 2; - * @param array<\Google\Cloud\Dlp\V2\RecordSuppression>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRecordSuppressions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RecordSuppression::class); - $this->record_suppressions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php deleted file mode 100644 index 79729a849f20..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactConfig.php +++ /dev/null @@ -1,35 +0,0 @@ -google.privacy.dlp.v2.RedactConfig - */ -class RedactConfig extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php deleted file mode 100644 index 2945c3f50873..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest.php +++ /dev/null @@ -1,306 +0,0 @@ -google.privacy.dlp.v2.RedactImageRequest - */ -class RedactImageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 8; - */ - protected $location_id = ''; - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - */ - protected $inspect_config = null; - /** - * The configuration for specifying what content to redact from images. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5; - */ - private $image_redaction_configs; - /** - * Whether the response should include findings along with the redacted - * image. - * - * Generated from protobuf field bool include_findings = 6; - */ - protected $include_findings = false; - /** - * The content must be PNG, JPEG, SVG or BMP. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 7; - */ - protected $byte_item = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type string $location_id - * Deprecated. This field has no effect. - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * Configuration for the inspector. - * @type array<\Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig>|\Google\Protobuf\Internal\RepeatedField $image_redaction_configs - * The configuration for specifying what content to redact from images. - * @type bool $include_findings - * Whether the response should include findings along with the redacted - * image. - * @type \Google\Cloud\Dlp\V2\ByteContentItem $byte_item - * The content must be PNG, JPEG, SVG or BMP. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 8; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 8; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 2; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * The configuration for specifying what content to redact from images. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getImageRedactionConfigs() - { - return $this->image_redaction_configs; - } - - /** - * The configuration for specifying what content to redact from images. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig image_redaction_configs = 5; - * @param array<\Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setImageRedactionConfigs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\RedactImageRequest\ImageRedactionConfig::class); - $this->image_redaction_configs = $arr; - - return $this; - } - - /** - * Whether the response should include findings along with the redacted - * image. - * - * Generated from protobuf field bool include_findings = 6; - * @return bool - */ - public function getIncludeFindings() - { - return $this->include_findings; - } - - /** - * Whether the response should include findings along with the redacted - * image. - * - * Generated from protobuf field bool include_findings = 6; - * @param bool $var - * @return $this - */ - public function setIncludeFindings($var) - { - GPBUtil::checkBool($var); - $this->include_findings = $var; - - return $this; - } - - /** - * The content must be PNG, JPEG, SVG or BMP. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 7; - * @return \Google\Cloud\Dlp\V2\ByteContentItem|null - */ - public function getByteItem() - { - return $this->byte_item; - } - - public function hasByteItem() - { - return isset($this->byte_item); - } - - public function clearByteItem() - { - unset($this->byte_item); - } - - /** - * The content must be PNG, JPEG, SVG or BMP. - * - * Generated from protobuf field .google.privacy.dlp.v2.ByteContentItem byte_item = 7; - * @param \Google\Cloud\Dlp\V2\ByteContentItem $var - * @return $this - */ - public function setByteItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ByteContentItem::class); - $this->byte_item = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php deleted file mode 100644 index d5ba6d7c75f3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageRequest/ImageRedactionConfig.php +++ /dev/null @@ -1,171 +0,0 @@ -google.privacy.dlp.v2.RedactImageRequest.ImageRedactionConfig - */ -class ImageRedactionConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The color to use when redacting content from an image. If not specified, - * the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - */ - protected $redaction_color = null; - protected $target; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * Only one per info_type should be provided per request. If not - * specified, and redact_all_text is false, the DLP API will redact all - * text that it matches against all info_types that are found, but not - * specified in another ImageRedactionConfig. - * @type bool $redact_all_text - * If true, all text found in the image, regardless whether it matches an - * info_type, is redacted. Only one should be provided. - * @type \Google\Cloud\Dlp\V2\Color $redaction_color - * The color to use when redacting content from an image. If not specified, - * the default is black. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Only one per info_type should be provided per request. If not - * specified, and redact_all_text is false, the DLP API will redact all - * text that it matches against all info_types that are found, but not - * specified in another ImageRedactionConfig. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->readOneof(1); - } - - public function hasInfoType() - { - return $this->hasOneof(1); - } - - /** - * Only one per info_type should be provided per request. If not - * specified, and redact_all_text is false, the DLP API will redact all - * text that it matches against all info_types that are found, but not - * specified in another ImageRedactionConfig. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * If true, all text found in the image, regardless whether it matches an - * info_type, is redacted. Only one should be provided. - * - * Generated from protobuf field bool redact_all_text = 2; - * @return bool - */ - public function getRedactAllText() - { - return $this->readOneof(2); - } - - public function hasRedactAllText() - { - return $this->hasOneof(2); - } - - /** - * If true, all text found in the image, regardless whether it matches an - * info_type, is redacted. Only one should be provided. - * - * Generated from protobuf field bool redact_all_text = 2; - * @param bool $var - * @return $this - */ - public function setRedactAllText($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The color to use when redacting content from an image. If not specified, - * the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - * @return \Google\Cloud\Dlp\V2\Color|null - */ - public function getRedactionColor() - { - return $this->redaction_color; - } - - public function hasRedactionColor() - { - return isset($this->redaction_color); - } - - public function clearRedactionColor() - { - unset($this->redaction_color); - } - - /** - * The color to use when redacting content from an image. If not specified, - * the default is black. - * - * Generated from protobuf field .google.privacy.dlp.v2.Color redaction_color = 3; - * @param \Google\Cloud\Dlp\V2\Color $var - * @return $this - */ - public function setRedactionColor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Color::class); - $this->redaction_color = $var; - - return $this; - } - - /** - * @return string - */ - public function getTarget() - { - return $this->whichOneof("target"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ImageRedactionConfig::class, \Google\Cloud\Dlp\V2\RedactImageRequest_ImageRedactionConfig::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php deleted file mode 100644 index 2f749551986a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RedactImageResponse.php +++ /dev/null @@ -1,153 +0,0 @@ -google.privacy.dlp.v2.RedactImageResponse - */ -class RedactImageResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The redacted image. The type will be the same as the original image. - * - * Generated from protobuf field bytes redacted_image = 1; - */ - protected $redacted_image = ''; - /** - * If an image was being inspected and the InspectConfig's include_quote was - * set to true, then this field will include all text, if any, that was found - * in the image. - * - * Generated from protobuf field string extracted_text = 2; - */ - protected $extracted_text = ''; - /** - * The findings. Populated when include_findings in the request is true. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult inspect_result = 3; - */ - protected $inspect_result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $redacted_image - * The redacted image. The type will be the same as the original image. - * @type string $extracted_text - * If an image was being inspected and the InspectConfig's include_quote was - * set to true, then this field will include all text, if any, that was found - * in the image. - * @type \Google\Cloud\Dlp\V2\InspectResult $inspect_result - * The findings. Populated when include_findings in the request is true. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The redacted image. The type will be the same as the original image. - * - * Generated from protobuf field bytes redacted_image = 1; - * @return string - */ - public function getRedactedImage() - { - return $this->redacted_image; - } - - /** - * The redacted image. The type will be the same as the original image. - * - * Generated from protobuf field bytes redacted_image = 1; - * @param string $var - * @return $this - */ - public function setRedactedImage($var) - { - GPBUtil::checkString($var, False); - $this->redacted_image = $var; - - return $this; - } - - /** - * If an image was being inspected and the InspectConfig's include_quote was - * set to true, then this field will include all text, if any, that was found - * in the image. - * - * Generated from protobuf field string extracted_text = 2; - * @return string - */ - public function getExtractedText() - { - return $this->extracted_text; - } - - /** - * If an image was being inspected and the InspectConfig's include_quote was - * set to true, then this field will include all text, if any, that was found - * in the image. - * - * Generated from protobuf field string extracted_text = 2; - * @param string $var - * @return $this - */ - public function setExtractedText($var) - { - GPBUtil::checkString($var, True); - $this->extracted_text = $var; - - return $this; - } - - /** - * The findings. Populated when include_findings in the request is true. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult inspect_result = 3; - * @return \Google\Cloud\Dlp\V2\InspectResult|null - */ - public function getInspectResult() - { - return $this->inspect_result; - } - - public function hasInspectResult() - { - return isset($this->inspect_result); - } - - public function clearInspectResult() - { - unset($this->inspect_result); - } - - /** - * The findings. Populated when include_findings in the request is true. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectResult inspect_result = 3; - * @param \Google\Cloud\Dlp\V2\InspectResult $var - * @return $this - */ - public function setInspectResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectResult::class); - $this->inspect_result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php deleted file mode 100644 index 59fccfa4ab61..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentRequest.php +++ /dev/null @@ -1,417 +0,0 @@ -google.privacy.dlp.v2.ReidentifyContentRequest - */ -class ReidentifyContentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Configuration for the re-identification of the content item. - * This field shares the same proto message type that is used for - * de-identification, however its usage here is for the reversal of the - * previous de-identification. Re-identification is performed by examining - * the transformations used to de-identify the items and executing the - * reverse. This requires that only reversible transformations - * be provided here. The reversible transformations are: - * - `CryptoDeterministicConfig` - * - `CryptoReplaceFfxFpeConfig` - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig reidentify_config = 2; - */ - protected $reidentify_config = null; - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - */ - protected $inspect_config = null; - /** - * The item to re-identify. Will be treated as text. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - */ - protected $item = null; - /** - * Template to use. Any configuration directly specified in - * `inspect_config` will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - */ - protected $inspect_template_name = ''; - /** - * Template to use. References an instance of `DeidentifyTemplate`. - * Any configuration directly specified in `reidentify_config` or - * `inspect_config` will override those set in the template. The - * `DeidentifyTemplate` used must include only reversible transformations. - * Singular fields that are set in this request will replace their - * corresponding fields in the template. Repeated fields are appended. - * Singular sub-messages and groups are recursively merged. - * - * Generated from protobuf field string reidentify_template_name = 6; - */ - protected $reidentify_template_name = ''; - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - */ - protected $location_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * @type \Google\Cloud\Dlp\V2\DeidentifyConfig $reidentify_config - * Configuration for the re-identification of the content item. - * This field shares the same proto message type that is used for - * de-identification, however its usage here is for the reversal of the - * previous de-identification. Re-identification is performed by examining - * the transformations used to de-identify the items and executing the - * reverse. This requires that only reversible transformations - * be provided here. The reversible transformations are: - * - `CryptoDeterministicConfig` - * - `CryptoReplaceFfxFpeConfig` - * @type \Google\Cloud\Dlp\V2\InspectConfig $inspect_config - * Configuration for the inspector. - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The item to re-identify. Will be treated as text. - * @type string $inspect_template_name - * Template to use. Any configuration directly specified in - * `inspect_config` will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * @type string $reidentify_template_name - * Template to use. References an instance of `DeidentifyTemplate`. - * Any configuration directly specified in `reidentify_config` or - * `inspect_config` will override those set in the template. The - * `DeidentifyTemplate` used must include only reversible transformations. - * Singular fields that are set in this request will replace their - * corresponding fields in the template. Repeated fields are appended. - * Singular sub-messages and groups are recursively merged. - * @type string $location_id - * Deprecated. This field has no effect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent resource name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated 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 name. - * The format of this value varies depending on whether you have [specified a - * processing - * location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location): - * + Projects scope, location specified: - * `projects/{project_id}/locations/{location_id}` - * + Projects scope, no location specified (defaults to global): - * `projects/{project_id}` - * The following example `parent` string specifies a parent project with the - * identifier `example-project`, and specifies the `europe-west3` location - * for processing data: - * parent=projects/example-project/locations/europe-west3 - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 for the re-identification of the content item. - * This field shares the same proto message type that is used for - * de-identification, however its usage here is for the reversal of the - * previous de-identification. Re-identification is performed by examining - * the transformations used to de-identify the items and executing the - * reverse. This requires that only reversible transformations - * be provided here. The reversible transformations are: - * - `CryptoDeterministicConfig` - * - `CryptoReplaceFfxFpeConfig` - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig reidentify_config = 2; - * @return \Google\Cloud\Dlp\V2\DeidentifyConfig|null - */ - public function getReidentifyConfig() - { - return $this->reidentify_config; - } - - public function hasReidentifyConfig() - { - return isset($this->reidentify_config); - } - - public function clearReidentifyConfig() - { - unset($this->reidentify_config); - } - - /** - * Configuration for the re-identification of the content item. - * This field shares the same proto message type that is used for - * de-identification, however its usage here is for the reversal of the - * previous de-identification. Re-identification is performed by examining - * the transformations used to de-identify the items and executing the - * reverse. This requires that only reversible transformations - * be provided here. The reversible transformations are: - * - `CryptoDeterministicConfig` - * - `CryptoReplaceFfxFpeConfig` - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyConfig reidentify_config = 2; - * @param \Google\Cloud\Dlp\V2\DeidentifyConfig $var - * @return $this - */ - public function setReidentifyConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyConfig::class); - $this->reidentify_config = $var; - - return $this; - } - - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - * @return \Google\Cloud\Dlp\V2\InspectConfig|null - */ - public function getInspectConfig() - { - return $this->inspect_config; - } - - public function hasInspectConfig() - { - return isset($this->inspect_config); - } - - public function clearInspectConfig() - { - unset($this->inspect_config); - } - - /** - * Configuration for the inspector. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectConfig inspect_config = 3; - * @param \Google\Cloud\Dlp\V2\InspectConfig $var - * @return $this - */ - public function setInspectConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectConfig::class); - $this->inspect_config = $var; - - return $this; - } - - /** - * The item to re-identify. Will be treated as text. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The item to re-identify. Will be treated as text. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 4; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * Template to use. Any configuration directly specified in - * `inspect_config` will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - * @return string - */ - public function getInspectTemplateName() - { - return $this->inspect_template_name; - } - - /** - * Template to use. Any configuration directly specified in - * `inspect_config` will override those set in the template. Singular fields - * that are set in this request will replace their corresponding fields in the - * template. Repeated fields are appended. Singular sub-messages and groups - * are recursively merged. - * - * Generated from protobuf field string inspect_template_name = 5; - * @param string $var - * @return $this - */ - public function setInspectTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->inspect_template_name = $var; - - return $this; - } - - /** - * Template to use. References an instance of `DeidentifyTemplate`. - * Any configuration directly specified in `reidentify_config` or - * `inspect_config` will override those set in the template. The - * `DeidentifyTemplate` used must include only reversible transformations. - * Singular fields that are set in this request will replace their - * corresponding fields in the template. Repeated fields are appended. - * Singular sub-messages and groups are recursively merged. - * - * Generated from protobuf field string reidentify_template_name = 6; - * @return string - */ - public function getReidentifyTemplateName() - { - return $this->reidentify_template_name; - } - - /** - * Template to use. References an instance of `DeidentifyTemplate`. - * Any configuration directly specified in `reidentify_config` or - * `inspect_config` will override those set in the template. The - * `DeidentifyTemplate` used must include only reversible transformations. - * Singular fields that are set in this request will replace their - * corresponding fields in the template. Repeated fields are appended. - * Singular sub-messages and groups are recursively merged. - * - * Generated from protobuf field string reidentify_template_name = 6; - * @param string $var - * @return $this - */ - public function setReidentifyTemplateName($var) - { - GPBUtil::checkString($var, True); - $this->reidentify_template_name = $var; - - return $this; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * Deprecated. This field has no effect. - * - * Generated from protobuf field string location_id = 7; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php deleted file mode 100644 index 645c5eb06117..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReidentifyContentResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.privacy.dlp.v2.ReidentifyContentResponse - */ -class ReidentifyContentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The re-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - */ - protected $item = null; - /** - * An overview of the changes that were made to the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - */ - protected $overview = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\ContentItem $item - * The re-identified item. - * @type \Google\Cloud\Dlp\V2\TransformationOverview $overview - * An overview of the changes that were made to the `item`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The re-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @return \Google\Cloud\Dlp\V2\ContentItem|null - */ - public function getItem() - { - return $this->item; - } - - public function hasItem() - { - return isset($this->item); - } - - public function clearItem() - { - unset($this->item); - } - - /** - * The re-identified item. - * - * Generated from protobuf field .google.privacy.dlp.v2.ContentItem item = 1; - * @param \Google\Cloud\Dlp\V2\ContentItem $var - * @return $this - */ - public function setItem($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ContentItem::class); - $this->item = $var; - - return $this; - } - - /** - * An overview of the changes that were made to the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - * @return \Google\Cloud\Dlp\V2\TransformationOverview|null - */ - public function getOverview() - { - return $this->overview; - } - - public function hasOverview() - { - return isset($this->overview); - } - - public function clearOverview() - { - unset($this->overview); - } - - /** - * An overview of the changes that were made to the `item`. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationOverview overview = 2; - * @param \Google\Cloud\Dlp\V2\TransformationOverview $var - * @return $this - */ - public function setOverview($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationOverview::class); - $this->overview = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php deleted file mode 100644 index 6ed71c1ce458..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RelationalOperator.php +++ /dev/null @@ -1,96 +0,0 @@ -google.privacy.dlp.v2.RelationalOperator - */ -class RelationalOperator -{ - /** - * Unused - * - * Generated from protobuf enum RELATIONAL_OPERATOR_UNSPECIFIED = 0; - */ - const RELATIONAL_OPERATOR_UNSPECIFIED = 0; - /** - * Equal. Attempts to match even with incompatible types. - * - * Generated from protobuf enum EQUAL_TO = 1; - */ - const EQUAL_TO = 1; - /** - * Not equal to. Attempts to match even with incompatible types. - * - * Generated from protobuf enum NOT_EQUAL_TO = 2; - */ - const NOT_EQUAL_TO = 2; - /** - * Greater than. - * - * Generated from protobuf enum GREATER_THAN = 3; - */ - const GREATER_THAN = 3; - /** - * Less than. - * - * Generated from protobuf enum LESS_THAN = 4; - */ - const LESS_THAN = 4; - /** - * Greater than or equals. - * - * Generated from protobuf enum GREATER_THAN_OR_EQUALS = 5; - */ - const GREATER_THAN_OR_EQUALS = 5; - /** - * Less than or equals. - * - * Generated from protobuf enum LESS_THAN_OR_EQUALS = 6; - */ - const LESS_THAN_OR_EQUALS = 6; - /** - * Exists - * - * Generated from protobuf enum EXISTS = 7; - */ - const EXISTS = 7; - - private static $valueToName = [ - self::RELATIONAL_OPERATOR_UNSPECIFIED => 'RELATIONAL_OPERATOR_UNSPECIFIED', - self::EQUAL_TO => 'EQUAL_TO', - self::NOT_EQUAL_TO => 'NOT_EQUAL_TO', - self::GREATER_THAN => 'GREATER_THAN', - self::LESS_THAN => 'LESS_THAN', - self::GREATER_THAN_OR_EQUALS => 'GREATER_THAN_OR_EQUALS', - self::LESS_THAN_OR_EQUALS => 'LESS_THAN_OR_EQUALS', - self::EXISTS => 'EXISTS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php deleted file mode 100644 index 334777891ff9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceDictionaryConfig.php +++ /dev/null @@ -1,81 +0,0 @@ -google.privacy.dlp.v2.ReplaceDictionaryConfig - */ -class ReplaceDictionaryConfig extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $word_list - * A list of words to select from for random replacement. The - * [limits](https://cloud.google.com/sensitive-data-protection/limits) page - * contains details about the size limits of dictionaries. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A list of words to select from for random replacement. The - * [limits](https://cloud.google.com/sensitive-data-protection/limits) page - * contains details about the size limits of dictionaries. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList|null - */ - public function getWordList() - { - return $this->readOneof(1); - } - - public function hasWordList() - { - return $this->hasOneof(1); - } - - /** - * A list of words to select from for random replacement. The - * [limits](https://cloud.google.com/sensitive-data-protection/limits) page - * contains details about the size limits of dictionaries. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary.WordList word_list = 1; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList $var - * @return $this - */ - public function setWordList($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary\WordList::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php deleted file mode 100644 index 6b6b0f7a06d1..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceValueConfig.php +++ /dev/null @@ -1,77 +0,0 @@ -google.privacy.dlp.v2.ReplaceValueConfig - */ -class ReplaceValueConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Value to replace it with. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value new_value = 1; - */ - protected $new_value = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value $new_value - * Value to replace it with. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Value to replace it with. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value new_value = 1; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getNewValue() - { - return $this->new_value; - } - - public function hasNewValue() - { - return isset($this->new_value); - } - - public function clearNewValue() - { - unset($this->new_value); - } - - /** - * Value to replace it with. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value new_value = 1; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setNewValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->new_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php deleted file mode 100644 index 5896285166fe..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ReplaceWithInfoTypeConfig.php +++ /dev/null @@ -1,33 +0,0 @@ -google.privacy.dlp.v2.ReplaceWithInfoTypeConfig - */ -class ReplaceWithInfoTypeConfig extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php deleted file mode 100644 index 0a6ef82cebaa..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ResourceVisibility.php +++ /dev/null @@ -1,71 +0,0 @@ -google.privacy.dlp.v2.ResourceVisibility - */ -class ResourceVisibility -{ - /** - * Unused. - * - * Generated from protobuf enum RESOURCE_VISIBILITY_UNSPECIFIED = 0; - */ - const RESOURCE_VISIBILITY_UNSPECIFIED = 0; - /** - * Visible to any user. - * - * Generated from protobuf enum RESOURCE_VISIBILITY_PUBLIC = 10; - */ - const RESOURCE_VISIBILITY_PUBLIC = 10; - /** - * May contain public items. - * For example, if a Cloud Storage bucket has uniform bucket level access - * disabled, some objects inside it may be public, but none are known yet. - * - * Generated from protobuf enum RESOURCE_VISIBILITY_INCONCLUSIVE = 15; - */ - const RESOURCE_VISIBILITY_INCONCLUSIVE = 15; - /** - * Visible only to specific users. - * - * Generated from protobuf enum RESOURCE_VISIBILITY_RESTRICTED = 20; - */ - const RESOURCE_VISIBILITY_RESTRICTED = 20; - - private static $valueToName = [ - self::RESOURCE_VISIBILITY_UNSPECIFIED => 'RESOURCE_VISIBILITY_UNSPECIFIED', - self::RESOURCE_VISIBILITY_PUBLIC => 'RESOURCE_VISIBILITY_PUBLIC', - self::RESOURCE_VISIBILITY_INCONCLUSIVE => 'RESOURCE_VISIBILITY_INCONCLUSIVE', - self::RESOURCE_VISIBILITY_RESTRICTED => 'RESOURCE_VISIBILITY_RESTRICTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php deleted file mode 100644 index d188958519c0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/RiskAnalysisJobConfig.php +++ /dev/null @@ -1,161 +0,0 @@ -google.privacy.dlp.v2.RiskAnalysisJobConfig - */ -class RiskAnalysisJobConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric privacy_metric = 1; - */ - protected $privacy_metric = null; - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable source_table = 2; - */ - protected $source_table = null; - /** - * Actions to execute at the completion of the job. Are executed in the order - * provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 3; - */ - private $actions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\PrivacyMetric $privacy_metric - * Privacy metric to compute. - * @type \Google\Cloud\Dlp\V2\BigQueryTable $source_table - * Input dataset to compute metrics over. - * @type array<\Google\Cloud\Dlp\V2\Action>|\Google\Protobuf\Internal\RepeatedField $actions - * Actions to execute at the completion of the job. Are executed in the order - * provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric privacy_metric = 1; - * @return \Google\Cloud\Dlp\V2\PrivacyMetric|null - */ - public function getPrivacyMetric() - { - return $this->privacy_metric; - } - - public function hasPrivacyMetric() - { - return isset($this->privacy_metric); - } - - public function clearPrivacyMetric() - { - unset($this->privacy_metric); - } - - /** - * Privacy metric to compute. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrivacyMetric privacy_metric = 1; - * @param \Google\Cloud\Dlp\V2\PrivacyMetric $var - * @return $this - */ - public function setPrivacyMetric($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrivacyMetric::class); - $this->privacy_metric = $var; - - return $this; - } - - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable source_table = 2; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getSourceTable() - { - return $this->source_table; - } - - public function hasSourceTable() - { - return isset($this->source_table); - } - - public function clearSourceTable() - { - unset($this->source_table); - } - - /** - * Input dataset to compute metrics over. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable source_table = 2; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setSourceTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->source_table = $var; - - return $this; - } - - /** - * Actions to execute at the completion of the job. Are executed in the order - * provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getActions() - { - return $this->actions; - } - - /** - * Actions to execute at the completion of the job. Are executed in the order - * provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Action actions = 3; - * @param array<\Google\Cloud\Dlp\V2\Action>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setActions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Action::class); - $this->actions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php deleted file mode 100644 index f7fe89d24dac..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Schedule.php +++ /dev/null @@ -1,90 +0,0 @@ -google.privacy.dlp.v2.Schedule - */ -class Schedule extends \Google\Protobuf\Internal\Message -{ - protected $option; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Duration $recurrence_period_duration - * With this option a job is started on a regular periodic basis. For - * example: every day (86400 seconds). - * A scheduled start time will be skipped if the previous - * execution has not ended when its scheduled time occurs. - * This value must be set to a time duration greater than or equal - * to 1 day and can be no longer than 60 days. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * With this option a job is started on a regular periodic basis. For - * example: every day (86400 seconds). - * A scheduled start time will be skipped if the previous - * execution has not ended when its scheduled time occurs. - * This value must be set to a time duration greater than or equal - * to 1 day and can be no longer than 60 days. - * - * Generated from protobuf field .google.protobuf.Duration recurrence_period_duration = 1; - * @return \Google\Protobuf\Duration|null - */ - public function getRecurrencePeriodDuration() - { - return $this->readOneof(1); - } - - public function hasRecurrencePeriodDuration() - { - return $this->hasOneof(1); - } - - /** - * With this option a job is started on a regular periodic basis. For - * example: every day (86400 seconds). - * A scheduled start time will be skipped if the previous - * execution has not ended when its scheduled time occurs. - * This value must be set to a time duration greater than or equal - * to 1 day and can be no longer than 60 days. - * - * Generated from protobuf field .google.protobuf.Duration recurrence_period_duration = 1; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setRecurrencePeriodDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getOption() - { - return $this->whichOneof("option"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php deleted file mode 100644 index 046d5a0e7aa2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsRequest.php +++ /dev/null @@ -1,197 +0,0 @@ -google.privacy.dlp.v2.SearchConnectionsRequest - */ -class SearchConnectionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the organization or project with a wildcard - * location, for example, `organizations/433245324/locations/-` or - * `projects/project-id/locations/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. Number of results per page, max 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. Resource name of the organization or project with a wildcard - * location, for example, `organizations/433245324/locations/-` or - * `projects/project-id/locations/-`. Please see - * {@see DlpServiceClient::organizationLocationName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\SearchConnectionsRequest - * - * @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 organization or project with a wildcard - * location, for example, `organizations/433245324/locations/-` or - * `projects/project-id/locations/-`. - * @type int $page_size - * Optional. Number of results per page, max 1000. - * @type string $page_token - * Optional. Page token from a previous page to return the next set of - * results. If set, all other request fields must match the original request. - * @type string $filter - * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the organization or project with a wildcard - * location, for example, `organizations/433245324/locations/-` or - * `projects/project-id/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. Resource name of the organization or project with a wildcard - * location, for example, `organizations/433245324/locations/-` or - * `projects/project-id/locations/-`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. Number of results per page, max 1000. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. Number of results per page, max 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. Page token from a previous page to return the next set of - * results. If set, all other request fields must match 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. Page token from a previous page to return the next set of - * results. If set, all other request fields must match 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; - } - - /** - * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. Supported field/value: - `state` - MISSING|AVAILABLE|ERROR - * - * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php deleted file mode 100644 index 291026d1abed..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SearchConnectionsResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.privacy.dlp.v2.SearchConnectionsResponse - */ -class SearchConnectionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * List of connections that match the search query. Note that only a subset - * of the fields will be populated, and only "name" is guaranteed to be set. - * For full details of a Connection, call GetConnection with the name. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - */ - private $connections; - /** - * Token to retrieve the next page of results. An empty value means there are - * no more 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\Dlp\V2\Connection>|\Google\Protobuf\Internal\RepeatedField $connections - * List of connections that match the search query. Note that only a subset - * of the fields will be populated, and only "name" is guaranteed to be set. - * For full details of a Connection, call GetConnection with the name. - * @type string $next_page_token - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * List of connections that match the search query. Note that only a subset - * of the fields will be populated, and only "name" is guaranteed to be set. - * For full details of a Connection, call GetConnection with the name. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConnections() - { - return $this->connections; - } - - /** - * List of connections that match the search query. Note that only a subset - * of the fields will be populated, and only "name" is guaranteed to be set. - * For full details of a Connection, call GetConnection with the name. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Connection connections = 1; - * @param array<\Google\Cloud\Dlp\V2\Connection>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConnections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Connection::class); - $this->connections = $arr; - - return $this; - } - - /** - * Token to retrieve the next page of results. An empty value means there are - * no more results. - * - * 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. An empty value means there are - * no more 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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php deleted file mode 100644 index 280526b8b2ab..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretManagerCredential.php +++ /dev/null @@ -1,108 +0,0 @@ -google.privacy.dlp.v2.SecretManagerCredential - */ -class SecretManagerCredential extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The username. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $username = ''; - /** - * Required. The name of the Secret Manager resource that stores the password, - * in the form `projects/project-id/secrets/secret-name/versions/version`. - * - * Generated from protobuf field string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $password_secret_version_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $username - * Required. The username. - * @type string $password_secret_version_name - * Required. The name of the Secret Manager resource that stores the password, - * in the form `projects/project-id/secrets/secret-name/versions/version`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. The username. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUsername() - { - return $this->username; - } - - /** - * Required. The username. - * - * Generated from protobuf field string username = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUsername($var) - { - GPBUtil::checkString($var, True); - $this->username = $var; - - return $this; - } - - /** - * Required. The name of the Secret Manager resource that stores the password, - * in the form `projects/project-id/secrets/secret-name/versions/version`. - * - * Generated from protobuf field string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPasswordSecretVersionName() - { - return $this->password_secret_version_name; - } - - /** - * Required. The name of the Secret Manager resource that stores the password, - * in the form `projects/project-id/secrets/secret-name/versions/version`. - * - * Generated from protobuf field string password_secret_version_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPasswordSecretVersionName($var) - { - GPBUtil::checkString($var, True); - $this->password_secret_version_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php deleted file mode 100644 index 1e5a804a0f78..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SecretsDiscoveryTarget.php +++ /dev/null @@ -1,41 +0,0 @@ -google.privacy.dlp.v2.SecretsDiscoveryTarget - */ -class SecretsDiscoveryTarget extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php deleted file mode 100644 index 90daf36c4bf9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.SensitivityScore - */ -class SensitivityScore extends \Google\Protobuf\Internal\Message -{ - /** - * The sensitivity score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1; - */ - protected $score = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $score - * The sensitivity score applied to the resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The sensitivity score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1; - * @return int - */ - public function getScore() - { - return $this->score; - } - - /** - * The sensitivity score applied to the resource. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel score = 1; - * @param int $var - * @return $this - */ - public function setScore($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\SensitivityScore\SensitivityScoreLevel::class); - $this->score = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php deleted file mode 100644 index a66a97b05069..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/SensitivityScore/SensitivityScoreLevel.php +++ /dev/null @@ -1,85 +0,0 @@ -google.privacy.dlp.v2.SensitivityScore.SensitivityScoreLevel - */ -class SensitivityScoreLevel -{ - /** - * Unused. - * - * Generated from protobuf enum SENSITIVITY_SCORE_UNSPECIFIED = 0; - */ - const SENSITIVITY_SCORE_UNSPECIFIED = 0; - /** - * No sensitive information detected. The resource isn't publicly - * accessible. - * - * Generated from protobuf enum SENSITIVITY_LOW = 10; - */ - const SENSITIVITY_LOW = 10; - /** - * Unable to determine sensitivity. - * - * Generated from protobuf enum SENSITIVITY_UNKNOWN = 12; - */ - const SENSITIVITY_UNKNOWN = 12; - /** - * Medium risk. Contains personally identifiable information (PII), - * potentially sensitive data, or fields with free-text data that are at a - * higher risk of having intermittent sensitive data. Consider limiting - * access. - * - * Generated from protobuf enum SENSITIVITY_MODERATE = 20; - */ - const SENSITIVITY_MODERATE = 20; - /** - * High risk. Sensitive personally identifiable information (SPII) can be - * present. Exfiltration of data can lead to user data loss. - * Re-identification of users might be possible. Consider limiting usage and - * or removing SPII. - * - * Generated from protobuf enum SENSITIVITY_HIGH = 30; - */ - const SENSITIVITY_HIGH = 30; - - private static $valueToName = [ - self::SENSITIVITY_SCORE_UNSPECIFIED => 'SENSITIVITY_SCORE_UNSPECIFIED', - self::SENSITIVITY_LOW => 'SENSITIVITY_LOW', - self::SENSITIVITY_UNKNOWN => 'SENSITIVITY_UNKNOWN', - self::SENSITIVITY_MODERATE => 'SENSITIVITY_MODERATE', - self::SENSITIVITY_HIGH => 'SENSITIVITY_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SensitivityScoreLevel::class, \Google\Cloud\Dlp\V2\SensitivityScore_SensitivityScoreLevel::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php deleted file mode 100644 index 533649a094e9..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable.php +++ /dev/null @@ -1,165 +0,0 @@ -google.privacy.dlp.v2.StatisticalTable - */ -class StatisticalTable extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $table = null; - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $quasi_ids; - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $relative_frequency = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table - * Required. Auxiliary table location. - * @type array<\Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField>|\Google\Protobuf\Internal\RepeatedField $quasi_ids - * Required. Quasi-identifier columns. - * @type \Google\Cloud\Dlp\V2\FieldId $relative_frequency - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTable() - { - return $this->table; - } - - public function hasTable() - { - return isset($this->table); - } - - public function clearTable() - { - unset($this->table); - } - - /** - * Required. Auxiliary table location. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->table = $var; - - return $this; - } - - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getQuasiIds() - { - return $this->quasi_ids; - } - - /** - * Required. Quasi-identifier columns. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField quasi_ids = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setQuasiIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StatisticalTable\QuasiIdentifierField::class); - $this->quasi_ids = $arr; - - return $this; - } - - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getRelativeFrequency() - { - return $this->relative_frequency; - } - - public function hasRelativeFrequency() - { - return isset($this->relative_frequency); - } - - public function clearRelativeFrequency() - { - unset($this->relative_frequency); - } - - /** - * Required. The relative frequency column must contain a floating-point - * number between 0 and 1 (inclusive). Null values are assumed to be zero. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId relative_frequency = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setRelativeFrequency($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->relative_frequency = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php deleted file mode 100644 index eac02a9161ed..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StatisticalTable/QuasiIdentifierField.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.StatisticalTable.QuasiIdentifierField - */ -class QuasiIdentifierField extends \Google\Protobuf\Internal\Message -{ - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - */ - protected $field = null; - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column (below). - * - * Generated from protobuf field string custom_tag = 2; - */ - protected $custom_tag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Identifies the column. - * @type string $custom_tag - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column (below). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Identifies the column. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 1; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column (below). - * - * Generated from protobuf field string custom_tag = 2; - * @return string - */ - public function getCustomTag() - { - return $this->custom_tag; - } - - /** - * A column can be tagged with a custom tag. In this case, the user must - * indicate an auxiliary table that contains statistical information on - * the possible values of this column (below). - * - * Generated from protobuf field string custom_tag = 2; - * @param string $var - * @return $this - */ - public function setCustomTag($var) - { - GPBUtil::checkString($var, True); - $this->custom_tag = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(QuasiIdentifierField::class, \Google\Cloud\Dlp\V2\StatisticalTable_QuasiIdentifierField::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php deleted file mode 100644 index 630d3b44dda2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig.php +++ /dev/null @@ -1,218 +0,0 @@ -google.privacy.dlp.v2.StorageConfig - */ -class StorageConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Configuration of the timespan of the items to include in scanning. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; - */ - protected $timespan_config = null; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\DatastoreOptions $datastore_options - * Google Cloud Datastore options. - * @type \Google\Cloud\Dlp\V2\CloudStorageOptions $cloud_storage_options - * Cloud Storage options. - * @type \Google\Cloud\Dlp\V2\BigQueryOptions $big_query_options - * BigQuery options. - * @type \Google\Cloud\Dlp\V2\HybridOptions $hybrid_options - * Hybrid inspection options. - * @type \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig $timespan_config - * Configuration of the timespan of the items to include in scanning. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Google Cloud Datastore options. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; - * @return \Google\Cloud\Dlp\V2\DatastoreOptions|null - */ - public function getDatastoreOptions() - { - return $this->readOneof(2); - } - - public function hasDatastoreOptions() - { - return $this->hasOneof(2); - } - - /** - * Google Cloud Datastore options. - * - * Generated from protobuf field .google.privacy.dlp.v2.DatastoreOptions datastore_options = 2; - * @param \Google\Cloud\Dlp\V2\DatastoreOptions $var - * @return $this - */ - public function setDatastoreOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DatastoreOptions::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Cloud Storage options. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; - * @return \Google\Cloud\Dlp\V2\CloudStorageOptions|null - */ - public function getCloudStorageOptions() - { - return $this->readOneof(3); - } - - public function hasCloudStorageOptions() - { - return $this->hasOneof(3); - } - - /** - * Cloud Storage options. - * - * Generated from protobuf field .google.privacy.dlp.v2.CloudStorageOptions cloud_storage_options = 3; - * @param \Google\Cloud\Dlp\V2\CloudStorageOptions $var - * @return $this - */ - public function setCloudStorageOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CloudStorageOptions::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * BigQuery options. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; - * @return \Google\Cloud\Dlp\V2\BigQueryOptions|null - */ - public function getBigQueryOptions() - { - return $this->readOneof(4); - } - - public function hasBigQueryOptions() - { - return $this->hasOneof(4); - } - - /** - * BigQuery options. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryOptions big_query_options = 4; - * @param \Google\Cloud\Dlp\V2\BigQueryOptions $var - * @return $this - */ - public function setBigQueryOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryOptions::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Hybrid inspection options. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; - * @return \Google\Cloud\Dlp\V2\HybridOptions|null - */ - public function getHybridOptions() - { - return $this->readOneof(9); - } - - public function hasHybridOptions() - { - return $this->hasOneof(9); - } - - /** - * Hybrid inspection options. - * - * Generated from protobuf field .google.privacy.dlp.v2.HybridOptions hybrid_options = 9; - * @param \Google\Cloud\Dlp\V2\HybridOptions $var - * @return $this - */ - public function setHybridOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\HybridOptions::class); - $this->writeOneof(9, $var); - - return $this; - } - - /** - * Configuration of the timespan of the items to include in scanning. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; - * @return \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig|null - */ - public function getTimespanConfig() - { - return $this->timespan_config; - } - - public function hasTimespanConfig() - { - return isset($this->timespan_config); - } - - public function clearTimespanConfig() - { - unset($this->timespan_config); - } - - /** - * Configuration of the timespan of the items to include in scanning. - * - * Generated from protobuf field .google.privacy.dlp.v2.StorageConfig.TimespanConfig timespan_config = 6; - * @param \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig $var - * @return $this - */ - public function setTimespanConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StorageConfig\TimespanConfig::class); - $this->timespan_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php deleted file mode 100644 index 3a0c24317568..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageConfig/TimespanConfig.php +++ /dev/null @@ -1,359 +0,0 @@ -google.privacy.dlp.v2.StorageConfig.TimespanConfig - */ -class TimespanConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Exclude files, tables, or rows older than this value. - * If not set, no lower time limit is applied. - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 1; - */ - protected $start_time = null; - /** - * Exclude files, tables, or rows newer than this value. - * If not set, no upper time limit is applied. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2; - */ - protected $end_time = null; - /** - * Specification of the field containing the timestamp of scanned items. - * Used for data sources like Datastore and BigQuery. - * **For BigQuery** - * If this value is not specified and the table was modified between the - * given start and end times, the entire table will be scanned. If this - * value is specified, then rows are filtered based on the given start and - * end times. Rows with a `NULL` value in the provided BigQuery column are - * skipped. - * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, - * `TIMESTAMP`, and `DATETIME`. - * If your BigQuery table is [partitioned at ingestion - * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), - * you can use any of the following pseudo-columns as your timestamp field. - * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - `_PARTITIONTIME` - * - `_PARTITIONDATE` - * - `_PARTITION_LOAD_TIME` - * **For Datastore** - * If this value is specified, then entities are filtered based on the given - * start and end times. If an entity does not contain the provided timestamp - * property or contains empty or invalid values, then it is included. - * Valid data types of the provided timestamp property are: `TIMESTAMP`. - * See the - * [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) - * related to this operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId timestamp_field = 3; - */ - protected $timestamp_field = null; - /** - * When the job is started by a JobTrigger we will automatically figure out - * a valid start_time to avoid scanning files that have not been modified - * since the last time the JobTrigger executed. This will be based on the - * time of the execution of the last run of the JobTrigger or the timespan - * end_time used in the last run of the JobTrigger. - * **For BigQuery** - * Inspect jobs triggered by automatic population will scan data that is at - * least three hours old when the job starts. This is because streaming - * buffer rows are not read during inspection and reading up to the current - * timestamp will result in skipped rows. - * See the [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) - * related to this operation. - * - * Generated from protobuf field bool enable_auto_population_of_timespan_config = 4; - */ - protected $enable_auto_population_of_timespan_config = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $start_time - * Exclude files, tables, or rows older than this value. - * If not set, no lower time limit is applied. - * @type \Google\Protobuf\Timestamp $end_time - * Exclude files, tables, or rows newer than this value. - * If not set, no upper time limit is applied. - * @type \Google\Cloud\Dlp\V2\FieldId $timestamp_field - * Specification of the field containing the timestamp of scanned items. - * Used for data sources like Datastore and BigQuery. - * **For BigQuery** - * If this value is not specified and the table was modified between the - * given start and end times, the entire table will be scanned. If this - * value is specified, then rows are filtered based on the given start and - * end times. Rows with a `NULL` value in the provided BigQuery column are - * skipped. - * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, - * `TIMESTAMP`, and `DATETIME`. - * If your BigQuery table is [partitioned at ingestion - * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), - * you can use any of the following pseudo-columns as your timestamp field. - * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - `_PARTITIONTIME` - * - `_PARTITIONDATE` - * - `_PARTITION_LOAD_TIME` - * **For Datastore** - * If this value is specified, then entities are filtered based on the given - * start and end times. If an entity does not contain the provided timestamp - * property or contains empty or invalid values, then it is included. - * Valid data types of the provided timestamp property are: `TIMESTAMP`. - * See the - * [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) - * related to this operation. - * @type bool $enable_auto_population_of_timespan_config - * When the job is started by a JobTrigger we will automatically figure out - * a valid start_time to avoid scanning files that have not been modified - * since the last time the JobTrigger executed. This will be based on the - * time of the execution of the last run of the JobTrigger or the timespan - * end_time used in the last run of the JobTrigger. - * **For BigQuery** - * Inspect jobs triggered by automatic population will scan data that is at - * least three hours old when the job starts. This is because streaming - * buffer rows are not read during inspection and reading up to the current - * timestamp will result in skipped rows. - * See the [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) - * related to this operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Exclude files, tables, or rows older than this value. - * If not set, no lower time limit is applied. - * - * 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); - } - - /** - * Exclude files, tables, or rows older than this value. - * If not set, no lower time limit is applied. - * - * 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; - } - - /** - * Exclude files, tables, or rows newer than this value. - * If not set, no upper time limit is applied. - * - * 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); - } - - /** - * Exclude files, tables, or rows newer than this value. - * If not set, no upper time limit is applied. - * - * 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; - } - - /** - * Specification of the field containing the timestamp of scanned items. - * Used for data sources like Datastore and BigQuery. - * **For BigQuery** - * If this value is not specified and the table was modified between the - * given start and end times, the entire table will be scanned. If this - * value is specified, then rows are filtered based on the given start and - * end times. Rows with a `NULL` value in the provided BigQuery column are - * skipped. - * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, - * `TIMESTAMP`, and `DATETIME`. - * If your BigQuery table is [partitioned at ingestion - * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), - * you can use any of the following pseudo-columns as your timestamp field. - * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - `_PARTITIONTIME` - * - `_PARTITIONDATE` - * - `_PARTITION_LOAD_TIME` - * **For Datastore** - * If this value is specified, then entities are filtered based on the given - * start and end times. If an entity does not contain the provided timestamp - * property or contains empty or invalid values, then it is included. - * Valid data types of the provided timestamp property are: `TIMESTAMP`. - * See the - * [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) - * related to this operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId timestamp_field = 3; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getTimestampField() - { - return $this->timestamp_field; - } - - public function hasTimestampField() - { - return isset($this->timestamp_field); - } - - public function clearTimestampField() - { - unset($this->timestamp_field); - } - - /** - * Specification of the field containing the timestamp of scanned items. - * Used for data sources like Datastore and BigQuery. - * **For BigQuery** - * If this value is not specified and the table was modified between the - * given start and end times, the entire table will be scanned. If this - * value is specified, then rows are filtered based on the given start and - * end times. Rows with a `NULL` value in the provided BigQuery column are - * skipped. - * Valid data types of the provided BigQuery column are: `INTEGER`, `DATE`, - * `TIMESTAMP`, and `DATETIME`. - * If your BigQuery table is [partitioned at ingestion - * time](https://cloud.google.com/bigquery/docs/partitioned-tables#ingestion_time), - * you can use any of the following pseudo-columns as your timestamp field. - * When used with Cloud DLP, these pseudo-column names are case sensitive. - * - `_PARTITIONTIME` - * - `_PARTITIONDATE` - * - `_PARTITION_LOAD_TIME` - * **For Datastore** - * If this value is specified, then entities are filtered based on the given - * start and end times. If an entity does not contain the provided timestamp - * property or contains empty or invalid values, then it is included. - * Valid data types of the provided timestamp property are: `TIMESTAMP`. - * See the - * [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#bq-timespan) - * related to this operation. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId timestamp_field = 3; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setTimestampField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->timestamp_field = $var; - - return $this; - } - - /** - * When the job is started by a JobTrigger we will automatically figure out - * a valid start_time to avoid scanning files that have not been modified - * since the last time the JobTrigger executed. This will be based on the - * time of the execution of the last run of the JobTrigger or the timespan - * end_time used in the last run of the JobTrigger. - * **For BigQuery** - * Inspect jobs triggered by automatic population will scan data that is at - * least three hours old when the job starts. This is because streaming - * buffer rows are not read during inspection and reading up to the current - * timestamp will result in skipped rows. - * See the [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) - * related to this operation. - * - * Generated from protobuf field bool enable_auto_population_of_timespan_config = 4; - * @return bool - */ - public function getEnableAutoPopulationOfTimespanConfig() - { - return $this->enable_auto_population_of_timespan_config; - } - - /** - * When the job is started by a JobTrigger we will automatically figure out - * a valid start_time to avoid scanning files that have not been modified - * since the last time the JobTrigger executed. This will be based on the - * time of the execution of the last run of the JobTrigger or the timespan - * end_time used in the last run of the JobTrigger. - * **For BigQuery** - * Inspect jobs triggered by automatic population will scan data that is at - * least three hours old when the job starts. This is because streaming - * buffer rows are not read during inspection and reading up to the current - * timestamp will result in skipped rows. - * See the [known - * issue](https://cloud.google.com/sensitive-data-protection/docs/known-issues#recently-streamed-data) - * related to this operation. - * - * Generated from protobuf field bool enable_auto_population_of_timespan_config = 4; - * @param bool $var - * @return $this - */ - public function setEnableAutoPopulationOfTimespanConfig($var) - { - GPBUtil::checkBool($var); - $this->enable_auto_population_of_timespan_config = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TimespanConfig::class, \Google\Cloud\Dlp\V2\StorageConfig_TimespanConfig::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php deleted file mode 100644 index e982b805e95c..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StorageMetadataLabel.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.StorageMetadataLabel - */ -class StorageMetadataLabel extends \Google\Protobuf\Internal\Message -{ - /** - * Label name. - * - * Generated from protobuf field string key = 1; - */ - protected $key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Label name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Label name. - * - * Generated from protobuf field string key = 1; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Label name. - * - * Generated from protobuf field string key = 1; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, True); - $this->key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php deleted file mode 100644 index 156e6335b473..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoType.php +++ /dev/null @@ -1,150 +0,0 @@ -google.privacy.dlp.v2.StoredInfoType - */ -class StoredInfoType extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Current version of the stored info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2; - */ - protected $current_version = null; - /** - * Pending versions of the stored info type. Empty if no versions are - * pending. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3; - */ - private $pending_versions; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name. - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeVersion $current_version - * Current version of the stored info type. - * @type array<\Google\Cloud\Dlp\V2\StoredInfoTypeVersion>|\Google\Protobuf\Internal\RepeatedField $pending_versions - * Pending versions of the stored info type. Empty if no versions are - * pending. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Current version of the stored info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2; - * @return \Google\Cloud\Dlp\V2\StoredInfoTypeVersion|null - */ - public function getCurrentVersion() - { - return $this->current_version; - } - - public function hasCurrentVersion() - { - return isset($this->current_version); - } - - public function clearCurrentVersion() - { - unset($this->current_version); - } - - /** - * Current version of the stored info type. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeVersion current_version = 2; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeVersion $var - * @return $this - */ - public function setCurrentVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeVersion::class); - $this->current_version = $var; - - return $this; - } - - /** - * Pending versions of the stored info type. Empty if no versions are - * pending. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPendingVersions() - { - return $this->pending_versions; - } - - /** - * Pending versions of the stored info type. Empty if no versions are - * pending. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.StoredInfoTypeVersion pending_versions = 3; - * @param array<\Google\Cloud\Dlp\V2\StoredInfoTypeVersion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPendingVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\StoredInfoTypeVersion::class); - $this->pending_versions = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php deleted file mode 100644 index ac6a4b96e563..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeConfig.php +++ /dev/null @@ -1,211 +0,0 @@ -google.privacy.dlp.v2.StoredInfoTypeConfig - */ -class StoredInfoTypeConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Display name of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * Description of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Display name of the StoredInfoType (max 256 characters). - * @type string $description - * Description of the StoredInfoType (max 256 characters). - * @type \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig $large_custom_dictionary - * StoredInfoType where findings are defined by a dictionary of phrases. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $dictionary - * Store dictionary-based CustomInfoType. - * @type \Google\Cloud\Dlp\V2\CustomInfoType\Regex $regex - * Store regular expression-based StoredInfoType. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Display name of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name of the StoredInfoType (max 256 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; - } - - /** - * Description of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the StoredInfoType (max 256 characters). - * - * Generated from protobuf field string description = 2; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * StoredInfoType where findings are defined by a dictionary of phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3; - * @return \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig|null - */ - public function getLargeCustomDictionary() - { - return $this->readOneof(3); - } - - public function hasLargeCustomDictionary() - { - return $this->hasOneof(3); - } - - /** - * StoredInfoType where findings are defined by a dictionary of phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryConfig large_custom_dictionary = 3; - * @param \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig $var - * @return $this - */ - public function setLargeCustomDictionary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\LargeCustomDictionaryConfig::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Store dictionary-based CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary|null - */ - public function getDictionary() - { - return $this->readOneof(4); - } - - public function hasDictionary() - { - return $this->hasOneof(4); - } - - /** - * Store dictionary-based CustomInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 4; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary $var - * @return $this - */ - public function setDictionary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Dictionary::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Store regular expression-based StoredInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; - * @return \Google\Cloud\Dlp\V2\CustomInfoType\Regex|null - */ - public function getRegex() - { - return $this->readOneof(5); - } - - public function hasRegex() - { - return $this->hasOneof(5); - } - - /** - * Store regular expression-based StoredInfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.CustomInfoType.Regex regex = 5; - * @param \Google\Cloud\Dlp\V2\CustomInfoType\Regex $var - * @return $this - */ - public function setRegex($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\CustomInfoType\Regex::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php deleted file mode 100644 index 8b2ebfc111d0..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeState.php +++ /dev/null @@ -1,78 +0,0 @@ -google.privacy.dlp.v2.StoredInfoTypeState - */ -class StoredInfoTypeState -{ - /** - * Unused - * - * Generated from protobuf enum STORED_INFO_TYPE_STATE_UNSPECIFIED = 0; - */ - const STORED_INFO_TYPE_STATE_UNSPECIFIED = 0; - /** - * StoredInfoType version is being created. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * StoredInfoType version is ready for use. - * - * Generated from protobuf enum READY = 2; - */ - const READY = 2; - /** - * StoredInfoType creation failed. All relevant error messages are returned in - * the `StoredInfoTypeVersion` message. - * - * Generated from protobuf enum FAILED = 3; - */ - const FAILED = 3; - /** - * StoredInfoType is no longer valid because artifacts stored in - * user-controlled storage were modified. To fix an invalid StoredInfoType, - * use the `UpdateStoredInfoType` method to create a new version. - * - * Generated from protobuf enum INVALID = 4; - */ - const INVALID = 4; - - private static $valueToName = [ - self::STORED_INFO_TYPE_STATE_UNSPECIFIED => 'STORED_INFO_TYPE_STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::READY => 'READY', - self::FAILED => 'FAILED', - self::INVALID => 'INVALID', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php deleted file mode 100644 index b6c9b0b25919..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeStats.php +++ /dev/null @@ -1,75 +0,0 @@ -google.privacy.dlp.v2.StoredInfoTypeStats - */ -class StoredInfoTypeStats extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats $large_custom_dictionary - * StoredInfoType where findings are defined by a dictionary of phrases. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * StoredInfoType where findings are defined by a dictionary of phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryStats large_custom_dictionary = 1; - * @return \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats|null - */ - public function getLargeCustomDictionary() - { - return $this->readOneof(1); - } - - public function hasLargeCustomDictionary() - { - return $this->hasOneof(1); - } - - /** - * StoredInfoType where findings are defined by a dictionary of phrases. - * - * Generated from protobuf field .google.privacy.dlp.v2.LargeCustomDictionaryStats large_custom_dictionary = 1; - * @param \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats $var - * @return $this - */ - public function setLargeCustomDictionary($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\LargeCustomDictionaryStats::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php deleted file mode 100644 index a9ad81826cb3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredInfoTypeVersion.php +++ /dev/null @@ -1,282 +0,0 @@ -google.privacy.dlp.v2.StoredInfoTypeVersion - */ -class StoredInfoTypeVersion extends \Google\Protobuf\Internal\Message -{ - /** - * StoredInfoType configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1; - */ - protected $config = null; - /** - * Create timestamp of the version. Read-only, determined by the system - * when the version is created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; - */ - protected $create_time = null; - /** - * Stored info type version state. Read-only, updated by the system - * during dictionary creation. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeState state = 3; - */ - protected $state = 0; - /** - * Errors that occurred when creating this storedInfoType version, or - * anomalies detected in the storedInfoType data that render it unusable. Only - * the five most recent errors will be displayed, with the most recent error - * appearing first. - * For example, some of the data for stored custom dictionaries is put in - * the user's Cloud Storage bucket, and if this data is modified or - * deleted by the user or another system, the dictionary becomes invalid. - * If any errors occur, fix the problem indicated by the error message and - * use the UpdateStoredInfoType API method to create another version of the - * storedInfoType to continue using it, reusing the same `config` if it was - * not the source of the error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 4; - */ - private $errors; - /** - * Statistics about this storedInfoType version. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5; - */ - protected $stats = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config - * StoredInfoType configuration. - * @type \Google\Protobuf\Timestamp $create_time - * Create timestamp of the version. Read-only, determined by the system - * when the version is created. - * @type int $state - * Stored info type version state. Read-only, updated by the system - * during dictionary creation. - * @type array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $errors - * Errors that occurred when creating this storedInfoType version, or - * anomalies detected in the storedInfoType data that render it unusable. Only - * the five most recent errors will be displayed, with the most recent error - * appearing first. - * For example, some of the data for stored custom dictionaries is put in - * the user's Cloud Storage bucket, and if this data is modified or - * deleted by the user or another system, the dictionary becomes invalid. - * If any errors occur, fix the problem indicated by the error message and - * use the UpdateStoredInfoType API method to create another version of the - * storedInfoType to continue using it, reusing the same `config` if it was - * not the source of the error. - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeStats $stats - * Statistics about this storedInfoType version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * StoredInfoType configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1; - * @return \Google\Cloud\Dlp\V2\StoredInfoTypeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * StoredInfoType configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 1; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * Create timestamp of the version. Read-only, determined by the system - * when the version is 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); - } - - /** - * Create timestamp of the version. Read-only, determined by the system - * when the version is 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; - } - - /** - * Stored info type version state. Read-only, updated by the system - * during dictionary creation. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeState state = 3; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Stored info type version state. Read-only, updated by the system - * during dictionary creation. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeState state = 3; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\StoredInfoTypeState::class); - $this->state = $var; - - return $this; - } - - /** - * Errors that occurred when creating this storedInfoType version, or - * anomalies detected in the storedInfoType data that render it unusable. Only - * the five most recent errors will be displayed, with the most recent error - * appearing first. - * For example, some of the data for stored custom dictionaries is put in - * the user's Cloud Storage bucket, and if this data is modified or - * deleted by the user or another system, the dictionary becomes invalid. - * If any errors occur, fix the problem indicated by the error message and - * use the UpdateStoredInfoType API method to create another version of the - * storedInfoType to continue using it, reusing the same `config` if it was - * not the source of the error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrors() - { - return $this->errors; - } - - /** - * Errors that occurred when creating this storedInfoType version, or - * anomalies detected in the storedInfoType data that render it unusable. Only - * the five most recent errors will be displayed, with the most recent error - * appearing first. - * For example, some of the data for stored custom dictionaries is put in - * the user's Cloud Storage bucket, and if this data is modified or - * deleted by the user or another system, the dictionary becomes invalid. - * If any errors occur, fix the problem indicated by the error message and - * use the UpdateStoredInfoType API method to create another version of the - * storedInfoType to continue using it, reusing the same `config` if it was - * not the source of the error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Error errors = 4; - * @param array<\Google\Cloud\Dlp\V2\Error>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Error::class); - $this->errors = $arr; - - return $this; - } - - /** - * Statistics about this storedInfoType version. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5; - * @return \Google\Cloud\Dlp\V2\StoredInfoTypeStats|null - */ - public function getStats() - { - return $this->stats; - } - - public function hasStats() - { - return isset($this->stats); - } - - public function clearStats() - { - unset($this->stats); - } - - /** - * Statistics about this storedInfoType version. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeStats stats = 5; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeStats $var - * @return $this - */ - public function setStats($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeStats::class); - $this->stats = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php deleted file mode 100644 index e240578bf676..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/StoredType.php +++ /dev/null @@ -1,123 +0,0 @@ -google.privacy.dlp.v2.StoredType - */ -class StoredType extends \Google\Protobuf\Internal\Message -{ - /** - * Resource name of the requested `StoredInfoType`, for example - * `organizations/433245324/storedInfoTypes/432452342` or - * `projects/project-id/storedInfoTypes/432452342`. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Timestamp indicating when the version of the `StoredInfoType` used for - * inspection was created. Output-only field, populated by the system. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Resource name of the requested `StoredInfoType`, for example - * `organizations/433245324/storedInfoTypes/432452342` or - * `projects/project-id/storedInfoTypes/432452342`. - * @type \Google\Protobuf\Timestamp $create_time - * Timestamp indicating when the version of the `StoredInfoType` used for - * inspection was created. Output-only field, populated by the system. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Resource name of the requested `StoredInfoType`, for example - * `organizations/433245324/storedInfoTypes/432452342` or - * `projects/project-id/storedInfoTypes/432452342`. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Resource name of the requested `StoredInfoType`, for example - * `organizations/433245324/storedInfoTypes/432452342` or - * `projects/project-id/storedInfoTypes/432452342`. - * - * 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; - } - - /** - * Timestamp indicating when the version of the `StoredInfoType` used for - * inspection was created. Output-only field, populated by the system. - * - * 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); - } - - /** - * Timestamp indicating when the version of the `StoredInfoType` used for - * inspection was created. Output-only field, populated by the system. - * - * 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; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php deleted file mode 100644 index 3fda5434774a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table.php +++ /dev/null @@ -1,103 +0,0 @@ -google.privacy.dlp.v2.Table - */ -class Table extends \Google\Protobuf\Internal\Message -{ - /** - * Headers of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId headers = 1; - */ - private $headers; - /** - * Rows of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Table.Row rows = 2; - */ - private $rows; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $headers - * Headers of the table. - * @type array<\Google\Cloud\Dlp\V2\Table\Row>|\Google\Protobuf\Internal\RepeatedField $rows - * Rows of the table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Headers of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId headers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHeaders() - { - return $this->headers; - } - - /** - * Headers of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId headers = 1; - * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->headers = $arr; - - return $this; - } - - /** - * Rows of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Table.Row rows = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRows() - { - return $this->rows; - } - - /** - * Rows of the table. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Table.Row rows = 2; - * @param array<\Google\Cloud\Dlp\V2\Table\Row>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Table\Row::class); - $this->rows = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php deleted file mode 100644 index 18ab4403ca50..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Table/Row.php +++ /dev/null @@ -1,70 +0,0 @@ -google.privacy.dlp.v2.Table.Row - */ -class Row extends \Google\Protobuf\Internal\Message -{ - /** - * Individual cells. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value values = 1; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $values - * Individual cells. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Individual cells. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * Individual cells. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.Value values = 1; - * @param array<\Google\Cloud\Dlp\V2\Value>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\Value::class); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Row::class, \Google\Cloud\Dlp\V2\Table_Row::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php deleted file mode 100644 index d7f617c0c325..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile.php +++ /dev/null @@ -1,1031 +0,0 @@ -google.privacy.dlp.v2.TableDataProfile - */ -class TableDataProfile extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 36; - */ - protected $data_source_type = null; - /** - * The resource name of the project data profile for this table. - * - * Generated from protobuf field string project_data_profile = 2; - */ - protected $project_data_profile = ''; - /** - * The Google Cloud project ID that owns the resource. - * - * Generated from protobuf field string dataset_project_id = 24; - */ - protected $dataset_project_id = ''; - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * locations. - * - * Generated from protobuf field string dataset_location = 29; - */ - protected $dataset_location = ''; - /** - * If the resource is BigQuery, the dataset ID. - * - * Generated from protobuf field string dataset_id = 25; - */ - protected $dataset_id = ''; - /** - * The table ID. - * - * Generated from protobuf field string table_id = 26; - */ - protected $table_id = ''; - /** - * The Cloud Asset Inventory resource that was profiled in order to generate - * this TableDataProfile. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * - * Generated from protobuf field string full_resource = 3; - */ - protected $full_resource = ''; - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 21; - */ - protected $profile_status = null; - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile.State state = 22; - */ - protected $state = 0; - /** - * The sensitivity score of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; - */ - protected $sensitivity_score = null; - /** - * The data risk level of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; - */ - protected $data_risk_level = null; - /** - * The infoTypes predicted from this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27; - */ - private $predicted_info_types; - /** - * Other infoTypes found in this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28; - */ - private $other_info_types; - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - */ - protected $config_snapshot = null; - /** - * The time when this table was last modified - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 8; - */ - protected $last_modified_time = null; - /** - * Optional. The time when this table expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 9; - */ - protected $expiration_time = null; - /** - * The number of columns profiled in the table. - * - * Generated from protobuf field int64 scanned_column_count = 10; - */ - protected $scanned_column_count = 0; - /** - * The number of columns skipped in the table because of an error. - * - * Generated from protobuf field int64 failed_column_count = 11; - */ - protected $failed_column_count = 0; - /** - * The size of the table when the profile was generated. - * - * Generated from protobuf field int64 table_size_bytes = 12; - */ - protected $table_size_bytes = 0; - /** - * Number of rows in the table when the profile was generated. - * This will not be populated for BigLake tables. - * - * Generated from protobuf field int64 row_count = 13; - */ - protected $row_count = 0; - /** - * How the table is encrypted. - * - * Generated from protobuf field .google.privacy.dlp.v2.EncryptionStatus encryption_status = 14; - */ - protected $encryption_status = 0; - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15; - */ - protected $resource_visibility = 0; - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 16; - */ - protected $profile_last_generated = null; - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 17; - */ - private $resource_labels; - /** - * The time at which the table was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 23; - */ - protected $create_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the profile. - * @type \Google\Cloud\Dlp\V2\DataSourceType $data_source_type - * The resource type that was profiled. - * @type string $project_data_profile - * The resource name of the project data profile for this table. - * @type string $dataset_project_id - * The Google Cloud project ID that owns the resource. - * @type string $dataset_location - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * locations. - * @type string $dataset_id - * If the resource is BigQuery, the dataset ID. - * @type string $table_id - * The table ID. - * @type string $full_resource - * The Cloud Asset Inventory resource that was profiled in order to generate - * this TableDataProfile. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * @type \Google\Cloud\Dlp\V2\ProfileStatus $profile_status - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * @type int $state - * State of a profile. - * @type \Google\Cloud\Dlp\V2\SensitivityScore $sensitivity_score - * The sensitivity score of this table. - * @type \Google\Cloud\Dlp\V2\DataRiskLevel $data_risk_level - * The data risk level of this table. - * @type array<\Google\Cloud\Dlp\V2\InfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $predicted_info_types - * The infoTypes predicted from this table's data. - * @type array<\Google\Cloud\Dlp\V2\OtherInfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $other_info_types - * Other infoTypes found in this table's data. - * @type \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $config_snapshot - * The snapshot of the configurations used to generate the profile. - * @type \Google\Protobuf\Timestamp $last_modified_time - * The time when this table was last modified - * @type \Google\Protobuf\Timestamp $expiration_time - * Optional. The time when this table expires. - * @type int|string $scanned_column_count - * The number of columns profiled in the table. - * @type int|string $failed_column_count - * The number of columns skipped in the table because of an error. - * @type int|string $table_size_bytes - * The size of the table when the profile was generated. - * @type int|string $row_count - * Number of rows in the table when the profile was generated. - * This will not be populated for BigLake tables. - * @type int $encryption_status - * How the table is encrypted. - * @type int $resource_visibility - * How broadly a resource has been shared. - * @type \Google\Protobuf\Timestamp $profile_last_generated - * The last time the profile was generated. - * @type array|\Google\Protobuf\Internal\MapField $resource_labels - * The labels applied to the resource at the time the profile was generated. - * @type \Google\Protobuf\Timestamp $create_time - * The time at which the table was created. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the profile. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 36; - * @return \Google\Cloud\Dlp\V2\DataSourceType|null - */ - public function getDataSourceType() - { - return $this->data_source_type; - } - - public function hasDataSourceType() - { - return isset($this->data_source_type); - } - - public function clearDataSourceType() - { - unset($this->data_source_type); - } - - /** - * The resource type that was profiled. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataSourceType data_source_type = 36; - * @param \Google\Cloud\Dlp\V2\DataSourceType $var - * @return $this - */ - public function setDataSourceType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataSourceType::class); - $this->data_source_type = $var; - - return $this; - } - - /** - * The resource name of the project data profile for this table. - * - * Generated from protobuf field string project_data_profile = 2; - * @return string - */ - public function getProjectDataProfile() - { - return $this->project_data_profile; - } - - /** - * The resource name of the project data profile for this table. - * - * Generated from protobuf field string project_data_profile = 2; - * @param string $var - * @return $this - */ - public function setProjectDataProfile($var) - { - GPBUtil::checkString($var, True); - $this->project_data_profile = $var; - - return $this; - } - - /** - * The Google Cloud project ID that owns the resource. - * - * Generated from protobuf field string dataset_project_id = 24; - * @return string - */ - public function getDatasetProjectId() - { - return $this->dataset_project_id; - } - - /** - * The Google Cloud project ID that owns the resource. - * - * Generated from protobuf field string dataset_project_id = 24; - * @param string $var - * @return $this - */ - public function setDatasetProjectId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_project_id = $var; - - return $this; - } - - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * locations. - * - * Generated from protobuf field string dataset_location = 29; - * @return string - */ - public function getDatasetLocation() - { - return $this->dataset_location; - } - - /** - * If supported, the location where the dataset's data is stored. - * See https://cloud.google.com/bigquery/docs/locations for supported - * locations. - * - * Generated from protobuf field string dataset_location = 29; - * @param string $var - * @return $this - */ - public function setDatasetLocation($var) - { - GPBUtil::checkString($var, True); - $this->dataset_location = $var; - - return $this; - } - - /** - * If the resource is BigQuery, the dataset ID. - * - * Generated from protobuf field string dataset_id = 25; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * If the resource is BigQuery, the dataset ID. - * - * Generated from protobuf field string dataset_id = 25; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * The table ID. - * - * Generated from protobuf field string table_id = 26; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * The table ID. - * - * Generated from protobuf field string table_id = 26; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - - /** - * The Cloud Asset Inventory resource that was profiled in order to generate - * this TableDataProfile. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * - * Generated from protobuf field string full_resource = 3; - * @return string - */ - public function getFullResource() - { - return $this->full_resource; - } - - /** - * The Cloud Asset Inventory resource that was profiled in order to generate - * this TableDataProfile. - * https://cloud.google.com/apis/design/resource_names#full_resource_name - * - * Generated from protobuf field string full_resource = 3; - * @param string $var - * @return $this - */ - public function setFullResource($var) - { - GPBUtil::checkString($var, True); - $this->full_resource = $var; - - return $this; - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 21; - * @return \Google\Cloud\Dlp\V2\ProfileStatus|null - */ - public function getProfileStatus() - { - return $this->profile_status; - } - - public function hasProfileStatus() - { - return isset($this->profile_status); - } - - public function clearProfileStatus() - { - unset($this->profile_status); - } - - /** - * Success or error status from the most recent profile generation attempt. - * May be empty if the profile is still being generated. - * - * Generated from protobuf field .google.privacy.dlp.v2.ProfileStatus profile_status = 21; - * @param \Google\Cloud\Dlp\V2\ProfileStatus $var - * @return $this - */ - public function setProfileStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\ProfileStatus::class); - $this->profile_status = $var; - - return $this; - } - - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile.State state = 22; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * State of a profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.TableDataProfile.State state = 22; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TableDataProfile\State::class); - $this->state = $var; - - return $this; - } - - /** - * The sensitivity score of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; - * @return \Google\Cloud\Dlp\V2\SensitivityScore|null - */ - public function getSensitivityScore() - { - return $this->sensitivity_score; - } - - public function hasSensitivityScore() - { - return isset($this->sensitivity_score); - } - - public function clearSensitivityScore() - { - unset($this->sensitivity_score); - } - - /** - * The sensitivity score of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.SensitivityScore sensitivity_score = 5; - * @param \Google\Cloud\Dlp\V2\SensitivityScore $var - * @return $this - */ - public function setSensitivityScore($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\SensitivityScore::class); - $this->sensitivity_score = $var; - - return $this; - } - - /** - * The data risk level of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; - * @return \Google\Cloud\Dlp\V2\DataRiskLevel|null - */ - public function getDataRiskLevel() - { - return $this->data_risk_level; - } - - public function hasDataRiskLevel() - { - return isset($this->data_risk_level); - } - - public function clearDataRiskLevel() - { - unset($this->data_risk_level); - } - - /** - * The data risk level of this table. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataRiskLevel data_risk_level = 6; - * @param \Google\Cloud\Dlp\V2\DataRiskLevel $var - * @return $this - */ - public function setDataRiskLevel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataRiskLevel::class); - $this->data_risk_level = $var; - - return $this; - } - - /** - * The infoTypes predicted from this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPredictedInfoTypes() - { - return $this->predicted_info_types; - } - - /** - * The infoTypes predicted from this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.InfoTypeSummary predicted_info_types = 27; - * @param array<\Google\Cloud\Dlp\V2\InfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPredictedInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\InfoTypeSummary::class); - $this->predicted_info_types = $arr; - - return $this; - } - - /** - * Other infoTypes found in this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getOtherInfoTypes() - { - return $this->other_info_types; - } - - /** - * Other infoTypes found in this table's data. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.OtherInfoTypeSummary other_info_types = 28; - * @param array<\Google\Cloud\Dlp\V2\OtherInfoTypeSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setOtherInfoTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\OtherInfoTypeSummary::class); - $this->other_info_types = $arr; - - return $this; - } - - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - * @return \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot|null - */ - public function getConfigSnapshot() - { - return $this->config_snapshot; - } - - public function hasConfigSnapshot() - { - return isset($this->config_snapshot); - } - - public function clearConfigSnapshot() - { - unset($this->config_snapshot); - } - - /** - * The snapshot of the configurations used to generate the profile. - * - * Generated from protobuf field .google.privacy.dlp.v2.DataProfileConfigSnapshot config_snapshot = 7; - * @param \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot $var - * @return $this - */ - public function setConfigSnapshot($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DataProfileConfigSnapshot::class); - $this->config_snapshot = $var; - - return $this; - } - - /** - * The time when this table was last modified - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 8; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastModifiedTime() - { - return $this->last_modified_time; - } - - public function hasLastModifiedTime() - { - return isset($this->last_modified_time); - } - - public function clearLastModifiedTime() - { - unset($this->last_modified_time); - } - - /** - * The time when this table was last modified - * - * Generated from protobuf field .google.protobuf.Timestamp last_modified_time = 8; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastModifiedTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_modified_time = $var; - - return $this; - } - - /** - * Optional. The time when this table expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getExpirationTime() - { - return $this->expiration_time; - } - - public function hasExpirationTime() - { - return isset($this->expiration_time); - } - - public function clearExpirationTime() - { - unset($this->expiration_time); - } - - /** - * Optional. The time when this table expires. - * - * Generated from protobuf field .google.protobuf.Timestamp expiration_time = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpirationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expiration_time = $var; - - return $this; - } - - /** - * The number of columns profiled in the table. - * - * Generated from protobuf field int64 scanned_column_count = 10; - * @return int|string - */ - public function getScannedColumnCount() - { - return $this->scanned_column_count; - } - - /** - * The number of columns profiled in the table. - * - * Generated from protobuf field int64 scanned_column_count = 10; - * @param int|string $var - * @return $this - */ - public function setScannedColumnCount($var) - { - GPBUtil::checkInt64($var); - $this->scanned_column_count = $var; - - return $this; - } - - /** - * The number of columns skipped in the table because of an error. - * - * Generated from protobuf field int64 failed_column_count = 11; - * @return int|string - */ - public function getFailedColumnCount() - { - return $this->failed_column_count; - } - - /** - * The number of columns skipped in the table because of an error. - * - * Generated from protobuf field int64 failed_column_count = 11; - * @param int|string $var - * @return $this - */ - public function setFailedColumnCount($var) - { - GPBUtil::checkInt64($var); - $this->failed_column_count = $var; - - return $this; - } - - /** - * The size of the table when the profile was generated. - * - * Generated from protobuf field int64 table_size_bytes = 12; - * @return int|string - */ - public function getTableSizeBytes() - { - return $this->table_size_bytes; - } - - /** - * The size of the table when the profile was generated. - * - * Generated from protobuf field int64 table_size_bytes = 12; - * @param int|string $var - * @return $this - */ - public function setTableSizeBytes($var) - { - GPBUtil::checkInt64($var); - $this->table_size_bytes = $var; - - return $this; - } - - /** - * Number of rows in the table when the profile was generated. - * This will not be populated for BigLake tables. - * - * Generated from protobuf field int64 row_count = 13; - * @return int|string - */ - public function getRowCount() - { - return $this->row_count; - } - - /** - * Number of rows in the table when the profile was generated. - * This will not be populated for BigLake tables. - * - * Generated from protobuf field int64 row_count = 13; - * @param int|string $var - * @return $this - */ - public function setRowCount($var) - { - GPBUtil::checkInt64($var); - $this->row_count = $var; - - return $this; - } - - /** - * How the table is encrypted. - * - * Generated from protobuf field .google.privacy.dlp.v2.EncryptionStatus encryption_status = 14; - * @return int - */ - public function getEncryptionStatus() - { - return $this->encryption_status; - } - - /** - * How the table is encrypted. - * - * Generated from protobuf field .google.privacy.dlp.v2.EncryptionStatus encryption_status = 14; - * @param int $var - * @return $this - */ - public function setEncryptionStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\EncryptionStatus::class); - $this->encryption_status = $var; - - return $this; - } - - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15; - * @return int - */ - public function getResourceVisibility() - { - return $this->resource_visibility; - } - - /** - * How broadly a resource has been shared. - * - * Generated from protobuf field .google.privacy.dlp.v2.ResourceVisibility resource_visibility = 15; - * @param int $var - * @return $this - */ - public function setResourceVisibility($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\ResourceVisibility::class); - $this->resource_visibility = $var; - - return $this; - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 16; - * @return \Google\Protobuf\Timestamp|null - */ - public function getProfileLastGenerated() - { - return $this->profile_last_generated; - } - - public function hasProfileLastGenerated() - { - return isset($this->profile_last_generated); - } - - public function clearProfileLastGenerated() - { - unset($this->profile_last_generated); - } - - /** - * The last time the profile was generated. - * - * Generated from protobuf field .google.protobuf.Timestamp profile_last_generated = 16; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setProfileLastGenerated($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->profile_last_generated = $var; - - return $this; - } - - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 17; - * @return \Google\Protobuf\Internal\MapField - */ - public function getResourceLabels() - { - return $this->resource_labels; - } - - /** - * The labels applied to the resource at the time the profile was generated. - * - * Generated from protobuf field map resource_labels = 17; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setResourceLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->resource_labels = $arr; - - return $this; - } - - /** - * The time at which the table was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 23; - * @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 the table was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 23; - * @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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php deleted file mode 100644 index c28719cfb2e3..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableDataProfile/State.php +++ /dev/null @@ -1,67 +0,0 @@ -google.privacy.dlp.v2.TableDataProfile.State - */ -class State -{ - /** - * Unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The profile is currently running. Once a profile has finished it will - * transition to DONE. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * The profile is no longer generating. - * If profile_status.status.code is 0, the profile succeeded, otherwise, it - * failed. - * - * Generated from protobuf enum DONE = 2; - */ - const DONE = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::DONE => '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(State::class, \Google\Cloud\Dlp\V2\TableDataProfile_State::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php deleted file mode 100644 index 16a8dbadb8fb..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableLocation.php +++ /dev/null @@ -1,87 +0,0 @@ -google.privacy.dlp.v2.TableLocation - */ -class TableLocation extends \Google\Protobuf\Internal\Message -{ - /** - * The zero-based index of the row where the finding is located. Only - * populated for resources that have a natural ordering, not BigQuery. In - * BigQuery, to identify the row a finding came from, populate - * BigQueryOptions.identifying_fields with your primary key column names and - * when you store the findings the value of those columns will be stored - * inside of Finding. - * - * Generated from protobuf field int64 row_index = 1; - */ - protected $row_index = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $row_index - * The zero-based index of the row where the finding is located. Only - * populated for resources that have a natural ordering, not BigQuery. In - * BigQuery, to identify the row a finding came from, populate - * BigQueryOptions.identifying_fields with your primary key column names and - * when you store the findings the value of those columns will be stored - * inside of Finding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The zero-based index of the row where the finding is located. Only - * populated for resources that have a natural ordering, not BigQuery. In - * BigQuery, to identify the row a finding came from, populate - * BigQueryOptions.identifying_fields with your primary key column names and - * when you store the findings the value of those columns will be stored - * inside of Finding. - * - * Generated from protobuf field int64 row_index = 1; - * @return int|string - */ - public function getRowIndex() - { - return $this->row_index; - } - - /** - * The zero-based index of the row where the finding is located. Only - * populated for resources that have a natural ordering, not BigQuery. In - * BigQuery, to identify the row a finding came from, populate - * BigQueryOptions.identifying_fields with your primary key column names and - * when you store the findings the value of those columns will be stored - * inside of Finding. - * - * Generated from protobuf field int64 row_index = 1; - * @param int|string $var - * @return $this - */ - public function setRowIndex($var) - { - GPBUtil::checkInt64($var); - $this->row_index = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php deleted file mode 100644 index 46fbb8dc8f82..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableOptions.php +++ /dev/null @@ -1,79 +0,0 @@ -google.privacy.dlp.v2.TableOptions - */ -class TableOptions extends \Google\Protobuf\Internal\Message -{ - /** - * The columns that are the primary keys for table objects included in - * ContentItem. A copy of this cell's value will stored alongside alongside - * each finding so that the finding can be traced to the specific row it came - * from. No more than 3 may be provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; - */ - private $identifying_fields; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $identifying_fields - * The columns that are the primary keys for table objects included in - * ContentItem. A copy of this cell's value will stored alongside alongside - * each finding so that the finding can be traced to the specific row it came - * from. No more than 3 may be provided. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * The columns that are the primary keys for table objects included in - * ContentItem. A copy of this cell's value will stored alongside alongside - * each finding so that the finding can be traced to the specific row it came - * from. No more than 3 may be provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIdentifyingFields() - { - return $this->identifying_fields; - } - - /** - * The columns that are the primary keys for table objects included in - * ContentItem. A copy of this cell's value will stored alongside alongside - * each finding so that the finding can be traced to the specific row it came - * from. No more than 3 may be provided. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1; - * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIdentifyingFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class); - $this->identifying_fields = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php deleted file mode 100644 index d66eac073739..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TableReference.php +++ /dev/null @@ -1,102 +0,0 @@ -google.privacy.dlp.v2.TableReference - */ -class TableReference extends \Google\Protobuf\Internal\Message -{ - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 1; - */ - protected $dataset_id = ''; - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 2; - */ - protected $table_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $dataset_id - * Dataset ID of the table. - * @type string $table_id - * Name of the table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce(); - parent::__construct($data); - } - - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 1; - * @return string - */ - public function getDatasetId() - { - return $this->dataset_id; - } - - /** - * Dataset ID of the table. - * - * Generated from protobuf field string dataset_id = 1; - * @param string $var - * @return $this - */ - public function setDatasetId($var) - { - GPBUtil::checkString($var, True); - $this->dataset_id = $var; - - return $this; - } - - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 2; - * @return string - */ - public function getTableId() - { - return $this->table_id; - } - - /** - * Name of the table. - * - * Generated from protobuf field string table_id = 2; - * @param string $var - * @return $this - */ - public function setTableId($var) - { - GPBUtil::checkString($var, True); - $this->table_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php deleted file mode 100644 index 56ef5ac5f19b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.TimePartConfig - */ -class TimePartConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The part of the time to keep. - * - * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1; - */ - protected $part_to_extract = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $part_to_extract - * The part of the time to keep. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The part of the time to keep. - * - * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1; - * @return int - */ - public function getPartToExtract() - { - return $this->part_to_extract; - } - - /** - * The part of the time to keep. - * - * Generated from protobuf field .google.privacy.dlp.v2.TimePartConfig.TimePart part_to_extract = 1; - * @param int $var - * @return $this - */ - public function setPartToExtract($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TimePartConfig\TimePart::class); - $this->part_to_extract = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php deleted file mode 100644 index a1b53ed057fc..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TimePartConfig/TimePart.php +++ /dev/null @@ -1,92 +0,0 @@ -google.privacy.dlp.v2.TimePartConfig.TimePart - */ -class TimePart -{ - /** - * Unused - * - * Generated from protobuf enum TIME_PART_UNSPECIFIED = 0; - */ - const TIME_PART_UNSPECIFIED = 0; - /** - * [0-9999] - * - * Generated from protobuf enum YEAR = 1; - */ - const YEAR = 1; - /** - * [1-12] - * - * Generated from protobuf enum MONTH = 2; - */ - const MONTH = 2; - /** - * [1-31] - * - * Generated from protobuf enum DAY_OF_MONTH = 3; - */ - const DAY_OF_MONTH = 3; - /** - * [1-7] - * - * Generated from protobuf enum DAY_OF_WEEK = 4; - */ - const DAY_OF_WEEK = 4; - /** - * [1-53] - * - * Generated from protobuf enum WEEK_OF_YEAR = 5; - */ - const WEEK_OF_YEAR = 5; - /** - * [0-23] - * - * Generated from protobuf enum HOUR_OF_DAY = 6; - */ - const HOUR_OF_DAY = 6; - - private static $valueToName = [ - self::TIME_PART_UNSPECIFIED => 'TIME_PART_UNSPECIFIED', - self::YEAR => 'YEAR', - self::MONTH => 'MONTH', - self::DAY_OF_MONTH => 'DAY_OF_MONTH', - self::DAY_OF_WEEK => 'DAY_OF_WEEK', - self::WEEK_OF_YEAR => 'WEEK_OF_YEAR', - self::HOUR_OF_DAY => 'HOUR_OF_DAY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TimePart::class, \Google\Cloud\Dlp\V2\TimePartConfig_TimePart::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php deleted file mode 100644 index ba44342662ed..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationConfig.php +++ /dev/null @@ -1,193 +0,0 @@ -google.privacy.dlp.v2.TransformationConfig - */ -class TransformationConfig extends \Google\Protobuf\Internal\Message -{ - /** - * De-identify template. - * If this template is specified, it will serve as the default de-identify - * template. This template cannot contain `record_transformations` since it - * can be used for unstructured content such as free-form text files. If this - * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to - * de-identify unstructured content. - * - * Generated from protobuf field string deidentify_template = 1; - */ - protected $deidentify_template = ''; - /** - * Structured de-identify template. - * If this template is specified, it will serve as the de-identify template - * for structured content such as delimited files and tables. If this template - * is not set but the `deidentify_template` is set, then `deidentify_template` - * will also apply to the structured content. If neither template is set, a - * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured - * content. - * - * Generated from protobuf field string structured_deidentify_template = 2; - */ - protected $structured_deidentify_template = ''; - /** - * Image redact template. - * If this template is specified, it will serve as the de-identify template - * for images. If this template is not set, all findings in the image will be - * redacted with a black box. - * - * Generated from protobuf field string image_redact_template = 4; - */ - protected $image_redact_template = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $deidentify_template - * De-identify template. - * If this template is specified, it will serve as the default de-identify - * template. This template cannot contain `record_transformations` since it - * can be used for unstructured content such as free-form text files. If this - * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to - * de-identify unstructured content. - * @type string $structured_deidentify_template - * Structured de-identify template. - * If this template is specified, it will serve as the de-identify template - * for structured content such as delimited files and tables. If this template - * is not set but the `deidentify_template` is set, then `deidentify_template` - * will also apply to the structured content. If neither template is set, a - * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured - * content. - * @type string $image_redact_template - * Image redact template. - * If this template is specified, it will serve as the de-identify template - * for images. If this template is not set, all findings in the image will be - * redacted with a black box. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * De-identify template. - * If this template is specified, it will serve as the default de-identify - * template. This template cannot contain `record_transformations` since it - * can be used for unstructured content such as free-form text files. If this - * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to - * de-identify unstructured content. - * - * Generated from protobuf field string deidentify_template = 1; - * @return string - */ - public function getDeidentifyTemplate() - { - return $this->deidentify_template; - } - - /** - * De-identify template. - * If this template is specified, it will serve as the default de-identify - * template. This template cannot contain `record_transformations` since it - * can be used for unstructured content such as free-form text files. If this - * template is not set, a default `ReplaceWithInfoTypeConfig` will be used to - * de-identify unstructured content. - * - * 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; - } - - /** - * Structured de-identify template. - * If this template is specified, it will serve as the de-identify template - * for structured content such as delimited files and tables. If this template - * is not set but the `deidentify_template` is set, then `deidentify_template` - * will also apply to the structured content. If neither template is set, a - * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured - * content. - * - * Generated from protobuf field string structured_deidentify_template = 2; - * @return string - */ - public function getStructuredDeidentifyTemplate() - { - return $this->structured_deidentify_template; - } - - /** - * Structured de-identify template. - * If this template is specified, it will serve as the de-identify template - * for structured content such as delimited files and tables. If this template - * is not set but the `deidentify_template` is set, then `deidentify_template` - * will also apply to the structured content. If neither template is set, a - * default `ReplaceWithInfoTypeConfig` will be used to de-identify structured - * content. - * - * Generated from protobuf field string structured_deidentify_template = 2; - * @param string $var - * @return $this - */ - public function setStructuredDeidentifyTemplate($var) - { - GPBUtil::checkString($var, True); - $this->structured_deidentify_template = $var; - - return $this; - } - - /** - * Image redact template. - * If this template is specified, it will serve as the de-identify template - * for images. If this template is not set, all findings in the image will be - * redacted with a black box. - * - * Generated from protobuf field string image_redact_template = 4; - * @return string - */ - public function getImageRedactTemplate() - { - return $this->image_redact_template; - } - - /** - * Image redact template. - * If this template is specified, it will serve as the de-identify template - * for images. If this template is not set, all findings in the image will be - * redacted with a black box. - * - * Generated from protobuf field string image_redact_template = 4; - * @param string $var - * @return $this - */ - public function setImageRedactTemplate($var) - { - GPBUtil::checkString($var, True); - $this->image_redact_template = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php deleted file mode 100644 index 2030c3527e9f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationContainerType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.TransformationContainerType - */ -class TransformationContainerType -{ - /** - * Unused. - * - * Generated from protobuf enum TRANSFORM_UNKNOWN_CONTAINER = 0; - */ - const TRANSFORM_UNKNOWN_CONTAINER = 0; - /** - * Body of a file. - * - * Generated from protobuf enum TRANSFORM_BODY = 1; - */ - const TRANSFORM_BODY = 1; - /** - * Metadata for a file. - * - * Generated from protobuf enum TRANSFORM_METADATA = 2; - */ - const TRANSFORM_METADATA = 2; - /** - * A table. - * - * Generated from protobuf enum TRANSFORM_TABLE = 3; - */ - const TRANSFORM_TABLE = 3; - - private static $valueToName = [ - self::TRANSFORM_UNKNOWN_CONTAINER => 'TRANSFORM_UNKNOWN_CONTAINER', - self::TRANSFORM_BODY => 'TRANSFORM_BODY', - self::TRANSFORM_METADATA => 'TRANSFORM_METADATA', - self::TRANSFORM_TABLE => 'TRANSFORM_TABLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php deleted file mode 100644 index 1f75fa66768f..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDescription.php +++ /dev/null @@ -1,224 +0,0 @@ -google.privacy.dlp.v2.TransformationDescription - */ -class TransformationDescription extends \Google\Protobuf\Internal\Message -{ - /** - * The transformation type. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationType type = 1; - */ - protected $type = 0; - /** - * A description of the transformation. This is empty for a - * RECORD_SUPPRESSION, or is the output of calling toString() on the - * `PrimitiveTransformation` protocol buffer message for any other type of - * transformation. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * A human-readable string representation of the `RecordCondition` - * corresponding to this transformation. Set if a `RecordCondition` was used - * to determine whether or not to apply this transformation. - * Examples: - * * (age_field > 85) - * * (age_field <= 18) - * * (zip_field exists) - * * (zip_field == 01234) && (city_field != "Springville") - * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) - * - * Generated from protobuf field string condition = 3; - */ - protected $condition = ''; - /** - * Set if the transformation was limited to a specific `InfoType`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 4; - */ - protected $info_type = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * The transformation type. - * @type string $description - * A description of the transformation. This is empty for a - * RECORD_SUPPRESSION, or is the output of calling toString() on the - * `PrimitiveTransformation` protocol buffer message for any other type of - * transformation. - * @type string $condition - * A human-readable string representation of the `RecordCondition` - * corresponding to this transformation. Set if a `RecordCondition` was used - * to determine whether or not to apply this transformation. - * Examples: - * * (age_field > 85) - * * (age_field <= 18) - * * (zip_field exists) - * * (zip_field == 01234) && (city_field != "Springville") - * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * Set if the transformation was limited to a specific `InfoType`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The transformation type. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationType type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The transformation type. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationType type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationType::class); - $this->type = $var; - - return $this; - } - - /** - * A description of the transformation. This is empty for a - * RECORD_SUPPRESSION, or is the output of calling toString() on the - * `PrimitiveTransformation` protocol buffer message for any other type of - * transformation. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * A description of the transformation. This is empty for a - * RECORD_SUPPRESSION, or is the output of calling toString() on the - * `PrimitiveTransformation` protocol buffer message for any other type of - * transformation. - * - * 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; - } - - /** - * A human-readable string representation of the `RecordCondition` - * corresponding to this transformation. Set if a `RecordCondition` was used - * to determine whether or not to apply this transformation. - * Examples: - * * (age_field > 85) - * * (age_field <= 18) - * * (zip_field exists) - * * (zip_field == 01234) && (city_field != "Springville") - * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) - * - * Generated from protobuf field string condition = 3; - * @return string - */ - public function getCondition() - { - return $this->condition; - } - - /** - * A human-readable string representation of the `RecordCondition` - * corresponding to this transformation. Set if a `RecordCondition` was used - * to determine whether or not to apply this transformation. - * Examples: - * * (age_field > 85) - * * (age_field <= 18) - * * (zip_field exists) - * * (zip_field == 01234) && (city_field != "Springville") - * * (zip_field == 01234) && (age_field <= 18) && (city_field exists) - * - * Generated from protobuf field string condition = 3; - * @param string $var - * @return $this - */ - public function setCondition($var) - { - GPBUtil::checkString($var, True); - $this->condition = $var; - - return $this; - } - - /** - * Set if the transformation was limited to a specific `InfoType`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 4; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * Set if the transformation was limited to a specific `InfoType`. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 4; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php deleted file mode 100644 index 4dd1b7730d8a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetails.php +++ /dev/null @@ -1,296 +0,0 @@ -google.privacy.dlp.v2.TransformationDetails - */ -class TransformationDetails extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the job that completed the transformation. - * - * Generated from protobuf field string resource_name = 1; - */ - protected $resource_name = ''; - /** - * The top level name of the container where the transformation is located - * (this will be the source file name or table name). - * - * Generated from protobuf field string container_name = 2; - */ - protected $container_name = ''; - /** - * Description of transformation. This would only contain more than one - * element if there were multiple matching transformations and which one to - * apply was ambiguous. Not set for states that contain no transformation, - * currently only state that contains no transformation is - * TransformationResultStateType.METADATA_UNRETRIEVABLE. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3; - */ - private $transformation; - /** - * Status of the transformation, if transformation was not successful, this - * will specify what caused it to fail, otherwise it will show that the - * transformation was successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatus status_details = 4; - */ - protected $status_details = null; - /** - * The number of bytes that were transformed. If transformation was - * unsuccessful or did not take place because there was no content to - * transform, this will be zero. - * - * Generated from protobuf field int64 transformed_bytes = 5; - */ - protected $transformed_bytes = 0; - /** - * The precise location of the transformed content in the original container. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationLocation transformation_location = 6; - */ - protected $transformation_location = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $resource_name - * The name of the job that completed the transformation. - * @type string $container_name - * The top level name of the container where the transformation is located - * (this will be the source file name or table name). - * @type array<\Google\Cloud\Dlp\V2\TransformationDescription>|\Google\Protobuf\Internal\RepeatedField $transformation - * Description of transformation. This would only contain more than one - * element if there were multiple matching transformations and which one to - * apply was ambiguous. Not set for states that contain no transformation, - * currently only state that contains no transformation is - * TransformationResultStateType.METADATA_UNRETRIEVABLE. - * @type \Google\Cloud\Dlp\V2\TransformationResultStatus $status_details - * Status of the transformation, if transformation was not successful, this - * will specify what caused it to fail, otherwise it will show that the - * transformation was successful. - * @type int|string $transformed_bytes - * The number of bytes that were transformed. If transformation was - * unsuccessful or did not take place because there was no content to - * transform, this will be zero. - * @type \Google\Cloud\Dlp\V2\TransformationLocation $transformation_location - * The precise location of the transformed content in the original container. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The name of the job that completed the transformation. - * - * Generated from protobuf field string resource_name = 1; - * @return string - */ - public function getResourceName() - { - return $this->resource_name; - } - - /** - * The name of the job that completed the transformation. - * - * Generated from protobuf field string resource_name = 1; - * @param string $var - * @return $this - */ - public function setResourceName($var) - { - GPBUtil::checkString($var, True); - $this->resource_name = $var; - - return $this; - } - - /** - * The top level name of the container where the transformation is located - * (this will be the source file name or table name). - * - * Generated from protobuf field string container_name = 2; - * @return string - */ - public function getContainerName() - { - return $this->container_name; - } - - /** - * The top level name of the container where the transformation is located - * (this will be the source file name or table name). - * - * Generated from protobuf field string container_name = 2; - * @param string $var - * @return $this - */ - public function setContainerName($var) - { - GPBUtil::checkString($var, True); - $this->container_name = $var; - - return $this; - } - - /** - * Description of transformation. This would only contain more than one - * element if there were multiple matching transformations and which one to - * apply was ambiguous. Not set for states that contain no transformation, - * currently only state that contains no transformation is - * TransformationResultStateType.METADATA_UNRETRIEVABLE. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransformation() - { - return $this->transformation; - } - - /** - * Description of transformation. This would only contain more than one - * element if there were multiple matching transformations and which one to - * apply was ambiguous. Not set for states that contain no transformation, - * currently only state that contains no transformation is - * TransformationResultStateType.METADATA_UNRETRIEVABLE. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationDescription transformation = 3; - * @param array<\Google\Cloud\Dlp\V2\TransformationDescription>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransformation($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TransformationDescription::class); - $this->transformation = $arr; - - return $this; - } - - /** - * Status of the transformation, if transformation was not successful, this - * will specify what caused it to fail, otherwise it will show that the - * transformation was successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatus status_details = 4; - * @return \Google\Cloud\Dlp\V2\TransformationResultStatus|null - */ - public function getStatusDetails() - { - return $this->status_details; - } - - public function hasStatusDetails() - { - return isset($this->status_details); - } - - public function clearStatusDetails() - { - unset($this->status_details); - } - - /** - * Status of the transformation, if transformation was not successful, this - * will specify what caused it to fail, otherwise it will show that the - * transformation was successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatus status_details = 4; - * @param \Google\Cloud\Dlp\V2\TransformationResultStatus $var - * @return $this - */ - public function setStatusDetails($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationResultStatus::class); - $this->status_details = $var; - - return $this; - } - - /** - * The number of bytes that were transformed. If transformation was - * unsuccessful or did not take place because there was no content to - * transform, this will be zero. - * - * Generated from protobuf field int64 transformed_bytes = 5; - * @return int|string - */ - public function getTransformedBytes() - { - return $this->transformed_bytes; - } - - /** - * The number of bytes that were transformed. If transformation was - * unsuccessful or did not take place because there was no content to - * transform, this will be zero. - * - * Generated from protobuf field int64 transformed_bytes = 5; - * @param int|string $var - * @return $this - */ - public function setTransformedBytes($var) - { - GPBUtil::checkInt64($var); - $this->transformed_bytes = $var; - - return $this; - } - - /** - * The precise location of the transformed content in the original container. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationLocation transformation_location = 6; - * @return \Google\Cloud\Dlp\V2\TransformationLocation|null - */ - public function getTransformationLocation() - { - return $this->transformation_location; - } - - public function hasTransformationLocation() - { - return isset($this->transformation_location); - } - - public function clearTransformationLocation() - { - unset($this->transformation_location); - } - - /** - * The precise location of the transformed content in the original container. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationLocation transformation_location = 6; - * @param \Google\Cloud\Dlp\V2\TransformationLocation $var - * @return $this - */ - public function setTransformationLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationLocation::class); - $this->transformation_location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php deleted file mode 100644 index 24bf69f6a45b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationDetailsStorageConfig.php +++ /dev/null @@ -1,90 +0,0 @@ -google.privacy.dlp.v2.TransformationDetailsStorageConfig - */ -class TransformationDetailsStorageConfig extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\BigQueryTable $table - * The BigQuery table in which to store the output. This may be an existing - * table or in a new table in an existing dataset. - * If table_id is not set a new one will be generated for you with the - * following format: - * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific - * time zone will be used for generating the date details. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * The BigQuery table in which to store the output. This may be an existing - * table or in a new table in an existing dataset. - * If table_id is not set a new one will be generated for you with the - * following format: - * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific - * time zone will be used for generating the date details. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @return \Google\Cloud\Dlp\V2\BigQueryTable|null - */ - public function getTable() - { - return $this->readOneof(1); - } - - public function hasTable() - { - return $this->hasOneof(1); - } - - /** - * The BigQuery table in which to store the output. This may be an existing - * table or in a new table in an existing dataset. - * If table_id is not set a new one will be generated for you with the - * following format: - * dlp_googleapis_transformation_details_yyyy_mm_dd_[dlp_job_id]. Pacific - * time zone will be used for generating the date details. - * - * Generated from protobuf field .google.privacy.dlp.v2.BigQueryTable table = 1; - * @param \Google\Cloud\Dlp\V2\BigQueryTable $var - * @return $this - */ - public function setTable($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\BigQueryTable::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php deleted file mode 100644 index 59e5328ad8ef..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling.php +++ /dev/null @@ -1,115 +0,0 @@ -google.privacy.dlp.v2.TransformationErrorHandling - */ -class TransformationErrorHandling extends \Google\Protobuf\Internal\Message -{ - protected $mode; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError $throw_error - * Throw an error - * @type \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed $leave_untransformed - * Ignore errors - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Throw an error - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; - * @return \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError|null - */ - public function getThrowError() - { - return $this->readOneof(1); - } - - public function hasThrowError() - { - return $this->hasOneof(1); - } - - /** - * Throw an error - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1; - * @param \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError $var - * @return $this - */ - public function setThrowError($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationErrorHandling\ThrowError::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Ignore errors - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; - * @return \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed|null - */ - public function getLeaveUntransformed() - { - return $this->readOneof(2); - } - - public function hasLeaveUntransformed() - { - return $this->hasOneof(2); - } - - /** - * Ignore errors - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2; - * @param \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed $var - * @return $this - */ - public function setLeaveUntransformed($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\TransformationErrorHandling\LeaveUntransformed::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getMode() - { - return $this->whichOneof("mode"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php deleted file mode 100644 index 6bae015ce978..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/LeaveUntransformed.php +++ /dev/null @@ -1,39 +0,0 @@ -google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed - */ -class LeaveUntransformed extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LeaveUntransformed::class, \Google\Cloud\Dlp\V2\TransformationErrorHandling_LeaveUntransformed::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php deleted file mode 100644 index 7333a88ddd7e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationErrorHandling/ThrowError.php +++ /dev/null @@ -1,36 +0,0 @@ -google.privacy.dlp.v2.TransformationErrorHandling.ThrowError - */ -class ThrowError extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ThrowError::class, \Google\Cloud\Dlp\V2\TransformationErrorHandling_ThrowError::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php deleted file mode 100644 index 458b4a9e22ad..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationLocation.php +++ /dev/null @@ -1,158 +0,0 @@ -google.privacy.dlp.v2.TransformationLocation - */ -class TransformationLocation extends \Google\Protobuf\Internal\Message -{ - /** - * Information about the functionality of the container where this finding - * occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationContainerType container_type = 3; - */ - protected $container_type = 0; - protected $location_type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $finding_id - * For infotype transformations, link to the corresponding findings ID so - * that location information does not need to be duplicated. Each findings - * ID correlates to an entry in the findings output table, this table only - * gets created when users specify to save findings (add the save findings - * action to the request). - * @type \Google\Cloud\Dlp\V2\RecordTransformation $record_transformation - * For record transformations, provide a field and container information. - * @type int $container_type - * Information about the functionality of the container where this finding - * occurred, if available. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * For infotype transformations, link to the corresponding findings ID so - * that location information does not need to be duplicated. Each findings - * ID correlates to an entry in the findings output table, this table only - * gets created when users specify to save findings (add the save findings - * action to the request). - * - * Generated from protobuf field string finding_id = 1; - * @return string - */ - public function getFindingId() - { - return $this->readOneof(1); - } - - public function hasFindingId() - { - return $this->hasOneof(1); - } - - /** - * For infotype transformations, link to the corresponding findings ID so - * that location information does not need to be duplicated. Each findings - * ID correlates to an entry in the findings output table, this table only - * gets created when users specify to save findings (add the save findings - * action to the request). - * - * Generated from protobuf field string finding_id = 1; - * @param string $var - * @return $this - */ - public function setFindingId($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * For record transformations, provide a field and container information. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformation record_transformation = 2; - * @return \Google\Cloud\Dlp\V2\RecordTransformation|null - */ - public function getRecordTransformation() - { - return $this->readOneof(2); - } - - public function hasRecordTransformation() - { - return $this->hasOneof(2); - } - - /** - * For record transformations, provide a field and container information. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordTransformation record_transformation = 2; - * @param \Google\Cloud\Dlp\V2\RecordTransformation $var - * @return $this - */ - public function setRecordTransformation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordTransformation::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Information about the functionality of the container where this finding - * occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationContainerType container_type = 3; - * @return int - */ - public function getContainerType() - { - return $this->container_type; - } - - /** - * Information about the functionality of the container where this finding - * occurred, if available. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationContainerType container_type = 3; - * @param int $var - * @return $this - */ - public function setContainerType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationContainerType::class); - $this->container_type = $var; - - return $this; - } - - /** - * @return string - */ - public function getLocationType() - { - return $this->whichOneof("location_type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php deleted file mode 100644 index 74a2de1d0589..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationOverview.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.TransformationOverview - */ -class TransformationOverview extends \Google\Protobuf\Internal\Message -{ - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 2; - */ - protected $transformed_bytes = 0; - /** - * Transformations applied to the dataset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; - */ - private $transformation_summaries; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $transformed_bytes - * Total size in bytes that were transformed in some way. - * @type array<\Google\Cloud\Dlp\V2\TransformationSummary>|\Google\Protobuf\Internal\RepeatedField $transformation_summaries - * Transformations applied to the dataset. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 2; - * @return int|string - */ - public function getTransformedBytes() - { - return $this->transformed_bytes; - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 2; - * @param int|string $var - * @return $this - */ - public function setTransformedBytes($var) - { - GPBUtil::checkInt64($var); - $this->transformed_bytes = $var; - - return $this; - } - - /** - * Transformations applied to the dataset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransformationSummaries() - { - return $this->transformation_summaries; - } - - /** - * Transformations applied to the dataset. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary transformation_summaries = 3; - * @param array<\Google\Cloud\Dlp\V2\TransformationSummary>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransformationSummaries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TransformationSummary::class); - $this->transformation_summaries = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php deleted file mode 100644 index 28eb9e5aa675..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatus.php +++ /dev/null @@ -1,115 +0,0 @@ -google.privacy.dlp.v2.TransformationResultStatus - */ -class TransformationResultStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Transformation result status type, this will be either SUCCESS, or it will - * be the reason for why the transformation was not completely successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1; - */ - protected $result_status_type = 0; - /** - * Detailed error codes and messages - * - * Generated from protobuf field .google.rpc.Status details = 2; - */ - protected $details = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $result_status_type - * Transformation result status type, this will be either SUCCESS, or it will - * be the reason for why the transformation was not completely successful. - * @type \Google\Rpc\Status $details - * Detailed error codes and messages - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Transformation result status type, this will be either SUCCESS, or it will - * be the reason for why the transformation was not completely successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1; - * @return int - */ - public function getResultStatusType() - { - return $this->result_status_type; - } - - /** - * Transformation result status type, this will be either SUCCESS, or it will - * be the reason for why the transformation was not completely successful. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationResultStatusType result_status_type = 1; - * @param int $var - * @return $this - */ - public function setResultStatusType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationResultStatusType::class); - $this->result_status_type = $var; - - return $this; - } - - /** - * Detailed error codes and messages - * - * Generated from protobuf field .google.rpc.Status details = 2; - * @return \Google\Rpc\Status|null - */ - public function getDetails() - { - return $this->details; - } - - public function hasDetails() - { - return isset($this->details); - } - - public function clearDetails() - { - unset($this->details); - } - - /** - * Detailed error codes and messages - * - * Generated from protobuf field .google.rpc.Status details = 2; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->details = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php deleted file mode 100644 index a308e60c8154..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationResultStatusType.php +++ /dev/null @@ -1,82 +0,0 @@ -google.privacy.dlp.v2.TransformationResultStatusType - */ -class TransformationResultStatusType -{ - /** - * Unused. - * - * Generated from protobuf enum STATE_TYPE_UNSPECIFIED = 0; - */ - const STATE_TYPE_UNSPECIFIED = 0; - /** - * This will be set when a finding could not be transformed (i.e. outside user - * set bucket range). - * - * Generated from protobuf enum INVALID_TRANSFORM = 1; - */ - const INVALID_TRANSFORM = 1; - /** - * This will be set when a BigQuery transformation was successful but could - * not be stored back in BigQuery because the transformed row exceeds - * BigQuery's max row size. - * - * Generated from protobuf enum BIGQUERY_MAX_ROW_SIZE_EXCEEDED = 2; - */ - const BIGQUERY_MAX_ROW_SIZE_EXCEEDED = 2; - /** - * This will be set when there is a finding in the custom metadata of a file, - * but at the write time of the transformed file, this key / value pair is - * unretrievable. - * - * Generated from protobuf enum METADATA_UNRETRIEVABLE = 3; - */ - const METADATA_UNRETRIEVABLE = 3; - /** - * This will be set when the transformation and storing of it is successful. - * - * Generated from protobuf enum SUCCESS = 4; - */ - const SUCCESS = 4; - - private static $valueToName = [ - self::STATE_TYPE_UNSPECIFIED => 'STATE_TYPE_UNSPECIFIED', - self::INVALID_TRANSFORM => 'INVALID_TRANSFORM', - self::BIGQUERY_MAX_ROW_SIZE_EXCEEDED => 'BIGQUERY_MAX_ROW_SIZE_EXCEEDED', - self::METADATA_UNRETRIEVABLE => 'METADATA_UNRETRIEVABLE', - self::SUCCESS => 'SUCCESS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php deleted file mode 100644 index 04cfa3e5e049..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary.php +++ /dev/null @@ -1,321 +0,0 @@ -google.privacy.dlp.v2.TransformationSummary - */ -class TransformationSummary extends \Google\Protobuf\Internal\Message -{ - /** - * Set if the transformation was limited to a specific InfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - */ - protected $info_type = null; - /** - * Set if the transformation was limited to a specific FieldId. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - */ - protected $field = null; - /** - * The specific transformation these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3; - */ - protected $transformation = null; - /** - * The field transformation that was applied. - * If multiple field transformations are requested for a single field, - * this list will contain all of them; otherwise, only one is supplied. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5; - */ - private $field_transformations; - /** - * The specific suppression option these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordSuppression record_suppress = 6; - */ - protected $record_suppress = null; - /** - * Collection of all transformations that took place or had an error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4; - */ - private $results; - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 7; - */ - protected $transformed_bytes = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\InfoType $info_type - * Set if the transformation was limited to a specific InfoType. - * @type \Google\Cloud\Dlp\V2\FieldId $field - * Set if the transformation was limited to a specific FieldId. - * @type \Google\Cloud\Dlp\V2\PrimitiveTransformation $transformation - * The specific transformation these stats apply to. - * @type array<\Google\Cloud\Dlp\V2\FieldTransformation>|\Google\Protobuf\Internal\RepeatedField $field_transformations - * The field transformation that was applied. - * If multiple field transformations are requested for a single field, - * this list will contain all of them; otherwise, only one is supplied. - * @type \Google\Cloud\Dlp\V2\RecordSuppression $record_suppress - * The specific suppression option these stats apply to. - * @type array<\Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult>|\Google\Protobuf\Internal\RepeatedField $results - * Collection of all transformations that took place or had an error. - * @type int|string $transformed_bytes - * Total size in bytes that were transformed in some way. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Set if the transformation was limited to a specific InfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @return \Google\Cloud\Dlp\V2\InfoType|null - */ - public function getInfoType() - { - return $this->info_type; - } - - public function hasInfoType() - { - return isset($this->info_type); - } - - public function clearInfoType() - { - unset($this->info_type); - } - - /** - * Set if the transformation was limited to a specific InfoType. - * - * Generated from protobuf field .google.privacy.dlp.v2.InfoType info_type = 1; - * @param \Google\Cloud\Dlp\V2\InfoType $var - * @return $this - */ - public function setInfoType($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InfoType::class); - $this->info_type = $var; - - return $this; - } - - /** - * Set if the transformation was limited to a specific FieldId. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - * @return \Google\Cloud\Dlp\V2\FieldId|null - */ - public function getField() - { - return $this->field; - } - - public function hasField() - { - return isset($this->field); - } - - public function clearField() - { - unset($this->field); - } - - /** - * Set if the transformation was limited to a specific FieldId. - * - * Generated from protobuf field .google.privacy.dlp.v2.FieldId field = 2; - * @param \Google\Cloud\Dlp\V2\FieldId $var - * @return $this - */ - public function setField($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\FieldId::class); - $this->field = $var; - - return $this; - } - - /** - * The specific transformation these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3; - * @return \Google\Cloud\Dlp\V2\PrimitiveTransformation|null - */ - public function getTransformation() - { - return $this->transformation; - } - - public function hasTransformation() - { - return isset($this->transformation); - } - - public function clearTransformation() - { - unset($this->transformation); - } - - /** - * The specific transformation these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3; - * @param \Google\Cloud\Dlp\V2\PrimitiveTransformation $var - * @return $this - */ - public function setTransformation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\PrimitiveTransformation::class); - $this->transformation = $var; - - return $this; - } - - /** - * The field transformation that was applied. - * If multiple field transformations are requested for a single field, - * this list will contain all of them; otherwise, only one is supplied. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFieldTransformations() - { - return $this->field_transformations; - } - - /** - * The field transformation that was applied. - * If multiple field transformations are requested for a single field, - * this list will contain all of them; otherwise, only one is supplied. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5; - * @param array<\Google\Cloud\Dlp\V2\FieldTransformation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFieldTransformations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldTransformation::class); - $this->field_transformations = $arr; - - return $this; - } - - /** - * The specific suppression option these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordSuppression record_suppress = 6; - * @return \Google\Cloud\Dlp\V2\RecordSuppression|null - */ - public function getRecordSuppress() - { - return $this->record_suppress; - } - - public function hasRecordSuppress() - { - return isset($this->record_suppress); - } - - public function clearRecordSuppress() - { - unset($this->record_suppress); - } - - /** - * The specific suppression option these stats apply to. - * - * Generated from protobuf field .google.privacy.dlp.v2.RecordSuppression record_suppress = 6; - * @param \Google\Cloud\Dlp\V2\RecordSuppression $var - * @return $this - */ - public function setRecordSuppress($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\RecordSuppression::class); - $this->record_suppress = $var; - - return $this; - } - - /** - * Collection of all transformations that took place or had an error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getResults() - { - return $this->results; - } - - /** - * Collection of all transformations that took place or had an error. - * - * Generated from protobuf field repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4; - * @param array<\Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setResults($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\TransformationSummary\SummaryResult::class); - $this->results = $arr; - - return $this; - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 7; - * @return int|string - */ - public function getTransformedBytes() - { - return $this->transformed_bytes; - } - - /** - * Total size in bytes that were transformed in some way. - * - * Generated from protobuf field int64 transformed_bytes = 7; - * @param int|string $var - * @return $this - */ - public function setTransformedBytes($var) - { - GPBUtil::checkInt64($var); - $this->transformed_bytes = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php deleted file mode 100644 index fc99bcd54c85..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/SummaryResult.php +++ /dev/null @@ -1,143 +0,0 @@ -google.privacy.dlp.v2.TransformationSummary.SummaryResult - */ -class SummaryResult extends \Google\Protobuf\Internal\Message -{ - /** - * Number of transformations counted by this result. - * - * Generated from protobuf field int64 count = 1; - */ - protected $count = 0; - /** - * Outcome of the transformation. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; - */ - protected $code = 0; - /** - * A place for warnings or errors to show up if a transformation didn't - * work as expected. - * - * Generated from protobuf field string details = 3; - */ - protected $details = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $count - * Number of transformations counted by this result. - * @type int $code - * Outcome of the transformation. - * @type string $details - * A place for warnings or errors to show up if a transformation didn't - * work as expected. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Number of transformations counted by this result. - * - * Generated from protobuf field int64 count = 1; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * Number of transformations counted by this result. - * - * Generated from protobuf field int64 count = 1; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - - /** - * Outcome of the transformation. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * Outcome of the transformation. - * - * Generated from protobuf field .google.privacy.dlp.v2.TransformationSummary.TransformationResultCode code = 2; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Dlp\V2\TransformationSummary\TransformationResultCode::class); - $this->code = $var; - - return $this; - } - - /** - * A place for warnings or errors to show up if a transformation didn't - * work as expected. - * - * Generated from protobuf field string details = 3; - * @return string - */ - public function getDetails() - { - return $this->details; - } - - /** - * A place for warnings or errors to show up if a transformation didn't - * work as expected. - * - * Generated from protobuf field string details = 3; - * @param string $var - * @return $this - */ - public function setDetails($var) - { - GPBUtil::checkString($var, True); - $this->details = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(SummaryResult::class, \Google\Cloud\Dlp\V2\TransformationSummary_SummaryResult::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php deleted file mode 100644 index e2f82e986ca2..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationSummary/TransformationResultCode.php +++ /dev/null @@ -1,64 +0,0 @@ -google.privacy.dlp.v2.TransformationSummary.TransformationResultCode - */ -class TransformationResultCode -{ - /** - * Unused - * - * Generated from protobuf enum TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0; - */ - const TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0; - /** - * Transformation completed without an error. - * - * Generated from protobuf enum SUCCESS = 1; - */ - const SUCCESS = 1; - /** - * Transformation had an error. - * - * Generated from protobuf enum ERROR = 2; - */ - const ERROR = 2; - - private static $valueToName = [ - self::TRANSFORMATION_RESULT_CODE_UNSPECIFIED => 'TRANSFORMATION_RESULT_CODE_UNSPECIFIED', - self::SUCCESS => 'SUCCESS', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TransformationResultCode::class, \Google\Cloud\Dlp\V2\TransformationSummary_TransformationResultCode::class); - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php deleted file mode 100644 index 0bff43bdcf5e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransformationType.php +++ /dev/null @@ -1,147 +0,0 @@ -google.privacy.dlp.v2.TransformationType - */ -class TransformationType -{ - /** - * Unused - * - * Generated from protobuf enum TRANSFORMATION_TYPE_UNSPECIFIED = 0; - */ - const TRANSFORMATION_TYPE_UNSPECIFIED = 0; - /** - * Record suppression - * - * Generated from protobuf enum RECORD_SUPPRESSION = 1; - */ - const RECORD_SUPPRESSION = 1; - /** - * Replace value - * - * Generated from protobuf enum REPLACE_VALUE = 2; - */ - const REPLACE_VALUE = 2; - /** - * Replace value using a dictionary. - * - * Generated from protobuf enum REPLACE_DICTIONARY = 15; - */ - const REPLACE_DICTIONARY = 15; - /** - * Redact - * - * Generated from protobuf enum REDACT = 3; - */ - const REDACT = 3; - /** - * Character mask - * - * Generated from protobuf enum CHARACTER_MASK = 4; - */ - const CHARACTER_MASK = 4; - /** - * FFX-FPE - * - * Generated from protobuf enum CRYPTO_REPLACE_FFX_FPE = 5; - */ - const CRYPTO_REPLACE_FFX_FPE = 5; - /** - * Fixed size bucketing - * - * Generated from protobuf enum FIXED_SIZE_BUCKETING = 6; - */ - const FIXED_SIZE_BUCKETING = 6; - /** - * Bucketing - * - * Generated from protobuf enum BUCKETING = 7; - */ - const BUCKETING = 7; - /** - * Replace with info type - * - * Generated from protobuf enum REPLACE_WITH_INFO_TYPE = 8; - */ - const REPLACE_WITH_INFO_TYPE = 8; - /** - * Time part - * - * Generated from protobuf enum TIME_PART = 9; - */ - const TIME_PART = 9; - /** - * Crypto hash - * - * Generated from protobuf enum CRYPTO_HASH = 10; - */ - const CRYPTO_HASH = 10; - /** - * Date shift - * - * Generated from protobuf enum DATE_SHIFT = 12; - */ - const DATE_SHIFT = 12; - /** - * Deterministic crypto - * - * Generated from protobuf enum CRYPTO_DETERMINISTIC_CONFIG = 13; - */ - const CRYPTO_DETERMINISTIC_CONFIG = 13; - /** - * Redact image - * - * Generated from protobuf enum REDACT_IMAGE = 14; - */ - const REDACT_IMAGE = 14; - - private static $valueToName = [ - self::TRANSFORMATION_TYPE_UNSPECIFIED => 'TRANSFORMATION_TYPE_UNSPECIFIED', - self::RECORD_SUPPRESSION => 'RECORD_SUPPRESSION', - self::REPLACE_VALUE => 'REPLACE_VALUE', - self::REPLACE_DICTIONARY => 'REPLACE_DICTIONARY', - self::REDACT => 'REDACT', - self::CHARACTER_MASK => 'CHARACTER_MASK', - self::CRYPTO_REPLACE_FFX_FPE => 'CRYPTO_REPLACE_FFX_FPE', - self::FIXED_SIZE_BUCKETING => 'FIXED_SIZE_BUCKETING', - self::BUCKETING => 'BUCKETING', - self::REPLACE_WITH_INFO_TYPE => 'REPLACE_WITH_INFO_TYPE', - self::TIME_PART => 'TIME_PART', - self::CRYPTO_HASH => 'CRYPTO_HASH', - self::DATE_SHIFT => 'DATE_SHIFT', - self::CRYPTO_DETERMINISTIC_CONFIG => 'CRYPTO_DETERMINISTIC_CONFIG', - self::REDACT_IMAGE => 'REDACT_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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php deleted file mode 100644 index d489aa9fe140..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/TransientCryptoKey.php +++ /dev/null @@ -1,88 +0,0 @@ -google.privacy.dlp.v2.TransientCryptoKey - */ -class TransientCryptoKey extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the key. - * This is an arbitrary string used to differentiate different keys. - * A unique key is generated per name: two separate `TransientCryptoKey` - * protos share the same generated key if their names are the same. - * When the data crypto key is generated, this name is not used in any way - * (repeating the api call will result in a different key being generated). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the key. - * This is an arbitrary string used to differentiate different keys. - * A unique key is generated per name: two separate `TransientCryptoKey` - * protos share the same generated key if their names are the same. - * When the data crypto key is generated, this name is not used in any way - * (repeating the api call will result in a different key being generated). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the key. - * This is an arbitrary string used to differentiate different keys. - * A unique key is generated per name: two separate `TransientCryptoKey` - * protos share the same generated key if their names are the same. - * When the data crypto key is generated, this name is not used in any way - * (repeating the api call will result in a different key being generated). - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the key. - * This is an arbitrary string used to differentiate different keys. - * A unique key is generated per name: two separate `TransientCryptoKey` - * protos share the same generated key if their names are the same. - * When the data crypto key is generated, this name is not used in any way - * (repeating the api call will result in a different key being generated). - * - * 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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php deleted file mode 100644 index 32a233f41645..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UniquenessScoreLevel.php +++ /dev/null @@ -1,72 +0,0 @@ -google.privacy.dlp.v2.UniquenessScoreLevel - */ -class UniquenessScoreLevel -{ - /** - * Some columns do not have estimated uniqueness. Possible reasons include - * having too few values. - * - * Generated from protobuf enum UNIQUENESS_SCORE_LEVEL_UNSPECIFIED = 0; - */ - const UNIQUENESS_SCORE_LEVEL_UNSPECIFIED = 0; - /** - * Low uniqueness, possibly a boolean, enum or similiarly typed column. - * - * Generated from protobuf enum UNIQUENESS_SCORE_LOW = 1; - */ - const UNIQUENESS_SCORE_LOW = 1; - /** - * Medium uniqueness. - * - * Generated from protobuf enum UNIQUENESS_SCORE_MEDIUM = 2; - */ - const UNIQUENESS_SCORE_MEDIUM = 2; - /** - * High uniqueness, possibly a column of free text or unique identifiers. - * - * Generated from protobuf enum UNIQUENESS_SCORE_HIGH = 3; - */ - const UNIQUENESS_SCORE_HIGH = 3; - - private static $valueToName = [ - self::UNIQUENESS_SCORE_LEVEL_UNSPECIFIED => 'UNIQUENESS_SCORE_LEVEL_UNSPECIFIED', - self::UNIQUENESS_SCORE_LOW => 'UNIQUENESS_SCORE_LOW', - self::UNIQUENESS_SCORE_MEDIUM => 'UNIQUENESS_SCORE_MEDIUM', - self::UNIQUENESS_SCORE_HIGH => 'UNIQUENESS_SCORE_HIGH', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php deleted file mode 100644 index 5fc83b85b802..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UnwrappedCryptoKey.php +++ /dev/null @@ -1,68 +0,0 @@ -google.privacy.dlp.v2.UnwrappedCryptoKey - */ -class UnwrappedCryptoKey extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A 128/192/256 bit key. - * - * Generated from protobuf field bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $key = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $key - * Required. A 128/192/256 bit key. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. A 128/192/256 bit key. - * - * Generated from protobuf field bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getKey() - { - return $this->key; - } - - /** - * Required. A 128/192/256 bit key. - * - * Generated from protobuf field bytes key = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setKey($var) - { - GPBUtil::checkString($var, False); - $this->key = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php deleted file mode 100644 index 71462dea509e..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateConnectionRequest.php +++ /dev/null @@ -1,174 +0,0 @@ -google.privacy.dlp.v2.UpdateConnectionRequest - */ -class UpdateConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. The connection with new values for the relevant fields. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $connection = null; - /** - * Optional. Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. Please see - * {@see DlpServiceClient::connectionName()} for help formatting this field. - * - * @return \Google\Cloud\Dlp\V2\UpdateConnectionRequest - * - * @experimental - */ - public static function 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 in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * @type \Google\Cloud\Dlp\V2\Connection $connection - * Required. The connection with new values for the relevant fields. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated 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 in the format: - * `projects/{project}/locations/{location}/connections/{connection}`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_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 connection with new values for the relevant fields. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\Connection|null - */ - public function getConnection() - { - return $this->connection; - } - - public function hasConnection() - { - return isset($this->connection); - } - - public function clearConnection() - { - unset($this->connection); - } - - /** - * Required. The connection with new values for the relevant fields. - * - * Generated from protobuf field .google.privacy.dlp.v2.Connection connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\Connection $var - * @return $this - */ - public function setConnection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Connection::class); - $this->connection = $var; - - return $this; - } - - /** - * Optional. Mask to control which fields get updated. - * - * 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. Mask to control which fields get updated. - * - * 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/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php deleted file mode 100644 index 5a3369b76e63..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDeidentifyTemplateRequest.php +++ /dev/null @@ -1,188 +0,0 @@ -google.privacy.dlp.v2.UpdateDeidentifyTemplateRequest - */ -class UpdateDeidentifyTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of organization and deidentify template to be - * updated, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * New DeidentifyTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2; - */ - protected $deidentify_template = null; - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name of organization and deidentify template to be - * updated, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. Please see - * {@see DlpServiceClient::deidentifyTemplateName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate New DeidentifyTemplate value. - * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. - * - * @return \Google\Cloud\Dlp\V2\UpdateDeidentifyTemplateRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentifyTemplate, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setDeidentifyTemplate($deidentifyTemplate) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of organization and deidentify template to be - * updated, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * @type \Google\Cloud\Dlp\V2\DeidentifyTemplate $deidentify_template - * New DeidentifyTemplate value. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of organization and deidentify template to be - * updated, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated 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 organization and deidentify template to be - * updated, for example - * `organizations/433245324/deidentifyTemplates/432452342` or - * projects/project-id/deidentifyTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * New DeidentifyTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2; - * @return \Google\Cloud\Dlp\V2\DeidentifyTemplate|null - */ - public function getDeidentifyTemplate() - { - return $this->deidentify_template; - } - - public function hasDeidentifyTemplate() - { - return isset($this->deidentify_template); - } - - public function clearDeidentifyTemplate() - { - unset($this->deidentify_template); - } - - /** - * New DeidentifyTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DeidentifyTemplate deidentify_template = 2; - * @param \Google\Cloud\Dlp\V2\DeidentifyTemplate $var - * @return $this - */ - public function setDeidentifyTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DeidentifyTemplate::class); - $this->deidentify_template = $var; - - return $this; - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php deleted file mode 100644 index 90b9eda83aa7..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateDiscoveryConfigRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.privacy.dlp.v2.UpdateDiscoveryConfigRequest - */ -class UpdateDiscoveryConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Required. New DiscoveryConfig value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $discovery_config = null; - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. Please see - * {@see DlpServiceClient::discoveryConfigName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig Required. New DiscoveryConfig value. - * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. - * - * @return \Google\Cloud\Dlp\V2\UpdateDiscoveryConfigRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Dlp\V2\DiscoveryConfig $discoveryConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setDiscoveryConfig($discoveryConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * @type \Google\Cloud\Dlp\V2\DiscoveryConfig $discovery_config - * Required. New DiscoveryConfig value. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated 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 project and the configuration, for example - * `projects/dlp-test-project/discoveryConfigs/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_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. New DiscoveryConfig value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Dlp\V2\DiscoveryConfig|null - */ - public function getDiscoveryConfig() - { - return $this->discovery_config; - } - - public function hasDiscoveryConfig() - { - return isset($this->discovery_config); - } - - public function clearDiscoveryConfig() - { - unset($this->discovery_config); - } - - /** - * Required. New DiscoveryConfig value. - * - * Generated from protobuf field .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Dlp\V2\DiscoveryConfig $var - * @return $this - */ - public function setDiscoveryConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\DiscoveryConfig::class); - $this->discovery_config = $var; - - return $this; - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php deleted file mode 100644 index 9333298d1856..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateInspectTemplateRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.privacy.dlp.v2.UpdateInspectTemplateRequest - */ -class UpdateInspectTemplateRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of organization and inspectTemplate to be updated, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * New InspectTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2; - */ - protected $inspect_template = null; - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name of organization and inspectTemplate to be updated, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. Please see - * {@see DlpServiceClient::inspectTemplateName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate New InspectTemplate value. - * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. - * - * @return \Google\Cloud\Dlp\V2\UpdateInspectTemplateRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Dlp\V2\InspectTemplate $inspectTemplate, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setInspectTemplate($inspectTemplate) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of organization and inspectTemplate to be updated, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * @type \Google\Cloud\Dlp\V2\InspectTemplate $inspect_template - * New InspectTemplate value. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of organization and inspectTemplate to be updated, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated 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 organization and inspectTemplate to be updated, - * for example `organizations/433245324/inspectTemplates/432452342` or - * projects/project-id/inspectTemplates/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * New InspectTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2; - * @return \Google\Cloud\Dlp\V2\InspectTemplate|null - */ - public function getInspectTemplate() - { - return $this->inspect_template; - } - - public function hasInspectTemplate() - { - return isset($this->inspect_template); - } - - public function clearInspectTemplate() - { - unset($this->inspect_template); - } - - /** - * New InspectTemplate value. - * - * Generated from protobuf field .google.privacy.dlp.v2.InspectTemplate inspect_template = 2; - * @param \Google\Cloud\Dlp\V2\InspectTemplate $var - * @return $this - */ - public function setInspectTemplate($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\InspectTemplate::class); - $this->inspect_template = $var; - - return $this; - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php deleted file mode 100644 index faa41ba7a46a..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateJobTriggerRequest.php +++ /dev/null @@ -1,178 +0,0 @@ -google.privacy.dlp.v2.UpdateJobTriggerRequest - */ -class UpdateJobTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * New JobTrigger value. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2; - */ - protected $job_trigger = null; - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. Please see - * {@see DlpServiceClient::jobTriggerName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger New JobTrigger value. - * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. - * - * @return \Google\Cloud\Dlp\V2\UpdateJobTriggerRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Dlp\V2\JobTrigger $jobTrigger, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setJobTrigger($jobTrigger) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * @type \Google\Cloud\Dlp\V2\JobTrigger $job_trigger - * New JobTrigger value. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of the project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated 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 project and the triggeredJob, for example - * `projects/dlp-test-project/jobTriggers/53234423`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * New JobTrigger value. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2; - * @return \Google\Cloud\Dlp\V2\JobTrigger|null - */ - public function getJobTrigger() - { - return $this->job_trigger; - } - - public function hasJobTrigger() - { - return isset($this->job_trigger); - } - - public function clearJobTrigger() - { - unset($this->job_trigger); - } - - /** - * New JobTrigger value. - * - * Generated from protobuf field .google.privacy.dlp.v2.JobTrigger job_trigger = 2; - * @param \Google\Cloud\Dlp\V2\JobTrigger $var - * @return $this - */ - public function setJobTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\JobTrigger::class); - $this->job_trigger = $var; - - return $this; - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php deleted file mode 100644 index 65cf0b18fe2b..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/UpdateStoredInfoTypeRequest.php +++ /dev/null @@ -1,193 +0,0 @@ -google.privacy.dlp.v2.UpdateStoredInfoTypeRequest - */ -class UpdateStoredInfoTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Resource name of organization and storedInfoType to be updated, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Updated configuration for the storedInfoType. If not provided, a new - * version of the storedInfoType will be created with the existing - * configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2; - */ - protected $config = null; - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - */ - protected $update_mask = null; - - /** - * @param string $name Required. Resource name of organization and storedInfoType to be updated, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. Please see - * {@see DlpServiceClient::storedInfoTypeName()} for help formatting this field. - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config Updated configuration for the storedInfoType. If not provided, a new - * version of the storedInfoType will be created with the existing - * configuration. - * @param \Google\Protobuf\FieldMask $updateMask Mask to control which fields get updated. - * - * @return \Google\Cloud\Dlp\V2\UpdateStoredInfoTypeRequest - * - * @experimental - */ - public static function build(string $name, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setName($name) - ->setConfig($config) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Resource name of organization and storedInfoType to be updated, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * @type \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $config - * Updated configuration for the storedInfoType. If not provided, a new - * version of the storedInfoType will be created with the existing - * configuration. - * @type \Google\Protobuf\FieldMask $update_mask - * Mask to control which fields get updated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Required. Resource name of organization and storedInfoType to be updated, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated 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 organization and storedInfoType to be updated, - * for example `organizations/433245324/storedInfoTypes/432452342` or - * projects/project-id/storedInfoTypes/432452342. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Updated configuration for the storedInfoType. If not provided, a new - * version of the storedInfoType will be created with the existing - * configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2; - * @return \Google\Cloud\Dlp\V2\StoredInfoTypeConfig|null - */ - public function getConfig() - { - return $this->config; - } - - public function hasConfig() - { - return isset($this->config); - } - - public function clearConfig() - { - unset($this->config); - } - - /** - * Updated configuration for the storedInfoType. If not provided, a new - * version of the storedInfoType will be created with the existing - * configuration. - * - * Generated from protobuf field .google.privacy.dlp.v2.StoredInfoTypeConfig config = 2; - * @param \Google\Cloud\Dlp\V2\StoredInfoTypeConfig $var - * @return $this - */ - public function setConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeConfig::class); - $this->config = $var; - - return $this; - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Mask to control which fields get updated. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php deleted file mode 100644 index d32ec7e852e8..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/Value.php +++ /dev/null @@ -1,311 +0,0 @@ -google.privacy.dlp.v2.Value - */ -class Value extends \Google\Protobuf\Internal\Message -{ - protected $type; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $integer_value - * integer - * @type float $float_value - * float - * @type string $string_value - * string - * @type bool $boolean_value - * boolean - * @type \Google\Protobuf\Timestamp $timestamp_value - * timestamp - * @type \Google\Type\TimeOfDay $time_value - * time of day - * @type \Google\Type\Date $date_value - * date - * @type int $day_of_week_value - * day of week - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * integer - * - * Generated from protobuf field int64 integer_value = 1; - * @return int|string - */ - public function getIntegerValue() - { - return $this->readOneof(1); - } - - public function hasIntegerValue() - { - return $this->hasOneof(1); - } - - /** - * integer - * - * Generated from protobuf field int64 integer_value = 1; - * @param int|string $var - * @return $this - */ - public function setIntegerValue($var) - { - GPBUtil::checkInt64($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * float - * - * Generated from protobuf field double float_value = 2; - * @return float - */ - public function getFloatValue() - { - return $this->readOneof(2); - } - - public function hasFloatValue() - { - return $this->hasOneof(2); - } - - /** - * float - * - * Generated from protobuf field double float_value = 2; - * @param float $var - * @return $this - */ - public function setFloatValue($var) - { - GPBUtil::checkDouble($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * string - * - * Generated from protobuf field string string_value = 3; - * @return string - */ - public function getStringValue() - { - return $this->readOneof(3); - } - - public function hasStringValue() - { - return $this->hasOneof(3); - } - - /** - * string - * - * 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; - } - - /** - * boolean - * - * Generated from protobuf field bool boolean_value = 4; - * @return bool - */ - public function getBooleanValue() - { - return $this->readOneof(4); - } - - public function hasBooleanValue() - { - return $this->hasOneof(4); - } - - /** - * boolean - * - * Generated from protobuf field bool boolean_value = 4; - * @param bool $var - * @return $this - */ - public function setBooleanValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * timestamp - * - * 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); - } - - /** - * timestamp - * - * 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; - } - - /** - * time of day - * - * Generated from protobuf field .google.type.TimeOfDay time_value = 6; - * @return \Google\Type\TimeOfDay|null - */ - public function getTimeValue() - { - return $this->readOneof(6); - } - - public function hasTimeValue() - { - return $this->hasOneof(6); - } - - /** - * time of day - * - * Generated from protobuf field .google.type.TimeOfDay time_value = 6; - * @param \Google\Type\TimeOfDay $var - * @return $this - */ - public function setTimeValue($var) - { - GPBUtil::checkMessage($var, \Google\Type\TimeOfDay::class); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * date - * - * Generated from protobuf field .google.type.Date date_value = 7; - * @return \Google\Type\Date|null - */ - public function getDateValue() - { - return $this->readOneof(7); - } - - public function hasDateValue() - { - return $this->hasOneof(7); - } - - /** - * date - * - * Generated from protobuf field .google.type.Date date_value = 7; - * @param \Google\Type\Date $var - * @return $this - */ - public function setDateValue($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * day of week - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week_value = 8; - * @return int - */ - public function getDayOfWeekValue() - { - return $this->readOneof(8); - } - - public function hasDayOfWeekValue() - { - return $this->hasOneof(8); - } - - /** - * day of week - * - * Generated from protobuf field .google.type.DayOfWeek day_of_week_value = 8; - * @param int $var - * @return $this - */ - public function setDayOfWeekValue($var) - { - GPBUtil::checkEnum($var, \Google\Type\DayOfWeek::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getType() - { - return $this->whichOneof("type"); - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php deleted file mode 100644 index 577cbb1ecedf..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/ValueFrequency.php +++ /dev/null @@ -1,111 +0,0 @@ -google.privacy.dlp.v2.ValueFrequency - */ -class ValueFrequency extends \Google\Protobuf\Internal\Message -{ - /** - * A value contained in the field in question. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 1; - */ - protected $value = null; - /** - * How many times the value is contained in the field. - * - * Generated from protobuf field int64 count = 2; - */ - protected $count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Dlp\V2\Value $value - * A value contained in the field in question. - * @type int|string $count - * How many times the value is contained in the field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * A value contained in the field in question. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 1; - * @return \Google\Cloud\Dlp\V2\Value|null - */ - public function getValue() - { - return $this->value; - } - - public function hasValue() - { - return isset($this->value); - } - - public function clearValue() - { - unset($this->value); - } - - /** - * A value contained in the field in question. - * - * Generated from protobuf field .google.privacy.dlp.v2.Value value = 1; - * @param \Google\Cloud\Dlp\V2\Value $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\Value::class); - $this->value = $var; - - return $this; - } - - /** - * How many times the value is contained in the field. - * - * Generated from protobuf field int64 count = 2; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * How many times the value is contained in the field. - * - * Generated from protobuf field int64 count = 2; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php b/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php deleted file mode 100644 index af4ade2c2724..000000000000 --- a/owl-bot-staging/Dlp/v2/proto/src/Google/Cloud/Dlp/V2/VersionDescription.php +++ /dev/null @@ -1,101 +0,0 @@ -google.privacy.dlp.v2.VersionDescription - */ -class VersionDescription extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the version - * - * Generated from protobuf field string version = 1; - */ - protected $version = ''; - /** - * Description of the version. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $version - * Name of the version - * @type string $description - * Description of the version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce(); - parent::__construct($data); - } - - /** - * Name of the version - * - * Generated from protobuf field string version = 1; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Name of the version - * - * Generated from protobuf field string version = 1; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Description of the version. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the version. - * - * 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; - } - -} - diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php deleted file mode 100644 index 3ac8b7fe7b8a..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/activate_job_trigger.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DlpJob $response */ - $response = $dlpServiceClient->activateJobTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - - activate_job_trigger_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_ActivateJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php deleted file mode 100644 index b410e49dfc12..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/cancel_dlp_job.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->cancelDlpJob($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 = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); - - cancel_dlp_job_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_CancelDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php deleted file mode 100644 index 4fbf0c2e41fa..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_connection.php +++ /dev/null @@ -1,85 +0,0 @@ -setState($connectionState); - $request = (new CreateConnectionRequest()) - ->setParent($formattedParent) - ->setConnection($connection); - - // Call the API and handle any network failures. - try { - /** @var Connection $response */ - $response = $dlpServiceClient->createConnection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - - create_connection_sample($formattedParent, $connectionState); -} -// [END dlp_v2_generated_DlpService_CreateConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php deleted file mode 100644 index 3277e0507ea5..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_deidentify_template.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setDeidentifyTemplate($deidentifyTemplate); - - // Call the API and handle any network failures. - try { - /** @var DeidentifyTemplate $response */ - $response = $dlpServiceClient->createDeidentifyTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - create_deidentify_template_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_CreateDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php deleted file mode 100644 index ad72e7dd1405..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_discovery_config.php +++ /dev/null @@ -1,91 +0,0 @@ -setStatus($discoveryConfigStatus); - $request = (new CreateDiscoveryConfigRequest()) - ->setParent($formattedParent) - ->setDiscoveryConfig($discoveryConfig); - - // Call the API and handle any network failures. - try { - /** @var DiscoveryConfig $response */ - $response = $dlpServiceClient->createDiscoveryConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::locationName('[PROJECT]', '[LOCATION]'); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - - create_discovery_config_sample($formattedParent, $discoveryConfigStatus); -} -// [END dlp_v2_generated_DlpService_CreateDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php deleted file mode 100644 index e8a4971f0ec3..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_dlp_job.php +++ /dev/null @@ -1,95 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var DlpJob $response */ - $response = $dlpServiceClient->createDlpJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::projectName('[PROJECT]'); - - create_dlp_job_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_CreateDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php deleted file mode 100644 index edea6dfa5215..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_inspect_template.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setInspectTemplate($inspectTemplate); - - // Call the API and handle any network failures. - try { - /** @var InspectTemplate $response */ - $response = $dlpServiceClient->createInspectTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - create_inspect_template_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_CreateInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php deleted file mode 100644 index da6fdf24fdc4..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_job_trigger.php +++ /dev/null @@ -1,96 +0,0 @@ -setStatus($jobTriggerStatus); - $request = (new CreateJobTriggerRequest()) - ->setParent($formattedParent) - ->setJobTrigger($jobTrigger); - - // Call the API and handle any network failures. - try { - /** @var JobTrigger $response */ - $response = $dlpServiceClient->createJobTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::projectName('[PROJECT]'); - $jobTriggerStatus = Status::STATUS_UNSPECIFIED; - - create_job_trigger_sample($formattedParent, $jobTriggerStatus); -} -// [END dlp_v2_generated_DlpService_CreateJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php deleted file mode 100644 index f040829676f4..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/create_stored_info_type.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent) - ->setConfig($config); - - // Call the API and handle any network failures. - try { - /** @var StoredInfoType $response */ - $response = $dlpServiceClient->createStoredInfoType($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - create_stored_info_type_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_CreateStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php deleted file mode 100644 index 0ae7367e3e2d..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/deidentify_content.php +++ /dev/null @@ -1,65 +0,0 @@ -deidentifyContent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dlp_v2_generated_DlpService_DeidentifyContent_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php deleted file mode 100644 index 13dbad8fcf6d..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_connection.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteConnection($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 = DlpServiceClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - - delete_connection_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php deleted file mode 100644 index 36870d8af3d8..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_deidentify_template.php +++ /dev/null @@ -1,78 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteDeidentifyTemplate($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 = DlpServiceClient::deidentifyTemplateName( - '[ORGANIZATION]', - '[DEIDENTIFY_TEMPLATE]' - ); - - delete_deidentify_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php deleted file mode 100644 index 8f5fba101b53..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_discovery_config.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteDiscoveryConfig($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 = DlpServiceClient::discoveryConfigName( - '[PROJECT]', - '[LOCATION]', - '[DISCOVERY_CONFIG]' - ); - - delete_discovery_config_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php deleted file mode 100644 index 829b2413c84f..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_dlp_job.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteDlpJob($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 = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); - - delete_dlp_job_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php deleted file mode 100644 index 8510bc9be3b0..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_file_store_data_profile.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteFileStoreDataProfile($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 = DlpServiceClient::fileStoreDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[FILE_STORE_DATA_PROFILE]' - ); - - delete_file_store_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteFileStoreDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php deleted file mode 100644 index b8fd4bbdb772..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_inspect_template.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteInspectTemplate($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 = DlpServiceClient::inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - - delete_inspect_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php deleted file mode 100644 index 5660e40af05f..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_job_trigger.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteJobTrigger($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 = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - - delete_job_trigger_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php deleted file mode 100644 index 48a1cc206f7b..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_stored_info_type.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteStoredInfoType($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 = DlpServiceClient::storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - - delete_stored_info_type_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php deleted file mode 100644 index 05e273d94ca0..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/delete_table_data_profile.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->deleteTableDataProfile($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 = DlpServiceClient::tableDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[TABLE_DATA_PROFILE]' - ); - - delete_table_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_DeleteTableDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php deleted file mode 100644 index ce0e1c6b5cad..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/finish_dlp_job.php +++ /dev/null @@ -1,70 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $dlpServiceClient->finishDlpJob($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 = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); - - finish_dlp_job_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_FinishDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php deleted file mode 100644 index 1ff5cabcb1f6..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_column_data_profile.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ColumnDataProfile $response */ - $response = $dlpServiceClient->getColumnDataProfile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::columnDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[COLUMN_DATA_PROFILE]' - ); - - get_column_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetColumnDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php deleted file mode 100644 index e5af3e946341..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_connection.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Connection $response */ - $response = $dlpServiceClient->getConnection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - - get_connection_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php deleted file mode 100644 index a896ef5090b4..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_deidentify_template.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DeidentifyTemplate $response */ - $response = $dlpServiceClient->getDeidentifyTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::deidentifyTemplateName( - '[ORGANIZATION]', - '[DEIDENTIFY_TEMPLATE]' - ); - - get_deidentify_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php deleted file mode 100644 index 0eb106a1d567..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_discovery_config.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DiscoveryConfig $response */ - $response = $dlpServiceClient->getDiscoveryConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::discoveryConfigName( - '[PROJECT]', - '[LOCATION]', - '[DISCOVERY_CONFIG]' - ); - - get_discovery_config_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php deleted file mode 100644 index a06e53cdf0f6..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_dlp_job.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DlpJob $response */ - $response = $dlpServiceClient->getDlpJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); - - get_dlp_job_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php deleted file mode 100644 index 30d649a6d990..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_file_store_data_profile.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var FileStoreDataProfile $response */ - $response = $dlpServiceClient->getFileStoreDataProfile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::projectDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[PROJECT_DATA_PROFILE]' - ); - - get_file_store_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetFileStoreDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php deleted file mode 100644 index f5626a183e68..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_inspect_template.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var InspectTemplate $response */ - $response = $dlpServiceClient->getInspectTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - - get_inspect_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php deleted file mode 100644 index ac5bfce6ed72..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_job_trigger.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var JobTrigger $response */ - $response = $dlpServiceClient->getJobTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - - get_job_trigger_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php deleted file mode 100644 index 7c1e508c3485..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_project_data_profile.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ProjectDataProfile $response */ - $response = $dlpServiceClient->getProjectDataProfile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::projectDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[PROJECT_DATA_PROFILE]' - ); - - get_project_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetProjectDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php deleted file mode 100644 index 6491468fabde..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_stored_info_type.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var StoredInfoType $response */ - $response = $dlpServiceClient->getStoredInfoType($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - - get_stored_info_type_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php deleted file mode 100644 index 4fddfb768cd8..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/get_table_data_profile.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var TableDataProfile $response */ - $response = $dlpServiceClient->getTableDataProfile($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::tableDataProfileName( - '[ORGANIZATION]', - '[LOCATION]', - '[TABLE_DATA_PROFILE]' - ); - - get_table_data_profile_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_GetTableDataProfile_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php deleted file mode 100644 index 70a712699349..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var HybridInspectResponse $response */ - $response = $dlpServiceClient->hybridInspectDlpJob($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::dlpJobName('[PROJECT]', '[DLP_JOB]'); - - hybrid_inspect_dlp_job_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_HybridInspectDlpJob_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php deleted file mode 100644 index 116810f1d105..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var HybridInspectResponse $response */ - $response = $dlpServiceClient->hybridInspectJobTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - - hybrid_inspect_job_trigger_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_HybridInspectJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php deleted file mode 100644 index 164e183c94db..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/inspect_content.php +++ /dev/null @@ -1,67 +0,0 @@ -inspectContent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dlp_v2_generated_DlpService_InspectContent_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php deleted file mode 100644 index a285f12d5096..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_column_data_profiles.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listColumnDataProfiles($request); - - /** @var ColumnDataProfile $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 = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_column_data_profiles_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListColumnDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php deleted file mode 100644 index 28182cf393d8..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_connections.php +++ /dev/null @@ -1,79 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listConnections($request); - - /** @var Connection $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_connections_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListConnections_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php deleted file mode 100644 index 8c7c1cb77778..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_deidentify_templates.php +++ /dev/null @@ -1,98 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listDeidentifyTemplates($request); - - /** @var DeidentifyTemplate $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 = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_deidentify_templates_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListDeidentifyTemplates_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php deleted file mode 100644 index ba741338a6b0..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_discovery_configs.php +++ /dev/null @@ -1,85 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listDiscoveryConfigs($request); - - /** @var DiscoveryConfig $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 = DlpServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_discovery_configs_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListDiscoveryConfigs_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php deleted file mode 100644 index 26dc00e7f2f3..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_dlp_jobs.php +++ /dev/null @@ -1,96 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listDlpJobs($request); - - /** @var DlpJob $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 = DlpServiceClient::projectName('[PROJECT]'); - - list_dlp_jobs_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListDlpJobs_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php deleted file mode 100644 index 4e5cdc6640ad..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_file_store_data_profiles.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listFileStoreDataProfiles($request); - - /** @var FileStoreDataProfile $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 = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_file_store_data_profiles_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListFileStoreDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php deleted file mode 100644 index 3ba2a2be6eaf..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_info_types.php +++ /dev/null @@ -1,60 +0,0 @@ -listInfoTypes($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dlp_v2_generated_DlpService_ListInfoTypes_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php deleted file mode 100644 index 78e06023709a..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_inspect_templates.php +++ /dev/null @@ -1,98 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listInspectTemplates($request); - - /** @var InspectTemplate $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 = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_inspect_templates_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListInspectTemplates_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php deleted file mode 100644 index 024472e9a379..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_job_triggers.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listJobTriggers($request); - - /** @var JobTrigger $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 = DlpServiceClient::projectName('[PROJECT]'); - - list_job_triggers_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListJobTriggers_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php deleted file mode 100644 index d5548dedc860..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_project_data_profiles.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listProjectDataProfiles($request); - - /** @var ProjectDataProfile $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 = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_project_data_profiles_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListProjectDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php deleted file mode 100644 index d6cff559753b..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_stored_info_types.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listStoredInfoTypes($request); - - /** @var StoredInfoType $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 = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_stored_info_types_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListStoredInfoTypes_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php deleted file mode 100644 index 256859c421db..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/list_table_data_profiles.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->listTableDataProfiles($request); - - /** @var TableDataProfile $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 = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - list_table_data_profiles_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ListTableDataProfiles_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php deleted file mode 100644 index e8c3b377d874..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/redact_image.php +++ /dev/null @@ -1,65 +0,0 @@ -redactImage($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END dlp_v2_generated_DlpService_RedactImage_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php deleted file mode 100644 index 8a9515381acf..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/reidentify_content.php +++ /dev/null @@ -1,89 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var ReidentifyContentResponse $response */ - $response = $dlpServiceClient->reidentifyContent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::projectName('[PROJECT]'); - - reidentify_content_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_ReidentifyContent_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php deleted file mode 100644 index 3bd270e9130b..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/search_connections.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $dlpServiceClient->searchConnections($request); - - /** @var Connection $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DlpServiceClient::organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - - search_connections_sample($formattedParent); -} -// [END dlp_v2_generated_DlpService_SearchConnections_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php deleted file mode 100644 index 05f37b598201..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_connection.php +++ /dev/null @@ -1,78 +0,0 @@ -setState($connectionState); - $request = (new UpdateConnectionRequest()) - ->setName($formattedName) - ->setConnection($connection); - - // Call the API and handle any network failures. - try { - /** @var Connection $response */ - $response = $dlpServiceClient->updateConnection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - - update_connection_sample($formattedName, $connectionState); -} -// [END dlp_v2_generated_DlpService_UpdateConnection_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php deleted file mode 100644 index 7989fa347c7d..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_deidentify_template.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DeidentifyTemplate $response */ - $response = $dlpServiceClient->updateDeidentifyTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::deidentifyTemplateName( - '[ORGANIZATION]', - '[DEIDENTIFY_TEMPLATE]' - ); - - update_deidentify_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_UpdateDeidentifyTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php deleted file mode 100644 index a815aa24c00b..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_discovery_config.php +++ /dev/null @@ -1,82 +0,0 @@ -setStatus($discoveryConfigStatus); - $request = (new UpdateDiscoveryConfigRequest()) - ->setName($formattedName) - ->setDiscoveryConfig($discoveryConfig); - - // Call the API and handle any network failures. - try { - /** @var DiscoveryConfig $response */ - $response = $dlpServiceClient->updateDiscoveryConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::discoveryConfigName( - '[PROJECT]', - '[LOCATION]', - '[DISCOVERY_CONFIG]' - ); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - - update_discovery_config_sample($formattedName, $discoveryConfigStatus); -} -// [END dlp_v2_generated_DlpService_UpdateDiscoveryConfig_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php deleted file mode 100644 index 530580f344e4..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_inspect_template.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var InspectTemplate $response */ - $response = $dlpServiceClient->updateInspectTemplate($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - - update_inspect_template_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_UpdateInspectTemplate_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php deleted file mode 100644 index d8db2492a4d2..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_job_trigger.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var JobTrigger $response */ - $response = $dlpServiceClient->updateJobTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - - update_job_trigger_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_UpdateJobTrigger_sync] diff --git a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php b/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php deleted file mode 100644 index c5d29a624887..000000000000 --- a/owl-bot-staging/Dlp/v2/samples/V2/DlpServiceClient/update_stored_info_type.php +++ /dev/null @@ -1,77 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var StoredInfoType $response */ - $response = $dlpServiceClient->updateStoredInfoType($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DlpServiceClient::storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - - update_stored_info_type_sample($formattedName); -} -// [END dlp_v2_generated_DlpService_UpdateStoredInfoType_sync] diff --git a/owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php b/owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php deleted file mode 100644 index 25eb8d225a55..000000000000 --- a/owl-bot-staging/Dlp/v2/src/V2/Client/DlpServiceClient.php +++ /dev/null @@ -1,2651 +0,0 @@ - activateJobTriggerAsync(ActivateJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface cancelDlpJobAsync(CancelDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface createConnectionAsync(CreateConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDeidentifyTemplateAsync(CreateDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDiscoveryConfigAsync(CreateDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface createDlpJobAsync(CreateDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface createInspectTemplateAsync(CreateInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface createJobTriggerAsync(CreateJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface createStoredInfoTypeAsync(CreateStoredInfoTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deidentifyContentAsync(DeidentifyContentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteConnectionAsync(DeleteConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDeidentifyTemplateAsync(DeleteDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDiscoveryConfigAsync(DeleteDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteDlpJobAsync(DeleteDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteFileStoreDataProfileAsync(DeleteFileStoreDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInspectTemplateAsync(DeleteInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteJobTriggerAsync(DeleteJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteStoredInfoTypeAsync(DeleteStoredInfoTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTableDataProfileAsync(DeleteTableDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface finishDlpJobAsync(FinishDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface getColumnDataProfileAsync(GetColumnDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getConnectionAsync(GetConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDeidentifyTemplateAsync(GetDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDiscoveryConfigAsync(GetDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getDlpJobAsync(GetDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface getFileStoreDataProfileAsync(GetFileStoreDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInspectTemplateAsync(GetInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface getJobTriggerAsync(GetJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProjectDataProfileAsync(GetProjectDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface getStoredInfoTypeAsync(GetStoredInfoTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTableDataProfileAsync(GetTableDataProfileRequest $request, array $optionalArgs = []) - * @method PromiseInterface hybridInspectDlpJobAsync(HybridInspectDlpJobRequest $request, array $optionalArgs = []) - * @method PromiseInterface hybridInspectJobTriggerAsync(HybridInspectJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface inspectContentAsync(InspectContentRequest $request, array $optionalArgs = []) - * @method PromiseInterface listColumnDataProfilesAsync(ListColumnDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listConnectionsAsync(ListConnectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDeidentifyTemplatesAsync(ListDeidentifyTemplatesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDiscoveryConfigsAsync(ListDiscoveryConfigsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listDlpJobsAsync(ListDlpJobsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listFileStoreDataProfilesAsync(ListFileStoreDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInfoTypesAsync(ListInfoTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInspectTemplatesAsync(ListInspectTemplatesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listJobTriggersAsync(ListJobTriggersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProjectDataProfilesAsync(ListProjectDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listStoredInfoTypesAsync(ListStoredInfoTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTableDataProfilesAsync(ListTableDataProfilesRequest $request, array $optionalArgs = []) - * @method PromiseInterface redactImageAsync(RedactImageRequest $request, array $optionalArgs = []) - * @method PromiseInterface reidentifyContentAsync(ReidentifyContentRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchConnectionsAsync(SearchConnectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateConnectionAsync(UpdateConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDeidentifyTemplateAsync(UpdateDeidentifyTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateDiscoveryConfigAsync(UpdateDiscoveryConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateInspectTemplateAsync(UpdateInspectTemplateRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateJobTriggerAsync(UpdateJobTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateStoredInfoTypeAsync(UpdateStoredInfoTypeRequest $request, array $optionalArgs = []) - */ -final class DlpServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.privacy.dlp.v2.DlpService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'dlp.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'dlp.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/dlp_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/dlp_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/dlp_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/dlp_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a - * column_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $columnDataProfile - * - * @return string The formatted column_data_profile resource. - */ - public static function columnDataProfileName(string $organization, string $location, string $columnDataProfile): string - { - return self::getPathTemplate('columnDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'column_data_profile' => $columnDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a connection - * resource. - * - * @param string $project - * @param string $location - * @param string $connection - * - * @return string The formatted connection resource. - */ - public static function connectionName(string $project, string $location, string $connection): string - { - return self::getPathTemplate('connection')->render([ - 'project' => $project, - 'location' => $location, - 'connection' => $connection, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * deidentify_template resource. - * - * @param string $organization - * @param string $deidentifyTemplate - * - * @return string The formatted deidentify_template resource. - */ - public static function deidentifyTemplateName(string $organization, string $deidentifyTemplate): string - { - return self::getPathTemplate('deidentifyTemplate')->render([ - 'organization' => $organization, - 'deidentify_template' => $deidentifyTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * discovery_config resource. - * - * @param string $project - * @param string $location - * @param string $discoveryConfig - * - * @return string The formatted discovery_config resource. - */ - public static function discoveryConfigName(string $project, string $location, string $discoveryConfig): string - { - return self::getPathTemplate('discoveryConfig')->render([ - 'project' => $project, - 'location' => $location, - 'discovery_config' => $discoveryConfig, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a dlp_job - * resource. - * - * @param string $project - * @param string $dlpJob - * - * @return string The formatted dlp_job resource. - */ - public static function dlpJobName(string $project, string $dlpJob): string - { - return self::getPathTemplate('dlpJob')->render([ - 'project' => $project, - 'dlp_job' => $dlpJob, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * file_store_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $fileStoreDataProfile - * - * @return string The formatted file_store_data_profile resource. - */ - public static function fileStoreDataProfileName(string $organization, string $location, string $fileStoreDataProfile): string - { - return self::getPathTemplate('fileStoreDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'file_store_data_profile' => $fileStoreDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * inspect_template resource. - * - * @param string $organization - * @param string $inspectTemplate - * - * @return string The formatted inspect_template resource. - */ - public static function inspectTemplateName(string $organization, string $inspectTemplate): string - { - return self::getPathTemplate('inspectTemplate')->render([ - 'organization' => $organization, - 'inspect_template' => $inspectTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a job_trigger - * resource. - * - * @param string $project - * @param string $jobTrigger - * - * @return string The formatted job_trigger resource. - */ - public static function jobTriggerName(string $project, string $jobTrigger): string - { - return self::getPathTemplate('jobTrigger')->render([ - 'project' => $project, - 'job_trigger' => $jobTrigger, - ]); - } - - /** - * 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 organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - */ - public static function organizationName(string $organization): string - { - return self::getPathTemplate('organization')->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_deidentify_template resource. - * - * @param string $organization - * @param string $deidentifyTemplate - * - * @return string The formatted organization_deidentify_template resource. - */ - public static function organizationDeidentifyTemplateName(string $organization, string $deidentifyTemplate): string - { - return self::getPathTemplate('organizationDeidentifyTemplate')->render([ - 'organization' => $organization, - 'deidentify_template' => $deidentifyTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_inspect_template resource. - * - * @param string $organization - * @param string $inspectTemplate - * - * @return string The formatted organization_inspect_template resource. - */ - public static function organizationInspectTemplateName(string $organization, string $inspectTemplate): string - { - return self::getPathTemplate('organizationInspectTemplate')->render([ - 'organization' => $organization, - 'inspect_template' => $inspectTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location resource. - * - * @param string $organization - * @param string $location - * - * @return string The formatted organization_location resource. - */ - public static function organizationLocationName(string $organization, string $location): string - { - return self::getPathTemplate('organizationLocation')->render([ - 'organization' => $organization, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_column_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $columnDataProfile - * - * @return string The formatted organization_location_column_data_profile resource. - */ - public static function organizationLocationColumnDataProfileName(string $organization, string $location, string $columnDataProfile): string - { - return self::getPathTemplate('organizationLocationColumnDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'column_data_profile' => $columnDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_connection resource. - * - * @param string $organization - * @param string $location - * @param string $connection - * - * @return string The formatted organization_location_connection resource. - */ - public static function organizationLocationConnectionName(string $organization, string $location, string $connection): string - { - return self::getPathTemplate('organizationLocationConnection')->render([ - 'organization' => $organization, - 'location' => $location, - 'connection' => $connection, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_deidentify_template resource. - * - * @param string $organization - * @param string $location - * @param string $deidentifyTemplate - * - * @return string The formatted organization_location_deidentify_template resource. - */ - public static function organizationLocationDeidentifyTemplateName(string $organization, string $location, string $deidentifyTemplate): string - { - return self::getPathTemplate('organizationLocationDeidentifyTemplate')->render([ - 'organization' => $organization, - 'location' => $location, - 'deidentify_template' => $deidentifyTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_file_store_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $fileStoreDataProfile - * - * @return string The formatted organization_location_file_store_data_profile resource. - */ - public static function organizationLocationFileStoreDataProfileName(string $organization, string $location, string $fileStoreDataProfile): string - { - return self::getPathTemplate('organizationLocationFileStoreDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'file_store_data_profile' => $fileStoreDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_inspect_template resource. - * - * @param string $organization - * @param string $location - * @param string $inspectTemplate - * - * @return string The formatted organization_location_inspect_template resource. - */ - public static function organizationLocationInspectTemplateName(string $organization, string $location, string $inspectTemplate): string - { - return self::getPathTemplate('organizationLocationInspectTemplate')->render([ - 'organization' => $organization, - 'location' => $location, - 'inspect_template' => $inspectTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_project_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $projectDataProfile - * - * @return string The formatted organization_location_project_data_profile resource. - */ - public static function organizationLocationProjectDataProfileName(string $organization, string $location, string $projectDataProfile): string - { - return self::getPathTemplate('organizationLocationProjectDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'project_data_profile' => $projectDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_stored_info_type resource. - * - * @param string $organization - * @param string $location - * @param string $storedInfoType - * - * @return string The formatted organization_location_stored_info_type resource. - */ - public static function organizationLocationStoredInfoTypeName(string $organization, string $location, string $storedInfoType): string - { - return self::getPathTemplate('organizationLocationStoredInfoType')->render([ - 'organization' => $organization, - 'location' => $location, - 'stored_info_type' => $storedInfoType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_location_table_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $tableDataProfile - * - * @return string The formatted organization_location_table_data_profile resource. - */ - public static function organizationLocationTableDataProfileName(string $organization, string $location, string $tableDataProfile): string - { - return self::getPathTemplate('organizationLocationTableDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'table_data_profile' => $tableDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_stored_info_type resource. - * - * @param string $organization - * @param string $storedInfoType - * - * @return string The formatted organization_stored_info_type resource. - */ - public static function organizationStoredInfoTypeName(string $organization, string $storedInfoType): string - { - return self::getPathTemplate('organizationStoredInfoType')->render([ - 'organization' => $organization, - 'stored_info_type' => $storedInfoType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $projectDataProfile - * - * @return string The formatted project_data_profile resource. - */ - public static function projectDataProfileName(string $organization, string $location, string $projectDataProfile): string - { - return self::getPathTemplate('projectDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'project_data_profile' => $projectDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_deidentify_template resource. - * - * @param string $project - * @param string $deidentifyTemplate - * - * @return string The formatted project_deidentify_template resource. - */ - public static function projectDeidentifyTemplateName(string $project, string $deidentifyTemplate): string - { - return self::getPathTemplate('projectDeidentifyTemplate')->render([ - 'project' => $project, - 'deidentify_template' => $deidentifyTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_dlp_job resource. - * - * @param string $project - * @param string $dlpJob - * - * @return string The formatted project_dlp_job resource. - */ - public static function projectDlpJobName(string $project, string $dlpJob): string - { - return self::getPathTemplate('projectDlpJob')->render([ - 'project' => $project, - 'dlp_job' => $dlpJob, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_inspect_template resource. - * - * @param string $project - * @param string $inspectTemplate - * - * @return string The formatted project_inspect_template resource. - */ - public static function projectInspectTemplateName(string $project, string $inspectTemplate): string - { - return self::getPathTemplate('projectInspectTemplate')->render([ - 'project' => $project, - 'inspect_template' => $inspectTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_job_trigger resource. - * - * @param string $project - * @param string $jobTrigger - * - * @return string The formatted project_job_trigger resource. - */ - public static function projectJobTriggerName(string $project, string $jobTrigger): string - { - return self::getPathTemplate('projectJobTrigger')->render([ - 'project' => $project, - 'job_trigger' => $jobTrigger, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_column_data_profile resource. - * - * @param string $project - * @param string $location - * @param string $columnDataProfile - * - * @return string The formatted project_location_column_data_profile resource. - */ - public static function projectLocationColumnDataProfileName(string $project, string $location, string $columnDataProfile): string - { - return self::getPathTemplate('projectLocationColumnDataProfile')->render([ - 'project' => $project, - 'location' => $location, - 'column_data_profile' => $columnDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_connection resource. - * - * @param string $project - * @param string $location - * @param string $connection - * - * @return string The formatted project_location_connection resource. - */ - public static function projectLocationConnectionName(string $project, string $location, string $connection): string - { - return self::getPathTemplate('projectLocationConnection')->render([ - 'project' => $project, - 'location' => $location, - 'connection' => $connection, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_deidentify_template resource. - * - * @param string $project - * @param string $location - * @param string $deidentifyTemplate - * - * @return string The formatted project_location_deidentify_template resource. - */ - public static function projectLocationDeidentifyTemplateName(string $project, string $location, string $deidentifyTemplate): string - { - return self::getPathTemplate('projectLocationDeidentifyTemplate')->render([ - 'project' => $project, - 'location' => $location, - 'deidentify_template' => $deidentifyTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_dlp_job resource. - * - * @param string $project - * @param string $location - * @param string $dlpJob - * - * @return string The formatted project_location_dlp_job resource. - */ - public static function projectLocationDlpJobName(string $project, string $location, string $dlpJob): string - { - return self::getPathTemplate('projectLocationDlpJob')->render([ - 'project' => $project, - 'location' => $location, - 'dlp_job' => $dlpJob, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_file_store_data_profile resource. - * - * @param string $project - * @param string $location - * @param string $fileStoreDataProfile - * - * @return string The formatted project_location_file_store_data_profile resource. - */ - public static function projectLocationFileStoreDataProfileName(string $project, string $location, string $fileStoreDataProfile): string - { - return self::getPathTemplate('projectLocationFileStoreDataProfile')->render([ - 'project' => $project, - 'location' => $location, - 'file_store_data_profile' => $fileStoreDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_inspect_template resource. - * - * @param string $project - * @param string $location - * @param string $inspectTemplate - * - * @return string The formatted project_location_inspect_template resource. - */ - public static function projectLocationInspectTemplateName(string $project, string $location, string $inspectTemplate): string - { - return self::getPathTemplate('projectLocationInspectTemplate')->render([ - 'project' => $project, - 'location' => $location, - 'inspect_template' => $inspectTemplate, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_job_trigger resource. - * - * @param string $project - * @param string $location - * @param string $jobTrigger - * - * @return string The formatted project_location_job_trigger resource. - */ - public static function projectLocationJobTriggerName(string $project, string $location, string $jobTrigger): string - { - return self::getPathTemplate('projectLocationJobTrigger')->render([ - 'project' => $project, - 'location' => $location, - 'job_trigger' => $jobTrigger, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_project_data_profile resource. - * - * @param string $project - * @param string $location - * @param string $projectDataProfile - * - * @return string The formatted project_location_project_data_profile resource. - */ - public static function projectLocationProjectDataProfileName(string $project, string $location, string $projectDataProfile): string - { - return self::getPathTemplate('projectLocationProjectDataProfile')->render([ - 'project' => $project, - 'location' => $location, - 'project_data_profile' => $projectDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_stored_info_type resource. - * - * @param string $project - * @param string $location - * @param string $storedInfoType - * - * @return string The formatted project_location_stored_info_type resource. - */ - public static function projectLocationStoredInfoTypeName(string $project, string $location, string $storedInfoType): string - { - return self::getPathTemplate('projectLocationStoredInfoType')->render([ - 'project' => $project, - 'location' => $location, - 'stored_info_type' => $storedInfoType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_location_table_data_profile resource. - * - * @param string $project - * @param string $location - * @param string $tableDataProfile - * - * @return string The formatted project_location_table_data_profile resource. - */ - public static function projectLocationTableDataProfileName(string $project, string $location, string $tableDataProfile): string - { - return self::getPathTemplate('projectLocationTableDataProfile')->render([ - 'project' => $project, - 'location' => $location, - 'table_data_profile' => $tableDataProfile, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_stored_info_type resource. - * - * @param string $project - * @param string $storedInfoType - * - * @return string The formatted project_stored_info_type resource. - */ - public static function projectStoredInfoTypeName(string $project, string $storedInfoType): string - { - return self::getPathTemplate('projectStoredInfoType')->render([ - 'project' => $project, - 'stored_info_type' => $storedInfoType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * stored_info_type resource. - * - * @param string $organization - * @param string $storedInfoType - * - * @return string The formatted stored_info_type resource. - */ - public static function storedInfoTypeName(string $organization, string $storedInfoType): string - { - return self::getPathTemplate('storedInfoType')->render([ - 'organization' => $organization, - 'stored_info_type' => $storedInfoType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * table_data_profile resource. - * - * @param string $organization - * @param string $location - * @param string $tableDataProfile - * - * @return string The formatted table_data_profile resource. - */ - public static function tableDataProfileName(string $organization, string $location, string $tableDataProfile): string - { - return self::getPathTemplate('tableDataProfile')->render([ - 'organization' => $organization, - 'location' => $location, - 'table_data_profile' => $tableDataProfile, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - columnDataProfile: organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile} - * - connection: projects/{project}/locations/{location}/connections/{connection} - * - deidentifyTemplate: organizations/{organization}/deidentifyTemplates/{deidentify_template} - * - discoveryConfig: projects/{project}/locations/{location}/discoveryConfigs/{discovery_config} - * - dlpJob: projects/{project}/dlpJobs/{dlp_job} - * - fileStoreDataProfile: organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} - * - inspectTemplate: organizations/{organization}/inspectTemplates/{inspect_template} - * - jobTrigger: projects/{project}/jobTriggers/{job_trigger} - * - location: projects/{project}/locations/{location} - * - organization: organizations/{organization} - * - organizationDeidentifyTemplate: organizations/{organization}/deidentifyTemplates/{deidentify_template} - * - organizationInspectTemplate: organizations/{organization}/inspectTemplates/{inspect_template} - * - organizationLocation: organizations/{organization}/locations/{location} - * - organizationLocationColumnDataProfile: organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile} - * - organizationLocationConnection: organizations/{organization}/locations/{location}/connections/{connection} - * - organizationLocationDeidentifyTemplate: organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template} - * - organizationLocationFileStoreDataProfile: organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} - * - organizationLocationInspectTemplate: organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template} - * - organizationLocationProjectDataProfile: organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile} - * - organizationLocationStoredInfoType: organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type} - * - organizationLocationTableDataProfile: organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile} - * - organizationStoredInfoType: organizations/{organization}/storedInfoTypes/{stored_info_type} - * - project: projects/{project} - * - projectDataProfile: organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile} - * - projectDeidentifyTemplate: projects/{project}/deidentifyTemplates/{deidentify_template} - * - projectDlpJob: projects/{project}/dlpJobs/{dlp_job} - * - projectInspectTemplate: projects/{project}/inspectTemplates/{inspect_template} - * - projectJobTrigger: projects/{project}/jobTriggers/{job_trigger} - * - projectLocationColumnDataProfile: projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile} - * - projectLocationConnection: projects/{project}/locations/{location}/connections/{connection} - * - projectLocationDeidentifyTemplate: projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template} - * - projectLocationDlpJob: projects/{project}/locations/{location}/dlpJobs/{dlp_job} - * - projectLocationFileStoreDataProfile: projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile} - * - projectLocationInspectTemplate: projects/{project}/locations/{location}/inspectTemplates/{inspect_template} - * - projectLocationJobTrigger: projects/{project}/locations/{location}/jobTriggers/{job_trigger} - * - projectLocationProjectDataProfile: projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile} - * - projectLocationStoredInfoType: projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type} - * - projectLocationTableDataProfile: projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile} - * - projectStoredInfoType: projects/{project}/storedInfoTypes/{stored_info_type} - * - storedInfoType: organizations/{organization}/storedInfoTypes/{stored_info_type} - * - tableDataProfile: organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile} - * - * 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 'dlp.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); - } - - /** - * Activate a job trigger. Causes the immediate execute of a trigger - * instead of waiting on the trigger event to occur. - * - * The async variant is {@see DlpServiceClient::activateJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/activate_job_trigger.php - * - * @param ActivateJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DlpJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function activateJobTrigger(ActivateJobTriggerRequest $request, array $callOptions = []): DlpJob - { - return $this->startApiCall('ActivateJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Starts asynchronous cancellation on a long-running DlpJob. The server - * makes a best effort to cancel the DlpJob, but success is not - * guaranteed. - * See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage - * and - * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis - * to learn more. - * - * The async variant is {@see DlpServiceClient::cancelDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/cancel_dlp_job.php - * - * @param CancelDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 cancelDlpJob(CancelDlpJobRequest $request, array $callOptions = []): void - { - $this->startApiCall('CancelDlpJob', $request, $callOptions)->wait(); - } - - /** - * Create a Connection to an external data source. - * - * The async variant is {@see DlpServiceClient::createConnectionAsync()} . - * - * @example samples/V2/DlpServiceClient/create_connection.php - * - * @param CreateConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Connection - * - * @throws ApiException Thrown if the API call fails. - */ - public function createConnection(CreateConnectionRequest $request, array $callOptions = []): Connection - { - return $this->startApiCall('CreateConnection', $request, $callOptions)->wait(); - } - - /** - * Creates a DeidentifyTemplate for reusing frequently used configuration - * for de-identifying content, images, and storage. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid - * to learn more. - * - * The async variant is {@see DlpServiceClient::createDeidentifyTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/create_deidentify_template.php - * - * @param CreateDeidentifyTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeidentifyTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDeidentifyTemplate(CreateDeidentifyTemplateRequest $request, array $callOptions = []): DeidentifyTemplate - { - return $this->startApiCall('CreateDeidentifyTemplate', $request, $callOptions)->wait(); - } - - /** - * Creates a config for discovery to scan and profile storage. - * - * The async variant is {@see DlpServiceClient::createDiscoveryConfigAsync()} . - * - * @example samples/V2/DlpServiceClient/create_discovery_config.php - * - * @param CreateDiscoveryConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiscoveryConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDiscoveryConfig(CreateDiscoveryConfigRequest $request, array $callOptions = []): DiscoveryConfig - { - return $this->startApiCall('CreateDiscoveryConfig', $request, $callOptions)->wait(); - } - - /** - * Creates a new job to inspect storage or calculate risk metrics. - * See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage - * and - * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis - * to learn more. - * - * When no InfoTypes or CustomInfoTypes are specified in inspect jobs, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * - * The async variant is {@see DlpServiceClient::createDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/create_dlp_job.php - * - * @param CreateDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DlpJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function createDlpJob(CreateDlpJobRequest $request, array $callOptions = []): DlpJob - { - return $this->startApiCall('CreateDlpJob', $request, $callOptions)->wait(); - } - - /** - * Creates an InspectTemplate for reusing frequently used configuration - * for inspecting content, images, and storage. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates - * to learn more. - * - * The async variant is {@see DlpServiceClient::createInspectTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/create_inspect_template.php - * - * @param CreateInspectTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InspectTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function createInspectTemplate(CreateInspectTemplateRequest $request, array $callOptions = []): InspectTemplate - { - return $this->startApiCall('CreateInspectTemplate', $request, $callOptions)->wait(); - } - - /** - * Creates a job trigger to run DLP actions such as scanning storage for - * sensitive information on a set schedule. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers - * to learn more. - * - * The async variant is {@see DlpServiceClient::createJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/create_job_trigger.php - * - * @param CreateJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return JobTrigger - * - * @throws ApiException Thrown if the API call fails. - */ - public function createJobTrigger(CreateJobTriggerRequest $request, array $callOptions = []): JobTrigger - { - return $this->startApiCall('CreateJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Creates a pre-built stored infoType to be used for inspection. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes - * to learn more. - * - * The async variant is {@see DlpServiceClient::createStoredInfoTypeAsync()} . - * - * @example samples/V2/DlpServiceClient/create_stored_info_type.php - * - * @param CreateStoredInfoTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return StoredInfoType - * - * @throws ApiException Thrown if the API call fails. - */ - public function createStoredInfoType(CreateStoredInfoTypeRequest $request, array $callOptions = []): StoredInfoType - { - return $this->startApiCall('CreateStoredInfoType', $request, $callOptions)->wait(); - } - - /** - * De-identifies potentially sensitive info from a ContentItem. - * This method has limits on input size and output size. - * See - * https://cloud.google.com/sensitive-data-protection/docs/deidentify-sensitive-data - * to learn more. - * - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * - * The async variant is {@see DlpServiceClient::deidentifyContentAsync()} . - * - * @example samples/V2/DlpServiceClient/deidentify_content.php - * - * @param DeidentifyContentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeidentifyContentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function deidentifyContent(DeidentifyContentRequest $request, array $callOptions = []): DeidentifyContentResponse - { - return $this->startApiCall('DeidentifyContent', $request, $callOptions)->wait(); - } - - /** - * Delete a Connection. - * - * The async variant is {@see DlpServiceClient::deleteConnectionAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_connection.php - * - * @param DeleteConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteConnection(DeleteConnectionRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteConnection', $request, $callOptions)->wait(); - } - - /** - * Deletes a DeidentifyTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid - * to learn more. - * - * The async variant is {@see DlpServiceClient::deleteDeidentifyTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_deidentify_template.php - * - * @param DeleteDeidentifyTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteDeidentifyTemplate(DeleteDeidentifyTemplateRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDeidentifyTemplate', $request, $callOptions)->wait(); - } - - /** - * Deletes a discovery configuration. - * - * The async variant is {@see DlpServiceClient::deleteDiscoveryConfigAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_discovery_config.php - * - * @param DeleteDiscoveryConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteDiscoveryConfig(DeleteDiscoveryConfigRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDiscoveryConfig', $request, $callOptions)->wait(); - } - - /** - * Deletes a long-running DlpJob. This method indicates that the client is - * no longer interested in the DlpJob result. The job will be canceled if - * possible. - * See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage - * and - * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis - * to learn more. - * - * The async variant is {@see DlpServiceClient::deleteDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_dlp_job.php - * - * @param DeleteDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteDlpJob(DeleteDlpJobRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteDlpJob', $request, $callOptions)->wait(); - } - - /** - * Delete a FileStoreDataProfile. Will not prevent the profile from being - * regenerated if the resource is still included in a discovery configuration. - * - * The async variant is {@see DlpServiceClient::deleteFileStoreDataProfileAsync()} - * . - * - * @example samples/V2/DlpServiceClient/delete_file_store_data_profile.php - * - * @param DeleteFileStoreDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteFileStoreDataProfile(DeleteFileStoreDataProfileRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteFileStoreDataProfile', $request, $callOptions)->wait(); - } - - /** - * Deletes an InspectTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates - * to learn more. - * - * The async variant is {@see DlpServiceClient::deleteInspectTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_inspect_template.php - * - * @param DeleteInspectTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteInspectTemplate(DeleteInspectTemplateRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteInspectTemplate', $request, $callOptions)->wait(); - } - - /** - * Deletes a job trigger. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers - * to learn more. - * - * The async variant is {@see DlpServiceClient::deleteJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_job_trigger.php - * - * @param DeleteJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteJobTrigger(DeleteJobTriggerRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Deletes a stored infoType. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes - * to learn more. - * - * The async variant is {@see DlpServiceClient::deleteStoredInfoTypeAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_stored_info_type.php - * - * @param DeleteStoredInfoTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteStoredInfoType(DeleteStoredInfoTypeRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteStoredInfoType', $request, $callOptions)->wait(); - } - - /** - * Delete a TableDataProfile. Will not prevent the profile from being - * regenerated if the table is still included in a discovery configuration. - * - * The async variant is {@see DlpServiceClient::deleteTableDataProfileAsync()} . - * - * @example samples/V2/DlpServiceClient/delete_table_data_profile.php - * - * @param DeleteTableDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteTableDataProfile(DeleteTableDataProfileRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteTableDataProfile', $request, $callOptions)->wait(); - } - - /** - * Finish a running hybrid DlpJob. Triggers the finalization steps and running - * of any enabled actions that have not yet run. - * - * The async variant is {@see DlpServiceClient::finishDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/finish_dlp_job.php - * - * @param FinishDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 finishDlpJob(FinishDlpJobRequest $request, array $callOptions = []): void - { - $this->startApiCall('FinishDlpJob', $request, $callOptions)->wait(); - } - - /** - * Gets a column data profile. - * - * The async variant is {@see DlpServiceClient::getColumnDataProfileAsync()} . - * - * @example samples/V2/DlpServiceClient/get_column_data_profile.php - * - * @param GetColumnDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ColumnDataProfile - * - * @throws ApiException Thrown if the API call fails. - */ - public function getColumnDataProfile(GetColumnDataProfileRequest $request, array $callOptions = []): ColumnDataProfile - { - return $this->startApiCall('GetColumnDataProfile', $request, $callOptions)->wait(); - } - - /** - * Get a Connection by name. - * - * The async variant is {@see DlpServiceClient::getConnectionAsync()} . - * - * @example samples/V2/DlpServiceClient/get_connection.php - * - * @param GetConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Connection - * - * @throws ApiException Thrown if the API call fails. - */ - public function getConnection(GetConnectionRequest $request, array $callOptions = []): Connection - { - return $this->startApiCall('GetConnection', $request, $callOptions)->wait(); - } - - /** - * Gets a DeidentifyTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid - * to learn more. - * - * The async variant is {@see DlpServiceClient::getDeidentifyTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/get_deidentify_template.php - * - * @param GetDeidentifyTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeidentifyTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDeidentifyTemplate(GetDeidentifyTemplateRequest $request, array $callOptions = []): DeidentifyTemplate - { - return $this->startApiCall('GetDeidentifyTemplate', $request, $callOptions)->wait(); - } - - /** - * Gets a discovery configuration. - * - * The async variant is {@see DlpServiceClient::getDiscoveryConfigAsync()} . - * - * @example samples/V2/DlpServiceClient/get_discovery_config.php - * - * @param GetDiscoveryConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiscoveryConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDiscoveryConfig(GetDiscoveryConfigRequest $request, array $callOptions = []): DiscoveryConfig - { - return $this->startApiCall('GetDiscoveryConfig', $request, $callOptions)->wait(); - } - - /** - * Gets the latest state of a long-running DlpJob. - * See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage - * and - * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis - * to learn more. - * - * The async variant is {@see DlpServiceClient::getDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/get_dlp_job.php - * - * @param GetDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DlpJob - * - * @throws ApiException Thrown if the API call fails. - */ - public function getDlpJob(GetDlpJobRequest $request, array $callOptions = []): DlpJob - { - return $this->startApiCall('GetDlpJob', $request, $callOptions)->wait(); - } - - /** - * Gets a file store data profile. - * - * The async variant is {@see DlpServiceClient::getFileStoreDataProfileAsync()} . - * - * @example samples/V2/DlpServiceClient/get_file_store_data_profile.php - * - * @param GetFileStoreDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FileStoreDataProfile - * - * @throws ApiException Thrown if the API call fails. - */ - public function getFileStoreDataProfile(GetFileStoreDataProfileRequest $request, array $callOptions = []): FileStoreDataProfile - { - return $this->startApiCall('GetFileStoreDataProfile', $request, $callOptions)->wait(); - } - - /** - * Gets an InspectTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates - * to learn more. - * - * The async variant is {@see DlpServiceClient::getInspectTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/get_inspect_template.php - * - * @param GetInspectTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InspectTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function getInspectTemplate(GetInspectTemplateRequest $request, array $callOptions = []): InspectTemplate - { - return $this->startApiCall('GetInspectTemplate', $request, $callOptions)->wait(); - } - - /** - * Gets a job trigger. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers - * to learn more. - * - * The async variant is {@see DlpServiceClient::getJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/get_job_trigger.php - * - * @param GetJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return JobTrigger - * - * @throws ApiException Thrown if the API call fails. - */ - public function getJobTrigger(GetJobTriggerRequest $request, array $callOptions = []): JobTrigger - { - return $this->startApiCall('GetJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Gets a project data profile. - * - * The async variant is {@see DlpServiceClient::getProjectDataProfileAsync()} . - * - * @example samples/V2/DlpServiceClient/get_project_data_profile.php - * - * @param GetProjectDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProjectDataProfile - * - * @throws ApiException Thrown if the API call fails. - */ - public function getProjectDataProfile(GetProjectDataProfileRequest $request, array $callOptions = []): ProjectDataProfile - { - return $this->startApiCall('GetProjectDataProfile', $request, $callOptions)->wait(); - } - - /** - * Gets a stored infoType. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes - * to learn more. - * - * The async variant is {@see DlpServiceClient::getStoredInfoTypeAsync()} . - * - * @example samples/V2/DlpServiceClient/get_stored_info_type.php - * - * @param GetStoredInfoTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return StoredInfoType - * - * @throws ApiException Thrown if the API call fails. - */ - public function getStoredInfoType(GetStoredInfoTypeRequest $request, array $callOptions = []): StoredInfoType - { - return $this->startApiCall('GetStoredInfoType', $request, $callOptions)->wait(); - } - - /** - * Gets a table data profile. - * - * The async variant is {@see DlpServiceClient::getTableDataProfileAsync()} . - * - * @example samples/V2/DlpServiceClient/get_table_data_profile.php - * - * @param GetTableDataProfileRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return TableDataProfile - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTableDataProfile(GetTableDataProfileRequest $request, array $callOptions = []): TableDataProfile - { - return $this->startApiCall('GetTableDataProfile', $request, $callOptions)->wait(); - } - - /** - * Inspect hybrid content and store findings to a job. - * To review the findings, inspect the job. Inspection will occur - * asynchronously. - * - * The async variant is {@see DlpServiceClient::hybridInspectDlpJobAsync()} . - * - * @example samples/V2/DlpServiceClient/hybrid_inspect_dlp_job.php - * - * @param HybridInspectDlpJobRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return HybridInspectResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function hybridInspectDlpJob(HybridInspectDlpJobRequest $request, array $callOptions = []): HybridInspectResponse - { - return $this->startApiCall('HybridInspectDlpJob', $request, $callOptions)->wait(); - } - - /** - * Inspect hybrid content and store findings to a trigger. The inspection - * will be processed asynchronously. To review the findings monitor the - * jobs within the trigger. - * - * The async variant is {@see DlpServiceClient::hybridInspectJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/hybrid_inspect_job_trigger.php - * - * @param HybridInspectJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return HybridInspectResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function hybridInspectJobTrigger(HybridInspectJobTriggerRequest $request, array $callOptions = []): HybridInspectResponse - { - return $this->startApiCall('HybridInspectJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Finds potentially sensitive info in content. - * This method has limits on input size, processing time, and output size. - * - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * - * For how to guides, see - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-images - * and - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-text, - * - * The async variant is {@see DlpServiceClient::inspectContentAsync()} . - * - * @example samples/V2/DlpServiceClient/inspect_content.php - * - * @param InspectContentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InspectContentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function inspectContent(InspectContentRequest $request, array $callOptions = []): InspectContentResponse - { - return $this->startApiCall('InspectContent', $request, $callOptions)->wait(); - } - - /** - * Lists column data profiles for an organization. - * - * The async variant is {@see DlpServiceClient::listColumnDataProfilesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_column_data_profiles.php - * - * @param ListColumnDataProfilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listColumnDataProfiles(ListColumnDataProfilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListColumnDataProfiles', $request, $callOptions); - } - - /** - * Lists Connections in a parent. Use SearchConnections to see all connections - * within an organization. - * - * The async variant is {@see DlpServiceClient::listConnectionsAsync()} . - * - * @example samples/V2/DlpServiceClient/list_connections.php - * - * @param ListConnectionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listConnections(ListConnectionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListConnections', $request, $callOptions); - } - - /** - * Lists DeidentifyTemplates. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid - * to learn more. - * - * The async variant is {@see DlpServiceClient::listDeidentifyTemplatesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_deidentify_templates.php - * - * @param ListDeidentifyTemplatesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listDeidentifyTemplates(ListDeidentifyTemplatesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDeidentifyTemplates', $request, $callOptions); - } - - /** - * Lists discovery configurations. - * - * The async variant is {@see DlpServiceClient::listDiscoveryConfigsAsync()} . - * - * @example samples/V2/DlpServiceClient/list_discovery_configs.php - * - * @param ListDiscoveryConfigsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listDiscoveryConfigs(ListDiscoveryConfigsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDiscoveryConfigs', $request, $callOptions); - } - - /** - * Lists DlpJobs that match the specified filter in the request. - * See - * https://cloud.google.com/sensitive-data-protection/docs/inspecting-storage - * and - * https://cloud.google.com/sensitive-data-protection/docs/compute-risk-analysis - * to learn more. - * - * The async variant is {@see DlpServiceClient::listDlpJobsAsync()} . - * - * @example samples/V2/DlpServiceClient/list_dlp_jobs.php - * - * @param ListDlpJobsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listDlpJobs(ListDlpJobsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListDlpJobs', $request, $callOptions); - } - - /** - * Lists file store data profiles for an organization. - * - * The async variant is {@see DlpServiceClient::listFileStoreDataProfilesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_file_store_data_profiles.php - * - * @param ListFileStoreDataProfilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listFileStoreDataProfiles(ListFileStoreDataProfilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListFileStoreDataProfiles', $request, $callOptions); - } - - /** - * Returns a list of the sensitive information types that DLP API - * supports. See - * https://cloud.google.com/sensitive-data-protection/docs/infotypes-reference - * to learn more. - * - * The async variant is {@see DlpServiceClient::listInfoTypesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_info_types.php - * - * @param ListInfoTypesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ListInfoTypesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listInfoTypes(ListInfoTypesRequest $request, array $callOptions = []): ListInfoTypesResponse - { - return $this->startApiCall('ListInfoTypes', $request, $callOptions)->wait(); - } - - /** - * Lists InspectTemplates. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates - * to learn more. - * - * The async variant is {@see DlpServiceClient::listInspectTemplatesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_inspect_templates.php - * - * @param ListInspectTemplatesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listInspectTemplates(ListInspectTemplatesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListInspectTemplates', $request, $callOptions); - } - - /** - * Lists job triggers. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers - * to learn more. - * - * The async variant is {@see DlpServiceClient::listJobTriggersAsync()} . - * - * @example samples/V2/DlpServiceClient/list_job_triggers.php - * - * @param ListJobTriggersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listJobTriggers(ListJobTriggersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListJobTriggers', $request, $callOptions); - } - - /** - * Lists project data profiles for an organization. - * - * The async variant is {@see DlpServiceClient::listProjectDataProfilesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_project_data_profiles.php - * - * @param ListProjectDataProfilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listProjectDataProfiles(ListProjectDataProfilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProjectDataProfiles', $request, $callOptions); - } - - /** - * Lists stored infoTypes. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes - * to learn more. - * - * The async variant is {@see DlpServiceClient::listStoredInfoTypesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_stored_info_types.php - * - * @param ListStoredInfoTypesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listStoredInfoTypes(ListStoredInfoTypesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListStoredInfoTypes', $request, $callOptions); - } - - /** - * Lists table data profiles for an organization. - * - * The async variant is {@see DlpServiceClient::listTableDataProfilesAsync()} . - * - * @example samples/V2/DlpServiceClient/list_table_data_profiles.php - * - * @param ListTableDataProfilesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listTableDataProfiles(ListTableDataProfilesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTableDataProfiles', $request, $callOptions); - } - - /** - * Redacts potentially sensitive info from an image. - * This method has limits on input size, processing time, and output size. - * See - * https://cloud.google.com/sensitive-data-protection/docs/redacting-sensitive-data-images - * to learn more. - * - * When no InfoTypes or CustomInfoTypes are specified in this request, the - * system will automatically choose what detectors to run. By default this may - * be all types, but may change over time as detectors are updated. - * - * The async variant is {@see DlpServiceClient::redactImageAsync()} . - * - * @example samples/V2/DlpServiceClient/redact_image.php - * - * @param RedactImageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RedactImageResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function redactImage(RedactImageRequest $request, array $callOptions = []): RedactImageResponse - { - return $this->startApiCall('RedactImage', $request, $callOptions)->wait(); - } - - /** - * Re-identifies content that has been de-identified. - * See - * https://cloud.google.com/sensitive-data-protection/docs/pseudonymization#re-identification_in_free_text_code_example - * to learn more. - * - * The async variant is {@see DlpServiceClient::reidentifyContentAsync()} . - * - * @example samples/V2/DlpServiceClient/reidentify_content.php - * - * @param ReidentifyContentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReidentifyContentResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function reidentifyContent(ReidentifyContentRequest $request, array $callOptions = []): ReidentifyContentResponse - { - return $this->startApiCall('ReidentifyContent', $request, $callOptions)->wait(); - } - - /** - * Searches for Connections in a parent. - * - * The async variant is {@see DlpServiceClient::searchConnectionsAsync()} . - * - * @example samples/V2/DlpServiceClient/search_connections.php - * - * @param SearchConnectionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 searchConnections(SearchConnectionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('SearchConnections', $request, $callOptions); - } - - /** - * Update a Connection. - * - * The async variant is {@see DlpServiceClient::updateConnectionAsync()} . - * - * @example samples/V2/DlpServiceClient/update_connection.php - * - * @param UpdateConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Connection - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateConnection(UpdateConnectionRequest $request, array $callOptions = []): Connection - { - return $this->startApiCall('UpdateConnection', $request, $callOptions)->wait(); - } - - /** - * Updates the DeidentifyTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates-deid - * to learn more. - * - * The async variant is {@see DlpServiceClient::updateDeidentifyTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/update_deidentify_template.php - * - * @param UpdateDeidentifyTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeidentifyTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDeidentifyTemplate(UpdateDeidentifyTemplateRequest $request, array $callOptions = []): DeidentifyTemplate - { - return $this->startApiCall('UpdateDeidentifyTemplate', $request, $callOptions)->wait(); - } - - /** - * Updates a discovery configuration. - * - * The async variant is {@see DlpServiceClient::updateDiscoveryConfigAsync()} . - * - * @example samples/V2/DlpServiceClient/update_discovery_config.php - * - * @param UpdateDiscoveryConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiscoveryConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateDiscoveryConfig(UpdateDiscoveryConfigRequest $request, array $callOptions = []): DiscoveryConfig - { - return $this->startApiCall('UpdateDiscoveryConfig', $request, $callOptions)->wait(); - } - - /** - * Updates the InspectTemplate. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-templates - * to learn more. - * - * The async variant is {@see DlpServiceClient::updateInspectTemplateAsync()} . - * - * @example samples/V2/DlpServiceClient/update_inspect_template.php - * - * @param UpdateInspectTemplateRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InspectTemplate - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateInspectTemplate(UpdateInspectTemplateRequest $request, array $callOptions = []): InspectTemplate - { - return $this->startApiCall('UpdateInspectTemplate', $request, $callOptions)->wait(); - } - - /** - * Updates a job trigger. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-job-triggers - * to learn more. - * - * The async variant is {@see DlpServiceClient::updateJobTriggerAsync()} . - * - * @example samples/V2/DlpServiceClient/update_job_trigger.php - * - * @param UpdateJobTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return JobTrigger - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateJobTrigger(UpdateJobTriggerRequest $request, array $callOptions = []): JobTrigger - { - return $this->startApiCall('UpdateJobTrigger', $request, $callOptions)->wait(); - } - - /** - * Updates the stored infoType by creating a new version. The existing version - * will continue to be used until the new version is ready. - * See - * https://cloud.google.com/sensitive-data-protection/docs/creating-stored-infotypes - * to learn more. - * - * The async variant is {@see DlpServiceClient::updateStoredInfoTypeAsync()} . - * - * @example samples/V2/DlpServiceClient/update_stored_info_type.php - * - * @param UpdateStoredInfoTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return StoredInfoType - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateStoredInfoType(UpdateStoredInfoTypeRequest $request, array $callOptions = []): StoredInfoType - { - return $this->startApiCall('UpdateStoredInfoType', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json b/owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json deleted file mode 100644 index d3726bb9688e..000000000000 --- a/owl-bot-staging/Dlp/v2/src/V2/gapic_metadata.json +++ /dev/null @@ -1,293 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.privacy.dlp.v2", - "libraryPackage": "Google\\Cloud\\Dlp\\V2", - "services": { - "DlpService": { - "clients": { - "grpc": { - "libraryClient": "DlpServiceGapicClient", - "rpcs": { - "ActivateJobTrigger": { - "methods": [ - "activateJobTrigger" - ] - }, - "CancelDlpJob": { - "methods": [ - "cancelDlpJob" - ] - }, - "CreateConnection": { - "methods": [ - "createConnection" - ] - }, - "CreateDeidentifyTemplate": { - "methods": [ - "createDeidentifyTemplate" - ] - }, - "CreateDiscoveryConfig": { - "methods": [ - "createDiscoveryConfig" - ] - }, - "CreateDlpJob": { - "methods": [ - "createDlpJob" - ] - }, - "CreateInspectTemplate": { - "methods": [ - "createInspectTemplate" - ] - }, - "CreateJobTrigger": { - "methods": [ - "createJobTrigger" - ] - }, - "CreateStoredInfoType": { - "methods": [ - "createStoredInfoType" - ] - }, - "DeidentifyContent": { - "methods": [ - "deidentifyContent" - ] - }, - "DeleteConnection": { - "methods": [ - "deleteConnection" - ] - }, - "DeleteDeidentifyTemplate": { - "methods": [ - "deleteDeidentifyTemplate" - ] - }, - "DeleteDiscoveryConfig": { - "methods": [ - "deleteDiscoveryConfig" - ] - }, - "DeleteDlpJob": { - "methods": [ - "deleteDlpJob" - ] - }, - "DeleteFileStoreDataProfile": { - "methods": [ - "deleteFileStoreDataProfile" - ] - }, - "DeleteInspectTemplate": { - "methods": [ - "deleteInspectTemplate" - ] - }, - "DeleteJobTrigger": { - "methods": [ - "deleteJobTrigger" - ] - }, - "DeleteStoredInfoType": { - "methods": [ - "deleteStoredInfoType" - ] - }, - "DeleteTableDataProfile": { - "methods": [ - "deleteTableDataProfile" - ] - }, - "FinishDlpJob": { - "methods": [ - "finishDlpJob" - ] - }, - "GetColumnDataProfile": { - "methods": [ - "getColumnDataProfile" - ] - }, - "GetConnection": { - "methods": [ - "getConnection" - ] - }, - "GetDeidentifyTemplate": { - "methods": [ - "getDeidentifyTemplate" - ] - }, - "GetDiscoveryConfig": { - "methods": [ - "getDiscoveryConfig" - ] - }, - "GetDlpJob": { - "methods": [ - "getDlpJob" - ] - }, - "GetFileStoreDataProfile": { - "methods": [ - "getFileStoreDataProfile" - ] - }, - "GetInspectTemplate": { - "methods": [ - "getInspectTemplate" - ] - }, - "GetJobTrigger": { - "methods": [ - "getJobTrigger" - ] - }, - "GetProjectDataProfile": { - "methods": [ - "getProjectDataProfile" - ] - }, - "GetStoredInfoType": { - "methods": [ - "getStoredInfoType" - ] - }, - "GetTableDataProfile": { - "methods": [ - "getTableDataProfile" - ] - }, - "HybridInspectDlpJob": { - "methods": [ - "hybridInspectDlpJob" - ] - }, - "HybridInspectJobTrigger": { - "methods": [ - "hybridInspectJobTrigger" - ] - }, - "InspectContent": { - "methods": [ - "inspectContent" - ] - }, - "ListColumnDataProfiles": { - "methods": [ - "listColumnDataProfiles" - ] - }, - "ListConnections": { - "methods": [ - "listConnections" - ] - }, - "ListDeidentifyTemplates": { - "methods": [ - "listDeidentifyTemplates" - ] - }, - "ListDiscoveryConfigs": { - "methods": [ - "listDiscoveryConfigs" - ] - }, - "ListDlpJobs": { - "methods": [ - "listDlpJobs" - ] - }, - "ListFileStoreDataProfiles": { - "methods": [ - "listFileStoreDataProfiles" - ] - }, - "ListInfoTypes": { - "methods": [ - "listInfoTypes" - ] - }, - "ListInspectTemplates": { - "methods": [ - "listInspectTemplates" - ] - }, - "ListJobTriggers": { - "methods": [ - "listJobTriggers" - ] - }, - "ListProjectDataProfiles": { - "methods": [ - "listProjectDataProfiles" - ] - }, - "ListStoredInfoTypes": { - "methods": [ - "listStoredInfoTypes" - ] - }, - "ListTableDataProfiles": { - "methods": [ - "listTableDataProfiles" - ] - }, - "RedactImage": { - "methods": [ - "redactImage" - ] - }, - "ReidentifyContent": { - "methods": [ - "reidentifyContent" - ] - }, - "SearchConnections": { - "methods": [ - "searchConnections" - ] - }, - "UpdateConnection": { - "methods": [ - "updateConnection" - ] - }, - "UpdateDeidentifyTemplate": { - "methods": [ - "updateDeidentifyTemplate" - ] - }, - "UpdateDiscoveryConfig": { - "methods": [ - "updateDiscoveryConfig" - ] - }, - "UpdateInspectTemplate": { - "methods": [ - "updateInspectTemplate" - ] - }, - "UpdateJobTrigger": { - "methods": [ - "updateJobTrigger" - ] - }, - "UpdateStoredInfoType": { - "methods": [ - "updateStoredInfoType" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json deleted file mode 100644 index 5850bca2a2e0..000000000000 --- a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_client_config.json +++ /dev/null @@ -1,320 +0,0 @@ -{ - "interfaces": { - "google.privacy.dlp.v2.DlpService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 300000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 300000, - "total_timeout_millis": 300000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 300000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 300000, - "total_timeout_millis": 300000 - } - }, - "methods": { - "ActivateJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CancelDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "CreateDeidentifyTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateDiscoveryConfig": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateInspectTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateStoredInfoType": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeidentifyContent": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteDeidentifyTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDiscoveryConfig": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteFileStoreDataProfile": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteInspectTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteStoredInfoType": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DeleteTableDataProfile": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FinishDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetColumnDataProfile": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetDeidentifyTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDiscoveryConfig": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetFileStoreDataProfile": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetInspectTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetProjectDataProfile": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetStoredInfoType": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTableDataProfile": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "HybridInspectDlpJob": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "HybridInspectJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "InspectContent": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListColumnDataProfiles": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListConnections": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListDeidentifyTemplates": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDiscoveryConfigs": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListDlpJobs": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListFileStoreDataProfiles": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListInfoTypes": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListInspectTemplates": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListJobTriggers": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListProjectDataProfiles": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListStoredInfoTypes": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListTableDataProfiles": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "RedactImage": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ReidentifyContent": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SearchConnections": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateDeidentifyTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateDiscoveryConfig": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateInspectTemplate": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateJobTrigger": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateStoredInfoType": { - "timeout_millis": 300000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php deleted file mode 100644 index e6bd4d0e9aaa..000000000000 --- a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_descriptor_config.php +++ /dev/null @@ -1,827 +0,0 @@ - [ - 'google.privacy.dlp.v2.DlpService' => [ - 'ActivateJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DlpJob', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CancelDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateConnection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\Connection', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDeidentifyTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyTemplate', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDiscoveryConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DiscoveryConfig', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DlpJob', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateInspectTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\InspectTemplate', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\JobTrigger', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateStoredInfoType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\StoredInfoType', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeidentifyContent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyContentResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConnection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDeidentifyTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDiscoveryConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFileStoreDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteInspectTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteStoredInfoType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTableDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'FinishDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetColumnDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ColumnDataProfile', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetConnection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\Connection', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDeidentifyTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyTemplate', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDiscoveryConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DiscoveryConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DlpJob', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetFileStoreDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\FileStoreDataProfile', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetInspectTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\InspectTemplate', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\JobTrigger', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProjectDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ProjectDataProfile', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetStoredInfoType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\StoredInfoType', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTableDataProfile' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\TableDataProfile', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'HybridInspectDlpJob' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\HybridInspectResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'HybridInspectJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\HybridInspectResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'InspectContent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\InspectContentResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListColumnDataProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getColumnDataProfiles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListColumnDataProfilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListConnections' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConnections', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListConnectionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDeidentifyTemplates' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDeidentifyTemplates', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListDeidentifyTemplatesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDiscoveryConfigs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getDiscoveryConfigs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListDiscoveryConfigsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListDlpJobs' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getJobs', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListDlpJobsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListFileStoreDataProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getFileStoreDataProfiles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListFileStoreDataProfilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListInfoTypes' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListInfoTypesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListInspectTemplates' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getInspectTemplates', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListInspectTemplatesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListJobTriggers' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getJobTriggers', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListJobTriggersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListProjectDataProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProjectDataProfiles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListProjectDataProfilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListStoredInfoTypes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getStoredInfoTypes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListStoredInfoTypesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListTableDataProfiles' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTableDataProfiles', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ListTableDataProfilesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'RedactImage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\RedactImageResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ReidentifyContent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\ReidentifyContentResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SearchConnections' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getConnections', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\SearchConnectionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateConnection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\Connection', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDeidentifyTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DeidentifyTemplate', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDiscoveryConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\DiscoveryConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateInspectTemplate' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\InspectTemplate', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateJobTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\JobTrigger', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateStoredInfoType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Dlp\V2\StoredInfoType', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'columnDataProfile' => 'organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}', - 'connection' => 'projects/{project}/locations/{location}/connections/{connection}', - 'deidentifyTemplate' => 'organizations/{organization}/deidentifyTemplates/{deidentify_template}', - 'discoveryConfig' => 'projects/{project}/locations/{location}/discoveryConfigs/{discovery_config}', - 'dlpJob' => 'projects/{project}/dlpJobs/{dlp_job}', - 'fileStoreDataProfile' => 'organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', - 'inspectTemplate' => 'organizations/{organization}/inspectTemplates/{inspect_template}', - 'jobTrigger' => 'projects/{project}/jobTriggers/{job_trigger}', - 'location' => 'projects/{project}/locations/{location}', - 'organization' => 'organizations/{organization}', - 'organizationDeidentifyTemplate' => 'organizations/{organization}/deidentifyTemplates/{deidentify_template}', - 'organizationInspectTemplate' => 'organizations/{organization}/inspectTemplates/{inspect_template}', - 'organizationLocation' => 'organizations/{organization}/locations/{location}', - 'organizationLocationColumnDataProfile' => 'organizations/{organization}/locations/{location}/columnDataProfiles/{column_data_profile}', - 'organizationLocationConnection' => 'organizations/{organization}/locations/{location}/connections/{connection}', - 'organizationLocationDeidentifyTemplate' => 'organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}', - 'organizationLocationFileStoreDataProfile' => 'organizations/{organization}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', - 'organizationLocationInspectTemplate' => 'organizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}', - 'organizationLocationProjectDataProfile' => 'organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}', - 'organizationLocationStoredInfoType' => 'organizations/{organization}/locations/{location}/storedInfoTypes/{stored_info_type}', - 'organizationLocationTableDataProfile' => 'organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}', - 'organizationStoredInfoType' => 'organizations/{organization}/storedInfoTypes/{stored_info_type}', - 'project' => 'projects/{project}', - 'projectDataProfile' => 'organizations/{organization}/locations/{location}/projectDataProfiles/{project_data_profile}', - 'projectDeidentifyTemplate' => 'projects/{project}/deidentifyTemplates/{deidentify_template}', - 'projectDlpJob' => 'projects/{project}/dlpJobs/{dlp_job}', - 'projectInspectTemplate' => 'projects/{project}/inspectTemplates/{inspect_template}', - 'projectJobTrigger' => 'projects/{project}/jobTriggers/{job_trigger}', - 'projectLocationColumnDataProfile' => 'projects/{project}/locations/{location}/columnDataProfiles/{column_data_profile}', - 'projectLocationConnection' => 'projects/{project}/locations/{location}/connections/{connection}', - 'projectLocationDeidentifyTemplate' => 'projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}', - 'projectLocationDlpJob' => 'projects/{project}/locations/{location}/dlpJobs/{dlp_job}', - 'projectLocationFileStoreDataProfile' => 'projects/{project}/locations/{location}/fileStoreDataProfiles/{file_store_data_profile}', - 'projectLocationInspectTemplate' => 'projects/{project}/locations/{location}/inspectTemplates/{inspect_template}', - 'projectLocationJobTrigger' => 'projects/{project}/locations/{location}/jobTriggers/{job_trigger}', - 'projectLocationProjectDataProfile' => 'projects/{project}/locations/{location}/projectDataProfiles/{project_data_profile}', - 'projectLocationStoredInfoType' => 'projects/{project}/locations/{location}/storedInfoTypes/{stored_info_type}', - 'projectLocationTableDataProfile' => 'projects/{project}/locations/{location}/tableDataProfiles/{table_data_profile}', - 'projectStoredInfoType' => 'projects/{project}/storedInfoTypes/{stored_info_type}', - 'storedInfoType' => 'organizations/{organization}/storedInfoTypes/{stored_info_type}', - 'tableDataProfile' => 'organizations/{organization}/locations/{location}/tableDataProfiles/{table_data_profile}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php b/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php deleted file mode 100644 index 9960de2fffba..000000000000 --- a/owl-bot-staging/Dlp/v2/src/V2/resources/dlp_service_rest_client_config.php +++ /dev/null @@ -1,1145 +0,0 @@ - [ - 'google.privacy.dlp.v2.DlpService' => [ - 'ActivateJobTrigger' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}:activate', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}:activate', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CancelDlpJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/dlpJobs/*}:cancel', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}:cancel', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateConnection' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDeidentifyTemplate' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*}/deidentifyTemplates', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/deidentifyTemplates', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/deidentifyTemplates', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/deidentifyTemplates', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDiscoveryConfig' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/discoveryConfigs', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/discoveryConfigs', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateDlpJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/dlpJobs', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/dlpJobs', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateInspectTemplate' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/inspectTemplates', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/inspectTemplates', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/inspectTemplates', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*}/inspectTemplates', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateJobTrigger' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/jobTriggers', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/jobTriggers', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/jobTriggers', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateStoredInfoType' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*}/storedInfoTypes', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/storedInfoTypes', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/storedInfoTypes', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/storedInfoTypes', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeidentifyContent' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/content:deidentify', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/content:deidentify', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteConnection' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDeidentifyTemplate' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/deidentifyTemplates/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/deidentifyTemplates/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/deidentifyTemplates/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/deidentifyTemplates/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDiscoveryConfig' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/discoveryConfigs/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/discoveryConfigs/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteDlpJob' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/dlpJobs/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteFileStoreDataProfile' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteInspectTemplate' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/inspectTemplates/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/inspectTemplates/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteJobTrigger' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/jobTriggers/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteStoredInfoType' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/storedInfoTypes/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/storedInfoTypes/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/storedInfoTypes/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/storedInfoTypes/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTableDataProfile' => [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/tableDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/tableDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'FinishDlpJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}:finish', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetColumnDataProfile' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/columnDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/columnDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetConnection' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDeidentifyTemplate' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/deidentifyTemplates/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/deidentifyTemplates/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/deidentifyTemplates/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/deidentifyTemplates/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDiscoveryConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/discoveryConfigs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/discoveryConfigs/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetDlpJob' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/dlpJobs/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetFileStoreDataProfile' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/fileStoreDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/fileStoreDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetInspectTemplate' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/inspectTemplates/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/inspectTemplates/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetJobTrigger' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/jobTriggers/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProjectDataProfile' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/projectDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/projectDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetStoredInfoType' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/storedInfoTypes/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/storedInfoTypes/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/storedInfoTypes/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/storedInfoTypes/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTableDataProfile' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/tableDataProfiles/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/tableDataProfiles/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'HybridInspectDlpJob' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/dlpJobs/*}:hybridInspect', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'HybridInspectJobTrigger' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}:hybridInspect', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'InspectContent' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/content:inspect', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/content:inspect', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListColumnDataProfiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/columnDataProfiles', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/columnDataProfiles', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListConnections' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDeidentifyTemplates' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*}/deidentifyTemplates', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/deidentifyTemplates', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/deidentifyTemplates', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/deidentifyTemplates', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDiscoveryConfigs' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/discoveryConfigs', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/discoveryConfigs', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListDlpJobs' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/dlpJobs', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/dlpJobs', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/dlpJobs', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListFileStoreDataProfiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/fileStoreDataProfiles', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/fileStoreDataProfiles', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListInfoTypes' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/infoTypes', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=locations/*}/infoTypes', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListInspectTemplates' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/inspectTemplates', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/inspectTemplates', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/inspectTemplates', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*}/inspectTemplates', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListJobTriggers' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/jobTriggers', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/jobTriggers', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/jobTriggers', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProjectDataProfiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/projectDataProfiles', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/projectDataProfiles', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListStoredInfoTypes' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*}/storedInfoTypes', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/storedInfoTypes', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*}/storedInfoTypes', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/storedInfoTypes', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTableDataProfiles' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/tableDataProfiles', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/tableDataProfiles', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RedactImage' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/image:redact', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/image:redact', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ReidentifyContent' => [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*}/content:reidentify', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/content:reidentify', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SearchConnections' => [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=projects/*/locations/*}/connections:search', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v2/{parent=organizations/*/locations/*}/connections:search', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateConnection' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/connections/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/connections/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDeidentifyTemplate' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/deidentifyTemplates/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/deidentifyTemplates/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/deidentifyTemplates/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/deidentifyTemplates/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateDiscoveryConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/discoveryConfigs/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/discoveryConfigs/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateInspectTemplate' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/inspectTemplates/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/inspectTemplates/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/inspectTemplates/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/inspectTemplates/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateJobTrigger' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/jobTriggers/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/jobTriggers/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/jobTriggers/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'UpdateStoredInfoType' => [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/storedInfoTypes/*}', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=organizations/*/locations/*/storedInfoTypes/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/storedInfoTypes/*}', - 'body' => '*', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v2/{name=projects/*/locations/*/storedInfoTypes/*}', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php b/owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php deleted file mode 100644 index ac460db3cc27..000000000000 --- a/owl-bot-staging/Dlp/v2/tests/Unit/V2/Client/DlpServiceClientTest.php +++ /dev/null @@ -1,3892 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DlpServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DlpServiceClient($options); - } - - /** @test */ - public function activateJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $jobTriggerName = 'jobTriggerName1819490804'; - $expectedResponse = new DlpJob(); - $expectedResponse->setName($name2); - $expectedResponse->setJobTriggerName($jobTriggerName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new ActivateJobTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->activateJobTrigger($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ActivateJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function activateJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new ActivateJobTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->activateJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new CancelDlpJobRequest()) - ->setName($formattedName); - $gapicClient->cancelDlpJob($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CancelDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function cancelDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new CancelDlpJobRequest()) - ->setName($formattedName); - try { - $gapicClient->cancelDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new Connection(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $connection = new Connection(); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - $connection->setState($connectionState); - $request = (new CreateConnectionRequest()) - ->setParent($formattedParent) - ->setConnection($connection); - $response = $gapicClient->createConnection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateConnection', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getConnection(); - $this->assertProtobufEquals($connection, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createConnectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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]'); - $connection = new Connection(); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - $connection->setState($connectionState); - $request = (new CreateConnectionRequest()) - ->setParent($formattedParent) - ->setConnection($connection); - try { - $gapicClient->createConnection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDeidentifyTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new DeidentifyTemplate(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $deidentifyTemplate = new DeidentifyTemplate(); - $request = (new CreateDeidentifyTemplateRequest()) - ->setParent($formattedParent) - ->setDeidentifyTemplate($deidentifyTemplate); - $response = $gapicClient->createDeidentifyTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateDeidentifyTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDeidentifyTemplate(); - $this->assertProtobufEquals($deidentifyTemplate, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDeidentifyTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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]'); - $deidentifyTemplate = new DeidentifyTemplate(); - $request = (new CreateDeidentifyTemplateRequest()) - ->setParent($formattedParent) - ->setDeidentifyTemplate($deidentifyTemplate); - try { - $gapicClient->createDeidentifyTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDiscoveryConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DiscoveryConfig(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $discoveryConfig = new DiscoveryConfig(); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - $discoveryConfig->setStatus($discoveryConfigStatus); - $request = (new CreateDiscoveryConfigRequest()) - ->setParent($formattedParent) - ->setDiscoveryConfig($discoveryConfig); - $response = $gapicClient->createDiscoveryConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateDiscoveryConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getDiscoveryConfig(); - $this->assertProtobufEquals($discoveryConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDiscoveryConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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]'); - $discoveryConfig = new DiscoveryConfig(); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - $discoveryConfig->setStatus($discoveryConfigStatus); - $request = (new CreateDiscoveryConfigRequest()) - ->setParent($formattedParent) - ->setDiscoveryConfig($discoveryConfig); - try { - $gapicClient->createDiscoveryConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $jobTriggerName = 'jobTriggerName1819490804'; - $expectedResponse = new DlpJob(); - $expectedResponse->setName($name); - $expectedResponse->setJobTriggerName($jobTriggerName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new CreateDlpJobRequest()) - ->setParent($formattedParent); - $response = $gapicClient->createDlpJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new CreateDlpJobRequest()) - ->setParent($formattedParent); - try { - $gapicClient->createDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createInspectTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new InspectTemplate(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $inspectTemplate = new InspectTemplate(); - $request = (new CreateInspectTemplateRequest()) - ->setParent($formattedParent) - ->setInspectTemplate($inspectTemplate); - $response = $gapicClient->createInspectTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateInspectTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getInspectTemplate(); - $this->assertProtobufEquals($inspectTemplate, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createInspectTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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]'); - $inspectTemplate = new InspectTemplate(); - $request = (new CreateInspectTemplateRequest()) - ->setParent($formattedParent) - ->setInspectTemplate($inspectTemplate); - try { - $gapicClient->createInspectTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new JobTrigger(); - $expectedResponse->setName($name); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $jobTrigger = new JobTrigger(); - $jobTriggerStatus = \Google\Cloud\Dlp\V2\JobTrigger\Status::STATUS_UNSPECIFIED; - $jobTrigger->setStatus($jobTriggerStatus); - $request = (new CreateJobTriggerRequest()) - ->setParent($formattedParent) - ->setJobTrigger($jobTrigger); - $response = $gapicClient->createJobTrigger($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getJobTrigger(); - $this->assertProtobufEquals($jobTrigger, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $jobTrigger = new JobTrigger(); - $jobTriggerStatus = \Google\Cloud\Dlp\V2\JobTrigger\Status::STATUS_UNSPECIFIED; - $jobTrigger->setStatus($jobTriggerStatus); - $request = (new CreateJobTriggerRequest()) - ->setParent($formattedParent) - ->setJobTrigger($jobTrigger); - try { - $gapicClient->createJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createStoredInfoTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $expectedResponse = new StoredInfoType(); - $expectedResponse->setName($name); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $config = new StoredInfoTypeConfig(); - $request = (new CreateStoredInfoTypeRequest()) - ->setParent($formattedParent) - ->setConfig($config); - $response = $gapicClient->createStoredInfoType($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/CreateStoredInfoType', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getConfig(); - $this->assertProtobufEquals($config, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createStoredInfoTypeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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]'); - $config = new StoredInfoTypeConfig(); - $request = (new CreateStoredInfoTypeRequest()) - ->setParent($formattedParent) - ->setConfig($config); - try { - $gapicClient->createStoredInfoType($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deidentifyContentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DeidentifyContentResponse(); - $transport->addResponse($expectedResponse); - $request = new DeidentifyContentRequest(); - $response = $gapicClient->deidentifyContent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeidentifyContent', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deidentifyContentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 DeidentifyContentRequest(); - try { - $gapicClient->deidentifyContent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConnectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new DeleteConnectionRequest()) - ->setName($formattedName); - $gapicClient->deleteConnection($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteConnection', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteConnectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new DeleteConnectionRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteConnection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDeidentifyTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new DeleteDeidentifyTemplateRequest()) - ->setName($formattedName); - $gapicClient->deleteDeidentifyTemplate($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteDeidentifyTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDeidentifyTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new DeleteDeidentifyTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDeidentifyTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDiscoveryConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $request = (new DeleteDiscoveryConfigRequest()) - ->setName($formattedName); - $gapicClient->deleteDiscoveryConfig($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteDiscoveryConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDiscoveryConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $request = (new DeleteDiscoveryConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDiscoveryConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new DeleteDlpJobRequest()) - ->setName($formattedName); - $gapicClient->deleteDlpJob($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new DeleteDlpJobRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFileStoreDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->fileStoreDataProfileName('[ORGANIZATION]', '[LOCATION]', '[FILE_STORE_DATA_PROFILE]'); - $request = (new DeleteFileStoreDataProfileRequest()) - ->setName($formattedName); - $gapicClient->deleteFileStoreDataProfile($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteFileStoreDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteFileStoreDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->fileStoreDataProfileName('[ORGANIZATION]', '[LOCATION]', '[FILE_STORE_DATA_PROFILE]'); - $request = (new DeleteFileStoreDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteFileStoreDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteInspectTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new DeleteInspectTemplateRequest()) - ->setName($formattedName); - $gapicClient->deleteInspectTemplate($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteInspectTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteInspectTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new DeleteInspectTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteInspectTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new DeleteJobTriggerRequest()) - ->setName($formattedName); - $gapicClient->deleteJobTrigger($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new DeleteJobTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteStoredInfoTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new DeleteStoredInfoTypeRequest()) - ->setName($formattedName); - $gapicClient->deleteStoredInfoType($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteStoredInfoType', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteStoredInfoTypeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new DeleteStoredInfoTypeRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteStoredInfoType($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTableDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); - $request = (new DeleteTableDataProfileRequest()) - ->setName($formattedName); - $gapicClient->deleteTableDataProfile($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/DeleteTableDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteTableDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); - $request = (new DeleteTableDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteTableDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function finishDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new FinishDlpJobRequest()) - ->setName($formattedName); - $gapicClient->finishDlpJob($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/FinishDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function finishDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new FinishDlpJobRequest()) - ->setName($formattedName); - try { - $gapicClient->finishDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getColumnDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $tableDataProfile = 'tableDataProfile1230971621'; - $tableFullResource = 'tableFullResource1490522381'; - $datasetProjectId = 'datasetProjectId1943685672'; - $datasetLocation = 'datasetLocation1011262364'; - $datasetId = 'datasetId-2115646910'; - $tableId = 'tableId-895419604'; - $column = 'column-1354837162'; - $freeTextScore = 1.21823761E8; - $expectedResponse = new ColumnDataProfile(); - $expectedResponse->setName($name2); - $expectedResponse->setTableDataProfile($tableDataProfile); - $expectedResponse->setTableFullResource($tableFullResource); - $expectedResponse->setDatasetProjectId($datasetProjectId); - $expectedResponse->setDatasetLocation($datasetLocation); - $expectedResponse->setDatasetId($datasetId); - $expectedResponse->setTableId($tableId); - $expectedResponse->setColumn($column); - $expectedResponse->setFreeTextScore($freeTextScore); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->columnDataProfileName('[ORGANIZATION]', '[LOCATION]', '[COLUMN_DATA_PROFILE]'); - $request = (new GetColumnDataProfileRequest()) - ->setName($formattedName); - $response = $gapicClient->getColumnDataProfile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetColumnDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getColumnDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->columnDataProfileName('[ORGANIZATION]', '[LOCATION]', '[COLUMN_DATA_PROFILE]'); - $request = (new GetColumnDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->getColumnDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConnectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Connection(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new GetConnectionRequest()) - ->setName($formattedName); - $response = $gapicClient->getConnection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetConnection', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getConnectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $request = (new GetConnectionRequest()) - ->setName($formattedName); - try { - $gapicClient->getConnection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeidentifyTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new DeidentifyTemplate(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new GetDeidentifyTemplateRequest()) - ->setName($formattedName); - $response = $gapicClient->getDeidentifyTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetDeidentifyTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDeidentifyTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new GetDeidentifyTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->getDeidentifyTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDiscoveryConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DiscoveryConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $request = (new GetDiscoveryConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getDiscoveryConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetDiscoveryConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDiscoveryConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $request = (new GetDiscoveryConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getDiscoveryConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $jobTriggerName = 'jobTriggerName1819490804'; - $expectedResponse = new DlpJob(); - $expectedResponse->setName($name2); - $expectedResponse->setJobTriggerName($jobTriggerName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new GetDlpJobRequest()) - ->setName($formattedName); - $response = $gapicClient->getDlpJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new GetDlpJobRequest()) - ->setName($formattedName); - try { - $gapicClient->getDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFileStoreDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $projectDataProfile = 'projectDataProfile-316045958'; - $projectId = 'projectId-1969970175'; - $fileStoreLocation = 'fileStoreLocation-169306506'; - $locationType = 'locationType-1796591228'; - $fileStorePath = 'fileStorePath-1852775578'; - $fullResource = 'fullResource1559053246'; - $fileStoreIsEmpty = false; - $expectedResponse = new FileStoreDataProfile(); - $expectedResponse->setName($name2); - $expectedResponse->setProjectDataProfile($projectDataProfile); - $expectedResponse->setProjectId($projectId); - $expectedResponse->setFileStoreLocation($fileStoreLocation); - $expectedResponse->setLocationType($locationType); - $expectedResponse->setFileStorePath($fileStorePath); - $expectedResponse->setFullResource($fullResource); - $expectedResponse->setFileStoreIsEmpty($fileStoreIsEmpty); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); - $request = (new GetFileStoreDataProfileRequest()) - ->setName($formattedName); - $response = $gapicClient->getFileStoreDataProfile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetFileStoreDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getFileStoreDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); - $request = (new GetFileStoreDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->getFileStoreDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInspectTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new InspectTemplate(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new GetInspectTemplateRequest()) - ->setName($formattedName); - $response = $gapicClient->getInspectTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetInspectTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInspectTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new GetInspectTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->getInspectTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new JobTrigger(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new GetJobTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->getJobTrigger($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new GetJobTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->getJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProjectDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $projectId = 'projectId-1969970175'; - $tableDataProfileCount = 330585909; - $fileStoreDataProfileCount = 332405595; - $expectedResponse = new ProjectDataProfile(); - $expectedResponse->setName($name2); - $expectedResponse->setProjectId($projectId); - $expectedResponse->setTableDataProfileCount($tableDataProfileCount); - $expectedResponse->setFileStoreDataProfileCount($fileStoreDataProfileCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); - $request = (new GetProjectDataProfileRequest()) - ->setName($formattedName); - $response = $gapicClient->getProjectDataProfile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetProjectDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProjectDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->projectDataProfileName('[ORGANIZATION]', '[LOCATION]', '[PROJECT_DATA_PROFILE]'); - $request = (new GetProjectDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->getProjectDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStoredInfoTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new StoredInfoType(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new GetStoredInfoTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->getStoredInfoType($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetStoredInfoType', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getStoredInfoTypeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new GetStoredInfoTypeRequest()) - ->setName($formattedName); - try { - $gapicClient->getStoredInfoType($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTableDataProfileTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $projectDataProfile = 'projectDataProfile-316045958'; - $datasetProjectId = 'datasetProjectId1943685672'; - $datasetLocation = 'datasetLocation1011262364'; - $datasetId = 'datasetId-2115646910'; - $tableId = 'tableId-895419604'; - $fullResource = 'fullResource1559053246'; - $scannedColumnCount = 787756843; - $failedColumnCount = 706572376; - $tableSizeBytes = 927763390; - $rowCount = 1340416618; - $expectedResponse = new TableDataProfile(); - $expectedResponse->setName($name2); - $expectedResponse->setProjectDataProfile($projectDataProfile); - $expectedResponse->setDatasetProjectId($datasetProjectId); - $expectedResponse->setDatasetLocation($datasetLocation); - $expectedResponse->setDatasetId($datasetId); - $expectedResponse->setTableId($tableId); - $expectedResponse->setFullResource($fullResource); - $expectedResponse->setScannedColumnCount($scannedColumnCount); - $expectedResponse->setFailedColumnCount($failedColumnCount); - $expectedResponse->setTableSizeBytes($tableSizeBytes); - $expectedResponse->setRowCount($rowCount); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); - $request = (new GetTableDataProfileRequest()) - ->setName($formattedName); - $response = $gapicClient->getTableDataProfile($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/GetTableDataProfile', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTableDataProfileExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->tableDataProfileName('[ORGANIZATION]', '[LOCATION]', '[TABLE_DATA_PROFILE]'); - $request = (new GetTableDataProfileRequest()) - ->setName($formattedName); - try { - $gapicClient->getTableDataProfile($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function hybridInspectDlpJobTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new HybridInspectResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new HybridInspectDlpJobRequest()) - ->setName($formattedName); - $response = $gapicClient->hybridInspectDlpJob($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/HybridInspectDlpJob', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function hybridInspectDlpJobExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->dlpJobName('[PROJECT]', '[DLP_JOB]'); - $request = (new HybridInspectDlpJobRequest()) - ->setName($formattedName); - try { - $gapicClient->hybridInspectDlpJob($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function hybridInspectJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new HybridInspectResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new HybridInspectJobTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->hybridInspectJobTrigger($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/HybridInspectJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function hybridInspectJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new HybridInspectJobTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->hybridInspectJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function inspectContentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new InspectContentResponse(); - $transport->addResponse($expectedResponse); - $request = new InspectContentRequest(); - $response = $gapicClient->inspectContent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/InspectContent', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function inspectContentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 InspectContentRequest(); - try { - $gapicClient->inspectContent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listColumnDataProfilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $columnDataProfilesElement = new ColumnDataProfile(); - $columnDataProfiles = [ - $columnDataProfilesElement, - ]; - $expectedResponse = new ListColumnDataProfilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setColumnDataProfiles($columnDataProfiles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListColumnDataProfilesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listColumnDataProfiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getColumnDataProfiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListColumnDataProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listColumnDataProfilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListColumnDataProfilesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listColumnDataProfiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $connectionsElement = new Connection(); - $connections = [ - $connectionsElement, - ]; - $expectedResponse = new ListConnectionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConnections($connections); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListConnectionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listConnections($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConnections()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListConnections', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listConnectionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListConnectionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listConnections($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeidentifyTemplatesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $deidentifyTemplatesElement = new DeidentifyTemplate(); - $deidentifyTemplates = [ - $deidentifyTemplatesElement, - ]; - $expectedResponse = new ListDeidentifyTemplatesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDeidentifyTemplates($deidentifyTemplates); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListDeidentifyTemplatesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDeidentifyTemplates($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDeidentifyTemplates()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListDeidentifyTemplates', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDeidentifyTemplatesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListDeidentifyTemplatesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDeidentifyTemplates($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDiscoveryConfigsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $discoveryConfigsElement = new DiscoveryConfig(); - $discoveryConfigs = [ - $discoveryConfigsElement, - ]; - $expectedResponse = new ListDiscoveryConfigsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setDiscoveryConfigs($discoveryConfigs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListDiscoveryConfigsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDiscoveryConfigs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getDiscoveryConfigs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListDiscoveryConfigs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDiscoveryConfigsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListDiscoveryConfigsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDiscoveryConfigs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDlpJobsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobsElement = new DlpJob(); - $jobs = [ - $jobsElement, - ]; - $expectedResponse = new ListDlpJobsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobs($jobs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListDlpJobsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listDlpJobs($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobs()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListDlpJobs', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listDlpJobsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListDlpJobsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listDlpJobs($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFileStoreDataProfilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $fileStoreDataProfilesElement = new FileStoreDataProfile(); - $fileStoreDataProfiles = [ - $fileStoreDataProfilesElement, - ]; - $expectedResponse = new ListFileStoreDataProfilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setFileStoreDataProfiles($fileStoreDataProfiles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListFileStoreDataProfilesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listFileStoreDataProfiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getFileStoreDataProfiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListFileStoreDataProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listFileStoreDataProfilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListFileStoreDataProfilesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listFileStoreDataProfiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInfoTypesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ListInfoTypesResponse(); - $transport->addResponse($expectedResponse); - $request = new ListInfoTypesRequest(); - $response = $gapicClient->listInfoTypes($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListInfoTypes', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInfoTypesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 ListInfoTypesRequest(); - try { - $gapicClient->listInfoTypes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInspectTemplatesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $inspectTemplatesElement = new InspectTemplate(); - $inspectTemplates = [ - $inspectTemplatesElement, - ]; - $expectedResponse = new ListInspectTemplatesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setInspectTemplates($inspectTemplates); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListInspectTemplatesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listInspectTemplates($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getInspectTemplates()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListInspectTemplates', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInspectTemplatesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListInspectTemplatesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listInspectTemplates($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobTriggersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $jobTriggersElement = new JobTrigger(); - $jobTriggers = [ - $jobTriggersElement, - ]; - $expectedResponse = new ListJobTriggersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setJobTriggers($jobTriggers); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListJobTriggersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listJobTriggers($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getJobTriggers()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListJobTriggers', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listJobTriggersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListJobTriggersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listJobTriggers($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProjectDataProfilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $projectDataProfilesElement = new ProjectDataProfile(); - $projectDataProfiles = [ - $projectDataProfilesElement, - ]; - $expectedResponse = new ListProjectDataProfilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProjectDataProfiles($projectDataProfiles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListProjectDataProfilesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listProjectDataProfiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProjectDataProfiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListProjectDataProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProjectDataProfilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListProjectDataProfilesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listProjectDataProfiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listStoredInfoTypesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $storedInfoTypesElement = new StoredInfoType(); - $storedInfoTypes = [ - $storedInfoTypesElement, - ]; - $expectedResponse = new ListStoredInfoTypesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setStoredInfoTypes($storedInfoTypes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListStoredInfoTypesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listStoredInfoTypes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getStoredInfoTypes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListStoredInfoTypes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listStoredInfoTypesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListStoredInfoTypesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listStoredInfoTypes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTableDataProfilesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $tableDataProfilesElement = new TableDataProfile(); - $tableDataProfiles = [ - $tableDataProfilesElement, - ]; - $expectedResponse = new ListTableDataProfilesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTableDataProfiles($tableDataProfiles); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new ListTableDataProfilesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTableDataProfiles($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTableDataProfiles()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ListTableDataProfiles', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTableDataProfilesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListTableDataProfilesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTableDataProfiles($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function redactImageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $redactedImage = '28'; - $extractedText = 'extractedText998260012'; - $expectedResponse = new RedactImageResponse(); - $expectedResponse->setRedactedImage($redactedImage); - $expectedResponse->setExtractedText($extractedText); - $transport->addResponse($expectedResponse); - $request = new RedactImageRequest(); - $response = $gapicClient->redactImage($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/RedactImage', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function redactImageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 RedactImageRequest(); - try { - $gapicClient->redactImage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reidentifyContentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ReidentifyContentResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ReidentifyContentRequest()) - ->setParent($formattedParent); - $response = $gapicClient->reidentifyContent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/ReidentifyContent', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reidentifyContentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ReidentifyContentRequest()) - ->setParent($formattedParent); - try { - $gapicClient->reidentifyContent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchConnectionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $connectionsElement = new Connection(); - $connections = [ - $connectionsElement, - ]; - $expectedResponse = new SearchConnectionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setConnections($connections); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->organizationLocationName('[ORGANIZATION]', '[LOCATION]'); - $request = (new SearchConnectionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->searchConnections($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getConnections()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/SearchConnections', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchConnectionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 SearchConnectionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->searchConnections($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConnectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new Connection(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $connection = new Connection(); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - $connection->setState($connectionState); - $request = (new UpdateConnectionRequest()) - ->setName($formattedName) - ->setConnection($connection); - $response = $gapicClient->updateConnection($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateConnection', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getConnection(); - $this->assertProtobufEquals($connection, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateConnectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->connectionName('[PROJECT]', '[LOCATION]', '[CONNECTION]'); - $connection = new Connection(); - $connectionState = ConnectionState::CONNECTION_STATE_UNSPECIFIED; - $connection->setState($connectionState); - $request = (new UpdateConnectionRequest()) - ->setName($formattedName) - ->setConnection($connection); - try { - $gapicClient->updateConnection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDeidentifyTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new DeidentifyTemplate(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new UpdateDeidentifyTemplateRequest()) - ->setName($formattedName); - $response = $gapicClient->updateDeidentifyTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateDeidentifyTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDeidentifyTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->deidentifyTemplateName('[ORGANIZATION]', '[DEIDENTIFY_TEMPLATE]'); - $request = (new UpdateDeidentifyTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->updateDeidentifyTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDiscoveryConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new DiscoveryConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $discoveryConfig = new DiscoveryConfig(); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - $discoveryConfig->setStatus($discoveryConfigStatus); - $request = (new UpdateDiscoveryConfigRequest()) - ->setName($formattedName) - ->setDiscoveryConfig($discoveryConfig); - $response = $gapicClient->updateDiscoveryConfig($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateDiscoveryConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $actualValue = $actualRequestObject->getDiscoveryConfig(); - $this->assertProtobufEquals($discoveryConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateDiscoveryConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->discoveryConfigName('[PROJECT]', '[LOCATION]', '[DISCOVERY_CONFIG]'); - $discoveryConfig = new DiscoveryConfig(); - $discoveryConfigStatus = Status::STATUS_UNSPECIFIED; - $discoveryConfig->setStatus($discoveryConfigStatus); - $request = (new UpdateDiscoveryConfigRequest()) - ->setName($formattedName) - ->setDiscoveryConfig($discoveryConfig); - try { - $gapicClient->updateDiscoveryConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateInspectTemplateTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new InspectTemplate(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new UpdateInspectTemplateRequest()) - ->setName($formattedName); - $response = $gapicClient->updateInspectTemplate($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateInspectTemplate', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateInspectTemplateExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->inspectTemplateName('[ORGANIZATION]', '[INSPECT_TEMPLATE]'); - $request = (new UpdateInspectTemplateRequest()) - ->setName($formattedName); - try { - $gapicClient->updateInspectTemplate($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateJobTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $description = 'description-1724546052'; - $expectedResponse = new JobTrigger(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDescription($description); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new UpdateJobTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->updateJobTrigger($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateJobTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new UpdateJobTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->updateJobTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateStoredInfoTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $expectedResponse = new StoredInfoType(); - $expectedResponse->setName($name2); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new UpdateStoredInfoTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->updateStoredInfoType($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.privacy.dlp.v2.DlpService/UpdateStoredInfoType', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateStoredInfoTypeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->storedInfoTypeName('[ORGANIZATION]', '[STORED_INFO_TYPE]'); - $request = (new UpdateStoredInfoTypeRequest()) - ->setName($formattedName); - try { - $gapicClient->updateStoredInfoType($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function activateJobTriggerAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $jobTriggerName = 'jobTriggerName1819490804'; - $expectedResponse = new DlpJob(); - $expectedResponse->setName($name2); - $expectedResponse->setJobTriggerName($jobTriggerName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->jobTriggerName('[PROJECT]', '[JOB_TRIGGER]'); - $request = (new ActivateJobTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->activateJobTriggerAsync($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.privacy.dlp.v2.DlpService/ActivateJobTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Barcode.php b/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Barcode.php deleted file mode 100644 index fc1bf55a7ae2..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Barcode.php +++ /dev/null @@ -1,31 +0,0 @@ -internalAddGeneratedFile( - ' -ß -(google/cloud/documentai/v1/barcode.protogoogle.cloud.documentai.v1"B -Barcode -format (  - value_format (  - raw_value ( BÊ -com.google.cloud.documentai.v1B BarcodeProtoPZ>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipbªGoogle.Cloud.DocumentAI.V1ÊGoogle\\Cloud\\DocumentAI\\V1êGoogle::Cloud::DocumentAI::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Document.php b/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Document.php deleted file mode 100644 index 152f7b5e639f008facefe03c4ed44df177e352e0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 13032 zcmd^GPi!Ms8Lyq#v7htDJKgP?0gAh=+AOpVn=PgFc3bS&N!(3h*KxA_V`&)M&&f1n zkC_?oZh&4vTsU)q0}`m>))NOVhyxOE;m8FEA%R2>TtPxeeBbxp%-C5sj5pp>_p+Hc z@B7|+-=E+2=Z#-~b8tLh&t|uHpWC|2JK5H0);;Fgfo-`~+cLAQVYkceY}@J$43pcr zY_?R*?o}Jva;egI21p%iXt#Mjdt_NhCSPlt*08hIvD(8P@4LFOcJGG&lq0T;_4OWi z26~%kw`#>*?&=-g)tg(ypt*qznkAn>^YF$k#@eRtI9YF$eTQY?-(c7>jds>?br=47 z&TurNZ@7kT8sCPK+|G7&)8Rn;@Z9dO-*yeFpGAUdzs*;#X9Z83``o~Sli$vITdJWj zKoHGJ-{p2+H=8Byv~6SHT6PVl=JQ9~^+kvytJmeS$j<0ySH&Ll`G+=nJL}p*KDv4~ zYjbyK_ixd@k->-lU(E>uD-4Y0roqilkss^#49m{vgHr`eCXr5%b+f43ZL7mC#$=0I zJ?`44;ko!SZWv%3uHGAjr>zg#&3!O}p%b2_aXR454a=NHTtrg>H<@x7Byr(bQvS9h*C!A`PEyG;jbT`4pSAAnc(|dvatJ!4NLp!&kim5rm zfn0zCxqCO%)pOXigxLv*P|sWNNZOX1`X$MfumzlS4JAzmBqv;z6YN2I4aUJr&b)BJ z6xIOiEL*;KN>b1Zz$Pxo<=NK!aa?K=vmRuLb=4|UH-t$%=`4p z220_P=D4ROcQUc;+-hq5%Q5p;Ir>R$ua_O>nS4adkm{a`0wl$RIPlKdHtJ`(BOO`*U{w>O4 zWUop|8ob_bAA@+&l~U{BRa_u4R1aYSxm;@9R}VT{jsl1BB1^aQ_Q{bAd+TUoHoD>D z*>IFDc(Hb$8%M{|L&4oy;GE!_=)+gp3XOGm+k&JFln-8qFE&|{I5?2sfG^=f;nYZS z$!)^w`#_39B|crfXPBqpPQYA!o+bPVi)^0OK+#1Ncp5^QM1n}Fzq!ul$+3Y8LW0&G z_F7zsIi|e9Vnz=}GfT9+a8gHhxeAhj?wD)qeWz>LJ2Q~~A+-ko>mLo_kPe_TVsJkExk{49j%1;{ z$>J^3YM*#`K82u*NT+NuHqdST$kqqP9;#0vqnbwx_#QKjz7Ou

|%j17vs**E#`J zNmQTWAPuBbYHS4%a;TdcH#ycE4&X70_v_)sdq@n*f}Xadw=h<+DWU@%seyFLHu{&{ z)4G_IJDC)5nL@amKuj6EQeX?tX|H9OPG*s~OksihM5r{_CEo&NlI3Jph}mo5CFB{P ztPYg-*k$r_?OPyuh|`(_SOpRj!R7VvjLGfa7EJbu2brdA-Q#@#aGps|10+5fCN1i# zEE)Ln5{un8I_@#WgQ&91;>QArF{KJXj?yRyOfi8+D?#doV7Leg)=18Uq)El+jI^;4 z&X|P7Q~(hPO8}&{b>E>K#1K{?WH^LR^yH^;^n^7rrE!bupQ9`;@nkl!4WbStlwG64 zQNlt1Z?dHp#xbLRqzxaV+TR>37hmo>q!P1Ds^|Ew!^wt)OMJXr`D&4lq7ypIb)fp{yf5##wAdL z8XYTkgqY>^;)TSSYXGNf8*Co`S1z-3O*}^-4#c<0(9GY~1$^kYt$%d6JmXJ3U9@I%MY_C0kYp+E|zYijzJ%v&r(icv(4~ zWeDthq%5Ps68_1zp_9T*$aEvqRvpAbh;RcqsK0~Ug~sq{q&k1pWG&4SpbkVW(I$u~ zFai!QMnpRQm_)7qeU2rALJ#^LR4r znjijy&c%gYRDtV+3~g@``-@vJgb=}<&_*=WRHi^>X^Sq*2|v}ay(W8VUtpJmcajp{ zVtXwKz4Otm8>7$kNrn1@2wU+p0CCMR1KWL>Ey!|S=4H>G2TihWS8ublw-vvabcHQ> z3Wg?TN0?s{gYnrSQT=U%DHAGo;4sz)AOnsnoTYse>hLbeAFEyL&D=R}uj4u7!^`;z zWr=vI>ulLOlNiA)gVc|>F!>;VjI+4BVW`ZaT})Rpbo+vt9R)cYiYlLDi`bNcMx?Mh z>Mw}dR~hqO8J*D^8+b7yd9>lEpn$Copn<5#&Ng<1L)#-}xX(K}c4eWj26-VZp#Cb#R?h5Sxz18_n>Plje&3TyI&x>iX9!x8|2h8gh5;h+10hceRHqg|+9W2w>iP!zyzu?;(iip0B)g3WWd>JdXoHmCk+4th<# zb1878MJ{Udu9xtHZ$yjZQte#lUG=|F=xG6K_#1VAd`XCNsDmg*(v(RTbK(XV_cKjB zIlfv>G_V?Aro!DaEGfBz?gVVbG7)s2(%Dv_u-?$ELc#yjQ106ILHWUEur>e)L$?p=-$wNg)VT8y)0Ph_`v-*`t-Mp- zg-&8RMz0ISopL&kZNtrKeOH5);!Y{Opnin9^|1rWYp_#s9ZPzMQNLiBkQ9Y4p10Tn z+^hiRdujeFo|m3`WgDym`bTo87(^69=`OE_Y`gfo%~b(!sTGSVRbOLq$(For^c2{@ z78Wfs-ZKZf1~u!_7&GN*rdDg^x@f~r(8>avE0jv06X-A0%e&RXGAIQ8KB$!njdFSc zo3-_FZ3mkYbJ#v8AA(Bi<+l&Y`wi&k&a2S`qVy7t7izUSuqdTtG<=yY((wMBO05Q? zaU4~D7G(+l)_aA;z*peDn3@iNU{8Wq+EyFBiGd4YN(y0+k>b1@Aug0g35rl8Ob}xL zUgFz@Bp`RH4Q(s{dHnW++#bk)vd*ymB=0=A zZRCJY{JwgVrA8i6clc3@m$ZS*=uw099mEU5wqk|K-*b3!i<4pX|B?M2p0Z>0qu_wo;iJO6* zYzMXQ_LQWWTE9D^MLp<+=tPTwZCa3&V*fxB>xo?Aof)r(3wR5{`Aoxc<$40pXMDaL z;O{L5AVen%@&ZE!PAbMldUH72^I|C7hf-gCg)Iw}dm~uuV049Vq#)u8Y{ymrjX}UC zeaF=AK_Mptlcy>wHQ+%eH(uc(93U`KVf-^Q(*HzQT5iPGp>i_buM&PSV-fm29neg!cFUno}bi z@|{cRu|@J^h<|XE>LsBwmI*Fbh6PUjTANH>{lN2(V8Y`PP!aCB2t(9=$Jol5Ps<<= zkJG1W-uc7by`JHcqi6L;&{d|ts6B|^um!M{fkKGBfEUO~sRH^#a&H~gdnVoe_yBR}8JjX~>H@OIGpMO59QA8q6|@JAbdK2@mX z4sZP4d)bsf>F|HkQK&TGM;)I;zbJ_Fd7{qez1Ea diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/DocumentIo.php b/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/DocumentIo.php deleted file mode 100644 index 0da52cce58e734b3ad3a45c723f227d6f76e65eb..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2208 zcmb7F-EJF26pj;;#>YubR{>lD?ZhdHBg#fL;$}liOd%HbSLH6OTD$EW|iq`(7YYf8Q5g z8nQ@HzJJjw{<&P(#xX!dLndSDG15KjJZ6geRMA1#_!vCWJ_g5ykHLBC0Kf~Vlq9$I z1pER7KXEz?xJRU-3cv1g>GFsxP6PfkrgKO}G>{D8FW()dk*Bzbhz9f{k2Uv5=2PFj z7Yj`PkmRJ!v?8d+pcg5YL^K#2GwCHfRw6mWtBx~fs?bqentQXb+8rN}X2#KRULtu& zRFbmA=!7IprAc&Pcxwlj#jn8?k`?SuI1Bv8R6cW@d0KNXCacdL@L3K=zF$y2!S`(z zL3GGn_+ta^zs;OEMX)5+fvx}FtA>91G#rgoMF}RF=4g zg;8tOdJi_U198EUfW{_|)y^hVd?po-aBzvJ@y`mB`(84u4+mB!*raln^QYI*FHrWW zhFIHhn?-aOFzgw{FPIzqBR8grL{&@&ty??r;p_?zk+b__it|!UUFnI0$=W-p*}C-+ zY*GJ$;$ZY$;U%t!HBnhx#day{tY$9cG#rYcwq`(gz|y-SRm_!YiX3<}618=G)>*EV ztUcJqjyCK(RFrx+Ox>Y)j=K3wF*A^BU|jX#UF?sLr=dGy6sI9FtKdnc{l%NffeoY4 zCo^#UF05t>Vb2CM8mBt-OlCa-%5?$N7ckaf7w+bHvLNG!)tEe6psP!4-Kt-ic_t;+ z#>`1b)kLd_Dr!moD#0Dp>zaHz)x11=!c6(I()SOtD$d812=~XL*s{2DY0MYaF6Hs? zz%RCGJp6sR-Zh)nHk-Dn|D&FL-ug2?9L)A`v51d)1Kh-aFMphY9mk*@C+Bz6bDZW3@R?jlh#7!60# z)a1-`W@xWs2>C^eAVpu&<{?P>hZF?@6hR&e6bbT@KBVwN&?Z10Tol*{)tOvx|ko!dhW`E2&+x-zjxWwcpbW zSJ6w4ZhN0(;HqklW7@K#*^hKpE7E-sGL)X?Sc<9@7Mryd%~d*zt86S%mK*bg<;H@? za^u16IfT@%;y4BIZBuY=F~;Z#D!_kMf3vHr1;-Xk#$3Nb)~C+5p=y<*iyQV z2F!-nZuJe-)lH*72-XZ$yLzp_c#^eOEE8;Vw;)7>?OhX0wb3wK%{G+o#)9Ukwr;tm z-Grr;%C_cuMke1}y~ejC?DVa|RVHJlG9={Pf@}A+;O>Qjt+{>Mn4@wN27BJWHX;mI zwe*duVVJ}Urr}g7zD_=iIKug^4hK0J%{^V~c52#=@<=!B(MZ=d?og?PjBpRnS<>&F z#HC>#4WE{}qxF=-@v1*kx_x?%hvTzmk$?wx5Ycuxc3%7)5u5g|rKM-JY#Q5k-!ODz zd&5&~1V8t}7lNnWv)tYETYIF`=T{Wx;Q?sdI>4W+^sMx>>z2CFf`IPFs7Vp(=36?) zqiUz)!OuMa@~a+T5cqfv{pLe7cL)T>c}85M@L%-dzxe2Oews5@EFIDVK@$f1`IiF^ zwg_a%n;bLvf(wBKHU|d&=o)`SH}o=0IN$K4H&QH>b(62Ym1ea=BbifNPoU7eaOI0% zPgrb}Hn zOWD?-oakyQLgs3&TrDzjquj9==2mQYteU{7#ThMq44*}4%Qky5h-14m$AR%U ze2dWp{Z=zNGau*Q-9gAyZCN#qEq!|?Lq&KcNrW}ko~Mg(3%$@)cFn#ks3$4)n@Q9I z3M^B4#;-Q^Q8j~?&`IW?viV4}ZM~z-Oi;G7No++a#j+ITl>d1Koe1*B9duIN=^GCL zX@$g0-+M`{6C^Iqb9Mm*^6#Um@Yi@63O=$>cA#>jCLU+HzKSmBhT83SG+BWv%>gHn zcQmB~0y;BU(0YPtas!=@K5017apFS`a2>nKxYkY}ME%NEjBQQ&yJMaYu4{kRhfVO? z=%j9RbwiT{*3BHFCcctn2Vr9HqqorsTY2nLGsoR{Es17R43JTREx@lD8 z%6TEQ#nGYYB||)qPQtgO>X%Ixzcg%eudlDKt)Dt3{Y?g)^rJC!rlz>+jwc+8*jQ&@C82Bq0t?X{ zo<%;Dv@zX6#FEn>3^=4W(Rsm124E+gRhAh@4#|~oC9xG8*C-+97#WTPZYGWk9yDV|WUo`ReL?eR-KYK1Lq% z&+vF0BXs;;wXqEUJ}!M8tG9cgLYZ-K5S$Evf#z&_DK8+?> z4NfXE;wj@$QnB*MH6LmQ&quo`A0@@nDGD{>NkjY4Wj6x0H4$f0dVuly{LtcS~%<7P_@Th6{UC8 zCOQ*jE!f@(vE>#-X)FjONCmi}wx%U0Q&;*VQ~v;v`3B za|68;y@g0pcp0vcX0K-&UYCQSXD+!qo~I;Ub5C#s00ot-uDSdCR4NdaqPJj2CsC!N zRtPbVSZNi#eBbEA$i&Ls!$*&V3h|q8#jW@?&q?*a&Y<)2v^et)TsZHc(EKiBF#*Oj zi{;Acu$Wvbvr-G4A8>mi)gkb48%+-|O)@I0sS>Z4aX|#q*9~Q}>*K-^NPhuM4>9F# z1BwkidQOV9!GgMT)SBhd%rIB3+RpH^=cL<@Gw2g7&0Wy8lz!Jw`2&dlR?x4>oqV!3 zN{+_&(S;7%Auzq=*@<-`Y6nTpSCEt>J2$4Cv?|H0tod-DSor=Vda-RQy5Zr=fJOg2 zgCw;NjmDnWF_59`v=urp_PSgw96v}(+)3LM=jj%rA5ix;;9YQNA$~c7UfweM23$O$ zRG_V_uI%>76wH(21iiW4Kd=<{JpL=tDeJZ=cVC1U$W2xLK~6mFL9QrxIP{KG?@$CL zO>a>e%B=eh%|dc*O>8s@`v#ic_;U#Hh7i1jz}vdD16z=`h8BPm>posa=QkBciwGvt zzn!Fu^8b=SlO7#@A7St=nAyX*3Kd0j?0`M06*T3-T|K~#^(+p?F8}}FiTn5~@z#@` z8a>V3F+22TI91+0uxa+er`5RQMbGGP>AauQo`VKwhc0m(~^rx}?wn zU0GYGFUz$mX^CdwYCF}guQZoQLzR7(&CBS;q&R^VOO9#|qa@8@Qwcu3cm>ULHN~b! zOWwbcdjRFS1w&Gs8YfHrp>{gh2H5H<+m2L0m#8koD8;ao^zetHizWc+_hT`{&j(Vm zg)UP4sRKhKIGQU%CtYX2#Y6tRk-b1jTO`p1JRf*0aTiT9{~q3rj4^WMquee3&(QlH zmf=NoRz#}|Q#fegr~sxeJ=bx35uE|`sVRaFNf?gf>j5mIPsKejss%TTrb3*EgOMRg z#9HaE#?U!7pb)?(3cW)Qw4gl@>f!UAH!C?_r?>Z;=(@1Ta9=Di{@`uz0-DiiRm$-^ z=re2>wTvb#8(uNe-Cf$VpDI_9yeLw0m=`e)q?azl6B&ec>_^BT(q%N^F@zrELj7L# z{&E}UEzniGzrI*sZJ!E`js6R+GlOFB0ETwfU{94A6EBM9H|cIol|Ma-%8WPd-fE=v zYioZBgL6_oz@5r5MYC>hpH}M$G_hWPw?5ydm>6oWW~Hw~HVEr9bZw8i4;8Q!ex@b_Uh$%{(>w1 zi!2iJSFr{s0u|@L&m(_5Njh&W(@*+N=2?}#EAZ7{{qMK3f0>cqAn)})A#V@dg(`z! zh*O#^bxoDtMaaM5Yxb@$eAuh-PnFEuFrf}pHJd)3Vr-DV>1712Av8{NyxW2v9mF_TBtF?%&;1C zTp@R=Xs1F$#N&U4OTl0-E{KUy+vfKQBK@h$Z|_B1Kf_g%dCn{{ql0ctm_fGP*?&2m_7Onv&iRp6~*$ zQO(kx@UU9s)PIv17-tKelTSSqUxGv^btiS0`IJ1`TH$CDIwpd)uUPcy;V);0<|*Rb z5=9*tmv9=P`@%^x2OrChKhI}6GYLZ zG{N733EtUn+(~Q^wTB7pX;;2$u=KEloh4^Ww zhkda#(1NGD6vnxTTiRE;=(;{@EVNsTeD2Zv~a$M{~Ht=7lbE1a(@ z&})yGIujfHeHKlH+keT0e|T+5Tl@rUaVNHQx?lV8Sv9IxP2EG4zCcY9(aTO_oD!vD zDzP^9Ud5(=5g@t}#6&-bEXEr^L#@f=EEY$V(rmwASuCClE9&sR&BkZd;pq~!Ur*Wz zyOgNyQ(4b*L{Vl!!CTQ-XKlz*#FEhDeF2Jft`M{vapLRsp{2rRDf@Ji90dP$+#Crg z{Sfk1D{;+0Yci3+W+_buiyJgzF+7HIiOYkOP0_N88 zBI>GoQ}iQw1GSm?>|3l4A^uhnUe4Y&gMUg2q6L1vK+&zuIbVEh^9R}dBK?Je;yn3< zf}*!qqxj(VQ}J+v|9*k@H|f>J2K<7-Z?l&eaiv13D;1x-Qi12yFO4=WYeMX>KI{|z zuf0G&_K9fC2JXsEiL7Kz+Pz`m`fYUuNxr^=C$h|Yz3{So%AGfl!$Q}5{Wb4zk8iM_ aHVFI@0{MdjU5)q^1iF&_TEQOLL+Fn)6;O+#=$J$#!GZ*6 zJVWA=pg7@z`<$V1HkptF`8qrNIFr9FjD~K0(L*qf;VqfCU~MYn)L>;f%T^&gi1G58yML zrl?qbrs3cRK=K!7V@7?H3M}N`Lz;RtqJm;Zzn8~4KoiVTA|Y~o~CH%(TlUo24z1R4C6<`7NOV}V$ z7J65hWs+e{1Alr8;OAJ9Y!+T7Ld|7@|E%?zK7^#L0W|M9?VbKV?pCivRbBAlM+0ihOXgefMz7O39}Jwcj^ho#>O0=~*|WaW zai6+Qck7P14flHeq1!uapLjhPvt^jC!gjfIdVVr=`zOv;MMVyrFV5Y8)6FASRAjkS zMy?*!U^CYs_r}Ig22_h4Ghc`8VvIaFDO5-o(Q{HY--Dg<6K0Hm>xCH;G-kwOcuZKT z^{krj!u>cQ6Z#zq)R@s|>hZ{1>I|bZS4Hm@arfrtx^cIGuX=xzae+R&QymFNeGB zS{JR~ijSlDMNr-ZZFeNEfX+CN8W`8_eg^|%(n#V zlJhGfE*SBASGd%*$$8l8F`rO(;BlMzIw7?a^7N!l>a}Kj15E=r^eHn)-*x*ot5Dkw zyOpj>!vS-I#VeP)6?SRap(VKM=n5CWu?8&gEXqiub$HB#)wP7xX())!k%Z{fQi#sk z?mhsutso%v6bfDd!JikN+nka>AU-8qJTSS#1-ESe17>qTdX^n9G#}UPg$|W55ovJZ zP`158B21~f<++&s0ZD>t$%0@pI!#9~-?8jYjRn-_o^bsZsv1V0iL{LJWP2xeE8%#L zY)3H~##oRCMED^a^-hS-MCd#FDsBldOusr4N>=rF=aj{*FtUU)`$<-5PHm3u5Z1sm zCfcf6eEg8dnOD2rG||UMitRKs8R!G}O@j~Lf(=?ZQq~o9^o%f*mDN)cXkWleQW2B7p=^5)2UbbUCNyg_ z)1%l-`xaI$+ct3);H_jqTDU2d=fMr(jze4UBiHHiuIz47$1hoTgV7!CjUSK2BpJRbz+b9QB_63$4PXdl38a(aoyKu$%{St%|5l!Li6;XCjycf3%T zNeP3fhN>9_?JnHr4h}Ki9aE5uENJVn*0b-Q z@O(zOj9G<{*Op)gPp~VB3VCfA=6btkKwY1eq>sFI58g+kE~oe+m@cKEuP#-RiSnY| zhxNXXZSI;ly~M=?J;~*QMxc~|B}IvA0!jnjy@K?bQc)>k3*?kEJvTrmT_TkfHA}KV z1r4jNCjFRLc4$QG$m=^|J(q}uD=d4gCG%2T4qz?g-V=7o?4-ISSf(i}OeTBwQFc^Lg{s{=>^EC3vknWbxm3f)~|CAkE!UM{ZBWGP_RPJr!fza z2KWl`f!sq(U1QqU1Fb7UI5`;>u$s$&aPI z<_!nNB@k{Py_2=9TAHg9$7vC`| zg362dYgn;es-9UqOFoAclu{N1t{-Ve-y_Fo(HI?-n(=5Ijx3BQkEb2Zui@dJImyhy z8@hG4T8kIQD$icTR_>dJ(TkNl)cCgd-O)W2pL|?ZlhI>w?|gss&#(D%L#?N}T2J-V zOH)7F{XG$O;^j5nUaQRxuCFiicOqlMP}YW#nH$F0?)i**g+F0a5qti2wiq diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Geometry.php b/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Geometry.php deleted file mode 100644 index 2780ed666e20..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Geometry.php +++ /dev/null @@ -1,36 +0,0 @@ -internalAddGeneratedFile( - ' -ù -)google/cloud/documentai/v1/geometry.protogoogle.cloud.documentai.v1" -Vertex -x ( -y ("( -NormalizedVertex -x ( -y (" - BoundingPoly4 -vertices ( 2".google.cloud.documentai.v1.VertexI -normalized_vertices ( 2,.google.cloud.documentai.v1.NormalizedVertexBË -com.google.cloud.documentai.v1B GeometryProtoPZ>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipbªGoogle.Cloud.DocumentAI.V1ÊGoogle\\Cloud\\DocumentAI\\V1êGoogle::Cloud::DocumentAI::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/OperationMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/OperationMetadata.php deleted file mode 100644 index 5152d9893a80987d5815419964ae6281b52ffedc..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1280 zcmbVL(QeZ)6s6rdn5Ru65>QP7nK5ad1gW|`;jy7E%}S)vRQUp##quZ9DRZEnnDqC$q5hO zD4k4b3<(bf3utUZ*y_SgcL3d%H+ZR_2~T4}5u9>94QQPNJRR4^oTMR*Bxd!SMx6^y z&UiEosl;O}v2FMPh;T>~feD4}-r2|5qu(}EzN4x9Rzc-oHI4xw0ZtOw%_(yb_y(Z* zL^=u>fr(W42;5`IkVQ-~9I&sdxf3|SK|&SFa_l6Hh^`T8KsO?^b^tR@9lIyE65|Bs zwe_?j~I2 zOlkp>1W#$TtQgm=ZSW|j*#cK9=B5rdNK6%ED3x^86?M6BxRWO~TdSsS7rI&skP5ZZ zGr;P<0J{`a@|qs^2hD*yyzKOQuH&71ZfpC2wE-S}y6kkkPJ6p#Z2{mkJC1vCq0eP& z6Rh_y9mjQBDt5&JVC}r=U8w(6{WJ?z$I98S5_q9Zn^%5^^k+|(6gPX*D}6rA!gINK zSfBDmPh-K9t>=RjqvOTHkMd62SlBiewsQ+NJ^QNhGk^4F1}_}m^n7LUKjr5c7$Jj3 lXbwl{sxewKQ#jf$mh*Mymj!$2Su=8nwM=BT|F_^4fWNNpn%MvV diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Processor.php b/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/Processor.php deleted file mode 100644 index d03f0e9f91701831a7bb57798030f0691a323952..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4080 zcmb_f&2HO95RPQaw#JSvvrZu^Ny|6^;{24V-J%EO50pi@Dq=~nWdUx4vNXA}x1mUa zq+BGad+MP;Z!M5(?|q7%d+QtYoJZ)Xv%4fE%Zh6w$-&Wbc4lY3oo{CL;S=xBgPZau zafok(#FF=4$l)Q8J>Lyo)3xROez!|}*>rmzwTZ9Da-|{H8!cI@)LJ)CHE{dBNlNm8 z>mJyoXxeVyDq61D?-3_7Xz^&Rh{jA31g@`evjC3KBY|g_MBZ$cw@7GMMrd?4xrNRK zv(Tv|7CP;<2LPsR1cBU)Ex{|0@t@b_GR@>bSyJRyYi~=u~a(c*hEas% zr%-i%ef=!eQCF26rpa8Kkcu#C`UICc3o<{=9Vx`tVg!^VOQf%0(Z=mTs1I<<&v3P3 ztTyI4l|hnj6D*MgYY4;Vc`wkPlL((In#oGnU@883B(N3e0heBdd4ZDNGaTc9SovA} zJ|m)OL(U?ePfX4RtZrR5f0_IC@GRd>0aO_nsi6(20nl?TV(Z}xkK`B7;{5s-7qYm; z)LW=694)}*0DTO)lmxo>GRWr!L5#>~esLgs28##8(G98#e|UrvkMO~T{6QA0lsm-& zACa+Tihyyd;H?H~T^8 z_QssdVw_!XzRSrQ-1g|Hg=dg|n@>^!q%L)^Av)AK&<)#mzekQR6lSEGaJ5GrJ@gIy zYa9E-CYBzb+o)A*S|xW$%EMAy+uo@)>RLswHg@Y3 zwS|jZN}30#*6Nzx+C@<=U7m}J03+SXZz;&|Ix1a(#hsSg8Z|rzGZn4*w6TZEDd{p~ z#i~}{%%z!aJSi4WNDD90fGJf(%~DGz|FWOpV1Pf#|Y#*kgNQ63O>Rnd&WhUKZu7;l_tsF zOnv=W%y;pyijDff9e%@N|HfzRAO>&$!SLdbbYYXfT^0VANhVvhrnJ}oiiMr%Wt+T| z)LIAMwr|qcg>tFHwM(VM$6Be>UfZ8SSVH%++sVV^zIZSWy)W6|OwBQGOTJUQ0FU7q F;6G$kE>!>k diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/ProcessorType.php b/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/ProcessorType.php deleted file mode 100644 index 65a61c15c025..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/GPBMetadata/Google/Cloud/Documentai/V1/ProcessorType.php +++ /dev/null @@ -1,40 +0,0 @@ -internalAddGeneratedFile( - ' -Þ -/google/cloud/documentai/v1/processor_type.protogoogle.cloud.documentai.v1google/api/resource.proto"“ - ProcessorType -name (  -type (  -category ( S -available_locations ( 26.google.cloud.documentai.v1.ProcessorType.LocationInfo -allow_creation (- - launch_stage (2.google.api.LaunchStage -sample_document_uris ( # - LocationInfo - location_id ( :uêAr -\'documentai.googleapis.com/ProcessorTypeGprojects/{project}/locations/{location}/processorTypes/{processor_type}BÕ -com.google.cloud.documentai.v1BDocumentAiProcessorTypePZ>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipbªGoogle.Cloud.DocumentAI.V1ÊGoogle\\Cloud\\DocumentAI\\V1êGoogle::Cloud::DocumentAI::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Barcode.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Barcode.php deleted file mode 100644 index c07863d95b65..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Barcode.php +++ /dev/null @@ -1,255 +0,0 @@ -google.cloud.documentai.v1.Barcode - */ -class Barcode extends \Google\Protobuf\Internal\Message -{ - /** - * Format of a barcode. - * The supported formats are: - * - `CODE_128`: Code 128 type. - * - `CODE_39`: Code 39 type. - * - `CODE_93`: Code 93 type. - * - `CODABAR`: Codabar type. - * - `DATA_MATRIX`: 2D Data Matrix type. - * - `ITF`: ITF type. - * - `EAN_13`: EAN-13 type. - * - `EAN_8`: EAN-8 type. - * - `QR_CODE`: 2D QR code type. - * - `UPC_A`: UPC-A type. - * - `UPC_E`: UPC-E type. - * - `PDF417`: PDF417 type. - * - `AZTEC`: 2D Aztec code type. - * - `DATABAR`: GS1 DataBar code type. - * - * Generated from protobuf field string format = 1; - */ - protected $format = ''; - /** - * Value format describes the format of the value that a barcode - * encodes. - * The supported formats are: - * - `CONTACT_INFO`: Contact information. - * - `EMAIL`: Email address. - * - `ISBN`: ISBN identifier. - * - `PHONE`: Phone number. - * - `PRODUCT`: Product. - * - `SMS`: SMS message. - * - `TEXT`: Text string. - * - `URL`: URL address. - * - `WIFI`: Wifi information. - * - `GEO`: Geo-localization. - * - `CALENDAR_EVENT`: Calendar event. - * - `DRIVER_LICENSE`: Driver's license. - * - * Generated from protobuf field string value_format = 2; - */ - protected $value_format = ''; - /** - * Raw value encoded in the barcode. - * For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. - * - * Generated from protobuf field string raw_value = 3; - */ - protected $raw_value = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $format - * Format of a barcode. - * The supported formats are: - * - `CODE_128`: Code 128 type. - * - `CODE_39`: Code 39 type. - * - `CODE_93`: Code 93 type. - * - `CODABAR`: Codabar type. - * - `DATA_MATRIX`: 2D Data Matrix type. - * - `ITF`: ITF type. - * - `EAN_13`: EAN-13 type. - * - `EAN_8`: EAN-8 type. - * - `QR_CODE`: 2D QR code type. - * - `UPC_A`: UPC-A type. - * - `UPC_E`: UPC-E type. - * - `PDF417`: PDF417 type. - * - `AZTEC`: 2D Aztec code type. - * - `DATABAR`: GS1 DataBar code type. - * @type string $value_format - * Value format describes the format of the value that a barcode - * encodes. - * The supported formats are: - * - `CONTACT_INFO`: Contact information. - * - `EMAIL`: Email address. - * - `ISBN`: ISBN identifier. - * - `PHONE`: Phone number. - * - `PRODUCT`: Product. - * - `SMS`: SMS message. - * - `TEXT`: Text string. - * - `URL`: URL address. - * - `WIFI`: Wifi information. - * - `GEO`: Geo-localization. - * - `CALENDAR_EVENT`: Calendar event. - * - `DRIVER_LICENSE`: Driver's license. - * @type string $raw_value - * Raw value encoded in the barcode. - * For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Barcode::initOnce(); - parent::__construct($data); - } - - /** - * Format of a barcode. - * The supported formats are: - * - `CODE_128`: Code 128 type. - * - `CODE_39`: Code 39 type. - * - `CODE_93`: Code 93 type. - * - `CODABAR`: Codabar type. - * - `DATA_MATRIX`: 2D Data Matrix type. - * - `ITF`: ITF type. - * - `EAN_13`: EAN-13 type. - * - `EAN_8`: EAN-8 type. - * - `QR_CODE`: 2D QR code type. - * - `UPC_A`: UPC-A type. - * - `UPC_E`: UPC-E type. - * - `PDF417`: PDF417 type. - * - `AZTEC`: 2D Aztec code type. - * - `DATABAR`: GS1 DataBar code type. - * - * Generated from protobuf field string format = 1; - * @return string - */ - public function getFormat() - { - return $this->format; - } - - /** - * Format of a barcode. - * The supported formats are: - * - `CODE_128`: Code 128 type. - * - `CODE_39`: Code 39 type. - * - `CODE_93`: Code 93 type. - * - `CODABAR`: Codabar type. - * - `DATA_MATRIX`: 2D Data Matrix type. - * - `ITF`: ITF type. - * - `EAN_13`: EAN-13 type. - * - `EAN_8`: EAN-8 type. - * - `QR_CODE`: 2D QR code type. - * - `UPC_A`: UPC-A type. - * - `UPC_E`: UPC-E type. - * - `PDF417`: PDF417 type. - * - `AZTEC`: 2D Aztec code type. - * - `DATABAR`: GS1 DataBar code type. - * - * Generated from protobuf field string format = 1; - * @param string $var - * @return $this - */ - public function setFormat($var) - { - GPBUtil::checkString($var, True); - $this->format = $var; - - return $this; - } - - /** - * Value format describes the format of the value that a barcode - * encodes. - * The supported formats are: - * - `CONTACT_INFO`: Contact information. - * - `EMAIL`: Email address. - * - `ISBN`: ISBN identifier. - * - `PHONE`: Phone number. - * - `PRODUCT`: Product. - * - `SMS`: SMS message. - * - `TEXT`: Text string. - * - `URL`: URL address. - * - `WIFI`: Wifi information. - * - `GEO`: Geo-localization. - * - `CALENDAR_EVENT`: Calendar event. - * - `DRIVER_LICENSE`: Driver's license. - * - * Generated from protobuf field string value_format = 2; - * @return string - */ - public function getValueFormat() - { - return $this->value_format; - } - - /** - * Value format describes the format of the value that a barcode - * encodes. - * The supported formats are: - * - `CONTACT_INFO`: Contact information. - * - `EMAIL`: Email address. - * - `ISBN`: ISBN identifier. - * - `PHONE`: Phone number. - * - `PRODUCT`: Product. - * - `SMS`: SMS message. - * - `TEXT`: Text string. - * - `URL`: URL address. - * - `WIFI`: Wifi information. - * - `GEO`: Geo-localization. - * - `CALENDAR_EVENT`: Calendar event. - * - `DRIVER_LICENSE`: Driver's license. - * - * Generated from protobuf field string value_format = 2; - * @param string $var - * @return $this - */ - public function setValueFormat($var) - { - GPBUtil::checkString($var, True); - $this->value_format = $var; - - return $this; - } - - /** - * Raw value encoded in the barcode. - * For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. - * - * Generated from protobuf field string raw_value = 3; - * @return string - */ - public function getRawValue() - { - return $this->raw_value; - } - - /** - * Raw value encoded in the barcode. - * For example: `'MEBKM:TITLE:Google;URL:https://www.google.com;;'`. - * - * Generated from protobuf field string raw_value = 3; - * @param string $var - * @return $this - */ - public function setRawValue($var) - { - GPBUtil::checkString($var, True); - $this->raw_value = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchDocumentsInputConfig.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchDocumentsInputConfig.php deleted file mode 100644 index 087665129f05..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchDocumentsInputConfig.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.documentai.v1.BatchDocumentsInputConfig - */ -class BatchDocumentsInputConfig extends \Google\Protobuf\Internal\Message -{ - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\GcsPrefix $gcs_prefix - * The set of documents that match the specified Cloud Storage `gcs_prefix`. - * @type \Google\Cloud\DocumentAI\V1\GcsDocuments $gcs_documents - * The set of documents individually specified on Cloud Storage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * The set of documents that match the specified Cloud Storage `gcs_prefix`. - * - * Generated from protobuf field .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1; - * @return \Google\Cloud\DocumentAI\V1\GcsPrefix|null - */ - public function getGcsPrefix() - { - return $this->readOneof(1); - } - - public function hasGcsPrefix() - { - return $this->hasOneof(1); - } - - /** - * The set of documents that match the specified Cloud Storage `gcs_prefix`. - * - * Generated from protobuf field .google.cloud.documentai.v1.GcsPrefix gcs_prefix = 1; - * @param \Google\Cloud\DocumentAI\V1\GcsPrefix $var - * @return $this - */ - public function setGcsPrefix($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\GcsPrefix::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The set of documents individually specified on Cloud Storage. - * - * Generated from protobuf field .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2; - * @return \Google\Cloud\DocumentAI\V1\GcsDocuments|null - */ - public function getGcsDocuments() - { - return $this->readOneof(2); - } - - public function hasGcsDocuments() - { - return $this->hasOneof(2); - } - - /** - * The set of documents individually specified on Cloud Storage. - * - * Generated from protobuf field .google.cloud.documentai.v1.GcsDocuments gcs_documents = 2; - * @param \Google\Cloud\DocumentAI\V1\GcsDocuments $var - * @return $this - */ - public function setGcsDocuments($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\GcsDocuments::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata.php deleted file mode 100644 index acda6f101347..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata.php +++ /dev/null @@ -1,228 +0,0 @@ -google.cloud.documentai.v1.BatchProcessMetadata - */ -class BatchProcessMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The state of the current batch processing. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchProcessMetadata.State state = 1; - */ - protected $state = 0; - /** - * A message providing more details about the current state of processing. - * For example, the error message if the operation is failed. - * - * Generated from protobuf field string state_message = 2; - */ - protected $state_message = ''; - /** - * The creation time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - */ - protected $create_time = null; - /** - * The last update time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - */ - protected $update_time = null; - /** - * The list of response details of each document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - */ - private $individual_process_statuses; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The state of the current batch processing. - * @type string $state_message - * A message providing more details about the current state of processing. - * For example, the error message if the operation is failed. - * @type \Google\Protobuf\Timestamp $create_time - * The creation time of the operation. - * @type \Google\Protobuf\Timestamp $update_time - * The last update time of the operation. - * @type array<\Google\Cloud\DocumentAI\V1\BatchProcessMetadata\IndividualProcessStatus>|\Google\Protobuf\Internal\RepeatedField $individual_process_statuses - * The list of response details of each document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The state of the current batch processing. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchProcessMetadata.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of the current batch processing. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchProcessMetadata.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\BatchProcessMetadata\State::class); - $this->state = $var; - - return $this; - } - - /** - * A message providing more details about the current state of processing. - * For example, the error message if the operation is failed. - * - * Generated from protobuf field string state_message = 2; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * A message providing more details about the current state of processing. - * For example, the error message if the operation is failed. - * - * Generated from protobuf field string state_message = 2; - * @param string $var - * @return $this - */ - public function setStateMessage($var) - { - GPBUtil::checkString($var, True); - $this->state_message = $var; - - return $this; - } - - /** - * The creation time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The creation time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The last update time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * The last update time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The list of response details of each document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIndividualProcessStatuses() - { - return $this->individual_process_statuses; - } - - /** - * The list of response details of each document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus individual_process_statuses = 5; - * @param array<\Google\Cloud\DocumentAI\V1\BatchProcessMetadata\IndividualProcessStatus>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIndividualProcessStatuses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\BatchProcessMetadata\IndividualProcessStatus::class); - $this->individual_process_statuses = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata/IndividualProcessStatus.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata/IndividualProcessStatus.php deleted file mode 100644 index 9b8d8d2c539b..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata/IndividualProcessStatus.php +++ /dev/null @@ -1,208 +0,0 @@ -google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus - */ -class IndividualProcessStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The source of the document, same as the - * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source] - * field in the request when the batch process started. - * - * Generated from protobuf field string input_gcs_source = 1; - */ - protected $input_gcs_source = ''; - /** - * The status processing the document. - * - * Generated from protobuf field .google.rpc.Status status = 2; - */ - protected $status = null; - /** - * The Cloud Storage output destination (in the request as - * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri]) - * of the processed document if it was successful, otherwise empty. - * - * Generated from protobuf field string output_gcs_destination = 3; - */ - protected $output_gcs_destination = ''; - /** - * The status of human review on the processed document. - * - * Generated from protobuf field .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; - */ - protected $human_review_status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $input_gcs_source - * The source of the document, same as the - * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source] - * field in the request when the batch process started. - * @type \Google\Rpc\Status $status - * The status processing the document. - * @type string $output_gcs_destination - * The Cloud Storage output destination (in the request as - * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri]) - * of the processed document if it was successful, otherwise empty. - * @type \Google\Cloud\DocumentAI\V1\HumanReviewStatus $human_review_status - * The status of human review on the processed document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The source of the document, same as the - * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source] - * field in the request when the batch process started. - * - * Generated from protobuf field string input_gcs_source = 1; - * @return string - */ - public function getInputGcsSource() - { - return $this->input_gcs_source; - } - - /** - * The source of the document, same as the - * [input_gcs_source][google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus.input_gcs_source] - * field in the request when the batch process started. - * - * Generated from protobuf field string input_gcs_source = 1; - * @param string $var - * @return $this - */ - public function setInputGcsSource($var) - { - GPBUtil::checkString($var, True); - $this->input_gcs_source = $var; - - return $this; - } - - /** - * The status processing the document. - * - * Generated from protobuf field .google.rpc.Status status = 2; - * @return \Google\Rpc\Status|null - */ - public function getStatus() - { - return $this->status; - } - - public function hasStatus() - { - return isset($this->status); - } - - public function clearStatus() - { - unset($this->status); - } - - /** - * The status processing the document. - * - * Generated from protobuf field .google.rpc.Status status = 2; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->status = $var; - - return $this; - } - - /** - * The Cloud Storage output destination (in the request as - * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri]) - * of the processed document if it was successful, otherwise empty. - * - * Generated from protobuf field string output_gcs_destination = 3; - * @return string - */ - public function getOutputGcsDestination() - { - return $this->output_gcs_destination; - } - - /** - * The Cloud Storage output destination (in the request as - * [DocumentOutputConfig.GcsOutputConfig.gcs_uri][google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.gcs_uri]) - * of the processed document if it was successful, otherwise empty. - * - * Generated from protobuf field string output_gcs_destination = 3; - * @param string $var - * @return $this - */ - public function setOutputGcsDestination($var) - { - GPBUtil::checkString($var, True); - $this->output_gcs_destination = $var; - - return $this; - } - - /** - * The status of human review on the processed document. - * - * Generated from protobuf field .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; - * @return \Google\Cloud\DocumentAI\V1\HumanReviewStatus|null - */ - public function getHumanReviewStatus() - { - return $this->human_review_status; - } - - public function hasHumanReviewStatus() - { - return isset($this->human_review_status); - } - - public function clearHumanReviewStatus() - { - unset($this->human_review_status); - } - - /** - * The status of human review on the processed document. - * - * Generated from protobuf field .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 5; - * @param \Google\Cloud\DocumentAI\V1\HumanReviewStatus $var - * @return $this - */ - public function setHumanReviewStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\HumanReviewStatus::class); - $this->human_review_status = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IndividualProcessStatus::class, \Google\Cloud\DocumentAI\V1\BatchProcessMetadata_IndividualProcessStatus::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata/State.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata/State.php deleted file mode 100644 index 2271791e75f1..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessMetadata/State.php +++ /dev/null @@ -1,92 +0,0 @@ -google.cloud.documentai.v1.BatchProcessMetadata.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; - /** - * Request operation is waiting for scheduling. - * - * Generated from protobuf enum WAITING = 1; - */ - const WAITING = 1; - /** - * Request is being processed. - * - * Generated from protobuf enum RUNNING = 2; - */ - const RUNNING = 2; - /** - * The batch processing completed successfully. - * - * Generated from protobuf enum SUCCEEDED = 3; - */ - const SUCCEEDED = 3; - /** - * The batch processing was being cancelled. - * - * Generated from protobuf enum CANCELLING = 4; - */ - const CANCELLING = 4; - /** - * The batch processing was cancelled. - * - * Generated from protobuf enum CANCELLED = 5; - */ - const CANCELLED = 5; - /** - * The batch processing has failed. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::WAITING => 'WAITING', - self::RUNNING => 'RUNNING', - self::SUCCEEDED => 'SUCCEEDED', - self::CANCELLING => 'CANCELLING', - self::CANCELLED => 'CANCELLED', - 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\DocumentAI\V1\BatchProcessMetadata_State::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessRequest.php deleted file mode 100644 index 51031e244a22..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessRequest.php +++ /dev/null @@ -1,342 +0,0 @@ -google.cloud.documentai.v1.BatchProcessRequest - */ -class BatchProcessRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of - * [Processor][google.cloud.documentai.v1.Processor] or - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. - * Format: `projects/{project}/locations/{location}/processors/{processor}`, - * or - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * The input documents for the - * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] - * method. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; - */ - protected $input_documents = null; - /** - * The output configuration for the - * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] - * method. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; - */ - protected $document_output_config = null; - /** - * Whether human review should be skipped for this request. Default to - * `false`. - * - * Generated from protobuf field bool skip_human_review = 4; - */ - protected $skip_human_review = false; - /** - * Inference-time options for the process API - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions process_options = 7; - */ - protected $process_options = null; - /** - * Optional. The labels with user-defined metadata for the request. - * Label keys and values can be no longer than 63 characters - * (Unicode codepoints) and can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * - * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - - /** - * @param string $name Required. The resource name of - * [Processor][google.cloud.documentai.v1.Processor] or - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. - * Format: `projects/{project}/locations/{location}/processors/{processor}`, - * or - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * @return \Google\Cloud\DocumentAI\V1\BatchProcessRequest - * - * @experimental - */ - public static function 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 - * [Processor][google.cloud.documentai.v1.Processor] or - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. - * Format: `projects/{project}/locations/{location}/processors/{processor}`, - * or - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * @type \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $input_documents - * The input documents for the - * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] - * method. - * @type \Google\Cloud\DocumentAI\V1\DocumentOutputConfig $document_output_config - * The output configuration for the - * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] - * method. - * @type bool $skip_human_review - * Whether human review should be skipped for this request. Default to - * `false`. - * @type \Google\Cloud\DocumentAI\V1\ProcessOptions $process_options - * Inference-time options for the process API - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. The labels with user-defined metadata for the request. - * Label keys and values can be no longer than 63 characters - * (Unicode codepoints) and can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of - * [Processor][google.cloud.documentai.v1.Processor] or - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. - * Format: `projects/{project}/locations/{location}/processors/{processor}`, - * or - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from 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 - * [Processor][google.cloud.documentai.v1.Processor] or - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. - * Format: `projects/{project}/locations/{location}/processors/{processor}`, - * or - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_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 input documents for the - * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] - * method. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; - * @return \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig|null - */ - public function getInputDocuments() - { - return $this->input_documents; - } - - public function hasInputDocuments() - { - return isset($this->input_documents); - } - - public function clearInputDocuments() - { - unset($this->input_documents); - } - - /** - * The input documents for the - * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] - * method. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig input_documents = 5; - * @param \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $var - * @return $this - */ - public function setInputDocuments($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig::class); - $this->input_documents = $var; - - return $this; - } - - /** - * The output configuration for the - * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] - * method. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; - * @return \Google\Cloud\DocumentAI\V1\DocumentOutputConfig|null - */ - public function getDocumentOutputConfig() - { - return $this->document_output_config; - } - - public function hasDocumentOutputConfig() - { - return isset($this->document_output_config); - } - - public function clearDocumentOutputConfig() - { - unset($this->document_output_config); - } - - /** - * The output configuration for the - * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments] - * method. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentOutputConfig document_output_config = 6; - * @param \Google\Cloud\DocumentAI\V1\DocumentOutputConfig $var - * @return $this - */ - public function setDocumentOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\DocumentOutputConfig::class); - $this->document_output_config = $var; - - return $this; - } - - /** - * Whether human review should be skipped for this request. Default to - * `false`. - * - * Generated from protobuf field bool skip_human_review = 4; - * @return bool - */ - public function getSkipHumanReview() - { - return $this->skip_human_review; - } - - /** - * Whether human review should be skipped for this request. Default to - * `false`. - * - * Generated from protobuf field bool skip_human_review = 4; - * @param bool $var - * @return $this - */ - public function setSkipHumanReview($var) - { - GPBUtil::checkBool($var); - $this->skip_human_review = $var; - - return $this; - } - - /** - * Inference-time options for the process API - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions process_options = 7; - * @return \Google\Cloud\DocumentAI\V1\ProcessOptions|null - */ - public function getProcessOptions() - { - return $this->process_options; - } - - public function hasProcessOptions() - { - return isset($this->process_options); - } - - public function clearProcessOptions() - { - unset($this->process_options); - } - - /** - * Inference-time options for the process API - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions process_options = 7; - * @param \Google\Cloud\DocumentAI\V1\ProcessOptions $var - * @return $this - */ - public function setProcessOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\ProcessOptions::class); - $this->process_options = $var; - - return $this; - } - - /** - * Optional. The labels with user-defined metadata for the request. - * Label keys and values can be no longer than 63 characters - * (Unicode codepoints) and can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * - * Generated from protobuf field map labels = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. The labels with user-defined metadata for the request. - * Label keys and values can be no longer than 63 characters - * (Unicode codepoints) and can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * - * Generated from protobuf field map labels = 9 [(.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; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessResponse.php deleted file mode 100644 index 57562ab5f73f..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BatchProcessResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.cloud.documentai.v1.BatchProcessResponse - */ -class BatchProcessResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BoundingPoly.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BoundingPoly.php deleted file mode 100644 index 90a2873a1327..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/BoundingPoly.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.documentai.v1.BoundingPoly - */ -class BoundingPoly extends \Google\Protobuf\Internal\Message -{ - /** - * The bounding polygon vertices. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Vertex vertices = 1; - */ - private $vertices; - /** - * The bounding polygon normalized vertices. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.NormalizedVertex normalized_vertices = 2; - */ - private $normalized_vertices; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Vertex>|\Google\Protobuf\Internal\RepeatedField $vertices - * The bounding polygon vertices. - * @type array<\Google\Cloud\DocumentAI\V1\NormalizedVertex>|\Google\Protobuf\Internal\RepeatedField $normalized_vertices - * The bounding polygon normalized vertices. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Geometry::initOnce(); - parent::__construct($data); - } - - /** - * The bounding polygon vertices. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Vertex vertices = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVertices() - { - return $this->vertices; - } - - /** - * The bounding polygon vertices. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Vertex vertices = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Vertex>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVertices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Vertex::class); - $this->vertices = $arr; - - return $this; - } - - /** - * The bounding polygon normalized vertices. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.NormalizedVertex normalized_vertices = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNormalizedVertices() - { - return $this->normalized_vertices; - } - - /** - * The bounding polygon normalized vertices. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.NormalizedVertex normalized_vertices = 2; - * @param array<\Google\Cloud\DocumentAI\V1\NormalizedVertex>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNormalizedVertices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\NormalizedVertex::class); - $this->normalized_vertices = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CommonOperationMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CommonOperationMetadata.php deleted file mode 100644 index e5406876c1ca..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CommonOperationMetadata.php +++ /dev/null @@ -1,223 +0,0 @@ -google.cloud.documentai.v1.CommonOperationMetadata - */ -class CommonOperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The state of the operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata.State state = 1; - */ - protected $state = 0; - /** - * A message providing more details about the current state of processing. - * - * Generated from protobuf field string state_message = 2; - */ - protected $state_message = ''; - /** - * A related resource to this operation. - * - * Generated from protobuf field string resource = 5; - */ - protected $resource = ''; - /** - * The creation time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - */ - protected $create_time = null; - /** - * The last update time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - */ - protected $update_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The state of the operation. - * @type string $state_message - * A message providing more details about the current state of processing. - * @type string $resource - * A related resource to this operation. - * @type \Google\Protobuf\Timestamp $create_time - * The creation time of the operation. - * @type \Google\Protobuf\Timestamp $update_time - * The last update time of the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\OperationMetadata::initOnce(); - parent::__construct($data); - } - - /** - * The state of the operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of the operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata\State::class); - $this->state = $var; - - return $this; - } - - /** - * A message providing more details about the current state of processing. - * - * Generated from protobuf field string state_message = 2; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * A message providing more details about the current state of processing. - * - * Generated from protobuf field string state_message = 2; - * @param string $var - * @return $this - */ - public function setStateMessage($var) - { - GPBUtil::checkString($var, True); - $this->state_message = $var; - - return $this; - } - - /** - * A related resource to this operation. - * - * Generated from protobuf field string resource = 5; - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * A related resource to this operation. - * - * Generated from protobuf field string resource = 5; - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * The creation time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The creation time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The last update time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * The last update time of the operation. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CommonOperationMetadata/State.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CommonOperationMetadata/State.php deleted file mode 100644 index 59ee91f8b60e..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CommonOperationMetadata/State.php +++ /dev/null @@ -1,85 +0,0 @@ -google.cloud.documentai.v1.CommonOperationMetadata.State - */ -class State -{ - /** - * Unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Operation is still running. - * - * Generated from protobuf enum RUNNING = 1; - */ - const RUNNING = 1; - /** - * Operation is being cancelled. - * - * Generated from protobuf enum CANCELLING = 2; - */ - const CANCELLING = 2; - /** - * Operation succeeded. - * - * Generated from protobuf enum SUCCEEDED = 3; - */ - const SUCCEEDED = 3; - /** - * Operation failed. - * - * Generated from protobuf enum FAILED = 4; - */ - const FAILED = 4; - /** - * Operation is cancelled. - * - * Generated from protobuf enum CANCELLED = 5; - */ - const CANCELLED = 5; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::RUNNING => 'RUNNING', - self::CANCELLING => 'CANCELLING', - self::SUCCEEDED => 'SUCCEEDED', - self::FAILED => 'FAILED', - self::CANCELLED => '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); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata_State::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CreateProcessorRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CreateProcessorRequest.php deleted file mode 100644 index 64faa44770ca..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/CreateProcessorRequest.php +++ /dev/null @@ -1,161 +0,0 @@ -google.cloud.documentai.v1.CreateProcessorRequest - */ -class CreateProcessorRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent (project and location) under which to create the - * processor. 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 processor to be created, requires - * [Processor.type][google.cloud.documentai.v1.Processor.type] and - * [Processor.display_name][google.cloud.documentai.v1.Processor.display_name] - * to be set. Also, the - * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] - * field must be set if the processor is under CMEK. - * - * Generated from protobuf field .google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $processor = null; - - /** - * @param string $parent Required. The parent (project and location) under which to create the - * processor. Format: `projects/{project}/locations/{location}` - * Please see {@see DocumentProcessorServiceClient::locationName()} for help formatting this field. - * @param \Google\Cloud\DocumentAI\V1\Processor $processor Required. The processor to be created, requires - * [Processor.type][google.cloud.documentai.v1.Processor.type] and - * [Processor.display_name][google.cloud.documentai.v1.Processor.display_name] - * to be set. Also, the - * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] - * field must be set if the processor is under CMEK. - * - * @return \Google\Cloud\DocumentAI\V1\CreateProcessorRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\DocumentAI\V1\Processor $processor): self - { - return (new self()) - ->setParent($parent) - ->setProcessor($processor); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent (project and location) under which to create the - * processor. Format: `projects/{project}/locations/{location}` - * @type \Google\Cloud\DocumentAI\V1\Processor $processor - * Required. The processor to be created, requires - * [Processor.type][google.cloud.documentai.v1.Processor.type] and - * [Processor.display_name][google.cloud.documentai.v1.Processor.display_name] - * to be set. Also, the - * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] - * field must be set if the processor is under CMEK. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent (project and location) under which to create the - * processor. 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 (project and location) under which to create the - * processor. 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 processor to be created, requires - * [Processor.type][google.cloud.documentai.v1.Processor.type] and - * [Processor.display_name][google.cloud.documentai.v1.Processor.display_name] - * to be set. Also, the - * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] - * field must be set if the processor is under CMEK. - * - * Generated from protobuf field .google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DocumentAI\V1\Processor|null - */ - public function getProcessor() - { - return $this->processor; - } - - public function hasProcessor() - { - return isset($this->processor); - } - - public function clearProcessor() - { - unset($this->processor); - } - - /** - * Required. The processor to be created, requires - * [Processor.type][google.cloud.documentai.v1.Processor.type] and - * [Processor.display_name][google.cloud.documentai.v1.Processor.display_name] - * to be set. Also, the - * [Processor.kms_key_name][google.cloud.documentai.v1.Processor.kms_key_name] - * field must be set if the processor is under CMEK. - * - * Generated from protobuf field .google.cloud.documentai.v1.Processor processor = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DocumentAI\V1\Processor $var - * @return $this - */ - public function setProcessor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Processor::class); - $this->processor = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorMetadata.php deleted file mode 100644 index 80124ed069c0..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorMetadata.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.documentai.v1.DeleteProcessorMetadata - */ -class DeleteProcessorMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - */ - protected $common_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata - * The basic metadata of the long-running operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorRequest.php deleted file mode 100644 index 6cb572b012b4..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorRequest.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.documentai.v1.DeleteProcessorRequest - */ -class DeleteProcessorRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The processor resource name to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The processor resource name to be deleted. Please see - * {@see DocumentProcessorServiceClient::processorName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\DeleteProcessorRequest - * - * @experimental - */ - public static function 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 processor resource name to be deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The processor resource name to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The processor resource name to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorVersionMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorVersionMetadata.php deleted file mode 100644 index 4327a21261df..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorVersionMetadata.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.documentai.v1.DeleteProcessorVersionMetadata - */ -class DeleteProcessorVersionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - */ - protected $common_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata - * The basic metadata of the long-running operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorVersionRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorVersionRequest.php deleted file mode 100644 index c1b9fe66983a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeleteProcessorVersionRequest.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.documentai.v1.DeleteProcessorVersionRequest - */ -class DeleteProcessorVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The processor version resource name to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The processor version resource name to be deleted. Please see - * {@see DocumentProcessorServiceClient::processorVersionName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\DeleteProcessorVersionRequest - * - * @experimental - */ - public static function 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 processor version resource name to be deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The processor version resource name to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The processor version resource name to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionMetadata.php deleted file mode 100644 index 58dbc80516ee..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionMetadata.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.documentai.v1.DeployProcessorVersionMetadata - */ -class DeployProcessorVersionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - */ - protected $common_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata - * The basic metadata of the long-running operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionRequest.php deleted file mode 100644 index 38bd51702394..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionRequest.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.documentai.v1.DeployProcessorVersionRequest - */ -class DeployProcessorVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The processor version resource name to be deployed. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The processor version resource name to be deployed. Please see - * {@see DocumentProcessorServiceClient::processorVersionName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\DeployProcessorVersionRequest - * - * @experimental - */ - public static function 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 processor version resource name to be deployed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The processor version resource name to be deployed. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The processor version resource name to be deployed. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionResponse.php deleted file mode 100644 index f44a4454de41..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DeployProcessorVersionResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -google.cloud.documentai.v1.DeployProcessorVersionResponse - */ -class DeployProcessorVersionResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorMetadata.php deleted file mode 100644 index dbecdbea0c9e..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorMetadata.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.documentai.v1.DisableProcessorMetadata - */ -class DisableProcessorMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - */ - protected $common_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata - * The basic metadata of the long-running operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorRequest.php deleted file mode 100644 index fcefe5486fe9..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorRequest.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.documentai.v1.DisableProcessorRequest - */ -class DisableProcessorRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The processor resource name to be disabled. - * - * 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 processor resource name to be disabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The processor resource name to be disabled. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The processor resource name to be disabled. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorResponse.php deleted file mode 100644 index f1f15d776735..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DisableProcessorResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -google.cloud.documentai.v1.DisableProcessorResponse - */ -class DisableProcessorResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document.php deleted file mode 100644 index 7dc35121eda2..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document.php +++ /dev/null @@ -1,611 +0,0 @@ -google.cloud.documentai.v1.Document - */ -class Document extends \Google\Protobuf\Internal\Message -{ - /** - * An IANA published [media type (MIME - * type)](https://www.iana.org/assignments/media-types/media-types.xhtml). - * - * Generated from protobuf field string mime_type = 3; - */ - protected $mime_type = ''; - /** - * Optional. UTF-8 encoded text in reading order from the document. - * - * Generated from protobuf field string text = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $text = ''; - /** - * Styles for the [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Style text_styles = 5 [deprecated = true]; - * @deprecated - */ - private $text_styles; - /** - * Visual page layout for the [Document][google.cloud.documentai.v1.Document]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page pages = 6; - */ - private $pages; - /** - * A list of entities detected on - * [Document.text][google.cloud.documentai.v1.Document.text]. For document - * shards, entities in this list may cross shard boundaries. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Entity entities = 7; - */ - private $entities; - /** - * Placeholder. Relationship among - * [Document.entities][google.cloud.documentai.v1.Document.entities]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.EntityRelation entity_relations = 8; - */ - private $entity_relations; - /** - * Placeholder. A list of text corrections made to - * [Document.text][google.cloud.documentai.v1.Document.text]. This is usually - * used for annotating corrections to OCR mistakes. Text changes for a given - * revision may not overlap with each other. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.TextChange text_changes = 14; - */ - private $text_changes; - /** - * Information about the sharding if this document is sharded part of a larger - * document. If the document is not sharded, this message is not specified. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ShardInfo shard_info = 9; - */ - protected $shard_info = null; - /** - * Any error that occurred while processing this document. - * - * Generated from protobuf field .google.rpc.Status error = 10; - */ - protected $error = null; - /** - * Placeholder. Revision history of this document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Revision revisions = 13; - */ - private $revisions; - /** - * Parsed layout of the document. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout document_layout = 17; - */ - protected $document_layout = null; - /** - * Document chunked based on chunking config. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument chunked_document = 18; - */ - protected $chunked_document = null; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Optional. Currently supports Google Cloud Storage URI of the form - * `gs://bucket_name/object_name`. Object versioning is not supported. - * For more information, refer to [Google Cloud Storage Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). - * @type string $content - * Optional. Inline document content, represented as a stream of bytes. - * Note: As with all `bytes` fields, protobuffers use a pure binary - * representation, whereas JSON representations use base64. - * @type string $mime_type - * An IANA published [media type (MIME - * type)](https://www.iana.org/assignments/media-types/media-types.xhtml). - * @type string $text - * Optional. UTF-8 encoded text in reading order from the document. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Style>|\Google\Protobuf\Internal\RepeatedField $text_styles - * Styles for the [Document.text][google.cloud.documentai.v1.Document.text]. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page>|\Google\Protobuf\Internal\RepeatedField $pages - * Visual page layout for the [Document][google.cloud.documentai.v1.Document]. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Entity>|\Google\Protobuf\Internal\RepeatedField $entities - * A list of entities detected on - * [Document.text][google.cloud.documentai.v1.Document.text]. For document - * shards, entities in this list may cross shard boundaries. - * @type array<\Google\Cloud\DocumentAI\V1\Document\EntityRelation>|\Google\Protobuf\Internal\RepeatedField $entity_relations - * Placeholder. Relationship among - * [Document.entities][google.cloud.documentai.v1.Document.entities]. - * @type array<\Google\Cloud\DocumentAI\V1\Document\TextChange>|\Google\Protobuf\Internal\RepeatedField $text_changes - * Placeholder. A list of text corrections made to - * [Document.text][google.cloud.documentai.v1.Document.text]. This is usually - * used for annotating corrections to OCR mistakes. Text changes for a given - * revision may not overlap with each other. - * @type \Google\Cloud\DocumentAI\V1\Document\ShardInfo $shard_info - * Information about the sharding if this document is sharded part of a larger - * document. If the document is not sharded, this message is not specified. - * @type \Google\Rpc\Status $error - * Any error that occurred while processing this document. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Revision>|\Google\Protobuf\Internal\RepeatedField $revisions - * Placeholder. Revision history of this document. - * @type \Google\Cloud\DocumentAI\V1\Document\DocumentLayout $document_layout - * Parsed layout of the document. - * @type \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument $chunked_document - * Document chunked based on chunking config. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Currently supports Google Cloud Storage URI of the form - * `gs://bucket_name/object_name`. Object versioning is not supported. - * For more information, refer to [Google Cloud Storage Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getUri() - { - return $this->readOneof(1); - } - - public function hasUri() - { - return $this->hasOneof(1); - } - - /** - * Optional. Currently supports Google Cloud Storage URI of the form - * `gs://bucket_name/object_name`. Object versioning is not supported. - * For more information, refer to [Google Cloud Storage Request - * URIs](https://cloud.google.com/storage/docs/reference-uris). - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. Inline document content, represented as a stream of bytes. - * Note: As with all `bytes` fields, protobuffers use a pure binary - * representation, whereas JSON representations use base64. - * - * Generated from protobuf field bytes content = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getContent() - { - return $this->readOneof(2); - } - - public function hasContent() - { - return $this->hasOneof(2); - } - - /** - * Optional. Inline document content, represented as a stream of bytes. - * Note: As with all `bytes` fields, protobuffers use a pure binary - * representation, whereas JSON representations use base64. - * - * Generated from protobuf field bytes content = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * An IANA published [media type (MIME - * type)](https://www.iana.org/assignments/media-types/media-types.xhtml). - * - * Generated from protobuf field string mime_type = 3; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * An IANA published [media type (MIME - * type)](https://www.iana.org/assignments/media-types/media-types.xhtml). - * - * Generated from protobuf field string mime_type = 3; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * Optional. UTF-8 encoded text in reading order from the document. - * - * Generated from protobuf field string text = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Optional. UTF-8 encoded text in reading order from the document. - * - * Generated from protobuf field string text = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * Styles for the [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Style text_styles = 5 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getTextStyles() - { - @trigger_error('text_styles is deprecated.', E_USER_DEPRECATED); - return $this->text_styles; - } - - /** - * Styles for the [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Style text_styles = 5 [deprecated = true]; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Style>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setTextStyles($var) - { - @trigger_error('text_styles is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Style::class); - $this->text_styles = $arr; - - return $this; - } - - /** - * Visual page layout for the [Document][google.cloud.documentai.v1.Document]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page pages = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPages() - { - return $this->pages; - } - - /** - * Visual page layout for the [Document][google.cloud.documentai.v1.Document]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page pages = 6; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page::class); - $this->pages = $arr; - - return $this; - } - - /** - * A list of entities detected on - * [Document.text][google.cloud.documentai.v1.Document.text]. For document - * shards, entities in this list may cross shard boundaries. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Entity entities = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntities() - { - return $this->entities; - } - - /** - * A list of entities detected on - * [Document.text][google.cloud.documentai.v1.Document.text]. For document - * shards, entities in this list may cross shard boundaries. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Entity entities = 7; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Entity>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntities($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Entity::class); - $this->entities = $arr; - - return $this; - } - - /** - * Placeholder. Relationship among - * [Document.entities][google.cloud.documentai.v1.Document.entities]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.EntityRelation entity_relations = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntityRelations() - { - return $this->entity_relations; - } - - /** - * Placeholder. Relationship among - * [Document.entities][google.cloud.documentai.v1.Document.entities]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.EntityRelation entity_relations = 8; - * @param array<\Google\Cloud\DocumentAI\V1\Document\EntityRelation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntityRelations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\EntityRelation::class); - $this->entity_relations = $arr; - - return $this; - } - - /** - * Placeholder. A list of text corrections made to - * [Document.text][google.cloud.documentai.v1.Document.text]. This is usually - * used for annotating corrections to OCR mistakes. Text changes for a given - * revision may not overlap with each other. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.TextChange text_changes = 14; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTextChanges() - { - return $this->text_changes; - } - - /** - * Placeholder. A list of text corrections made to - * [Document.text][google.cloud.documentai.v1.Document.text]. This is usually - * used for annotating corrections to OCR mistakes. Text changes for a given - * revision may not overlap with each other. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.TextChange text_changes = 14; - * @param array<\Google\Cloud\DocumentAI\V1\Document\TextChange>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTextChanges($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\TextChange::class); - $this->text_changes = $arr; - - return $this; - } - - /** - * Information about the sharding if this document is sharded part of a larger - * document. If the document is not sharded, this message is not specified. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ShardInfo shard_info = 9; - * @return \Google\Cloud\DocumentAI\V1\Document\ShardInfo|null - */ - public function getShardInfo() - { - return $this->shard_info; - } - - public function hasShardInfo() - { - return isset($this->shard_info); - } - - public function clearShardInfo() - { - unset($this->shard_info); - } - - /** - * Information about the sharding if this document is sharded part of a larger - * document. If the document is not sharded, this message is not specified. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ShardInfo shard_info = 9; - * @param \Google\Cloud\DocumentAI\V1\Document\ShardInfo $var - * @return $this - */ - public function setShardInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\ShardInfo::class); - $this->shard_info = $var; - - return $this; - } - - /** - * Any error that occurred while processing this document. - * - * Generated from protobuf field .google.rpc.Status error = 10; - * @return \Google\Rpc\Status|null - */ - public function getError() - { - return $this->error; - } - - public function hasError() - { - return isset($this->error); - } - - public function clearError() - { - unset($this->error); - } - - /** - * Any error that occurred while processing this document. - * - * Generated from protobuf field .google.rpc.Status error = 10; - * @param \Google\Rpc\Status $var - * @return $this - */ - public function setError($var) - { - GPBUtil::checkMessage($var, \Google\Rpc\Status::class); - $this->error = $var; - - return $this; - } - - /** - * Placeholder. Revision history of this document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Revision revisions = 13; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRevisions() - { - return $this->revisions; - } - - /** - * Placeholder. Revision history of this document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Revision revisions = 13; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Revision>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRevisions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Revision::class); - $this->revisions = $arr; - - return $this; - } - - /** - * Parsed layout of the document. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout document_layout = 17; - * @return \Google\Cloud\DocumentAI\V1\Document\DocumentLayout|null - */ - public function getDocumentLayout() - { - return $this->document_layout; - } - - public function hasDocumentLayout() - { - return isset($this->document_layout); - } - - public function clearDocumentLayout() - { - unset($this->document_layout); - } - - /** - * Parsed layout of the document. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout document_layout = 17; - * @param \Google\Cloud\DocumentAI\V1\Document\DocumentLayout $var - * @return $this - */ - public function setDocumentLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout::class); - $this->document_layout = $var; - - return $this; - } - - /** - * Document chunked based on chunking config. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument chunked_document = 18; - * @return \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument|null - */ - public function getChunkedDocument() - { - return $this->chunked_document; - } - - public function hasChunkedDocument() - { - return isset($this->chunked_document); - } - - public function clearChunkedDocument() - { - unset($this->chunked_document); - } - - /** - * Document chunked based on chunking config. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument chunked_document = 18; - * @param \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument $var - * @return $this - */ - public function setChunkedDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument::class); - $this->chunked_document = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument.php deleted file mode 100644 index a99c77df458d..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.documentai.v1.Document.ChunkedDocument - */ -class ChunkedDocument extends \Google\Protobuf\Internal\Message -{ - /** - * List of chunks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1; - */ - private $chunks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk>|\Google\Protobuf\Internal\RepeatedField $chunks - * List of chunks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * List of chunks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChunks() - { - return $this->chunks; - } - - /** - * List of chunks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk chunks = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChunks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk::class); - $this->chunks = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkedDocument::class, \Google\Cloud\DocumentAI\V1\Document_ChunkedDocument::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk.php deleted file mode 100644 index e94f373bcc29..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk.php +++ /dev/null @@ -1,250 +0,0 @@ -google.cloud.documentai.v1.Document.ChunkedDocument.Chunk - */ -class Chunk extends \Google\Protobuf\Internal\Message -{ - /** - * ID of the chunk. - * - * Generated from protobuf field string chunk_id = 1; - */ - protected $chunk_id = ''; - /** - * Unused. - * - * Generated from protobuf field repeated string source_block_ids = 2; - */ - private $source_block_ids; - /** - * Text content of the chunk. - * - * Generated from protobuf field string content = 3; - */ - protected $content = ''; - /** - * Page span of the chunk. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4; - */ - protected $page_span = null; - /** - * Page headers associated with the chunk. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5; - */ - private $page_headers; - /** - * Page footers associated with the chunk. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6; - */ - private $page_footers; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $chunk_id - * ID of the chunk. - * @type array|\Google\Protobuf\Internal\RepeatedField $source_block_ids - * Unused. - * @type string $content - * Text content of the chunk. - * @type \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan $page_span - * Page span of the chunk. - * @type array<\Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageHeader>|\Google\Protobuf\Internal\RepeatedField $page_headers - * Page headers associated with the chunk. - * @type array<\Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageFooter>|\Google\Protobuf\Internal\RepeatedField $page_footers - * Page footers associated with the chunk. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * ID of the chunk. - * - * Generated from protobuf field string chunk_id = 1; - * @return string - */ - public function getChunkId() - { - return $this->chunk_id; - } - - /** - * ID of the chunk. - * - * Generated from protobuf field string chunk_id = 1; - * @param string $var - * @return $this - */ - public function setChunkId($var) - { - GPBUtil::checkString($var, True); - $this->chunk_id = $var; - - return $this; - } - - /** - * Unused. - * - * Generated from protobuf field repeated string source_block_ids = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSourceBlockIds() - { - return $this->source_block_ids; - } - - /** - * Unused. - * - * Generated from protobuf field repeated string source_block_ids = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSourceBlockIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->source_block_ids = $arr; - - return $this; - } - - /** - * Text content of the chunk. - * - * Generated from protobuf field string content = 3; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Text content of the chunk. - * - * Generated from protobuf field string content = 3; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, True); - $this->content = $var; - - return $this; - } - - /** - * Page span of the chunk. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4; - * @return \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan|null - */ - public function getPageSpan() - { - return $this->page_span; - } - - public function hasPageSpan() - { - return isset($this->page_span); - } - - public function clearPageSpan() - { - unset($this->page_span); - } - - /** - * Page span of the chunk. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 4; - * @param \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan $var - * @return $this - */ - public function setPageSpan($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan::class); - $this->page_span = $var; - - return $this; - } - - /** - * Page headers associated with the chunk. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPageHeaders() - { - return $this->page_headers; - } - - /** - * Page headers associated with the chunk. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader page_headers = 5; - * @param array<\Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageHeader>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPageHeaders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageHeader::class); - $this->page_headers = $arr; - - return $this; - } - - /** - * Page footers associated with the chunk. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPageFooters() - { - return $this->page_footers; - } - - /** - * Page footers associated with the chunk. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter page_footers = 6; - * @param array<\Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageFooter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPageFooters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageFooter::class); - $this->page_footers = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Chunk::class, \Google\Cloud\DocumentAI\V1\Document_ChunkedDocument_Chunk::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageFooter.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageFooter.php deleted file mode 100644 index 45bcf4550676..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageFooter.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageFooter - */ -class ChunkPageFooter extends \Google\Protobuf\Internal\Message -{ - /** - * Footer in text format. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * Page span of the footer. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 2; - */ - protected $page_span = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Footer in text format. - * @type \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan $page_span - * Page span of the footer. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Footer in text format. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Footer in text format. - * - * 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; - } - - /** - * Page span of the footer. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 2; - * @return \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan|null - */ - public function getPageSpan() - { - return $this->page_span; - } - - public function hasPageSpan() - { - return isset($this->page_span); - } - - public function clearPageSpan() - { - unset($this->page_span); - } - - /** - * Page span of the footer. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 2; - * @param \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan $var - * @return $this - */ - public function setPageSpan($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan::class); - $this->page_span = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkPageFooter::class, \Google\Cloud\DocumentAI\V1\Document_ChunkedDocument_Chunk_ChunkPageFooter::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageHeader.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageHeader.php deleted file mode 100644 index b6020d329863..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageHeader.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageHeader - */ -class ChunkPageHeader extends \Google\Protobuf\Internal\Message -{ - /** - * Header in text format. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * Page span of the header. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 2; - */ - protected $page_span = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Header in text format. - * @type \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan $page_span - * Page span of the header. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Header in text format. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Header in text format. - * - * 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; - } - - /** - * Page span of the header. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 2; - * @return \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan|null - */ - public function getPageSpan() - { - return $this->page_span; - } - - public function hasPageSpan() - { - return isset($this->page_span); - } - - public function clearPageSpan() - { - unset($this->page_span); - } - - /** - * Page span of the header. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan page_span = 2; - * @param \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan $var - * @return $this - */ - public function setPageSpan($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\ChunkedDocument\Chunk\ChunkPageSpan::class); - $this->page_span = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkPageHeader::class, \Google\Cloud\DocumentAI\V1\Document_ChunkedDocument_Chunk_ChunkPageHeader::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageSpan.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageSpan.php deleted file mode 100644 index 42705efd01b5..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ChunkedDocument/Chunk/ChunkPageSpan.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.documentai.v1.Document.ChunkedDocument.Chunk.ChunkPageSpan - */ -class ChunkPageSpan extends \Google\Protobuf\Internal\Message -{ - /** - * Page where chunk starts in the document. - * - * Generated from protobuf field int32 page_start = 1; - */ - protected $page_start = 0; - /** - * Page where chunk ends in the document. - * - * Generated from protobuf field int32 page_end = 2; - */ - protected $page_end = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_start - * Page where chunk starts in the document. - * @type int $page_end - * Page where chunk ends in the document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Page where chunk starts in the document. - * - * Generated from protobuf field int32 page_start = 1; - * @return int - */ - public function getPageStart() - { - return $this->page_start; - } - - /** - * Page where chunk starts in the document. - * - * Generated from protobuf field int32 page_start = 1; - * @param int $var - * @return $this - */ - public function setPageStart($var) - { - GPBUtil::checkInt32($var); - $this->page_start = $var; - - return $this; - } - - /** - * Page where chunk ends in the document. - * - * Generated from protobuf field int32 page_end = 2; - * @return int - */ - public function getPageEnd() - { - return $this->page_end; - } - - /** - * Page where chunk ends in the document. - * - * Generated from protobuf field int32 page_end = 2; - * @param int $var - * @return $this - */ - public function setPageEnd($var) - { - GPBUtil::checkInt32($var); - $this->page_end = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkPageSpan::class, \Google\Cloud\DocumentAI\V1\Document_ChunkedDocument_Chunk_ChunkPageSpan::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout.php deleted file mode 100644 index 9314561734fc..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.documentai.v1.Document.DocumentLayout - */ -class DocumentLayout extends \Google\Protobuf\Internal\Message -{ - /** - * List of blocks in the document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1; - */ - private $blocks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock>|\Google\Protobuf\Internal\RepeatedField $blocks - * List of blocks in the document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * List of blocks in the document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlocks() - { - return $this->blocks; - } - - /** - * List of blocks in the document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock::class); - $this->blocks = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DocumentLayout::class, \Google\Cloud\DocumentAI\V1\Document_DocumentLayout::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock.php deleted file mode 100644 index a7ccddccad7c..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock.php +++ /dev/null @@ -1,223 +0,0 @@ -google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock - */ -class DocumentLayoutBlock extends \Google\Protobuf\Internal\Message -{ - /** - * ID of the block. - * - * Generated from protobuf field string block_id = 1; - */ - protected $block_id = ''; - /** - * Page span of the block. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5; - */ - protected $page_span = null; - protected $block; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTextBlock $text_block - * Block consisting of text content. - * @type \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableBlock $table_block - * Block consisting of table content/structure. - * @type \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutListBlock $list_block - * Block consisting of list content/structure. - * @type string $block_id - * ID of the block. - * @type \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutPageSpan $page_span - * Page span of the block. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Block consisting of text content. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2; - * @return \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTextBlock|null - */ - public function getTextBlock() - { - return $this->readOneof(2); - } - - public function hasTextBlock() - { - return $this->hasOneof(2); - } - - /** - * Block consisting of text content. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock text_block = 2; - * @param \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTextBlock $var - * @return $this - */ - public function setTextBlock($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTextBlock::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Block consisting of table content/structure. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3; - * @return \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableBlock|null - */ - public function getTableBlock() - { - return $this->readOneof(3); - } - - public function hasTableBlock() - { - return $this->hasOneof(3); - } - - /** - * Block consisting of table content/structure. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock table_block = 3; - * @param \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableBlock $var - * @return $this - */ - public function setTableBlock($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableBlock::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Block consisting of list content/structure. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4; - * @return \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutListBlock|null - */ - public function getListBlock() - { - return $this->readOneof(4); - } - - public function hasListBlock() - { - return $this->hasOneof(4); - } - - /** - * Block consisting of list content/structure. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock list_block = 4; - * @param \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutListBlock $var - * @return $this - */ - public function setListBlock($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutListBlock::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * ID of the block. - * - * Generated from protobuf field string block_id = 1; - * @return string - */ - public function getBlockId() - { - return $this->block_id; - } - - /** - * ID of the block. - * - * Generated from protobuf field string block_id = 1; - * @param string $var - * @return $this - */ - public function setBlockId($var) - { - GPBUtil::checkString($var, True); - $this->block_id = $var; - - return $this; - } - - /** - * Page span of the block. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5; - * @return \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutPageSpan|null - */ - public function getPageSpan() - { - return $this->page_span; - } - - public function hasPageSpan() - { - return isset($this->page_span); - } - - public function clearPageSpan() - { - unset($this->page_span); - } - - /** - * Page span of the block. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan page_span = 5; - * @param \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutPageSpan $var - * @return $this - */ - public function setPageSpan($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutPageSpan::class); - $this->page_span = $var; - - return $this; - } - - /** - * @return string - */ - public function getBlock() - { - return $this->whichOneof("block"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DocumentLayoutBlock::class, \Google\Cloud\DocumentAI\V1\Document_DocumentLayout_DocumentLayoutBlock::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutListBlock.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutListBlock.php deleted file mode 100644 index 6c384415c569..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutListBlock.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListBlock - */ -class LayoutListBlock extends \Google\Protobuf\Internal\Message -{ - /** - * List entries that constitute a list block. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry list_entries = 1; - */ - private $list_entries; - /** - * Type of the list_entries (if exist). Available options are `ordered` - * and `unordered`. - * - * Generated from protobuf field string type = 2; - */ - protected $type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutListEntry>|\Google\Protobuf\Internal\RepeatedField $list_entries - * List entries that constitute a list block. - * @type string $type - * Type of the list_entries (if exist). Available options are `ordered` - * and `unordered`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * List entries that constitute a list block. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry list_entries = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getListEntries() - { - return $this->list_entries; - } - - /** - * List entries that constitute a list block. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry list_entries = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutListEntry>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setListEntries($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutListEntry::class); - $this->list_entries = $arr; - - return $this; - } - - /** - * Type of the list_entries (if exist). Available options are `ordered` - * and `unordered`. - * - * Generated from protobuf field string type = 2; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Type of the list_entries (if exist). Available options are `ordered` - * and `unordered`. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutListBlock::class, \Google\Cloud\DocumentAI\V1\Document_DocumentLayout_DocumentLayoutBlock_LayoutListBlock::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutListEntry.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutListEntry.php deleted file mode 100644 index 6cd2da2ccad8..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutListEntry.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutListEntry - */ -class LayoutListEntry extends \Google\Protobuf\Internal\Message -{ - /** - * A list entry is a list of blocks. - * Repeated blocks support further hierarchies and nested blocks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1; - */ - private $blocks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock>|\Google\Protobuf\Internal\RepeatedField $blocks - * A list entry is a list of blocks. - * Repeated blocks support further hierarchies and nested blocks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * A list entry is a list of blocks. - * Repeated blocks support further hierarchies and nested blocks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlocks() - { - return $this->blocks; - } - - /** - * A list entry is a list of blocks. - * Repeated blocks support further hierarchies and nested blocks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock::class); - $this->blocks = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutListEntry::class, \Google\Cloud\DocumentAI\V1\Document_DocumentLayout_DocumentLayoutBlock_LayoutListEntry::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutPageSpan.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutPageSpan.php deleted file mode 100644 index 98f1c810beb9..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutPageSpan.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutPageSpan - */ -class LayoutPageSpan extends \Google\Protobuf\Internal\Message -{ - /** - * Page where block starts in the document. - * - * Generated from protobuf field int32 page_start = 1; - */ - protected $page_start = 0; - /** - * Page where block ends in the document. - * - * Generated from protobuf field int32 page_end = 2; - */ - protected $page_end = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_start - * Page where block starts in the document. - * @type int $page_end - * Page where block ends in the document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Page where block starts in the document. - * - * Generated from protobuf field int32 page_start = 1; - * @return int - */ - public function getPageStart() - { - return $this->page_start; - } - - /** - * Page where block starts in the document. - * - * Generated from protobuf field int32 page_start = 1; - * @param int $var - * @return $this - */ - public function setPageStart($var) - { - GPBUtil::checkInt32($var); - $this->page_start = $var; - - return $this; - } - - /** - * Page where block ends in the document. - * - * Generated from protobuf field int32 page_end = 2; - * @return int - */ - public function getPageEnd() - { - return $this->page_end; - } - - /** - * Page where block ends in the document. - * - * Generated from protobuf field int32 page_end = 2; - * @param int $var - * @return $this - */ - public function setPageEnd($var) - { - GPBUtil::checkInt32($var); - $this->page_end = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutPageSpan::class, \Google\Cloud\DocumentAI\V1\Document_DocumentLayout_DocumentLayoutBlock_LayoutPageSpan::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableBlock.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableBlock.php deleted file mode 100644 index b3236907b08d..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableBlock.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableBlock - */ -class LayoutTableBlock extends \Google\Protobuf\Internal\Message -{ - /** - * Header rows at the top of the table. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow header_rows = 1; - */ - private $header_rows; - /** - * Body rows containing main table content. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow body_rows = 2; - */ - private $body_rows; - /** - * Table caption/title. - * - * Generated from protobuf field string caption = 3; - */ - protected $caption = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableRow>|\Google\Protobuf\Internal\RepeatedField $header_rows - * Header rows at the top of the table. - * @type array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableRow>|\Google\Protobuf\Internal\RepeatedField $body_rows - * Body rows containing main table content. - * @type string $caption - * Table caption/title. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Header rows at the top of the table. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow header_rows = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHeaderRows() - { - return $this->header_rows; - } - - /** - * Header rows at the top of the table. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow header_rows = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHeaderRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableRow::class); - $this->header_rows = $arr; - - return $this; - } - - /** - * Body rows containing main table content. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow body_rows = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBodyRows() - { - return $this->body_rows; - } - - /** - * Body rows containing main table content. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow body_rows = 2; - * @param array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBodyRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableRow::class); - $this->body_rows = $arr; - - return $this; - } - - /** - * Table caption/title. - * - * Generated from protobuf field string caption = 3; - * @return string - */ - public function getCaption() - { - return $this->caption; - } - - /** - * Table caption/title. - * - * Generated from protobuf field string caption = 3; - * @param string $var - * @return $this - */ - public function setCaption($var) - { - GPBUtil::checkString($var, True); - $this->caption = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutTableBlock::class, \Google\Cloud\DocumentAI\V1\Document_DocumentLayout_DocumentLayoutBlock_LayoutTableBlock::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableCell.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableCell.php deleted file mode 100644 index 7524382420ad..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableCell.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell - */ -class LayoutTableCell extends \Google\Protobuf\Internal\Message -{ - /** - * A table cell is a list of blocks. - * Repeated blocks support further hierarchies and nested blocks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1; - */ - private $blocks; - /** - * How many rows this cell spans. - * - * Generated from protobuf field int32 row_span = 2; - */ - protected $row_span = 0; - /** - * How many columns this cell spans. - * - * Generated from protobuf field int32 col_span = 3; - */ - protected $col_span = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock>|\Google\Protobuf\Internal\RepeatedField $blocks - * A table cell is a list of blocks. - * Repeated blocks support further hierarchies and nested blocks. - * @type int $row_span - * How many rows this cell spans. - * @type int $col_span - * How many columns this cell spans. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * A table cell is a list of blocks. - * Repeated blocks support further hierarchies and nested blocks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlocks() - { - return $this->blocks; - } - - /** - * A table cell is a list of blocks. - * Repeated blocks support further hierarchies and nested blocks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock::class); - $this->blocks = $arr; - - return $this; - } - - /** - * How many rows this cell spans. - * - * Generated from protobuf field int32 row_span = 2; - * @return int - */ - public function getRowSpan() - { - return $this->row_span; - } - - /** - * How many rows this cell spans. - * - * Generated from protobuf field int32 row_span = 2; - * @param int $var - * @return $this - */ - public function setRowSpan($var) - { - GPBUtil::checkInt32($var); - $this->row_span = $var; - - return $this; - } - - /** - * How many columns this cell spans. - * - * Generated from protobuf field int32 col_span = 3; - * @return int - */ - public function getColSpan() - { - return $this->col_span; - } - - /** - * How many columns this cell spans. - * - * Generated from protobuf field int32 col_span = 3; - * @param int $var - * @return $this - */ - public function setColSpan($var) - { - GPBUtil::checkInt32($var); - $this->col_span = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutTableCell::class, \Google\Cloud\DocumentAI\V1\Document_DocumentLayout_DocumentLayoutBlock_LayoutTableCell::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableRow.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableRow.php deleted file mode 100644 index 93ace2a1d069..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTableRow.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableRow - */ -class LayoutTableRow extends \Google\Protobuf\Internal\Message -{ - /** - * A table row is a list of table cells. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell cells = 1; - */ - private $cells; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableCell>|\Google\Protobuf\Internal\RepeatedField $cells - * A table row is a list of table cells. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * A table row is a list of table cells. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell cells = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCells() - { - return $this->cells; - } - - /** - * A table row is a list of table cells. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTableCell cells = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableCell>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCells($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock\LayoutTableCell::class); - $this->cells = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutTableRow::class, \Google\Cloud\DocumentAI\V1\Document_DocumentLayout_DocumentLayoutBlock_LayoutTableRow::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTextBlock.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTextBlock.php deleted file mode 100644 index e952d9e11f97..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/DocumentLayout/DocumentLayoutBlock/LayoutTextBlock.php +++ /dev/null @@ -1,150 +0,0 @@ -google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock.LayoutTextBlock - */ -class LayoutTextBlock extends \Google\Protobuf\Internal\Message -{ - /** - * Text content stored in the block. - * - * Generated from protobuf field string text = 1; - */ - protected $text = ''; - /** - * Type of the text in the block. Available options are: `paragraph`, - * `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, - * `heading-5`, `header`, `footer`. - * - * Generated from protobuf field string type = 2; - */ - protected $type = ''; - /** - * A text block could further have child blocks. - * Repeated blocks support further hierarchies and nested blocks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; - */ - private $blocks; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $text - * Text content stored in the block. - * @type string $type - * Type of the text in the block. Available options are: `paragraph`, - * `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, - * `heading-5`, `header`, `footer`. - * @type array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock>|\Google\Protobuf\Internal\RepeatedField $blocks - * A text block could further have child blocks. - * Repeated blocks support further hierarchies and nested blocks. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Text content stored in the block. - * - * Generated from protobuf field string text = 1; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Text content stored in the block. - * - * 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; - } - - /** - * Type of the text in the block. Available options are: `paragraph`, - * `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, - * `heading-5`, `header`, `footer`. - * - * Generated from protobuf field string type = 2; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Type of the text in the block. Available options are: `paragraph`, - * `subtitle`, `heading-1`, `heading-2`, `heading-3`, `heading-4`, - * `heading-5`, `header`, `footer`. - * - * 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; - } - - /** - * A text block could further have child blocks. - * Repeated blocks support further hierarchies and nested blocks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlocks() - { - return $this->blocks; - } - - /** - * A text block could further have child blocks. - * Repeated blocks support further hierarchies and nested blocks. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.DocumentLayout.DocumentLayoutBlock blocks = 3; - * @param array<\Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\DocumentLayout\DocumentLayoutBlock::class); - $this->blocks = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutTextBlock::class, \Google\Cloud\DocumentAI\V1\Document_DocumentLayout_DocumentLayoutBlock_LayoutTextBlock::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Entity.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Entity.php deleted file mode 100644 index b8ace41a89a5..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Entity.php +++ /dev/null @@ -1,488 +0,0 @@ -google.cloud.documentai.v1.Document.Entity - */ -class Entity extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Provenance of the entity. - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $text_anchor = null; - /** - * Required. Entity type from a schema e.g. `Address`. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = ''; - /** - * Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. - * - * Generated from protobuf field string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $mention_text = ''; - /** - * Optional. Deprecated. Use `id` field instead. - * - * Generated from protobuf field string mention_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $mention_id = ''; - /** - * Optional. Confidence of detected Schema entity. Range `[0, 1]`. - * - * Generated from protobuf field float confidence = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $confidence = 0.0; - /** - * Optional. Represents the provenance of this entity wrt. the location on - * the page where it was found. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_anchor = null; - /** - * Optional. Canonical id. This will be a unique value in the entity list - * for this document. - * - * Generated from protobuf field string id = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $id = ''; - /** - * Optional. Normalized entity value. Absent if the extracted value could - * not be converted or the type (e.g. address) is not supported for certain - * parsers. This field is also only populated for certain supported document - * types. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $normalized_value = null; - /** - * Optional. Entities can be nested to form a hierarchical data structure - * representing the content in the document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $properties; - /** - * Optional. The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $provenance = null; - /** - * Optional. Whether the entity will be redacted for de-identification - * purposes. - * - * Generated from protobuf field bool redacted = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $redacted = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\TextAnchor $text_anchor - * Optional. Provenance of the entity. - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * @type string $type - * Required. Entity type from a schema e.g. `Address`. - * @type string $mention_text - * Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. - * @type string $mention_id - * Optional. Deprecated. Use `id` field instead. - * @type float $confidence - * Optional. Confidence of detected Schema entity. Range `[0, 1]`. - * @type \Google\Cloud\DocumentAI\V1\Document\PageAnchor $page_anchor - * Optional. Represents the provenance of this entity wrt. the location on - * the page where it was found. - * @type string $id - * Optional. Canonical id. This will be a unique value in the entity list - * for this document. - * @type \Google\Cloud\DocumentAI\V1\Document\Entity\NormalizedValue $normalized_value - * Optional. Normalized entity value. Absent if the extracted value could - * not be converted or the type (e.g. address) is not supported for certain - * parsers. This field is also only populated for certain supported document - * types. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Entity>|\Google\Protobuf\Internal\RepeatedField $properties - * Optional. Entities can be nested to form a hierarchical data structure - * representing the content in the document. - * @type \Google\Cloud\DocumentAI\V1\Document\Provenance $provenance - * Optional. The history of this annotation. - * @type bool $redacted - * Optional. Whether the entity will be redacted for de-identification - * purposes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Provenance of the entity. - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\Document\TextAnchor|null - */ - public function getTextAnchor() - { - return $this->text_anchor; - } - - public function hasTextAnchor() - { - return isset($this->text_anchor); - } - - public function clearTextAnchor() - { - unset($this->text_anchor); - } - - /** - * Optional. Provenance of the entity. - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\Document\TextAnchor $var - * @return $this - */ - public function setTextAnchor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\TextAnchor::class); - $this->text_anchor = $var; - - return $this; - } - - /** - * Required. Entity type from a schema e.g. `Address`. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Required. Entity type from a schema e.g. `Address`. - * - * Generated from protobuf field string type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. - * - * Generated from protobuf field string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMentionText() - { - return $this->mention_text; - } - - /** - * Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`. - * - * Generated from protobuf field string mention_text = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMentionText($var) - { - GPBUtil::checkString($var, True); - $this->mention_text = $var; - - return $this; - } - - /** - * Optional. Deprecated. Use `id` field instead. - * - * Generated from protobuf field string mention_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMentionId() - { - return $this->mention_id; - } - - /** - * Optional. Deprecated. Use `id` field instead. - * - * Generated from protobuf field string mention_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMentionId($var) - { - GPBUtil::checkString($var, True); - $this->mention_id = $var; - - return $this; - } - - /** - * Optional. Confidence of detected Schema entity. Range `[0, 1]`. - * - * Generated from protobuf field float confidence = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getConfidence() - { - return $this->confidence; - } - - /** - * Optional. Confidence of detected Schema entity. Range `[0, 1]`. - * - * Generated from protobuf field float confidence = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setConfidence($var) - { - GPBUtil::checkFloat($var); - $this->confidence = $var; - - return $this; - } - - /** - * Optional. Represents the provenance of this entity wrt. the location on - * the page where it was found. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\Document\PageAnchor|null - */ - public function getPageAnchor() - { - return $this->page_anchor; - } - - public function hasPageAnchor() - { - return isset($this->page_anchor); - } - - public function clearPageAnchor() - { - unset($this->page_anchor); - } - - /** - * Optional. Represents the provenance of this entity wrt. the location on - * the page where it was found. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.PageAnchor page_anchor = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\Document\PageAnchor $var - * @return $this - */ - public function setPageAnchor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\PageAnchor::class); - $this->page_anchor = $var; - - return $this; - } - - /** - * Optional. Canonical id. This will be a unique value in the entity list - * for this document. - * - * Generated from protobuf field string id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Optional. Canonical id. This will be a unique value in the entity list - * for this document. - * - * Generated from protobuf field string id = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Optional. Normalized entity value. Absent if the extracted value could - * not be converted or the type (e.g. address) is not supported for certain - * parsers. This field is also only populated for certain supported document - * types. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\Document\Entity\NormalizedValue|null - */ - public function getNormalizedValue() - { - return $this->normalized_value; - } - - public function hasNormalizedValue() - { - return isset($this->normalized_value); - } - - public function clearNormalizedValue() - { - unset($this->normalized_value); - } - - /** - * Optional. Normalized entity value. Absent if the extracted value could - * not be converted or the type (e.g. address) is not supported for certain - * parsers. This field is also only populated for certain supported document - * types. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Entity.NormalizedValue normalized_value = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\Document\Entity\NormalizedValue $var - * @return $this - */ - public function setNormalizedValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Entity\NormalizedValue::class); - $this->normalized_value = $var; - - return $this; - } - - /** - * Optional. Entities can be nested to form a hierarchical data structure - * representing the content in the document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Optional. Entities can be nested to form a hierarchical data structure - * representing the content in the document. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Entity properties = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Entity>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Entity::class); - $this->properties = $arr; - - return $this; - } - - /** - * Optional. The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\Document\Provenance|null - */ - public function getProvenance() - { - return $this->provenance; - } - - public function hasProvenance() - { - return isset($this->provenance); - } - - public function clearProvenance() - { - unset($this->provenance); - } - - /** - * Optional. The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\Document\Provenance $var - * @return $this - */ - public function setProvenance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Provenance::class); - $this->provenance = $var; - - return $this; - } - - /** - * Optional. Whether the entity will be redacted for de-identification - * purposes. - * - * Generated from protobuf field bool redacted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getRedacted() - { - return $this->redacted; - } - - /** - * Optional. Whether the entity will be redacted for de-identification - * purposes. - * - * Generated from protobuf field bool redacted = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setRedacted($var) - { - GPBUtil::checkBool($var); - $this->redacted = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Entity::class, \Google\Cloud\DocumentAI\V1\Document_Entity::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Entity/NormalizedValue.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Entity/NormalizedValue.php deleted file mode 100644 index d6f086a4508c..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Entity/NormalizedValue.php +++ /dev/null @@ -1,357 +0,0 @@ -google.cloud.documentai.v1.Document.Entity.NormalizedValue - */ -class NormalizedValue extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. An optional field to store a normalized string. - * For some entity types, one of respective `structured_value` fields may - * also be populated. Also not all the types of `structured_value` will be - * normalized. For example, some processors may not generate `float` - * or `integer` normalized text by default. - * Below are sample formats mapped to structured values. - * - Money/Currency type (`money_value`) is in the ISO 4217 text format. - * - Date type (`date_value`) is in the ISO 8601 text format. - * - Datetime type (`datetime_value`) is in the ISO 8601 text format. - * - * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $text = ''; - protected $structured_value; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\Money $money_value - * Money value. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/money.proto - * @type \Google\Type\Date $date_value - * Date value. Includes year, month, day. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/date.proto - * @type \Google\Type\DateTime $datetime_value - * DateTime value. Includes date, time, and timezone. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto - * @type \Google\Type\PostalAddress $address_value - * Postal address. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto - * @type bool $boolean_value - * Boolean value. Can be used for entities with binary values, or for - * checkboxes. - * @type int $integer_value - * Integer value. - * @type float $float_value - * Float value. - * @type string $text - * Optional. An optional field to store a normalized string. - * For some entity types, one of respective `structured_value` fields may - * also be populated. Also not all the types of `structured_value` will be - * normalized. For example, some processors may not generate `float` - * or `integer` normalized text by default. - * Below are sample formats mapped to structured values. - * - Money/Currency type (`money_value`) is in the ISO 4217 text format. - * - Date type (`date_value`) is in the ISO 8601 text format. - * - Datetime type (`datetime_value`) is in the ISO 8601 text format. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Money value. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/money.proto - * - * Generated from protobuf field .google.type.Money money_value = 2; - * @return \Google\Type\Money|null - */ - public function getMoneyValue() - { - return $this->readOneof(2); - } - - public function hasMoneyValue() - { - return $this->hasOneof(2); - } - - /** - * Money value. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/money.proto - * - * Generated from protobuf field .google.type.Money money_value = 2; - * @param \Google\Type\Money $var - * @return $this - */ - public function setMoneyValue($var) - { - GPBUtil::checkMessage($var, \Google\Type\Money::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Date value. Includes year, month, day. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/date.proto - * - * Generated from protobuf field .google.type.Date date_value = 3; - * @return \Google\Type\Date|null - */ - public function getDateValue() - { - return $this->readOneof(3); - } - - public function hasDateValue() - { - return $this->hasOneof(3); - } - - /** - * Date value. Includes year, month, day. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/date.proto - * - * Generated from protobuf field .google.type.Date date_value = 3; - * @param \Google\Type\Date $var - * @return $this - */ - public function setDateValue($var) - { - GPBUtil::checkMessage($var, \Google\Type\Date::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * DateTime value. Includes date, time, and timezone. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto - * - * Generated from protobuf field .google.type.DateTime datetime_value = 4; - * @return \Google\Type\DateTime|null - */ - public function getDatetimeValue() - { - return $this->readOneof(4); - } - - public function hasDatetimeValue() - { - return $this->hasOneof(4); - } - - /** - * DateTime value. Includes date, time, and timezone. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto - * - * Generated from protobuf field .google.type.DateTime datetime_value = 4; - * @param \Google\Type\DateTime $var - * @return $this - */ - public function setDatetimeValue($var) - { - GPBUtil::checkMessage($var, \Google\Type\DateTime::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Postal address. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto - * - * Generated from protobuf field .google.type.PostalAddress address_value = 5; - * @return \Google\Type\PostalAddress|null - */ - public function getAddressValue() - { - return $this->readOneof(5); - } - - public function hasAddressValue() - { - return $this->hasOneof(5); - } - - /** - * Postal address. See also: - * https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto - * - * Generated from protobuf field .google.type.PostalAddress address_value = 5; - * @param \Google\Type\PostalAddress $var - * @return $this - */ - public function setAddressValue($var) - { - GPBUtil::checkMessage($var, \Google\Type\PostalAddress::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Boolean value. Can be used for entities with binary values, or for - * checkboxes. - * - * Generated from protobuf field bool boolean_value = 6; - * @return bool - */ - public function getBooleanValue() - { - return $this->readOneof(6); - } - - public function hasBooleanValue() - { - return $this->hasOneof(6); - } - - /** - * Boolean value. Can be used for entities with binary values, or for - * checkboxes. - * - * Generated from protobuf field bool boolean_value = 6; - * @param bool $var - * @return $this - */ - public function setBooleanValue($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Integer value. - * - * Generated from protobuf field int32 integer_value = 7; - * @return int - */ - public function getIntegerValue() - { - return $this->readOneof(7); - } - - public function hasIntegerValue() - { - return $this->hasOneof(7); - } - - /** - * Integer value. - * - * Generated from protobuf field int32 integer_value = 7; - * @param int $var - * @return $this - */ - public function setIntegerValue($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Float value. - * - * Generated from protobuf field float float_value = 8; - * @return float - */ - public function getFloatValue() - { - return $this->readOneof(8); - } - - public function hasFloatValue() - { - return $this->hasOneof(8); - } - - /** - * Float value. - * - * Generated from protobuf field float float_value = 8; - * @param float $var - * @return $this - */ - public function setFloatValue($var) - { - GPBUtil::checkFloat($var); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Optional. An optional field to store a normalized string. - * For some entity types, one of respective `structured_value` fields may - * also be populated. Also not all the types of `structured_value` will be - * normalized. For example, some processors may not generate `float` - * or `integer` normalized text by default. - * Below are sample formats mapped to structured values. - * - Money/Currency type (`money_value`) is in the ISO 4217 text format. - * - Date type (`date_value`) is in the ISO 8601 text format. - * - Datetime type (`datetime_value`) is in the ISO 8601 text format. - * - * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getText() - { - return $this->text; - } - - /** - * Optional. An optional field to store a normalized string. - * For some entity types, one of respective `structured_value` fields may - * also be populated. Also not all the types of `structured_value` will be - * normalized. For example, some processors may not generate `float` - * or `integer` normalized text by default. - * Below are sample formats mapped to structured values. - * - Money/Currency type (`money_value`) is in the ISO 4217 text format. - * - Date type (`date_value`) is in the ISO 8601 text format. - * - Datetime type (`datetime_value`) is in the ISO 8601 text format. - * - * Generated from protobuf field string text = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setText($var) - { - GPBUtil::checkString($var, True); - $this->text = $var; - - return $this; - } - - /** - * @return string - */ - public function getStructuredValue() - { - return $this->whichOneof("structured_value"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NormalizedValue::class, \Google\Cloud\DocumentAI\V1\Document_Entity_NormalizedValue::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/EntityRelation.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/EntityRelation.php deleted file mode 100644 index ba0880d70ebd..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/EntityRelation.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.documentai.v1.Document.EntityRelation - */ -class EntityRelation extends \Google\Protobuf\Internal\Message -{ - /** - * Subject entity id. - * - * Generated from protobuf field string subject_id = 1; - */ - protected $subject_id = ''; - /** - * Object entity id. - * - * Generated from protobuf field string object_id = 2; - */ - protected $object_id = ''; - /** - * Relationship description. - * - * Generated from protobuf field string relation = 3; - */ - protected $relation = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $subject_id - * Subject entity id. - * @type string $object_id - * Object entity id. - * @type string $relation - * Relationship description. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Subject entity id. - * - * Generated from protobuf field string subject_id = 1; - * @return string - */ - public function getSubjectId() - { - return $this->subject_id; - } - - /** - * Subject entity id. - * - * Generated from protobuf field string subject_id = 1; - * @param string $var - * @return $this - */ - public function setSubjectId($var) - { - GPBUtil::checkString($var, True); - $this->subject_id = $var; - - return $this; - } - - /** - * Object entity id. - * - * Generated from protobuf field string object_id = 2; - * @return string - */ - public function getObjectId() - { - return $this->object_id; - } - - /** - * Object entity id. - * - * Generated from protobuf field string object_id = 2; - * @param string $var - * @return $this - */ - public function setObjectId($var) - { - GPBUtil::checkString($var, True); - $this->object_id = $var; - - return $this; - } - - /** - * Relationship description. - * - * Generated from protobuf field string relation = 3; - * @return string - */ - public function getRelation() - { - return $this->relation; - } - - /** - * Relationship description. - * - * Generated from protobuf field string relation = 3; - * @param string $var - * @return $this - */ - public function setRelation($var) - { - GPBUtil::checkString($var, True); - $this->relation = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EntityRelation::class, \Google\Cloud\DocumentAI\V1\Document_EntityRelation::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page.php deleted file mode 100644 index 34e47ccab957..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page.php +++ /dev/null @@ -1,719 +0,0 @@ -google.cloud.documentai.v1.Document.Page - */ -class Page extends \Google\Protobuf\Internal\Message -{ - /** - * 1-based index for current - * [Page][google.cloud.documentai.v1.Document.Page] in a parent - * [Document][google.cloud.documentai.v1.Document]. Useful when a page is - * taken out of a [Document][google.cloud.documentai.v1.Document] for - * individual processing. - * - * Generated from protobuf field int32 page_number = 1; - */ - protected $page_number = 0; - /** - * Rendered image for this page. This image is preprocessed to remove any - * skew, rotation, and distortions such that the annotation bounding boxes - * can be upright and axis-aligned. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Image image = 13; - */ - protected $image = null; - /** - * Transformation matrices that were applied to the original document image - * to produce [Page.image][google.cloud.documentai.v1.Document.Page.image]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Matrix transforms = 14; - */ - private $transforms; - /** - * Physical dimension of the page. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Dimension dimension = 2; - */ - protected $dimension = null; - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 3; - */ - protected $layout = null; - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4; - */ - private $detected_languages; - /** - * A list of visually detected text blocks on the page. - * A block has a set of lines (collected into paragraphs) that have a common - * line-spacing and orientation. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Block blocks = 5; - */ - private $blocks; - /** - * A list of visually detected text paragraphs on the page. - * A collection of lines that a human would perceive as a paragraph. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Paragraph paragraphs = 6; - */ - private $paragraphs; - /** - * A list of visually detected text lines on the page. - * A collection of tokens that a human would perceive as a line. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Line lines = 7; - */ - private $lines; - /** - * A list of visually detected tokens on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Token tokens = 8; - */ - private $tokens; - /** - * A list of detected non-text visual elements e.g. checkbox, - * signature etc. on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9; - */ - private $visual_elements; - /** - * A list of visually detected tables on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table tables = 10; - */ - private $tables; - /** - * A list of visually detected form fields on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.FormField form_fields = 11; - */ - private $form_fields; - /** - * A list of visually detected symbols on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Symbol symbols = 12; - */ - private $symbols; - /** - * A list of detected barcodes. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedBarcode detected_barcodes = 15; - */ - private $detected_barcodes; - /** - * Image quality scores. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17; - */ - protected $image_quality_scores = null; - /** - * The history of this page. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 16 [deprecated = true]; - * @deprecated - */ - protected $provenance = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $page_number - * 1-based index for current - * [Page][google.cloud.documentai.v1.Document.Page] in a parent - * [Document][google.cloud.documentai.v1.Document]. Useful when a page is - * taken out of a [Document][google.cloud.documentai.v1.Document] for - * individual processing. - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Image $image - * Rendered image for this page. This image is preprocessed to remove any - * skew, rotation, and distortions such that the annotation bounding boxes - * can be upright and axis-aligned. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Matrix>|\Google\Protobuf\Internal\RepeatedField $transforms - * Transformation matrices that were applied to the original document image - * to produce [Page.image][google.cloud.documentai.v1.Document.Page.image]. - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Dimension $dimension - * Physical dimension of the page. - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $layout - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $detected_languages - * A list of detected languages together with confidence. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Block>|\Google\Protobuf\Internal\RepeatedField $blocks - * A list of visually detected text blocks on the page. - * A block has a set of lines (collected into paragraphs) that have a common - * line-spacing and orientation. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Paragraph>|\Google\Protobuf\Internal\RepeatedField $paragraphs - * A list of visually detected text paragraphs on the page. - * A collection of lines that a human would perceive as a paragraph. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Line>|\Google\Protobuf\Internal\RepeatedField $lines - * A list of visually detected text lines on the page. - * A collection of tokens that a human would perceive as a line. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Token>|\Google\Protobuf\Internal\RepeatedField $tokens - * A list of visually detected tokens on the page. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\VisualElement>|\Google\Protobuf\Internal\RepeatedField $visual_elements - * A list of detected non-text visual elements e.g. checkbox, - * signature etc. on the page. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Table>|\Google\Protobuf\Internal\RepeatedField $tables - * A list of visually detected tables on the page. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\FormField>|\Google\Protobuf\Internal\RepeatedField $form_fields - * A list of visually detected form fields on the page. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Symbol>|\Google\Protobuf\Internal\RepeatedField $symbols - * A list of visually detected symbols on the page. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedBarcode>|\Google\Protobuf\Internal\RepeatedField $detected_barcodes - * A list of detected barcodes. - * @type \Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores $image_quality_scores - * Image quality scores. - * @type \Google\Cloud\DocumentAI\V1\Document\Provenance $provenance - * The history of this page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * 1-based index for current - * [Page][google.cloud.documentai.v1.Document.Page] in a parent - * [Document][google.cloud.documentai.v1.Document]. Useful when a page is - * taken out of a [Document][google.cloud.documentai.v1.Document] for - * individual processing. - * - * Generated from protobuf field int32 page_number = 1; - * @return int - */ - public function getPageNumber() - { - return $this->page_number; - } - - /** - * 1-based index for current - * [Page][google.cloud.documentai.v1.Document.Page] in a parent - * [Document][google.cloud.documentai.v1.Document]. Useful when a page is - * taken out of a [Document][google.cloud.documentai.v1.Document] for - * individual processing. - * - * Generated from protobuf field int32 page_number = 1; - * @param int $var - * @return $this - */ - public function setPageNumber($var) - { - GPBUtil::checkInt32($var); - $this->page_number = $var; - - return $this; - } - - /** - * Rendered image for this page. This image is preprocessed to remove any - * skew, rotation, and distortions such that the annotation bounding boxes - * can be upright and axis-aligned. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Image image = 13; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Image|null - */ - public function getImage() - { - return $this->image; - } - - public function hasImage() - { - return isset($this->image); - } - - public function clearImage() - { - unset($this->image); - } - - /** - * Rendered image for this page. This image is preprocessed to remove any - * skew, rotation, and distortions such that the annotation bounding boxes - * can be upright and axis-aligned. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Image image = 13; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Image $var - * @return $this - */ - public function setImage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Image::class); - $this->image = $var; - - return $this; - } - - /** - * Transformation matrices that were applied to the original document image - * to produce [Page.image][google.cloud.documentai.v1.Document.Page.image]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Matrix transforms = 14; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTransforms() - { - return $this->transforms; - } - - /** - * Transformation matrices that were applied to the original document image - * to produce [Page.image][google.cloud.documentai.v1.Document.Page.image]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Matrix transforms = 14; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Matrix>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTransforms($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Matrix::class); - $this->transforms = $arr; - - return $this; - } - - /** - * Physical dimension of the page. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Dimension dimension = 2; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Dimension|null - */ - public function getDimension() - { - return $this->dimension; - } - - public function hasDimension() - { - return isset($this->dimension); - } - - public function clearDimension() - { - unset($this->dimension); - } - - /** - * Physical dimension of the page. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Dimension dimension = 2; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Dimension $var - * @return $this - */ - public function setDimension($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Dimension::class); - $this->dimension = $var; - - return $this; - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 3; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getLayout() - { - return $this->layout; - } - - public function hasLayout() - { - return isset($this->layout); - } - - public function clearLayout() - { - unset($this->layout); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the page. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 3; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedLanguages() - { - return $this->detected_languages; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->detected_languages = $arr; - - return $this; - } - - /** - * A list of visually detected text blocks on the page. - * A block has a set of lines (collected into paragraphs) that have a common - * line-spacing and orientation. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Block blocks = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBlocks() - { - return $this->blocks; - } - - /** - * A list of visually detected text blocks on the page. - * A block has a set of lines (collected into paragraphs) that have a common - * line-spacing and orientation. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Block blocks = 5; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Block>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBlocks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Block::class); - $this->blocks = $arr; - - return $this; - } - - /** - * A list of visually detected text paragraphs on the page. - * A collection of lines that a human would perceive as a paragraph. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Paragraph paragraphs = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParagraphs() - { - return $this->paragraphs; - } - - /** - * A list of visually detected text paragraphs on the page. - * A collection of lines that a human would perceive as a paragraph. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Paragraph paragraphs = 6; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Paragraph>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParagraphs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Paragraph::class); - $this->paragraphs = $arr; - - return $this; - } - - /** - * A list of visually detected text lines on the page. - * A collection of tokens that a human would perceive as a line. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Line lines = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLines() - { - return $this->lines; - } - - /** - * A list of visually detected text lines on the page. - * A collection of tokens that a human would perceive as a line. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Line lines = 7; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Line>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLines($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Line::class); - $this->lines = $arr; - - return $this; - } - - /** - * A list of visually detected tokens on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Token tokens = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTokens() - { - return $this->tokens; - } - - /** - * A list of visually detected tokens on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Token tokens = 8; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Token>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTokens($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Token::class); - $this->tokens = $arr; - - return $this; - } - - /** - * A list of detected non-text visual elements e.g. checkbox, - * signature etc. on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getVisualElements() - { - return $this->visual_elements; - } - - /** - * A list of detected non-text visual elements e.g. checkbox, - * signature etc. on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.VisualElement visual_elements = 9; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\VisualElement>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setVisualElements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\VisualElement::class); - $this->visual_elements = $arr; - - return $this; - } - - /** - * A list of visually detected tables on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table tables = 10; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTables() - { - return $this->tables; - } - - /** - * A list of visually detected tables on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table tables = 10; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Table>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTables($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Table::class); - $this->tables = $arr; - - return $this; - } - - /** - * A list of visually detected form fields on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.FormField form_fields = 11; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFormFields() - { - return $this->form_fields; - } - - /** - * A list of visually detected form fields on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.FormField form_fields = 11; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\FormField>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFormFields($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\FormField::class); - $this->form_fields = $arr; - - return $this; - } - - /** - * A list of visually detected symbols on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Symbol symbols = 12; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSymbols() - { - return $this->symbols; - } - - /** - * A list of visually detected symbols on the page. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Symbol symbols = 12; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Symbol>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSymbols($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Symbol::class); - $this->symbols = $arr; - - return $this; - } - - /** - * A list of detected barcodes. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedBarcode detected_barcodes = 15; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedBarcodes() - { - return $this->detected_barcodes; - } - - /** - * A list of detected barcodes. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedBarcode detected_barcodes = 15; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedBarcode>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedBarcodes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedBarcode::class); - $this->detected_barcodes = $arr; - - return $this; - } - - /** - * Image quality scores. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores|null - */ - public function getImageQualityScores() - { - return $this->image_quality_scores; - } - - public function hasImageQualityScores() - { - return isset($this->image_quality_scores); - } - - public function clearImageQualityScores() - { - unset($this->image_quality_scores); - } - - /** - * Image quality scores. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.ImageQualityScores image_quality_scores = 17; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores $var - * @return $this - */ - public function setImageQualityScores($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores::class); - $this->image_quality_scores = $var; - - return $this; - } - - /** - * The history of this page. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 16 [deprecated = true]; - * @return \Google\Cloud\DocumentAI\V1\Document\Provenance|null - * @deprecated - */ - public function getProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return $this->provenance; - } - - public function hasProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return isset($this->provenance); - } - - public function clearProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - unset($this->provenance); - } - - /** - * The history of this page. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 16 [deprecated = true]; - * @param \Google\Cloud\DocumentAI\V1\Document\Provenance $var - * @return $this - * @deprecated - */ - public function setProvenance($var) - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Provenance::class); - $this->provenance = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Page::class, \Google\Cloud\DocumentAI\V1\Document_Page::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Block.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Block.php deleted file mode 100644 index e6b0f8115556..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Block.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Block - */ -class Block extends \Google\Protobuf\Internal\Message -{ - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Block][google.cloud.documentai.v1.Document.Page.Block]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - */ - protected $layout = null; - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - */ - private $detected_languages; - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @deprecated - */ - protected $provenance = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $layout - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Block][google.cloud.documentai.v1.Document.Page.Block]. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $detected_languages - * A list of detected languages together with confidence. - * @type \Google\Cloud\DocumentAI\V1\Document\Provenance $provenance - * The history of this annotation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Block][google.cloud.documentai.v1.Document.Page.Block]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getLayout() - { - return $this->layout; - } - - public function hasLayout() - { - return isset($this->layout); - } - - public function clearLayout() - { - unset($this->layout); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Block][google.cloud.documentai.v1.Document.Page.Block]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedLanguages() - { - return $this->detected_languages; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->detected_languages = $arr; - - return $this; - } - - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @return \Google\Cloud\DocumentAI\V1\Document\Provenance|null - * @deprecated - */ - public function getProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return $this->provenance; - } - - public function hasProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return isset($this->provenance); - } - - public function clearProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - unset($this->provenance); - } - - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @param \Google\Cloud\DocumentAI\V1\Document\Provenance $var - * @return $this - * @deprecated - */ - public function setProvenance($var) - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Provenance::class); - $this->provenance = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Block::class, \Google\Cloud\DocumentAI\V1\Document_Page_Block::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/DetectedBarcode.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/DetectedBarcode.php deleted file mode 100644 index 813cac1753e1..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/DetectedBarcode.php +++ /dev/null @@ -1,132 +0,0 @@ -google.cloud.documentai.v1.Document.Page.DetectedBarcode - */ -class DetectedBarcode extends \Google\Protobuf\Internal\Message -{ - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [DetectedBarcode][google.cloud.documentai.v1.Document.Page.DetectedBarcode]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - */ - protected $layout = null; - /** - * Detailed barcode information of the - * [DetectedBarcode][google.cloud.documentai.v1.Document.Page.DetectedBarcode]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Barcode barcode = 2; - */ - protected $barcode = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $layout - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [DetectedBarcode][google.cloud.documentai.v1.Document.Page.DetectedBarcode]. - * @type \Google\Cloud\DocumentAI\V1\Barcode $barcode - * Detailed barcode information of the - * [DetectedBarcode][google.cloud.documentai.v1.Document.Page.DetectedBarcode]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [DetectedBarcode][google.cloud.documentai.v1.Document.Page.DetectedBarcode]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getLayout() - { - return $this->layout; - } - - public function hasLayout() - { - return isset($this->layout); - } - - public function clearLayout() - { - unset($this->layout); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [DetectedBarcode][google.cloud.documentai.v1.Document.Page.DetectedBarcode]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * Detailed barcode information of the - * [DetectedBarcode][google.cloud.documentai.v1.Document.Page.DetectedBarcode]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Barcode barcode = 2; - * @return \Google\Cloud\DocumentAI\V1\Barcode|null - */ - public function getBarcode() - { - return $this->barcode; - } - - public function hasBarcode() - { - return isset($this->barcode); - } - - public function clearBarcode() - { - unset($this->barcode); - } - - /** - * Detailed barcode information of the - * [DetectedBarcode][google.cloud.documentai.v1.Document.Page.DetectedBarcode]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Barcode barcode = 2; - * @param \Google\Cloud\DocumentAI\V1\Barcode $var - * @return $this - */ - public function setBarcode($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Barcode::class); - $this->barcode = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DetectedBarcode::class, \Google\Cloud\DocumentAI\V1\Document_Page_DetectedBarcode::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/DetectedLanguage.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/DetectedLanguage.php deleted file mode 100644 index 047bb47a331f..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/DetectedLanguage.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.documentai.v1.Document.Page.DetectedLanguage - */ -class DetectedLanguage extends \Google\Protobuf\Internal\Message -{ - /** - * The [BCP-47 language - * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), - * such as `en-US` or `sr-Latn`. - * - * Generated from protobuf field string language_code = 1; - */ - protected $language_code = ''; - /** - * Confidence of detected language. Range `[0, 1]`. - * - * Generated from protobuf field float confidence = 2; - */ - protected $confidence = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $language_code - * The [BCP-47 language - * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), - * such as `en-US` or `sr-Latn`. - * @type float $confidence - * Confidence of detected language. Range `[0, 1]`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * The [BCP-47 language - * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), - * such as `en-US` or `sr-Latn`. - * - * Generated from protobuf field string language_code = 1; - * @return string - */ - public function getLanguageCode() - { - return $this->language_code; - } - - /** - * The [BCP-47 language - * code](https://www.unicode.org/reports/tr35/#Unicode_locale_identifier), - * such as `en-US` or `sr-Latn`. - * - * Generated from protobuf field string language_code = 1; - * @param string $var - * @return $this - */ - public function setLanguageCode($var) - { - GPBUtil::checkString($var, True); - $this->language_code = $var; - - return $this; - } - - /** - * Confidence of detected language. Range `[0, 1]`. - * - * Generated from protobuf field float confidence = 2; - * @return float - */ - public function getConfidence() - { - return $this->confidence; - } - - /** - * Confidence of detected language. Range `[0, 1]`. - * - * Generated from protobuf field float confidence = 2; - * @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(DetectedLanguage::class, \Google\Cloud\DocumentAI\V1\Document_Page_DetectedLanguage::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Dimension.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Dimension.php deleted file mode 100644 index 94fa7020c1c5..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Dimension.php +++ /dev/null @@ -1,138 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Dimension - */ -class Dimension extends \Google\Protobuf\Internal\Message -{ - /** - * Page width. - * - * Generated from protobuf field float width = 1; - */ - protected $width = 0.0; - /** - * Page height. - * - * Generated from protobuf field float height = 2; - */ - protected $height = 0.0; - /** - * Dimension unit. - * - * Generated from protobuf field string unit = 3; - */ - protected $unit = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $width - * Page width. - * @type float $height - * Page height. - * @type string $unit - * Dimension unit. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Page width. - * - * Generated from protobuf field float width = 1; - * @return float - */ - public function getWidth() - { - return $this->width; - } - - /** - * Page width. - * - * Generated from protobuf field float width = 1; - * @param float $var - * @return $this - */ - public function setWidth($var) - { - GPBUtil::checkFloat($var); - $this->width = $var; - - return $this; - } - - /** - * Page height. - * - * Generated from protobuf field float height = 2; - * @return float - */ - public function getHeight() - { - return $this->height; - } - - /** - * Page height. - * - * Generated from protobuf field float height = 2; - * @param float $var - * @return $this - */ - public function setHeight($var) - { - GPBUtil::checkFloat($var); - $this->height = $var; - - return $this; - } - - /** - * Dimension unit. - * - * Generated from protobuf field string unit = 3; - * @return string - */ - public function getUnit() - { - return $this->unit; - } - - /** - * Dimension unit. - * - * Generated from protobuf field string unit = 3; - * @param string $var - * @return $this - */ - public function setUnit($var) - { - GPBUtil::checkString($var, True); - $this->unit = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Dimension::class, \Google\Cloud\DocumentAI\V1\Document_Page_Dimension::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/FormField.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/FormField.php deleted file mode 100644 index 8eba8df34300..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/FormField.php +++ /dev/null @@ -1,382 +0,0 @@ -google.cloud.documentai.v1.Document.Page.FormField - */ -class FormField extends \Google\Protobuf\Internal\Message -{ - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the - * [FormField][google.cloud.documentai.v1.Document.Page.FormField] name. - * e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout field_name = 1; - */ - protected $field_name = null; - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the - * [FormField][google.cloud.documentai.v1.Document.Page.FormField] value. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout field_value = 2; - */ - protected $field_value = null; - /** - * A list of detected languages for name together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage name_detected_languages = 3; - */ - private $name_detected_languages; - /** - * A list of detected languages for value together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage value_detected_languages = 4; - */ - private $value_detected_languages; - /** - * If the value is non-textual, this field represents the type. Current - * valid values are: - * - blank (this indicates the `field_value` is normal text) - * - `unfilled_checkbox` - * - `filled_checkbox` - * - * Generated from protobuf field string value_type = 5; - */ - protected $value_type = ''; - /** - * Created for Labeling UI to export key text. - * If corrections were made to the text identified by the - * `field_name.text_anchor`, this field will contain the correction. - * - * Generated from protobuf field string corrected_key_text = 6; - */ - protected $corrected_key_text = ''; - /** - * Created for Labeling UI to export value text. - * If corrections were made to the text identified by the - * `field_value.text_anchor`, this field will contain the correction. - * - * Generated from protobuf field string corrected_value_text = 7; - */ - protected $corrected_value_text = ''; - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 8; - */ - protected $provenance = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $field_name - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the - * [FormField][google.cloud.documentai.v1.Document.Page.FormField] name. - * e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $field_value - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the - * [FormField][google.cloud.documentai.v1.Document.Page.FormField] value. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $name_detected_languages - * A list of detected languages for name together with confidence. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $value_detected_languages - * A list of detected languages for value together with confidence. - * @type string $value_type - * If the value is non-textual, this field represents the type. Current - * valid values are: - * - blank (this indicates the `field_value` is normal text) - * - `unfilled_checkbox` - * - `filled_checkbox` - * @type string $corrected_key_text - * Created for Labeling UI to export key text. - * If corrections were made to the text identified by the - * `field_name.text_anchor`, this field will contain the correction. - * @type string $corrected_value_text - * Created for Labeling UI to export value text. - * If corrections were made to the text identified by the - * `field_value.text_anchor`, this field will contain the correction. - * @type \Google\Cloud\DocumentAI\V1\Document\Provenance $provenance - * The history of this annotation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the - * [FormField][google.cloud.documentai.v1.Document.Page.FormField] name. - * e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout field_name = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getFieldName() - { - return $this->field_name; - } - - public function hasFieldName() - { - return isset($this->field_name); - } - - public function clearFieldName() - { - unset($this->field_name); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the - * [FormField][google.cloud.documentai.v1.Document.Page.FormField] name. - * e.g. `Address`, `Email`, `Grand total`, `Phone number`, etc. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout field_name = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setFieldName($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->field_name = $var; - - return $this; - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the - * [FormField][google.cloud.documentai.v1.Document.Page.FormField] value. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout field_value = 2; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getFieldValue() - { - return $this->field_value; - } - - public function hasFieldValue() - { - return isset($this->field_value); - } - - public function clearFieldValue() - { - unset($this->field_value); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for the - * [FormField][google.cloud.documentai.v1.Document.Page.FormField] value. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout field_value = 2; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setFieldValue($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->field_value = $var; - - return $this; - } - - /** - * A list of detected languages for name together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage name_detected_languages = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNameDetectedLanguages() - { - return $this->name_detected_languages; - } - - /** - * A list of detected languages for name together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage name_detected_languages = 3; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNameDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->name_detected_languages = $arr; - - return $this; - } - - /** - * A list of detected languages for value together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage value_detected_languages = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValueDetectedLanguages() - { - return $this->value_detected_languages; - } - - /** - * A list of detected languages for value together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage value_detected_languages = 4; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValueDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->value_detected_languages = $arr; - - return $this; - } - - /** - * If the value is non-textual, this field represents the type. Current - * valid values are: - * - blank (this indicates the `field_value` is normal text) - * - `unfilled_checkbox` - * - `filled_checkbox` - * - * Generated from protobuf field string value_type = 5; - * @return string - */ - public function getValueType() - { - return $this->value_type; - } - - /** - * If the value is non-textual, this field represents the type. Current - * valid values are: - * - blank (this indicates the `field_value` is normal text) - * - `unfilled_checkbox` - * - `filled_checkbox` - * - * Generated from protobuf field string value_type = 5; - * @param string $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkString($var, True); - $this->value_type = $var; - - return $this; - } - - /** - * Created for Labeling UI to export key text. - * If corrections were made to the text identified by the - * `field_name.text_anchor`, this field will contain the correction. - * - * Generated from protobuf field string corrected_key_text = 6; - * @return string - */ - public function getCorrectedKeyText() - { - return $this->corrected_key_text; - } - - /** - * Created for Labeling UI to export key text. - * If corrections were made to the text identified by the - * `field_name.text_anchor`, this field will contain the correction. - * - * Generated from protobuf field string corrected_key_text = 6; - * @param string $var - * @return $this - */ - public function setCorrectedKeyText($var) - { - GPBUtil::checkString($var, True); - $this->corrected_key_text = $var; - - return $this; - } - - /** - * Created for Labeling UI to export value text. - * If corrections were made to the text identified by the - * `field_value.text_anchor`, this field will contain the correction. - * - * Generated from protobuf field string corrected_value_text = 7; - * @return string - */ - public function getCorrectedValueText() - { - return $this->corrected_value_text; - } - - /** - * Created for Labeling UI to export value text. - * If corrections were made to the text identified by the - * `field_value.text_anchor`, this field will contain the correction. - * - * Generated from protobuf field string corrected_value_text = 7; - * @param string $var - * @return $this - */ - public function setCorrectedValueText($var) - { - GPBUtil::checkString($var, True); - $this->corrected_value_text = $var; - - return $this; - } - - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 8; - * @return \Google\Cloud\DocumentAI\V1\Document\Provenance|null - */ - public function getProvenance() - { - return $this->provenance; - } - - public function hasProvenance() - { - return isset($this->provenance); - } - - public function clearProvenance() - { - unset($this->provenance); - } - - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 8; - * @param \Google\Cloud\DocumentAI\V1\Document\Provenance $var - * @return $this - */ - public function setProvenance($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Provenance::class); - $this->provenance = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FormField::class, \Google\Cloud\DocumentAI\V1\Document_Page_FormField::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Image.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Image.php deleted file mode 100644 index d148308f1446..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Image.php +++ /dev/null @@ -1,180 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Image - */ -class Image extends \Google\Protobuf\Internal\Message -{ - /** - * Raw byte content of the image. - * - * Generated from protobuf field bytes content = 1; - */ - protected $content = ''; - /** - * Encoding [media type (MIME - * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) - * for the image. - * - * Generated from protobuf field string mime_type = 2; - */ - protected $mime_type = ''; - /** - * Width of the image in pixels. - * - * Generated from protobuf field int32 width = 3; - */ - protected $width = 0; - /** - * Height of the image in pixels. - * - * Generated from protobuf field int32 height = 4; - */ - protected $height = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $content - * Raw byte content of the image. - * @type string $mime_type - * Encoding [media type (MIME - * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) - * for the image. - * @type int $width - * Width of the image in pixels. - * @type int $height - * Height of the image in pixels. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Raw byte content of the image. - * - * Generated from protobuf field bytes content = 1; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Raw byte content of the image. - * - * Generated from protobuf field bytes content = 1; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, False); - $this->content = $var; - - return $this; - } - - /** - * Encoding [media type (MIME - * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) - * for the image. - * - * Generated from protobuf field string mime_type = 2; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * Encoding [media type (MIME - * type)](https://www.iana.org/assignments/media-types/media-types.xhtml) - * for the image. - * - * Generated from protobuf field string mime_type = 2; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * Width of the image in pixels. - * - * Generated from protobuf field int32 width = 3; - * @return int - */ - public function getWidth() - { - return $this->width; - } - - /** - * Width of the image in pixels. - * - * Generated from protobuf field int32 width = 3; - * @param int $var - * @return $this - */ - public function setWidth($var) - { - GPBUtil::checkInt32($var); - $this->width = $var; - - return $this; - } - - /** - * Height of the image in pixels. - * - * Generated from protobuf field int32 height = 4; - * @return int - */ - public function getHeight() - { - return $this->height; - } - - /** - * Height of the image in pixels. - * - * Generated from protobuf field int32 height = 4; - * @param int $var - * @return $this - */ - public function setHeight($var) - { - GPBUtil::checkInt32($var); - $this->height = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Image::class, \Google\Cloud\DocumentAI\V1\Document_Page_Image::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/ImageQualityScores.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/ImageQualityScores.php deleted file mode 100644 index 022802ccec08..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/ImageQualityScores.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.documentai.v1.Document.Page.ImageQualityScores - */ -class ImageQualityScores extends \Google\Protobuf\Internal\Message -{ - /** - * The overall quality score. Range `[0, 1]` where `1` is perfect quality. - * - * Generated from protobuf field float quality_score = 1; - */ - protected $quality_score = 0.0; - /** - * A list of detected defects. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2; - */ - private $detected_defects; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $quality_score - * The overall quality score. Range `[0, 1]` where `1` is perfect quality. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores\DetectedDefect>|\Google\Protobuf\Internal\RepeatedField $detected_defects - * A list of detected defects. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * The overall quality score. Range `[0, 1]` where `1` is perfect quality. - * - * Generated from protobuf field float quality_score = 1; - * @return float - */ - public function getQualityScore() - { - return $this->quality_score; - } - - /** - * The overall quality score. Range `[0, 1]` where `1` is perfect quality. - * - * Generated from protobuf field float quality_score = 1; - * @param float $var - * @return $this - */ - public function setQualityScore($var) - { - GPBUtil::checkFloat($var); - $this->quality_score = $var; - - return $this; - } - - /** - * A list of detected defects. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedDefects() - { - return $this->detected_defects; - } - - /** - * A list of detected defects. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect detected_defects = 2; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores\DetectedDefect>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedDefects($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\ImageQualityScores\DetectedDefect::class); - $this->detected_defects = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ImageQualityScores::class, \Google\Cloud\DocumentAI\V1\Document_Page_ImageQualityScores::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/ImageQualityScores/DetectedDefect.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/ImageQualityScores/DetectedDefect.php deleted file mode 100644 index 349207260af6..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/ImageQualityScores/DetectedDefect.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.documentai.v1.Document.Page.ImageQualityScores.DetectedDefect - */ -class DetectedDefect extends \Google\Protobuf\Internal\Message -{ - /** - * Name of the defect type. Supported values are: - * - `quality/defect_blurry` - * - `quality/defect_noisy` - * - `quality/defect_dark` - * - `quality/defect_faint` - * - `quality/defect_text_too_small` - * - `quality/defect_document_cutoff` - * - `quality/defect_text_cutoff` - * - `quality/defect_glare` - * - * Generated from protobuf field string type = 1; - */ - protected $type = ''; - /** - * Confidence of detected defect. Range `[0, 1]` where `1` indicates - * strong confidence that the defect exists. - * - * Generated from protobuf field float confidence = 2; - */ - protected $confidence = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * Name of the defect type. Supported values are: - * - `quality/defect_blurry` - * - `quality/defect_noisy` - * - `quality/defect_dark` - * - `quality/defect_faint` - * - `quality/defect_text_too_small` - * - `quality/defect_document_cutoff` - * - `quality/defect_text_cutoff` - * - `quality/defect_glare` - * @type float $confidence - * Confidence of detected defect. Range `[0, 1]` where `1` indicates - * strong confidence that the defect exists. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Name of the defect type. Supported values are: - * - `quality/defect_blurry` - * - `quality/defect_noisy` - * - `quality/defect_dark` - * - `quality/defect_faint` - * - `quality/defect_text_too_small` - * - `quality/defect_document_cutoff` - * - `quality/defect_text_cutoff` - * - `quality/defect_glare` - * - * Generated from protobuf field string type = 1; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Name of the defect type. Supported values are: - * - `quality/defect_blurry` - * - `quality/defect_noisy` - * - `quality/defect_dark` - * - `quality/defect_faint` - * - `quality/defect_text_too_small` - * - `quality/defect_document_cutoff` - * - `quality/defect_text_cutoff` - * - `quality/defect_glare` - * - * Generated from protobuf field string type = 1; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Confidence of detected defect. Range `[0, 1]` where `1` indicates - * strong confidence that the defect exists. - * - * Generated from protobuf field float confidence = 2; - * @return float - */ - public function getConfidence() - { - return $this->confidence; - } - - /** - * Confidence of detected defect. Range `[0, 1]` where `1` indicates - * strong confidence that the defect exists. - * - * Generated from protobuf field float confidence = 2; - * @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(DetectedDefect::class, \Google\Cloud\DocumentAI\V1\Document_Page_ImageQualityScores_DetectedDefect::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Layout.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Layout.php deleted file mode 100644 index 88a05d40216e..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Layout.php +++ /dev/null @@ -1,220 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Layout - */ -class Layout extends \Google\Protobuf\Internal\Message -{ - /** - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - */ - protected $text_anchor = null; - /** - * Confidence of the current - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] within - * context of the object this layout is for. e.g. confidence can be for a - * single token, a table, a visual element, etc. depending on context. - * Range `[0, 1]`. - * - * Generated from protobuf field float confidence = 2; - */ - protected $confidence = 0.0; - /** - * The bounding polygon for the - * [Layout][google.cloud.documentai.v1.Document.Page.Layout]. - * - * Generated from protobuf field .google.cloud.documentai.v1.BoundingPoly bounding_poly = 3; - */ - protected $bounding_poly = null; - /** - * Detected orientation for the - * [Layout][google.cloud.documentai.v1.Document.Page.Layout]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4; - */ - protected $orientation = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\TextAnchor $text_anchor - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * @type float $confidence - * Confidence of the current - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] within - * context of the object this layout is for. e.g. confidence can be for a - * single token, a table, a visual element, etc. depending on context. - * Range `[0, 1]`. - * @type \Google\Cloud\DocumentAI\V1\BoundingPoly $bounding_poly - * The bounding polygon for the - * [Layout][google.cloud.documentai.v1.Document.Page.Layout]. - * @type int $orientation - * Detected orientation for the - * [Layout][google.cloud.documentai.v1.Document.Page.Layout]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\TextAnchor|null - */ - public function getTextAnchor() - { - return $this->text_anchor; - } - - public function hasTextAnchor() - { - return isset($this->text_anchor); - } - - public function clearTextAnchor() - { - unset($this->text_anchor); - } - - /** - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\TextAnchor $var - * @return $this - */ - public function setTextAnchor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\TextAnchor::class); - $this->text_anchor = $var; - - return $this; - } - - /** - * Confidence of the current - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] within - * context of the object this layout is for. e.g. confidence can be for a - * single token, a table, a visual element, etc. depending on context. - * Range `[0, 1]`. - * - * Generated from protobuf field float confidence = 2; - * @return float - */ - public function getConfidence() - { - return $this->confidence; - } - - /** - * Confidence of the current - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] within - * context of the object this layout is for. e.g. confidence can be for a - * single token, a table, a visual element, etc. depending on context. - * Range `[0, 1]`. - * - * Generated from protobuf field float confidence = 2; - * @param float $var - * @return $this - */ - public function setConfidence($var) - { - GPBUtil::checkFloat($var); - $this->confidence = $var; - - return $this; - } - - /** - * The bounding polygon for the - * [Layout][google.cloud.documentai.v1.Document.Page.Layout]. - * - * Generated from protobuf field .google.cloud.documentai.v1.BoundingPoly bounding_poly = 3; - * @return \Google\Cloud\DocumentAI\V1\BoundingPoly|null - */ - public function getBoundingPoly() - { - return $this->bounding_poly; - } - - public function hasBoundingPoly() - { - return isset($this->bounding_poly); - } - - public function clearBoundingPoly() - { - unset($this->bounding_poly); - } - - /** - * The bounding polygon for the - * [Layout][google.cloud.documentai.v1.Document.Page.Layout]. - * - * Generated from protobuf field .google.cloud.documentai.v1.BoundingPoly bounding_poly = 3; - * @param \Google\Cloud\DocumentAI\V1\BoundingPoly $var - * @return $this - */ - public function setBoundingPoly($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\BoundingPoly::class); - $this->bounding_poly = $var; - - return $this; - } - - /** - * Detected orientation for the - * [Layout][google.cloud.documentai.v1.Document.Page.Layout]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4; - * @return int - */ - public function getOrientation() - { - return $this->orientation; - } - - /** - * Detected orientation for the - * [Layout][google.cloud.documentai.v1.Document.Page.Layout]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout.Orientation orientation = 4; - * @param int $var - * @return $this - */ - public function setOrientation($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout\Orientation::class); - $this->orientation = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Layout::class, \Google\Cloud\DocumentAI\V1\Document_Page_Layout::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Layout/Orientation.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Layout/Orientation.php deleted file mode 100644 index ecbb474f5b17..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Layout/Orientation.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Layout.Orientation - */ -class Orientation -{ - /** - * Unspecified orientation. - * - * Generated from protobuf enum ORIENTATION_UNSPECIFIED = 0; - */ - const ORIENTATION_UNSPECIFIED = 0; - /** - * Orientation is aligned with page up. - * - * Generated from protobuf enum PAGE_UP = 1; - */ - const PAGE_UP = 1; - /** - * Orientation is aligned with page right. - * Turn the head 90 degrees clockwise from upright to read. - * - * Generated from protobuf enum PAGE_RIGHT = 2; - */ - const PAGE_RIGHT = 2; - /** - * Orientation is aligned with page down. - * Turn the head 180 degrees from upright to read. - * - * Generated from protobuf enum PAGE_DOWN = 3; - */ - const PAGE_DOWN = 3; - /** - * Orientation is aligned with page left. - * Turn the head 90 degrees counterclockwise from upright to read. - * - * Generated from protobuf enum PAGE_LEFT = 4; - */ - const PAGE_LEFT = 4; - - private static $valueToName = [ - self::ORIENTATION_UNSPECIFIED => 'ORIENTATION_UNSPECIFIED', - self::PAGE_UP => 'PAGE_UP', - self::PAGE_RIGHT => 'PAGE_RIGHT', - self::PAGE_DOWN => 'PAGE_DOWN', - self::PAGE_LEFT => 'PAGE_LEFT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Orientation::class, \Google\Cloud\DocumentAI\V1\Document_Page_Layout_Orientation::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Line.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Line.php deleted file mode 100644 index 6a1b91fa2c24..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Line.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Line - */ -class Line extends \Google\Protobuf\Internal\Message -{ - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Line][google.cloud.documentai.v1.Document.Page.Line]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - */ - protected $layout = null; - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - */ - private $detected_languages; - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @deprecated - */ - protected $provenance = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $layout - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Line][google.cloud.documentai.v1.Document.Page.Line]. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $detected_languages - * A list of detected languages together with confidence. - * @type \Google\Cloud\DocumentAI\V1\Document\Provenance $provenance - * The history of this annotation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Line][google.cloud.documentai.v1.Document.Page.Line]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getLayout() - { - return $this->layout; - } - - public function hasLayout() - { - return isset($this->layout); - } - - public function clearLayout() - { - unset($this->layout); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Line][google.cloud.documentai.v1.Document.Page.Line]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedLanguages() - { - return $this->detected_languages; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->detected_languages = $arr; - - return $this; - } - - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @return \Google\Cloud\DocumentAI\V1\Document\Provenance|null - * @deprecated - */ - public function getProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return $this->provenance; - } - - public function hasProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return isset($this->provenance); - } - - public function clearProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - unset($this->provenance); - } - - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @param \Google\Cloud\DocumentAI\V1\Document\Provenance $var - * @return $this - * @deprecated - */ - public function setProvenance($var) - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Provenance::class); - $this->provenance = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Line::class, \Google\Cloud\DocumentAI\V1\Document_Page_Line::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Matrix.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Matrix.php deleted file mode 100644 index 5bdd20b17c61..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Matrix.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Matrix - */ -class Matrix extends \Google\Protobuf\Internal\Message -{ - /** - * Number of rows in the matrix. - * - * Generated from protobuf field int32 rows = 1; - */ - protected $rows = 0; - /** - * Number of columns in the matrix. - * - * Generated from protobuf field int32 cols = 2; - */ - protected $cols = 0; - /** - * This encodes information about what data type the matrix uses. - * For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list - * of OpenCV primitive data types, please refer to - * https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html - * - * Generated from protobuf field int32 type = 3; - */ - protected $type = 0; - /** - * The matrix data. - * - * Generated from protobuf field bytes data = 4; - */ - protected $data = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $rows - * Number of rows in the matrix. - * @type int $cols - * Number of columns in the matrix. - * @type int $type - * This encodes information about what data type the matrix uses. - * For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list - * of OpenCV primitive data types, please refer to - * https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html - * @type string $data - * The matrix data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Number of rows in the matrix. - * - * Generated from protobuf field int32 rows = 1; - * @return int - */ - public function getRows() - { - return $this->rows; - } - - /** - * Number of rows in the matrix. - * - * Generated from protobuf field int32 rows = 1; - * @param int $var - * @return $this - */ - public function setRows($var) - { - GPBUtil::checkInt32($var); - $this->rows = $var; - - return $this; - } - - /** - * Number of columns in the matrix. - * - * Generated from protobuf field int32 cols = 2; - * @return int - */ - public function getCols() - { - return $this->cols; - } - - /** - * Number of columns in the matrix. - * - * Generated from protobuf field int32 cols = 2; - * @param int $var - * @return $this - */ - public function setCols($var) - { - GPBUtil::checkInt32($var); - $this->cols = $var; - - return $this; - } - - /** - * This encodes information about what data type the matrix uses. - * For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list - * of OpenCV primitive data types, please refer to - * https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html - * - * Generated from protobuf field int32 type = 3; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * This encodes information about what data type the matrix uses. - * For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list - * of OpenCV primitive data types, please refer to - * https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html - * - * Generated from protobuf field int32 type = 3; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkInt32($var); - $this->type = $var; - - return $this; - } - - /** - * The matrix data. - * - * Generated from protobuf field bytes data = 4; - * @return string - */ - public function getData() - { - return $this->data; - } - - /** - * The matrix data. - * - * Generated from protobuf field bytes data = 4; - * @param string $var - * @return $this - */ - public function setData($var) - { - GPBUtil::checkString($var, False); - $this->data = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Matrix::class, \Google\Cloud\DocumentAI\V1\Document_Page_Matrix::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Paragraph.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Paragraph.php deleted file mode 100644 index ecf311660ec6..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Paragraph.php +++ /dev/null @@ -1,169 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Paragraph - */ -class Paragraph extends \Google\Protobuf\Internal\Message -{ - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Paragraph][google.cloud.documentai.v1.Document.Page.Paragraph]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - */ - protected $layout = null; - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - */ - private $detected_languages; - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @deprecated - */ - protected $provenance = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $layout - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Paragraph][google.cloud.documentai.v1.Document.Page.Paragraph]. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $detected_languages - * A list of detected languages together with confidence. - * @type \Google\Cloud\DocumentAI\V1\Document\Provenance $provenance - * The history of this annotation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Paragraph][google.cloud.documentai.v1.Document.Page.Paragraph]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getLayout() - { - return $this->layout; - } - - public function hasLayout() - { - return isset($this->layout); - } - - public function clearLayout() - { - unset($this->layout); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Paragraph][google.cloud.documentai.v1.Document.Page.Paragraph]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedLanguages() - { - return $this->detected_languages; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->detected_languages = $arr; - - return $this; - } - - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @return \Google\Cloud\DocumentAI\V1\Document\Provenance|null - * @deprecated - */ - public function getProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return $this->provenance; - } - - public function hasProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return isset($this->provenance); - } - - public function clearProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - unset($this->provenance); - } - - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @param \Google\Cloud\DocumentAI\V1\Document\Provenance $var - * @return $this - * @deprecated - */ - public function setProvenance($var) - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Provenance::class); - $this->provenance = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Paragraph::class, \Google\Cloud\DocumentAI\V1\Document_Page_Paragraph::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Symbol.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Symbol.php deleted file mode 100644 index 823bdb5b507a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Symbol.php +++ /dev/null @@ -1,118 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Symbol - */ -class Symbol extends \Google\Protobuf\Internal\Message -{ - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Symbol][google.cloud.documentai.v1.Document.Page.Symbol]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - */ - protected $layout = null; - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - */ - private $detected_languages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $layout - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Symbol][google.cloud.documentai.v1.Document.Page.Symbol]. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $detected_languages - * A list of detected languages together with confidence. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Symbol][google.cloud.documentai.v1.Document.Page.Symbol]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getLayout() - { - return $this->layout; - } - - public function hasLayout() - { - return isset($this->layout); - } - - public function clearLayout() - { - unset($this->layout); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Symbol][google.cloud.documentai.v1.Document.Page.Symbol]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedLanguages() - { - return $this->detected_languages; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 2; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->detected_languages = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Symbol::class, \Google\Cloud\DocumentAI\V1\Document_Page_Symbol::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table.php deleted file mode 100644 index f92869f57296..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table.php +++ /dev/null @@ -1,237 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Table - */ -class Table extends \Google\Protobuf\Internal\Message -{ - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Table][google.cloud.documentai.v1.Document.Page.Table]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - */ - protected $layout = null; - /** - * Header rows of the table. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table.TableRow header_rows = 2; - */ - private $header_rows; - /** - * Body rows of the table. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table.TableRow body_rows = 3; - */ - private $body_rows; - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4; - */ - private $detected_languages; - /** - * The history of this table. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; - * @deprecated - */ - protected $provenance = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $layout - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Table][google.cloud.documentai.v1.Document.Page.Table]. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Table\TableRow>|\Google\Protobuf\Internal\RepeatedField $header_rows - * Header rows of the table. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Table\TableRow>|\Google\Protobuf\Internal\RepeatedField $body_rows - * Body rows of the table. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $detected_languages - * A list of detected languages together with confidence. - * @type \Google\Cloud\DocumentAI\V1\Document\Provenance $provenance - * The history of this table. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Table][google.cloud.documentai.v1.Document.Page.Table]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getLayout() - { - return $this->layout; - } - - public function hasLayout() - { - return isset($this->layout); - } - - public function clearLayout() - { - unset($this->layout); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Table][google.cloud.documentai.v1.Document.Page.Table]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * Header rows of the table. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table.TableRow header_rows = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getHeaderRows() - { - return $this->header_rows; - } - - /** - * Header rows of the table. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table.TableRow header_rows = 2; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Table\TableRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setHeaderRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Table\TableRow::class); - $this->header_rows = $arr; - - return $this; - } - - /** - * Body rows of the table. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table.TableRow body_rows = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBodyRows() - { - return $this->body_rows; - } - - /** - * Body rows of the table. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table.TableRow body_rows = 3; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Table\TableRow>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBodyRows($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Table\TableRow::class); - $this->body_rows = $arr; - - return $this; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedLanguages() - { - return $this->detected_languages; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->detected_languages = $arr; - - return $this; - } - - /** - * The history of this table. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; - * @return \Google\Cloud\DocumentAI\V1\Document\Provenance|null - * @deprecated - */ - public function getProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return $this->provenance; - } - - public function hasProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return isset($this->provenance); - } - - public function clearProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - unset($this->provenance); - } - - /** - * The history of this table. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 5 [deprecated = true]; - * @param \Google\Cloud\DocumentAI\V1\Document\Provenance $var - * @return $this - * @deprecated - */ - public function setProvenance($var) - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Provenance::class); - $this->provenance = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Table::class, \Google\Cloud\DocumentAI\V1\Document_Page_Table::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table/TableCell.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table/TableCell.php deleted file mode 100644 index 083ff6c4e28a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table/TableCell.php +++ /dev/null @@ -1,186 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Table.TableCell - */ -class TableCell extends \Google\Protobuf\Internal\Message -{ - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [TableCell][google.cloud.documentai.v1.Document.Page.Table.TableCell]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - */ - protected $layout = null; - /** - * How many rows this cell spans. - * - * Generated from protobuf field int32 row_span = 2; - */ - protected $row_span = 0; - /** - * How many columns this cell spans. - * - * Generated from protobuf field int32 col_span = 3; - */ - protected $col_span = 0; - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4; - */ - private $detected_languages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $layout - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [TableCell][google.cloud.documentai.v1.Document.Page.Table.TableCell]. - * @type int $row_span - * How many rows this cell spans. - * @type int $col_span - * How many columns this cell spans. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $detected_languages - * A list of detected languages together with confidence. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [TableCell][google.cloud.documentai.v1.Document.Page.Table.TableCell]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getLayout() - { - return $this->layout; - } - - public function hasLayout() - { - return isset($this->layout); - } - - public function clearLayout() - { - unset($this->layout); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [TableCell][google.cloud.documentai.v1.Document.Page.Table.TableCell]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * How many rows this cell spans. - * - * Generated from protobuf field int32 row_span = 2; - * @return int - */ - public function getRowSpan() - { - return $this->row_span; - } - - /** - * How many rows this cell spans. - * - * Generated from protobuf field int32 row_span = 2; - * @param int $var - * @return $this - */ - public function setRowSpan($var) - { - GPBUtil::checkInt32($var); - $this->row_span = $var; - - return $this; - } - - /** - * How many columns this cell spans. - * - * Generated from protobuf field int32 col_span = 3; - * @return int - */ - public function getColSpan() - { - return $this->col_span; - } - - /** - * How many columns this cell spans. - * - * Generated from protobuf field int32 col_span = 3; - * @param int $var - * @return $this - */ - public function setColSpan($var) - { - GPBUtil::checkInt32($var); - $this->col_span = $var; - - return $this; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedLanguages() - { - return $this->detected_languages; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 4; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->detected_languages = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TableCell::class, \Google\Cloud\DocumentAI\V1\Document_Page_Table_TableCell::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table/TableRow.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table/TableRow.php deleted file mode 100644 index c3c865e0ea5a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Table/TableRow.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Table.TableRow - */ -class TableRow extends \Google\Protobuf\Internal\Message -{ - /** - * Cells that make up this row. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table.TableCell cells = 1; - */ - private $cells; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\Table\TableCell>|\Google\Protobuf\Internal\RepeatedField $cells - * Cells that make up this row. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Cells that make up this row. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table.TableCell cells = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getCells() - { - return $this->cells; - } - - /** - * Cells that make up this row. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.Table.TableCell cells = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\Table\TableCell>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setCells($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\Table\TableCell::class); - $this->cells = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TableRow::class, \Google\Cloud\DocumentAI\V1\Document_Page_Table_TableRow::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token.php deleted file mode 100644 index a373a99b3ab6..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token.php +++ /dev/null @@ -1,261 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Token - */ -class Token extends \Google\Protobuf\Internal\Message -{ - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Token][google.cloud.documentai.v1.Document.Page.Token]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - */ - protected $layout = null; - /** - * Detected break at the end of a - * [Token][google.cloud.documentai.v1.Document.Page.Token]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak detected_break = 2; - */ - protected $detected_break = null; - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 3; - */ - private $detected_languages; - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 4 [deprecated = true]; - * @deprecated - */ - protected $provenance = null; - /** - * Text style attributes. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; - */ - protected $style_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $layout - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Token][google.cloud.documentai.v1.Document.Page.Token]. - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Token\DetectedBreak $detected_break - * Detected break at the end of a - * [Token][google.cloud.documentai.v1.Document.Page.Token]. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $detected_languages - * A list of detected languages together with confidence. - * @type \Google\Cloud\DocumentAI\V1\Document\Provenance $provenance - * The history of this annotation. - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Token\StyleInfo $style_info - * Text style attributes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Token][google.cloud.documentai.v1.Document.Page.Token]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getLayout() - { - return $this->layout; - } - - public function hasLayout() - { - return isset($this->layout); - } - - public function clearLayout() - { - unset($this->layout); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [Token][google.cloud.documentai.v1.Document.Page.Token]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * Detected break at the end of a - * [Token][google.cloud.documentai.v1.Document.Page.Token]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak detected_break = 2; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Token\DetectedBreak|null - */ - public function getDetectedBreak() - { - return $this->detected_break; - } - - public function hasDetectedBreak() - { - return isset($this->detected_break); - } - - public function clearDetectedBreak() - { - unset($this->detected_break); - } - - /** - * Detected break at the end of a - * [Token][google.cloud.documentai.v1.Document.Page.Token]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak detected_break = 2; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Token\DetectedBreak $var - * @return $this - */ - public function setDetectedBreak($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Token\DetectedBreak::class); - $this->detected_break = $var; - - return $this; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedLanguages() - { - return $this->detected_languages; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 3; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->detected_languages = $arr; - - return $this; - } - - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 4 [deprecated = true]; - * @return \Google\Cloud\DocumentAI\V1\Document\Provenance|null - * @deprecated - */ - public function getProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return $this->provenance; - } - - public function hasProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return isset($this->provenance); - } - - public function clearProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - unset($this->provenance); - } - - /** - * The history of this annotation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance provenance = 4 [deprecated = true]; - * @param \Google\Cloud\DocumentAI\V1\Document\Provenance $var - * @return $this - * @deprecated - */ - public function setProvenance($var) - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Provenance::class); - $this->provenance = $var; - - return $this; - } - - /** - * Text style attributes. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Token\StyleInfo|null - */ - public function getStyleInfo() - { - return $this->style_info; - } - - public function hasStyleInfo() - { - return isset($this->style_info); - } - - public function clearStyleInfo() - { - unset($this->style_info); - } - - /** - * Text style attributes. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Token.StyleInfo style_info = 5; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Token\StyleInfo $var - * @return $this - */ - public function setStyleInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Token\StyleInfo::class); - $this->style_info = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Token::class, \Google\Cloud\DocumentAI\V1\Document_Page_Token::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/DetectedBreak.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/DetectedBreak.php deleted file mode 100644 index d5fe06afd4f5..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/DetectedBreak.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Token.DetectedBreak - */ -class DetectedBreak extends \Google\Protobuf\Internal\Message -{ - /** - * Detected break type. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $type - * Detected break type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Detected break type. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * Detected break type. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type type = 1; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\Document\Page\Token\DetectedBreak\Type::class); - $this->type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DetectedBreak::class, \Google\Cloud\DocumentAI\V1\Document_Page_Token_DetectedBreak::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/DetectedBreak/Type.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/DetectedBreak/Type.php deleted file mode 100644 index 79c8990b17fc..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/DetectedBreak/Type.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Token.DetectedBreak.Type - */ -class Type -{ - /** - * Unspecified break type. - * - * Generated from protobuf enum TYPE_UNSPECIFIED = 0; - */ - const TYPE_UNSPECIFIED = 0; - /** - * A single whitespace. - * - * Generated from protobuf enum SPACE = 1; - */ - const SPACE = 1; - /** - * A wider whitespace. - * - * Generated from protobuf enum WIDE_SPACE = 2; - */ - const WIDE_SPACE = 2; - /** - * A hyphen that indicates that a token has been split across lines. - * - * Generated from protobuf enum HYPHEN = 3; - */ - const HYPHEN = 3; - - private static $valueToName = [ - self::TYPE_UNSPECIFIED => 'TYPE_UNSPECIFIED', - self::SPACE => 'SPACE', - self::WIDE_SPACE => 'WIDE_SPACE', - self::HYPHEN => 'HYPHEN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DocumentAI\V1\Document_Page_Token_DetectedBreak_Type::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/StyleInfo.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/StyleInfo.php deleted file mode 100644 index e696a8fffcf1..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/Token/StyleInfo.php +++ /dev/null @@ -1,586 +0,0 @@ -google.cloud.documentai.v1.Document.Page.Token.StyleInfo - */ -class StyleInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Font size in points (`1` point is `¹â„₇₂` inches). - * - * Generated from protobuf field int32 font_size = 1; - */ - protected $font_size = 0; - /** - * Font size in pixels, equal to _unrounded - * [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ - * * _resolution_ ÷ `72.0`. - * - * Generated from protobuf field double pixel_font_size = 2; - */ - protected $pixel_font_size = 0.0; - /** - * Letter spacing in points. - * - * Generated from protobuf field double letter_spacing = 3; - */ - protected $letter_spacing = 0.0; - /** - * Name or style of the font. - * - * Generated from protobuf field string font_type = 4; - */ - protected $font_type = ''; - /** - * Whether the text is bold (equivalent to - * [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] - * is at least `700`). - * - * Generated from protobuf field bool bold = 5; - */ - protected $bold = false; - /** - * Whether the text is italic. - * - * Generated from protobuf field bool italic = 6; - */ - protected $italic = false; - /** - * Whether the text is underlined. - * - * Generated from protobuf field bool underlined = 7; - */ - protected $underlined = false; - /** - * Whether the text is strikethrough. This feature is not supported yet. - * - * Generated from protobuf field bool strikeout = 8; - */ - protected $strikeout = false; - /** - * Whether the text is a subscript. This feature is not supported yet. - * - * Generated from protobuf field bool subscript = 9; - */ - protected $subscript = false; - /** - * Whether the text is a superscript. This feature is not supported yet. - * - * Generated from protobuf field bool superscript = 10; - */ - protected $superscript = false; - /** - * Whether the text is in small caps. This feature is not supported yet. - * - * Generated from protobuf field bool smallcaps = 11; - */ - protected $smallcaps = false; - /** - * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). - * Normal is `400`, bold is `700`. - * - * Generated from protobuf field int32 font_weight = 12; - */ - protected $font_weight = 0; - /** - * Whether the text is handwritten. - * - * Generated from protobuf field bool handwritten = 13; - */ - protected $handwritten = false; - /** - * Color of the text. - * - * Generated from protobuf field .google.type.Color text_color = 14; - */ - protected $text_color = null; - /** - * Color of the background. - * - * Generated from protobuf field .google.type.Color background_color = 15; - */ - protected $background_color = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $font_size - * Font size in points (`1` point is `¹â„₇₂` inches). - * @type float $pixel_font_size - * Font size in pixels, equal to _unrounded - * [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ - * * _resolution_ ÷ `72.0`. - * @type float $letter_spacing - * Letter spacing in points. - * @type string $font_type - * Name or style of the font. - * @type bool $bold - * Whether the text is bold (equivalent to - * [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] - * is at least `700`). - * @type bool $italic - * Whether the text is italic. - * @type bool $underlined - * Whether the text is underlined. - * @type bool $strikeout - * Whether the text is strikethrough. This feature is not supported yet. - * @type bool $subscript - * Whether the text is a subscript. This feature is not supported yet. - * @type bool $superscript - * Whether the text is a superscript. This feature is not supported yet. - * @type bool $smallcaps - * Whether the text is in small caps. This feature is not supported yet. - * @type int $font_weight - * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). - * Normal is `400`, bold is `700`. - * @type bool $handwritten - * Whether the text is handwritten. - * @type \Google\Type\Color $text_color - * Color of the text. - * @type \Google\Type\Color $background_color - * Color of the background. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Font size in points (`1` point is `¹â„₇₂` inches). - * - * Generated from protobuf field int32 font_size = 1; - * @return int - */ - public function getFontSize() - { - return $this->font_size; - } - - /** - * Font size in points (`1` point is `¹â„₇₂` inches). - * - * Generated from protobuf field int32 font_size = 1; - * @param int $var - * @return $this - */ - public function setFontSize($var) - { - GPBUtil::checkInt32($var); - $this->font_size = $var; - - return $this; - } - - /** - * Font size in pixels, equal to _unrounded - * [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ - * * _resolution_ ÷ `72.0`. - * - * Generated from protobuf field double pixel_font_size = 2; - * @return float - */ - public function getPixelFontSize() - { - return $this->pixel_font_size; - } - - /** - * Font size in pixels, equal to _unrounded - * [font_size][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_size]_ - * * _resolution_ ÷ `72.0`. - * - * Generated from protobuf field double pixel_font_size = 2; - * @param float $var - * @return $this - */ - public function setPixelFontSize($var) - { - GPBUtil::checkDouble($var); - $this->pixel_font_size = $var; - - return $this; - } - - /** - * Letter spacing in points. - * - * Generated from protobuf field double letter_spacing = 3; - * @return float - */ - public function getLetterSpacing() - { - return $this->letter_spacing; - } - - /** - * Letter spacing in points. - * - * Generated from protobuf field double letter_spacing = 3; - * @param float $var - * @return $this - */ - public function setLetterSpacing($var) - { - GPBUtil::checkDouble($var); - $this->letter_spacing = $var; - - return $this; - } - - /** - * Name or style of the font. - * - * Generated from protobuf field string font_type = 4; - * @return string - */ - public function getFontType() - { - return $this->font_type; - } - - /** - * Name or style of the font. - * - * Generated from protobuf field string font_type = 4; - * @param string $var - * @return $this - */ - public function setFontType($var) - { - GPBUtil::checkString($var, True); - $this->font_type = $var; - - return $this; - } - - /** - * Whether the text is bold (equivalent to - * [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] - * is at least `700`). - * - * Generated from protobuf field bool bold = 5; - * @return bool - */ - public function getBold() - { - return $this->bold; - } - - /** - * Whether the text is bold (equivalent to - * [font_weight][google.cloud.documentai.v1.Document.Page.Token.StyleInfo.font_weight] - * is at least `700`). - * - * Generated from protobuf field bool bold = 5; - * @param bool $var - * @return $this - */ - public function setBold($var) - { - GPBUtil::checkBool($var); - $this->bold = $var; - - return $this; - } - - /** - * Whether the text is italic. - * - * Generated from protobuf field bool italic = 6; - * @return bool - */ - public function getItalic() - { - return $this->italic; - } - - /** - * Whether the text is italic. - * - * Generated from protobuf field bool italic = 6; - * @param bool $var - * @return $this - */ - public function setItalic($var) - { - GPBUtil::checkBool($var); - $this->italic = $var; - - return $this; - } - - /** - * Whether the text is underlined. - * - * Generated from protobuf field bool underlined = 7; - * @return bool - */ - public function getUnderlined() - { - return $this->underlined; - } - - /** - * Whether the text is underlined. - * - * Generated from protobuf field bool underlined = 7; - * @param bool $var - * @return $this - */ - public function setUnderlined($var) - { - GPBUtil::checkBool($var); - $this->underlined = $var; - - return $this; - } - - /** - * Whether the text is strikethrough. This feature is not supported yet. - * - * Generated from protobuf field bool strikeout = 8; - * @return bool - */ - public function getStrikeout() - { - return $this->strikeout; - } - - /** - * Whether the text is strikethrough. This feature is not supported yet. - * - * Generated from protobuf field bool strikeout = 8; - * @param bool $var - * @return $this - */ - public function setStrikeout($var) - { - GPBUtil::checkBool($var); - $this->strikeout = $var; - - return $this; - } - - /** - * Whether the text is a subscript. This feature is not supported yet. - * - * Generated from protobuf field bool subscript = 9; - * @return bool - */ - public function getSubscript() - { - return $this->subscript; - } - - /** - * Whether the text is a subscript. This feature is not supported yet. - * - * Generated from protobuf field bool subscript = 9; - * @param bool $var - * @return $this - */ - public function setSubscript($var) - { - GPBUtil::checkBool($var); - $this->subscript = $var; - - return $this; - } - - /** - * Whether the text is a superscript. This feature is not supported yet. - * - * Generated from protobuf field bool superscript = 10; - * @return bool - */ - public function getSuperscript() - { - return $this->superscript; - } - - /** - * Whether the text is a superscript. This feature is not supported yet. - * - * Generated from protobuf field bool superscript = 10; - * @param bool $var - * @return $this - */ - public function setSuperscript($var) - { - GPBUtil::checkBool($var); - $this->superscript = $var; - - return $this; - } - - /** - * Whether the text is in small caps. This feature is not supported yet. - * - * Generated from protobuf field bool smallcaps = 11; - * @return bool - */ - public function getSmallcaps() - { - return $this->smallcaps; - } - - /** - * Whether the text is in small caps. This feature is not supported yet. - * - * Generated from protobuf field bool smallcaps = 11; - * @param bool $var - * @return $this - */ - public function setSmallcaps($var) - { - GPBUtil::checkBool($var); - $this->smallcaps = $var; - - return $this; - } - - /** - * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). - * Normal is `400`, bold is `700`. - * - * Generated from protobuf field int32 font_weight = 12; - * @return int - */ - public function getFontWeight() - { - return $this->font_weight; - } - - /** - * TrueType weight on a scale `100` (thin) to `1000` (ultra-heavy). - * Normal is `400`, bold is `700`. - * - * Generated from protobuf field int32 font_weight = 12; - * @param int $var - * @return $this - */ - public function setFontWeight($var) - { - GPBUtil::checkInt32($var); - $this->font_weight = $var; - - return $this; - } - - /** - * Whether the text is handwritten. - * - * Generated from protobuf field bool handwritten = 13; - * @return bool - */ - public function getHandwritten() - { - return $this->handwritten; - } - - /** - * Whether the text is handwritten. - * - * Generated from protobuf field bool handwritten = 13; - * @param bool $var - * @return $this - */ - public function setHandwritten($var) - { - GPBUtil::checkBool($var); - $this->handwritten = $var; - - return $this; - } - - /** - * Color of the text. - * - * Generated from protobuf field .google.type.Color text_color = 14; - * @return \Google\Type\Color|null - */ - public function getTextColor() - { - return $this->text_color; - } - - public function hasTextColor() - { - return isset($this->text_color); - } - - public function clearTextColor() - { - unset($this->text_color); - } - - /** - * Color of the text. - * - * Generated from protobuf field .google.type.Color text_color = 14; - * @param \Google\Type\Color $var - * @return $this - */ - public function setTextColor($var) - { - GPBUtil::checkMessage($var, \Google\Type\Color::class); - $this->text_color = $var; - - return $this; - } - - /** - * Color of the background. - * - * Generated from protobuf field .google.type.Color background_color = 15; - * @return \Google\Type\Color|null - */ - public function getBackgroundColor() - { - return $this->background_color; - } - - public function hasBackgroundColor() - { - return isset($this->background_color); - } - - public function clearBackgroundColor() - { - unset($this->background_color); - } - - /** - * Color of the background. - * - * Generated from protobuf field .google.type.Color background_color = 15; - * @param \Google\Type\Color $var - * @return $this - */ - public function setBackgroundColor($var) - { - GPBUtil::checkMessage($var, \Google\Type\Color::class); - $this->background_color = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(StyleInfo::class, \Google\Cloud\DocumentAI\V1\Document_Page_Token_StyleInfo::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/VisualElement.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/VisualElement.php deleted file mode 100644 index ef372b3c73a9..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Page/VisualElement.php +++ /dev/null @@ -1,157 +0,0 @@ -google.cloud.documentai.v1.Document.Page.VisualElement - */ -class VisualElement extends \Google\Protobuf\Internal\Message -{ - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - */ - protected $layout = null; - /** - * Type of the - * [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement]. - * - * Generated from protobuf field string type = 2; - */ - protected $type = ''; - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 3; - */ - private $detected_languages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Page\Layout $layout - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement]. - * @type string $type - * Type of the - * [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement]. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $detected_languages - * A list of detected languages together with confidence. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\Page\Layout|null - */ - public function getLayout() - { - return $this->layout; - } - - public function hasLayout() - { - return isset($this->layout); - } - - public function clearLayout() - { - unset($this->layout); - } - - /** - * [Layout][google.cloud.documentai.v1.Document.Page.Layout] for - * [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Page.Layout layout = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\Page\Layout $var - * @return $this - */ - public function setLayout($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Page\Layout::class); - $this->layout = $var; - - return $this; - } - - /** - * Type of the - * [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement]. - * - * Generated from protobuf field string type = 2; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Type of the - * [VisualElement][google.cloud.documentai.v1.Document.Page.VisualElement]. - * - * 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; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDetectedLanguages() - { - return $this->detected_languages; - } - - /** - * A list of detected languages together with confidence. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Page.DetectedLanguage detected_languages = 3; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDetectedLanguages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Page\DetectedLanguage::class); - $this->detected_languages = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(VisualElement::class, \Google\Cloud\DocumentAI\V1\Document_Page_VisualElement::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor.php deleted file mode 100644 index 34337ca820ce..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor.php +++ /dev/null @@ -1,73 +0,0 @@ -google.cloud.documentai.v1.Document.PageAnchor - */ -class PageAnchor extends \Google\Protobuf\Internal\Message -{ - /** - * One or more references to visual page elements - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.PageAnchor.PageRef page_refs = 1; - */ - private $page_refs; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Document\PageAnchor\PageRef>|\Google\Protobuf\Internal\RepeatedField $page_refs - * One or more references to visual page elements - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * One or more references to visual page elements - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.PageAnchor.PageRef page_refs = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPageRefs() - { - return $this->page_refs; - } - - /** - * One or more references to visual page elements - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.PageAnchor.PageRef page_refs = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Document\PageAnchor\PageRef>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPageRefs($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\PageAnchor\PageRef::class); - $this->page_refs = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PageAnchor::class, \Google\Cloud\DocumentAI\V1\Document_PageAnchor::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor/PageRef.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor/PageRef.php deleted file mode 100644 index 13dbd61e2050..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor/PageRef.php +++ /dev/null @@ -1,265 +0,0 @@ -google.cloud.documentai.v1.Document.PageAnchor.PageRef - */ -class PageRef extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Index into the - * [Document.pages][google.cloud.documentai.v1.Document.pages] element, - * for example using - * `[Document.pages][page_refs.page]` to locate the related page element. - * This field is skipped when its value is the default `0`. See - * https://developers.google.com/protocol-buffers/docs/proto3#json. - * - * Generated from protobuf field int64 page = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $page = 0; - /** - * Optional. The type of the layout element that is being referenced if - * any. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $layout_type = 0; - /** - * Optional. Deprecated. Use - * [PageRef.bounding_poly][google.cloud.documentai.v1.Document.PageAnchor.PageRef.bounding_poly] - * instead. - * - * Generated from protobuf field string layout_id = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @deprecated - */ - protected $layout_id = ''; - /** - * Optional. Identifies the bounding polygon of a layout element on the - * page. If `layout_type` is set, the bounding polygon must be exactly the - * same to the layout element it's referring to. - * - * Generated from protobuf field .google.cloud.documentai.v1.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bounding_poly = null; - /** - * Optional. Confidence of detected page element, if applicable. Range - * `[0, 1]`. - * - * Generated from protobuf field float confidence = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $confidence = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $page - * Required. Index into the - * [Document.pages][google.cloud.documentai.v1.Document.pages] element, - * for example using - * `[Document.pages][page_refs.page]` to locate the related page element. - * This field is skipped when its value is the default `0`. See - * https://developers.google.com/protocol-buffers/docs/proto3#json. - * @type int $layout_type - * Optional. The type of the layout element that is being referenced if - * any. - * @type string $layout_id - * Optional. Deprecated. Use - * [PageRef.bounding_poly][google.cloud.documentai.v1.Document.PageAnchor.PageRef.bounding_poly] - * instead. - * @type \Google\Cloud\DocumentAI\V1\BoundingPoly $bounding_poly - * Optional. Identifies the bounding polygon of a layout element on the - * page. If `layout_type` is set, the bounding polygon must be exactly the - * same to the layout element it's referring to. - * @type float $confidence - * Optional. Confidence of detected page element, if applicable. Range - * `[0, 1]`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Required. Index into the - * [Document.pages][google.cloud.documentai.v1.Document.pages] element, - * for example using - * `[Document.pages][page_refs.page]` to locate the related page element. - * This field is skipped when its value is the default `0`. See - * https://developers.google.com/protocol-buffers/docs/proto3#json. - * - * Generated from protobuf field int64 page = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int|string - */ - public function getPage() - { - return $this->page; - } - - /** - * Required. Index into the - * [Document.pages][google.cloud.documentai.v1.Document.pages] element, - * for example using - * `[Document.pages][page_refs.page]` to locate the related page element. - * This field is skipped when its value is the default `0`. See - * https://developers.google.com/protocol-buffers/docs/proto3#json. - * - * Generated from protobuf field int64 page = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int|string $var - * @return $this - */ - public function setPage($var) - { - GPBUtil::checkInt64($var); - $this->page = $var; - - return $this; - } - - /** - * Optional. The type of the layout element that is being referenced if - * any. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getLayoutType() - { - return $this->layout_type; - } - - /** - * Optional. The type of the layout element that is being referenced if - * any. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType layout_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setLayoutType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\Document\PageAnchor\PageRef\LayoutType::class); - $this->layout_type = $var; - - return $this; - } - - /** - * Optional. Deprecated. Use - * [PageRef.bounding_poly][google.cloud.documentai.v1.Document.PageAnchor.PageRef.bounding_poly] - * instead. - * - * Generated from protobuf field string layout_id = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @return string - * @deprecated - */ - public function getLayoutId() - { - @trigger_error('layout_id is deprecated.', E_USER_DEPRECATED); - return $this->layout_id; - } - - /** - * Optional. Deprecated. Use - * [PageRef.bounding_poly][google.cloud.documentai.v1.Document.PageAnchor.PageRef.bounding_poly] - * instead. - * - * Generated from protobuf field string layout_id = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - * @deprecated - */ - public function setLayoutId($var) - { - @trigger_error('layout_id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->layout_id = $var; - - return $this; - } - - /** - * Optional. Identifies the bounding polygon of a layout element on the - * page. If `layout_type` is set, the bounding polygon must be exactly the - * same to the layout element it's referring to. - * - * Generated from protobuf field .google.cloud.documentai.v1.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\BoundingPoly|null - */ - public function getBoundingPoly() - { - return $this->bounding_poly; - } - - public function hasBoundingPoly() - { - return isset($this->bounding_poly); - } - - public function clearBoundingPoly() - { - unset($this->bounding_poly); - } - - /** - * Optional. Identifies the bounding polygon of a layout element on the - * page. If `layout_type` is set, the bounding polygon must be exactly the - * same to the layout element it's referring to. - * - * Generated from protobuf field .google.cloud.documentai.v1.BoundingPoly bounding_poly = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\BoundingPoly $var - * @return $this - */ - public function setBoundingPoly($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\BoundingPoly::class); - $this->bounding_poly = $var; - - return $this; - } - - /** - * Optional. Confidence of detected page element, if applicable. Range - * `[0, 1]`. - * - * Generated from protobuf field float confidence = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getConfidence() - { - return $this->confidence; - } - - /** - * Optional. Confidence of detected page element, if applicable. Range - * `[0, 1]`. - * - * Generated from protobuf field float confidence = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @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(PageRef::class, \Google\Cloud\DocumentAI\V1\Document_PageAnchor_PageRef::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor/PageRef/LayoutType.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor/PageRef/LayoutType.php deleted file mode 100644 index 59f60718b807..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/PageAnchor/PageRef/LayoutType.php +++ /dev/null @@ -1,112 +0,0 @@ -google.cloud.documentai.v1.Document.PageAnchor.PageRef.LayoutType - */ -class LayoutType -{ - /** - * Layout Unspecified. - * - * Generated from protobuf enum LAYOUT_TYPE_UNSPECIFIED = 0; - */ - const LAYOUT_TYPE_UNSPECIFIED = 0; - /** - * References a - * [Page.blocks][google.cloud.documentai.v1.Document.Page.blocks] - * element. - * - * Generated from protobuf enum BLOCK = 1; - */ - const BLOCK = 1; - /** - * References a - * [Page.paragraphs][google.cloud.documentai.v1.Document.Page.paragraphs] - * element. - * - * Generated from protobuf enum PARAGRAPH = 2; - */ - const PARAGRAPH = 2; - /** - * References a - * [Page.lines][google.cloud.documentai.v1.Document.Page.lines] element. - * - * Generated from protobuf enum LINE = 3; - */ - const LINE = 3; - /** - * References a - * [Page.tokens][google.cloud.documentai.v1.Document.Page.tokens] - * element. - * - * Generated from protobuf enum TOKEN = 4; - */ - const TOKEN = 4; - /** - * References a - * [Page.visual_elements][google.cloud.documentai.v1.Document.Page.visual_elements] - * element. - * - * Generated from protobuf enum VISUAL_ELEMENT = 5; - */ - const VISUAL_ELEMENT = 5; - /** - * Refrrences a - * [Page.tables][google.cloud.documentai.v1.Document.Page.tables] - * element. - * - * Generated from protobuf enum TABLE = 6; - */ - const TABLE = 6; - /** - * References a - * [Page.form_fields][google.cloud.documentai.v1.Document.Page.form_fields] - * element. - * - * Generated from protobuf enum FORM_FIELD = 7; - */ - const FORM_FIELD = 7; - - private static $valueToName = [ - self::LAYOUT_TYPE_UNSPECIFIED => 'LAYOUT_TYPE_UNSPECIFIED', - self::BLOCK => 'BLOCK', - self::PARAGRAPH => 'PARAGRAPH', - self::LINE => 'LINE', - self::TOKEN => 'TOKEN', - self::VISUAL_ELEMENT => 'VISUAL_ELEMENT', - self::TABLE => 'TABLE', - self::FORM_FIELD => 'FORM_FIELD', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutType::class, \Google\Cloud\DocumentAI\V1\Document_PageAnchor_PageRef_LayoutType::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance.php deleted file mode 100644 index 862fada0a40b..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance.php +++ /dev/null @@ -1,187 +0,0 @@ -google.cloud.documentai.v1.Document.Provenance - */ -class Provenance extends \Google\Protobuf\Internal\Message -{ - /** - * The index of the revision that produced this element. - * - * Generated from protobuf field int32 revision = 1 [deprecated = true]; - * @deprecated - */ - protected $revision = 0; - /** - * The Id of this operation. Needs to be unique within the scope of the - * revision. - * - * Generated from protobuf field int32 id = 2 [deprecated = true]; - * @deprecated - */ - protected $id = 0; - /** - * References to the original elements that are replaced. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3; - */ - private $parents; - /** - * The type of provenance operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance.OperationType type = 4; - */ - protected $type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $revision - * The index of the revision that produced this element. - * @type int $id - * The Id of this operation. Needs to be unique within the scope of the - * revision. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Provenance\PBParent>|\Google\Protobuf\Internal\RepeatedField $parents - * References to the original elements that are replaced. - * @type int $type - * The type of provenance operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * The index of the revision that produced this element. - * - * Generated from protobuf field int32 revision = 1 [deprecated = true]; - * @return int - * @deprecated - */ - public function getRevision() - { - @trigger_error('revision is deprecated.', E_USER_DEPRECATED); - return $this->revision; - } - - /** - * The index of the revision that produced this element. - * - * Generated from protobuf field int32 revision = 1 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setRevision($var) - { - @trigger_error('revision is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->revision = $var; - - return $this; - } - - /** - * The Id of this operation. Needs to be unique within the scope of the - * revision. - * - * Generated from protobuf field int32 id = 2 [deprecated = true]; - * @return int - * @deprecated - */ - public function getId() - { - @trigger_error('id is deprecated.', E_USER_DEPRECATED); - return $this->id; - } - - /** - * The Id of this operation. Needs to be unique within the scope of the - * revision. - * - * Generated from protobuf field int32 id = 2 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setId($var) - { - @trigger_error('id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->id = $var; - - return $this; - } - - /** - * References to the original elements that are replaced. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParents() - { - return $this->parents; - } - - /** - * References to the original elements that are replaced. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Provenance\PBParent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Provenance\PBParent::class); - $this->parents = $arr; - - return $this; - } - - /** - * The type of provenance operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance.OperationType type = 4; - * @return int - */ - public function getType() - { - return $this->type; - } - - /** - * The type of provenance operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance.OperationType type = 4; - * @param int $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\Document\Provenance\OperationType::class); - $this->type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Provenance::class, \Google\Cloud\DocumentAI\V1\Document_Provenance::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance/OperationType.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance/OperationType.php deleted file mode 100644 index ff615ad82354..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance/OperationType.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.documentai.v1.Document.Provenance.OperationType - */ -class OperationType -{ - /** - * Operation type unspecified. If no operation is specified a provenance - * entry is simply used to match against a `parent`. - * - * Generated from protobuf enum OPERATION_TYPE_UNSPECIFIED = 0; - */ - const OPERATION_TYPE_UNSPECIFIED = 0; - /** - * Add an element. - * - * Generated from protobuf enum ADD = 1; - */ - const ADD = 1; - /** - * Remove an element identified by `parent`. - * - * Generated from protobuf enum REMOVE = 2; - */ - const REMOVE = 2; - /** - * Updates any fields within the given provenance scope of the message. It - * overwrites the fields rather than replacing them. Use this when you - * want to update a field value of an entity without also updating all the - * child properties. - * - * Generated from protobuf enum UPDATE = 7; - */ - const UPDATE = 7; - /** - * Currently unused. Replace an element identified by `parent`. - * - * Generated from protobuf enum REPLACE = 3; - */ - const REPLACE = 3; - /** - * Deprecated. Request human review for the element identified by - * `parent`. - * - * Generated from protobuf enum EVAL_REQUESTED = 4 [deprecated = true]; - */ - const EVAL_REQUESTED = 4; - /** - * Deprecated. Element is reviewed and approved at human review, - * confidence will be set to 1.0. - * - * Generated from protobuf enum EVAL_APPROVED = 5 [deprecated = true]; - */ - const EVAL_APPROVED = 5; - /** - * Deprecated. Element is skipped in the validation process. - * - * Generated from protobuf enum EVAL_SKIPPED = 6 [deprecated = true]; - */ - const EVAL_SKIPPED = 6; - - private static $valueToName = [ - self::OPERATION_TYPE_UNSPECIFIED => 'OPERATION_TYPE_UNSPECIFIED', - self::ADD => 'ADD', - self::REMOVE => 'REMOVE', - self::UPDATE => 'UPDATE', - self::REPLACE => 'REPLACE', - self::EVAL_REQUESTED => 'EVAL_REQUESTED', - self::EVAL_APPROVED => 'EVAL_APPROVED', - self::EVAL_SKIPPED => 'EVAL_SKIPPED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DocumentAI\V1\Document_Provenance_OperationType::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance/PBParent.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance/PBParent.php deleted file mode 100644 index 97dcd6f8da2f..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Provenance/PBParent.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.documentai.v1.Document.Provenance.Parent - */ -class PBParent extends \Google\Protobuf\Internal\Message -{ - /** - * The index of the index into current revision's parent_ids list. - * - * Generated from protobuf field int32 revision = 1; - */ - protected $revision = 0; - /** - * The index of the parent item in the corresponding item list (eg. list - * of entities, properties within entities, etc.) in the parent revision. - * - * Generated from protobuf field int32 index = 3; - */ - protected $index = 0; - /** - * The id of the parent provenance. - * - * Generated from protobuf field int32 id = 2 [deprecated = true]; - * @deprecated - */ - protected $id = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $revision - * The index of the index into current revision's parent_ids list. - * @type int $index - * The index of the parent item in the corresponding item list (eg. list - * of entities, properties within entities, etc.) in the parent revision. - * @type int $id - * The id of the parent provenance. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * The index of the index into current revision's parent_ids list. - * - * Generated from protobuf field int32 revision = 1; - * @return int - */ - public function getRevision() - { - return $this->revision; - } - - /** - * The index of the index into current revision's parent_ids list. - * - * Generated from protobuf field int32 revision = 1; - * @param int $var - * @return $this - */ - public function setRevision($var) - { - GPBUtil::checkInt32($var); - $this->revision = $var; - - return $this; - } - - /** - * The index of the parent item in the corresponding item list (eg. list - * of entities, properties within entities, etc.) in the parent revision. - * - * Generated from protobuf field int32 index = 3; - * @return int - */ - public function getIndex() - { - return $this->index; - } - - /** - * The index of the parent item in the corresponding item list (eg. list - * of entities, properties within entities, etc.) in the parent revision. - * - * Generated from protobuf field int32 index = 3; - * @param int $var - * @return $this - */ - public function setIndex($var) - { - GPBUtil::checkInt32($var); - $this->index = $var; - - return $this; - } - - /** - * The id of the parent provenance. - * - * Generated from protobuf field int32 id = 2 [deprecated = true]; - * @return int - * @deprecated - */ - public function getId() - { - @trigger_error('id is deprecated.', E_USER_DEPRECATED); - return $this->id; - } - - /** - * The id of the parent provenance. - * - * Generated from protobuf field int32 id = 2 [deprecated = true]; - * @param int $var - * @return $this - * @deprecated - */ - public function setId($var) - { - @trigger_error('id is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkInt32($var); - $this->id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PBParent::class, \Google\Cloud\DocumentAI\V1\Document_Provenance_Parent::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Revision.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Revision.php deleted file mode 100644 index ba22c0925a33..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Revision.php +++ /dev/null @@ -1,336 +0,0 @@ -google.cloud.documentai.v1.Document.Revision - */ -class Revision extends \Google\Protobuf\Internal\Message -{ - /** - * Id of the revision, internally generated by doc proto storage. - * Unique within the context of the document. - * - * Generated from protobuf field string id = 1; - */ - protected $id = ''; - /** - * The revisions that this revision is based on. This can include one or - * more parent (when documents are merged.) This field represents the - * index into the `revisions` field. - * - * Generated from protobuf field repeated int32 parent = 2 [deprecated = true]; - * @deprecated - */ - private $parent; - /** - * The revisions that this revision is based on. Must include all the ids - * that have anything to do with this revision - eg. there are - * `provenance.parent.revision` fields that index into this field. - * - * Generated from protobuf field repeated string parent_ids = 7; - */ - private $parent_ids; - /** - * The time that the revision was created, internally generated by - * doc proto storage at the time of create. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - */ - protected $create_time = null; - /** - * Human Review information of this revision. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6; - */ - protected $human_review = null; - protected $source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $agent - * If the change was made by a person specify the name or id of that - * person. - * @type string $processor - * If the annotation was made by processor identify the processor by its - * resource name. - * @type string $id - * Id of the revision, internally generated by doc proto storage. - * Unique within the context of the document. - * @type array|\Google\Protobuf\Internal\RepeatedField $parent - * The revisions that this revision is based on. This can include one or - * more parent (when documents are merged.) This field represents the - * index into the `revisions` field. - * @type array|\Google\Protobuf\Internal\RepeatedField $parent_ids - * The revisions that this revision is based on. Must include all the ids - * that have anything to do with this revision - eg. there are - * `provenance.parent.revision` fields that index into this field. - * @type \Google\Protobuf\Timestamp $create_time - * The time that the revision was created, internally generated by - * doc proto storage at the time of create. - * @type \Google\Cloud\DocumentAI\V1\Document\Revision\HumanReview $human_review - * Human Review information of this revision. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * If the change was made by a person specify the name or id of that - * person. - * - * Generated from protobuf field string agent = 4; - * @return string - */ - public function getAgent() - { - return $this->readOneof(4); - } - - public function hasAgent() - { - return $this->hasOneof(4); - } - - /** - * If the change was made by a person specify the name or id of that - * person. - * - * Generated from protobuf field string agent = 4; - * @param string $var - * @return $this - */ - public function setAgent($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * If the annotation was made by processor identify the processor by its - * resource name. - * - * Generated from protobuf field string processor = 5; - * @return string - */ - public function getProcessor() - { - return $this->readOneof(5); - } - - public function hasProcessor() - { - return $this->hasOneof(5); - } - - /** - * If the annotation was made by processor identify the processor by its - * resource name. - * - * Generated from protobuf field string processor = 5; - * @param string $var - * @return $this - */ - public function setProcessor($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Id of the revision, internally generated by doc proto storage. - * Unique within the context of the document. - * - * Generated from protobuf field string id = 1; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Id of the revision, internally generated by doc proto storage. - * Unique within the context of the document. - * - * 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 revisions that this revision is based on. This can include one or - * more parent (when documents are merged.) This field represents the - * index into the `revisions` field. - * - * Generated from protobuf field repeated int32 parent = 2 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getParent() - { - @trigger_error('parent is deprecated.', E_USER_DEPRECATED); - return $this->parent; - } - - /** - * The revisions that this revision is based on. This can include one or - * more parent (when documents are merged.) This field represents the - * index into the `revisions` field. - * - * Generated from protobuf field repeated int32 parent = 2 [deprecated = true]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setParent($var) - { - @trigger_error('parent is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->parent = $arr; - - return $this; - } - - /** - * The revisions that this revision is based on. Must include all the ids - * that have anything to do with this revision - eg. there are - * `provenance.parent.revision` fields that index into this field. - * - * Generated from protobuf field repeated string parent_ids = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getParentIds() - { - return $this->parent_ids; - } - - /** - * The revisions that this revision is based on. Must include all the ids - * that have anything to do with this revision - eg. there are - * `provenance.parent.revision` fields that index into this field. - * - * Generated from protobuf field repeated string parent_ids = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setParentIds($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->parent_ids = $arr; - - return $this; - } - - /** - * The time that the revision was created, internally generated by - * doc proto storage at the time of create. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The time that the revision was created, internally generated by - * doc proto storage at the time of create. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Human Review information of this revision. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6; - * @return \Google\Cloud\DocumentAI\V1\Document\Revision\HumanReview|null - */ - public function getHumanReview() - { - return $this->human_review; - } - - public function hasHumanReview() - { - return isset($this->human_review); - } - - public function clearHumanReview() - { - unset($this->human_review); - } - - /** - * Human Review information of this revision. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6; - * @param \Google\Cloud\DocumentAI\V1\Document\Revision\HumanReview $var - * @return $this - */ - public function setHumanReview($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Revision\HumanReview::class); - $this->human_review = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Revision::class, \Google\Cloud\DocumentAI\V1\Document_Revision::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Revision/HumanReview.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Revision/HumanReview.php deleted file mode 100644 index 5ed97f0bafa3..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Revision/HumanReview.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.documentai.v1.Document.Revision.HumanReview - */ -class HumanReview extends \Google\Protobuf\Internal\Message -{ - /** - * Human review state. e.g. `requested`, `succeeded`, `rejected`. - * - * Generated from protobuf field string state = 1; - */ - protected $state = ''; - /** - * A message providing more details about the current state of processing. - * For example, the rejection reason when the state is `rejected`. - * - * Generated from protobuf field string state_message = 2; - */ - protected $state_message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $state - * Human review state. e.g. `requested`, `succeeded`, `rejected`. - * @type string $state_message - * A message providing more details about the current state of processing. - * For example, the rejection reason when the state is `rejected`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Human review state. e.g. `requested`, `succeeded`, `rejected`. - * - * Generated from protobuf field string state = 1; - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * Human review state. e.g. `requested`, `succeeded`, `rejected`. - * - * Generated from protobuf field string state = 1; - * @param string $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkString($var, True); - $this->state = $var; - - return $this; - } - - /** - * A message providing more details about the current state of processing. - * For example, the rejection reason when the state is `rejected`. - * - * Generated from protobuf field string state_message = 2; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * A message providing more details about the current state of processing. - * For example, the rejection reason when the state is `rejected`. - * - * Generated from protobuf field string state_message = 2; - * @param string $var - * @return $this - */ - public function setStateMessage($var) - { - GPBUtil::checkString($var, True); - $this->state_message = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(HumanReview::class, \Google\Cloud\DocumentAI\V1\Document_Revision_HumanReview::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ShardInfo.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ShardInfo.php deleted file mode 100644 index 6d9bb1f585f0..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/ShardInfo.php +++ /dev/null @@ -1,148 +0,0 @@ -google.cloud.documentai.v1.Document.ShardInfo - */ -class ShardInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The 0-based index of this shard. - * - * Generated from protobuf field int64 shard_index = 1; - */ - protected $shard_index = 0; - /** - * Total number of shards. - * - * Generated from protobuf field int64 shard_count = 2; - */ - protected $shard_count = 0; - /** - * The index of the first character in - * [Document.text][google.cloud.documentai.v1.Document.text] in the overall - * document global text. - * - * Generated from protobuf field int64 text_offset = 3; - */ - protected $text_offset = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $shard_index - * The 0-based index of this shard. - * @type int|string $shard_count - * Total number of shards. - * @type int|string $text_offset - * The index of the first character in - * [Document.text][google.cloud.documentai.v1.Document.text] in the overall - * document global text. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * The 0-based index of this shard. - * - * Generated from protobuf field int64 shard_index = 1; - * @return int|string - */ - public function getShardIndex() - { - return $this->shard_index; - } - - /** - * The 0-based index of this shard. - * - * Generated from protobuf field int64 shard_index = 1; - * @param int|string $var - * @return $this - */ - public function setShardIndex($var) - { - GPBUtil::checkInt64($var); - $this->shard_index = $var; - - return $this; - } - - /** - * Total number of shards. - * - * Generated from protobuf field int64 shard_count = 2; - * @return int|string - */ - public function getShardCount() - { - return $this->shard_count; - } - - /** - * Total number of shards. - * - * Generated from protobuf field int64 shard_count = 2; - * @param int|string $var - * @return $this - */ - public function setShardCount($var) - { - GPBUtil::checkInt64($var); - $this->shard_count = $var; - - return $this; - } - - /** - * The index of the first character in - * [Document.text][google.cloud.documentai.v1.Document.text] in the overall - * document global text. - * - * Generated from protobuf field int64 text_offset = 3; - * @return int|string - */ - public function getTextOffset() - { - return $this->text_offset; - } - - /** - * The index of the first character in - * [Document.text][google.cloud.documentai.v1.Document.text] in the overall - * document global text. - * - * Generated from protobuf field int64 text_offset = 3; - * @param int|string $var - * @return $this - */ - public function setTextOffset($var) - { - GPBUtil::checkInt64($var); - $this->text_offset = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ShardInfo::class, \Google\Cloud\DocumentAI\V1\Document_ShardInfo::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Style.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Style.php deleted file mode 100644 index 919a62161e39..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Style.php +++ /dev/null @@ -1,377 +0,0 @@ -google.cloud.documentai.v1.Document.Style - */ -class Style extends \Google\Protobuf\Internal\Message -{ - /** - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - */ - protected $text_anchor = null; - /** - * Text color. - * - * Generated from protobuf field .google.type.Color color = 2; - */ - protected $color = null; - /** - * Text background color. - * - * Generated from protobuf field .google.type.Color background_color = 3; - */ - protected $background_color = null; - /** - * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). - * Possible values are `normal`, `bold`, `bolder`, and `lighter`. - * - * Generated from protobuf field string font_weight = 4; - */ - protected $font_weight = ''; - /** - * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). - * Possible values are `normal`, `italic`, and `oblique`. - * - * Generated from protobuf field string text_style = 5; - */ - protected $text_style = ''; - /** - * [Text - * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). - * Follows CSS standard. - * - * - * Generated from protobuf field string text_decoration = 6; - */ - protected $text_decoration = ''; - /** - * Font size. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; - */ - protected $font_size = null; - /** - * Font family such as `Arial`, `Times New Roman`. - * https://www.w3schools.com/cssref/pr_font_font-family.asp - * - * Generated from protobuf field string font_family = 8; - */ - protected $font_family = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\TextAnchor $text_anchor - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * @type \Google\Type\Color $color - * Text color. - * @type \Google\Type\Color $background_color - * Text background color. - * @type string $font_weight - * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). - * Possible values are `normal`, `bold`, `bolder`, and `lighter`. - * @type string $text_style - * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). - * Possible values are `normal`, `italic`, and `oblique`. - * @type string $text_decoration - * [Text - * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). - * Follows CSS standard. - * - * @type \Google\Cloud\DocumentAI\V1\Document\Style\FontSize $font_size - * Font size. - * @type string $font_family - * Font family such as `Arial`, `Times New Roman`. - * https://www.w3schools.com/cssref/pr_font_font-family.asp - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\TextAnchor|null - */ - public function getTextAnchor() - { - return $this->text_anchor; - } - - public function hasTextAnchor() - { - return isset($this->text_anchor); - } - - public function clearTextAnchor() - { - unset($this->text_anchor); - } - - /** - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\TextAnchor $var - * @return $this - */ - public function setTextAnchor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\TextAnchor::class); - $this->text_anchor = $var; - - return $this; - } - - /** - * Text color. - * - * Generated from protobuf field .google.type.Color color = 2; - * @return \Google\Type\Color|null - */ - public function getColor() - { - return $this->color; - } - - public function hasColor() - { - return isset($this->color); - } - - public function clearColor() - { - unset($this->color); - } - - /** - * Text color. - * - * Generated from protobuf field .google.type.Color color = 2; - * @param \Google\Type\Color $var - * @return $this - */ - public function setColor($var) - { - GPBUtil::checkMessage($var, \Google\Type\Color::class); - $this->color = $var; - - return $this; - } - - /** - * Text background color. - * - * Generated from protobuf field .google.type.Color background_color = 3; - * @return \Google\Type\Color|null - */ - public function getBackgroundColor() - { - return $this->background_color; - } - - public function hasBackgroundColor() - { - return isset($this->background_color); - } - - public function clearBackgroundColor() - { - unset($this->background_color); - } - - /** - * Text background color. - * - * Generated from protobuf field .google.type.Color background_color = 3; - * @param \Google\Type\Color $var - * @return $this - */ - public function setBackgroundColor($var) - { - GPBUtil::checkMessage($var, \Google\Type\Color::class); - $this->background_color = $var; - - return $this; - } - - /** - * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). - * Possible values are `normal`, `bold`, `bolder`, and `lighter`. - * - * Generated from protobuf field string font_weight = 4; - * @return string - */ - public function getFontWeight() - { - return $this->font_weight; - } - - /** - * [Font weight](https://www.w3schools.com/cssref/pr_font_weight.asp). - * Possible values are `normal`, `bold`, `bolder`, and `lighter`. - * - * Generated from protobuf field string font_weight = 4; - * @param string $var - * @return $this - */ - public function setFontWeight($var) - { - GPBUtil::checkString($var, True); - $this->font_weight = $var; - - return $this; - } - - /** - * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). - * Possible values are `normal`, `italic`, and `oblique`. - * - * Generated from protobuf field string text_style = 5; - * @return string - */ - public function getTextStyle() - { - return $this->text_style; - } - - /** - * [Text style](https://www.w3schools.com/cssref/pr_font_font-style.asp). - * Possible values are `normal`, `italic`, and `oblique`. - * - * Generated from protobuf field string text_style = 5; - * @param string $var - * @return $this - */ - public function setTextStyle($var) - { - GPBUtil::checkString($var, True); - $this->text_style = $var; - - return $this; - } - - /** - * [Text - * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). - * Follows CSS standard. - * - * - * Generated from protobuf field string text_decoration = 6; - * @return string - */ - public function getTextDecoration() - { - return $this->text_decoration; - } - - /** - * [Text - * decoration](https://www.w3schools.com/cssref/pr_text_text-decoration.asp). - * Follows CSS standard. - * - * - * Generated from protobuf field string text_decoration = 6; - * @param string $var - * @return $this - */ - public function setTextDecoration($var) - { - GPBUtil::checkString($var, True); - $this->text_decoration = $var; - - return $this; - } - - /** - * Font size. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; - * @return \Google\Cloud\DocumentAI\V1\Document\Style\FontSize|null - */ - public function getFontSize() - { - return $this->font_size; - } - - public function hasFontSize() - { - return isset($this->font_size); - } - - public function clearFontSize() - { - unset($this->font_size); - } - - /** - * Font size. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.Style.FontSize font_size = 7; - * @param \Google\Cloud\DocumentAI\V1\Document\Style\FontSize $var - * @return $this - */ - public function setFontSize($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\Style\FontSize::class); - $this->font_size = $var; - - return $this; - } - - /** - * Font family such as `Arial`, `Times New Roman`. - * https://www.w3schools.com/cssref/pr_font_font-family.asp - * - * Generated from protobuf field string font_family = 8; - * @return string - */ - public function getFontFamily() - { - return $this->font_family; - } - - /** - * Font family such as `Arial`, `Times New Roman`. - * https://www.w3schools.com/cssref/pr_font_font-family.asp - * - * Generated from protobuf field string font_family = 8; - * @param string $var - * @return $this - */ - public function setFontFamily($var) - { - GPBUtil::checkString($var, True); - $this->font_family = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Style::class, \Google\Cloud\DocumentAI\V1\Document_Style::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Style/FontSize.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Style/FontSize.php deleted file mode 100644 index 0df1bbb3866b..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/Style/FontSize.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.documentai.v1.Document.Style.FontSize - */ -class FontSize extends \Google\Protobuf\Internal\Message -{ - /** - * Font size for the text. - * - * Generated from protobuf field float size = 1; - */ - protected $size = 0.0; - /** - * Unit for the font size. Follows CSS naming (such as `in`, `px`, and - * `pt`). - * - * Generated from protobuf field string unit = 2; - */ - protected $unit = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $size - * Font size for the text. - * @type string $unit - * Unit for the font size. Follows CSS naming (such as `in`, `px`, and - * `pt`). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Font size for the text. - * - * Generated from protobuf field float size = 1; - * @return float - */ - public function getSize() - { - return $this->size; - } - - /** - * Font size for the text. - * - * Generated from protobuf field float size = 1; - * @param float $var - * @return $this - */ - public function setSize($var) - { - GPBUtil::checkFloat($var); - $this->size = $var; - - return $this; - } - - /** - * Unit for the font size. Follows CSS naming (such as `in`, `px`, and - * `pt`). - * - * Generated from protobuf field string unit = 2; - * @return string - */ - public function getUnit() - { - return $this->unit; - } - - /** - * Unit for the font size. Follows CSS naming (such as `in`, `px`, and - * `pt`). - * - * Generated from protobuf field string unit = 2; - * @param string $var - * @return $this - */ - public function setUnit($var) - { - GPBUtil::checkString($var, True); - $this->unit = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FontSize::class, \Google\Cloud\DocumentAI\V1\Document_Style_FontSize::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextAnchor.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextAnchor.php deleted file mode 100644 index d0ae3fa3ca95..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextAnchor.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.documentai.v1.Document.TextAnchor - */ -class TextAnchor extends \Google\Protobuf\Internal\Message -{ - /** - * The text segments from the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; - */ - private $text_segments; - /** - * Contains the content of the text span so that users do - * not have to look it up in the text_segments. It is always - * populated for formFields. - * - * Generated from protobuf field string content = 2; - */ - protected $content = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Document\TextAnchor\TextSegment>|\Google\Protobuf\Internal\RepeatedField $text_segments - * The text segments from the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * @type string $content - * Contains the content of the text span so that users do - * not have to look it up in the text_segments. It is always - * populated for formFields. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * The text segments from the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTextSegments() - { - return $this->text_segments; - } - - /** - * The text segments from the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Document\TextAnchor\TextSegment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTextSegments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\TextAnchor\TextSegment::class); - $this->text_segments = $arr; - - return $this; - } - - /** - * Contains the content of the text span so that users do - * not have to look it up in the text_segments. It is always - * populated for formFields. - * - * Generated from protobuf field string content = 2; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Contains the content of the text span so that users do - * not have to look it up in the text_segments. It is always - * populated for formFields. - * - * 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; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TextAnchor::class, \Google\Cloud\DocumentAI\V1\Document_TextAnchor::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextAnchor/TextSegment.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextAnchor/TextSegment.php deleted file mode 100644 index 7f67fa87c9e7..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextAnchor/TextSegment.php +++ /dev/null @@ -1,124 +0,0 @@ -google.cloud.documentai.v1.Document.TextAnchor.TextSegment - */ -class TextSegment extends \Google\Protobuf\Internal\Message -{ - /** - * [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] - * start UTF-8 char index in the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field int64 start_index = 1; - */ - protected $start_index = 0; - /** - * [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] - * half open end UTF-8 char index in the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field int64 end_index = 2; - */ - protected $end_index = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $start_index - * [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] - * start UTF-8 char index in the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * @type int|string $end_index - * [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] - * half open end UTF-8 char index in the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] - * start UTF-8 char index in the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field int64 start_index = 1; - * @return int|string - */ - public function getStartIndex() - { - return $this->start_index; - } - - /** - * [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] - * start UTF-8 char index in the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field int64 start_index = 1; - * @param int|string $var - * @return $this - */ - public function setStartIndex($var) - { - GPBUtil::checkInt64($var); - $this->start_index = $var; - - return $this; - } - - /** - * [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] - * half open end UTF-8 char index in the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field int64 end_index = 2; - * @return int|string - */ - public function getEndIndex() - { - return $this->end_index; - } - - /** - * [TextSegment][google.cloud.documentai.v1.Document.TextAnchor.TextSegment] - * half open end UTF-8 char index in the - * [Document.text][google.cloud.documentai.v1.Document.text]. - * - * Generated from protobuf field int64 end_index = 2; - * @param int|string $var - * @return $this - */ - public function setEndIndex($var) - { - GPBUtil::checkInt64($var); - $this->end_index = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TextSegment::class, \Google\Cloud\DocumentAI\V1\Document_TextAnchor_TextSegment::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextChange.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextChange.php deleted file mode 100644 index ed6ad16e5623..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Document/TextChange.php +++ /dev/null @@ -1,173 +0,0 @@ -google.cloud.documentai.v1.Document.TextChange - */ -class TextChange extends \Google\Protobuf\Internal\Message -{ - /** - * Provenance of the correction. - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. There can - * only be a single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - */ - protected $text_anchor = null; - /** - * The text that replaces the text identified in the `text_anchor`. - * - * Generated from protobuf field string changed_text = 2; - */ - protected $changed_text = ''; - /** - * The history of this annotation. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @deprecated - */ - private $provenance; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document\TextAnchor $text_anchor - * Provenance of the correction. - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. There can - * only be a single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - * @type string $changed_text - * The text that replaces the text identified in the `text_anchor`. - * @type array<\Google\Cloud\DocumentAI\V1\Document\Provenance>|\Google\Protobuf\Internal\RepeatedField $provenance - * The history of this annotation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Document::initOnce(); - parent::__construct($data); - } - - /** - * Provenance of the correction. - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. There can - * only be a single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * @return \Google\Cloud\DocumentAI\V1\Document\TextAnchor|null - */ - public function getTextAnchor() - { - return $this->text_anchor; - } - - public function hasTextAnchor() - { - return isset($this->text_anchor); - } - - public function clearTextAnchor() - { - unset($this->text_anchor); - } - - /** - * Provenance of the correction. - * Text anchor indexing into the - * [Document.text][google.cloud.documentai.v1.Document.text]. There can - * only be a single `TextAnchor.text_segments` element. If the start and - * end index of the text segment are the same, the text change is inserted - * before that index. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document.TextAnchor text_anchor = 1; - * @param \Google\Cloud\DocumentAI\V1\Document\TextAnchor $var - * @return $this - */ - public function setTextAnchor($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document\TextAnchor::class); - $this->text_anchor = $var; - - return $this; - } - - /** - * The text that replaces the text identified in the `text_anchor`. - * - * Generated from protobuf field string changed_text = 2; - * @return string - */ - public function getChangedText() - { - return $this->changed_text; - } - - /** - * The text that replaces the text identified in the `text_anchor`. - * - * Generated from protobuf field string changed_text = 2; - * @param string $var - * @return $this - */ - public function setChangedText($var) - { - GPBUtil::checkString($var, True); - $this->changed_text = $var; - - return $this; - } - - /** - * The history of this annotation. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @return \Google\Protobuf\Internal\RepeatedField - * @deprecated - */ - public function getProvenance() - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - return $this->provenance; - } - - /** - * The history of this annotation. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Provenance provenance = 3 [deprecated = true]; - * @param array<\Google\Cloud\DocumentAI\V1\Document\Provenance>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - * @deprecated - */ - public function setProvenance($var) - { - @trigger_error('provenance is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Document\Provenance::class); - $this->provenance = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TextChange::class, \Google\Cloud\DocumentAI\V1\Document_TextChange::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig.php deleted file mode 100644 index d7f41a08760d..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.documentai.v1.DocumentOutputConfig - */ -class DocumentOutputConfig extends \Google\Protobuf\Internal\Message -{ - protected $destination; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\DocumentOutputConfig\GcsOutputConfig $gcs_output_config - * Output config to write the results to Cloud Storage. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * Output config to write the results to Cloud Storage. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1; - * @return \Google\Cloud\DocumentAI\V1\DocumentOutputConfig\GcsOutputConfig|null - */ - public function getGcsOutputConfig() - { - return $this->readOneof(1); - } - - public function hasGcsOutputConfig() - { - return $this->hasOneof(1); - } - - /** - * Output config to write the results to Cloud Storage. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig gcs_output_config = 1; - * @param \Google\Cloud\DocumentAI\V1\DocumentOutputConfig\GcsOutputConfig $var - * @return $this - */ - public function setGcsOutputConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\DocumentOutputConfig\GcsOutputConfig::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getDestination() - { - return $this->whichOneof("destination"); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig/GcsOutputConfig.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig/GcsOutputConfig.php deleted file mode 100644 index cbbd78f0a971..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig/GcsOutputConfig.php +++ /dev/null @@ -1,166 +0,0 @@ -google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig - */ -class GcsOutputConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The Cloud Storage uri (a directory) of the output. - * - * Generated from protobuf field string gcs_uri = 1; - */ - protected $gcs_uri = ''; - /** - * Specifies which fields to include in the output documents. - * Only supports top level document and pages field so it must be in the - * form of `{document_field_name}` or `pages.{page_field_name}`. - * - * Generated from protobuf field .google.protobuf.FieldMask field_mask = 2; - */ - protected $field_mask = null; - /** - * Specifies the sharding config for the output document. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3; - */ - protected $sharding_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_uri - * The Cloud Storage uri (a directory) of the output. - * @type \Google\Protobuf\FieldMask $field_mask - * Specifies which fields to include in the output documents. - * Only supports top level document and pages field so it must be in the - * form of `{document_field_name}` or `pages.{page_field_name}`. - * @type \Google\Cloud\DocumentAI\V1\DocumentOutputConfig\GcsOutputConfig\ShardingConfig $sharding_config - * Specifies the sharding config for the output document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Storage uri (a directory) of the output. - * - * Generated from protobuf field string gcs_uri = 1; - * @return string - */ - public function getGcsUri() - { - return $this->gcs_uri; - } - - /** - * The Cloud Storage uri (a directory) of the output. - * - * Generated from protobuf field string gcs_uri = 1; - * @param string $var - * @return $this - */ - public function setGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->gcs_uri = $var; - - return $this; - } - - /** - * Specifies which fields to include in the output documents. - * Only supports top level document and pages field so it must be in the - * form of `{document_field_name}` or `pages.{page_field_name}`. - * - * Generated from protobuf field .google.protobuf.FieldMask field_mask = 2; - * @return \Google\Protobuf\FieldMask|null - */ - public function getFieldMask() - { - return $this->field_mask; - } - - public function hasFieldMask() - { - return isset($this->field_mask); - } - - public function clearFieldMask() - { - unset($this->field_mask); - } - - /** - * Specifies which fields to include in the output documents. - * Only supports top level document and pages field so it must be in the - * form of `{document_field_name}` or `pages.{page_field_name}`. - * - * Generated from protobuf field .google.protobuf.FieldMask field_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setFieldMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->field_mask = $var; - - return $this; - } - - /** - * Specifies the sharding config for the output document. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3; - * @return \Google\Cloud\DocumentAI\V1\DocumentOutputConfig\GcsOutputConfig\ShardingConfig|null - */ - public function getShardingConfig() - { - return $this->sharding_config; - } - - public function hasShardingConfig() - { - return isset($this->sharding_config); - } - - public function clearShardingConfig() - { - unset($this->sharding_config); - } - - /** - * Specifies the sharding config for the output document. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig sharding_config = 3; - * @param \Google\Cloud\DocumentAI\V1\DocumentOutputConfig\GcsOutputConfig\ShardingConfig $var - * @return $this - */ - public function setShardingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\DocumentOutputConfig\GcsOutputConfig\ShardingConfig::class); - $this->sharding_config = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GcsOutputConfig::class, \Google\Cloud\DocumentAI\V1\DocumentOutputConfig_GcsOutputConfig::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig/GcsOutputConfig/ShardingConfig.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig/GcsOutputConfig/ShardingConfig.php deleted file mode 100644 index 9764b5c850c0..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentOutputConfig/GcsOutputConfig/ShardingConfig.php +++ /dev/null @@ -1,104 +0,0 @@ -google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig - */ -class ShardingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * The number of pages per shard. - * - * Generated from protobuf field int32 pages_per_shard = 1; - */ - protected $pages_per_shard = 0; - /** - * The number of overlapping pages between consecutive shards. - * - * Generated from protobuf field int32 pages_overlap = 2; - */ - protected $pages_overlap = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $pages_per_shard - * The number of pages per shard. - * @type int $pages_overlap - * The number of overlapping pages between consecutive shards. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * The number of pages per shard. - * - * Generated from protobuf field int32 pages_per_shard = 1; - * @return int - */ - public function getPagesPerShard() - { - return $this->pages_per_shard; - } - - /** - * The number of pages per shard. - * - * Generated from protobuf field int32 pages_per_shard = 1; - * @param int $var - * @return $this - */ - public function setPagesPerShard($var) - { - GPBUtil::checkInt32($var); - $this->pages_per_shard = $var; - - return $this; - } - - /** - * The number of overlapping pages between consecutive shards. - * - * Generated from protobuf field int32 pages_overlap = 2; - * @return int - */ - public function getPagesOverlap() - { - return $this->pages_overlap; - } - - /** - * The number of overlapping pages between consecutive shards. - * - * Generated from protobuf field int32 pages_overlap = 2; - * @param int $var - * @return $this - */ - public function setPagesOverlap($var) - { - GPBUtil::checkInt32($var); - $this->pages_overlap = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ShardingConfig::class, \Google\Cloud\DocumentAI\V1\DocumentOutputConfig_GcsOutputConfig_ShardingConfig::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema.php deleted file mode 100644 index 13b434f2f8a4..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema.php +++ /dev/null @@ -1,179 +0,0 @@ -google.cloud.documentai.v1.DocumentSchema - */ -class DocumentSchema extends \Google\Protobuf\Internal\Message -{ - /** - * Display name to show to users. - * - * Generated from protobuf field string display_name = 1; - */ - protected $display_name = ''; - /** - * Description of the schema. - * - * Generated from protobuf field string description = 2; - */ - protected $description = ''; - /** - * Entity types of the schema. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; - */ - private $entity_types; - /** - * Metadata of the schema. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4; - */ - protected $metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $display_name - * Display name to show to users. - * @type string $description - * Description of the schema. - * @type array<\Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType>|\Google\Protobuf\Internal\RepeatedField $entity_types - * Entity types of the schema. - * @type \Google\Cloud\DocumentAI\V1\DocumentSchema\Metadata $metadata - * Metadata of the schema. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentSchema::initOnce(); - parent::__construct($data); - } - - /** - * Display name to show to users. - * - * Generated from protobuf field string display_name = 1; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Display name to show to users. - * - * 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; - } - - /** - * Description of the schema. - * - * Generated from protobuf field string description = 2; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Description of the schema. - * - * 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; - } - - /** - * Entity types of the schema. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEntityTypes() - { - return $this->entity_types; - } - - /** - * Entity types of the schema. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.DocumentSchema.EntityType entity_types = 3; - * @param array<\Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEntityTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType::class); - $this->entity_types = $arr; - - return $this; - } - - /** - * Metadata of the schema. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4; - * @return \Google\Cloud\DocumentAI\V1\DocumentSchema\Metadata|null - */ - public function getMetadata() - { - return $this->metadata; - } - - public function hasMetadata() - { - return isset($this->metadata); - } - - public function clearMetadata() - { - unset($this->metadata); - } - - /** - * Metadata of the schema. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema.Metadata metadata = 4; - * @param \Google\Cloud\DocumentAI\V1\DocumentSchema\Metadata $var - * @return $this - */ - public function setMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\DocumentSchema\Metadata::class); - $this->metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType.php deleted file mode 100644 index 72b224ab8df9..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType.php +++ /dev/null @@ -1,276 +0,0 @@ -google.cloud.documentai.v1.DocumentSchema.EntityType - */ -class EntityType extends \Google\Protobuf\Internal\Message -{ - /** - * User defined name for the type. - * - * Generated from protobuf field string display_name = 13; - */ - protected $display_name = ''; - /** - * Name of the type. It must be unique within the schema file and - * cannot be a "Common Type". The following naming conventions are used: - * - Use `snake_casing`. - * - Name matching is case-sensitive. - * - Maximum 64 characters. - * - Must start with a letter. - * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii - * character.) - * - The `/` is sometimes used to denote a property of a type. For example - * `line_item/amount`. This convention is deprecated, but will still be - * honored for backward compatibility. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The entity type that this type is derived from. For now, one and only - * one should be set. - * - * Generated from protobuf field repeated string base_types = 2; - */ - private $base_types; - /** - * Description the nested structure, or composition of an entity. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6; - */ - private $properties; - protected $value_source; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType\EnumValues $enum_values - * If specified, lists all the possible values for this entity. This - * should not be more than a handful of values. If the number of values - * is >10 or could change frequently use the `EntityType.value_ontology` - * field and specify a list of all possible values in a value ontology - * file. - * @type string $display_name - * User defined name for the type. - * @type string $name - * Name of the type. It must be unique within the schema file and - * cannot be a "Common Type". The following naming conventions are used: - * - Use `snake_casing`. - * - Name matching is case-sensitive. - * - Maximum 64 characters. - * - Must start with a letter. - * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii - * character.) - * - The `/` is sometimes used to denote a property of a type. For example - * `line_item/amount`. This convention is deprecated, but will still be - * honored for backward compatibility. - * @type array|\Google\Protobuf\Internal\RepeatedField $base_types - * The entity type that this type is derived from. For now, one and only - * one should be set. - * @type array<\Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType\Property>|\Google\Protobuf\Internal\RepeatedField $properties - * Description the nested structure, or composition of an entity. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentSchema::initOnce(); - parent::__construct($data); - } - - /** - * If specified, lists all the possible values for this entity. This - * should not be more than a handful of values. If the number of values - * is >10 or could change frequently use the `EntityType.value_ontology` - * field and specify a list of all possible values in a value ontology - * file. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14; - * @return \Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType\EnumValues|null - */ - public function getEnumValues() - { - return $this->readOneof(14); - } - - public function hasEnumValues() - { - return $this->hasOneof(14); - } - - /** - * If specified, lists all the possible values for this entity. This - * should not be more than a handful of values. If the number of values - * is >10 or could change frequently use the `EntityType.value_ontology` - * field and specify a list of all possible values in a value ontology - * file. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues enum_values = 14; - * @param \Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType\EnumValues $var - * @return $this - */ - public function setEnumValues($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType\EnumValues::class); - $this->writeOneof(14, $var); - - return $this; - } - - /** - * User defined name for the type. - * - * Generated from protobuf field string display_name = 13; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * User defined name for the type. - * - * Generated from protobuf field string display_name = 13; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Name of the type. It must be unique within the schema file and - * cannot be a "Common Type". The following naming conventions are used: - * - Use `snake_casing`. - * - Name matching is case-sensitive. - * - Maximum 64 characters. - * - Must start with a letter. - * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii - * character.) - * - The `/` is sometimes used to denote a property of a type. For example - * `line_item/amount`. This convention is deprecated, but will still be - * honored for backward compatibility. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of the type. It must be unique within the schema file and - * cannot be a "Common Type". The following naming conventions are used: - * - Use `snake_casing`. - * - Name matching is case-sensitive. - * - Maximum 64 characters. - * - Must start with a letter. - * - Allowed characters: ASCII letters `[a-z0-9_-]`. (For backward - * compatibility internal infrastructure and tooling can handle any ascii - * character.) - * - The `/` is sometimes used to denote a property of a type. For example - * `line_item/amount`. This convention is deprecated, but will still be - * honored for backward compatibility. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The entity type that this type is derived from. For now, one and only - * one should be set. - * - * Generated from protobuf field repeated string base_types = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBaseTypes() - { - return $this->base_types; - } - - /** - * The entity type that this type is derived from. For now, one and only - * one should be set. - * - * Generated from protobuf field repeated string base_types = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBaseTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->base_types = $arr; - - return $this; - } - - /** - * Description the nested structure, or composition of an entity. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProperties() - { - return $this->properties; - } - - /** - * Description the nested structure, or composition of an entity. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.DocumentSchema.EntityType.Property properties = 6; - * @param array<\Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType\Property>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProperties($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType\Property::class); - $this->properties = $arr; - - return $this; - } - - /** - * @return string - */ - public function getValueSource() - { - return $this->whichOneof("value_source"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EntityType::class, \Google\Cloud\DocumentAI\V1\DocumentSchema_EntityType::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/EnumValues.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/EnumValues.php deleted file mode 100644 index 40edb0b0d86f..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/EnumValues.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.documentai.v1.DocumentSchema.EntityType.EnumValues - */ -class EnumValues extends \Google\Protobuf\Internal\Message -{ - /** - * The individual values that this enum values type can include. - * - * Generated from protobuf field repeated string values = 1; - */ - private $values; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $values - * The individual values that this enum values type can include. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentSchema::initOnce(); - parent::__construct($data); - } - - /** - * The individual values that this enum values type can include. - * - * Generated from protobuf field repeated string values = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getValues() - { - return $this->values; - } - - /** - * The individual values that this enum values type can include. - * - * Generated from protobuf field repeated string values = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setValues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->values = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(EnumValues::class, \Google\Cloud\DocumentAI\V1\DocumentSchema_EntityType_EnumValues::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/Property.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/Property.php deleted file mode 100644 index 361a9adebd72..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/Property.php +++ /dev/null @@ -1,184 +0,0 @@ -google.cloud.documentai.v1.DocumentSchema.EntityType.Property - */ -class Property extends \Google\Protobuf\Internal\Message -{ - /** - * The name of the property. Follows the same guidelines as the - * EntityType name. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * User defined name for the property. - * - * Generated from protobuf field string display_name = 6; - */ - protected $display_name = ''; - /** - * A reference to the value type of the property. This type is subject - * to the same conventions as the `Entity.base_types` field. - * - * Generated from protobuf field string value_type = 2; - */ - protected $value_type = ''; - /** - * Occurrence type limits the number of instances an entity type appears - * in the document. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3; - */ - protected $occurrence_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of the property. Follows the same guidelines as the - * EntityType name. - * @type string $display_name - * User defined name for the property. - * @type string $value_type - * A reference to the value type of the property. This type is subject - * to the same conventions as the `Entity.base_types` field. - * @type int $occurrence_type - * Occurrence type limits the number of instances an entity type appears - * in the document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentSchema::initOnce(); - parent::__construct($data); - } - - /** - * The name of the property. Follows the same guidelines as the - * EntityType name. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of the property. Follows the same guidelines as the - * EntityType 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; - } - - /** - * User defined name for the property. - * - * Generated from protobuf field string display_name = 6; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * User defined name for the property. - * - * Generated from protobuf field string display_name = 6; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * A reference to the value type of the property. This type is subject - * to the same conventions as the `Entity.base_types` field. - * - * Generated from protobuf field string value_type = 2; - * @return string - */ - public function getValueType() - { - return $this->value_type; - } - - /** - * A reference to the value type of the property. This type is subject - * to the same conventions as the `Entity.base_types` field. - * - * Generated from protobuf field string value_type = 2; - * @param string $var - * @return $this - */ - public function setValueType($var) - { - GPBUtil::checkString($var, True); - $this->value_type = $var; - - return $this; - } - - /** - * Occurrence type limits the number of instances an entity type appears - * in the document. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3; - * @return int - */ - public function getOccurrenceType() - { - return $this->occurrence_type; - } - - /** - * Occurrence type limits the number of instances an entity type appears - * in the document. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType occurrence_type = 3; - * @param int $var - * @return $this - */ - public function setOccurrenceType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\DocumentSchema\EntityType\Property\OccurrenceType::class); - $this->occurrence_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Property::class, \Google\Cloud\DocumentAI\V1\DocumentSchema_EntityType_Property::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/Property/OccurrenceType.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/Property/OccurrenceType.php deleted file mode 100644 index 18ae968b954a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/EntityType/Property/OccurrenceType.php +++ /dev/null @@ -1,88 +0,0 @@ -google.cloud.documentai.v1.DocumentSchema.EntityType.Property.OccurrenceType - */ -class OccurrenceType -{ - /** - * Unspecified occurrence type. - * - * Generated from protobuf enum OCCURRENCE_TYPE_UNSPECIFIED = 0; - */ - const OCCURRENCE_TYPE_UNSPECIFIED = 0; - /** - * There will be zero or one instance of this entity type. The same - * entity instance may be mentioned multiple times. - * - * Generated from protobuf enum OPTIONAL_ONCE = 1; - */ - const OPTIONAL_ONCE = 1; - /** - * The entity type will appear zero or multiple times. - * - * Generated from protobuf enum OPTIONAL_MULTIPLE = 2; - */ - const OPTIONAL_MULTIPLE = 2; - /** - * The entity type will only appear exactly once. The same - * entity instance may be mentioned multiple times. - * - * Generated from protobuf enum REQUIRED_ONCE = 3; - */ - const REQUIRED_ONCE = 3; - /** - * The entity type will appear once or more times. - * - * Generated from protobuf enum REQUIRED_MULTIPLE = 4; - */ - const REQUIRED_MULTIPLE = 4; - - private static $valueToName = [ - self::OCCURRENCE_TYPE_UNSPECIFIED => 'OCCURRENCE_TYPE_UNSPECIFIED', - self::OPTIONAL_ONCE => 'OPTIONAL_ONCE', - self::OPTIONAL_MULTIPLE => 'OPTIONAL_MULTIPLE', - self::REQUIRED_ONCE => 'REQUIRED_ONCE', - self::REQUIRED_MULTIPLE => 'REQUIRED_MULTIPLE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OccurrenceType::class, \Google\Cloud\DocumentAI\V1\DocumentSchema_EntityType_Property_OccurrenceType::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/Metadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/Metadata.php deleted file mode 100644 index a7906306349a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/DocumentSchema/Metadata.php +++ /dev/null @@ -1,192 +0,0 @@ -google.cloud.documentai.v1.DocumentSchema.Metadata - */ -class Metadata extends \Google\Protobuf\Internal\Message -{ - /** - * If true, a `document` entity type can be applied to subdocument - * (splitting). Otherwise, it can only be applied to the entire document - * (classification). - * - * Generated from protobuf field bool document_splitter = 1; - */ - protected $document_splitter = false; - /** - * If true, on a given page, there can be multiple `document` annotations - * covering it. - * - * Generated from protobuf field bool document_allow_multiple_labels = 2; - */ - protected $document_allow_multiple_labels = false; - /** - * If set, all the nested entities must be prefixed with the parents. - * - * Generated from protobuf field bool prefixed_naming_on_properties = 6; - */ - protected $prefixed_naming_on_properties = false; - /** - * If set, we will skip the naming format validation in the schema. So the - * string values in `DocumentSchema.EntityType.name` and - * `DocumentSchema.EntityType.Property.name` will not be checked. - * - * Generated from protobuf field bool skip_naming_validation = 7; - */ - protected $skip_naming_validation = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $document_splitter - * If true, a `document` entity type can be applied to subdocument - * (splitting). Otherwise, it can only be applied to the entire document - * (classification). - * @type bool $document_allow_multiple_labels - * If true, on a given page, there can be multiple `document` annotations - * covering it. - * @type bool $prefixed_naming_on_properties - * If set, all the nested entities must be prefixed with the parents. - * @type bool $skip_naming_validation - * If set, we will skip the naming format validation in the schema. So the - * string values in `DocumentSchema.EntityType.name` and - * `DocumentSchema.EntityType.Property.name` will not be checked. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentSchema::initOnce(); - parent::__construct($data); - } - - /** - * If true, a `document` entity type can be applied to subdocument - * (splitting). Otherwise, it can only be applied to the entire document - * (classification). - * - * Generated from protobuf field bool document_splitter = 1; - * @return bool - */ - public function getDocumentSplitter() - { - return $this->document_splitter; - } - - /** - * If true, a `document` entity type can be applied to subdocument - * (splitting). Otherwise, it can only be applied to the entire document - * (classification). - * - * Generated from protobuf field bool document_splitter = 1; - * @param bool $var - * @return $this - */ - public function setDocumentSplitter($var) - { - GPBUtil::checkBool($var); - $this->document_splitter = $var; - - return $this; - } - - /** - * If true, on a given page, there can be multiple `document` annotations - * covering it. - * - * Generated from protobuf field bool document_allow_multiple_labels = 2; - * @return bool - */ - public function getDocumentAllowMultipleLabels() - { - return $this->document_allow_multiple_labels; - } - - /** - * If true, on a given page, there can be multiple `document` annotations - * covering it. - * - * Generated from protobuf field bool document_allow_multiple_labels = 2; - * @param bool $var - * @return $this - */ - public function setDocumentAllowMultipleLabels($var) - { - GPBUtil::checkBool($var); - $this->document_allow_multiple_labels = $var; - - return $this; - } - - /** - * If set, all the nested entities must be prefixed with the parents. - * - * Generated from protobuf field bool prefixed_naming_on_properties = 6; - * @return bool - */ - public function getPrefixedNamingOnProperties() - { - return $this->prefixed_naming_on_properties; - } - - /** - * If set, all the nested entities must be prefixed with the parents. - * - * Generated from protobuf field bool prefixed_naming_on_properties = 6; - * @param bool $var - * @return $this - */ - public function setPrefixedNamingOnProperties($var) - { - GPBUtil::checkBool($var); - $this->prefixed_naming_on_properties = $var; - - return $this; - } - - /** - * If set, we will skip the naming format validation in the schema. So the - * string values in `DocumentSchema.EntityType.name` and - * `DocumentSchema.EntityType.Property.name` will not be checked. - * - * Generated from protobuf field bool skip_naming_validation = 7; - * @return bool - */ - public function getSkipNamingValidation() - { - return $this->skip_naming_validation; - } - - /** - * If set, we will skip the naming format validation in the schema. So the - * string values in `DocumentSchema.EntityType.name` and - * `DocumentSchema.EntityType.Property.name` will not be checked. - * - * Generated from protobuf field bool skip_naming_validation = 7; - * @param bool $var - * @return $this - */ - public function setSkipNamingValidation($var) - { - GPBUtil::checkBool($var); - $this->skip_naming_validation = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Metadata::class, \Google\Cloud\DocumentAI\V1\DocumentSchema_Metadata::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorMetadata.php deleted file mode 100644 index dc3948aaae17..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorMetadata.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.documentai.v1.EnableProcessorMetadata - */ -class EnableProcessorMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - */ - protected $common_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata - * The basic metadata of the long-running operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorRequest.php deleted file mode 100644 index 3e3a5c3e66b6..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorRequest.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.documentai.v1.EnableProcessorRequest - */ -class EnableProcessorRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The processor resource name to be enabled. - * - * 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 processor resource name to be enabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The processor resource name to be enabled. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The processor resource name to be enabled. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorResponse.php deleted file mode 100644 index 573c89ac5fa2..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EnableProcessorResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -google.cloud.documentai.v1.EnableProcessorResponse - */ -class EnableProcessorResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionMetadata.php deleted file mode 100644 index 4ac915145e9d..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionMetadata.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.documentai.v1.EvaluateProcessorVersionMetadata - */ -class EvaluateProcessorVersionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - */ - protected $common_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata - * The basic metadata of the long-running operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionRequest.php deleted file mode 100644 index 3cada6bf65f7..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.cloud.documentai.v1.EvaluateProcessorVersionRequest - */ -class EvaluateProcessorVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to - * evaluate. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from protobuf field string processor_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $processor_version = ''; - /** - * Optional. The documents used in the evaluation. If unspecified, use the - * processor's dataset as evaluation input. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $evaluation_documents = null; - - /** - * @param string $processorVersion Required. The resource name of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to - * evaluate. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * Please see {@see DocumentProcessorServiceClient::processorVersionName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\EvaluateProcessorVersionRequest - * - * @experimental - */ - public static function build(string $processorVersion): self - { - return (new self()) - ->setProcessorVersion($processorVersion); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $processor_version - * Required. The resource name of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to - * evaluate. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * @type \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $evaluation_documents - * Optional. The documents used in the evaluation. If unspecified, use the - * processor's dataset as evaluation input. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to - * evaluate. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from protobuf field string processor_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProcessorVersion() - { - return $this->processor_version; - } - - /** - * Required. The resource name of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to - * evaluate. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from protobuf field string processor_version = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProcessorVersion($var) - { - GPBUtil::checkString($var, True); - $this->processor_version = $var; - - return $this; - } - - /** - * Optional. The documents used in the evaluation. If unspecified, use the - * processor's dataset as evaluation input. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig|null - */ - public function getEvaluationDocuments() - { - return $this->evaluation_documents; - } - - public function hasEvaluationDocuments() - { - return isset($this->evaluation_documents); - } - - public function clearEvaluationDocuments() - { - unset($this->evaluation_documents); - } - - /** - * Optional. The documents used in the evaluation. If unspecified, use the - * processor's dataset as evaluation input. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig evaluation_documents = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $var - * @return $this - */ - public function setEvaluationDocuments($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig::class); - $this->evaluation_documents = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionResponse.php deleted file mode 100644 index df4d38b40cde..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluateProcessorVersionResponse.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.documentai.v1.EvaluateProcessorVersionResponse - */ -class EvaluateProcessorVersionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the created evaluation. - * - * Generated from protobuf field string evaluation = 2; - */ - protected $evaluation = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $evaluation - * The resource name of the created evaluation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the created evaluation. - * - * Generated from protobuf field string evaluation = 2; - * @return string - */ - public function getEvaluation() - { - return $this->evaluation; - } - - /** - * The resource name of the created evaluation. - * - * Generated from protobuf field string evaluation = 2; - * @param string $var - * @return $this - */ - public function setEvaluation($var) - { - GPBUtil::checkString($var, True); - $this->evaluation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation.php deleted file mode 100644 index 7c1964f147c9..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation.php +++ /dev/null @@ -1,309 +0,0 @@ -google.cloud.documentai.v1.Evaluation - */ -class Evaluation extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the evaluation. - * Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The time that the evaluation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2; - */ - protected $create_time = null; - /** - * Counters for the documents used in the evaluation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Counters document_counters = 5; - */ - protected $document_counters = null; - /** - * Metrics for all the entities in aggregate. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3; - */ - protected $all_entities_metrics = null; - /** - * Metrics across confidence levels, for different entities. - * - * Generated from protobuf field map entity_metrics = 4; - */ - private $entity_metrics; - /** - * The KMS key name used for encryption. - * - * Generated from protobuf field string kms_key_name = 6; - */ - protected $kms_key_name = ''; - /** - * The KMS key version with which data is encrypted. - * - * Generated from protobuf field string kms_key_version_name = 7; - */ - protected $kms_key_version_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the evaluation. - * Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}` - * @type \Google\Protobuf\Timestamp $create_time - * The time that the evaluation was created. - * @type \Google\Cloud\DocumentAI\V1\Evaluation\Counters $document_counters - * Counters for the documents used in the evaluation. - * @type \Google\Cloud\DocumentAI\V1\Evaluation\MultiConfidenceMetrics $all_entities_metrics - * Metrics for all the entities in aggregate. - * @type array|\Google\Protobuf\Internal\MapField $entity_metrics - * Metrics across confidence levels, for different entities. - * @type string $kms_key_name - * The KMS key name used for encryption. - * @type string $kms_key_version_name - * The KMS key version with which data is encrypted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Evaluation::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the evaluation. - * Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the evaluation. - * Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The time that the evaluation 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 that the evaluation 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; - } - - /** - * Counters for the documents used in the evaluation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Counters document_counters = 5; - * @return \Google\Cloud\DocumentAI\V1\Evaluation\Counters|null - */ - public function getDocumentCounters() - { - return $this->document_counters; - } - - public function hasDocumentCounters() - { - return isset($this->document_counters); - } - - public function clearDocumentCounters() - { - unset($this->document_counters); - } - - /** - * Counters for the documents used in the evaluation. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Counters document_counters = 5; - * @param \Google\Cloud\DocumentAI\V1\Evaluation\Counters $var - * @return $this - */ - public function setDocumentCounters($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Evaluation\Counters::class); - $this->document_counters = $var; - - return $this; - } - - /** - * Metrics for all the entities in aggregate. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3; - * @return \Google\Cloud\DocumentAI\V1\Evaluation\MultiConfidenceMetrics|null - */ - public function getAllEntitiesMetrics() - { - return $this->all_entities_metrics; - } - - public function hasAllEntitiesMetrics() - { - return isset($this->all_entities_metrics); - } - - public function clearAllEntitiesMetrics() - { - unset($this->all_entities_metrics); - } - - /** - * Metrics for all the entities in aggregate. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics all_entities_metrics = 3; - * @param \Google\Cloud\DocumentAI\V1\Evaluation\MultiConfidenceMetrics $var - * @return $this - */ - public function setAllEntitiesMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Evaluation\MultiConfidenceMetrics::class); - $this->all_entities_metrics = $var; - - return $this; - } - - /** - * Metrics across confidence levels, for different entities. - * - * Generated from protobuf field map entity_metrics = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getEntityMetrics() - { - return $this->entity_metrics; - } - - /** - * Metrics across confidence levels, for different entities. - * - * Generated from protobuf field map entity_metrics = 4; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setEntityMetrics($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Evaluation\MultiConfidenceMetrics::class); - $this->entity_metrics = $arr; - - return $this; - } - - /** - * The KMS key name used for encryption. - * - * Generated from protobuf field string kms_key_name = 6; - * @return string - */ - public function getKmsKeyName() - { - return $this->kms_key_name; - } - - /** - * The KMS key name used for encryption. - * - * Generated from protobuf field string kms_key_name = 6; - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_name = $var; - - return $this; - } - - /** - * The KMS key version with which data is encrypted. - * - * Generated from protobuf field string kms_key_version_name = 7; - * @return string - */ - public function getKmsKeyVersionName() - { - return $this->kms_key_version_name; - } - - /** - * The KMS key version with which data is encrypted. - * - * Generated from protobuf field string kms_key_version_name = 7; - * @param string $var - * @return $this - */ - public function setKmsKeyVersionName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_version_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/ConfidenceLevelMetrics.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/ConfidenceLevelMetrics.php deleted file mode 100644 index 41905bc2b7ff..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/ConfidenceLevelMetrics.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics - */ -class ConfidenceLevelMetrics extends \Google\Protobuf\Internal\Message -{ - /** - * The confidence level. - * - * Generated from protobuf field float confidence_level = 1; - */ - protected $confidence_level = 0.0; - /** - * The metrics at the specific confidence level. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Metrics metrics = 2; - */ - protected $metrics = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $confidence_level - * The confidence level. - * @type \Google\Cloud\DocumentAI\V1\Evaluation\Metrics $metrics - * The metrics at the specific confidence level. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Evaluation::initOnce(); - parent::__construct($data); - } - - /** - * The confidence level. - * - * Generated from protobuf field float confidence_level = 1; - * @return float - */ - public function getConfidenceLevel() - { - return $this->confidence_level; - } - - /** - * The confidence level. - * - * Generated from protobuf field float confidence_level = 1; - * @param float $var - * @return $this - */ - public function setConfidenceLevel($var) - { - GPBUtil::checkFloat($var); - $this->confidence_level = $var; - - return $this; - } - - /** - * The metrics at the specific confidence level. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Metrics metrics = 2; - * @return \Google\Cloud\DocumentAI\V1\Evaluation\Metrics|null - */ - public function getMetrics() - { - return $this->metrics; - } - - public function hasMetrics() - { - return isset($this->metrics); - } - - public function clearMetrics() - { - unset($this->metrics); - } - - /** - * The metrics at the specific confidence level. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Metrics metrics = 2; - * @param \Google\Cloud\DocumentAI\V1\Evaluation\Metrics $var - * @return $this - */ - public function setMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Evaluation\Metrics::class); - $this->metrics = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ConfidenceLevelMetrics::class, \Google\Cloud\DocumentAI\V1\Evaluation_ConfidenceLevelMetrics::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/Counters.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/Counters.php deleted file mode 100644 index 525a04970600..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/Counters.php +++ /dev/null @@ -1,180 +0,0 @@ -google.cloud.documentai.v1.Evaluation.Counters - */ -class Counters extends \Google\Protobuf\Internal\Message -{ - /** - * How many documents were sent for evaluation. - * - * Generated from protobuf field int32 input_documents_count = 1; - */ - protected $input_documents_count = 0; - /** - * How many documents were not included in the evaluation as they didn't - * pass validation. - * - * Generated from protobuf field int32 invalid_documents_count = 2; - */ - protected $invalid_documents_count = 0; - /** - * How many documents were not included in the evaluation as Document AI - * failed to process them. - * - * Generated from protobuf field int32 failed_documents_count = 3; - */ - protected $failed_documents_count = 0; - /** - * How many documents were used in the evaluation. - * - * Generated from protobuf field int32 evaluated_documents_count = 4; - */ - protected $evaluated_documents_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $input_documents_count - * How many documents were sent for evaluation. - * @type int $invalid_documents_count - * How many documents were not included in the evaluation as they didn't - * pass validation. - * @type int $failed_documents_count - * How many documents were not included in the evaluation as Document AI - * failed to process them. - * @type int $evaluated_documents_count - * How many documents were used in the evaluation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Evaluation::initOnce(); - parent::__construct($data); - } - - /** - * How many documents were sent for evaluation. - * - * Generated from protobuf field int32 input_documents_count = 1; - * @return int - */ - public function getInputDocumentsCount() - { - return $this->input_documents_count; - } - - /** - * How many documents were sent for evaluation. - * - * Generated from protobuf field int32 input_documents_count = 1; - * @param int $var - * @return $this - */ - public function setInputDocumentsCount($var) - { - GPBUtil::checkInt32($var); - $this->input_documents_count = $var; - - return $this; - } - - /** - * How many documents were not included in the evaluation as they didn't - * pass validation. - * - * Generated from protobuf field int32 invalid_documents_count = 2; - * @return int - */ - public function getInvalidDocumentsCount() - { - return $this->invalid_documents_count; - } - - /** - * How many documents were not included in the evaluation as they didn't - * pass validation. - * - * Generated from protobuf field int32 invalid_documents_count = 2; - * @param int $var - * @return $this - */ - public function setInvalidDocumentsCount($var) - { - GPBUtil::checkInt32($var); - $this->invalid_documents_count = $var; - - return $this; - } - - /** - * How many documents were not included in the evaluation as Document AI - * failed to process them. - * - * Generated from protobuf field int32 failed_documents_count = 3; - * @return int - */ - public function getFailedDocumentsCount() - { - return $this->failed_documents_count; - } - - /** - * How many documents were not included in the evaluation as Document AI - * failed to process them. - * - * Generated from protobuf field int32 failed_documents_count = 3; - * @param int $var - * @return $this - */ - public function setFailedDocumentsCount($var) - { - GPBUtil::checkInt32($var); - $this->failed_documents_count = $var; - - return $this; - } - - /** - * How many documents were used in the evaluation. - * - * Generated from protobuf field int32 evaluated_documents_count = 4; - * @return int - */ - public function getEvaluatedDocumentsCount() - { - return $this->evaluated_documents_count; - } - - /** - * How many documents were used in the evaluation. - * - * Generated from protobuf field int32 evaluated_documents_count = 4; - * @param int $var - * @return $this - */ - public function setEvaluatedDocumentsCount($var) - { - GPBUtil::checkInt32($var); - $this->evaluated_documents_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Counters::class, \Google\Cloud\DocumentAI\V1\Evaluation_Counters::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/Metrics.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/Metrics.php deleted file mode 100644 index daf92a7fb96a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/Metrics.php +++ /dev/null @@ -1,410 +0,0 @@ -google.cloud.documentai.v1.Evaluation.Metrics - */ -class Metrics extends \Google\Protobuf\Internal\Message -{ - /** - * The calculated precision. - * - * Generated from protobuf field float precision = 1; - */ - protected $precision = 0.0; - /** - * The calculated recall. - * - * Generated from protobuf field float recall = 2; - */ - protected $recall = 0.0; - /** - * The calculated f1 score. - * - * Generated from protobuf field float f1_score = 3; - */ - protected $f1_score = 0.0; - /** - * The amount of occurrences in predicted documents. - * - * Generated from protobuf field int32 predicted_occurrences_count = 4; - */ - protected $predicted_occurrences_count = 0; - /** - * The amount of occurrences in ground truth documents. - * - * Generated from protobuf field int32 ground_truth_occurrences_count = 5; - */ - protected $ground_truth_occurrences_count = 0; - /** - * The amount of documents with a predicted occurrence. - * - * Generated from protobuf field int32 predicted_document_count = 10; - */ - protected $predicted_document_count = 0; - /** - * The amount of documents with a ground truth occurrence. - * - * Generated from protobuf field int32 ground_truth_document_count = 11; - */ - protected $ground_truth_document_count = 0; - /** - * The amount of true positives. - * - * Generated from protobuf field int32 true_positives_count = 6; - */ - protected $true_positives_count = 0; - /** - * The amount of false positives. - * - * Generated from protobuf field int32 false_positives_count = 7; - */ - protected $false_positives_count = 0; - /** - * The amount of false negatives. - * - * Generated from protobuf field int32 false_negatives_count = 8; - */ - protected $false_negatives_count = 0; - /** - * The amount of documents that had an occurrence of this label. - * - * Generated from protobuf field int32 total_documents_count = 9; - */ - protected $total_documents_count = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $precision - * The calculated precision. - * @type float $recall - * The calculated recall. - * @type float $f1_score - * The calculated f1 score. - * @type int $predicted_occurrences_count - * The amount of occurrences in predicted documents. - * @type int $ground_truth_occurrences_count - * The amount of occurrences in ground truth documents. - * @type int $predicted_document_count - * The amount of documents with a predicted occurrence. - * @type int $ground_truth_document_count - * The amount of documents with a ground truth occurrence. - * @type int $true_positives_count - * The amount of true positives. - * @type int $false_positives_count - * The amount of false positives. - * @type int $false_negatives_count - * The amount of false negatives. - * @type int $total_documents_count - * The amount of documents that had an occurrence of this label. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Evaluation::initOnce(); - parent::__construct($data); - } - - /** - * The calculated precision. - * - * Generated from protobuf field float precision = 1; - * @return float - */ - public function getPrecision() - { - return $this->precision; - } - - /** - * The calculated precision. - * - * Generated from protobuf field float precision = 1; - * @param float $var - * @return $this - */ - public function setPrecision($var) - { - GPBUtil::checkFloat($var); - $this->precision = $var; - - return $this; - } - - /** - * The calculated recall. - * - * Generated from protobuf field float recall = 2; - * @return float - */ - public function getRecall() - { - return $this->recall; - } - - /** - * The calculated recall. - * - * Generated from protobuf field float recall = 2; - * @param float $var - * @return $this - */ - public function setRecall($var) - { - GPBUtil::checkFloat($var); - $this->recall = $var; - - return $this; - } - - /** - * The calculated f1 score. - * - * Generated from protobuf field float f1_score = 3; - * @return float - */ - public function getF1Score() - { - return $this->f1_score; - } - - /** - * The calculated f1 score. - * - * Generated from protobuf field float f1_score = 3; - * @param float $var - * @return $this - */ - public function setF1Score($var) - { - GPBUtil::checkFloat($var); - $this->f1_score = $var; - - return $this; - } - - /** - * The amount of occurrences in predicted documents. - * - * Generated from protobuf field int32 predicted_occurrences_count = 4; - * @return int - */ - public function getPredictedOccurrencesCount() - { - return $this->predicted_occurrences_count; - } - - /** - * The amount of occurrences in predicted documents. - * - * Generated from protobuf field int32 predicted_occurrences_count = 4; - * @param int $var - * @return $this - */ - public function setPredictedOccurrencesCount($var) - { - GPBUtil::checkInt32($var); - $this->predicted_occurrences_count = $var; - - return $this; - } - - /** - * The amount of occurrences in ground truth documents. - * - * Generated from protobuf field int32 ground_truth_occurrences_count = 5; - * @return int - */ - public function getGroundTruthOccurrencesCount() - { - return $this->ground_truth_occurrences_count; - } - - /** - * The amount of occurrences in ground truth documents. - * - * Generated from protobuf field int32 ground_truth_occurrences_count = 5; - * @param int $var - * @return $this - */ - public function setGroundTruthOccurrencesCount($var) - { - GPBUtil::checkInt32($var); - $this->ground_truth_occurrences_count = $var; - - return $this; - } - - /** - * The amount of documents with a predicted occurrence. - * - * Generated from protobuf field int32 predicted_document_count = 10; - * @return int - */ - public function getPredictedDocumentCount() - { - return $this->predicted_document_count; - } - - /** - * The amount of documents with a predicted occurrence. - * - * Generated from protobuf field int32 predicted_document_count = 10; - * @param int $var - * @return $this - */ - public function setPredictedDocumentCount($var) - { - GPBUtil::checkInt32($var); - $this->predicted_document_count = $var; - - return $this; - } - - /** - * The amount of documents with a ground truth occurrence. - * - * Generated from protobuf field int32 ground_truth_document_count = 11; - * @return int - */ - public function getGroundTruthDocumentCount() - { - return $this->ground_truth_document_count; - } - - /** - * The amount of documents with a ground truth occurrence. - * - * Generated from protobuf field int32 ground_truth_document_count = 11; - * @param int $var - * @return $this - */ - public function setGroundTruthDocumentCount($var) - { - GPBUtil::checkInt32($var); - $this->ground_truth_document_count = $var; - - return $this; - } - - /** - * The amount of true positives. - * - * Generated from protobuf field int32 true_positives_count = 6; - * @return int - */ - public function getTruePositivesCount() - { - return $this->true_positives_count; - } - - /** - * The amount of true positives. - * - * Generated from protobuf field int32 true_positives_count = 6; - * @param int $var - * @return $this - */ - public function setTruePositivesCount($var) - { - GPBUtil::checkInt32($var); - $this->true_positives_count = $var; - - return $this; - } - - /** - * The amount of false positives. - * - * Generated from protobuf field int32 false_positives_count = 7; - * @return int - */ - public function getFalsePositivesCount() - { - return $this->false_positives_count; - } - - /** - * The amount of false positives. - * - * Generated from protobuf field int32 false_positives_count = 7; - * @param int $var - * @return $this - */ - public function setFalsePositivesCount($var) - { - GPBUtil::checkInt32($var); - $this->false_positives_count = $var; - - return $this; - } - - /** - * The amount of false negatives. - * - * Generated from protobuf field int32 false_negatives_count = 8; - * @return int - */ - public function getFalseNegativesCount() - { - return $this->false_negatives_count; - } - - /** - * The amount of false negatives. - * - * Generated from protobuf field int32 false_negatives_count = 8; - * @param int $var - * @return $this - */ - public function setFalseNegativesCount($var) - { - GPBUtil::checkInt32($var); - $this->false_negatives_count = $var; - - return $this; - } - - /** - * The amount of documents that had an occurrence of this label. - * - * Generated from protobuf field int32 total_documents_count = 9; - * @return int - */ - public function getTotalDocumentsCount() - { - return $this->total_documents_count; - } - - /** - * The amount of documents that had an occurrence of this label. - * - * Generated from protobuf field int32 total_documents_count = 9; - * @param int $var - * @return $this - */ - public function setTotalDocumentsCount($var) - { - GPBUtil::checkInt32($var); - $this->total_documents_count = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Metrics::class, \Google\Cloud\DocumentAI\V1\Evaluation_Metrics::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/MultiConfidenceMetrics.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/MultiConfidenceMetrics.php deleted file mode 100644 index 5fddfea94ab2..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/MultiConfidenceMetrics.php +++ /dev/null @@ -1,290 +0,0 @@ -google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics - */ -class MultiConfidenceMetrics extends \Google\Protobuf\Internal\Message -{ - /** - * Metrics across confidence levels with fuzzy matching enabled. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1; - */ - private $confidence_level_metrics; - /** - * Metrics across confidence levels with only exact matching. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4; - */ - private $confidence_level_metrics_exact; - /** - * The calculated area under the precision recall curve (AUPRC), computed by - * integrating over all confidence thresholds. - * - * Generated from protobuf field float auprc = 2; - */ - protected $auprc = 0.0; - /** - * The Estimated Calibration Error (ECE) of the confidence of the predicted - * entities. - * - * Generated from protobuf field float estimated_calibration_error = 3; - */ - protected $estimated_calibration_error = 0.0; - /** - * The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching - * only. - * - * Generated from protobuf field float auprc_exact = 5; - */ - protected $auprc_exact = 0.0; - /** - * The ECE for the predicted entities with fuzzy matching disabled, i.e., - * exact matching only. - * - * Generated from protobuf field float estimated_calibration_error_exact = 6; - */ - protected $estimated_calibration_error_exact = 0.0; - /** - * The metrics type for the label. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType metrics_type = 7; - */ - protected $metrics_type = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\Evaluation\ConfidenceLevelMetrics>|\Google\Protobuf\Internal\RepeatedField $confidence_level_metrics - * Metrics across confidence levels with fuzzy matching enabled. - * @type array<\Google\Cloud\DocumentAI\V1\Evaluation\ConfidenceLevelMetrics>|\Google\Protobuf\Internal\RepeatedField $confidence_level_metrics_exact - * Metrics across confidence levels with only exact matching. - * @type float $auprc - * The calculated area under the precision recall curve (AUPRC), computed by - * integrating over all confidence thresholds. - * @type float $estimated_calibration_error - * The Estimated Calibration Error (ECE) of the confidence of the predicted - * entities. - * @type float $auprc_exact - * The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching - * only. - * @type float $estimated_calibration_error_exact - * The ECE for the predicted entities with fuzzy matching disabled, i.e., - * exact matching only. - * @type int $metrics_type - * The metrics type for the label. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Evaluation::initOnce(); - parent::__construct($data); - } - - /** - * Metrics across confidence levels with fuzzy matching enabled. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConfidenceLevelMetrics() - { - return $this->confidence_level_metrics; - } - - /** - * Metrics across confidence levels with fuzzy matching enabled. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Evaluation\ConfidenceLevelMetrics>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConfidenceLevelMetrics($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Evaluation\ConfidenceLevelMetrics::class); - $this->confidence_level_metrics = $arr; - - return $this; - } - - /** - * Metrics across confidence levels with only exact matching. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getConfidenceLevelMetricsExact() - { - return $this->confidence_level_metrics_exact; - } - - /** - * Metrics across confidence levels with only exact matching. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics confidence_level_metrics_exact = 4; - * @param array<\Google\Cloud\DocumentAI\V1\Evaluation\ConfidenceLevelMetrics>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setConfidenceLevelMetricsExact($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Evaluation\ConfidenceLevelMetrics::class); - $this->confidence_level_metrics_exact = $arr; - - return $this; - } - - /** - * The calculated area under the precision recall curve (AUPRC), computed by - * integrating over all confidence thresholds. - * - * Generated from protobuf field float auprc = 2; - * @return float - */ - public function getAuprc() - { - return $this->auprc; - } - - /** - * The calculated area under the precision recall curve (AUPRC), computed by - * integrating over all confidence thresholds. - * - * Generated from protobuf field float auprc = 2; - * @param float $var - * @return $this - */ - public function setAuprc($var) - { - GPBUtil::checkFloat($var); - $this->auprc = $var; - - return $this; - } - - /** - * The Estimated Calibration Error (ECE) of the confidence of the predicted - * entities. - * - * Generated from protobuf field float estimated_calibration_error = 3; - * @return float - */ - public function getEstimatedCalibrationError() - { - return $this->estimated_calibration_error; - } - - /** - * The Estimated Calibration Error (ECE) of the confidence of the predicted - * entities. - * - * Generated from protobuf field float estimated_calibration_error = 3; - * @param float $var - * @return $this - */ - public function setEstimatedCalibrationError($var) - { - GPBUtil::checkFloat($var); - $this->estimated_calibration_error = $var; - - return $this; - } - - /** - * The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching - * only. - * - * Generated from protobuf field float auprc_exact = 5; - * @return float - */ - public function getAuprcExact() - { - return $this->auprc_exact; - } - - /** - * The AUPRC for metrics with fuzzy matching disabled, i.e., exact matching - * only. - * - * Generated from protobuf field float auprc_exact = 5; - * @param float $var - * @return $this - */ - public function setAuprcExact($var) - { - GPBUtil::checkFloat($var); - $this->auprc_exact = $var; - - return $this; - } - - /** - * The ECE for the predicted entities with fuzzy matching disabled, i.e., - * exact matching only. - * - * Generated from protobuf field float estimated_calibration_error_exact = 6; - * @return float - */ - public function getEstimatedCalibrationErrorExact() - { - return $this->estimated_calibration_error_exact; - } - - /** - * The ECE for the predicted entities with fuzzy matching disabled, i.e., - * exact matching only. - * - * Generated from protobuf field float estimated_calibration_error_exact = 6; - * @param float $var - * @return $this - */ - public function setEstimatedCalibrationErrorExact($var) - { - GPBUtil::checkFloat($var); - $this->estimated_calibration_error_exact = $var; - - return $this; - } - - /** - * The metrics type for the label. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType metrics_type = 7; - * @return int - */ - public function getMetricsType() - { - return $this->metrics_type; - } - - /** - * The metrics type for the label. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType metrics_type = 7; - * @param int $var - * @return $this - */ - public function setMetricsType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\Evaluation\MultiConfidenceMetrics\MetricsType::class); - $this->metrics_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MultiConfidenceMetrics::class, \Google\Cloud\DocumentAI\V1\Evaluation_MultiConfidenceMetrics::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/MultiConfidenceMetrics/MetricsType.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/MultiConfidenceMetrics/MetricsType.php deleted file mode 100644 index d48051e88622..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Evaluation/MultiConfidenceMetrics/MetricsType.php +++ /dev/null @@ -1,63 +0,0 @@ -google.cloud.documentai.v1.Evaluation.MultiConfidenceMetrics.MetricsType - */ -class MetricsType -{ - /** - * The metrics type is unspecified. By default, metrics without a - * particular specification are for leaf entity types (i.e., top-level - * entity types without child types, or child types which are not - * parent types themselves). - * - * Generated from protobuf enum METRICS_TYPE_UNSPECIFIED = 0; - */ - const METRICS_TYPE_UNSPECIFIED = 0; - /** - * Indicates whether metrics for this particular label type represent an - * aggregate of metrics for other types instead of being based on actual - * TP/FP/FN values for the label type. Metrics for parent (i.e., non-leaf) - * entity types are an aggregate of metrics for their children. - * - * Generated from protobuf enum AGGREGATE = 1; - */ - const AGGREGATE = 1; - - private static $valueToName = [ - self::METRICS_TYPE_UNSPECIFIED => 'METRICS_TYPE_UNSPECIFIED', - self::AGGREGATE => 'AGGREGATE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MetricsType::class, \Google\Cloud\DocumentAI\V1\Evaluation_MultiConfidenceMetrics_MetricsType::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluationReference.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluationReference.php deleted file mode 100644 index 4e86a056e7f1..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/EvaluationReference.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.documentai.v1.EvaluationReference - */ -class EvaluationReference extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the Long Running Operation for the evaluation. - * - * Generated from protobuf field string operation = 1; - */ - protected $operation = ''; - /** - * The resource name of the evaluation. - * - * Generated from protobuf field string evaluation = 2 [(.google.api.resource_reference) = { - */ - protected $evaluation = ''; - /** - * An aggregate of the statistics for the evaluation with fuzzy matching on. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics = 4; - */ - protected $aggregate_metrics = null; - /** - * An aggregate of the statistics for the evaluation with fuzzy matching off. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics_exact = 5; - */ - protected $aggregate_metrics_exact = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $operation - * The resource name of the Long Running Operation for the evaluation. - * @type string $evaluation - * The resource name of the evaluation. - * @type \Google\Cloud\DocumentAI\V1\Evaluation\Metrics $aggregate_metrics - * An aggregate of the statistics for the evaluation with fuzzy matching on. - * @type \Google\Cloud\DocumentAI\V1\Evaluation\Metrics $aggregate_metrics_exact - * An aggregate of the statistics for the evaluation with fuzzy matching off. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Evaluation::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the Long Running Operation for the evaluation. - * - * Generated from protobuf field string operation = 1; - * @return string - */ - public function getOperation() - { - return $this->operation; - } - - /** - * The resource name of the Long Running Operation for the evaluation. - * - * Generated from protobuf field string operation = 1; - * @param string $var - * @return $this - */ - public function setOperation($var) - { - GPBUtil::checkString($var, True); - $this->operation = $var; - - return $this; - } - - /** - * The resource name of the evaluation. - * - * Generated from protobuf field string evaluation = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getEvaluation() - { - return $this->evaluation; - } - - /** - * The resource name of the evaluation. - * - * Generated from protobuf field string evaluation = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setEvaluation($var) - { - GPBUtil::checkString($var, True); - $this->evaluation = $var; - - return $this; - } - - /** - * An aggregate of the statistics for the evaluation with fuzzy matching on. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics = 4; - * @return \Google\Cloud\DocumentAI\V1\Evaluation\Metrics|null - */ - public function getAggregateMetrics() - { - return $this->aggregate_metrics; - } - - public function hasAggregateMetrics() - { - return isset($this->aggregate_metrics); - } - - public function clearAggregateMetrics() - { - unset($this->aggregate_metrics); - } - - /** - * An aggregate of the statistics for the evaluation with fuzzy matching on. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics = 4; - * @param \Google\Cloud\DocumentAI\V1\Evaluation\Metrics $var - * @return $this - */ - public function setAggregateMetrics($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Evaluation\Metrics::class); - $this->aggregate_metrics = $var; - - return $this; - } - - /** - * An aggregate of the statistics for the evaluation with fuzzy matching off. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics_exact = 5; - * @return \Google\Cloud\DocumentAI\V1\Evaluation\Metrics|null - */ - public function getAggregateMetricsExact() - { - return $this->aggregate_metrics_exact; - } - - public function hasAggregateMetricsExact() - { - return isset($this->aggregate_metrics_exact); - } - - public function clearAggregateMetricsExact() - { - unset($this->aggregate_metrics_exact); - } - - /** - * An aggregate of the statistics for the evaluation with fuzzy matching off. - * - * Generated from protobuf field .google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics_exact = 5; - * @param \Google\Cloud\DocumentAI\V1\Evaluation\Metrics $var - * @return $this - */ - public function setAggregateMetricsExact($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Evaluation\Metrics::class); - $this->aggregate_metrics_exact = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/FetchProcessorTypesRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/FetchProcessorTypesRequest.php deleted file mode 100644 index f16e7109954b..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/FetchProcessorTypesRequest.php +++ /dev/null @@ -1,89 +0,0 @@ -google.cloud.documentai.v1.FetchProcessorTypesRequest - */ -class FetchProcessorTypesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location of processor types to list. - * Format: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - - /** - * @param string $parent Required. The location of processor types to list. - * Format: `projects/{project}/locations/{location}`. Please see - * {@see DocumentProcessorServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\FetchProcessorTypesRequest - * - * @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 location of processor types to list. - * Format: `projects/{project}/locations/{location}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location of processor types to list. - * 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 location of processor types to list. - * Format: `projects/{project}/locations/{location}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/FetchProcessorTypesResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/FetchProcessorTypesResponse.php deleted file mode 100644 index dd5747eca369..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/FetchProcessorTypesResponse.php +++ /dev/null @@ -1,69 +0,0 @@ -google.cloud.documentai.v1.FetchProcessorTypesResponse - */ -class FetchProcessorTypesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of processor types. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType processor_types = 1; - */ - private $processor_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\ProcessorType>|\Google\Protobuf\Internal\RepeatedField $processor_types - * The list of processor types. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The list of processor types. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType processor_types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProcessorTypes() - { - return $this->processor_types; - } - - /** - * The list of processor types. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType processor_types = 1; - * @param array<\Google\Cloud\DocumentAI\V1\ProcessorType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProcessorTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\ProcessorType::class); - $this->processor_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsDocument.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsDocument.php deleted file mode 100644 index 29eb74b4cdad..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsDocument.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.documentai.v1.GcsDocument - */ -class GcsDocument extends \Google\Protobuf\Internal\Message -{ - /** - * The Cloud Storage object uri. - * - * Generated from protobuf field string gcs_uri = 1; - */ - protected $gcs_uri = ''; - /** - * An IANA MIME type (RFC6838) of the content. - * - * Generated from protobuf field string mime_type = 2; - */ - protected $mime_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_uri - * The Cloud Storage object uri. - * @type string $mime_type - * An IANA MIME type (RFC6838) of the content. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Storage object uri. - * - * Generated from protobuf field string gcs_uri = 1; - * @return string - */ - public function getGcsUri() - { - return $this->gcs_uri; - } - - /** - * The Cloud Storage object uri. - * - * Generated from protobuf field string gcs_uri = 1; - * @param string $var - * @return $this - */ - public function setGcsUri($var) - { - GPBUtil::checkString($var, True); - $this->gcs_uri = $var; - - return $this; - } - - /** - * An IANA MIME type (RFC6838) of the content. - * - * Generated from protobuf field string mime_type = 2; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * An IANA MIME type (RFC6838) of the content. - * - * Generated from protobuf field string mime_type = 2; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsDocuments.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsDocuments.php deleted file mode 100644 index c23bdc383d2f..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsDocuments.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.documentai.v1.GcsDocuments - */ -class GcsDocuments extends \Google\Protobuf\Internal\Message -{ - /** - * The list of documents. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.GcsDocument documents = 1; - */ - private $documents; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\DocumentAI\V1\GcsDocument>|\Google\Protobuf\Internal\RepeatedField $documents - * The list of documents. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * The list of documents. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.GcsDocument documents = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDocuments() - { - return $this->documents; - } - - /** - * The list of documents. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.GcsDocument documents = 1; - * @param array<\Google\Cloud\DocumentAI\V1\GcsDocument>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDocuments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\GcsDocument::class); - $this->documents = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsPrefix.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsPrefix.php deleted file mode 100644 index 47f0c4f619e3..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GcsPrefix.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.documentai.v1.GcsPrefix - */ -class GcsPrefix extends \Google\Protobuf\Internal\Message -{ - /** - * The URI prefix. - * - * Generated from protobuf field string gcs_uri_prefix = 1; - */ - protected $gcs_uri_prefix = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_uri_prefix - * The URI prefix. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * The URI prefix. - * - * Generated from protobuf field string gcs_uri_prefix = 1; - * @return string - */ - public function getGcsUriPrefix() - { - return $this->gcs_uri_prefix; - } - - /** - * The URI prefix. - * - * Generated from protobuf field string gcs_uri_prefix = 1; - * @param string $var - * @return $this - */ - public function setGcsUriPrefix($var) - { - GPBUtil::checkString($var, True); - $this->gcs_uri_prefix = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetEvaluationRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetEvaluationRequest.php deleted file mode 100644 index 6f2655e51233..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetEvaluationRequest.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.documentai.v1.GetEvaluationRequest - */ -class GetEvaluationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the - * [Evaluation][google.cloud.documentai.v1.Evaluation] to get. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}` - * - * 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 - * [Evaluation][google.cloud.documentai.v1.Evaluation] to get. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}` - * Please see {@see DocumentProcessorServiceClient::evaluationName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\GetEvaluationRequest - * - * @experimental - */ - public static function 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 - * [Evaluation][google.cloud.documentai.v1.Evaluation] to get. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the - * [Evaluation][google.cloud.documentai.v1.Evaluation] to get. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The resource name of the - * [Evaluation][google.cloud.documentai.v1.Evaluation] to get. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}/evaluations/{evaluation}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorRequest.php deleted file mode 100644 index 400d45124693..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorRequest.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.documentai.v1.GetProcessorRequest - */ -class GetProcessorRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The processor resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The processor resource name. Please see - * {@see DocumentProcessorServiceClient::processorName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\GetProcessorRequest - * - * @experimental - */ - public static function 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 processor resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The processor resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The processor resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorTypeRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorTypeRequest.php deleted file mode 100644 index 3ff3084db365..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorTypeRequest.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.documentai.v1.GetProcessorTypeRequest - */ -class GetProcessorTypeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The processor type resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The processor type resource name. Please see - * {@see DocumentProcessorServiceClient::processorTypeName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\GetProcessorTypeRequest - * - * @experimental - */ - public static function 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 processor type resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The processor type resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The processor type resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorVersionRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorVersionRequest.php deleted file mode 100644 index 626c849fa822..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/GetProcessorVersionRequest.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.documentai.v1.GetProcessorVersionRequest - */ -class GetProcessorVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The processor resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The processor resource name. Please see - * {@see DocumentProcessorServiceClient::processorVersionName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\GetProcessorVersionRequest - * - * @experimental - */ - public static function 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 processor resource name. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The processor resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The processor resource name. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/HumanReviewStatus.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/HumanReviewStatus.php deleted file mode 100644 index 7c7e15d95aac..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/HumanReviewStatus.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.documentai.v1.HumanReviewStatus - */ -class HumanReviewStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The state of human review on the processing request. - * - * Generated from protobuf field .google.cloud.documentai.v1.HumanReviewStatus.State state = 1; - */ - protected $state = 0; - /** - * A message providing more details about the human review state. - * - * Generated from protobuf field string state_message = 2; - */ - protected $state_message = ''; - /** - * The name of the operation triggered by the processed document. This field - * is populated only when the - * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is - * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as - * the long-running operation returned by - * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]. - * - * Generated from protobuf field string human_review_operation = 3; - */ - protected $human_review_operation = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The state of human review on the processing request. - * @type string $state_message - * A message providing more details about the human review state. - * @type string $human_review_operation - * The name of the operation triggered by the processed document. This field - * is populated only when the - * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is - * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as - * the long-running operation returned by - * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The state of human review on the processing request. - * - * Generated from protobuf field .google.cloud.documentai.v1.HumanReviewStatus.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of human review on the processing request. - * - * Generated from protobuf field .google.cloud.documentai.v1.HumanReviewStatus.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\HumanReviewStatus\State::class); - $this->state = $var; - - return $this; - } - - /** - * A message providing more details about the human review state. - * - * Generated from protobuf field string state_message = 2; - * @return string - */ - public function getStateMessage() - { - return $this->state_message; - } - - /** - * A message providing more details about the human review state. - * - * Generated from protobuf field string state_message = 2; - * @param string $var - * @return $this - */ - public function setStateMessage($var) - { - GPBUtil::checkString($var, True); - $this->state_message = $var; - - return $this; - } - - /** - * The name of the operation triggered by the processed document. This field - * is populated only when the - * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is - * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as - * the long-running operation returned by - * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]. - * - * Generated from protobuf field string human_review_operation = 3; - * @return string - */ - public function getHumanReviewOperation() - { - return $this->human_review_operation; - } - - /** - * The name of the operation triggered by the processed document. This field - * is populated only when the - * [state][google.cloud.documentai.v1.HumanReviewStatus.state] is - * `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as - * the long-running operation returned by - * [ReviewDocument][google.cloud.documentai.v1.DocumentProcessorService.ReviewDocument]. - * - * Generated from protobuf field string human_review_operation = 3; - * @param string $var - * @return $this - */ - public function setHumanReviewOperation($var) - { - GPBUtil::checkString($var, True); - $this->human_review_operation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/HumanReviewStatus/State.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/HumanReviewStatus/State.php deleted file mode 100644 index 1c83b273fd8c..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/HumanReviewStatus/State.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.documentai.v1.HumanReviewStatus.State - */ -class State -{ - /** - * Human review state is unspecified. Most likely due to an internal error. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * Human review is skipped for the document. This can happen because human - * review isn't enabled on the processor or the processing request has - * been set to skip this document. - * - * Generated from protobuf enum SKIPPED = 1; - */ - const SKIPPED = 1; - /** - * Human review validation is triggered and passed, so no review is needed. - * - * Generated from protobuf enum VALIDATION_PASSED = 2; - */ - const VALIDATION_PASSED = 2; - /** - * Human review validation is triggered and the document is under review. - * - * Generated from protobuf enum IN_PROGRESS = 3; - */ - const IN_PROGRESS = 3; - /** - * Some error happened during triggering human review, see the - * [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message] - * for details. - * - * Generated from protobuf enum ERROR = 4; - */ - const ERROR = 4; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::SKIPPED => 'SKIPPED', - self::VALIDATION_PASSED => 'VALIDATION_PASSED', - self::IN_PROGRESS => 'IN_PROGRESS', - self::ERROR => 'ERROR', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\DocumentAI\V1\HumanReviewStatus_State::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListEvaluationsRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListEvaluationsRequest.php deleted file mode 100644 index 807389a4e80c..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListEvaluationsRequest.php +++ /dev/null @@ -1,177 +0,0 @@ -google.cloud.documentai.v1.ListEvaluationsRequest - */ -class ListEvaluationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to list - * evaluations for. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The standard list page size. - * If unspecified, at most `5` evaluations are returned. - * The maximum value is `100`. Values above `100` are coerced to `100`. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A page token, received from a previous `ListEvaluations` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The resource name of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to list - * evaluations for. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * Please see {@see DocumentProcessorServiceClient::processorVersionName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\ListEvaluationsRequest - * - * @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 - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to list - * evaluations for. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * @type int $page_size - * The standard list page size. - * If unspecified, at most `5` evaluations are returned. - * The maximum value is `100`. Values above `100` are coerced to `100`. - * @type string $page_token - * A page token, received from a previous `ListEvaluations` call. - * Provide this to retrieve the subsequent page. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to list - * evaluations for. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated 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 - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to list - * evaluations for. - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 standard list page size. - * If unspecified, at most `5` evaluations are returned. - * The maximum value is `100`. Values above `100` are coerced to `100`. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The standard list page size. - * If unspecified, at most `5` evaluations are returned. - * The maximum value is `100`. Values above `100` are coerced 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; - } - - /** - * A page token, received from a previous `ListEvaluations` 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 `ListEvaluations` call. - * Provide this to retrieve the subsequent page. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListEvaluationsResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListEvaluationsResponse.php deleted file mode 100644 index 50718a220119..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListEvaluationsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.documentai.v1.ListEvaluationsResponse - */ -class ListEvaluationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The evaluations requested. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Evaluation evaluations = 1; - */ - private $evaluations; - /** - * A token, which can be sent as `page_token` 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\DocumentAI\V1\Evaluation>|\Google\Protobuf\Internal\RepeatedField $evaluations - * The evaluations requested. - * @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\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The evaluations requested. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Evaluation evaluations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEvaluations() - { - return $this->evaluations; - } - - /** - * The evaluations requested. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Evaluation evaluations = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Evaluation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEvaluations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Evaluation::class); - $this->evaluations = $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/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorTypesRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorTypesRequest.php deleted file mode 100644 index 8376d2a3fdbd..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorTypesRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.documentai.v1.ListProcessorTypesRequest - */ -class ListProcessorTypesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The location of processor types to list. - * 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 processor types to return. - * If unspecified, at most `100` processor types will be returned. - * The maximum value is `500`. Values above `500` will be coerced to `500`. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * Used to retrieve the next page of results, empty if at the end of the list. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The location of processor types to list. - * Format: `projects/{project}/locations/{location}`. Please see - * {@see DocumentProcessorServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\ListProcessorTypesRequest - * - * @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 location of processor types to list. - * Format: `projects/{project}/locations/{location}`. - * @type int $page_size - * The maximum number of processor types to return. - * If unspecified, at most `100` processor types will be returned. - * The maximum value is `500`. Values above `500` will be coerced to `500`. - * @type string $page_token - * Used to retrieve the next page of results, empty if at the end of the list. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The location of processor types to list. - * 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 location of processor types to list. - * 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 processor types to return. - * If unspecified, at most `100` processor types will be returned. - * The maximum value is `500`. Values above `500` will be coerced to `500`. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of processor types to return. - * If unspecified, at most `100` processor types will be returned. - * The maximum value is `500`. Values above `500` will be coerced to `500`. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Used to retrieve the next page of results, empty if at the end of the list. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Used to retrieve the next page of results, empty if at the end of the list. - * - * 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/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorTypesResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorTypesResponse.php deleted file mode 100644 index 2ab8fbb8ffa7..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorTypesResponse.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.documentai.v1.ListProcessorTypesResponse - */ -class ListProcessorTypesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The processor types. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType processor_types = 1; - */ - private $processor_types; - /** - * Points to the next page, otherwise empty. - * - * 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\DocumentAI\V1\ProcessorType>|\Google\Protobuf\Internal\RepeatedField $processor_types - * The processor types. - * @type string $next_page_token - * Points to the next page, otherwise empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The processor types. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType processor_types = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProcessorTypes() - { - return $this->processor_types; - } - - /** - * The processor types. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType processor_types = 1; - * @param array<\Google\Cloud\DocumentAI\V1\ProcessorType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProcessorTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\ProcessorType::class); - $this->processor_types = $arr; - - return $this; - } - - /** - * Points to the next page, otherwise empty. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Points to the next page, otherwise empty. - * - * 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/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorVersionsRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorVersionsRequest.php deleted file mode 100644 index 2eb32ebdb5cd..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorVersionsRequest.php +++ /dev/null @@ -1,171 +0,0 @@ -google.cloud.documentai.v1.ListProcessorVersionsRequest - */ -class ListProcessorVersionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent (project, location and processor) to list all - * versions. Format: - * `projects/{project}/locations/{location}/processors/{processor}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of processor versions to return. - * If unspecified, at most `10` processor versions will be returned. - * The maximum value is `20`. Values above `20` will be coerced to `20`. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * We will return the processor versions sorted by creation time. The page - * token will point to the next processor version. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent (project, location and processor) to list all - * versions. Format: - * `projects/{project}/locations/{location}/processors/{processor}` - * Please see {@see DocumentProcessorServiceClient::processorName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\ListProcessorVersionsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent (project, location and processor) to list all - * versions. Format: - * `projects/{project}/locations/{location}/processors/{processor}` - * @type int $page_size - * The maximum number of processor versions to return. - * If unspecified, at most `10` processor versions will be returned. - * The maximum value is `20`. Values above `20` will be coerced to `20`. - * @type string $page_token - * We will return the processor versions sorted by creation time. The page - * token will point to the next processor version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent (project, location and processor) to list all - * versions. Format: - * `projects/{project}/locations/{location}/processors/{processor}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent (project, location and processor) to list all - * versions. Format: - * `projects/{project}/locations/{location}/processors/{processor}` - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 processor versions to return. - * If unspecified, at most `10` processor versions will be returned. - * The maximum value is `20`. Values above `20` will be coerced to `20`. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of processor versions to return. - * If unspecified, at most `10` processor versions will be returned. - * The maximum value is `20`. Values above `20` will be coerced to `20`. - * - * 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; - } - - /** - * We will return the processor versions sorted by creation time. The page - * token will point to the next processor version. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * We will return the processor versions sorted by creation time. The page - * token will point to the next processor version. - * - * 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/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorVersionsResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorVersionsResponse.php deleted file mode 100644 index b5b6b73704e1..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorVersionsResponse.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.documentai.v1.ListProcessorVersionsResponse - */ -class ListProcessorVersionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of processors. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorVersion processor_versions = 1; - */ - private $processor_versions; - /** - * Points to the next processor, otherwise empty. - * - * 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\DocumentAI\V1\ProcessorVersion>|\Google\Protobuf\Internal\RepeatedField $processor_versions - * The list of processors. - * @type string $next_page_token - * Points to the next processor, otherwise empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The list of processors. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorVersion processor_versions = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProcessorVersions() - { - return $this->processor_versions; - } - - /** - * The list of processors. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorVersion processor_versions = 1; - * @param array<\Google\Cloud\DocumentAI\V1\ProcessorVersion>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProcessorVersions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\ProcessorVersion::class); - $this->processor_versions = $arr; - - return $this; - } - - /** - * Points to the next processor, otherwise empty. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Points to the next processor, otherwise empty. - * - * 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/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorsRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorsRequest.php deleted file mode 100644 index 2b4335b85480..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorsRequest.php +++ /dev/null @@ -1,166 +0,0 @@ -google.cloud.documentai.v1.ListProcessorsRequest - */ -class ListProcessorsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent (project and location) which owns this collection of - * Processors. 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 processors to return. - * If unspecified, at most `50` processors will be returned. - * The maximum value is `100`. Values above `100` will be coerced to `100`. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * We will return the processors sorted by creation time. The page token - * will point to the next processor. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent (project and location) which owns this collection of - * Processors. Format: `projects/{project}/locations/{location}` - * Please see {@see DocumentProcessorServiceClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\ListProcessorsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent (project and location) which owns this collection of - * Processors. Format: `projects/{project}/locations/{location}` - * @type int $page_size - * The maximum number of processors to return. - * If unspecified, at most `50` processors will be returned. - * The maximum value is `100`. Values above `100` will be coerced to `100`. - * @type string $page_token - * We will return the processors sorted by creation time. The page token - * will point to the next processor. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent (project and location) which owns this collection of - * Processors. 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 (project and location) which owns this collection of - * Processors. 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 processors to return. - * If unspecified, at most `50` processors will be returned. - * The maximum value is `100`. Values above `100` will be coerced to `100`. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of processors to return. - * If unspecified, at most `50` processors will be returned. - * The maximum value is `100`. Values above `100` will be coerced 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; - } - - /** - * We will return the processors sorted by creation time. The page token - * will point to the next processor. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * We will return the processors sorted by creation time. The page token - * will point to the next processor. - * - * 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/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorsResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorsResponse.php deleted file mode 100644 index c92d36758eb2..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ListProcessorsResponse.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.documentai.v1.ListProcessorsResponse - */ -class ListProcessorsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of processors. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Processor processors = 1; - */ - private $processors; - /** - * Points to the next processor, otherwise empty. - * - * 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\DocumentAI\V1\Processor>|\Google\Protobuf\Internal\RepeatedField $processors - * The list of processors. - * @type string $next_page_token - * Points to the next processor, otherwise empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The list of processors. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Processor processors = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProcessors() - { - return $this->processors; - } - - /** - * The list of processors. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.Processor processors = 1; - * @param array<\Google\Cloud\DocumentAI\V1\Processor>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProcessors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\Processor::class); - $this->processors = $arr; - - return $this; - } - - /** - * Points to the next processor, otherwise empty. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * Points to the next processor, otherwise empty. - * - * 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/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/NormalizedVertex.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/NormalizedVertex.php deleted file mode 100644 index a283c6a9b7c2..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/NormalizedVertex.php +++ /dev/null @@ -1,103 +0,0 @@ -google.cloud.documentai.v1.NormalizedVertex - */ -class NormalizedVertex extends \Google\Protobuf\Internal\Message -{ - /** - * X coordinate. - * - * Generated from protobuf field float x = 1; - */ - protected $x = 0.0; - /** - * Y coordinate (starts from the top of the image). - * - * Generated from protobuf field float y = 2; - */ - protected $y = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type float $x - * X coordinate. - * @type float $y - * Y coordinate (starts from the top of the image). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Geometry::initOnce(); - parent::__construct($data); - } - - /** - * X coordinate. - * - * Generated from protobuf field float x = 1; - * @return float - */ - public function getX() - { - return $this->x; - } - - /** - * X coordinate. - * - * Generated from protobuf field float x = 1; - * @param float $var - * @return $this - */ - public function setX($var) - { - GPBUtil::checkFloat($var); - $this->x = $var; - - return $this; - } - - /** - * Y coordinate (starts from the top of the image). - * - * Generated from protobuf field float y = 2; - * @return float - */ - public function getY() - { - return $this->y; - } - - /** - * Y coordinate (starts from the top of the image). - * - * Generated from protobuf field float y = 2; - * @param float $var - * @return $this - */ - public function setY($var) - { - GPBUtil::checkFloat($var); - $this->y = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig.php deleted file mode 100644 index fe85b30cb232..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig.php +++ /dev/null @@ -1,378 +0,0 @@ -google.cloud.documentai.v1.OcrConfig - */ -class OcrConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Hints for the OCR model. - * - * Generated from protobuf field .google.cloud.documentai.v1.OcrConfig.Hints hints = 2; - */ - protected $hints = null; - /** - * Enables special handling for PDFs with existing text information. Results - * in better text extraction quality in such PDF inputs. - * - * Generated from protobuf field bool enable_native_pdf_parsing = 3; - */ - protected $enable_native_pdf_parsing = false; - /** - * Enables intelligent document quality scores after OCR. Can help with - * diagnosing why OCR responses are of poor quality for a given input. - * Adds additional latency comparable to regular OCR to the process call. - * - * Generated from protobuf field bool enable_image_quality_scores = 4; - */ - protected $enable_image_quality_scores = false; - /** - * A list of advanced OCR options to further fine-tune OCR behavior. Current - * valid values are: - * - `legacy_layout`: a heuristics layout detection algorithm, which serves as - * an alternative to the current ML-based layout detection algorithm. - * Customers can choose the best suitable layout algorithm based on their - * situation. - * - * Generated from protobuf field repeated string advanced_ocr_options = 5; - */ - private $advanced_ocr_options; - /** - * Includes symbol level OCR information if set to true. - * - * Generated from protobuf field bool enable_symbol = 6; - */ - protected $enable_symbol = false; - /** - * Turn on font identification model and return font style information. - * Deprecated, use - * [PremiumFeatures.compute_style_info][google.cloud.documentai.v1.OcrConfig.PremiumFeatures.compute_style_info] - * instead. - * - * Generated from protobuf field bool compute_style_info = 8 [deprecated = true]; - * @deprecated - */ - protected $compute_style_info = false; - /** - * Turn off character box detector in OCR engine. Character box detection is - * enabled by default in OCR 2.0 (and later) processors. - * - * Generated from protobuf field bool disable_character_boxes_detection = 10; - */ - protected $disable_character_boxes_detection = false; - /** - * Configurations for premium OCR features. - * - * Generated from protobuf field .google.cloud.documentai.v1.OcrConfig.PremiumFeatures premium_features = 11; - */ - protected $premium_features = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\OcrConfig\Hints $hints - * Hints for the OCR model. - * @type bool $enable_native_pdf_parsing - * Enables special handling for PDFs with existing text information. Results - * in better text extraction quality in such PDF inputs. - * @type bool $enable_image_quality_scores - * Enables intelligent document quality scores after OCR. Can help with - * diagnosing why OCR responses are of poor quality for a given input. - * Adds additional latency comparable to regular OCR to the process call. - * @type array|\Google\Protobuf\Internal\RepeatedField $advanced_ocr_options - * A list of advanced OCR options to further fine-tune OCR behavior. Current - * valid values are: - * - `legacy_layout`: a heuristics layout detection algorithm, which serves as - * an alternative to the current ML-based layout detection algorithm. - * Customers can choose the best suitable layout algorithm based on their - * situation. - * @type bool $enable_symbol - * Includes symbol level OCR information if set to true. - * @type bool $compute_style_info - * Turn on font identification model and return font style information. - * Deprecated, use - * [PremiumFeatures.compute_style_info][google.cloud.documentai.v1.OcrConfig.PremiumFeatures.compute_style_info] - * instead. - * @type bool $disable_character_boxes_detection - * Turn off character box detector in OCR engine. Character box detection is - * enabled by default in OCR 2.0 (and later) processors. - * @type \Google\Cloud\DocumentAI\V1\OcrConfig\PremiumFeatures $premium_features - * Configurations for premium OCR features. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * Hints for the OCR model. - * - * Generated from protobuf field .google.cloud.documentai.v1.OcrConfig.Hints hints = 2; - * @return \Google\Cloud\DocumentAI\V1\OcrConfig\Hints|null - */ - public function getHints() - { - return $this->hints; - } - - public function hasHints() - { - return isset($this->hints); - } - - public function clearHints() - { - unset($this->hints); - } - - /** - * Hints for the OCR model. - * - * Generated from protobuf field .google.cloud.documentai.v1.OcrConfig.Hints hints = 2; - * @param \Google\Cloud\DocumentAI\V1\OcrConfig\Hints $var - * @return $this - */ - public function setHints($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\OcrConfig\Hints::class); - $this->hints = $var; - - return $this; - } - - /** - * Enables special handling for PDFs with existing text information. Results - * in better text extraction quality in such PDF inputs. - * - * Generated from protobuf field bool enable_native_pdf_parsing = 3; - * @return bool - */ - public function getEnableNativePdfParsing() - { - return $this->enable_native_pdf_parsing; - } - - /** - * Enables special handling for PDFs with existing text information. Results - * in better text extraction quality in such PDF inputs. - * - * Generated from protobuf field bool enable_native_pdf_parsing = 3; - * @param bool $var - * @return $this - */ - public function setEnableNativePdfParsing($var) - { - GPBUtil::checkBool($var); - $this->enable_native_pdf_parsing = $var; - - return $this; - } - - /** - * Enables intelligent document quality scores after OCR. Can help with - * diagnosing why OCR responses are of poor quality for a given input. - * Adds additional latency comparable to regular OCR to the process call. - * - * Generated from protobuf field bool enable_image_quality_scores = 4; - * @return bool - */ - public function getEnableImageQualityScores() - { - return $this->enable_image_quality_scores; - } - - /** - * Enables intelligent document quality scores after OCR. Can help with - * diagnosing why OCR responses are of poor quality for a given input. - * Adds additional latency comparable to regular OCR to the process call. - * - * Generated from protobuf field bool enable_image_quality_scores = 4; - * @param bool $var - * @return $this - */ - public function setEnableImageQualityScores($var) - { - GPBUtil::checkBool($var); - $this->enable_image_quality_scores = $var; - - return $this; - } - - /** - * A list of advanced OCR options to further fine-tune OCR behavior. Current - * valid values are: - * - `legacy_layout`: a heuristics layout detection algorithm, which serves as - * an alternative to the current ML-based layout detection algorithm. - * Customers can choose the best suitable layout algorithm based on their - * situation. - * - * Generated from protobuf field repeated string advanced_ocr_options = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAdvancedOcrOptions() - { - return $this->advanced_ocr_options; - } - - /** - * A list of advanced OCR options to further fine-tune OCR behavior. Current - * valid values are: - * - `legacy_layout`: a heuristics layout detection algorithm, which serves as - * an alternative to the current ML-based layout detection algorithm. - * Customers can choose the best suitable layout algorithm based on their - * situation. - * - * Generated from protobuf field repeated string advanced_ocr_options = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAdvancedOcrOptions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->advanced_ocr_options = $arr; - - return $this; - } - - /** - * Includes symbol level OCR information if set to true. - * - * Generated from protobuf field bool enable_symbol = 6; - * @return bool - */ - public function getEnableSymbol() - { - return $this->enable_symbol; - } - - /** - * Includes symbol level OCR information if set to true. - * - * Generated from protobuf field bool enable_symbol = 6; - * @param bool $var - * @return $this - */ - public function setEnableSymbol($var) - { - GPBUtil::checkBool($var); - $this->enable_symbol = $var; - - return $this; - } - - /** - * Turn on font identification model and return font style information. - * Deprecated, use - * [PremiumFeatures.compute_style_info][google.cloud.documentai.v1.OcrConfig.PremiumFeatures.compute_style_info] - * instead. - * - * Generated from protobuf field bool compute_style_info = 8 [deprecated = true]; - * @return bool - * @deprecated - */ - public function getComputeStyleInfo() - { - @trigger_error('compute_style_info is deprecated.', E_USER_DEPRECATED); - return $this->compute_style_info; - } - - /** - * Turn on font identification model and return font style information. - * Deprecated, use - * [PremiumFeatures.compute_style_info][google.cloud.documentai.v1.OcrConfig.PremiumFeatures.compute_style_info] - * instead. - * - * Generated from protobuf field bool compute_style_info = 8 [deprecated = true]; - * @param bool $var - * @return $this - * @deprecated - */ - public function setComputeStyleInfo($var) - { - @trigger_error('compute_style_info is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkBool($var); - $this->compute_style_info = $var; - - return $this; - } - - /** - * Turn off character box detector in OCR engine. Character box detection is - * enabled by default in OCR 2.0 (and later) processors. - * - * Generated from protobuf field bool disable_character_boxes_detection = 10; - * @return bool - */ - public function getDisableCharacterBoxesDetection() - { - return $this->disable_character_boxes_detection; - } - - /** - * Turn off character box detector in OCR engine. Character box detection is - * enabled by default in OCR 2.0 (and later) processors. - * - * Generated from protobuf field bool disable_character_boxes_detection = 10; - * @param bool $var - * @return $this - */ - public function setDisableCharacterBoxesDetection($var) - { - GPBUtil::checkBool($var); - $this->disable_character_boxes_detection = $var; - - return $this; - } - - /** - * Configurations for premium OCR features. - * - * Generated from protobuf field .google.cloud.documentai.v1.OcrConfig.PremiumFeatures premium_features = 11; - * @return \Google\Cloud\DocumentAI\V1\OcrConfig\PremiumFeatures|null - */ - public function getPremiumFeatures() - { - return $this->premium_features; - } - - public function hasPremiumFeatures() - { - return isset($this->premium_features); - } - - public function clearPremiumFeatures() - { - unset($this->premium_features); - } - - /** - * Configurations for premium OCR features. - * - * Generated from protobuf field .google.cloud.documentai.v1.OcrConfig.PremiumFeatures premium_features = 11; - * @param \Google\Cloud\DocumentAI\V1\OcrConfig\PremiumFeatures $var - * @return $this - */ - public function setPremiumFeatures($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\OcrConfig\PremiumFeatures::class); - $this->premium_features = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig/Hints.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig/Hints.php deleted file mode 100644 index 1e0be646e760..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig/Hints.php +++ /dev/null @@ -1,90 +0,0 @@ -google.cloud.documentai.v1.OcrConfig.Hints - */ -class Hints extends \Google\Protobuf\Internal\Message -{ - /** - * List of BCP-47 language codes to use for OCR. In most cases, not - * specifying it yields the best results since it enables automatic language - * detection. For languages based on the Latin alphabet, setting hints is - * not needed. In rare cases, when the language of the text in the - * image is known, setting a hint will help get better results (although it - * will be a significant hindrance if the hint is wrong). - * - * Generated from protobuf field repeated string language_hints = 1; - */ - private $language_hints; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $language_hints - * List of BCP-47 language codes to use for OCR. In most cases, not - * specifying it yields the best results since it enables automatic language - * detection. For languages based on the Latin alphabet, setting hints is - * not needed. In rare cases, when the language of the text in the - * image is known, setting a hint will help get better results (although it - * will be a significant hindrance if the hint is wrong). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * List of BCP-47 language codes to use for OCR. In most cases, not - * specifying it yields the best results since it enables automatic language - * detection. For languages based on the Latin alphabet, setting hints is - * not needed. In rare cases, when the language of the text in the - * image is known, setting a hint will help get better results (although it - * will be a significant hindrance if the hint is wrong). - * - * Generated from protobuf field repeated string language_hints = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLanguageHints() - { - return $this->language_hints; - } - - /** - * List of BCP-47 language codes to use for OCR. In most cases, not - * specifying it yields the best results since it enables automatic language - * detection. For languages based on the Latin alphabet, setting hints is - * not needed. In rare cases, when the language of the text in the - * image is known, setting a hint will help get better results (although it - * will be a significant hindrance if the hint is wrong). - * - * Generated from protobuf field repeated string language_hints = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLanguageHints($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->language_hints = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Hints::class, \Google\Cloud\DocumentAI\V1\OcrConfig_Hints::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig/PremiumFeatures.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig/PremiumFeatures.php deleted file mode 100644 index 7de94440773c..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/OcrConfig/PremiumFeatures.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.documentai.v1.OcrConfig.PremiumFeatures - */ -class PremiumFeatures extends \Google\Protobuf\Internal\Message -{ - /** - * Turn on selection mark detector in OCR engine. Only available in OCR 2.0 - * (and later) processors. - * - * Generated from protobuf field bool enable_selection_mark_detection = 3; - */ - protected $enable_selection_mark_detection = false; - /** - * Turn on font identification model and return font style information. - * - * Generated from protobuf field bool compute_style_info = 4; - */ - protected $compute_style_info = false; - /** - * Turn on the model that can extract LaTeX math formulas. - * - * Generated from protobuf field bool enable_math_ocr = 5; - */ - protected $enable_math_ocr = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $enable_selection_mark_detection - * Turn on selection mark detector in OCR engine. Only available in OCR 2.0 - * (and later) processors. - * @type bool $compute_style_info - * Turn on font identification model and return font style information. - * @type bool $enable_math_ocr - * Turn on the model that can extract LaTeX math formulas. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * Turn on selection mark detector in OCR engine. Only available in OCR 2.0 - * (and later) processors. - * - * Generated from protobuf field bool enable_selection_mark_detection = 3; - * @return bool - */ - public function getEnableSelectionMarkDetection() - { - return $this->enable_selection_mark_detection; - } - - /** - * Turn on selection mark detector in OCR engine. Only available in OCR 2.0 - * (and later) processors. - * - * Generated from protobuf field bool enable_selection_mark_detection = 3; - * @param bool $var - * @return $this - */ - public function setEnableSelectionMarkDetection($var) - { - GPBUtil::checkBool($var); - $this->enable_selection_mark_detection = $var; - - return $this; - } - - /** - * Turn on font identification model and return font style information. - * - * Generated from protobuf field bool compute_style_info = 4; - * @return bool - */ - public function getComputeStyleInfo() - { - return $this->compute_style_info; - } - - /** - * Turn on font identification model and return font style information. - * - * Generated from protobuf field bool compute_style_info = 4; - * @param bool $var - * @return $this - */ - public function setComputeStyleInfo($var) - { - GPBUtil::checkBool($var); - $this->compute_style_info = $var; - - return $this; - } - - /** - * Turn on the model that can extract LaTeX math formulas. - * - * Generated from protobuf field bool enable_math_ocr = 5; - * @return bool - */ - public function getEnableMathOcr() - { - return $this->enable_math_ocr; - } - - /** - * Turn on the model that can extract LaTeX math formulas. - * - * Generated from protobuf field bool enable_math_ocr = 5; - * @param bool $var - * @return $this - */ - public function setEnableMathOcr($var) - { - GPBUtil::checkBool($var); - $this->enable_math_ocr = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PremiumFeatures::class, \Google\Cloud\DocumentAI\V1\OcrConfig_PremiumFeatures::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions.php deleted file mode 100644 index 57efd2bf2b73..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions.php +++ /dev/null @@ -1,300 +0,0 @@ -google.cloud.documentai.v1.ProcessOptions - */ -class ProcessOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. - * Returns error if set on other processor types. - * - * Generated from protobuf field .google.cloud.documentai.v1.OcrConfig ocr_config = 1; - */ - protected $ocr_config = null; - /** - * Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. - * Returns error if set on other processor types. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions.LayoutConfig layout_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $layout_config = null; - /** - * Optional. Override the schema of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will - * return an Invalid Argument error if this field is set when the underlying - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't - * support schema override. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema schema_override = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema_override = null; - protected $page_range; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\ProcessOptions\IndividualPageSelector $individual_page_selector - * Which pages to process (1-indexed). - * @type int $from_start - * Only process certain pages from the start. Process all if the document - * has fewer pages. - * @type int $from_end - * Only process certain pages from the end, same as above. - * @type \Google\Cloud\DocumentAI\V1\OcrConfig $ocr_config - * Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. - * Returns error if set on other processor types. - * @type \Google\Cloud\DocumentAI\V1\ProcessOptions\LayoutConfig $layout_config - * Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. - * Returns error if set on other processor types. - * @type \Google\Cloud\DocumentAI\V1\DocumentSchema $schema_override - * Optional. Override the schema of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will - * return an Invalid Argument error if this field is set when the underlying - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't - * support schema override. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Which pages to process (1-indexed). - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5; - * @return \Google\Cloud\DocumentAI\V1\ProcessOptions\IndividualPageSelector|null - */ - public function getIndividualPageSelector() - { - return $this->readOneof(5); - } - - public function hasIndividualPageSelector() - { - return $this->hasOneof(5); - } - - /** - * Which pages to process (1-indexed). - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector individual_page_selector = 5; - * @param \Google\Cloud\DocumentAI\V1\ProcessOptions\IndividualPageSelector $var - * @return $this - */ - public function setIndividualPageSelector($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\ProcessOptions\IndividualPageSelector::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Only process certain pages from the start. Process all if the document - * has fewer pages. - * - * Generated from protobuf field int32 from_start = 6; - * @return int - */ - public function getFromStart() - { - return $this->readOneof(6); - } - - public function hasFromStart() - { - return $this->hasOneof(6); - } - - /** - * Only process certain pages from the start. Process all if the document - * has fewer pages. - * - * Generated from protobuf field int32 from_start = 6; - * @param int $var - * @return $this - */ - public function setFromStart($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Only process certain pages from the end, same as above. - * - * Generated from protobuf field int32 from_end = 7; - * @return int - */ - public function getFromEnd() - { - return $this->readOneof(7); - } - - public function hasFromEnd() - { - return $this->hasOneof(7); - } - - /** - * Only process certain pages from the end, same as above. - * - * Generated from protobuf field int32 from_end = 7; - * @param int $var - * @return $this - */ - public function setFromEnd($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. - * Returns error if set on other processor types. - * - * Generated from protobuf field .google.cloud.documentai.v1.OcrConfig ocr_config = 1; - * @return \Google\Cloud\DocumentAI\V1\OcrConfig|null - */ - public function getOcrConfig() - { - return $this->ocr_config; - } - - public function hasOcrConfig() - { - return isset($this->ocr_config); - } - - public function clearOcrConfig() - { - unset($this->ocr_config); - } - - /** - * Only applicable to `OCR_PROCESSOR` and `FORM_PARSER_PROCESSOR`. - * Returns error if set on other processor types. - * - * Generated from protobuf field .google.cloud.documentai.v1.OcrConfig ocr_config = 1; - * @param \Google\Cloud\DocumentAI\V1\OcrConfig $var - * @return $this - */ - public function setOcrConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\OcrConfig::class); - $this->ocr_config = $var; - - return $this; - } - - /** - * Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. - * Returns error if set on other processor types. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions.LayoutConfig layout_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\ProcessOptions\LayoutConfig|null - */ - public function getLayoutConfig() - { - return $this->layout_config; - } - - public function hasLayoutConfig() - { - return isset($this->layout_config); - } - - public function clearLayoutConfig() - { - unset($this->layout_config); - } - - /** - * Optional. Only applicable to `LAYOUT_PARSER_PROCESSOR`. - * Returns error if set on other processor types. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions.LayoutConfig layout_config = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\ProcessOptions\LayoutConfig $var - * @return $this - */ - public function setLayoutConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\ProcessOptions\LayoutConfig::class); - $this->layout_config = $var; - - return $this; - } - - /** - * Optional. Override the schema of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will - * return an Invalid Argument error if this field is set when the underlying - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't - * support schema override. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema schema_override = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\DocumentSchema|null - */ - public function getSchemaOverride() - { - return $this->schema_override; - } - - public function hasSchemaOverride() - { - return isset($this->schema_override); - } - - public function clearSchemaOverride() - { - unset($this->schema_override); - } - - /** - * Optional. Override the schema of the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. Will - * return an Invalid Argument error if this field is set when the underlying - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] doesn't - * support schema override. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema schema_override = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\DocumentSchema $var - * @return $this - */ - public function setSchemaOverride($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\DocumentSchema::class); - $this->schema_override = $var; - - return $this; - } - - /** - * @return string - */ - public function getPageRange() - { - return $this->whichOneof("page_range"); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/IndividualPageSelector.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/IndividualPageSelector.php deleted file mode 100644 index 40cdb2cac3df..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/IndividualPageSelector.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.documentai.v1.ProcessOptions.IndividualPageSelector - */ -class IndividualPageSelector extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Indices of the pages (starting from 1). - * - * Generated from protobuf field repeated int32 pages = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $pages; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $pages - * Optional. Indices of the pages (starting from 1). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Indices of the pages (starting from 1). - * - * Generated from protobuf field repeated int32 pages = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPages() - { - return $this->pages; - } - - /** - * Optional. Indices of the pages (starting from 1). - * - * Generated from protobuf field repeated int32 pages = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPages($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); - $this->pages = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(IndividualPageSelector::class, \Google\Cloud\DocumentAI\V1\ProcessOptions_IndividualPageSelector::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/LayoutConfig.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/LayoutConfig.php deleted file mode 100644 index 7b809cd9b86c..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/LayoutConfig.php +++ /dev/null @@ -1,80 +0,0 @@ -google.cloud.documentai.v1.ProcessOptions.LayoutConfig - */ -class LayoutConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Config for chunking in layout parser processor. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $chunking_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\ProcessOptions\LayoutConfig\ChunkingConfig $chunking_config - * Optional. Config for chunking in layout parser processor. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Config for chunking in layout parser processor. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\ProcessOptions\LayoutConfig\ChunkingConfig|null - */ - public function getChunkingConfig() - { - return $this->chunking_config; - } - - public function hasChunkingConfig() - { - return isset($this->chunking_config); - } - - public function clearChunkingConfig() - { - unset($this->chunking_config); - } - - /** - * Optional. Config for chunking in layout parser processor. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig chunking_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\ProcessOptions\LayoutConfig\ChunkingConfig $var - * @return $this - */ - public function setChunkingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\ProcessOptions\LayoutConfig\ChunkingConfig::class); - $this->chunking_config = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LayoutConfig::class, \Google\Cloud\DocumentAI\V1\ProcessOptions_LayoutConfig::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/LayoutConfig/ChunkingConfig.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/LayoutConfig/ChunkingConfig.php deleted file mode 100644 index eb6139b1159d..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessOptions/LayoutConfig/ChunkingConfig.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.documentai.v1.ProcessOptions.LayoutConfig.ChunkingConfig - */ -class ChunkingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The chunk sizes to use when splitting documents, in order of - * level. - * - * Generated from protobuf field int32 chunk_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $chunk_size = 0; - /** - * Optional. Whether or not to include ancestor headings when splitting. - * - * Generated from protobuf field bool include_ancestor_headings = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $include_ancestor_headings = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $chunk_size - * Optional. The chunk sizes to use when splitting documents, in order of - * level. - * @type bool $include_ancestor_headings - * Optional. Whether or not to include ancestor headings when splitting. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The chunk sizes to use when splitting documents, in order of - * level. - * - * Generated from protobuf field int32 chunk_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getChunkSize() - { - return $this->chunk_size; - } - - /** - * Optional. The chunk sizes to use when splitting documents, in order of - * level. - * - * Generated from protobuf field int32 chunk_size = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setChunkSize($var) - { - GPBUtil::checkInt32($var); - $this->chunk_size = $var; - - return $this; - } - - /** - * Optional. Whether or not to include ancestor headings when splitting. - * - * Generated from protobuf field bool include_ancestor_headings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getIncludeAncestorHeadings() - { - return $this->include_ancestor_headings; - } - - /** - * Optional. Whether or not to include ancestor headings when splitting. - * - * Generated from protobuf field bool include_ancestor_headings = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setIncludeAncestorHeadings($var) - { - GPBUtil::checkBool($var); - $this->include_ancestor_headings = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ChunkingConfig::class, \Google\Cloud\DocumentAI\V1\ProcessOptions_LayoutConfig_ChunkingConfig::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessRequest.php deleted file mode 100644 index fa157c5cd440..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessRequest.php +++ /dev/null @@ -1,457 +0,0 @@ -google.cloud.documentai.v1.ProcessRequest - */ -class ProcessRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the - * [Processor][google.cloud.documentai.v1.Processor] or - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] - * to use for processing. If a - * [Processor][google.cloud.documentai.v1.Processor] is specified, the server - * will use its [default - * version][google.cloud.documentai.v1.Processor.default_processor_version]. - * Format: `projects/{project}/locations/{location}/processors/{processor}`, - * or - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Whether human review should be skipped for this request. Default to - * `false`. - * - * Generated from protobuf field bool skip_human_review = 3; - */ - protected $skip_human_review = false; - /** - * Specifies which fields to include in the - * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] - * output. Only supports top-level document and pages field, so it must be in - * the form of `{document_field_name}` or `pages.{page_field_name}`. - * - * Generated from protobuf field .google.protobuf.FieldMask field_mask = 6; - */ - protected $field_mask = null; - /** - * Inference-time options for the process API - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions process_options = 7; - */ - protected $process_options = null; - /** - * Optional. The labels with user-defined metadata for the request. - * Label keys and values can be no longer than 63 characters - * (Unicode codepoints) and can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Option to remove images from the document. - * - * Generated from protobuf field bool imageless_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $imageless_mode = false; - protected $source; - - /** - * @param string $name Required. The resource name of the - * [Processor][google.cloud.documentai.v1.Processor] or - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] - * to use for processing. If a - * [Processor][google.cloud.documentai.v1.Processor] is specified, the server - * will use its [default - * version][google.cloud.documentai.v1.Processor.default_processor_version]. - * Format: `projects/{project}/locations/{location}/processors/{processor}`, - * or - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * @return \Google\Cloud\DocumentAI\V1\ProcessRequest - * - * @experimental - */ - 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\DocumentAI\V1\Document $inline_document - * An inline document proto. - * @type \Google\Cloud\DocumentAI\V1\RawDocument $raw_document - * A raw document content (bytes). - * @type \Google\Cloud\DocumentAI\V1\GcsDocument $gcs_document - * A raw document on Google Cloud Storage. - * @type string $name - * Required. The resource name of the - * [Processor][google.cloud.documentai.v1.Processor] or - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] - * to use for processing. If a - * [Processor][google.cloud.documentai.v1.Processor] is specified, the server - * will use its [default - * version][google.cloud.documentai.v1.Processor.default_processor_version]. - * Format: `projects/{project}/locations/{location}/processors/{processor}`, - * or - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * @type bool $skip_human_review - * Whether human review should be skipped for this request. Default to - * `false`. - * @type \Google\Protobuf\FieldMask $field_mask - * Specifies which fields to include in the - * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] - * output. Only supports top-level document and pages field, so it must be in - * the form of `{document_field_name}` or `pages.{page_field_name}`. - * @type \Google\Cloud\DocumentAI\V1\ProcessOptions $process_options - * Inference-time options for the process API - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. The labels with user-defined metadata for the request. - * Label keys and values can be no longer than 63 characters - * (Unicode codepoints) and can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * @type bool $imageless_mode - * Optional. Option to remove images from the document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * An inline document proto. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document inline_document = 4; - * @return \Google\Cloud\DocumentAI\V1\Document|null - */ - public function getInlineDocument() - { - return $this->readOneof(4); - } - - public function hasInlineDocument() - { - return $this->hasOneof(4); - } - - /** - * An inline document proto. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document inline_document = 4; - * @param \Google\Cloud\DocumentAI\V1\Document $var - * @return $this - */ - public function setInlineDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * A raw document content (bytes). - * - * Generated from protobuf field .google.cloud.documentai.v1.RawDocument raw_document = 5; - * @return \Google\Cloud\DocumentAI\V1\RawDocument|null - */ - public function getRawDocument() - { - return $this->readOneof(5); - } - - public function hasRawDocument() - { - return $this->hasOneof(5); - } - - /** - * A raw document content (bytes). - * - * Generated from protobuf field .google.cloud.documentai.v1.RawDocument raw_document = 5; - * @param \Google\Cloud\DocumentAI\V1\RawDocument $var - * @return $this - */ - public function setRawDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\RawDocument::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * A raw document on Google Cloud Storage. - * - * Generated from protobuf field .google.cloud.documentai.v1.GcsDocument gcs_document = 8; - * @return \Google\Cloud\DocumentAI\V1\GcsDocument|null - */ - public function getGcsDocument() - { - return $this->readOneof(8); - } - - public function hasGcsDocument() - { - return $this->hasOneof(8); - } - - /** - * A raw document on Google Cloud Storage. - * - * Generated from protobuf field .google.cloud.documentai.v1.GcsDocument gcs_document = 8; - * @param \Google\Cloud\DocumentAI\V1\GcsDocument $var - * @return $this - */ - public function setGcsDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\GcsDocument::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Required. The resource name of the - * [Processor][google.cloud.documentai.v1.Processor] or - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] - * to use for processing. If a - * [Processor][google.cloud.documentai.v1.Processor] is specified, the server - * will use its [default - * version][google.cloud.documentai.v1.Processor.default_processor_version]. - * Format: `projects/{project}/locations/{location}/processors/{processor}`, - * or - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from 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 - * [Processor][google.cloud.documentai.v1.Processor] or - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] - * to use for processing. If a - * [Processor][google.cloud.documentai.v1.Processor] is specified, the server - * will use its [default - * version][google.cloud.documentai.v1.Processor.default_processor_version]. - * Format: `projects/{project}/locations/{location}/processors/{processor}`, - * or - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Whether human review should be skipped for this request. Default to - * `false`. - * - * Generated from protobuf field bool skip_human_review = 3; - * @return bool - */ - public function getSkipHumanReview() - { - return $this->skip_human_review; - } - - /** - * Whether human review should be skipped for this request. Default to - * `false`. - * - * Generated from protobuf field bool skip_human_review = 3; - * @param bool $var - * @return $this - */ - public function setSkipHumanReview($var) - { - GPBUtil::checkBool($var); - $this->skip_human_review = $var; - - return $this; - } - - /** - * Specifies which fields to include in the - * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] - * output. Only supports top-level document and pages field, so it must be in - * the form of `{document_field_name}` or `pages.{page_field_name}`. - * - * Generated from protobuf field .google.protobuf.FieldMask field_mask = 6; - * @return \Google\Protobuf\FieldMask|null - */ - public function getFieldMask() - { - return $this->field_mask; - } - - public function hasFieldMask() - { - return isset($this->field_mask); - } - - public function clearFieldMask() - { - unset($this->field_mask); - } - - /** - * Specifies which fields to include in the - * [ProcessResponse.document][google.cloud.documentai.v1.ProcessResponse.document] - * output. Only supports top-level document and pages field, so it must be in - * the form of `{document_field_name}` or `pages.{page_field_name}`. - * - * Generated from protobuf field .google.protobuf.FieldMask field_mask = 6; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setFieldMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->field_mask = $var; - - return $this; - } - - /** - * Inference-time options for the process API - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions process_options = 7; - * @return \Google\Cloud\DocumentAI\V1\ProcessOptions|null - */ - public function getProcessOptions() - { - return $this->process_options; - } - - public function hasProcessOptions() - { - return isset($this->process_options); - } - - public function clearProcessOptions() - { - unset($this->process_options); - } - - /** - * Inference-time options for the process API - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessOptions process_options = 7; - * @param \Google\Cloud\DocumentAI\V1\ProcessOptions $var - * @return $this - */ - public function setProcessOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\ProcessOptions::class); - $this->process_options = $var; - - return $this; - } - - /** - * Optional. The labels with user-defined metadata for the request. - * Label keys and values can be no longer than 63 characters - * (Unicode codepoints) and can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. The labels with user-defined metadata for the request. - * Label keys and values can be no longer than 63 characters - * (Unicode codepoints) and can only contain lowercase letters, numeric - * characters, underscores, and dashes. International characters are allowed. - * Label values are optional. Label keys must start with a letter. - * - * Generated from protobuf field map labels = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Option to remove images from the document. - * - * Generated from protobuf field bool imageless_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getImagelessMode() - { - return $this->imageless_mode; - } - - /** - * Optional. Option to remove images from the document. - * - * Generated from protobuf field bool imageless_mode = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setImagelessMode($var) - { - GPBUtil::checkBool($var); - $this->imageless_mode = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessResponse.php deleted file mode 100644 index cb8f9c7b8c36..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessResponse.php +++ /dev/null @@ -1,127 +0,0 @@ -google.cloud.documentai.v1.ProcessResponse - */ -class ProcessResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The document payload, will populate fields based on the processor's - * behavior. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document document = 1; - */ - protected $document = null; - /** - * The status of human review on the processed document. - * - * Generated from protobuf field .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3; - */ - protected $human_review_status = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document $document - * The document payload, will populate fields based on the processor's - * behavior. - * @type \Google\Cloud\DocumentAI\V1\HumanReviewStatus $human_review_status - * The status of human review on the processed document. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The document payload, will populate fields based on the processor's - * behavior. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document document = 1; - * @return \Google\Cloud\DocumentAI\V1\Document|null - */ - public function getDocument() - { - return $this->document; - } - - public function hasDocument() - { - return isset($this->document); - } - - public function clearDocument() - { - unset($this->document); - } - - /** - * The document payload, will populate fields based on the processor's - * behavior. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document document = 1; - * @param \Google\Cloud\DocumentAI\V1\Document $var - * @return $this - */ - public function setDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document::class); - $this->document = $var; - - return $this; - } - - /** - * The status of human review on the processed document. - * - * Generated from protobuf field .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3; - * @return \Google\Cloud\DocumentAI\V1\HumanReviewStatus|null - */ - public function getHumanReviewStatus() - { - return $this->human_review_status; - } - - public function hasHumanReviewStatus() - { - return isset($this->human_review_status); - } - - public function clearHumanReviewStatus() - { - unset($this->human_review_status); - } - - /** - * The status of human review on the processed document. - * - * Generated from protobuf field .google.cloud.documentai.v1.HumanReviewStatus human_review_status = 3; - * @param \Google\Cloud\DocumentAI\V1\HumanReviewStatus $var - * @return $this - */ - public function setHumanReviewStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\HumanReviewStatus::class); - $this->human_review_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Processor.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Processor.php deleted file mode 100644 index 4835b189de65..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Processor.php +++ /dev/null @@ -1,438 +0,0 @@ -google.cloud.documentai.v1.Processor - */ -class Processor extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Immutable. The resource name of the processor. - * Format: `projects/{project}/locations/{location}/processors/{processor}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. - * To get a list of processor types, see - * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes]. - * - * Generated from protobuf field string type = 2; - */ - protected $type = ''; - /** - * The display name of the processor. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - /** - * Output only. The state of the processor. - * - * Generated from protobuf field .google.cloud.documentai.v1.Processor.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * The default processor version. - * - * Generated from protobuf field string default_processor_version = 9 [(.google.api.resource_reference) = { - */ - protected $default_processor_version = ''; - /** - * Output only. The processor version aliases. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorVersionAlias processor_version_aliases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $processor_version_aliases; - /** - * Output only. Immutable. The http endpoint that can be called to invoke - * processing. - * - * Generated from protobuf field string process_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $process_endpoint = ''; - /** - * The time the processor was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - */ - protected $create_time = null; - /** - * The [KMS key](https://cloud.google.com/security-key-management) used for - * encryption and decryption in CMEK scenarios. - * - * Generated from protobuf field string kms_key_name = 8; - */ - protected $kms_key_name = ''; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = false; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzi = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzi = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Immutable. The resource name of the processor. - * Format: `projects/{project}/locations/{location}/processors/{processor}` - * @type string $type - * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. - * To get a list of processor types, see - * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes]. - * @type string $display_name - * The display name of the processor. - * @type int $state - * Output only. The state of the processor. - * @type string $default_processor_version - * The default processor version. - * @type array<\Google\Cloud\DocumentAI\V1\ProcessorVersionAlias>|\Google\Protobuf\Internal\RepeatedField $processor_version_aliases - * Output only. The processor version aliases. - * @type string $process_endpoint - * Output only. Immutable. The http endpoint that can be called to invoke - * processing. - * @type \Google\Protobuf\Timestamp $create_time - * The time the processor was created. - * @type string $kms_key_name - * The [KMS key](https://cloud.google.com/security-key-management) used for - * encryption and decryption in CMEK scenarios. - * @type bool $satisfies_pzs - * Output only. Reserved for future use. - * @type bool $satisfies_pzi - * Output only. Reserved for future use. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Processor::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Immutable. The resource name of the processor. - * Format: `projects/{project}/locations/{location}/processors/{processor}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Immutable. The resource name of the processor. - * Format: `projects/{project}/locations/{location}/processors/{processor}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IMMUTABLE, (.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 processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. - * To get a list of processor types, see - * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes]. - * - * Generated from protobuf field string type = 2; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. - * To get a list of processor types, see - * [FetchProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.FetchProcessorTypes]. - * - * Generated from protobuf field string type = 2; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The display name of the processor. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the processor. - * - * Generated from protobuf field string display_name = 3; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. The state of the processor. - * - * Generated from protobuf field .google.cloud.documentai.v1.Processor.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The state of the processor. - * - * Generated from protobuf field .google.cloud.documentai.v1.Processor.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\Processor\State::class); - $this->state = $var; - - return $this; - } - - /** - * The default processor version. - * - * Generated from protobuf field string default_processor_version = 9 [(.google.api.resource_reference) = { - * @return string - */ - public function getDefaultProcessorVersion() - { - return $this->default_processor_version; - } - - /** - * The default processor version. - * - * Generated from protobuf field string default_processor_version = 9 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDefaultProcessorVersion($var) - { - GPBUtil::checkString($var, True); - $this->default_processor_version = $var; - - return $this; - } - - /** - * Output only. The processor version aliases. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorVersionAlias processor_version_aliases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProcessorVersionAliases() - { - return $this->processor_version_aliases; - } - - /** - * Output only. The processor version aliases. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorVersionAlias processor_version_aliases = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\DocumentAI\V1\ProcessorVersionAlias>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProcessorVersionAliases($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\ProcessorVersionAlias::class); - $this->processor_version_aliases = $arr; - - return $this; - } - - /** - * Output only. Immutable. The http endpoint that can be called to invoke - * processing. - * - * Generated from protobuf field string process_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getProcessEndpoint() - { - return $this->process_endpoint; - } - - /** - * Output only. Immutable. The http endpoint that can be called to invoke - * processing. - * - * Generated from protobuf field string process_endpoint = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setProcessEndpoint($var) - { - GPBUtil::checkString($var, True); - $this->process_endpoint = $var; - - return $this; - } - - /** - * The time the processor was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The time the processor was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The [KMS key](https://cloud.google.com/security-key-management) used for - * encryption and decryption in CMEK scenarios. - * - * Generated from protobuf field string kms_key_name = 8; - * @return string - */ - public function getKmsKeyName() - { - return $this->kms_key_name; - } - - /** - * The [KMS key](https://cloud.google.com/security-key-management) used for - * encryption and decryption in CMEK scenarios. - * - * Generated from protobuf field string kms_key_name = 8; - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_name = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzs() - { - return $this->satisfies_pzs; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzi = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzi() - { - return $this->satisfies_pzi; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzi = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzi($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzi = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Processor/State.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Processor/State.php deleted file mode 100644 index 4b15938e4a46..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Processor/State.php +++ /dev/null @@ -1,107 +0,0 @@ -google.cloud.documentai.v1.Processor.State - */ -class State -{ - /** - * The processor is in an unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The processor is enabled, i.e., has an enabled version which can - * currently serve processing requests and all the feature dependencies have - * been successfully initialized. - * - * Generated from protobuf enum ENABLED = 1; - */ - const ENABLED = 1; - /** - * The processor is disabled. - * - * Generated from protobuf enum DISABLED = 2; - */ - const DISABLED = 2; - /** - * The processor is being enabled, will become `ENABLED` if successful. - * - * Generated from protobuf enum ENABLING = 3; - */ - const ENABLING = 3; - /** - * The processor is being disabled, will become `DISABLED` if successful. - * - * Generated from protobuf enum DISABLING = 4; - */ - const DISABLING = 4; - /** - * The processor is being created, will become either `ENABLED` (for - * successful creation) or `FAILED` (for failed ones). - * Once a processor is in this state, it can then be used for document - * processing, but the feature dependencies of the processor might not be - * fully created yet. - * - * Generated from protobuf enum CREATING = 5; - */ - const CREATING = 5; - /** - * The processor failed during creation or initialization of feature - * dependencies. The user should delete the processor and recreate one as - * all the functionalities of the processor are disabled. - * - * Generated from protobuf enum FAILED = 6; - */ - const FAILED = 6; - /** - * The processor is being deleted, will be removed if successful. - * - * Generated from protobuf enum DELETING = 7; - */ - const DELETING = 7; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::ENABLED => 'ENABLED', - self::DISABLED => 'DISABLED', - self::ENABLING => 'ENABLING', - self::DISABLING => 'DISABLING', - self::CREATING => 'CREATING', - self::FAILED => 'FAILED', - self::DELETING => 'DELETING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\DocumentAI\V1\Processor_State::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorType.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorType.php deleted file mode 100644 index 2ee18d7a9f8a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorType.php +++ /dev/null @@ -1,280 +0,0 @@ -google.cloud.documentai.v1.ProcessorType - */ -class ProcessorType extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the processor type. - * Format: `projects/{project}/processorTypes/{processor_type}` - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. - * - * Generated from protobuf field string type = 2; - */ - protected $type = ''; - /** - * The processor category, used by UI to group processor types. - * - * Generated from protobuf field string category = 3; - */ - protected $category = ''; - /** - * The locations in which this processor is available. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4; - */ - private $available_locations; - /** - * Whether the processor type allows creation. If true, users can create a - * processor of this processor type. Otherwise, users need to request access. - * - * Generated from protobuf field bool allow_creation = 6; - */ - protected $allow_creation = false; - /** - * Launch stage of the processor type - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 8; - */ - protected $launch_stage = 0; - /** - * A set of Cloud Storage URIs of sample documents for this processor. - * - * Generated from protobuf field repeated string sample_document_uris = 9; - */ - private $sample_document_uris; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The resource name of the processor type. - * Format: `projects/{project}/processorTypes/{processor_type}` - * @type string $type - * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. - * @type string $category - * The processor category, used by UI to group processor types. - * @type array<\Google\Cloud\DocumentAI\V1\ProcessorType\LocationInfo>|\Google\Protobuf\Internal\RepeatedField $available_locations - * The locations in which this processor is available. - * @type bool $allow_creation - * Whether the processor type allows creation. If true, users can create a - * processor of this processor type. Otherwise, users need to request access. - * @type int $launch_stage - * Launch stage of the processor type - * @type array|\Google\Protobuf\Internal\RepeatedField $sample_document_uris - * A set of Cloud Storage URIs of sample documents for this processor. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\ProcessorType::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the processor type. - * Format: `projects/{project}/processorTypes/{processor_type}` - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The resource name of the processor type. - * Format: `projects/{project}/processorTypes/{processor_type}` - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. - * - * Generated from protobuf field string type = 2; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * The processor type, such as: `OCR_PROCESSOR`, `INVOICE_PROCESSOR`. - * - * Generated from protobuf field string type = 2; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * The processor category, used by UI to group processor types. - * - * Generated from protobuf field string category = 3; - * @return string - */ - public function getCategory() - { - return $this->category; - } - - /** - * The processor category, used by UI to group processor types. - * - * Generated from protobuf field string category = 3; - * @param string $var - * @return $this - */ - public function setCategory($var) - { - GPBUtil::checkString($var, True); - $this->category = $var; - - return $this; - } - - /** - * The locations in which this processor is available. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAvailableLocations() - { - return $this->available_locations; - } - - /** - * The locations in which this processor is available. - * - * Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4; - * @param array<\Google\Cloud\DocumentAI\V1\ProcessorType\LocationInfo>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAvailableLocations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DocumentAI\V1\ProcessorType\LocationInfo::class); - $this->available_locations = $arr; - - return $this; - } - - /** - * Whether the processor type allows creation. If true, users can create a - * processor of this processor type. Otherwise, users need to request access. - * - * Generated from protobuf field bool allow_creation = 6; - * @return bool - */ - public function getAllowCreation() - { - return $this->allow_creation; - } - - /** - * Whether the processor type allows creation. If true, users can create a - * processor of this processor type. Otherwise, users need to request access. - * - * Generated from protobuf field bool allow_creation = 6; - * @param bool $var - * @return $this - */ - public function setAllowCreation($var) - { - GPBUtil::checkBool($var); - $this->allow_creation = $var; - - return $this; - } - - /** - * Launch stage of the processor type - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 8; - * @return int - */ - public function getLaunchStage() - { - return $this->launch_stage; - } - - /** - * Launch stage of the processor type - * - * Generated from protobuf field .google.api.LaunchStage launch_stage = 8; - * @param int $var - * @return $this - */ - public function setLaunchStage($var) - { - GPBUtil::checkEnum($var, \Google\Api\LaunchStage::class); - $this->launch_stage = $var; - - return $this; - } - - /** - * A set of Cloud Storage URIs of sample documents for this processor. - * - * Generated from protobuf field repeated string sample_document_uris = 9; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSampleDocumentUris() - { - return $this->sample_document_uris; - } - - /** - * A set of Cloud Storage URIs of sample documents for this processor. - * - * Generated from protobuf field repeated string sample_document_uris = 9; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSampleDocumentUris($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->sample_document_uris = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorType/LocationInfo.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorType/LocationInfo.php deleted file mode 100644 index aff1d4c1493b..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorType/LocationInfo.php +++ /dev/null @@ -1,74 +0,0 @@ -google.cloud.documentai.v1.ProcessorType.LocationInfo - */ -class LocationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The location ID. For supported locations, refer to [regional and - * multi-regional support](/document-ai/docs/regions). - * - * Generated from protobuf field string location_id = 1; - */ - protected $location_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $location_id - * The location ID. For supported locations, refer to [regional and - * multi-regional support](/document-ai/docs/regions). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\ProcessorType::initOnce(); - parent::__construct($data); - } - - /** - * The location ID. For supported locations, refer to [regional and - * multi-regional support](/document-ai/docs/regions). - * - * Generated from protobuf field string location_id = 1; - * @return string - */ - public function getLocationId() - { - return $this->location_id; - } - - /** - * The location ID. For supported locations, refer to [regional and - * multi-regional support](/document-ai/docs/regions). - * - * Generated from protobuf field string location_id = 1; - * @param string $var - * @return $this - */ - public function setLocationId($var) - { - GPBUtil::checkString($var, True); - $this->location_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LocationInfo::class, \Google\Cloud\DocumentAI\V1\ProcessorType_LocationInfo::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion.php deleted file mode 100644 index 12b86ace960e..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion.php +++ /dev/null @@ -1,574 +0,0 @@ -google.cloud.documentai.v1.ProcessorVersion - */ -class ProcessorVersion extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the processor version. - * Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * The display name of the processor version. - * - * Generated from protobuf field string display_name = 2; - */ - protected $display_name = ''; - /** - * The schema of the processor version. Describes the output. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema document_schema = 12; - */ - protected $document_schema = null; - /** - * Output only. The state of the processor version. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * The time the processor version was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - */ - protected $create_time = null; - /** - * The most recently invoked evaluation for the processor version. - * - * Generated from protobuf field .google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8; - */ - protected $latest_evaluation = null; - /** - * The KMS key name used for encryption. - * - * Generated from protobuf field string kms_key_name = 9; - */ - protected $kms_key_name = ''; - /** - * The KMS key version with which data is encrypted. - * - * Generated from protobuf field string kms_key_version_name = 10; - */ - protected $kms_key_version_name = ''; - /** - * Output only. Denotes that this `ProcessorVersion` is managed by Google. - * - * Generated from protobuf field bool google_managed = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $google_managed = false; - /** - * If set, information about the eventual deprecation of this version. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13; - */ - protected $deprecation_info = null; - /** - * Output only. The model type of this processor version. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $model_type = 0; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = false; - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzi = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzi = false; - /** - * Output only. Information about Generative AI model-based processor - * versions. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo gen_ai_model_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $gen_ai_model_info = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the processor version. - * Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` - * @type string $display_name - * The display name of the processor version. - * @type \Google\Cloud\DocumentAI\V1\DocumentSchema $document_schema - * The schema of the processor version. Describes the output. - * @type int $state - * Output only. The state of the processor version. - * @type \Google\Protobuf\Timestamp $create_time - * The time the processor version was created. - * @type \Google\Cloud\DocumentAI\V1\EvaluationReference $latest_evaluation - * The most recently invoked evaluation for the processor version. - * @type string $kms_key_name - * The KMS key name used for encryption. - * @type string $kms_key_version_name - * The KMS key version with which data is encrypted. - * @type bool $google_managed - * Output only. Denotes that this `ProcessorVersion` is managed by Google. - * @type \Google\Cloud\DocumentAI\V1\ProcessorVersion\DeprecationInfo $deprecation_info - * If set, information about the eventual deprecation of this version. - * @type int $model_type - * Output only. The model type of this processor version. - * @type bool $satisfies_pzs - * Output only. Reserved for future use. - * @type bool $satisfies_pzi - * Output only. Reserved for future use. - * @type \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo $gen_ai_model_info - * Output only. Information about Generative AI model-based processor - * versions. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Processor::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the processor version. - * Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}` - * - * 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 processor version. - * Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_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; - } - - /** - * The display name of the processor version. - * - * Generated from protobuf field string display_name = 2; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the processor version. - * - * 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 schema of the processor version. Describes the output. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema document_schema = 12; - * @return \Google\Cloud\DocumentAI\V1\DocumentSchema|null - */ - public function getDocumentSchema() - { - return $this->document_schema; - } - - public function hasDocumentSchema() - { - return isset($this->document_schema); - } - - public function clearDocumentSchema() - { - unset($this->document_schema); - } - - /** - * The schema of the processor version. Describes the output. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema document_schema = 12; - * @param \Google\Cloud\DocumentAI\V1\DocumentSchema $var - * @return $this - */ - public function setDocumentSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\DocumentSchema::class); - $this->document_schema = $var; - - return $this; - } - - /** - * Output only. The state of the processor version. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The state of the processor version. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\ProcessorVersion\State::class); - $this->state = $var; - - return $this; - } - - /** - * The time the processor version was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * The time the processor version was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * The most recently invoked evaluation for the processor version. - * - * Generated from protobuf field .google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8; - * @return \Google\Cloud\DocumentAI\V1\EvaluationReference|null - */ - public function getLatestEvaluation() - { - return $this->latest_evaluation; - } - - public function hasLatestEvaluation() - { - return isset($this->latest_evaluation); - } - - public function clearLatestEvaluation() - { - unset($this->latest_evaluation); - } - - /** - * The most recently invoked evaluation for the processor version. - * - * Generated from protobuf field .google.cloud.documentai.v1.EvaluationReference latest_evaluation = 8; - * @param \Google\Cloud\DocumentAI\V1\EvaluationReference $var - * @return $this - */ - public function setLatestEvaluation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\EvaluationReference::class); - $this->latest_evaluation = $var; - - return $this; - } - - /** - * The KMS key name used for encryption. - * - * Generated from protobuf field string kms_key_name = 9; - * @return string - */ - public function getKmsKeyName() - { - return $this->kms_key_name; - } - - /** - * The KMS key name used for encryption. - * - * Generated from protobuf field string kms_key_name = 9; - * @param string $var - * @return $this - */ - public function setKmsKeyName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_name = $var; - - return $this; - } - - /** - * The KMS key version with which data is encrypted. - * - * Generated from protobuf field string kms_key_version_name = 10; - * @return string - */ - public function getKmsKeyVersionName() - { - return $this->kms_key_version_name; - } - - /** - * The KMS key version with which data is encrypted. - * - * Generated from protobuf field string kms_key_version_name = 10; - * @param string $var - * @return $this - */ - public function setKmsKeyVersionName($var) - { - GPBUtil::checkString($var, True); - $this->kms_key_version_name = $var; - - return $this; - } - - /** - * Output only. Denotes that this `ProcessorVersion` is managed by Google. - * - * Generated from protobuf field bool google_managed = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getGoogleManaged() - { - return $this->google_managed; - } - - /** - * Output only. Denotes that this `ProcessorVersion` is managed by Google. - * - * Generated from protobuf field bool google_managed = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setGoogleManaged($var) - { - GPBUtil::checkBool($var); - $this->google_managed = $var; - - return $this; - } - - /** - * If set, information about the eventual deprecation of this version. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13; - * @return \Google\Cloud\DocumentAI\V1\ProcessorVersion\DeprecationInfo|null - */ - public function getDeprecationInfo() - { - return $this->deprecation_info; - } - - public function hasDeprecationInfo() - { - return isset($this->deprecation_info); - } - - public function clearDeprecationInfo() - { - unset($this->deprecation_info); - } - - /** - * If set, information about the eventual deprecation of this version. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo deprecation_info = 13; - * @param \Google\Cloud\DocumentAI\V1\ProcessorVersion\DeprecationInfo $var - * @return $this - */ - public function setDeprecationInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\ProcessorVersion\DeprecationInfo::class); - $this->deprecation_info = $var; - - return $this; - } - - /** - * Output only. The model type of this processor version. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getModelType() - { - return $this->model_type; - } - - /** - * Output only. The model type of this processor version. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.ModelType model_type = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setModelType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\ProcessorVersion\ModelType::class); - $this->model_type = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzs() - { - return $this->satisfies_pzs; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzs = 16 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzi = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzi() - { - return $this->satisfies_pzi; - } - - /** - * Output only. Reserved for future use. - * - * Generated from protobuf field bool satisfies_pzi = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzi($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzi = $var; - - return $this; - } - - /** - * Output only. Information about Generative AI model-based processor - * versions. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo gen_ai_model_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo|null - */ - public function getGenAiModelInfo() - { - return $this->gen_ai_model_info; - } - - public function hasGenAiModelInfo() - { - return isset($this->gen_ai_model_info); - } - - public function clearGenAiModelInfo() - { - unset($this->gen_ai_model_info); - } - - /** - * Output only. Information about Generative AI model-based processor - * versions. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo gen_ai_model_info = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo $var - * @return $this - */ - public function setGenAiModelInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo::class); - $this->gen_ai_model_info = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/DeprecationInfo.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/DeprecationInfo.php deleted file mode 100644 index f6d07ebc1de2..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/DeprecationInfo.php +++ /dev/null @@ -1,114 +0,0 @@ -google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo - */ -class DeprecationInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The time at which this processor version will be deprecated. - * - * Generated from protobuf field .google.protobuf.Timestamp deprecation_time = 1; - */ - protected $deprecation_time = null; - /** - * If set, the processor version that will be used as a replacement. - * - * Generated from protobuf field string replacement_processor_version = 2 [(.google.api.resource_reference) = { - */ - protected $replacement_processor_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $deprecation_time - * The time at which this processor version will be deprecated. - * @type string $replacement_processor_version - * If set, the processor version that will be used as a replacement. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Processor::initOnce(); - parent::__construct($data); - } - - /** - * The time at which this processor version will be deprecated. - * - * Generated from protobuf field .google.protobuf.Timestamp deprecation_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getDeprecationTime() - { - return $this->deprecation_time; - } - - public function hasDeprecationTime() - { - return isset($this->deprecation_time); - } - - public function clearDeprecationTime() - { - unset($this->deprecation_time); - } - - /** - * The time at which this processor version will be deprecated. - * - * Generated from protobuf field .google.protobuf.Timestamp deprecation_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setDeprecationTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->deprecation_time = $var; - - return $this; - } - - /** - * If set, the processor version that will be used as a replacement. - * - * Generated from protobuf field string replacement_processor_version = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getReplacementProcessorVersion() - { - return $this->replacement_processor_version; - } - - /** - * If set, the processor version that will be used as a replacement. - * - * Generated from protobuf field string replacement_processor_version = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setReplacementProcessorVersion($var) - { - GPBUtil::checkString($var, True); - $this->replacement_processor_version = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DeprecationInfo::class, \Google\Cloud\DocumentAI\V1\ProcessorVersion_DeprecationInfo::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo.php deleted file mode 100644 index 668d2517f811..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo.php +++ /dev/null @@ -1,111 +0,0 @@ -google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo - */ -class GenAiModelInfo extends \Google\Protobuf\Internal\Message -{ - protected $model_info; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo\FoundationGenAiModelInfo $foundation_gen_ai_model_info - * Information for a pretrained Google-managed foundation model. - * @type \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo\CustomGenAiModelInfo $custom_gen_ai_model_info - * Information for a custom Generative AI model created by the user. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Processor::initOnce(); - parent::__construct($data); - } - - /** - * Information for a pretrained Google-managed foundation model. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.FoundationGenAiModelInfo foundation_gen_ai_model_info = 1; - * @return \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo\FoundationGenAiModelInfo|null - */ - public function getFoundationGenAiModelInfo() - { - return $this->readOneof(1); - } - - public function hasFoundationGenAiModelInfo() - { - return $this->hasOneof(1); - } - - /** - * Information for a pretrained Google-managed foundation model. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.FoundationGenAiModelInfo foundation_gen_ai_model_info = 1; - * @param \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo\FoundationGenAiModelInfo $var - * @return $this - */ - public function setFoundationGenAiModelInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo\FoundationGenAiModelInfo::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Information for a custom Generative AI model created by the user. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo custom_gen_ai_model_info = 2; - * @return \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo\CustomGenAiModelInfo|null - */ - public function getCustomGenAiModelInfo() - { - return $this->readOneof(2); - } - - public function hasCustomGenAiModelInfo() - { - return $this->hasOneof(2); - } - - /** - * Information for a custom Generative AI model created by the user. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo custom_gen_ai_model_info = 2; - * @param \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo\CustomGenAiModelInfo $var - * @return $this - */ - public function setCustomGenAiModelInfo($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo\CustomGenAiModelInfo::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getModelInfo() - { - return $this->whichOneof("model_info"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GenAiModelInfo::class, \Google\Cloud\DocumentAI\V1\ProcessorVersion_GenAiModelInfo::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/CustomGenAiModelInfo.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/CustomGenAiModelInfo.php deleted file mode 100644 index 886298d2f206..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/CustomGenAiModelInfo.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo - */ -class CustomGenAiModelInfo extends \Google\Protobuf\Internal\Message -{ - /** - * The type of custom model created by the user. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType custom_model_type = 1; - */ - protected $custom_model_type = 0; - /** - * The base processor version ID for the custom model. - * - * Generated from protobuf field string base_processor_version_id = 2; - */ - protected $base_processor_version_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $custom_model_type - * The type of custom model created by the user. - * @type string $base_processor_version_id - * The base processor version ID for the custom model. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Processor::initOnce(); - parent::__construct($data); - } - - /** - * The type of custom model created by the user. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType custom_model_type = 1; - * @return int - */ - public function getCustomModelType() - { - return $this->custom_model_type; - } - - /** - * The type of custom model created by the user. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType custom_model_type = 1; - * @param int $var - * @return $this - */ - public function setCustomModelType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\ProcessorVersion\GenAiModelInfo\CustomGenAiModelInfo\CustomModelType::class); - $this->custom_model_type = $var; - - return $this; - } - - /** - * The base processor version ID for the custom model. - * - * Generated from protobuf field string base_processor_version_id = 2; - * @return string - */ - public function getBaseProcessorVersionId() - { - return $this->base_processor_version_id; - } - - /** - * The base processor version ID for the custom model. - * - * Generated from protobuf field string base_processor_version_id = 2; - * @param string $var - * @return $this - */ - public function setBaseProcessorVersionId($var) - { - GPBUtil::checkString($var, True); - $this->base_processor_version_id = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomGenAiModelInfo::class, \Google\Cloud\DocumentAI\V1\ProcessorVersion_GenAiModelInfo_CustomGenAiModelInfo::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/CustomGenAiModelInfo/CustomModelType.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/CustomGenAiModelInfo/CustomModelType.php deleted file mode 100644 index 7b813eb078d9..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/CustomGenAiModelInfo/CustomModelType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.CustomGenAiModelInfo.CustomModelType - */ -class CustomModelType -{ - /** - * The model type is unspecified. - * - * Generated from protobuf enum CUSTOM_MODEL_TYPE_UNSPECIFIED = 0; - */ - const CUSTOM_MODEL_TYPE_UNSPECIFIED = 0; - /** - * The model is a versioned foundation model. - * - * Generated from protobuf enum VERSIONED_FOUNDATION = 1; - */ - const VERSIONED_FOUNDATION = 1; - /** - * The model is a finetuned foundation model. - * - * Generated from protobuf enum FINE_TUNED = 2; - */ - const FINE_TUNED = 2; - - private static $valueToName = [ - self::CUSTOM_MODEL_TYPE_UNSPECIFIED => 'CUSTOM_MODEL_TYPE_UNSPECIFIED', - self::VERSIONED_FOUNDATION => 'VERSIONED_FOUNDATION', - self::FINE_TUNED => 'FINE_TUNED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomModelType::class, \Google\Cloud\DocumentAI\V1\ProcessorVersion_GenAiModelInfo_CustomGenAiModelInfo_CustomModelType::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/FoundationGenAiModelInfo.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/FoundationGenAiModelInfo.php deleted file mode 100644 index 52e91021b187..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/GenAiModelInfo/FoundationGenAiModelInfo.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.documentai.v1.ProcessorVersion.GenAiModelInfo.FoundationGenAiModelInfo - */ -class FoundationGenAiModelInfo extends \Google\Protobuf\Internal\Message -{ - /** - * Whether finetuning is allowed for this base processor version. - * - * Generated from protobuf field bool finetuning_allowed = 1; - */ - protected $finetuning_allowed = false; - /** - * The minimum number of labeled documents in the training dataset - * required for finetuning. - * - * Generated from protobuf field int32 min_train_labeled_documents = 2; - */ - protected $min_train_labeled_documents = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $finetuning_allowed - * Whether finetuning is allowed for this base processor version. - * @type int $min_train_labeled_documents - * The minimum number of labeled documents in the training dataset - * required for finetuning. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Processor::initOnce(); - parent::__construct($data); - } - - /** - * Whether finetuning is allowed for this base processor version. - * - * Generated from protobuf field bool finetuning_allowed = 1; - * @return bool - */ - public function getFinetuningAllowed() - { - return $this->finetuning_allowed; - } - - /** - * Whether finetuning is allowed for this base processor version. - * - * Generated from protobuf field bool finetuning_allowed = 1; - * @param bool $var - * @return $this - */ - public function setFinetuningAllowed($var) - { - GPBUtil::checkBool($var); - $this->finetuning_allowed = $var; - - return $this; - } - - /** - * The minimum number of labeled documents in the training dataset - * required for finetuning. - * - * Generated from protobuf field int32 min_train_labeled_documents = 2; - * @return int - */ - public function getMinTrainLabeledDocuments() - { - return $this->min_train_labeled_documents; - } - - /** - * The minimum number of labeled documents in the training dataset - * required for finetuning. - * - * Generated from protobuf field int32 min_train_labeled_documents = 2; - * @param int $var - * @return $this - */ - public function setMinTrainLabeledDocuments($var) - { - GPBUtil::checkInt32($var); - $this->min_train_labeled_documents = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FoundationGenAiModelInfo::class, \Google\Cloud\DocumentAI\V1\ProcessorVersion_GenAiModelInfo_FoundationGenAiModelInfo::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/ModelType.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/ModelType.php deleted file mode 100644 index 01dae38d59e2..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/ModelType.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.documentai.v1.ProcessorVersion.ModelType - */ -class ModelType -{ - /** - * The processor version has unspecified model type. - * - * Generated from protobuf enum MODEL_TYPE_UNSPECIFIED = 0; - */ - const MODEL_TYPE_UNSPECIFIED = 0; - /** - * The processor version has generative model type. - * - * Generated from protobuf enum MODEL_TYPE_GENERATIVE = 1; - */ - const MODEL_TYPE_GENERATIVE = 1; - /** - * The processor version has custom model type. - * - * Generated from protobuf enum MODEL_TYPE_CUSTOM = 2; - */ - const MODEL_TYPE_CUSTOM = 2; - - private static $valueToName = [ - self::MODEL_TYPE_UNSPECIFIED => 'MODEL_TYPE_UNSPECIFIED', - self::MODEL_TYPE_GENERATIVE => 'MODEL_TYPE_GENERATIVE', - self::MODEL_TYPE_CUSTOM => 'MODEL_TYPE_CUSTOM', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DocumentAI\V1\ProcessorVersion_ModelType::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/State.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/State.php deleted file mode 100644 index 3c740d1f1bb4..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersion/State.php +++ /dev/null @@ -1,106 +0,0 @@ -google.cloud.documentai.v1.ProcessorVersion.State - */ -class State -{ - /** - * The processor version is in an unspecified state. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The processor version is deployed and can be used for processing. - * - * Generated from protobuf enum DEPLOYED = 1; - */ - const DEPLOYED = 1; - /** - * The processor version is being deployed. - * - * Generated from protobuf enum DEPLOYING = 2; - */ - const DEPLOYING = 2; - /** - * The processor version is not deployed and cannot be used for processing. - * - * Generated from protobuf enum UNDEPLOYED = 3; - */ - const UNDEPLOYED = 3; - /** - * The processor version is being undeployed. - * - * Generated from protobuf enum UNDEPLOYING = 4; - */ - const UNDEPLOYING = 4; - /** - * The processor version is being created. - * - * Generated from protobuf enum CREATING = 5; - */ - const CREATING = 5; - /** - * The processor version is being deleted. - * - * Generated from protobuf enum DELETING = 6; - */ - const DELETING = 6; - /** - * The processor version failed and is in an indeterminate state. - * - * Generated from protobuf enum FAILED = 7; - */ - const FAILED = 7; - /** - * The processor version is being imported. - * - * Generated from protobuf enum IMPORTING = 8; - */ - const IMPORTING = 8; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::DEPLOYED => 'DEPLOYED', - self::DEPLOYING => 'DEPLOYING', - self::UNDEPLOYED => 'UNDEPLOYED', - self::UNDEPLOYING => 'UNDEPLOYING', - self::CREATING => 'CREATING', - self::DELETING => 'DELETING', - self::FAILED => 'FAILED', - self::IMPORTING => 'IMPORTING', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DocumentAI\V1\ProcessorVersion_State::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersionAlias.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersionAlias.php deleted file mode 100644 index 704c750728bf..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ProcessorVersionAlias.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.documentai.v1.ProcessorVersionAlias - */ -class ProcessorVersionAlias extends \Google\Protobuf\Internal\Message -{ - /** - * The alias in the form of `processor_version` resource name. - * - * Generated from protobuf field string alias = 1; - */ - protected $alias = ''; - /** - * The resource name of aliased processor version. - * - * Generated from protobuf field string processor_version = 2 [(.google.api.resource_reference) = { - */ - protected $processor_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $alias - * The alias in the form of `processor_version` resource name. - * @type string $processor_version - * The resource name of aliased processor version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Processor::initOnce(); - parent::__construct($data); - } - - /** - * The alias in the form of `processor_version` resource name. - * - * Generated from protobuf field string alias = 1; - * @return string - */ - public function getAlias() - { - return $this->alias; - } - - /** - * The alias in the form of `processor_version` resource name. - * - * Generated from protobuf field string alias = 1; - * @param string $var - * @return $this - */ - public function setAlias($var) - { - GPBUtil::checkString($var, True); - $this->alias = $var; - - return $this; - } - - /** - * The resource name of aliased processor version. - * - * Generated from protobuf field string processor_version = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getProcessorVersion() - { - return $this->processor_version; - } - - /** - * The resource name of aliased processor version. - * - * Generated from protobuf field string processor_version = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProcessorVersion($var) - { - GPBUtil::checkString($var, True); - $this->processor_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/RawDocument.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/RawDocument.php deleted file mode 100644 index efe1134b293f..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/RawDocument.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.documentai.v1.RawDocument - */ -class RawDocument extends \Google\Protobuf\Internal\Message -{ - /** - * Inline document content. - * - * Generated from protobuf field bytes content = 1; - */ - protected $content = ''; - /** - * An IANA MIME type (RFC6838) indicating the nature and format of the - * [content][google.cloud.documentai.v1.RawDocument.content]. - * - * Generated from protobuf field string mime_type = 2; - */ - protected $mime_type = ''; - /** - * The display name of the document, it supports all Unicode characters except - * the following: - * `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,` - * `~`, `=` and `:` are reserved. - * If not specified, a default ID is generated. - * - * Generated from protobuf field string display_name = 3; - */ - protected $display_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $content - * Inline document content. - * @type string $mime_type - * An IANA MIME type (RFC6838) indicating the nature and format of the - * [content][google.cloud.documentai.v1.RawDocument.content]. - * @type string $display_name - * The display name of the document, it supports all Unicode characters except - * the following: - * `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,` - * `~`, `=` and `:` are reserved. - * If not specified, a default ID is generated. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentIo::initOnce(); - parent::__construct($data); - } - - /** - * Inline document content. - * - * Generated from protobuf field bytes content = 1; - * @return string - */ - public function getContent() - { - return $this->content; - } - - /** - * Inline document content. - * - * Generated from protobuf field bytes content = 1; - * @param string $var - * @return $this - */ - public function setContent($var) - { - GPBUtil::checkString($var, False); - $this->content = $var; - - return $this; - } - - /** - * An IANA MIME type (RFC6838) indicating the nature and format of the - * [content][google.cloud.documentai.v1.RawDocument.content]. - * - * Generated from protobuf field string mime_type = 2; - * @return string - */ - public function getMimeType() - { - return $this->mime_type; - } - - /** - * An IANA MIME type (RFC6838) indicating the nature and format of the - * [content][google.cloud.documentai.v1.RawDocument.content]. - * - * Generated from protobuf field string mime_type = 2; - * @param string $var - * @return $this - */ - public function setMimeType($var) - { - GPBUtil::checkString($var, True); - $this->mime_type = $var; - - return $this; - } - - /** - * The display name of the document, it supports all Unicode characters except - * the following: - * `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,` - * `~`, `=` and `:` are reserved. - * If not specified, a default ID is generated. - * - * Generated from protobuf field string display_name = 3; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * The display name of the document, it supports all Unicode characters except - * the following: - * `*`, `?`, `[`, `]`, `%`, `{`, `}`,`'`, `\"`, `,` - * `~`, `=` and `:` are reserved. - * If not specified, a default ID is generated. - * - * 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; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentOperationMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentOperationMetadata.php deleted file mode 100644 index e367e4513d12..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentOperationMetadata.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.documentai.v1.ReviewDocumentOperationMetadata - */ -class ReviewDocumentOperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - */ - protected $common_metadata = null; - /** - * The Crowd Compute question ID. - * - * Generated from protobuf field string question_id = 6; - */ - protected $question_id = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata - * The basic metadata of the long-running operation. - * @type string $question_id - * The Crowd Compute question ID. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 5; - * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - - /** - * The Crowd Compute question ID. - * - * Generated from protobuf field string question_id = 6; - * @return string - */ - public function getQuestionId() - { - return $this->question_id; - } - - /** - * The Crowd Compute question ID. - * - * Generated from protobuf field string question_id = 6; - * @param string $var - * @return $this - */ - public function setQuestionId($var) - { - GPBUtil::checkString($var, True); - $this->question_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentRequest.php deleted file mode 100644 index 9e4a1bf7c987..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.documentai.v1.ReviewDocumentRequest - */ -class ReviewDocumentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the - * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the - * document will be reviewed with. - * - * Generated from protobuf field string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $human_review_config = ''; - /** - * Whether the validation should be performed on the ad-hoc review request. - * - * Generated from protobuf field bool enable_schema_validation = 3; - */ - protected $enable_schema_validation = false; - /** - * The priority of the human review task. - * - * Generated from protobuf field .google.cloud.documentai.v1.ReviewDocumentRequest.Priority priority = 5; - */ - protected $priority = 0; - /** - * The document schema of the human review task. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema document_schema = 6; - */ - protected $document_schema = null; - protected $source; - - /** - * @param string $humanReviewConfig Required. The resource name of the - * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the - * document will be reviewed with. Please see - * {@see DocumentProcessorServiceClient::humanReviewConfigName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\ReviewDocumentRequest - * - * @experimental - */ - public static function build(string $humanReviewConfig): self - { - return (new self()) - ->setHumanReviewConfig($humanReviewConfig); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\Document $inline_document - * An inline document proto. - * @type string $human_review_config - * Required. The resource name of the - * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the - * document will be reviewed with. - * @type bool $enable_schema_validation - * Whether the validation should be performed on the ad-hoc review request. - * @type int $priority - * The priority of the human review task. - * @type \Google\Cloud\DocumentAI\V1\DocumentSchema $document_schema - * The document schema of the human review task. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * An inline document proto. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document inline_document = 4; - * @return \Google\Cloud\DocumentAI\V1\Document|null - */ - public function getInlineDocument() - { - return $this->readOneof(4); - } - - public function hasInlineDocument() - { - return $this->hasOneof(4); - } - - /** - * An inline document proto. - * - * Generated from protobuf field .google.cloud.documentai.v1.Document inline_document = 4; - * @param \Google\Cloud\DocumentAI\V1\Document $var - * @return $this - */ - public function setInlineDocument($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Document::class); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Required. The resource name of the - * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the - * document will be reviewed with. - * - * Generated from protobuf field string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getHumanReviewConfig() - { - return $this->human_review_config; - } - - /** - * Required. The resource name of the - * [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the - * document will be reviewed with. - * - * Generated from protobuf field string human_review_config = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setHumanReviewConfig($var) - { - GPBUtil::checkString($var, True); - $this->human_review_config = $var; - - return $this; - } - - /** - * Whether the validation should be performed on the ad-hoc review request. - * - * Generated from protobuf field bool enable_schema_validation = 3; - * @return bool - */ - public function getEnableSchemaValidation() - { - return $this->enable_schema_validation; - } - - /** - * Whether the validation should be performed on the ad-hoc review request. - * - * Generated from protobuf field bool enable_schema_validation = 3; - * @param bool $var - * @return $this - */ - public function setEnableSchemaValidation($var) - { - GPBUtil::checkBool($var); - $this->enable_schema_validation = $var; - - return $this; - } - - /** - * The priority of the human review task. - * - * Generated from protobuf field .google.cloud.documentai.v1.ReviewDocumentRequest.Priority priority = 5; - * @return int - */ - public function getPriority() - { - return $this->priority; - } - - /** - * The priority of the human review task. - * - * Generated from protobuf field .google.cloud.documentai.v1.ReviewDocumentRequest.Priority priority = 5; - * @param int $var - * @return $this - */ - public function setPriority($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\ReviewDocumentRequest\Priority::class); - $this->priority = $var; - - return $this; - } - - /** - * The document schema of the human review task. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema document_schema = 6; - * @return \Google\Cloud\DocumentAI\V1\DocumentSchema|null - */ - public function getDocumentSchema() - { - return $this->document_schema; - } - - public function hasDocumentSchema() - { - return isset($this->document_schema); - } - - public function clearDocumentSchema() - { - unset($this->document_schema); - } - - /** - * The document schema of the human review task. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema document_schema = 6; - * @param \Google\Cloud\DocumentAI\V1\DocumentSchema $var - * @return $this - */ - public function setDocumentSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\DocumentSchema::class); - $this->document_schema = $var; - - return $this; - } - - /** - * @return string - */ - public function getSource() - { - return $this->whichOneof("source"); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentRequest/Priority.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentRequest/Priority.php deleted file mode 100644 index 41929b863a9d..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentRequest/Priority.php +++ /dev/null @@ -1,62 +0,0 @@ -google.cloud.documentai.v1.ReviewDocumentRequest.Priority - */ -class Priority -{ - /** - * The default priority level. - * - * Generated from protobuf enum DEFAULT = 0; - */ - const PBDEFAULT = 0; - /** - * The urgent priority level. The labeling manager should allocate labeler - * resource to the urgent task queue to respect this priority level. - * - * Generated from protobuf enum URGENT = 1; - */ - const URGENT = 1; - - private static $valueToName = [ - self::PBDEFAULT => 'DEFAULT', - self::URGENT => 'URGENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has 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(Priority::class, \Google\Cloud\DocumentAI\V1\ReviewDocumentRequest_Priority::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentResponse.php deleted file mode 100644 index 660f9271b9a6..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentResponse.php +++ /dev/null @@ -1,141 +0,0 @@ -google.cloud.documentai.v1.ReviewDocumentResponse - */ -class ReviewDocumentResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The Cloud Storage uri for the human reviewed document if the review is - * succeeded. - * - * Generated from protobuf field string gcs_destination = 1; - */ - protected $gcs_destination = ''; - /** - * The state of the review operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2; - */ - protected $state = 0; - /** - * The reason why the review is rejected by reviewer. - * - * Generated from protobuf field string rejection_reason = 3; - */ - protected $rejection_reason = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $gcs_destination - * The Cloud Storage uri for the human reviewed document if the review is - * succeeded. - * @type int $state - * The state of the review operation. - * @type string $rejection_reason - * The reason why the review is rejected by reviewer. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The Cloud Storage uri for the human reviewed document if the review is - * succeeded. - * - * Generated from protobuf field string gcs_destination = 1; - * @return string - */ - public function getGcsDestination() - { - return $this->gcs_destination; - } - - /** - * The Cloud Storage uri for the human reviewed document if the review is - * succeeded. - * - * Generated from protobuf field string gcs_destination = 1; - * @param string $var - * @return $this - */ - public function setGcsDestination($var) - { - GPBUtil::checkString($var, True); - $this->gcs_destination = $var; - - return $this; - } - - /** - * The state of the review operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of the review operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.ReviewDocumentResponse.State state = 2; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\ReviewDocumentResponse\State::class); - $this->state = $var; - - return $this; - } - - /** - * The reason why the review is rejected by reviewer. - * - * Generated from protobuf field string rejection_reason = 3; - * @return string - */ - public function getRejectionReason() - { - return $this->rejection_reason; - } - - /** - * The reason why the review is rejected by reviewer. - * - * Generated from protobuf field string rejection_reason = 3; - * @param string $var - * @return $this - */ - public function setRejectionReason($var) - { - GPBUtil::checkString($var, True); - $this->rejection_reason = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentResponse/State.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentResponse/State.php deleted file mode 100644 index 89dda0791451..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/ReviewDocumentResponse/State.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.documentai.v1.ReviewDocumentResponse.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 review operation is rejected by the reviewer. - * - * Generated from protobuf enum REJECTED = 1; - */ - const REJECTED = 1; - /** - * The review operation is succeeded. - * - * Generated from protobuf enum SUCCEEDED = 2; - */ - const SUCCEEDED = 2; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::REJECTED => 'REJECTED', - self::SUCCEEDED => 'SUCCEEDED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\DocumentAI\V1\ReviewDocumentResponse_State::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionMetadata.php deleted file mode 100644 index 6830b29e2510..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionMetadata.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata - */ -class SetDefaultProcessorVersionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - */ - protected $common_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata - * The basic metadata of the long-running operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionRequest.php deleted file mode 100644 index 3ec67a74150a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionRequest.php +++ /dev/null @@ -1,123 +0,0 @@ -google.cloud.documentai.v1.SetDefaultProcessorVersionRequest - */ -class SetDefaultProcessorVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the - * [Processor][google.cloud.documentai.v1.Processor] to change default - * version. - * - * Generated from protobuf field string processor = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $processor = ''; - /** - * Required. The resource name of child - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use as - * default. Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}` - * - * Generated from protobuf field string default_processor_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $default_processor_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $processor - * Required. The resource name of the - * [Processor][google.cloud.documentai.v1.Processor] to change default - * version. - * @type string $default_processor_version - * Required. The resource name of child - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use as - * default. Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the - * [Processor][google.cloud.documentai.v1.Processor] to change default - * version. - * - * Generated from protobuf field string processor = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProcessor() - { - return $this->processor; - } - - /** - * Required. The resource name of the - * [Processor][google.cloud.documentai.v1.Processor] to change default - * version. - * - * Generated from protobuf field string processor = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProcessor($var) - { - GPBUtil::checkString($var, True); - $this->processor = $var; - - return $this; - } - - /** - * Required. The resource name of child - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use as - * default. Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}` - * - * Generated from protobuf field string default_processor_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDefaultProcessorVersion() - { - return $this->default_processor_version; - } - - /** - * Required. The resource name of child - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion] to use as - * default. Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{version}` - * - * Generated from protobuf field string default_processor_version = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDefaultProcessorVersion($var) - { - GPBUtil::checkString($var, True); - $this->default_processor_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionResponse.php deleted file mode 100644 index 99dada608c4d..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/SetDefaultProcessorVersionResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -google.cloud.documentai.v1.SetDefaultProcessorVersionResponse - */ -class SetDefaultProcessorVersionResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionMetadata.php deleted file mode 100644 index b7ef781099da..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionMetadata.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.documentai.v1.TrainProcessorVersionMetadata - */ -class TrainProcessorVersionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - */ - protected $common_metadata = null; - /** - * The training dataset validation information. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation training_dataset_validation = 2; - */ - protected $training_dataset_validation = null; - /** - * The test dataset validation information. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation test_dataset_validation = 3; - */ - protected $test_dataset_validation = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata - * The basic metadata of the long-running operation. - * @type \Google\Cloud\DocumentAI\V1\TrainProcessorVersionMetadata\DatasetValidation $training_dataset_validation - * The training dataset validation information. - * @type \Google\Cloud\DocumentAI\V1\TrainProcessorVersionMetadata\DatasetValidation $test_dataset_validation - * The test dataset validation information. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - - /** - * The training dataset validation information. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation training_dataset_validation = 2; - * @return \Google\Cloud\DocumentAI\V1\TrainProcessorVersionMetadata\DatasetValidation|null - */ - public function getTrainingDatasetValidation() - { - return $this->training_dataset_validation; - } - - public function hasTrainingDatasetValidation() - { - return isset($this->training_dataset_validation); - } - - public function clearTrainingDatasetValidation() - { - unset($this->training_dataset_validation); - } - - /** - * The training dataset validation information. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation training_dataset_validation = 2; - * @param \Google\Cloud\DocumentAI\V1\TrainProcessorVersionMetadata\DatasetValidation $var - * @return $this - */ - public function setTrainingDatasetValidation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionMetadata\DatasetValidation::class); - $this->training_dataset_validation = $var; - - return $this; - } - - /** - * The test dataset validation information. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation test_dataset_validation = 3; - * @return \Google\Cloud\DocumentAI\V1\TrainProcessorVersionMetadata\DatasetValidation|null - */ - public function getTestDatasetValidation() - { - return $this->test_dataset_validation; - } - - public function hasTestDatasetValidation() - { - return isset($this->test_dataset_validation); - } - - public function clearTestDatasetValidation() - { - unset($this->test_dataset_validation); - } - - /** - * The test dataset validation information. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation test_dataset_validation = 3; - * @param \Google\Cloud\DocumentAI\V1\TrainProcessorVersionMetadata\DatasetValidation $var - * @return $this - */ - public function setTestDatasetValidation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionMetadata\DatasetValidation::class); - $this->test_dataset_validation = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionMetadata/DatasetValidation.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionMetadata/DatasetValidation.php deleted file mode 100644 index c30b51c24dfe..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionMetadata/DatasetValidation.php +++ /dev/null @@ -1,189 +0,0 @@ -google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation - */ -class DatasetValidation extends \Google\Protobuf\Internal\Message -{ - /** - * The total number of document errors. - * - * Generated from protobuf field int32 document_error_count = 3; - */ - protected $document_error_count = 0; - /** - * The total number of dataset errors. - * - * Generated from protobuf field int32 dataset_error_count = 4; - */ - protected $dataset_error_count = 0; - /** - * Error information pertaining to specific documents. A maximum of 10 - * document errors will be returned. - * Any document with errors will not be used throughout training. - * - * Generated from protobuf field repeated .google.rpc.Status document_errors = 1; - */ - private $document_errors; - /** - * Error information for the dataset as a whole. A maximum of 10 dataset - * errors will be returned. - * A single dataset error is terminal for training. - * - * Generated from protobuf field repeated .google.rpc.Status dataset_errors = 2; - */ - private $dataset_errors; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $document_error_count - * The total number of document errors. - * @type int $dataset_error_count - * The total number of dataset errors. - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $document_errors - * Error information pertaining to specific documents. A maximum of 10 - * document errors will be returned. - * Any document with errors will not be used throughout training. - * @type array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $dataset_errors - * Error information for the dataset as a whole. A maximum of 10 dataset - * errors will be returned. - * A single dataset error is terminal for training. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The total number of document errors. - * - * Generated from protobuf field int32 document_error_count = 3; - * @return int - */ - public function getDocumentErrorCount() - { - return $this->document_error_count; - } - - /** - * The total number of document errors. - * - * Generated from protobuf field int32 document_error_count = 3; - * @param int $var - * @return $this - */ - public function setDocumentErrorCount($var) - { - GPBUtil::checkInt32($var); - $this->document_error_count = $var; - - return $this; - } - - /** - * The total number of dataset errors. - * - * Generated from protobuf field int32 dataset_error_count = 4; - * @return int - */ - public function getDatasetErrorCount() - { - return $this->dataset_error_count; - } - - /** - * The total number of dataset errors. - * - * Generated from protobuf field int32 dataset_error_count = 4; - * @param int $var - * @return $this - */ - public function setDatasetErrorCount($var) - { - GPBUtil::checkInt32($var); - $this->dataset_error_count = $var; - - return $this; - } - - /** - * Error information pertaining to specific documents. A maximum of 10 - * document errors will be returned. - * Any document with errors will not be used throughout training. - * - * Generated from protobuf field repeated .google.rpc.Status document_errors = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDocumentErrors() - { - return $this->document_errors; - } - - /** - * Error information pertaining to specific documents. A maximum of 10 - * document errors will be returned. - * Any document with errors will not be used throughout training. - * - * Generated from protobuf field repeated .google.rpc.Status document_errors = 1; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDocumentErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->document_errors = $arr; - - return $this; - } - - /** - * Error information for the dataset as a whole. A maximum of 10 dataset - * errors will be returned. - * A single dataset error is terminal for training. - * - * Generated from protobuf field repeated .google.rpc.Status dataset_errors = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDatasetErrors() - { - return $this->dataset_errors; - } - - /** - * Error information for the dataset as a whole. A maximum of 10 dataset - * errors will be returned. - * A single dataset error is terminal for training. - * - * Generated from protobuf field repeated .google.rpc.Status dataset_errors = 2; - * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDatasetErrors($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class); - $this->dataset_errors = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DatasetValidation::class, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionMetadata_DatasetValidation::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest.php deleted file mode 100644 index c718cdbac2a7..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest.php +++ /dev/null @@ -1,348 +0,0 @@ -google.cloud.documentai.v1.TrainProcessorVersionRequest - */ -class TrainProcessorVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent (project, location and processor) to create the new - * version for. Format: - * `projects/{project}/locations/{location}/processors/{processor}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The processor version to be created. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $processor_version = null; - /** - * Optional. The schema the processor version will be trained with. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $document_schema = null; - /** - * Optional. The input data used to train the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $input_data = null; - /** - * Optional. The processor version to use as a base for training. This - * processor version must be a child of `parent`. Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`. - * - * Generated from protobuf field string base_processor_version = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $base_processor_version = ''; - protected $processor_flags; - - /** - * @param string $parent Required. The parent (project, location and processor) to create the new - * version for. Format: - * `projects/{project}/locations/{location}/processors/{processor}`. Please see - * {@see DocumentProcessorServiceClient::processorName()} for help formatting this field. - * @param \Google\Cloud\DocumentAI\V1\ProcessorVersion $processorVersion Required. The processor version to be created. - * - * @return \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\DocumentAI\V1\ProcessorVersion $processorVersion): self - { - return (new self()) - ->setParent($parent) - ->setProcessorVersion($processorVersion); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\CustomDocumentExtractionOptions $custom_document_extraction_options - * Options to control Custom Document Extraction (CDE) Processor. - * @type \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\FoundationModelTuningOptions $foundation_model_tuning_options - * Options to control foundation model tuning of a processor. - * @type string $parent - * Required. The parent (project, location and processor) to create the new - * version for. Format: - * `projects/{project}/locations/{location}/processors/{processor}`. - * @type \Google\Cloud\DocumentAI\V1\ProcessorVersion $processor_version - * Required. The processor version to be created. - * @type \Google\Cloud\DocumentAI\V1\DocumentSchema $document_schema - * Optional. The schema the processor version will be trained with. - * @type \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\InputData $input_data - * Optional. The input data used to train the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. - * @type string $base_processor_version - * Optional. The processor version to use as a base for training. This - * processor version must be a child of `parent`. Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Options to control Custom Document Extraction (CDE) Processor. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; - * @return \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\CustomDocumentExtractionOptions|null - */ - public function getCustomDocumentExtractionOptions() - { - return $this->readOneof(5); - } - - public function hasCustomDocumentExtractionOptions() - { - return $this->hasOneof(5); - } - - /** - * Options to control Custom Document Extraction (CDE) Processor. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions custom_document_extraction_options = 5; - * @param \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\CustomDocumentExtractionOptions $var - * @return $this - */ - public function setCustomDocumentExtractionOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\CustomDocumentExtractionOptions::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Options to control foundation model tuning of a processor. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions foundation_model_tuning_options = 12; - * @return \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\FoundationModelTuningOptions|null - */ - public function getFoundationModelTuningOptions() - { - return $this->readOneof(12); - } - - public function hasFoundationModelTuningOptions() - { - return $this->hasOneof(12); - } - - /** - * Options to control foundation model tuning of a processor. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions foundation_model_tuning_options = 12; - * @param \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\FoundationModelTuningOptions $var - * @return $this - */ - public function setFoundationModelTuningOptions($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\FoundationModelTuningOptions::class); - $this->writeOneof(12, $var); - - return $this; - } - - /** - * Required. The parent (project, location and processor) to create the new - * version for. Format: - * `projects/{project}/locations/{location}/processors/{processor}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent (project, location and processor) to create the new - * version for. Format: - * `projects/{project}/locations/{location}/processors/{processor}`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 processor version to be created. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\DocumentAI\V1\ProcessorVersion|null - */ - public function getProcessorVersion() - { - return $this->processor_version; - } - - public function hasProcessorVersion() - { - return isset($this->processor_version); - } - - public function clearProcessorVersion() - { - unset($this->processor_version); - } - - /** - * Required. The processor version to be created. - * - * Generated from protobuf field .google.cloud.documentai.v1.ProcessorVersion processor_version = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\DocumentAI\V1\ProcessorVersion $var - * @return $this - */ - public function setProcessorVersion($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\ProcessorVersion::class); - $this->processor_version = $var; - - return $this; - } - - /** - * Optional. The schema the processor version will be trained with. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\DocumentSchema|null - */ - public function getDocumentSchema() - { - return $this->document_schema; - } - - public function hasDocumentSchema() - { - return isset($this->document_schema); - } - - public function clearDocumentSchema() - { - unset($this->document_schema); - } - - /** - * Optional. The schema the processor version will be trained with. - * - * Generated from protobuf field .google.cloud.documentai.v1.DocumentSchema document_schema = 10 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\DocumentSchema $var - * @return $this - */ - public function setDocumentSchema($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\DocumentSchema::class); - $this->document_schema = $var; - - return $this; - } - - /** - * Optional. The input data used to train the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\InputData|null - */ - public function getInputData() - { - return $this->input_data; - } - - public function hasInputData() - { - return isset($this->input_data); - } - - public function clearInputData() - { - unset($this->input_data); - } - - /** - * Optional. The input data used to train the - * [ProcessorVersion][google.cloud.documentai.v1.ProcessorVersion]. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData input_data = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\InputData $var - * @return $this - */ - public function setInputData($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\InputData::class); - $this->input_data = $var; - - return $this; - } - - /** - * Optional. The processor version to use as a base for training. This - * processor version must be a child of `parent`. Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`. - * - * Generated from protobuf field string base_processor_version = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBaseProcessorVersion() - { - return $this->base_processor_version; - } - - /** - * Optional. The processor version to use as a base for training. This - * processor version must be a child of `parent`. Format: - * `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`. - * - * Generated from protobuf field string base_processor_version = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBaseProcessorVersion($var) - { - GPBUtil::checkString($var, True); - $this->base_processor_version = $var; - - return $this; - } - - /** - * @return string - */ - public function getProcessorFlags() - { - return $this->whichOneof("processor_flags"); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/CustomDocumentExtractionOptions.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/CustomDocumentExtractionOptions.php deleted file mode 100644 index d3323c332634..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/CustomDocumentExtractionOptions.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions - */ -class CustomDocumentExtractionOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Training method to use for CDE training. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; - */ - protected $training_method = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $training_method - * Training method to use for CDE training. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Training method to use for CDE training. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; - * @return int - */ - public function getTrainingMethod() - { - return $this->training_method; - } - - /** - * Training method to use for CDE training. - * - * Generated from protobuf field .google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod training_method = 3; - * @param int $var - * @return $this - */ - public function setTrainingMethod($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest\CustomDocumentExtractionOptions\TrainingMethod::class); - $this->training_method = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomDocumentExtractionOptions::class, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest_CustomDocumentExtractionOptions::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/CustomDocumentExtractionOptions/TrainingMethod.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/CustomDocumentExtractionOptions/TrainingMethod.php deleted file mode 100644 index 67f7b58ff0e9..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/CustomDocumentExtractionOptions/TrainingMethod.php +++ /dev/null @@ -1,59 +0,0 @@ -google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod - */ -class TrainingMethod -{ - /** - * Generated from protobuf enum TRAINING_METHOD_UNSPECIFIED = 0; - */ - const TRAINING_METHOD_UNSPECIFIED = 0; - /** - * Generated from protobuf enum MODEL_BASED = 1; - */ - const MODEL_BASED = 1; - /** - * Generated from protobuf enum TEMPLATE_BASED = 2; - */ - const TEMPLATE_BASED = 2; - - private static $valueToName = [ - self::TRAINING_METHOD_UNSPECIFIED => 'TRAINING_METHOD_UNSPECIFIED', - self::MODEL_BASED => 'MODEL_BASED', - self::TEMPLATE_BASED => 'TEMPLATE_BASED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(TrainingMethod::class, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest_CustomDocumentExtractionOptions_TrainingMethod::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/FoundationModelTuningOptions.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/FoundationModelTuningOptions.php deleted file mode 100644 index ff45cadfee71..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/FoundationModelTuningOptions.php +++ /dev/null @@ -1,116 +0,0 @@ -google.cloud.documentai.v1.TrainProcessorVersionRequest.FoundationModelTuningOptions - */ -class FoundationModelTuningOptions extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The number of steps to run for model tuning. Valid values are - * between 1 and 400. If not provided, recommended steps will be used. - * - * Generated from protobuf field int32 train_steps = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $train_steps = 0; - /** - * Optional. The multiplier to apply to the recommended learning rate. Valid - * values are between 0.1 and 10. If not provided, recommended learning rate - * will be used. - * - * Generated from protobuf field float learning_rate_multiplier = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $learning_rate_multiplier = 0.0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $train_steps - * Optional. The number of steps to run for model tuning. Valid values are - * between 1 and 400. If not provided, recommended steps will be used. - * @type float $learning_rate_multiplier - * Optional. The multiplier to apply to the recommended learning rate. Valid - * values are between 0.1 and 10. If not provided, recommended learning rate - * will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The number of steps to run for model tuning. Valid values are - * between 1 and 400. If not provided, recommended steps will be used. - * - * Generated from protobuf field int32 train_steps = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getTrainSteps() - { - return $this->train_steps; - } - - /** - * Optional. The number of steps to run for model tuning. Valid values are - * between 1 and 400. If not provided, recommended steps will be used. - * - * Generated from protobuf field int32 train_steps = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setTrainSteps($var) - { - GPBUtil::checkInt32($var); - $this->train_steps = $var; - - return $this; - } - - /** - * Optional. The multiplier to apply to the recommended learning rate. Valid - * values are between 0.1 and 10. If not provided, recommended learning rate - * will be used. - * - * Generated from protobuf field float learning_rate_multiplier = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return float - */ - public function getLearningRateMultiplier() - { - return $this->learning_rate_multiplier; - } - - /** - * Optional. The multiplier to apply to the recommended learning rate. Valid - * values are between 0.1 and 10. If not provided, recommended learning rate - * will be used. - * - * Generated from protobuf field float learning_rate_multiplier = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param float $var - * @return $this - */ - public function setLearningRateMultiplier($var) - { - GPBUtil::checkFloat($var); - $this->learning_rate_multiplier = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(FoundationModelTuningOptions::class, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest_FoundationModelTuningOptions::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/InputData.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/InputData.php deleted file mode 100644 index c1a4db267951..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionRequest/InputData.php +++ /dev/null @@ -1,125 +0,0 @@ -google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData - */ -class InputData extends \Google\Protobuf\Internal\Message -{ - /** - * The documents used for training the new version. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3; - */ - protected $training_documents = null; - /** - * The documents used for testing the trained version. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4; - */ - protected $test_documents = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $training_documents - * The documents used for training the new version. - * @type \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $test_documents - * The documents used for testing the trained version. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The documents used for training the new version. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3; - * @return \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig|null - */ - public function getTrainingDocuments() - { - return $this->training_documents; - } - - public function hasTrainingDocuments() - { - return isset($this->training_documents); - } - - public function clearTrainingDocuments() - { - unset($this->training_documents); - } - - /** - * The documents used for training the new version. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig training_documents = 3; - * @param \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $var - * @return $this - */ - public function setTrainingDocuments($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig::class); - $this->training_documents = $var; - - return $this; - } - - /** - * The documents used for testing the trained version. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4; - * @return \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig|null - */ - public function getTestDocuments() - { - return $this->test_documents; - } - - public function hasTestDocuments() - { - return isset($this->test_documents); - } - - public function clearTestDocuments() - { - unset($this->test_documents); - } - - /** - * The documents used for testing the trained version. - * - * Generated from protobuf field .google.cloud.documentai.v1.BatchDocumentsInputConfig test_documents = 4; - * @param \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig $var - * @return $this - */ - public function setTestDocuments($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\BatchDocumentsInputConfig::class); - $this->test_documents = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InputData::class, \Google\Cloud\DocumentAI\V1\TrainProcessorVersionRequest_InputData::class); - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionResponse.php deleted file mode 100644 index c46c6b822b85..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/TrainProcessorVersionResponse.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.documentai.v1.TrainProcessorVersionResponse - */ -class TrainProcessorVersionResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The resource name of the processor version produced by training. - * - * Generated from protobuf field string processor_version = 1; - */ - protected $processor_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $processor_version - * The resource name of the processor version produced by training. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The resource name of the processor version produced by training. - * - * Generated from protobuf field string processor_version = 1; - * @return string - */ - public function getProcessorVersion() - { - return $this->processor_version; - } - - /** - * The resource name of the processor version produced by training. - * - * Generated from protobuf field string processor_version = 1; - * @param string $var - * @return $this - */ - public function setProcessorVersion($var) - { - GPBUtil::checkString($var, True); - $this->processor_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionMetadata.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionMetadata.php deleted file mode 100644 index 7b046ed6c93b..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionMetadata.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.documentai.v1.UndeployProcessorVersionMetadata - */ -class UndeployProcessorVersionMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - */ - protected $common_metadata = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $common_metadata - * The basic metadata of the long-running operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @return \Google\Cloud\DocumentAI\V1\CommonOperationMetadata|null - */ - public function getCommonMetadata() - { - return $this->common_metadata; - } - - public function hasCommonMetadata() - { - return isset($this->common_metadata); - } - - public function clearCommonMetadata() - { - unset($this->common_metadata); - } - - /** - * The basic metadata of the long-running operation. - * - * Generated from protobuf field .google.cloud.documentai.v1.CommonOperationMetadata common_metadata = 1; - * @param \Google\Cloud\DocumentAI\V1\CommonOperationMetadata $var - * @return $this - */ - public function setCommonMetadata($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\CommonOperationMetadata::class); - $this->common_metadata = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionRequest.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionRequest.php deleted file mode 100644 index 1c5cb20ed5f8..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionRequest.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.documentai.v1.UndeployProcessorVersionRequest - */ -class UndeployProcessorVersionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The processor version resource name to be undeployed. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The processor version resource name to be undeployed. Please see - * {@see DocumentProcessorServiceClient::processorVersionName()} for help formatting this field. - * - * @return \Google\Cloud\DocumentAI\V1\UndeployProcessorVersionRequest - * - * @experimental - */ - public static function 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 processor version resource name to be undeployed. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The processor version resource name to be undeployed. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The processor version resource name to be undeployed. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionResponse.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionResponse.php deleted file mode 100644 index e6d592d8b55a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/UndeployProcessorVersionResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -google.cloud.documentai.v1.UndeployProcessorVersionResponse - */ -class UndeployProcessorVersionResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\DocumentProcessorService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Vertex.php b/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Vertex.php deleted file mode 100644 index d56818347c95..000000000000 --- a/owl-bot-staging/DocumentAi/v1/proto/src/Google/Cloud/DocumentAI/V1/Vertex.php +++ /dev/null @@ -1,102 +0,0 @@ -google.cloud.documentai.v1.Vertex - */ -class Vertex extends \Google\Protobuf\Internal\Message -{ - /** - * X coordinate. - * - * Generated from protobuf field int32 x = 1; - */ - protected $x = 0; - /** - * Y coordinate (starts from the top of the image). - * - * Generated from protobuf field int32 y = 2; - */ - protected $y = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $x - * X coordinate. - * @type int $y - * Y coordinate (starts from the top of the image). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Documentai\V1\Geometry::initOnce(); - parent::__construct($data); - } - - /** - * X coordinate. - * - * Generated from protobuf field int32 x = 1; - * @return int - */ - public function getX() - { - return $this->x; - } - - /** - * X coordinate. - * - * Generated from protobuf field int32 x = 1; - * @param int $var - * @return $this - */ - public function setX($var) - { - GPBUtil::checkInt32($var); - $this->x = $var; - - return $this; - } - - /** - * Y coordinate (starts from the top of the image). - * - * Generated from protobuf field int32 y = 2; - * @return int - */ - public function getY() - { - return $this->y; - } - - /** - * Y coordinate (starts from the top of the image). - * - * Generated from protobuf field int32 y = 2; - * @param int $var - * @return $this - */ - public function setY($var) - { - GPBUtil::checkInt32($var); - $this->y = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/batch_process_documents.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/batch_process_documents.php deleted file mode 100644 index 5c92935d071b..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/batch_process_documents.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->batchProcessDocuments($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var BatchProcessResponse $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]'; - - batch_process_documents_sample($name); -} -// [END documentai_v1_generated_DocumentProcessorService_BatchProcessDocuments_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/create_processor.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/create_processor.php deleted file mode 100644 index cd7f845f943a..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/create_processor.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent) - ->setProcessor($processor); - - // Call the API and handle any network failures. - try { - /** @var Processor $response */ - $response = $documentProcessorServiceClient->createProcessor($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DocumentProcessorServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - create_processor_sample($formattedParent); -} -// [END documentai_v1_generated_DocumentProcessorService_CreateProcessor_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/delete_processor.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/delete_processor.php deleted file mode 100644 index 627fab2af8e1..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/delete_processor.php +++ /dev/null @@ -1,85 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->deleteProcessor($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 = DocumentProcessorServiceClient::processorName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]' - ); - - delete_processor_sample($formattedName); -} -// [END documentai_v1_generated_DocumentProcessorService_DeleteProcessor_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/delete_processor_version.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/delete_processor_version.php deleted file mode 100644 index 5ed8b9048b8f..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/delete_processor_version.php +++ /dev/null @@ -1,86 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->deleteProcessorVersion($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 = DocumentProcessorServiceClient::processorVersionName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]', - '[PROCESSOR_VERSION]' - ); - - delete_processor_version_sample($formattedName); -} -// [END documentai_v1_generated_DocumentProcessorService_DeleteProcessorVersion_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/deploy_processor_version.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/deploy_processor_version.php deleted file mode 100644 index 28e1d7e8061c..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/deploy_processor_version.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->deployProcessorVersion($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DeployProcessorVersionResponse $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 = DocumentProcessorServiceClient::processorVersionName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]', - '[PROCESSOR_VERSION]' - ); - - deploy_processor_version_sample($formattedName); -} -// [END documentai_v1_generated_DocumentProcessorService_DeployProcessorVersion_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/disable_processor.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/disable_processor.php deleted file mode 100644 index 60db2b4dc9af..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/disable_processor.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->disableProcessor($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var DisableProcessorResponse $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 = DocumentProcessorServiceClient::processorName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]' - ); - - disable_processor_sample($formattedName); -} -// [END documentai_v1_generated_DocumentProcessorService_DisableProcessor_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/enable_processor.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/enable_processor.php deleted file mode 100644 index 2ec7bdda6851..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/enable_processor.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->enableProcessor($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var EnableProcessorResponse $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 = DocumentProcessorServiceClient::processorName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]' - ); - - enable_processor_sample($formattedName); -} -// [END documentai_v1_generated_DocumentProcessorService_EnableProcessor_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/evaluate_processor_version.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/evaluate_processor_version.php deleted file mode 100644 index 90b907983c0f..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/evaluate_processor_version.php +++ /dev/null @@ -1,92 +0,0 @@ -setProcessorVersion($formattedProcessorVersion); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->evaluateProcessorVersion($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var EvaluateProcessorVersionResponse $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 -{ - $formattedProcessorVersion = DocumentProcessorServiceClient::processorVersionName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]', - '[PROCESSOR_VERSION]' - ); - - evaluate_processor_version_sample($formattedProcessorVersion); -} -// [END documentai_v1_generated_DocumentProcessorService_EvaluateProcessorVersion_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/fetch_processor_types.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/fetch_processor_types.php deleted file mode 100644 index 7be2f8f45b7b..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/fetch_processor_types.php +++ /dev/null @@ -1,74 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var FetchProcessorTypesResponse $response */ - $response = $documentProcessorServiceClient->fetchProcessorTypes($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = DocumentProcessorServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - fetch_processor_types_sample($formattedParent); -} -// [END documentai_v1_generated_DocumentProcessorService_FetchProcessorTypes_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_evaluation.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_evaluation.php deleted file mode 100644 index 5173e6f5eacf..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_evaluation.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Evaluation $response */ - $response = $documentProcessorServiceClient->getEvaluation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DocumentProcessorServiceClient::evaluationName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]', - '[PROCESSOR_VERSION]', - '[EVALUATION]' - ); - - get_evaluation_sample($formattedName); -} -// [END documentai_v1_generated_DocumentProcessorService_GetEvaluation_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_location.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_location.php deleted file mode 100644 index 9d52a912d85b..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END documentai_v1_generated_DocumentProcessorService_GetLocation_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor.php deleted file mode 100644 index a6886cfe7001..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Processor $response */ - $response = $documentProcessorServiceClient->getProcessor($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DocumentProcessorServiceClient::processorName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]' - ); - - get_processor_sample($formattedName); -} -// [END documentai_v1_generated_DocumentProcessorService_GetProcessor_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor_type.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor_type.php deleted file mode 100644 index b734a91e4795..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor_type.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ProcessorType $response */ - $response = $documentProcessorServiceClient->getProcessorType($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DocumentProcessorServiceClient::processorTypeName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR_TYPE]' - ); - - get_processor_type_sample($formattedName); -} -// [END documentai_v1_generated_DocumentProcessorService_GetProcessorType_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor_version.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor_version.php deleted file mode 100644 index dc0474ab1064..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/get_processor_version.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ProcessorVersion $response */ - $response = $documentProcessorServiceClient->getProcessorVersion($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DocumentProcessorServiceClient::processorVersionName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]', - '[PROCESSOR_VERSION]' - ); - - get_processor_version_sample($formattedName); -} -// [END documentai_v1_generated_DocumentProcessorService_GetProcessorVersion_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_evaluations.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_evaluations.php deleted file mode 100644 index 25c87e832ffb..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_evaluations.php +++ /dev/null @@ -1,84 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $documentProcessorServiceClient->listEvaluations($request); - - /** @var Evaluation $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 = DocumentProcessorServiceClient::processorVersionName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]', - '[PROCESSOR_VERSION]' - ); - - list_evaluations_sample($formattedParent); -} -// [END documentai_v1_generated_DocumentProcessorService_ListEvaluations_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_locations.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_locations.php deleted file mode 100644 index 5cbfdbbb5f4f..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END documentai_v1_generated_DocumentProcessorService_ListLocations_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processor_types.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processor_types.php deleted file mode 100644 index 3882352e5fe6..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processor_types.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $documentProcessorServiceClient->listProcessorTypes($request); - - /** @var ProcessorType $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 = DocumentProcessorServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_processor_types_sample($formattedParent); -} -// [END documentai_v1_generated_DocumentProcessorService_ListProcessorTypes_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processor_versions.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processor_versions.php deleted file mode 100644 index 23d07762ebe0..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processor_versions.php +++ /dev/null @@ -1,82 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $documentProcessorServiceClient->listProcessorVersions($request); - - /** @var ProcessorVersion $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 = DocumentProcessorServiceClient::processorName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]' - ); - - list_processor_versions_sample($formattedParent); -} -// [END documentai_v1_generated_DocumentProcessorService_ListProcessorVersions_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processors.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processors.php deleted file mode 100644 index 35369a0426d4..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/list_processors.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $documentProcessorServiceClient->listProcessors($request); - - /** @var Processor $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 = DocumentProcessorServiceClient::locationName('[PROJECT]', '[LOCATION]'); - - list_processors_sample($formattedParent); -} -// [END documentai_v1_generated_DocumentProcessorService_ListProcessors_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/process_document.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/process_document.php deleted file mode 100644 index 9491299e8723..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/process_document.php +++ /dev/null @@ -1,79 +0,0 @@ -setName($name); - - // Call the API and handle any network failures. - try { - /** @var ProcessResponse $response */ - $response = $documentProcessorServiceClient->processDocument($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - 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]'; - - process_document_sample($name); -} -// [END documentai_v1_generated_DocumentProcessorService_ProcessDocument_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/review_document.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/review_document.php deleted file mode 100644 index 3ff6e2ef5433..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/review_document.php +++ /dev/null @@ -1,90 +0,0 @@ -setHumanReviewConfig($formattedHumanReviewConfig); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->reviewDocument($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ReviewDocumentResponse $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 -{ - $formattedHumanReviewConfig = DocumentProcessorServiceClient::humanReviewConfigName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]' - ); - - review_document_sample($formattedHumanReviewConfig); -} -// [END documentai_v1_generated_DocumentProcessorService_ReviewDocument_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/set_default_processor_version.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/set_default_processor_version.php deleted file mode 100644 index 5221bc4baf85..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/set_default_processor_version.php +++ /dev/null @@ -1,107 +0,0 @@ -setProcessor($formattedProcessor) - ->setDefaultProcessorVersion($formattedDefaultProcessorVersion); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->setDefaultProcessorVersion($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var SetDefaultProcessorVersionResponse $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 -{ - $formattedProcessor = DocumentProcessorServiceClient::processorName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]' - ); - $formattedDefaultProcessorVersion = DocumentProcessorServiceClient::processorVersionName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]', - '[PROCESSOR_VERSION]' - ); - - set_default_processor_version_sample($formattedProcessor, $formattedDefaultProcessorVersion); -} -// [END documentai_v1_generated_DocumentProcessorService_SetDefaultProcessorVersion_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/train_processor_version.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/train_processor_version.php deleted file mode 100644 index 94059bc29174..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/train_processor_version.php +++ /dev/null @@ -1,94 +0,0 @@ -setParent($formattedParent) - ->setProcessorVersion($processorVersion); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->trainProcessorVersion($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var TrainProcessorVersionResponse $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 = DocumentProcessorServiceClient::processorName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]' - ); - - train_processor_version_sample($formattedParent); -} -// [END documentai_v1_generated_DocumentProcessorService_TrainProcessorVersion_sync] diff --git a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/undeploy_processor_version.php b/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/undeploy_processor_version.php deleted file mode 100644 index ddee2a4812dd..000000000000 --- a/owl-bot-staging/DocumentAi/v1/samples/V1/DocumentProcessorServiceClient/undeploy_processor_version.php +++ /dev/null @@ -1,88 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $documentProcessorServiceClient->undeployProcessorVersion($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var UndeployProcessorVersionResponse $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 = DocumentProcessorServiceClient::processorVersionName( - '[PROJECT]', - '[LOCATION]', - '[PROCESSOR]', - '[PROCESSOR_VERSION]' - ); - - undeploy_processor_version_sample($formattedName); -} -// [END documentai_v1_generated_DocumentProcessorService_UndeployProcessorVersion_sync] diff --git a/owl-bot-staging/DocumentAi/v1/src/V1/Client/DocumentProcessorServiceClient.php b/owl-bot-staging/DocumentAi/v1/src/V1/Client/DocumentProcessorServiceClient.php deleted file mode 100644 index 41c3d15ab411..000000000000 --- a/owl-bot-staging/DocumentAi/v1/src/V1/Client/DocumentProcessorServiceClient.php +++ /dev/null @@ -1,1094 +0,0 @@ - batchProcessDocumentsAsync(BatchProcessRequest $request, array $optionalArgs = []) - * @method PromiseInterface createProcessorAsync(CreateProcessorRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteProcessorAsync(DeleteProcessorRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteProcessorVersionAsync(DeleteProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deployProcessorVersionAsync(DeployProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface disableProcessorAsync(DisableProcessorRequest $request, array $optionalArgs = []) - * @method PromiseInterface enableProcessorAsync(EnableProcessorRequest $request, array $optionalArgs = []) - * @method PromiseInterface evaluateProcessorVersionAsync(EvaluateProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface fetchProcessorTypesAsync(FetchProcessorTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEvaluationAsync(GetEvaluationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProcessorAsync(GetProcessorRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProcessorTypeAsync(GetProcessorTypeRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProcessorVersionAsync(GetProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEvaluationsAsync(ListEvaluationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProcessorTypesAsync(ListProcessorTypesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProcessorVersionsAsync(ListProcessorVersionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProcessorsAsync(ListProcessorsRequest $request, array $optionalArgs = []) - * @method PromiseInterface processDocumentAsync(ProcessRequest $request, array $optionalArgs = []) - * @method PromiseInterface reviewDocumentAsync(ReviewDocumentRequest $request, array $optionalArgs = []) - * @method PromiseInterface setDefaultProcessorVersionAsync(SetDefaultProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface trainProcessorVersionAsync(TrainProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface undeployProcessorVersionAsync(UndeployProcessorVersionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class DocumentProcessorServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.documentai.v1.DocumentProcessorService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'documentai.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'documentai.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/document_processor_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/document_processor_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/document_processor_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/document_processor_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 evaluation - * resource. - * - * @param string $project - * @param string $location - * @param string $processor - * @param string $processorVersion - * @param string $evaluation - * - * @return string The formatted evaluation resource. - */ - public static function evaluationName(string $project, string $location, string $processor, string $processorVersion, string $evaluation): string - { - return self::getPathTemplate('evaluation')->render([ - 'project' => $project, - 'location' => $location, - 'processor' => $processor, - 'processor_version' => $processorVersion, - 'evaluation' => $evaluation, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * human_review_config resource. - * - * @param string $project - * @param string $location - * @param string $processor - * - * @return string The formatted human_review_config resource. - */ - public static function humanReviewConfigName(string $project, string $location, string $processor): string - { - return self::getPathTemplate('humanReviewConfig')->render([ - 'project' => $project, - 'location' => $location, - 'processor' => $processor, - ]); - } - - /** - * 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 processor - * resource. - * - * @param string $project - * @param string $location - * @param string $processor - * - * @return string The formatted processor resource. - */ - public static function processorName(string $project, string $location, string $processor): string - { - return self::getPathTemplate('processor')->render([ - 'project' => $project, - 'location' => $location, - 'processor' => $processor, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * processor_type resource. - * - * @param string $project - * @param string $location - * @param string $processorType - * - * @return string The formatted processor_type resource. - */ - public static function processorTypeName(string $project, string $location, string $processorType): string - { - return self::getPathTemplate('processorType')->render([ - 'project' => $project, - 'location' => $location, - 'processor_type' => $processorType, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * processor_version resource. - * - * @param string $project - * @param string $location - * @param string $processor - * @param string $processorVersion - * - * @return string The formatted processor_version resource. - */ - public static function processorVersionName(string $project, string $location, string $processor, string $processorVersion): string - { - return self::getPathTemplate('processorVersion')->render([ - 'project' => $project, - 'location' => $location, - 'processor' => $processor, - 'processor_version' => $processorVersion, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - evaluation: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation} - * - humanReviewConfig: projects/{project}/locations/{location}/processors/{processor}/humanReviewConfig - * - location: projects/{project}/locations/{location} - * - processor: projects/{project}/locations/{location}/processors/{processor} - * - processorType: projects/{project}/locations/{location}/processorTypes/{processor_type} - * - processorVersion: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - */ - public static function parseName(string $formattedName, string $template = null): array - { - return self::parseFormattedName($formattedName, $template); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'documentai.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); - } - - /** - * LRO endpoint to batch process many documents. The output is written - * to Cloud Storage as JSON in the [Document] format. - * - * The async variant is - * {@see DocumentProcessorServiceClient::batchProcessDocumentsAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/batch_process_documents.php - * - * @param BatchProcessRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 batchProcessDocuments(BatchProcessRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('BatchProcessDocuments', $request, $callOptions)->wait(); - } - - /** - * Creates a processor from the - * [ProcessorType][google.cloud.documentai.v1.ProcessorType] provided. The - * processor will be at `ENABLED` state by default after its creation. Note - * that this method requires the `documentai.processors.create` permission on - * the project, which is highly privileged. A user or service account with - * this permission can create new processors that can interact with any gcs - * bucket in your project. - * - * The async variant is - * {@see DocumentProcessorServiceClient::createProcessorAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/create_processor.php - * - * @param CreateProcessorRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Processor - * - * @throws ApiException Thrown if the API call fails. - */ - public function createProcessor(CreateProcessorRequest $request, array $callOptions = []): Processor - { - return $this->startApiCall('CreateProcessor', $request, $callOptions)->wait(); - } - - /** - * Deletes the processor, unloads all deployed model artifacts if it was - * enabled and then deletes all artifacts associated with this processor. - * - * The async variant is - * {@see DocumentProcessorServiceClient::deleteProcessorAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/delete_processor.php - * - * @param DeleteProcessorRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteProcessor(DeleteProcessorRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteProcessor', $request, $callOptions)->wait(); - } - - /** - * Deletes the processor version, all artifacts under the processor version - * will be deleted. - * - * The async variant is - * {@see DocumentProcessorServiceClient::deleteProcessorVersionAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/delete_processor_version.php - * - * @param DeleteProcessorVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteProcessorVersion(DeleteProcessorVersionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteProcessorVersion', $request, $callOptions)->wait(); - } - - /** - * Deploys the processor version. - * - * The async variant is - * {@see DocumentProcessorServiceClient::deployProcessorVersionAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/deploy_processor_version.php - * - * @param DeployProcessorVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deployProcessorVersion(DeployProcessorVersionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeployProcessorVersion', $request, $callOptions)->wait(); - } - - /** - * Disables a processor - * - * The async variant is - * {@see DocumentProcessorServiceClient::disableProcessorAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/disable_processor.php - * - * @param DisableProcessorRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 disableProcessor(DisableProcessorRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DisableProcessor', $request, $callOptions)->wait(); - } - - /** - * Enables a processor - * - * The async variant is - * {@see DocumentProcessorServiceClient::enableProcessorAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/enable_processor.php - * - * @param EnableProcessorRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 enableProcessor(EnableProcessorRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('EnableProcessor', $request, $callOptions)->wait(); - } - - /** - * Evaluates a ProcessorVersion against annotated documents, producing an - * Evaluation. - * - * The async variant is - * {@see DocumentProcessorServiceClient::evaluateProcessorVersionAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/evaluate_processor_version.php - * - * @param EvaluateProcessorVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 evaluateProcessorVersion(EvaluateProcessorVersionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('EvaluateProcessorVersion', $request, $callOptions)->wait(); - } - - /** - * Fetches processor types. Note that we don't use - * [ListProcessorTypes][google.cloud.documentai.v1.DocumentProcessorService.ListProcessorTypes] - * here, because it isn't paginated. - * - * The async variant is - * {@see DocumentProcessorServiceClient::fetchProcessorTypesAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/fetch_processor_types.php - * - * @param FetchProcessorTypesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return FetchProcessorTypesResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function fetchProcessorTypes(FetchProcessorTypesRequest $request, array $callOptions = []): FetchProcessorTypesResponse - { - return $this->startApiCall('FetchProcessorTypes', $request, $callOptions)->wait(); - } - - /** - * Retrieves a specific evaluation. - * - * The async variant is {@see DocumentProcessorServiceClient::getEvaluationAsync()} - * . - * - * @example samples/V1/DocumentProcessorServiceClient/get_evaluation.php - * - * @param GetEvaluationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Evaluation - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEvaluation(GetEvaluationRequest $request, array $callOptions = []): Evaluation - { - return $this->startApiCall('GetEvaluation', $request, $callOptions)->wait(); - } - - /** - * Gets a processor detail. - * - * The async variant is {@see DocumentProcessorServiceClient::getProcessorAsync()} - * . - * - * @example samples/V1/DocumentProcessorServiceClient/get_processor.php - * - * @param GetProcessorRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Processor - * - * @throws ApiException Thrown if the API call fails. - */ - public function getProcessor(GetProcessorRequest $request, array $callOptions = []): Processor - { - return $this->startApiCall('GetProcessor', $request, $callOptions)->wait(); - } - - /** - * Gets a processor type detail. - * - * The async variant is - * {@see DocumentProcessorServiceClient::getProcessorTypeAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/get_processor_type.php - * - * @param GetProcessorTypeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProcessorType - * - * @throws ApiException Thrown if the API call fails. - */ - public function getProcessorType(GetProcessorTypeRequest $request, array $callOptions = []): ProcessorType - { - return $this->startApiCall('GetProcessorType', $request, $callOptions)->wait(); - } - - /** - * Gets a processor version detail. - * - * The async variant is - * {@see DocumentProcessorServiceClient::getProcessorVersionAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/get_processor_version.php - * - * @param GetProcessorVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProcessorVersion - * - * @throws ApiException Thrown if the API call fails. - */ - public function getProcessorVersion(GetProcessorVersionRequest $request, array $callOptions = []): ProcessorVersion - { - return $this->startApiCall('GetProcessorVersion', $request, $callOptions)->wait(); - } - - /** - * Retrieves a set of evaluations for a given processor version. - * - * The async variant is - * {@see DocumentProcessorServiceClient::listEvaluationsAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/list_evaluations.php - * - * @param ListEvaluationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listEvaluations(ListEvaluationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEvaluations', $request, $callOptions); - } - - /** - * Lists the processor types that exist. - * - * The async variant is - * {@see DocumentProcessorServiceClient::listProcessorTypesAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/list_processor_types.php - * - * @param ListProcessorTypesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listProcessorTypes(ListProcessorTypesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProcessorTypes', $request, $callOptions); - } - - /** - * Lists all versions of a processor. - * - * The async variant is - * {@see DocumentProcessorServiceClient::listProcessorVersionsAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/list_processor_versions.php - * - * @param ListProcessorVersionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listProcessorVersions(ListProcessorVersionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProcessorVersions', $request, $callOptions); - } - - /** - * Lists all processors which belong to this project. - * - * The async variant is - * {@see DocumentProcessorServiceClient::listProcessorsAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/list_processors.php - * - * @param ListProcessorsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listProcessors(ListProcessorsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProcessors', $request, $callOptions); - } - - /** - * Processes a single document. - * - * The async variant is - * {@see DocumentProcessorServiceClient::processDocumentAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/process_document.php - * - * @param ProcessRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ProcessResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function processDocument(ProcessRequest $request, array $callOptions = []): ProcessResponse - { - return $this->startApiCall('ProcessDocument', $request, $callOptions)->wait(); - } - - /** - * Send a document for Human Review. The input document should be processed by - * the specified processor. - * - * The async variant is - * {@see DocumentProcessorServiceClient::reviewDocumentAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/review_document.php - * - * @param ReviewDocumentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 reviewDocument(ReviewDocumentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ReviewDocument', $request, $callOptions)->wait(); - } - - /** - * Set the default (active) version of a - * [Processor][google.cloud.documentai.v1.Processor] that will be used in - * [ProcessDocument][google.cloud.documentai.v1.DocumentProcessorService.ProcessDocument] - * and - * [BatchProcessDocuments][google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocuments]. - * - * The async variant is - * {@see DocumentProcessorServiceClient::setDefaultProcessorVersionAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/set_default_processor_version.php - * - * @param SetDefaultProcessorVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 setDefaultProcessorVersion(SetDefaultProcessorVersionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('SetDefaultProcessorVersion', $request, $callOptions)->wait(); - } - - /** - * Trains a new processor version. - * Operation metadata is returned as - * [TrainProcessorVersionMetadata][google.cloud.documentai.v1.TrainProcessorVersionMetadata]. - * - * The async variant is - * {@see DocumentProcessorServiceClient::trainProcessorVersionAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/train_processor_version.php - * - * @param TrainProcessorVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 trainProcessorVersion(TrainProcessorVersionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('TrainProcessorVersion', $request, $callOptions)->wait(); - } - - /** - * Undeploys the processor version. - * - * The async variant is - * {@see DocumentProcessorServiceClient::undeployProcessorVersionAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/undeploy_processor_version.php - * - * @param UndeployProcessorVersionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 undeployProcessorVersion(UndeployProcessorVersionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UndeployProcessorVersion', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see DocumentProcessorServiceClient::getLocationAsync()} . - * - * @example samples/V1/DocumentProcessorServiceClient/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 DocumentProcessorServiceClient::listLocationsAsync()} - * . - * - * @example samples/V1/DocumentProcessorServiceClient/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/DocumentAi/v1/src/V1/gapic_metadata.json b/owl-bot-staging/DocumentAi/v1/src/V1/gapic_metadata.json deleted file mode 100644 index b6a28df90b49..000000000000 --- a/owl-bot-staging/DocumentAi/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,138 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.documentai.v1", - "libraryPackage": "Google\\Cloud\\DocumentAI\\V1", - "services": { - "DocumentProcessorService": { - "clients": { - "grpc": { - "libraryClient": "DocumentProcessorServiceGapicClient", - "rpcs": { - "BatchProcessDocuments": { - "methods": [ - "batchProcessDocuments" - ] - }, - "CreateProcessor": { - "methods": [ - "createProcessor" - ] - }, - "DeleteProcessor": { - "methods": [ - "deleteProcessor" - ] - }, - "DeleteProcessorVersion": { - "methods": [ - "deleteProcessorVersion" - ] - }, - "DeployProcessorVersion": { - "methods": [ - "deployProcessorVersion" - ] - }, - "DisableProcessor": { - "methods": [ - "disableProcessor" - ] - }, - "EnableProcessor": { - "methods": [ - "enableProcessor" - ] - }, - "EvaluateProcessorVersion": { - "methods": [ - "evaluateProcessorVersion" - ] - }, - "FetchProcessorTypes": { - "methods": [ - "fetchProcessorTypes" - ] - }, - "GetEvaluation": { - "methods": [ - "getEvaluation" - ] - }, - "GetProcessor": { - "methods": [ - "getProcessor" - ] - }, - "GetProcessorType": { - "methods": [ - "getProcessorType" - ] - }, - "GetProcessorVersion": { - "methods": [ - "getProcessorVersion" - ] - }, - "ListEvaluations": { - "methods": [ - "listEvaluations" - ] - }, - "ListProcessorTypes": { - "methods": [ - "listProcessorTypes" - ] - }, - "ListProcessorVersions": { - "methods": [ - "listProcessorVersions" - ] - }, - "ListProcessors": { - "methods": [ - "listProcessors" - ] - }, - "ProcessDocument": { - "methods": [ - "processDocument" - ] - }, - "ReviewDocument": { - "methods": [ - "reviewDocument" - ] - }, - "SetDefaultProcessorVersion": { - "methods": [ - "setDefaultProcessorVersion" - ] - }, - "TrainProcessorVersion": { - "methods": [ - "trainProcessorVersion" - ] - }, - "UndeployProcessorVersion": { - "methods": [ - "undeployProcessorVersion" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_client_config.json b/owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_client_config.json deleted file mode 100644 index d750f74493d7..000000000000 --- a/owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_client_config.json +++ /dev/null @@ -1,169 +0,0 @@ -{ - "interfaces": { - "google.cloud.documentai.v1.DocumentProcessorService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE", - "RESOURCE_EXHAUSTED" - ], - "retry_policy_2_codes": [ - "DEADLINE_EXCEEDED", - "UNAVAILABLE" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 9.0, - "max_retry_delay_millis": 90000, - "initial_rpc_timeout_millis": 300000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 300000, - "total_timeout_millis": 300000 - }, - "retry_policy_2_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.5, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 120000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 120000, - "total_timeout_millis": 120000 - } - }, - "methods": { - "BatchProcessDocuments": { - "timeout_millis": 120000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "CreateProcessor": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteProcessor": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteProcessorVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeployProcessorVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DisableProcessor": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "EnableProcessor": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "EvaluateProcessorVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "FetchProcessorTypes": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetEvaluation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetProcessor": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetProcessorType": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetProcessorVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListEvaluations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListProcessorTypes": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListProcessorVersions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListProcessors": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ProcessDocument": { - "timeout_millis": 300000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ReviewDocument": { - "timeout_millis": 120000, - "retry_codes_name": "retry_policy_2_codes", - "retry_params_name": "retry_policy_2_params" - }, - "SetDefaultProcessorVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TrainProcessorVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UndeployProcessorVersion": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_descriptor_config.php b/owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_descriptor_config.php deleted file mode 100644 index 961e12f940bc..000000000000 --- a/owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_descriptor_config.php +++ /dev/null @@ -1,443 +0,0 @@ - [ - 'google.cloud.documentai.v1.DocumentProcessorService' => [ - 'BatchProcessDocuments' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DocumentAI\V1\BatchProcessResponse', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\BatchProcessMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProcessor' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\DeleteProcessorMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProcessorVersion' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\DeleteProcessorVersionMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeployProcessorVersion' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DocumentAI\V1\DeployProcessorVersionResponse', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\DeployProcessorVersionMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DisableProcessor' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DocumentAI\V1\DisableProcessorResponse', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\DisableProcessorMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'EnableProcessor' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DocumentAI\V1\EnableProcessorResponse', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\EnableProcessorMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'EvaluateProcessorVersion' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DocumentAI\V1\EvaluateProcessorVersionResponse', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\EvaluateProcessorVersionMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'processor_version', - 'fieldAccessors' => [ - 'getProcessorVersion', - ], - ], - ], - ], - 'ReviewDocument' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DocumentAI\V1\ReviewDocumentResponse', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\ReviewDocumentOperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'human_review_config', - 'fieldAccessors' => [ - 'getHumanReviewConfig', - ], - ], - ], - ], - 'SetDefaultProcessorVersion' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DocumentAI\V1\SetDefaultProcessorVersionResponse', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\SetDefaultProcessorVersionMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'processor', - 'fieldAccessors' => [ - 'getProcessor', - ], - ], - ], - ], - 'TrainProcessorVersion' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DocumentAI\V1\TrainProcessorVersionResponse', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\TrainProcessorVersionMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UndeployProcessorVersion' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\DocumentAI\V1\UndeployProcessorVersionResponse', - 'metadataReturnType' => '\Google\Cloud\DocumentAI\V1\UndeployProcessorVersionMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'CreateProcessor' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\Processor', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'FetchProcessorTypes' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\FetchProcessorTypesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetEvaluation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\Evaluation', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProcessor' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\Processor', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProcessorType' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\ProcessorType', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProcessorVersion' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\ProcessorVersion', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListEvaluations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEvaluations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\ListEvaluationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListProcessorTypes' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProcessorTypes', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\ListProcessorTypesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListProcessorVersions' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProcessorVersions', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\ListProcessorVersionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListProcessors' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProcessors', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\ListProcessorsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ProcessDocument' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\DocumentAI\V1\ProcessResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'evaluation' => 'projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}', - 'humanReviewConfig' => 'projects/{project}/locations/{location}/processors/{processor}/humanReviewConfig', - 'location' => 'projects/{project}/locations/{location}', - 'processor' => 'projects/{project}/locations/{location}/processors/{processor}', - 'processorType' => 'projects/{project}/locations/{location}/processorTypes/{processor_type}', - 'processorVersion' => 'projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}', - ], - ], - ], -]; diff --git a/owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_rest_client_config.php b/owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_rest_client_config.php deleted file mode 100644 index 7634fa638b42..000000000000 --- a/owl-bot-staging/DocumentAi/v1/src/V1/resources/document_processor_service_rest_client_config.php +++ /dev/null @@ -1,389 +0,0 @@ - [ - 'google.cloud.documentai.v1.DocumentProcessorService' => [ - 'BatchProcessDocuments' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*}:batchProcess', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'CreateProcessor' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/processors', - 'body' => 'processor', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteProcessor' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteProcessorVersion' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeployProcessorVersion' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DisableProcessor' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*}:disable', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'EnableProcessor' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*}:enable', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'EvaluateProcessorVersion' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion', - 'body' => '*', - 'placeholders' => [ - 'processor_version' => [ - 'getters' => [ - 'getProcessorVersion', - ], - ], - ], - ], - 'FetchProcessorTypes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}:fetchProcessorTypes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'GetEvaluation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProcessor' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProcessorType' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processorTypes/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProcessorVersion' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListEvaluations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProcessorTypes' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/processorTypes', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProcessorVersions' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/processors/*}/processorVersions', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProcessors' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/processors', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ProcessDocument' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*}:process', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:process', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ReviewDocument' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument', - 'body' => '*', - 'placeholders' => [ - 'human_review_config' => [ - 'getters' => [ - 'getHumanReviewConfig', - ], - ], - ], - ], - 'SetDefaultProcessorVersion' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion', - 'body' => '*', - 'placeholders' => [ - 'processor' => [ - 'getters' => [ - 'getProcessor', - ], - ], - ], - ], - 'TrainProcessorVersion' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/processors/*}/processorVersions:train', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UndeployProcessorVersion' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/uiv1beta3/{name=projects/*/locations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/uiv1beta3/{name=projects/*}/locations', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/uiv1beta3/{name=projects/*/locations/*/operations/*}:cancel', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/operations/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/uiv1beta3/{name=projects/*/locations/*/operations/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/uiv1beta3/{name=projects/*/locations/*/operations}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/DocumentAi/v1/tests/Unit/V1/Client/DocumentProcessorServiceClientTest.php b/owl-bot-staging/DocumentAi/v1/tests/Unit/V1/Client/DocumentProcessorServiceClientTest.php deleted file mode 100644 index 7fcac5f7ca19..000000000000 --- a/owl-bot-staging/DocumentAi/v1/tests/Unit/V1/Client/DocumentProcessorServiceClientTest.php +++ /dev/null @@ -1,2437 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DocumentProcessorServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DocumentProcessorServiceClient($options); - } - - /** @test */ - public function batchProcessDocumentsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchProcessDocumentsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchProcessResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchProcessDocumentsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $name = 'name3373707'; - $request = (new BatchProcessRequest()) - ->setName($name); - $response = $gapicClient->batchProcessDocuments($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.documentai.v1.DocumentProcessorService/BatchProcessDocuments', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchProcessDocumentsTest'); - $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 batchProcessDocumentsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchProcessDocumentsTest'); - $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 BatchProcessRequest()) - ->setName($name); - $response = $gapicClient->batchProcessDocuments($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchProcessDocumentsTest'); - 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 createProcessorTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $type = 'type3575610'; - $displayName = 'displayName1615086568'; - $defaultProcessorVersion = 'defaultProcessorVersion1185902509'; - $processEndpoint = 'processEndpoint-178717339'; - $kmsKeyName = 'kmsKeyName2094986649'; - $satisfiesPzs = false; - $satisfiesPzi = false; - $expectedResponse = new Processor(); - $expectedResponse->setName($name); - $expectedResponse->setType($type); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDefaultProcessorVersion($defaultProcessorVersion); - $expectedResponse->setProcessEndpoint($processEndpoint); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $processor = new Processor(); - $request = (new CreateProcessorRequest()) - ->setParent($formattedParent) - ->setProcessor($processor); - $response = $gapicClient->createProcessor($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.documentai.v1.DocumentProcessorService/CreateProcessor', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getProcessor(); - $this->assertProtobufEquals($processor, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createProcessorExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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]'); - $processor = new Processor(); - $request = (new CreateProcessorRequest()) - ->setParent($formattedParent) - ->setProcessor($processor); - try { - $gapicClient->createProcessor($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteProcessorTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteProcessorTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteProcessorTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new DeleteProcessorRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteProcessor($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.documentai.v1.DocumentProcessorService/DeleteProcessor', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteProcessorTest'); - $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 deleteProcessorExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteProcessorTest'); - $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->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new DeleteProcessorRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteProcessor($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteProcessorTest'); - 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 deleteProcessorVersionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteProcessorVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteProcessorVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new DeleteProcessorVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteProcessorVersion($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.documentai.v1.DocumentProcessorService/DeleteProcessorVersion', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteProcessorVersionTest'); - $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 deleteProcessorVersionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteProcessorVersionTest'); - $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->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new DeleteProcessorVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteProcessorVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteProcessorVersionTest'); - 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 deployProcessorVersionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deployProcessorVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new DeployProcessorVersionResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deployProcessorVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new DeployProcessorVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->deployProcessorVersion($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.documentai.v1.DocumentProcessorService/DeployProcessorVersion', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deployProcessorVersionTest'); - $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 deployProcessorVersionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deployProcessorVersionTest'); - $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->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new DeployProcessorVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->deployProcessorVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deployProcessorVersionTest'); - 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 disableProcessorTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/disableProcessorTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new DisableProcessorResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/disableProcessorTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new DisableProcessorRequest()) - ->setName($formattedName); - $response = $gapicClient->disableProcessor($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.documentai.v1.DocumentProcessorService/DisableProcessor', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/disableProcessorTest'); - $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 disableProcessorExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/disableProcessorTest'); - $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->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new DisableProcessorRequest()) - ->setName($formattedName); - $response = $gapicClient->disableProcessor($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/disableProcessorTest'); - 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 enableProcessorTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/enableProcessorTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new EnableProcessorResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/enableProcessorTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new EnableProcessorRequest()) - ->setName($formattedName); - $response = $gapicClient->enableProcessor($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.documentai.v1.DocumentProcessorService/EnableProcessor', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/enableProcessorTest'); - $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 enableProcessorExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/enableProcessorTest'); - $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->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new EnableProcessorRequest()) - ->setName($formattedName); - $response = $gapicClient->enableProcessor($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/enableProcessorTest'); - 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 evaluateProcessorVersionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/evaluateProcessorVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $evaluation = 'evaluation858523452'; - $expectedResponse = new EvaluateProcessorVersionResponse(); - $expectedResponse->setEvaluation($evaluation); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/evaluateProcessorVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedProcessorVersion = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new EvaluateProcessorVersionRequest()) - ->setProcessorVersion($formattedProcessorVersion); - $response = $gapicClient->evaluateProcessorVersion($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.documentai.v1.DocumentProcessorService/EvaluateProcessorVersion', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getProcessorVersion(); - $this->assertProtobufEquals($formattedProcessorVersion, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/evaluateProcessorVersionTest'); - $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 evaluateProcessorVersionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/evaluateProcessorVersionTest'); - $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 - $formattedProcessorVersion = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new EvaluateProcessorVersionRequest()) - ->setProcessorVersion($formattedProcessorVersion); - $response = $gapicClient->evaluateProcessorVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/evaluateProcessorVersionTest'); - 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 fetchProcessorTypesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new FetchProcessorTypesResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new FetchProcessorTypesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->fetchProcessorTypes($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.documentai.v1.DocumentProcessorService/FetchProcessorTypes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function fetchProcessorTypesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 FetchProcessorTypesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->fetchProcessorTypes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEvaluationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $kmsKeyName = 'kmsKeyName2094986649'; - $kmsKeyVersionName = 'kmsKeyVersionName-1734350176'; - $expectedResponse = new Evaluation(); - $expectedResponse->setName($name2); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setKmsKeyVersionName($kmsKeyVersionName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->evaluationName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]', '[EVALUATION]'); - $request = (new GetEvaluationRequest()) - ->setName($formattedName); - $response = $gapicClient->getEvaluation($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.documentai.v1.DocumentProcessorService/GetEvaluation', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEvaluationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->evaluationName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]', '[EVALUATION]'); - $request = (new GetEvaluationRequest()) - ->setName($formattedName); - try { - $gapicClient->getEvaluation($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProcessorTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $type = 'type3575610'; - $displayName = 'displayName1615086568'; - $defaultProcessorVersion = 'defaultProcessorVersion1185902509'; - $processEndpoint = 'processEndpoint-178717339'; - $kmsKeyName = 'kmsKeyName2094986649'; - $satisfiesPzs = false; - $satisfiesPzi = false; - $expectedResponse = new Processor(); - $expectedResponse->setName($name2); - $expectedResponse->setType($type); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDefaultProcessorVersion($defaultProcessorVersion); - $expectedResponse->setProcessEndpoint($processEndpoint); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new GetProcessorRequest()) - ->setName($formattedName); - $response = $gapicClient->getProcessor($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.documentai.v1.DocumentProcessorService/GetProcessor', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProcessorExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new GetProcessorRequest()) - ->setName($formattedName); - try { - $gapicClient->getProcessor($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProcessorTypeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $type = 'type3575610'; - $category = 'category50511102'; - $allowCreation = false; - $expectedResponse = new ProcessorType(); - $expectedResponse->setName($name2); - $expectedResponse->setType($type); - $expectedResponse->setCategory($category); - $expectedResponse->setAllowCreation($allowCreation); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->processorTypeName('[PROJECT]', '[LOCATION]', '[PROCESSOR_TYPE]'); - $request = (new GetProcessorTypeRequest()) - ->setName($formattedName); - $response = $gapicClient->getProcessorType($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.documentai.v1.DocumentProcessorService/GetProcessorType', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProcessorTypeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->processorTypeName('[PROJECT]', '[LOCATION]', '[PROCESSOR_TYPE]'); - $request = (new GetProcessorTypeRequest()) - ->setName($formattedName); - try { - $gapicClient->getProcessorType($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProcessorVersionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $kmsKeyName = 'kmsKeyName2094986649'; - $kmsKeyVersionName = 'kmsKeyVersionName-1734350176'; - $googleManaged = false; - $satisfiesPzs = false; - $satisfiesPzi = false; - $expectedResponse = new ProcessorVersion(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setKmsKeyName($kmsKeyName); - $expectedResponse->setKmsKeyVersionName($kmsKeyVersionName); - $expectedResponse->setGoogleManaged($googleManaged); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setSatisfiesPzi($satisfiesPzi); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new GetProcessorVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->getProcessorVersion($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.documentai.v1.DocumentProcessorService/GetProcessorVersion', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProcessorVersionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new GetProcessorVersionRequest()) - ->setName($formattedName); - try { - $gapicClient->getProcessorVersion($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEvaluationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $evaluationsElement = new Evaluation(); - $evaluations = [ - $evaluationsElement, - ]; - $expectedResponse = new ListEvaluationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEvaluations($evaluations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new ListEvaluationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEvaluations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEvaluations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.documentai.v1.DocumentProcessorService/ListEvaluations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEvaluationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new ListEvaluationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEvaluations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProcessorTypesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $processorTypesElement = new ProcessorType(); - $processorTypes = [ - $processorTypesElement, - ]; - $expectedResponse = new ListProcessorTypesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProcessorTypes($processorTypes); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListProcessorTypesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listProcessorTypes($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProcessorTypes()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.documentai.v1.DocumentProcessorService/ListProcessorTypes', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProcessorTypesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListProcessorTypesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listProcessorTypes($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProcessorVersionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $processorVersionsElement = new ProcessorVersion(); - $processorVersions = [ - $processorVersionsElement, - ]; - $expectedResponse = new ListProcessorVersionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProcessorVersions($processorVersions); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new ListProcessorVersionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listProcessorVersions($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProcessorVersions()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.documentai.v1.DocumentProcessorService/ListProcessorVersions', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProcessorVersionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new ListProcessorVersionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listProcessorVersions($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProcessorsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $processorsElement = new Processor(); - $processors = [ - $processorsElement, - ]; - $expectedResponse = new ListProcessorsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProcessors($processors); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListProcessorsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listProcessors($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProcessors()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.documentai.v1.DocumentProcessorService/ListProcessors', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProcessorsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListProcessorsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listProcessors($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function processDocumentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ProcessResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $name = 'name3373707'; - $request = (new ProcessRequest()) - ->setName($name); - $response = $gapicClient->processDocument($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.documentai.v1.DocumentProcessorService/ProcessDocument', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function processDocumentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal 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 ProcessRequest()) - ->setName($name); - try { - $gapicClient->processDocument($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reviewDocumentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/reviewDocumentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $gcsDestination = 'gcsDestination714819302'; - $rejectionReason = 'rejectionReason2141394746'; - $expectedResponse = new ReviewDocumentResponse(); - $expectedResponse->setGcsDestination($gcsDestination); - $expectedResponse->setRejectionReason($rejectionReason); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/reviewDocumentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedHumanReviewConfig = $gapicClient->humanReviewConfigName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new ReviewDocumentRequest()) - ->setHumanReviewConfig($formattedHumanReviewConfig); - $response = $gapicClient->reviewDocument($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.documentai.v1.DocumentProcessorService/ReviewDocument', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getHumanReviewConfig(); - $this->assertProtobufEquals($formattedHumanReviewConfig, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/reviewDocumentTest'); - $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 reviewDocumentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/reviewDocumentTest'); - $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 - $formattedHumanReviewConfig = $gapicClient->humanReviewConfigName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $request = (new ReviewDocumentRequest()) - ->setHumanReviewConfig($formattedHumanReviewConfig); - $response = $gapicClient->reviewDocument($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/reviewDocumentTest'); - 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 setDefaultProcessorVersionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/setDefaultProcessorVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new SetDefaultProcessorVersionResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/setDefaultProcessorVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedProcessor = $gapicClient->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $formattedDefaultProcessorVersion = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new SetDefaultProcessorVersionRequest()) - ->setProcessor($formattedProcessor) - ->setDefaultProcessorVersion($formattedDefaultProcessorVersion); - $response = $gapicClient->setDefaultProcessorVersion($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.documentai.v1.DocumentProcessorService/SetDefaultProcessorVersion', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getProcessor(); - $this->assertProtobufEquals($formattedProcessor, $actualValue); - $actualValue = $actualApiRequestObject->getDefaultProcessorVersion(); - $this->assertProtobufEquals($formattedDefaultProcessorVersion, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/setDefaultProcessorVersionTest'); - $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 setDefaultProcessorVersionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/setDefaultProcessorVersionTest'); - $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 - $formattedProcessor = $gapicClient->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $formattedDefaultProcessorVersion = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new SetDefaultProcessorVersionRequest()) - ->setProcessor($formattedProcessor) - ->setDefaultProcessorVersion($formattedDefaultProcessorVersion); - $response = $gapicClient->setDefaultProcessorVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/setDefaultProcessorVersionTest'); - 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 trainProcessorVersionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/trainProcessorVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $processorVersion2 = 'processorVersion2-1092580578'; - $expectedResponse = new TrainProcessorVersionResponse(); - $expectedResponse->setProcessorVersion($processorVersion2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/trainProcessorVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $processorVersion = new ProcessorVersion(); - $request = (new TrainProcessorVersionRequest()) - ->setParent($formattedParent) - ->setProcessorVersion($processorVersion); - $response = $gapicClient->trainProcessorVersion($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.documentai.v1.DocumentProcessorService/TrainProcessorVersion', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getProcessorVersion(); - $this->assertProtobufEquals($processorVersion, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/trainProcessorVersionTest'); - $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 trainProcessorVersionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/trainProcessorVersionTest'); - $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->processorName('[PROJECT]', '[LOCATION]', '[PROCESSOR]'); - $processorVersion = new ProcessorVersion(); - $request = (new TrainProcessorVersionRequest()) - ->setParent($formattedParent) - ->setProcessorVersion($processorVersion); - $response = $gapicClient->trainProcessorVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/trainProcessorVersionTest'); - 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 undeployProcessorVersionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/undeployProcessorVersionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new UndeployProcessorVersionResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/undeployProcessorVersionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new UndeployProcessorVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->undeployProcessorVersion($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.documentai.v1.DocumentProcessorService/UndeployProcessorVersion', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/undeployProcessorVersionTest'); - $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 undeployProcessorVersionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/undeployProcessorVersionTest'); - $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->processorVersionName('[PROJECT]', '[LOCATION]', '[PROCESSOR]', '[PROCESSOR_VERSION]'); - $request = (new UndeployProcessorVersionRequest()) - ->setName($formattedName); - $response = $gapicClient->undeployProcessorVersion($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/undeployProcessorVersionTest'); - 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 batchProcessDocumentsAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/batchProcessDocumentsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new BatchProcessResponse(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/batchProcessDocumentsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $name = 'name3373707'; - $request = (new BatchProcessRequest()) - ->setName($name); - $response = $gapicClient->batchProcessDocumentsAsync($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.documentai.v1.DocumentProcessorService/BatchProcessDocuments', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($name, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/batchProcessDocumentsTest'); - $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/Domains/v1/proto/src/GPBMetadata/Google/Cloud/Domains/V1/Domains.php b/owl-bot-staging/Domains/v1/proto/src/GPBMetadata/Google/Cloud/Domains/V1/Domains.php deleted file mode 100644 index 3998d5208c0d1ca617d8f5c391d5569fbddf03c7..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12715 zcmd5DO>Y~=wWL1zB+=CPBb40K^g6C>MJ6lSPHZ}kvm$AUiA1s_8SZ|;U2iuNTixw#MNib*t&ZAM z^kgEDDvRSC99f|+FPQYh zN3JW0mGbhsV#*EKls8ux@Me|*Z{|4g=G~>60QIJ97zt|#K7a)N>vXr8YCU0?vWb6Q zQVmJfR8y6k>ifvSt;Dw6G!%sOuHEixbyIC?2?|is>dM7S367JleW}w%j&CJwa>`T) zD1gm^W-7WSH#c*NQP>e@|4H%0Ks`LsDiSYk)r6g90)rO?)lOs27iv5g;KOgh`9NMtUf|1; z%z2ZR^CtI}=Bf9smX9Zou3li4UIcuufQ*o;8 zsMuO$#}gJd&VMB8)fXEv0G1BZy%ty%dawH3pN{OnslM!ts`@$va95txPf$(?r)d z;=p9!&(pdCQ?)=y2BsUD(L*uCP`uqSq@<1pb`m_ z62v=-)<7O455k$lBODowklyTI%TPo?PFLN147hFC0W$nXhNcn!gNFZoyB% z$bDs>TQ-@2u|2ujRpQK?GvVtY;j<8oF=HVoVYXTmYk6s-SS{zXg*%0OF7_1?hZB|j zN}*b-h_yngD3$ZYT%ouU3y~M#c;Cz&v9N|9VR8auxVl)qldm|-N62wF=8RfPM+v~V zn5`A==40bXU8K5!TNiVPWr9q@Wd5CUsZzsllR^Q;m_<@D3)SkzAeo3gTPoHNnN-~< zQ!u0u3E3##%~u#NQhpr?jD<7W-^KfI&W?lJX))3nNi2g>ZZ9G^bmjMyx@n|7us%IX zHQRNbtx_M@A0MT3S2V%J?yrx8kHbKQ81h|+>R6aPkegCVF?ZVy7DuA#8@}rHB0;BT z7_ihr1l(I!;5f!L&A`G=LJIFoJba9zSw_6)gAne)OdopkHJGpDi}|<3 zHEBIxTP@`VOa)aVZq!QaXee39T8Ua95M39G8wh2Og@qphOu0QXhqYkWFxxE&ots(f zR66NPs|zxjWneh6`V~?I!qq8R+GW_Nu}`J11;Vz%O4S^%Q905)Oz)u2NV-yQ>kT75 z%3@$D7&-*3Ft~XYA`Yo!4yI{Z!6>HhDLQ3%geRUb5dj*8vssvJb~(^yIm6oOmm!D^ zGUC7G2+6`EZpqDr3M-mk47edP6dn@q^wB+X1iE?r`pqaz+MJMMFoDraGUXj+6Jz8} zh{(;Iwyv7HEf&S1=~n~N%7v2@ZE&)VDPG;d5>TS0g5`bJ4~H$s5YV!aL}8qxLkqz& zLijWck=|x=a8g`bDOC!!)%5|l!5CPnitD*+=quw8&aGkyoq&;CRg8_$5BY31HcF;o z0#{X6#iiI7iNQ2Z7pwW~6*e+XL!C9<8=asbm5-*cy%L-3eZ97njsZo9xK~QmT5Otz z=X@5CmT@WKqyRI$!7JCV;voJXi!!iW`r5Un8?j>~0%Q5y)vMQIF~mMuz}!&DXKS&4 zhfsG=t`zQKM#&Ycu`k>Mr9v+DpOEk_fJ=U-;e}jbC10&cwRg*d;e8TD8KWVZF)Z@J zG(}MAuUuVPLQ(MnyI2VFQqC#z!Z;pPJ9}5{@(@cT>TeNi{1w+Y zwdV*DJdrb)&C|4)t4hNX<~*Fj8I(e)f`2!P<&EXFLUk3hSjd91=Xx{YC6)wz+rqbW=wfg}olGbP`dnp(%CXwyf%>8SM0e?J5h7Qy6Ii1r@`tUTis?lcS}`%Y?{ zNdjXEc08KAY~o`W!8^Nn>X5WPmc!`6#iWnIo|_2`Bd?%;330#b%%)wYBDcoSuCr-G*dWpFK0P<^1Iv(y+aIhUC=J zeNOXqL-Jx2{)C2P5C0z-(hy7FmUL80;L+OG67B$zyLeX7)%RJv!YJRc&By<2BDz7c z2!W@-p%(Q~2;yrPk=!1GRWXmX&)~7M5b0p^LNc%i&D?d2MtL@5w(lz%5C60T+*X?y z53LeVhq)otShn>V%($a~9g6*3*v%9kzK?0jLlZ+elErCYhkBt3r&g3c0rdEHce!3> zIputygRt;}5X^0KsQxByFoZU0v~>i*3rpA(Tay55u}&=ZYUH{d0+zra?~qx`qRs{w)Nj9Zp>b-{;8U zU`vhj7ObTz_}Db-4bozuj9IAgs}RgO7qa#RK1uc8 zck%r0&C$+%7g>Z!ydL4VV?44xZ8ernrmW*_yH!RZN!S(L;zbnA6|^oda3z}QbJ$XJ2d2bVZ83}?Q@Wf zeb^mx5qm&$Wd7!nU@e|oPs9@r&kZJd*4Sj6mr3y`oa_F4{xbwoI}dR^6MrrBFSND# zqRp=BO+eC#GQvlp$Ku(+8+m8i4nj}F1n;*j+CiGW8Ci6zBr)fIZ8#( zgckbrZhMO>g&eGRFOV&WgY`ZP_J5#v@3!Q-VTjtp2kO0lq0R0AdjB+_-me^__eI&A z)mTg6=%!#=_n_1ievR4CbATuQ&mTN%ZAqkU5AXzwAt08%m!F7MhmkRJg)AM~uE|eA zaBQF(K>Tkm2Ugm|`xk=T-FahDc;ku4`U`#3(pyd+A56LZ*hnorB431nc)JY5UwGcd zHq8f^-X{S~FYcys(bcD5Ocv9xGnKd(B@e@Krmqi7ein8e^@lVN{KJQHX!b${l*rEm zN~Ayfww(7l&Vw9}l$U$3q?TlQ5iccy~2N$W>p58@4>4j6Mq}qw{Wq zSZugnD|v)d6?ndOLmXZ>F3zb`ejJ9l!zO;951#Bc3h_T}`hf(L&QAkM=aQS(#X2X? z-+bN{D$l`u2Bbix^hb;~-loY@qK$WPK*?yq>YHBlyd_*`JRd5S;M+oM08!5VfSh^T zHc#QqyEq_ct;ga5oaAqA_~S}^%$dx$I_5s{o+JAb!~#!ehhdRmEjnkH2UT04Rs_x!^p^UgWR-T|W|_ UjSICtgoogle.cloud.domains.v1.AuthorizationCode - */ -class AuthorizationCode extends \Google\Protobuf\Internal\Message -{ - /** - * The Authorization Code in ASCII. It can be used to transfer the domain - * to or from another registrar. - * - * Generated from protobuf field string code = 1; - */ - protected $code = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $code - * The Authorization Code in ASCII. It can be used to transfer the domain - * to or from another registrar. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * The Authorization Code in ASCII. It can be used to transfer the domain - * to or from another registrar. - * - * Generated from protobuf field string code = 1; - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * The Authorization Code in ASCII. It can be used to transfer the domain - * to or from another registrar. - * - * Generated from protobuf field string code = 1; - * @param string $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkString($var, True); - $this->code = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureContactSettingsRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureContactSettingsRequest.php deleted file mode 100644 index b3b5bf631449..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureContactSettingsRequest.php +++ /dev/null @@ -1,260 +0,0 @@ -google.cloud.domains.v1.ConfigureContactSettingsRequest - */ -class ConfigureContactSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `Registration` whose contact settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $registration = ''; - /** - * Fields of the `ContactSettings` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings contact_settings = 2; - */ - protected $contact_settings = null; - /** - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * The list of contact notices that the caller acknowledges. The notices - * needed here depend on the values specified in `contact_settings`. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - */ - private $contact_notices; - /** - * Validate the request without actually updating the contact settings. - * - * Generated from protobuf field bool validate_only = 5; - */ - protected $validate_only = false; - - /** - * @param string $registration Required. The name of the `Registration` whose contact settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. Please see - * {@see DomainsClient::registrationName()} for help formatting this field. - * @param \Google\Cloud\Domains\V1\ContactSettings $contactSettings Fields of the `ContactSettings` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * - * @return \Google\Cloud\Domains\V1\ConfigureContactSettingsRequest - * - * @experimental - */ - public static function build(string $registration, \Google\Cloud\Domains\V1\ContactSettings $contactSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRegistration($registration) - ->setContactSettings($contactSettings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $registration - * Required. The name of the `Registration` whose contact settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * @type \Google\Cloud\Domains\V1\ContactSettings $contact_settings - * Fields of the `ContactSettings` to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * @type array|\Google\Protobuf\Internal\RepeatedField $contact_notices - * The list of contact notices that the caller acknowledges. The notices - * needed here depend on the values specified in `contact_settings`. - * @type bool $validate_only - * Validate the request without actually updating the contact settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `Registration` whose contact settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRegistration() - { - return $this->registration; - } - - /** - * Required. The name of the `Registration` whose contact settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRegistration($var) - { - GPBUtil::checkString($var, True); - $this->registration = $var; - - return $this; - } - - /** - * Fields of the `ContactSettings` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings contact_settings = 2; - * @return \Google\Cloud\Domains\V1\ContactSettings|null - */ - public function getContactSettings() - { - return $this->contact_settings; - } - - public function hasContactSettings() - { - return isset($this->contact_settings); - } - - public function clearContactSettings() - { - unset($this->contact_settings); - } - - /** - * Fields of the `ContactSettings` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings contact_settings = 2; - * @param \Google\Cloud\Domains\V1\ContactSettings $var - * @return $this - */ - public function setContactSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\ContactSettings::class); - $this->contact_settings = $var; - - return $this; - } - - /** - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * - * 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 field mask describing which fields to update as a comma-separated list. - * For example, if only the registrant contact is being updated, the - * `update_mask` is `"registrant_contact"`. - * - * 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; - } - - /** - * The list of contact notices that the caller acknowledges. The notices - * needed here depend on the values specified in `contact_settings`. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContactNotices() - { - return $this->contact_notices; - } - - /** - * The list of contact notices that the caller acknowledges. The notices - * needed here depend on the values specified in `contact_settings`. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContactNotices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Domains\V1\ContactNotice::class); - $this->contact_notices = $arr; - - return $this; - } - - /** - * Validate the request without actually updating the contact settings. - * - * Generated from protobuf field bool validate_only = 5; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Validate the request without actually updating the contact settings. - * - * Generated from protobuf field bool validate_only = 5; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureDnsSettingsRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureDnsSettingsRequest.php deleted file mode 100644 index c28921fb2311..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureDnsSettingsRequest.php +++ /dev/null @@ -1,248 +0,0 @@ -google.cloud.domains.v1.ConfigureDnsSettingsRequest - */ -class ConfigureDnsSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `Registration` whose DNS settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $registration = ''; - /** - * Fields of the `DnsSettings` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings dns_settings = 2; - */ - protected $dns_settings = null; - /** - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the name servers are being updated for an existing - * Custom DNS configuration, the `update_mask` is - * `"custom_dns.name_servers"`. - * When changing the DNS provider from one type to another, pass the new - * provider's field name as part of the field mask. For example, when changing - * from a Google Domains DNS configuration to a Custom DNS configuration, the - * `update_mask` is `"custom_dns"`. // - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Validate the request without actually updating the DNS settings. - * - * Generated from protobuf field bool validate_only = 4; - */ - protected $validate_only = false; - - /** - * @param string $registration Required. The name of the `Registration` whose DNS settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. Please see - * {@see DomainsClient::registrationName()} for help formatting this field. - * @param \Google\Cloud\Domains\V1\DnsSettings $dnsSettings Fields of the `DnsSettings` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the name servers are being updated for an existing - * Custom DNS configuration, the `update_mask` is - * `"custom_dns.name_servers"`. - * - * When changing the DNS provider from one type to another, pass the new - * provider's field name as part of the field mask. For example, when changing - * from a Google Domains DNS configuration to a Custom DNS configuration, the - * `update_mask` is `"custom_dns"`. // - * - * @return \Google\Cloud\Domains\V1\ConfigureDnsSettingsRequest - * - * @experimental - */ - public static function build(string $registration, \Google\Cloud\Domains\V1\DnsSettings $dnsSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRegistration($registration) - ->setDnsSettings($dnsSettings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $registration - * Required. The name of the `Registration` whose DNS settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * @type \Google\Cloud\Domains\V1\DnsSettings $dns_settings - * Fields of the `DnsSettings` to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the name servers are being updated for an existing - * Custom DNS configuration, the `update_mask` is - * `"custom_dns.name_servers"`. - * When changing the DNS provider from one type to another, pass the new - * provider's field name as part of the field mask. For example, when changing - * from a Google Domains DNS configuration to a Custom DNS configuration, the - * `update_mask` is `"custom_dns"`. // - * @type bool $validate_only - * Validate the request without actually updating the DNS settings. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `Registration` whose DNS settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRegistration() - { - return $this->registration; - } - - /** - * Required. The name of the `Registration` whose DNS settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRegistration($var) - { - GPBUtil::checkString($var, True); - $this->registration = $var; - - return $this; - } - - /** - * Fields of the `DnsSettings` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings dns_settings = 2; - * @return \Google\Cloud\Domains\V1\DnsSettings|null - */ - public function getDnsSettings() - { - return $this->dns_settings; - } - - public function hasDnsSettings() - { - return isset($this->dns_settings); - } - - public function clearDnsSettings() - { - unset($this->dns_settings); - } - - /** - * Fields of the `DnsSettings` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings dns_settings = 2; - * @param \Google\Cloud\Domains\V1\DnsSettings $var - * @return $this - */ - public function setDnsSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\DnsSettings::class); - $this->dns_settings = $var; - - return $this; - } - - /** - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the name servers are being updated for an existing - * Custom DNS configuration, the `update_mask` is - * `"custom_dns.name_servers"`. - * When changing the DNS provider from one type to another, pass the new - * provider's field name as part of the field mask. For example, when changing - * from a Google Domains DNS configuration to a Custom DNS configuration, the - * `update_mask` is `"custom_dns"`. // - * - * 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 field mask describing which fields to update as a comma-separated list. - * For example, if only the name servers are being updated for an existing - * Custom DNS configuration, the `update_mask` is - * `"custom_dns.name_servers"`. - * When changing the DNS provider from one type to another, pass the new - * provider's field name as part of the field mask. For example, when changing - * from a Google Domains DNS configuration to a Custom DNS configuration, the - * `update_mask` is `"custom_dns"`. // - * - * 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; - } - - /** - * Validate the request without actually updating the DNS settings. - * - * Generated from protobuf field bool validate_only = 4; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Validate the request without actually updating the DNS settings. - * - * 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/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureManagementSettingsRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureManagementSettingsRequest.php deleted file mode 100644 index a1d274fa9407..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ConfigureManagementSettingsRequest.php +++ /dev/null @@ -1,188 +0,0 @@ -google.cloud.domains.v1.ConfigureManagementSettingsRequest - */ -class ConfigureManagementSettingsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `Registration` whose management settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $registration = ''; - /** - * Fields of the `ManagementSettings` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.ManagementSettings management_settings = 2; - */ - protected $management_settings = null; - /** - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the transfer lock is being updated, the `update_mask` - * is `"transfer_lock_state"`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param string $registration Required. The name of the `Registration` whose management settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. Please see - * {@see DomainsClient::registrationName()} for help formatting this field. - * @param \Google\Cloud\Domains\V1\ManagementSettings $managementSettings Fields of the `ManagementSettings` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the transfer lock is being updated, the `update_mask` - * is `"transfer_lock_state"`. - * - * @return \Google\Cloud\Domains\V1\ConfigureManagementSettingsRequest - * - * @experimental - */ - public static function build(string $registration, \Google\Cloud\Domains\V1\ManagementSettings $managementSettings, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRegistration($registration) - ->setManagementSettings($managementSettings) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $registration - * Required. The name of the `Registration` whose management settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * @type \Google\Cloud\Domains\V1\ManagementSettings $management_settings - * Fields of the `ManagementSettings` to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the transfer lock is being updated, the `update_mask` - * is `"transfer_lock_state"`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `Registration` whose management settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRegistration() - { - return $this->registration; - } - - /** - * Required. The name of the `Registration` whose management settings are being updated, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRegistration($var) - { - GPBUtil::checkString($var, True); - $this->registration = $var; - - return $this; - } - - /** - * Fields of the `ManagementSettings` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.ManagementSettings management_settings = 2; - * @return \Google\Cloud\Domains\V1\ManagementSettings|null - */ - public function getManagementSettings() - { - return $this->management_settings; - } - - public function hasManagementSettings() - { - return isset($this->management_settings); - } - - public function clearManagementSettings() - { - unset($this->management_settings); - } - - /** - * Fields of the `ManagementSettings` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.ManagementSettings management_settings = 2; - * @param \Google\Cloud\Domains\V1\ManagementSettings $var - * @return $this - */ - public function setManagementSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\ManagementSettings::class); - $this->management_settings = $var; - - return $this; - } - - /** - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the transfer lock is being updated, the `update_mask` - * is `"transfer_lock_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 field mask describing which fields to update as a comma-separated list. - * For example, if only the transfer lock is being updated, the `update_mask` - * is `"transfer_lock_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/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactNotice.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactNotice.php deleted file mode 100644 index 92c7404e79d5..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactNotice.php +++ /dev/null @@ -1,55 +0,0 @@ -google.cloud.domains.v1.ContactNotice - */ -class ContactNotice -{ - /** - * The notice is undefined. - * - * Generated from protobuf enum CONTACT_NOTICE_UNSPECIFIED = 0; - */ - const CONTACT_NOTICE_UNSPECIFIED = 0; - /** - * Required when setting the `privacy` field of `ContactSettings` to - * `PUBLIC_CONTACT_DATA`, which exposes contact data publicly. - * - * Generated from protobuf enum PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; - */ - const PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT = 1; - - private static $valueToName = [ - self::CONTACT_NOTICE_UNSPECIFIED => 'CONTACT_NOTICE_UNSPECIFIED', - self::PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT => 'PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactPrivacy.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactPrivacy.php deleted file mode 100644 index c092e551bae9..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactPrivacy.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.domains.v1.ContactPrivacy - */ -class ContactPrivacy -{ - /** - * The contact privacy settings are undefined. - * - * Generated from protobuf enum CONTACT_PRIVACY_UNSPECIFIED = 0; - */ - const CONTACT_PRIVACY_UNSPECIFIED = 0; - /** - * All the data from `ContactSettings` is publicly available. When setting - * this option, you must also provide a - * `PUBLIC_CONTACT_DATA_ACKNOWLEDGEMENT` in the `contact_notices` field of the - * request. - * - * Generated from protobuf enum PUBLIC_CONTACT_DATA = 1; - */ - const PUBLIC_CONTACT_DATA = 1; - /** - * None of the data from `ContactSettings` is publicly available. Instead, - * proxy contact data is published for your domain. Email sent to the proxy - * email address is forwarded to the registrant's email address. Cloud Domains - * provides this privacy proxy service at no additional cost. - * - * Generated from protobuf enum PRIVATE_CONTACT_DATA = 2; - */ - const PRIVATE_CONTACT_DATA = 2; - /** - * Some data from `ContactSettings` is publicly available. The actual - * information redacted depends on the domain. For details, see [the - * registration privacy - * article](https://support.google.com/domains/answer/3251242). - * - * Generated from protobuf enum REDACTED_CONTACT_DATA = 3; - */ - const REDACTED_CONTACT_DATA = 3; - - private static $valueToName = [ - self::CONTACT_PRIVACY_UNSPECIFIED => 'CONTACT_PRIVACY_UNSPECIFIED', - self::PUBLIC_CONTACT_DATA => 'PUBLIC_CONTACT_DATA', - self::PRIVATE_CONTACT_DATA => 'PRIVATE_CONTACT_DATA', - self::REDACTED_CONTACT_DATA => 'REDACTED_CONTACT_DATA', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactSettings.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactSettings.php deleted file mode 100644 index 48e9d0195913..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactSettings.php +++ /dev/null @@ -1,222 +0,0 @@ -google.cloud.domains.v1.ContactSettings - */ -class ContactSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Privacy setting for the contacts associated with the `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $privacy = 0; - /** - * Required. The registrant contact for the `Registration`. - * *Caution: Anyone with access to this email address, phone number, - * and/or postal address can take control of the domain.* - * *Warning: For new `Registration`s, the registrant receives an email - * confirmation that they must complete within 15 days to avoid domain - * suspension.* - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $registrant_contact = null; - /** - * Required. The administrative contact for the `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $admin_contact = null; - /** - * Required. The technical contact for the `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $technical_contact = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $privacy - * Required. Privacy setting for the contacts associated with the `Registration`. - * @type \Google\Cloud\Domains\V1\ContactSettings\Contact $registrant_contact - * Required. The registrant contact for the `Registration`. - * *Caution: Anyone with access to this email address, phone number, - * and/or postal address can take control of the domain.* - * *Warning: For new `Registration`s, the registrant receives an email - * confirmation that they must complete within 15 days to avoid domain - * suspension.* - * @type \Google\Cloud\Domains\V1\ContactSettings\Contact $admin_contact - * Required. The administrative contact for the `Registration`. - * @type \Google\Cloud\Domains\V1\ContactSettings\Contact $technical_contact - * Required. The technical contact for the `Registration`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. Privacy setting for the contacts associated with the `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getPrivacy() - { - return $this->privacy; - } - - /** - * Required. Privacy setting for the contacts associated with the `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactPrivacy privacy = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setPrivacy($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Domains\V1\ContactPrivacy::class); - $this->privacy = $var; - - return $this; - } - - /** - * Required. The registrant contact for the `Registration`. - * *Caution: Anyone with access to this email address, phone number, - * and/or postal address can take control of the domain.* - * *Warning: For new `Registration`s, the registrant receives an email - * confirmation that they must complete within 15 days to avoid domain - * suspension.* - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Domains\V1\ContactSettings\Contact|null - */ - public function getRegistrantContact() - { - return $this->registrant_contact; - } - - public function hasRegistrantContact() - { - return isset($this->registrant_contact); - } - - public function clearRegistrantContact() - { - unset($this->registrant_contact); - } - - /** - * Required. The registrant contact for the `Registration`. - * *Caution: Anyone with access to this email address, phone number, - * and/or postal address can take control of the domain.* - * *Warning: For new `Registration`s, the registrant receives an email - * confirmation that they must complete within 15 days to avoid domain - * suspension.* - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings.Contact registrant_contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Domains\V1\ContactSettings\Contact $var - * @return $this - */ - public function setRegistrantContact($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\ContactSettings\Contact::class); - $this->registrant_contact = $var; - - return $this; - } - - /** - * Required. The administrative contact for the `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Domains\V1\ContactSettings\Contact|null - */ - public function getAdminContact() - { - return $this->admin_contact; - } - - public function hasAdminContact() - { - return isset($this->admin_contact); - } - - public function clearAdminContact() - { - unset($this->admin_contact); - } - - /** - * Required. The administrative contact for the `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings.Contact admin_contact = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Domains\V1\ContactSettings\Contact $var - * @return $this - */ - public function setAdminContact($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\ContactSettings\Contact::class); - $this->admin_contact = $var; - - return $this; - } - - /** - * Required. The technical contact for the `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Domains\V1\ContactSettings\Contact|null - */ - public function getTechnicalContact() - { - return $this->technical_contact; - } - - public function hasTechnicalContact() - { - return isset($this->technical_contact); - } - - public function clearTechnicalContact() - { - unset($this->technical_contact); - } - - /** - * Required. The technical contact for the `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings.Contact technical_contact = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Domains\V1\ContactSettings\Contact $var - * @return $this - */ - public function setTechnicalContact($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\ContactSettings\Contact::class); - $this->technical_contact = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactSettings/Contact.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactSettings/Contact.php deleted file mode 100644 index aa5305242299..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ContactSettings/Contact.php +++ /dev/null @@ -1,190 +0,0 @@ -google.cloud.domains.v1.ContactSettings.Contact - */ -class Contact extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Postal address of the contact. - * - * Generated from protobuf field .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $postal_address = null; - /** - * Required. Email address of the contact. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $email = ''; - /** - * Required. Phone number of the contact in international format. For example, - * `"+1-800-555-0123"`. - * - * Generated from protobuf field string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $phone_number = ''; - /** - * Fax number of the contact in international format. For example, - * `"+1-800-555-0123"`. - * - * Generated from protobuf field string fax_number = 4; - */ - protected $fax_number = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Type\PostalAddress $postal_address - * Required. Postal address of the contact. - * @type string $email - * Required. Email address of the contact. - * @type string $phone_number - * Required. Phone number of the contact in international format. For example, - * `"+1-800-555-0123"`. - * @type string $fax_number - * Fax number of the contact in international format. For example, - * `"+1-800-555-0123"`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. Postal address of the contact. - * - * Generated from protobuf field .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\PostalAddress|null - */ - public function getPostalAddress() - { - return $this->postal_address; - } - - public function hasPostalAddress() - { - return isset($this->postal_address); - } - - public function clearPostalAddress() - { - unset($this->postal_address); - } - - /** - * Required. Postal address of the contact. - * - * Generated from protobuf field .google.type.PostalAddress postal_address = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\PostalAddress $var - * @return $this - */ - public function setPostalAddress($var) - { - GPBUtil::checkMessage($var, \Google\Type\PostalAddress::class); - $this->postal_address = $var; - - return $this; - } - - /** - * Required. Email address of the contact. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Required. Email address of the contact. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Required. Phone number of the contact in international format. For example, - * `"+1-800-555-0123"`. - * - * Generated from protobuf field string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPhoneNumber() - { - return $this->phone_number; - } - - /** - * Required. Phone number of the contact in international format. For example, - * `"+1-800-555-0123"`. - * - * Generated from protobuf field string phone_number = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPhoneNumber($var) - { - GPBUtil::checkString($var, True); - $this->phone_number = $var; - - return $this; - } - - /** - * Fax number of the contact in international format. For example, - * `"+1-800-555-0123"`. - * - * Generated from protobuf field string fax_number = 4; - * @return string - */ - public function getFaxNumber() - { - return $this->fax_number; - } - - /** - * Fax number of the contact in international format. For example, - * `"+1-800-555-0123"`. - * - * Generated from protobuf field string fax_number = 4; - * @param string $var - * @return $this - */ - public function setFaxNumber($var) - { - GPBUtil::checkString($var, True); - $this->fax_number = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Contact::class, \Google\Cloud\Domains\V1\ContactSettings_Contact::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DeleteRegistrationRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DeleteRegistrationRequest.php deleted file mode 100644 index e65aa9d2f7af..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DeleteRegistrationRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.domains.v1.DeleteRegistrationRequest - */ -class DeleteRegistrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `Registration` to delete, - * in the format `projects/*/locations/*/registrations/*`. - * - * 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 `Registration` to delete, - * in the format `projects/*/locations/*/registrations/*`. Please see - * {@see DomainsClient::registrationName()} for help formatting this field. - * - * @return \Google\Cloud\Domains\V1\DeleteRegistrationRequest - * - * @experimental - */ - public static function 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 `Registration` to delete, - * in the format `projects/*/locations/*/registrations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `Registration` to delete, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `Registration` to delete, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings.php deleted file mode 100644 index b7ea543cd047..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings.php +++ /dev/null @@ -1,146 +0,0 @@ -google.cloud.domains.v1.DnsSettings - */ -class DnsSettings extends \Google\Protobuf\Internal\Message -{ - /** - * The list of glue records for this `Registration`. Commonly empty. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - */ - private $glue_records; - protected $dns_provider; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Domains\V1\DnsSettings\CustomDns $custom_dns - * An arbitrary DNS provider identified by its name servers. - * @type \Google\Cloud\Domains\V1\DnsSettings\GoogleDomainsDns $google_domains_dns - * The free DNS zone provided by - * [Google Domains](https://domains.google/). - * @type array<\Google\Cloud\Domains\V1\DnsSettings\GlueRecord>|\Google\Protobuf\Internal\RepeatedField $glue_records - * The list of glue records for this `Registration`. Commonly empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * An arbitrary DNS provider identified by its name servers. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - * @return \Google\Cloud\Domains\V1\DnsSettings\CustomDns|null - */ - public function getCustomDns() - { - return $this->readOneof(1); - } - - public function hasCustomDns() - { - return $this->hasOneof(1); - } - - /** - * An arbitrary DNS provider identified by its name servers. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.CustomDns custom_dns = 1; - * @param \Google\Cloud\Domains\V1\DnsSettings\CustomDns $var - * @return $this - */ - public function setCustomDns($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\DnsSettings\CustomDns::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The free DNS zone provided by - * [Google Domains](https://domains.google/). - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * @return \Google\Cloud\Domains\V1\DnsSettings\GoogleDomainsDns|null - */ - public function getGoogleDomainsDns() - { - return $this->readOneof(2); - } - - public function hasGoogleDomainsDns() - { - return $this->hasOneof(2); - } - - /** - * The free DNS zone provided by - * [Google Domains](https://domains.google/). - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.GoogleDomainsDns google_domains_dns = 2; - * @param \Google\Cloud\Domains\V1\DnsSettings\GoogleDomainsDns $var - * @return $this - */ - public function setGoogleDomainsDns($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\DnsSettings\GoogleDomainsDns::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The list of glue records for this `Registration`. Commonly empty. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGlueRecords() - { - return $this->glue_records; - } - - /** - * The list of glue records for this `Registration`. Commonly empty. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DnsSettings.GlueRecord glue_records = 4; - * @param array<\Google\Cloud\Domains\V1\DnsSettings\GlueRecord>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGlueRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Domains\V1\DnsSettings\GlueRecord::class); - $this->glue_records = $arr; - - return $this; - } - - /** - * @return string - */ - public function getDnsProvider() - { - return $this->whichOneof("dns_provider"); - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/CustomDns.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/CustomDns.php deleted file mode 100644 index 3e16356fdd07..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/CustomDns.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.domains.v1.DnsSettings.CustomDns - */ -class CustomDns extends \Google\Protobuf\Internal\Message -{ - /** - * Required. A list of name servers that store the DNS zone for this domain. Each name - * server is a domain name, with Unicode domain names expressed in - * Punycode format. - * - * Generated from protobuf field repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private $name_servers; - /** - * The list of DS records for this domain, which are used to enable DNSSEC. - * The domain's DNS provider can provide the values to set here. If this - * field is empty, DNSSEC is disabled. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - */ - private $ds_records; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $name_servers - * Required. A list of name servers that store the DNS zone for this domain. Each name - * server is a domain name, with Unicode domain names expressed in - * Punycode format. - * @type array<\Google\Cloud\Domains\V1\DnsSettings\DsRecord>|\Google\Protobuf\Internal\RepeatedField $ds_records - * The list of DS records for this domain, which are used to enable DNSSEC. - * The domain's DNS provider can provide the values to set here. If this - * field is empty, DNSSEC is disabled. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. A list of name servers that store the DNS zone for this domain. Each name - * server is a domain name, with Unicode domain names expressed in - * Punycode format. - * - * Generated from protobuf field repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNameServers() - { - return $this->name_servers; - } - - /** - * Required. A list of name servers that store the DNS zone for this domain. Each name - * server is a domain name, with Unicode domain names expressed in - * Punycode format. - * - * Generated from protobuf field repeated string name_servers = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNameServers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->name_servers = $arr; - - return $this; - } - - /** - * The list of DS records for this domain, which are used to enable DNSSEC. - * The domain's DNS provider can provide the values to set here. If this - * field is empty, DNSSEC is disabled. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDsRecords() - { - return $this->ds_records; - } - - /** - * The list of DS records for this domain, which are used to enable DNSSEC. - * The domain's DNS provider can provide the values to set here. If this - * field is empty, DNSSEC is disabled. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 2; - * @param array<\Google\Cloud\Domains\V1\DnsSettings\DsRecord>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDsRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Domains\V1\DnsSettings\DsRecord::class); - $this->ds_records = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CustomDns::class, \Google\Cloud\Domains\V1\DnsSettings_CustomDns::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord.php deleted file mode 100644 index 0ceb262cbe56..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord.php +++ /dev/null @@ -1,174 +0,0 @@ -google.cloud.domains.v1.DnsSettings.DsRecord - */ -class DsRecord extends \Google\Protobuf\Internal\Message -{ - /** - * The key tag of the record. Must be set in range 0 -- 65535. - * - * Generated from protobuf field int32 key_tag = 1; - */ - protected $key_tag = 0; - /** - * The algorithm used to generate the referenced DNSKEY. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - */ - protected $algorithm = 0; - /** - * The hash function used to generate the digest of the referenced DNSKEY. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - */ - protected $digest_type = 0; - /** - * The digest generated from the referenced DNSKEY. - * - * Generated from protobuf field string digest = 4; - */ - protected $digest = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $key_tag - * The key tag of the record. Must be set in range 0 -- 65535. - * @type int $algorithm - * The algorithm used to generate the referenced DNSKEY. - * @type int $digest_type - * The hash function used to generate the digest of the referenced DNSKEY. - * @type string $digest - * The digest generated from the referenced DNSKEY. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * The key tag of the record. Must be set in range 0 -- 65535. - * - * Generated from protobuf field int32 key_tag = 1; - * @return int - */ - public function getKeyTag() - { - return $this->key_tag; - } - - /** - * The key tag of the record. Must be set in range 0 -- 65535. - * - * Generated from protobuf field int32 key_tag = 1; - * @param int $var - * @return $this - */ - public function setKeyTag($var) - { - GPBUtil::checkInt32($var); - $this->key_tag = $var; - - return $this; - } - - /** - * The algorithm used to generate the referenced DNSKEY. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * @return int - */ - public function getAlgorithm() - { - return $this->algorithm; - } - - /** - * The algorithm used to generate the referenced DNSKEY. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm algorithm = 2; - * @param int $var - * @return $this - */ - public function setAlgorithm($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Domains\V1\DnsSettings\DsRecord\Algorithm::class); - $this->algorithm = $var; - - return $this; - } - - /** - * The hash function used to generate the digest of the referenced DNSKEY. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * @return int - */ - public function getDigestType() - { - return $this->digest_type; - } - - /** - * The hash function used to generate the digest of the referenced DNSKEY. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.DsRecord.DigestType digest_type = 3; - * @param int $var - * @return $this - */ - public function setDigestType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Domains\V1\DnsSettings\DsRecord\DigestType::class); - $this->digest_type = $var; - - return $this; - } - - /** - * The digest generated from the referenced DNSKEY. - * - * Generated from protobuf field string digest = 4; - * @return string - */ - public function getDigest() - { - return $this->digest; - } - - /** - * The digest generated from the referenced DNSKEY. - * - * Generated from protobuf field string digest = 4; - * @param string $var - * @return $this - */ - public function setDigest($var) - { - GPBUtil::checkString($var, True); - $this->digest = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DsRecord::class, \Google\Cloud\Domains\V1\DnsSettings_DsRecord::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord/Algorithm.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord/Algorithm.php deleted file mode 100644 index 7700812be99a..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord/Algorithm.php +++ /dev/null @@ -1,170 +0,0 @@ -google.cloud.domains.v1.DnsSettings.DsRecord.Algorithm - */ -class Algorithm -{ - /** - * The algorithm is unspecified. - * - * Generated from protobuf enum ALGORITHM_UNSPECIFIED = 0; - */ - const ALGORITHM_UNSPECIFIED = 0; - /** - * RSA/MD5. Cannot be used for new deployments. - * - * Generated from protobuf enum RSAMD5 = 1; - */ - const RSAMD5 = 1; - /** - * Diffie-Hellman. Cannot be used for new deployments. - * - * Generated from protobuf enum DH = 2; - */ - const DH = 2; - /** - * DSA/SHA1. Not recommended for new deployments. - * - * Generated from protobuf enum DSA = 3; - */ - const DSA = 3; - /** - * ECC. Not recommended for new deployments. - * - * Generated from protobuf enum ECC = 4; - */ - const ECC = 4; - /** - * RSA/SHA-1. Not recommended for new deployments. - * - * Generated from protobuf enum RSASHA1 = 5; - */ - const RSASHA1 = 5; - /** - * DSA-NSEC3-SHA1. Not recommended for new deployments. - * - * Generated from protobuf enum DSANSEC3SHA1 = 6; - */ - const DSANSEC3SHA1 = 6; - /** - * RSA/SHA1-NSEC3-SHA1. Not recommended for new deployments. - * - * Generated from protobuf enum RSASHA1NSEC3SHA1 = 7; - */ - const RSASHA1NSEC3SHA1 = 7; - /** - * RSA/SHA-256. - * - * Generated from protobuf enum RSASHA256 = 8; - */ - const RSASHA256 = 8; - /** - * RSA/SHA-512. - * - * Generated from protobuf enum RSASHA512 = 10; - */ - const RSASHA512 = 10; - /** - * GOST R 34.10-2001. - * - * Generated from protobuf enum ECCGOST = 12; - */ - const ECCGOST = 12; - /** - * ECDSA Curve P-256 with SHA-256. - * - * Generated from protobuf enum ECDSAP256SHA256 = 13; - */ - const ECDSAP256SHA256 = 13; - /** - * ECDSA Curve P-384 with SHA-384. - * - * Generated from protobuf enum ECDSAP384SHA384 = 14; - */ - const ECDSAP384SHA384 = 14; - /** - * Ed25519. - * - * Generated from protobuf enum ED25519 = 15; - */ - const ED25519 = 15; - /** - * Ed448. - * - * Generated from protobuf enum ED448 = 16; - */ - const ED448 = 16; - /** - * Reserved for Indirect Keys. Cannot be used for new deployments. - * - * Generated from protobuf enum INDIRECT = 252; - */ - const INDIRECT = 252; - /** - * Private algorithm. Cannot be used for new deployments. - * - * Generated from protobuf enum PRIVATEDNS = 253; - */ - const PRIVATEDNS = 253; - /** - * Private algorithm OID. Cannot be used for new deployments. - * - * Generated from protobuf enum PRIVATEOID = 254; - */ - const PRIVATEOID = 254; - - private static $valueToName = [ - self::ALGORITHM_UNSPECIFIED => 'ALGORITHM_UNSPECIFIED', - self::RSAMD5 => 'RSAMD5', - self::DH => 'DH', - self::DSA => 'DSA', - self::ECC => 'ECC', - self::RSASHA1 => 'RSASHA1', - self::DSANSEC3SHA1 => 'DSANSEC3SHA1', - self::RSASHA1NSEC3SHA1 => 'RSASHA1NSEC3SHA1', - self::RSASHA256 => 'RSASHA256', - self::RSASHA512 => 'RSASHA512', - self::ECCGOST => 'ECCGOST', - self::ECDSAP256SHA256 => 'ECDSAP256SHA256', - self::ECDSAP384SHA384 => 'ECDSAP384SHA384', - self::ED25519 => 'ED25519', - self::ED448 => 'ED448', - self::INDIRECT => 'INDIRECT', - self::PRIVATEDNS => 'PRIVATEDNS', - self::PRIVATEOID => 'PRIVATEOID', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Algorithm::class, \Google\Cloud\Domains\V1\DnsSettings_DsRecord_Algorithm::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord/DigestType.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord/DigestType.php deleted file mode 100644 index 481a0f844ac9..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsRecord/DigestType.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.domains.v1.DnsSettings.DsRecord.DigestType - */ -class DigestType -{ - /** - * The DigestType is unspecified. - * - * Generated from protobuf enum DIGEST_TYPE_UNSPECIFIED = 0; - */ - const DIGEST_TYPE_UNSPECIFIED = 0; - /** - * SHA-1. Not recommended for new deployments. - * - * Generated from protobuf enum SHA1 = 1; - */ - const SHA1 = 1; - /** - * SHA-256. - * - * Generated from protobuf enum SHA256 = 2; - */ - const SHA256 = 2; - /** - * GOST R 34.11-94. - * - * Generated from protobuf enum GOST3411 = 3; - */ - const GOST3411 = 3; - /** - * SHA-384. - * - * Generated from protobuf enum SHA384 = 4; - */ - const SHA384 = 4; - - private static $valueToName = [ - self::DIGEST_TYPE_UNSPECIFIED => 'DIGEST_TYPE_UNSPECIFIED', - self::SHA1 => 'SHA1', - self::SHA256 => 'SHA256', - self::GOST3411 => 'GOST3411', - self::SHA384 => 'SHA384', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DigestType::class, \Google\Cloud\Domains\V1\DnsSettings_DsRecord_DigestType::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsState.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsState.php deleted file mode 100644 index b6e99048cc1c..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/DsState.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.domains.v1.DnsSettings.DsState - */ -class DsState -{ - /** - * DS state is unspecified. - * - * Generated from protobuf enum DS_STATE_UNSPECIFIED = 0; - */ - const DS_STATE_UNSPECIFIED = 0; - /** - * DNSSEC is disabled for this domain. No DS records for this domain are - * published in the parent DNS zone. - * - * Generated from protobuf enum DS_RECORDS_UNPUBLISHED = 1; - */ - const DS_RECORDS_UNPUBLISHED = 1; - /** - * DNSSEC is enabled for this domain. Appropriate DS records for this domain - * are published in the parent DNS zone. This option is valid only if the - * DNS zone referenced in the `Registration`'s `dns_provider` field is - * already DNSSEC-signed. - * - * Generated from protobuf enum DS_RECORDS_PUBLISHED = 2; - */ - const DS_RECORDS_PUBLISHED = 2; - - private static $valueToName = [ - self::DS_STATE_UNSPECIFIED => 'DS_STATE_UNSPECIFIED', - self::DS_RECORDS_UNPUBLISHED => 'DS_RECORDS_UNPUBLISHED', - self::DS_RECORDS_PUBLISHED => 'DS_RECORDS_PUBLISHED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(DsState::class, \Google\Cloud\Domains\V1\DnsSettings_DsState::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/GlueRecord.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/GlueRecord.php deleted file mode 100644 index 26cb8a77651b..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/GlueRecord.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.domains.v1.DnsSettings.GlueRecord - */ -class GlueRecord extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Domain name of the host in Punycode format. - * - * Generated from protobuf field string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $host_name = ''; - /** - * List of IPv4 addresses corresponding to this host in the standard decimal - * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and - * `ipv6_address` must be set. - * - * Generated from protobuf field repeated string ipv4_addresses = 2; - */ - private $ipv4_addresses; - /** - * List of IPv6 addresses corresponding to this host in the standard - * hexadecimal format (e.g. `2001:db8::`). At least one of - * `ipv4_address` and `ipv6_address` must be set. - * - * Generated from protobuf field repeated string ipv6_addresses = 3; - */ - private $ipv6_addresses; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $host_name - * Required. Domain name of the host in Punycode format. - * @type array|\Google\Protobuf\Internal\RepeatedField $ipv4_addresses - * List of IPv4 addresses corresponding to this host in the standard decimal - * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and - * `ipv6_address` must be set. - * @type array|\Google\Protobuf\Internal\RepeatedField $ipv6_addresses - * List of IPv6 addresses corresponding to this host in the standard - * hexadecimal format (e.g. `2001:db8::`). At least one of - * `ipv4_address` and `ipv6_address` must be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. Domain name of the host in Punycode format. - * - * Generated from protobuf field string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getHostName() - { - return $this->host_name; - } - - /** - * Required. Domain name of the host in Punycode format. - * - * Generated from protobuf field string host_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setHostName($var) - { - GPBUtil::checkString($var, True); - $this->host_name = $var; - - return $this; - } - - /** - * List of IPv4 addresses corresponding to this host in the standard decimal - * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and - * `ipv6_address` must be set. - * - * Generated from protobuf field repeated string ipv4_addresses = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIpv4Addresses() - { - return $this->ipv4_addresses; - } - - /** - * List of IPv4 addresses corresponding to this host in the standard decimal - * format (e.g. `198.51.100.1`). At least one of `ipv4_address` and - * `ipv6_address` must be set. - * - * Generated from protobuf field repeated string ipv4_addresses = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIpv4Addresses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ipv4_addresses = $arr; - - return $this; - } - - /** - * List of IPv6 addresses corresponding to this host in the standard - * hexadecimal format (e.g. `2001:db8::`). At least one of - * `ipv4_address` and `ipv6_address` must be set. - * - * Generated from protobuf field repeated string ipv6_addresses = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIpv6Addresses() - { - return $this->ipv6_addresses; - } - - /** - * List of IPv6 addresses corresponding to this host in the standard - * hexadecimal format (e.g. `2001:db8::`). At least one of - * `ipv4_address` and `ipv6_address` must be set. - * - * Generated from protobuf field repeated string ipv6_addresses = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIpv6Addresses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ipv6_addresses = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GlueRecord::class, \Google\Cloud\Domains\V1\DnsSettings_GlueRecord::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/GoogleDomainsDns.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/GoogleDomainsDns.php deleted file mode 100644 index 2a6f06a4321c..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DnsSettings/GoogleDomainsDns.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.domains.v1.DnsSettings.GoogleDomainsDns - */ -class GoogleDomainsDns extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. A list of name servers that store the DNS zone for this domain. Each name - * server is a domain name, with Unicode domain names expressed in - * Punycode format. This field is automatically populated with the name - * servers assigned to the Google Domains DNS zone. - * - * Generated from protobuf field repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $name_servers; - /** - * Required. The state of DS records for this domain. Used to enable or disable - * automatic DNSSEC. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $ds_state = 0; - /** - * Output only. The list of DS records published for this domain. The list is - * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`, - * otherwise it remains empty. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $ds_records; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $name_servers - * Output only. A list of name servers that store the DNS zone for this domain. Each name - * server is a domain name, with Unicode domain names expressed in - * Punycode format. This field is automatically populated with the name - * servers assigned to the Google Domains DNS zone. - * @type int $ds_state - * Required. The state of DS records for this domain. Used to enable or disable - * automatic DNSSEC. - * @type array<\Google\Cloud\Domains\V1\DnsSettings\DsRecord>|\Google\Protobuf\Internal\RepeatedField $ds_records - * Output only. The list of DS records published for this domain. The list is - * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`, - * otherwise it remains empty. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Output only. A list of name servers that store the DNS zone for this domain. Each name - * server is a domain name, with Unicode domain names expressed in - * Punycode format. This field is automatically populated with the name - * servers assigned to the Google Domains DNS zone. - * - * Generated from protobuf field repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNameServers() - { - return $this->name_servers; - } - - /** - * Output only. A list of name servers that store the DNS zone for this domain. Each name - * server is a domain name, with Unicode domain names expressed in - * Punycode format. This field is automatically populated with the name - * servers assigned to the Google Domains DNS zone. - * - * Generated from protobuf field repeated string name_servers = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNameServers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->name_servers = $arr; - - return $this; - } - - /** - * Required. The state of DS records for this domain. Used to enable or disable - * automatic DNSSEC. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getDsState() - { - return $this->ds_state; - } - - /** - * Required. The state of DS records for this domain. Used to enable or disable - * automatic DNSSEC. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings.DsState ds_state = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setDsState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Domains\V1\DnsSettings\DsState::class); - $this->ds_state = $var; - - return $this; - } - - /** - * Output only. The list of DS records published for this domain. The list is - * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`, - * otherwise it remains empty. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDsRecords() - { - return $this->ds_records; - } - - /** - * Output only. The list of DS records published for this domain. The list is - * automatically populated when `ds_state` is `DS_RECORDS_PUBLISHED`, - * otherwise it remains empty. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DnsSettings.DsRecord ds_records = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Domains\V1\DnsSettings\DsRecord>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDsRecords($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Domains\V1\DnsSettings\DsRecord::class); - $this->ds_records = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(GoogleDomainsDns::class, \Google\Cloud\Domains\V1\DnsSettings_GoogleDomainsDns::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DomainNotice.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DomainNotice.php deleted file mode 100644 index e4915509f035..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/DomainNotice.php +++ /dev/null @@ -1,58 +0,0 @@ -google.cloud.domains.v1.DomainNotice - */ -class DomainNotice -{ - /** - * The notice is undefined. - * - * Generated from protobuf enum DOMAIN_NOTICE_UNSPECIFIED = 0; - */ - const DOMAIN_NOTICE_UNSPECIFIED = 0; - /** - * Indicates that the domain is preloaded on the HTTP Strict Transport - * Security list in browsers. Serving a website on such domain requires - * an SSL certificate. For details, see - * [how to get an SSL - * certificate](https://support.google.com/domains/answer/7638036). - * - * Generated from protobuf enum HSTS_PRELOADED = 1; - */ - const HSTS_PRELOADED = 1; - - private static $valueToName = [ - self::DOMAIN_NOTICE_UNSPECIFIED => 'DOMAIN_NOTICE_UNSPECIFIED', - self::HSTS_PRELOADED => 'HSTS_PRELOADED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/Domains/v1/proto/src/Google/Cloud/Domains/V1/ExportRegistrationRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ExportRegistrationRequest.php deleted file mode 100644 index 0069693a79d5..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ExportRegistrationRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.domains.v1.ExportRegistrationRequest - */ -class ExportRegistrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `Registration` to export, - * in the format `projects/*/locations/*/registrations/*`. - * - * 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 `Registration` to export, - * in the format `projects/*/locations/*/registrations/*`. Please see - * {@see DomainsClient::registrationName()} for help formatting this field. - * - * @return \Google\Cloud\Domains\V1\ExportRegistrationRequest - * - * @experimental - */ - public static function 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 `Registration` to export, - * in the format `projects/*/locations/*/registrations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `Registration` to export, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `Registration` to export, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/GetRegistrationRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/GetRegistrationRequest.php deleted file mode 100644 index 5f9177d359f5..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/GetRegistrationRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.domains.v1.GetRegistrationRequest - */ -class GetRegistrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `Registration` to get, in the format - * `projects/*/locations/*/registrations/*`. - * - * 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 `Registration` to get, in the format - * `projects/*/locations/*/registrations/*`. Please see - * {@see DomainsClient::registrationName()} for help formatting this field. - * - * @return \Google\Cloud\Domains\V1\GetRegistrationRequest - * - * @experimental - */ - public static function 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 `Registration` to get, in the format - * `projects/*/locations/*/registrations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `Registration` to get, in the format - * `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the `Registration` to get, in the format - * `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ListRegistrationsRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ListRegistrationsRequest.php deleted file mode 100644 index e6ab9c843916..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ListRegistrationsRequest.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.domains.v1.ListRegistrationsRequest - */ -class ListRegistrationsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The project and location from which to list `Registration`s, specified in - * the format `projects/*/locations/*`. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Maximum number of results to return. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * When set to the `next_page_token` from a prior response, provides the next - * page of results. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filter expression to restrict the `Registration`s returned. - * The expression must specify the field name, a comparison operator, and the - * value that you want to use for filtering. The value must be a string, a - * number, a boolean, or an enum value. The comparison operator should be one - * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches. - * For example, to filter to a specific domain name, use an expression like - * `domainName="example.com"`. You can also check for the existence of a - * field; for example, to find domains using custom DNS settings, use an - * expression like `dnsSettings.customDns:*`. - * You can also create compound filters by combining expressions with the - * `AND` and `OR` operators. For example, to find domains that are suspended - * or have specific issues flagged, use an expression like - * `(state=SUSPENDED) OR (issue:*)`. - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The project and location from which to list `Registration`s, specified in - * the format `projects/*/locations/*`. Please see - * {@see DomainsClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Domains\V1\ListRegistrationsRequest - * - * @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 from which to list `Registration`s, specified in - * the format `projects/*/locations/*`. - * @type int $page_size - * Maximum number of results to return. - * @type string $page_token - * When set to the `next_page_token` from a prior response, provides the next - * page of results. - * @type string $filter - * Filter expression to restrict the `Registration`s returned. - * The expression must specify the field name, a comparison operator, and the - * value that you want to use for filtering. The value must be a string, a - * number, a boolean, or an enum value. The comparison operator should be one - * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches. - * For example, to filter to a specific domain name, use an expression like - * `domainName="example.com"`. You can also check for the existence of a - * field; for example, to find domains using custom DNS settings, use an - * expression like `dnsSettings.customDns:*`. - * You can also create compound filters by combining expressions with the - * `AND` and `OR` operators. For example, to find domains that are suspended - * or have specific issues flagged, use an expression like - * `(state=SUSPENDED) OR (issue:*)`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The project and location from which to list `Registration`s, specified 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 project and location from which to list `Registration`s, specified 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; - } - - /** - * Maximum number of results to return. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Maximum number of results 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; - } - - /** - * When set to the `next_page_token` from a prior response, provides the next - * page of results. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * When set to the `next_page_token` from a prior response, provides the next - * page of results. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filter expression to restrict the `Registration`s returned. - * The expression must specify the field name, a comparison operator, and the - * value that you want to use for filtering. The value must be a string, a - * number, a boolean, or an enum value. The comparison operator should be one - * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches. - * For example, to filter to a specific domain name, use an expression like - * `domainName="example.com"`. You can also check for the existence of a - * field; for example, to find domains using custom DNS settings, use an - * expression like `dnsSettings.customDns:*`. - * You can also create compound filters by combining expressions with the - * `AND` and `OR` operators. For example, to find domains that are suspended - * or have specific issues flagged, use an expression like - * `(state=SUSPENDED) OR (issue:*)`. - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter expression to restrict the `Registration`s returned. - * The expression must specify the field name, a comparison operator, and the - * value that you want to use for filtering. The value must be a string, a - * number, a boolean, or an enum value. The comparison operator should be one - * of =, !=, >, <, >=, <=, or : for prefix or wildcard matches. - * For example, to filter to a specific domain name, use an expression like - * `domainName="example.com"`. You can also check for the existence of a - * field; for example, to find domains using custom DNS settings, use an - * expression like `dnsSettings.customDns:*`. - * You can also create compound filters by combining expressions with the - * `AND` and `OR` operators. For example, to find domains that are suspended - * or have specific issues flagged, use an expression like - * `(state=SUSPENDED) OR (issue:*)`. - * - * 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/Domains/v1/proto/src/Google/Cloud/Domains/V1/ListRegistrationsResponse.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ListRegistrationsResponse.php deleted file mode 100644 index 4c81ffab6fc7..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ListRegistrationsResponse.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.domains.v1.ListRegistrationsResponse - */ -class ListRegistrationsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * A list of `Registration`s. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.Registration registrations = 1; - */ - private $registrations; - /** - * When present, there are more results to retrieve. Set `page_token` to this - * value on a subsequent call to get 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\Domains\V1\Registration>|\Google\Protobuf\Internal\RepeatedField $registrations - * A list of `Registration`s. - * @type string $next_page_token - * When present, there are more results to retrieve. Set `page_token` to this - * value on a subsequent call to get the next page of results. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * A list of `Registration`s. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.Registration registrations = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRegistrations() - { - return $this->registrations; - } - - /** - * A list of `Registration`s. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.Registration registrations = 1; - * @param array<\Google\Cloud\Domains\V1\Registration>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRegistrations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Domains\V1\Registration::class); - $this->registrations = $arr; - - return $this; - } - - /** - * When present, there are more results to retrieve. Set `page_token` to this - * value on a subsequent call to get the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * When present, there are more results to retrieve. Set `page_token` to this - * value on a subsequent call to get 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/Domains/v1/proto/src/Google/Cloud/Domains/V1/ManagementSettings.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ManagementSettings.php deleted file mode 100644 index ea125293a534..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ManagementSettings.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.domains.v1.ManagementSettings - */ -class ManagementSettings extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The renewal method for this `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $renewal_method = 0; - /** - * Controls whether the domain can be transferred to another registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - */ - protected $transfer_lock_state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $renewal_method - * Output only. The renewal method for this `Registration`. - * @type int $transfer_lock_state - * Controls whether the domain can be transferred to another registrar. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The renewal method for this `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getRenewalMethod() - { - return $this->renewal_method; - } - - /** - * Output only. The renewal method for this `Registration`. - * - * Generated from protobuf field .google.cloud.domains.v1.ManagementSettings.RenewalMethod renewal_method = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setRenewalMethod($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Domains\V1\ManagementSettings\RenewalMethod::class); - $this->renewal_method = $var; - - return $this; - } - - /** - * Controls whether the domain can be transferred to another registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * @return int - */ - public function getTransferLockState() - { - return $this->transfer_lock_state; - } - - /** - * Controls whether the domain can be transferred to another registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * @param int $var - * @return $this - */ - public function setTransferLockState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Domains\V1\TransferLockState::class); - $this->transfer_lock_state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ManagementSettings/RenewalMethod.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ManagementSettings/RenewalMethod.php deleted file mode 100644 index 225106082b61..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ManagementSettings/RenewalMethod.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.domains.v1.ManagementSettings.RenewalMethod - */ -class RenewalMethod -{ - /** - * The renewal method is undefined. - * - * Generated from protobuf enum RENEWAL_METHOD_UNSPECIFIED = 0; - */ - const RENEWAL_METHOD_UNSPECIFIED = 0; - /** - * The domain is automatically renewed each year . - * To disable automatic renewals, delete the resource by calling - * `DeleteRegistration` or export it by calling `ExportRegistration`. - * - * Generated from protobuf enum AUTOMATIC_RENEWAL = 1; - */ - const AUTOMATIC_RENEWAL = 1; - /** - * The domain must be explicitly renewed each year before its - * `expire_time`. This option is only available when the `Registration` - * is in state `EXPORTED`. - * To manage the domain's current billing and - * renewal settings, go to [Google Domains](https://domains.google/). - * - * Generated from protobuf enum MANUAL_RENEWAL = 2; - */ - const MANUAL_RENEWAL = 2; - - private static $valueToName = [ - self::RENEWAL_METHOD_UNSPECIFIED => 'RENEWAL_METHOD_UNSPECIFIED', - self::AUTOMATIC_RENEWAL => 'AUTOMATIC_RENEWAL', - self::MANUAL_RENEWAL => 'MANUAL_RENEWAL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RenewalMethod::class, \Google\Cloud\Domains\V1\ManagementSettings_RenewalMethod::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/OperationMetadata.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/OperationMetadata.php deleted file mode 100644 index 3e25bda1a7bf..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/OperationMetadata.php +++ /dev/null @@ -1,257 +0,0 @@ -google.cloud.domains.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 = ''; - /** - * API version used to start the operation. - * - * Generated from protobuf field string api_version = 6; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * The time the operation finished running. - * @type string $target - * Server-defined resource path for the target of the operation. - * @type string $verb - * Name of the verb executed by the operation. - * @type string $status_detail - * Human-readable status of the operation, if any. - * @type string $api_version - * API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::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; - } - - /** - * API version used to start the operation. - * - * Generated from protobuf field string api_version = 6; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * API version used to start the operation. - * - * Generated from protobuf field string api_version = 6; - * @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/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterDomainRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterDomainRequest.php deleted file mode 100644 index 0fb96c0927dc..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterDomainRequest.php +++ /dev/null @@ -1,310 +0,0 @@ -google.cloud.domains.v1.RegisterDomainRequest - */ -class RegisterDomainRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the `Registration`. Must be 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 complete `Registration` resource to be created. - * - * Generated from protobuf field .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $registration = null; - /** - * The list of domain notices that you acknowledge. Call - * `RetrieveRegisterParameters` to see the notices that need acknowledgement. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - */ - private $domain_notices; - /** - * The list of contact notices that the caller acknowledges. The notices - * needed here depend on the values specified in - * `registration.contact_settings`. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - */ - private $contact_notices; - /** - * Required. Yearly price to register or renew the domain. - * The value that should be put here can be obtained from - * RetrieveRegisterParameters or SearchDomains calls. - * - * Generated from protobuf field .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $yearly_price = null; - /** - * When true, only validation is performed, without actually registering - * the domain. Follows: - * https://cloud.google.com/apis/design/design_patterns#request_validation - * - * Generated from protobuf field bool validate_only = 6; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent resource of the `Registration`. Must be in the - * format `projects/*/locations/*`. Please see - * {@see DomainsClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Domains\V1\Registration $registration Required. The complete `Registration` resource to be created. - * @param \Google\Type\Money $yearlyPrice Required. Yearly price to register or renew the domain. - * The value that should be put here can be obtained from - * RetrieveRegisterParameters or SearchDomains calls. - * - * @return \Google\Cloud\Domains\V1\RegisterDomainRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Domains\V1\Registration $registration, \Google\Type\Money $yearlyPrice): self - { - return (new self()) - ->setParent($parent) - ->setRegistration($registration) - ->setYearlyPrice($yearlyPrice); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the `Registration`. Must be in the - * format `projects/*/locations/*`. - * @type \Google\Cloud\Domains\V1\Registration $registration - * Required. The complete `Registration` resource to be created. - * @type array|\Google\Protobuf\Internal\RepeatedField $domain_notices - * The list of domain notices that you acknowledge. Call - * `RetrieveRegisterParameters` to see the notices that need acknowledgement. - * @type array|\Google\Protobuf\Internal\RepeatedField $contact_notices - * The list of contact notices that the caller acknowledges. The notices - * needed here depend on the values specified in - * `registration.contact_settings`. - * @type \Google\Type\Money $yearly_price - * Required. Yearly price to register or renew the domain. - * The value that should be put here can be obtained from - * RetrieveRegisterParameters or SearchDomains calls. - * @type bool $validate_only - * When true, only validation is performed, without actually registering - * the domain. Follows: - * https://cloud.google.com/apis/design/design_patterns#request_validation - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the `Registration`. Must be 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 parent resource of the `Registration`. Must be 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 complete `Registration` resource to be created. - * - * Generated from protobuf field .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Domains\V1\Registration|null - */ - public function getRegistration() - { - return $this->registration; - } - - public function hasRegistration() - { - return isset($this->registration); - } - - public function clearRegistration() - { - unset($this->registration); - } - - /** - * Required. The complete `Registration` resource to be created. - * - * Generated from protobuf field .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Domains\V1\Registration $var - * @return $this - */ - public function setRegistration($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\Registration::class); - $this->registration = $var; - - return $this; - } - - /** - * The list of domain notices that you acknowledge. Call - * `RetrieveRegisterParameters` to see the notices that need acknowledgement. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDomainNotices() - { - return $this->domain_notices; - } - - /** - * The list of domain notices that you acknowledge. Call - * `RetrieveRegisterParameters` to see the notices that need acknowledgement. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DomainNotice domain_notices = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDomainNotices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Domains\V1\DomainNotice::class); - $this->domain_notices = $arr; - - return $this; - } - - /** - * The list of contact notices that the caller acknowledges. The notices - * needed here depend on the values specified in - * `registration.contact_settings`. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContactNotices() - { - return $this->contact_notices; - } - - /** - * The list of contact notices that the caller acknowledges. The notices - * needed here depend on the values specified in - * `registration.contact_settings`. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactNotice contact_notices = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContactNotices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Domains\V1\ContactNotice::class); - $this->contact_notices = $arr; - - return $this; - } - - /** - * Required. Yearly price to register or renew the domain. - * The value that should be put here can be obtained from - * RetrieveRegisterParameters or SearchDomains calls. - * - * Generated from protobuf field .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\Money|null - */ - public function getYearlyPrice() - { - return $this->yearly_price; - } - - public function hasYearlyPrice() - { - return isset($this->yearly_price); - } - - public function clearYearlyPrice() - { - unset($this->yearly_price); - } - - /** - * Required. Yearly price to register or renew the domain. - * The value that should be put here can be obtained from - * RetrieveRegisterParameters or SearchDomains calls. - * - * Generated from protobuf field .google.type.Money yearly_price = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\Money $var - * @return $this - */ - public function setYearlyPrice($var) - { - GPBUtil::checkMessage($var, \Google\Type\Money::class); - $this->yearly_price = $var; - - return $this; - } - - /** - * When true, only validation is performed, without actually registering - * the domain. Follows: - * https://cloud.google.com/apis/design/design_patterns#request_validation - * - * Generated from protobuf field bool validate_only = 6; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * When true, only validation is performed, without actually registering - * the domain. Follows: - * https://cloud.google.com/apis/design/design_patterns#request_validation - * - * Generated from protobuf field bool validate_only = 6; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterParameters.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterParameters.php deleted file mode 100644 index a9eb264623d4..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterParameters.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.domains.v1.RegisterParameters - */ -class RegisterParameters extends \Google\Protobuf\Internal\Message -{ - /** - * The domain name. Unicode domain names are expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1; - */ - protected $domain_name = ''; - /** - * Indicates whether the domain is available for registration. This value is - * accurate when obtained by calling `RetrieveRegisterParameters`, but is - * approximate when obtained by calling `SearchDomains`. - * - * Generated from protobuf field .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - */ - protected $availability = 0; - /** - * Contact privacy options that the domain supports. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - */ - private $supported_privacy; - /** - * Notices about special properties of the domain. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - */ - private $domain_notices; - /** - * Price to register or renew the domain for one year. - * - * Generated from protobuf field .google.type.Money yearly_price = 5; - */ - protected $yearly_price = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $domain_name - * The domain name. Unicode domain names are expressed in Punycode format. - * @type int $availability - * Indicates whether the domain is available for registration. This value is - * accurate when obtained by calling `RetrieveRegisterParameters`, but is - * approximate when obtained by calling `SearchDomains`. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_privacy - * Contact privacy options that the domain supports. - * @type array|\Google\Protobuf\Internal\RepeatedField $domain_notices - * Notices about special properties of the domain. - * @type \Google\Type\Money $yearly_price - * Price to register or renew the domain for one year. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * The domain name. Unicode domain names are expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1; - * @return string - */ - public function getDomainName() - { - return $this->domain_name; - } - - /** - * The domain name. Unicode domain names are expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1; - * @param string $var - * @return $this - */ - public function setDomainName($var) - { - GPBUtil::checkString($var, True); - $this->domain_name = $var; - - return $this; - } - - /** - * Indicates whether the domain is available for registration. This value is - * accurate when obtained by calling `RetrieveRegisterParameters`, but is - * approximate when obtained by calling `SearchDomains`. - * - * Generated from protobuf field .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * @return int - */ - public function getAvailability() - { - return $this->availability; - } - - /** - * Indicates whether the domain is available for registration. This value is - * accurate when obtained by calling `RetrieveRegisterParameters`, but is - * approximate when obtained by calling `SearchDomains`. - * - * Generated from protobuf field .google.cloud.domains.v1.RegisterParameters.Availability availability = 2; - * @param int $var - * @return $this - */ - public function setAvailability($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Domains\V1\RegisterParameters\Availability::class); - $this->availability = $var; - - return $this; - } - - /** - * Contact privacy options that the domain supports. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedPrivacy() - { - return $this->supported_privacy; - } - - /** - * Contact privacy options that the domain supports. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedPrivacy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Domains\V1\ContactPrivacy::class); - $this->supported_privacy = $arr; - - return $this; - } - - /** - * Notices about special properties of the domain. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDomainNotices() - { - return $this->domain_notices; - } - - /** - * Notices about special properties of the domain. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.DomainNotice domain_notices = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDomainNotices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Domains\V1\DomainNotice::class); - $this->domain_notices = $arr; - - return $this; - } - - /** - * Price to register or renew the domain for one year. - * - * Generated from protobuf field .google.type.Money yearly_price = 5; - * @return \Google\Type\Money|null - */ - public function getYearlyPrice() - { - return $this->yearly_price; - } - - public function hasYearlyPrice() - { - return isset($this->yearly_price); - } - - public function clearYearlyPrice() - { - unset($this->yearly_price); - } - - /** - * Price to register or renew the domain for one year. - * - * Generated from protobuf field .google.type.Money yearly_price = 5; - * @param \Google\Type\Money $var - * @return $this - */ - public function setYearlyPrice($var) - { - GPBUtil::checkMessage($var, \Google\Type\Money::class); - $this->yearly_price = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterParameters/Availability.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterParameters/Availability.php deleted file mode 100644 index 4490f29fb5c9..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RegisterParameters/Availability.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.domains.v1.RegisterParameters.Availability - */ -class Availability -{ - /** - * The availability is unspecified. - * - * Generated from protobuf enum AVAILABILITY_UNSPECIFIED = 0; - */ - const AVAILABILITY_UNSPECIFIED = 0; - /** - * The domain is available for registration. - * - * Generated from protobuf enum AVAILABLE = 1; - */ - const AVAILABLE = 1; - /** - * The domain is not available for registration. Generally this means it is - * already registered to another party. - * - * Generated from protobuf enum UNAVAILABLE = 2; - */ - const UNAVAILABLE = 2; - /** - * The domain is not currently supported by Cloud Domains, but may - * be available elsewhere. - * - * Generated from protobuf enum UNSUPPORTED = 3; - */ - const UNSUPPORTED = 3; - /** - * Cloud Domains is unable to determine domain availability, generally - * due to system maintenance at the domain name registry. - * - * Generated from protobuf enum UNKNOWN = 4; - */ - const UNKNOWN = 4; - - private static $valueToName = [ - self::AVAILABILITY_UNSPECIFIED => 'AVAILABILITY_UNSPECIFIED', - self::AVAILABLE => 'AVAILABLE', - self::UNAVAILABLE => 'UNAVAILABLE', - self::UNSUPPORTED => 'UNSUPPORTED', - 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(Availability::class, \Google\Cloud\Domains\V1\RegisterParameters_Availability::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration.php deleted file mode 100644 index 8370bad24e18..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration.php +++ /dev/null @@ -1,573 +0,0 @@ -google.cloud.domains.v1.Registration - */ -class Registration extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Name of the `Registration` resource, in the format - * `projects/*/locations/*/registrations/`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - protected $domain_name = ''; - /** - * Output only. The creation timestamp of the `Registration` resource. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The expiration timestamp of the `Registration`. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $expire_time = null; - /** - * Output only. The state of the `Registration` - * - * Generated from protobuf field .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The set of issues with the `Registration` that require attention. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $issues; - /** - * Set of labels associated with the `Registration`. - * - * Generated from protobuf field map labels = 9; - */ - private $labels; - /** - * Settings for management of the `Registration`, including renewal, billing, - * and transfer. You cannot update these with the `UpdateRegistration` - * method. To update these settings, use the `ConfigureManagementSettings` - * method. - * - * Generated from protobuf field .google.cloud.domains.v1.ManagementSettings management_settings = 10; - */ - protected $management_settings = null; - /** - * Settings controlling the DNS configuration of the `Registration`. You - * cannot update these with the `UpdateRegistration` method. To update these - * settings, use the `ConfigureDnsSettings` method. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings dns_settings = 11; - */ - protected $dns_settings = null; - /** - * Required. Settings for contact information linked to the `Registration`. You cannot - * update these with the `UpdateRegistration` method. To update these - * settings, use the `ConfigureContactSettings` method. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $contact_settings = null; - /** - * Output only. Pending contact settings for the `Registration`. Updates to the - * `contact_settings` field that change its `registrant_contact` or `privacy` - * fields require email confirmation by the `registrant_contact` - * before taking effect. This field is set only if there are pending updates - * to the `contact_settings` that have not been confirmed. To confirm the - * changes, the `registrant_contact` must follow the instructions in the - * email they receive. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $pending_contact_settings = null; - /** - * Output only. Set of options for the `contact_settings.privacy` field that this - * `Registration` supports. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $supported_privacy; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. Name of the `Registration` resource, in the format - * `projects/*/locations/*/registrations/`. - * @type string $domain_name - * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation timestamp of the `Registration` resource. - * @type \Google\Protobuf\Timestamp $expire_time - * Output only. The expiration timestamp of the `Registration`. - * @type int $state - * Output only. The state of the `Registration` - * @type array|\Google\Protobuf\Internal\RepeatedField $issues - * Output only. The set of issues with the `Registration` that require attention. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Set of labels associated with the `Registration`. - * @type \Google\Cloud\Domains\V1\ManagementSettings $management_settings - * Settings for management of the `Registration`, including renewal, billing, - * and transfer. You cannot update these with the `UpdateRegistration` - * method. To update these settings, use the `ConfigureManagementSettings` - * method. - * @type \Google\Cloud\Domains\V1\DnsSettings $dns_settings - * Settings controlling the DNS configuration of the `Registration`. You - * cannot update these with the `UpdateRegistration` method. To update these - * settings, use the `ConfigureDnsSettings` method. - * @type \Google\Cloud\Domains\V1\ContactSettings $contact_settings - * Required. Settings for contact information linked to the `Registration`. You cannot - * update these with the `UpdateRegistration` method. To update these - * settings, use the `ConfigureContactSettings` method. - * @type \Google\Cloud\Domains\V1\ContactSettings $pending_contact_settings - * Output only. Pending contact settings for the `Registration`. Updates to the - * `contact_settings` field that change its `registrant_contact` or `privacy` - * fields require email confirmation by the `registrant_contact` - * before taking effect. This field is set only if there are pending updates - * to the `contact_settings` that have not been confirmed. To confirm the - * changes, the `registrant_contact` must follow the instructions in the - * email they receive. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_privacy - * Output only. Set of options for the `contact_settings.privacy` field that this - * `Registration` supports. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Name of the `Registration` resource, in the format - * `projects/*/locations/*/registrations/`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. Name of the `Registration` resource, in the format - * `projects/*/locations/*/registrations/`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return string - */ - public function getDomainName() - { - return $this->domain_name; - } - - /** - * Required. Immutable. The domain name. Unicode domain names must be expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param string $var - * @return $this - */ - public function setDomainName($var) - { - GPBUtil::checkString($var, True); - $this->domain_name = $var; - - return $this; - } - - /** - * Output only. The creation timestamp of the `Registration` resource. - * - * 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 creation timestamp of the `Registration` resource. - * - * 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 expiration timestamp of the `Registration`. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 6 [(.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 expiration timestamp of the `Registration`. - * - * Generated from protobuf field .google.protobuf.Timestamp expire_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setExpireTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->expire_time = $var; - - return $this; - } - - /** - * Output only. The state of the `Registration` - * - * Generated from protobuf field .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The state of the `Registration` - * - * Generated from protobuf field .google.cloud.domains.v1.Registration.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Domains\V1\Registration\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The set of issues with the `Registration` that require attention. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIssues() - { - return $this->issues; - } - - /** - * Output only. The set of issues with the `Registration` that require attention. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.Registration.Issue issues = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIssues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Domains\V1\Registration\Issue::class); - $this->issues = $arr; - - return $this; - } - - /** - * Set of labels associated with the `Registration`. - * - * Generated from protobuf field map labels = 9; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Set of labels associated with the `Registration`. - * - * Generated from protobuf field map labels = 9; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Settings for management of the `Registration`, including renewal, billing, - * and transfer. You cannot update these with the `UpdateRegistration` - * method. To update these settings, use the `ConfigureManagementSettings` - * method. - * - * Generated from protobuf field .google.cloud.domains.v1.ManagementSettings management_settings = 10; - * @return \Google\Cloud\Domains\V1\ManagementSettings|null - */ - public function getManagementSettings() - { - return $this->management_settings; - } - - public function hasManagementSettings() - { - return isset($this->management_settings); - } - - public function clearManagementSettings() - { - unset($this->management_settings); - } - - /** - * Settings for management of the `Registration`, including renewal, billing, - * and transfer. You cannot update these with the `UpdateRegistration` - * method. To update these settings, use the `ConfigureManagementSettings` - * method. - * - * Generated from protobuf field .google.cloud.domains.v1.ManagementSettings management_settings = 10; - * @param \Google\Cloud\Domains\V1\ManagementSettings $var - * @return $this - */ - public function setManagementSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\ManagementSettings::class); - $this->management_settings = $var; - - return $this; - } - - /** - * Settings controlling the DNS configuration of the `Registration`. You - * cannot update these with the `UpdateRegistration` method. To update these - * settings, use the `ConfigureDnsSettings` method. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings dns_settings = 11; - * @return \Google\Cloud\Domains\V1\DnsSettings|null - */ - public function getDnsSettings() - { - return $this->dns_settings; - } - - public function hasDnsSettings() - { - return isset($this->dns_settings); - } - - public function clearDnsSettings() - { - unset($this->dns_settings); - } - - /** - * Settings controlling the DNS configuration of the `Registration`. You - * cannot update these with the `UpdateRegistration` method. To update these - * settings, use the `ConfigureDnsSettings` method. - * - * Generated from protobuf field .google.cloud.domains.v1.DnsSettings dns_settings = 11; - * @param \Google\Cloud\Domains\V1\DnsSettings $var - * @return $this - */ - public function setDnsSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\DnsSettings::class); - $this->dns_settings = $var; - - return $this; - } - - /** - * Required. Settings for contact information linked to the `Registration`. You cannot - * update these with the `UpdateRegistration` method. To update these - * settings, use the `ConfigureContactSettings` method. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Domains\V1\ContactSettings|null - */ - public function getContactSettings() - { - return $this->contact_settings; - } - - public function hasContactSettings() - { - return isset($this->contact_settings); - } - - public function clearContactSettings() - { - unset($this->contact_settings); - } - - /** - * Required. Settings for contact information linked to the `Registration`. You cannot - * update these with the `UpdateRegistration` method. To update these - * settings, use the `ConfigureContactSettings` method. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings contact_settings = 12 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Domains\V1\ContactSettings $var - * @return $this - */ - public function setContactSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\ContactSettings::class); - $this->contact_settings = $var; - - return $this; - } - - /** - * Output only. Pending contact settings for the `Registration`. Updates to the - * `contact_settings` field that change its `registrant_contact` or `privacy` - * fields require email confirmation by the `registrant_contact` - * before taking effect. This field is set only if there are pending updates - * to the `contact_settings` that have not been confirmed. To confirm the - * changes, the `registrant_contact` must follow the instructions in the - * email they receive. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Cloud\Domains\V1\ContactSettings|null - */ - public function getPendingContactSettings() - { - return $this->pending_contact_settings; - } - - public function hasPendingContactSettings() - { - return isset($this->pending_contact_settings); - } - - public function clearPendingContactSettings() - { - unset($this->pending_contact_settings); - } - - /** - * Output only. Pending contact settings for the `Registration`. Updates to the - * `contact_settings` field that change its `registrant_contact` or `privacy` - * fields require email confirmation by the `registrant_contact` - * before taking effect. This field is set only if there are pending updates - * to the `contact_settings` that have not been confirmed. To confirm the - * changes, the `registrant_contact` must follow the instructions in the - * email they receive. - * - * Generated from protobuf field .google.cloud.domains.v1.ContactSettings pending_contact_settings = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Cloud\Domains\V1\ContactSettings $var - * @return $this - */ - public function setPendingContactSettings($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\ContactSettings::class); - $this->pending_contact_settings = $var; - - return $this; - } - - /** - * Output only. Set of options for the `contact_settings.privacy` field that this - * `Registration` supports. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedPrivacy() - { - return $this->supported_privacy; - } - - /** - * Output only. Set of options for the `contact_settings.privacy` field that this - * `Registration` supports. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedPrivacy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Domains\V1\ContactPrivacy::class); - $this->supported_privacy = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration/Issue.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration/Issue.php deleted file mode 100644 index 22799125a822..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration/Issue.php +++ /dev/null @@ -1,71 +0,0 @@ -google.cloud.domains.v1.Registration.Issue - */ -class Issue -{ - /** - * The issue is undefined. - * - * Generated from protobuf enum ISSUE_UNSPECIFIED = 0; - */ - const ISSUE_UNSPECIFIED = 0; - /** - * Contact the Cloud Support team to resolve a problem with this domain. - * - * Generated from protobuf enum CONTACT_SUPPORT = 1; - */ - const CONTACT_SUPPORT = 1; - /** - * [ICANN](https://icann.org/) requires verification of the email address - * in the `Registration`'s `contact_settings.registrant_contact` field. To - * verify the email address, follow the - * instructions in the email the `registrant_contact` receives following - * registration. If you do not complete email verification within - * 15 days of registration, the domain is suspended. To resend the - * verification email, call ConfigureContactSettings and provide the current - * `registrant_contact.email`. - * - * Generated from protobuf enum UNVERIFIED_EMAIL = 2; - */ - const UNVERIFIED_EMAIL = 2; - - private static $valueToName = [ - self::ISSUE_UNSPECIFIED => 'ISSUE_UNSPECIFIED', - self::CONTACT_SUPPORT => 'CONTACT_SUPPORT', - self::UNVERIFIED_EMAIL => 'UNVERIFIED_EMAIL', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Issue::class, \Google\Cloud\Domains\V1\Registration_Issue::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration/State.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration/State.php deleted file mode 100644 index 6d899d3e1557..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/Registration/State.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.domains.v1.Registration.State - */ -class State -{ - /** - * The state is undefined. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The domain is being registered. - * - * Generated from protobuf enum REGISTRATION_PENDING = 1; - */ - const REGISTRATION_PENDING = 1; - /** - * The domain registration failed. You can delete resources in this state - * to allow registration to be retried. - * - * Generated from protobuf enum REGISTRATION_FAILED = 2; - */ - const REGISTRATION_FAILED = 2; - /** - * The domain is being transferred from another registrar to Cloud Domains. - * - * Generated from protobuf enum TRANSFER_PENDING = 3; - */ - const TRANSFER_PENDING = 3; - /** - * The attempt to transfer the domain from another registrar to - * Cloud Domains failed. You can delete resources in this state and retry - * the transfer. - * - * Generated from protobuf enum TRANSFER_FAILED = 4; - */ - const TRANSFER_FAILED = 4; - /** - * The domain is registered and operational. The domain renews automatically - * as long as it remains in this state. - * - * Generated from protobuf enum ACTIVE = 6; - */ - const ACTIVE = 6; - /** - * The domain is suspended and inoperative. For more details, see the - * `issues` field. - * - * Generated from protobuf enum SUSPENDED = 7; - */ - const SUSPENDED = 7; - /** - * The domain is no longer managed with Cloud Domains. It may have been - * transferred to another registrar or exported for management in - * [Google Domains](https://domains.google/). You can no longer update it - * with this API, and information shown about it may be stale. Domains in - * this state are not automatically renewed by Cloud Domains. - * - * Generated from protobuf enum EXPORTED = 8; - */ - const EXPORTED = 8; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::REGISTRATION_PENDING => 'REGISTRATION_PENDING', - self::REGISTRATION_FAILED => 'REGISTRATION_FAILED', - self::TRANSFER_PENDING => 'TRANSFER_PENDING', - self::TRANSFER_FAILED => 'TRANSFER_FAILED', - self::ACTIVE => 'ACTIVE', - self::SUSPENDED => 'SUSPENDED', - self::EXPORTED => 'EXPORTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no 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\Domains\V1\Registration_State::class); - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ResetAuthorizationCodeRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ResetAuthorizationCodeRequest.php deleted file mode 100644 index 98add90800b5..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/ResetAuthorizationCodeRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.domains.v1.ResetAuthorizationCodeRequest - */ -class ResetAuthorizationCodeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `Registration` whose authorization code is being reset, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $registration = ''; - - /** - * @param string $registration Required. The name of the `Registration` whose authorization code is being reset, - * in the format `projects/*/locations/*/registrations/*`. Please see - * {@see DomainsClient::registrationName()} for help formatting this field. - * - * @return \Google\Cloud\Domains\V1\ResetAuthorizationCodeRequest - * - * @experimental - */ - public static function build(string $registration): self - { - return (new self()) - ->setRegistration($registration); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $registration - * Required. The name of the `Registration` whose authorization code is being reset, - * in the format `projects/*/locations/*/registrations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `Registration` whose authorization code is being reset, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRegistration() - { - return $this->registration; - } - - /** - * Required. The name of the `Registration` whose authorization code is being reset, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRegistration($var) - { - GPBUtil::checkString($var, True); - $this->registration = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveAuthorizationCodeRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveAuthorizationCodeRequest.php deleted file mode 100644 index b97cba53dfa0..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveAuthorizationCodeRequest.php +++ /dev/null @@ -1,86 +0,0 @@ -google.cloud.domains.v1.RetrieveAuthorizationCodeRequest - */ -class RetrieveAuthorizationCodeRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the `Registration` whose authorization code is being retrieved, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $registration = ''; - - /** - * @param string $registration Required. The name of the `Registration` whose authorization code is being retrieved, - * in the format `projects/*/locations/*/registrations/*`. Please see - * {@see DomainsClient::registrationName()} for help formatting this field. - * - * @return \Google\Cloud\Domains\V1\RetrieveAuthorizationCodeRequest - * - * @experimental - */ - public static function build(string $registration): self - { - return (new self()) - ->setRegistration($registration); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $registration - * Required. The name of the `Registration` whose authorization code is being retrieved, - * in the format `projects/*/locations/*/registrations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the `Registration` whose authorization code is being retrieved, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getRegistration() - { - return $this->registration; - } - - /** - * Required. The name of the `Registration` whose authorization code is being retrieved, - * in the format `projects/*/locations/*/registrations/*`. - * - * Generated from protobuf field string registration = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setRegistration($var) - { - GPBUtil::checkString($var, True); - $this->registration = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveRegisterParametersRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveRegisterParametersRequest.php deleted file mode 100644 index 88c9358950a9..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveRegisterParametersRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.domains.v1.RetrieveRegisterParametersRequest - */ -class RetrieveRegisterParametersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The domain name. Unicode domain names must be expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $domain_name = ''; - /** - * Required. The location. Must be in the format `projects/*/locations/*`. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $location = ''; - - /** - * @param string $location Required. The location. Must be in the format `projects/*/locations/*`. Please see - * {@see DomainsClient::locationName()} for help formatting this field. - * @param string $domainName Required. The domain name. Unicode domain names must be expressed in Punycode format. - * - * @return \Google\Cloud\Domains\V1\RetrieveRegisterParametersRequest - * - * @experimental - */ - public static function build(string $location, string $domainName): self - { - return (new self()) - ->setLocation($location) - ->setDomainName($domainName); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $domain_name - * Required. The domain name. Unicode domain names must be expressed in Punycode format. - * @type string $location - * Required. The location. Must be in the format `projects/*/locations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The domain name. Unicode domain names must be expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDomainName() - { - return $this->domain_name; - } - - /** - * Required. The domain name. Unicode domain names must be expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDomainName($var) - { - GPBUtil::checkString($var, True); - $this->domain_name = $var; - - return $this; - } - - /** - * Required. The location. Must be in the format `projects/*/locations/*`. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Required. The location. Must be in the format `projects/*/locations/*`. - * - * Generated from protobuf field string location = 2 [(.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; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveRegisterParametersResponse.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveRegisterParametersResponse.php deleted file mode 100644 index 93a13fc1cb87..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveRegisterParametersResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.domains.v1.RetrieveRegisterParametersResponse - */ -class RetrieveRegisterParametersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Parameters to use when calling the `RegisterDomain` method. - * - * Generated from protobuf field .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - protected $register_parameters = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Domains\V1\RegisterParameters $register_parameters - * Parameters to use when calling the `RegisterDomain` method. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Parameters to use when calling the `RegisterDomain` method. - * - * Generated from protobuf field .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - * @return \Google\Cloud\Domains\V1\RegisterParameters|null - */ - public function getRegisterParameters() - { - return $this->register_parameters; - } - - public function hasRegisterParameters() - { - return isset($this->register_parameters); - } - - public function clearRegisterParameters() - { - unset($this->register_parameters); - } - - /** - * Parameters to use when calling the `RegisterDomain` method. - * - * Generated from protobuf field .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - * @param \Google\Cloud\Domains\V1\RegisterParameters $var - * @return $this - */ - public function setRegisterParameters($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\RegisterParameters::class); - $this->register_parameters = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveTransferParametersRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveTransferParametersRequest.php deleted file mode 100644 index c4fbe140d774..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveTransferParametersRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.domains.v1.RetrieveTransferParametersRequest - */ -class RetrieveTransferParametersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The domain name. Unicode domain names must be expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $domain_name = ''; - /** - * Required. The location. Must be in the format `projects/*/locations/*`. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $location = ''; - - /** - * @param string $location Required. The location. Must be in the format `projects/*/locations/*`. Please see - * {@see DomainsClient::locationName()} for help formatting this field. - * @param string $domainName Required. The domain name. Unicode domain names must be expressed in Punycode format. - * - * @return \Google\Cloud\Domains\V1\RetrieveTransferParametersRequest - * - * @experimental - */ - public static function build(string $location, string $domainName): self - { - return (new self()) - ->setLocation($location) - ->setDomainName($domainName); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $domain_name - * Required. The domain name. Unicode domain names must be expressed in Punycode format. - * @type string $location - * Required. The location. Must be in the format `projects/*/locations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The domain name. Unicode domain names must be expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDomainName() - { - return $this->domain_name; - } - - /** - * Required. The domain name. Unicode domain names must be expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDomainName($var) - { - GPBUtil::checkString($var, True); - $this->domain_name = $var; - - return $this; - } - - /** - * Required. The location. Must be in the format `projects/*/locations/*`. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Required. The location. Must be in the format `projects/*/locations/*`. - * - * Generated from protobuf field string location = 2 [(.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; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveTransferParametersResponse.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveTransferParametersResponse.php deleted file mode 100644 index 611689be75fa..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/RetrieveTransferParametersResponse.php +++ /dev/null @@ -1,77 +0,0 @@ -google.cloud.domains.v1.RetrieveTransferParametersResponse - */ -class RetrieveTransferParametersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Parameters to use when calling the `TransferDomain` method. - * - * Generated from protobuf field .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - */ - protected $transfer_parameters = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Domains\V1\TransferParameters $transfer_parameters - * Parameters to use when calling the `TransferDomain` method. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Parameters to use when calling the `TransferDomain` method. - * - * Generated from protobuf field .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - * @return \Google\Cloud\Domains\V1\TransferParameters|null - */ - public function getTransferParameters() - { - return $this->transfer_parameters; - } - - public function hasTransferParameters() - { - return isset($this->transfer_parameters); - } - - public function clearTransferParameters() - { - unset($this->transfer_parameters); - } - - /** - * Parameters to use when calling the `TransferDomain` method. - * - * Generated from protobuf field .google.cloud.domains.v1.TransferParameters transfer_parameters = 1; - * @param \Google\Cloud\Domains\V1\TransferParameters $var - * @return $this - */ - public function setTransferParameters($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\TransferParameters::class); - $this->transfer_parameters = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/SearchDomainsRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/SearchDomainsRequest.php deleted file mode 100644 index 7001b0fdf7ce..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/SearchDomainsRequest.php +++ /dev/null @@ -1,117 +0,0 @@ -google.cloud.domains.v1.SearchDomainsRequest - */ -class SearchDomainsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. String used to search for available domain names. - * - * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $query = ''; - /** - * Required. The location. Must be in the format `projects/*/locations/*`. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $location = ''; - - /** - * @param string $location Required. The location. Must be in the format `projects/*/locations/*`. Please see - * {@see DomainsClient::locationName()} for help formatting this field. - * @param string $query Required. String used to search for available domain names. - * - * @return \Google\Cloud\Domains\V1\SearchDomainsRequest - * - * @experimental - */ - public static function build(string $location, string $query): self - { - return (new self()) - ->setLocation($location) - ->setQuery($query); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $query - * Required. String used to search for available domain names. - * @type string $location - * Required. The location. Must be in the format `projects/*/locations/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. String used to search for available domain names. - * - * Generated from protobuf field string query = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getQuery() - { - return $this->query; - } - - /** - * Required. String used to search for available domain names. - * - * 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; - } - - /** - * Required. The location. Must be in the format `projects/*/locations/*`. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Required. The location. Must be in the format `projects/*/locations/*`. - * - * Generated from protobuf field string location = 2 [(.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; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/SearchDomainsResponse.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/SearchDomainsResponse.php deleted file mode 100644 index df1433fb0beb..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/SearchDomainsResponse.php +++ /dev/null @@ -1,67 +0,0 @@ -google.cloud.domains.v1.SearchDomainsResponse - */ -class SearchDomainsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * Results of the domain name search. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - */ - private $register_parameters; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\Domains\V1\RegisterParameters>|\Google\Protobuf\Internal\RepeatedField $register_parameters - * Results of the domain name search. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Results of the domain name search. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRegisterParameters() - { - return $this->register_parameters; - } - - /** - * Results of the domain name search. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.RegisterParameters register_parameters = 1; - * @param array<\Google\Cloud\Domains\V1\RegisterParameters>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRegisterParameters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Domains\V1\RegisterParameters::class); - $this->register_parameters = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferDomainRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferDomainRequest.php deleted file mode 100644 index ef9bdc453507..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferDomainRequest.php +++ /dev/null @@ -1,341 +0,0 @@ -google.cloud.domains.v1.TransferDomainRequest - */ -class TransferDomainRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource of the `Registration`. Must be 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 complete `Registration` resource to be created. - * You can leave `registration.dns_settings` unset to import the - * domain's current DNS configuration from its current registrar. Use this - * option only if you are sure that the domain's current DNS service - * does not cease upon transfer, as is often the case for DNS services - * provided for free by the registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $registration = null; - /** - * The list of contact notices that you acknowledge. The notices - * needed here depend on the values specified in - * `registration.contact_settings`. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - */ - private $contact_notices; - /** - * Required. Acknowledgement of the price to transfer or renew the domain for one year. - * Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * - * Generated from protobuf field .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $yearly_price = null; - /** - * The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - */ - protected $authorization_code = null; - /** - * Validate the request without actually transferring the domain. - * - * Generated from protobuf field bool validate_only = 6; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent resource of the `Registration`. Must be in the - * format `projects/*/locations/*`. Please see - * {@see DomainsClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Domains\V1\Registration $registration Required. The complete `Registration` resource to be created. - * - * You can leave `registration.dns_settings` unset to import the - * domain's current DNS configuration from its current registrar. Use this - * option only if you are sure that the domain's current DNS service - * does not cease upon transfer, as is often the case for DNS services - * provided for free by the registrar. - * @param \Google\Type\Money $yearlyPrice Required. Acknowledgement of the price to transfer or renew the domain for one year. - * Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * @param \Google\Cloud\Domains\V1\AuthorizationCode $authorizationCode The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * - * @return \Google\Cloud\Domains\V1\TransferDomainRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Domains\V1\Registration $registration, \Google\Type\Money $yearlyPrice, \Google\Cloud\Domains\V1\AuthorizationCode $authorizationCode): self - { - return (new self()) - ->setParent($parent) - ->setRegistration($registration) - ->setYearlyPrice($yearlyPrice) - ->setAuthorizationCode($authorizationCode); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent resource of the `Registration`. Must be in the - * format `projects/*/locations/*`. - * @type \Google\Cloud\Domains\V1\Registration $registration - * Required. The complete `Registration` resource to be created. - * You can leave `registration.dns_settings` unset to import the - * domain's current DNS configuration from its current registrar. Use this - * option only if you are sure that the domain's current DNS service - * does not cease upon transfer, as is often the case for DNS services - * provided for free by the registrar. - * @type array|\Google\Protobuf\Internal\RepeatedField $contact_notices - * The list of contact notices that you acknowledge. The notices - * needed here depend on the values specified in - * `registration.contact_settings`. - * @type \Google\Type\Money $yearly_price - * Required. Acknowledgement of the price to transfer or renew the domain for one year. - * Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * @type \Google\Cloud\Domains\V1\AuthorizationCode $authorization_code - * The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * @type bool $validate_only - * Validate the request without actually transferring the domain. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource of the `Registration`. Must be 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 parent resource of the `Registration`. Must be 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 complete `Registration` resource to be created. - * You can leave `registration.dns_settings` unset to import the - * domain's current DNS configuration from its current registrar. Use this - * option only if you are sure that the domain's current DNS service - * does not cease upon transfer, as is often the case for DNS services - * provided for free by the registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Domains\V1\Registration|null - */ - public function getRegistration() - { - return $this->registration; - } - - public function hasRegistration() - { - return isset($this->registration); - } - - public function clearRegistration() - { - unset($this->registration); - } - - /** - * Required. The complete `Registration` resource to be created. - * You can leave `registration.dns_settings` unset to import the - * domain's current DNS configuration from its current registrar. Use this - * option only if you are sure that the domain's current DNS service - * does not cease upon transfer, as is often the case for DNS services - * provided for free by the registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.Registration registration = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Domains\V1\Registration $var - * @return $this - */ - public function setRegistration($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\Registration::class); - $this->registration = $var; - - return $this; - } - - /** - * The list of contact notices that you acknowledge. The notices - * needed here depend on the values specified in - * `registration.contact_settings`. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContactNotices() - { - return $this->contact_notices; - } - - /** - * The list of contact notices that you acknowledge. The notices - * needed here depend on the values specified in - * `registration.contact_settings`. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactNotice contact_notices = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContactNotices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Domains\V1\ContactNotice::class); - $this->contact_notices = $arr; - - return $this; - } - - /** - * Required. Acknowledgement of the price to transfer or renew the domain for one year. - * Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * - * Generated from protobuf field .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Type\Money|null - */ - public function getYearlyPrice() - { - return $this->yearly_price; - } - - public function hasYearlyPrice() - { - return isset($this->yearly_price); - } - - public function clearYearlyPrice() - { - unset($this->yearly_price); - } - - /** - * Required. Acknowledgement of the price to transfer or renew the domain for one year. - * Call `RetrieveTransferParameters` to obtain the price, which you must - * acknowledge. - * - * Generated from protobuf field .google.type.Money yearly_price = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Type\Money $var - * @return $this - */ - public function setYearlyPrice($var) - { - GPBUtil::checkMessage($var, \Google\Type\Money::class); - $this->yearly_price = $var; - - return $this; - } - - /** - * The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - * @return \Google\Cloud\Domains\V1\AuthorizationCode|null - */ - public function getAuthorizationCode() - { - return $this->authorization_code; - } - - public function hasAuthorizationCode() - { - return isset($this->authorization_code); - } - - public function clearAuthorizationCode() - { - unset($this->authorization_code); - } - - /** - * The domain's transfer authorization code. You can obtain this from the - * domain's current registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.AuthorizationCode authorization_code = 5; - * @param \Google\Cloud\Domains\V1\AuthorizationCode $var - * @return $this - */ - public function setAuthorizationCode($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\AuthorizationCode::class); - $this->authorization_code = $var; - - return $this; - } - - /** - * Validate the request without actually transferring the domain. - * - * Generated from protobuf field bool validate_only = 6; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Validate the request without actually transferring the domain. - * - * Generated from protobuf field bool validate_only = 6; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferLockState.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferLockState.php deleted file mode 100644 index 9390755c1570..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferLockState.php +++ /dev/null @@ -1,61 +0,0 @@ -google.cloud.domains.v1.TransferLockState - */ -class TransferLockState -{ - /** - * The state is unspecified. - * - * Generated from protobuf enum TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - */ - const TRANSFER_LOCK_STATE_UNSPECIFIED = 0; - /** - * The domain is unlocked and can be transferred to another registrar. - * - * Generated from protobuf enum UNLOCKED = 1; - */ - const UNLOCKED = 1; - /** - * The domain is locked and cannot be transferred to another registrar. - * - * Generated from protobuf enum LOCKED = 2; - */ - const LOCKED = 2; - - private static $valueToName = [ - self::TRANSFER_LOCK_STATE_UNSPECIFIED => 'TRANSFER_LOCK_STATE_UNSPECIFIED', - self::UNLOCKED => 'UNLOCKED', - self::LOCKED => 'LOCKED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferParameters.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferParameters.php deleted file mode 100644 index 75da92577742..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/TransferParameters.php +++ /dev/null @@ -1,255 +0,0 @@ -google.cloud.domains.v1.TransferParameters - */ -class TransferParameters extends \Google\Protobuf\Internal\Message -{ - /** - * The domain name. Unicode domain names are expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1; - */ - protected $domain_name = ''; - /** - * The registrar that currently manages the domain. - * - * Generated from protobuf field string current_registrar = 2; - */ - protected $current_registrar = ''; - /** - * The name servers that currently store the configuration of the domain. - * - * Generated from protobuf field repeated string name_servers = 3; - */ - private $name_servers; - /** - * Indicates whether the domain is protected by a transfer lock. For a - * transfer to succeed, this must show `UNLOCKED`. To unlock a domain, - * go to its current registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - */ - protected $transfer_lock_state = 0; - /** - * Contact privacy options that the domain supports. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - */ - private $supported_privacy; - /** - * Price to transfer or renew the domain for one year. - * - * Generated from protobuf field .google.type.Money yearly_price = 6; - */ - protected $yearly_price = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $domain_name - * The domain name. Unicode domain names are expressed in Punycode format. - * @type string $current_registrar - * The registrar that currently manages the domain. - * @type array|\Google\Protobuf\Internal\RepeatedField $name_servers - * The name servers that currently store the configuration of the domain. - * @type int $transfer_lock_state - * Indicates whether the domain is protected by a transfer lock. For a - * transfer to succeed, this must show `UNLOCKED`. To unlock a domain, - * go to its current registrar. - * @type array|\Google\Protobuf\Internal\RepeatedField $supported_privacy - * Contact privacy options that the domain supports. - * @type \Google\Type\Money $yearly_price - * Price to transfer or renew the domain for one year. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * The domain name. Unicode domain names are expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1; - * @return string - */ - public function getDomainName() - { - return $this->domain_name; - } - - /** - * The domain name. Unicode domain names are expressed in Punycode format. - * - * Generated from protobuf field string domain_name = 1; - * @param string $var - * @return $this - */ - public function setDomainName($var) - { - GPBUtil::checkString($var, True); - $this->domain_name = $var; - - return $this; - } - - /** - * The registrar that currently manages the domain. - * - * Generated from protobuf field string current_registrar = 2; - * @return string - */ - public function getCurrentRegistrar() - { - return $this->current_registrar; - } - - /** - * The registrar that currently manages the domain. - * - * Generated from protobuf field string current_registrar = 2; - * @param string $var - * @return $this - */ - public function setCurrentRegistrar($var) - { - GPBUtil::checkString($var, True); - $this->current_registrar = $var; - - return $this; - } - - /** - * The name servers that currently store the configuration of the domain. - * - * Generated from protobuf field repeated string name_servers = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNameServers() - { - return $this->name_servers; - } - - /** - * The name servers that currently store the configuration of the domain. - * - * Generated from protobuf field repeated string name_servers = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNameServers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->name_servers = $arr; - - return $this; - } - - /** - * Indicates whether the domain is protected by a transfer lock. For a - * transfer to succeed, this must show `UNLOCKED`. To unlock a domain, - * go to its current registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * @return int - */ - public function getTransferLockState() - { - return $this->transfer_lock_state; - } - - /** - * Indicates whether the domain is protected by a transfer lock. For a - * transfer to succeed, this must show `UNLOCKED`. To unlock a domain, - * go to its current registrar. - * - * Generated from protobuf field .google.cloud.domains.v1.TransferLockState transfer_lock_state = 4; - * @param int $var - * @return $this - */ - public function setTransferLockState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Domains\V1\TransferLockState::class); - $this->transfer_lock_state = $var; - - return $this; - } - - /** - * Contact privacy options that the domain supports. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSupportedPrivacy() - { - return $this->supported_privacy; - } - - /** - * Contact privacy options that the domain supports. - * - * Generated from protobuf field repeated .google.cloud.domains.v1.ContactPrivacy supported_privacy = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSupportedPrivacy($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\Domains\V1\ContactPrivacy::class); - $this->supported_privacy = $arr; - - return $this; - } - - /** - * Price to transfer or renew the domain for one year. - * - * Generated from protobuf field .google.type.Money yearly_price = 6; - * @return \Google\Type\Money|null - */ - public function getYearlyPrice() - { - return $this->yearly_price; - } - - public function hasYearlyPrice() - { - return isset($this->yearly_price); - } - - public function clearYearlyPrice() - { - unset($this->yearly_price); - } - - /** - * Price to transfer or renew the domain for one year. - * - * Generated from protobuf field .google.type.Money yearly_price = 6; - * @param \Google\Type\Money $var - * @return $this - */ - public function setYearlyPrice($var) - { - GPBUtil::checkMessage($var, \Google\Type\Money::class); - $this->yearly_price = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/UpdateRegistrationRequest.php b/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/UpdateRegistrationRequest.php deleted file mode 100644 index 5c3a239ac4c6..000000000000 --- a/owl-bot-staging/Domains/v1/proto/src/Google/Cloud/Domains/V1/UpdateRegistrationRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.cloud.domains.v1.UpdateRegistrationRequest - */ -class UpdateRegistrationRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Fields of the `Registration` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.Registration registration = 1; - */ - protected $registration = null; - /** - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the labels are being updated, the `update_mask` is - * `"labels"`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Domains\V1\Registration $registration Fields of the `Registration` to update. - * @param \Google\Protobuf\FieldMask $updateMask Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the labels are being updated, the `update_mask` is - * `"labels"`. - * - * @return \Google\Cloud\Domains\V1\UpdateRegistrationRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Domains\V1\Registration $registration, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRegistration($registration) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Domains\V1\Registration $registration - * Fields of the `Registration` to update. - * @type \Google\Protobuf\FieldMask $update_mask - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the labels are being updated, the `update_mask` is - * `"labels"`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Domains\V1\Domains::initOnce(); - parent::__construct($data); - } - - /** - * Fields of the `Registration` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.Registration registration = 1; - * @return \Google\Cloud\Domains\V1\Registration|null - */ - public function getRegistration() - { - return $this->registration; - } - - public function hasRegistration() - { - return isset($this->registration); - } - - public function clearRegistration() - { - unset($this->registration); - } - - /** - * Fields of the `Registration` to update. - * - * Generated from protobuf field .google.cloud.domains.v1.Registration registration = 1; - * @param \Google\Cloud\Domains\V1\Registration $var - * @return $this - */ - public function setRegistration($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Domains\V1\Registration::class); - $this->registration = $var; - - return $this; - } - - /** - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the labels are being updated, the `update_mask` is - * `"labels"`. - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. The field mask describing which fields to update as a comma-separated list. - * For example, if only the labels are being updated, the `update_mask` is - * `"labels"`. - * - * 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/Domains/v1/samples/V1/DomainsClient/configure_contact_settings.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_contact_settings.php deleted file mode 100644 index 96a683fe2dc6..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_contact_settings.php +++ /dev/null @@ -1,92 +0,0 @@ -setRegistration($formattedRegistration) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $domainsClient->configureContactSettings($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Registration $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 -{ - $formattedRegistration = DomainsClient::registrationName( - '[PROJECT]', - '[LOCATION]', - '[REGISTRATION]' - ); - - configure_contact_settings_sample($formattedRegistration); -} -// [END domains_v1_generated_Domains_ConfigureContactSettings_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_dns_settings.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_dns_settings.php deleted file mode 100644 index be128595a3c7..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_dns_settings.php +++ /dev/null @@ -1,91 +0,0 @@ -setRegistration($formattedRegistration) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $domainsClient->configureDnsSettings($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Registration $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 -{ - $formattedRegistration = DomainsClient::registrationName( - '[PROJECT]', - '[LOCATION]', - '[REGISTRATION]' - ); - - configure_dns_settings_sample($formattedRegistration); -} -// [END domains_v1_generated_Domains_ConfigureDnsSettings_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_management_settings.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_management_settings.php deleted file mode 100644 index 4d68b7c53acd..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/configure_management_settings.php +++ /dev/null @@ -1,91 +0,0 @@ -setRegistration($formattedRegistration) - ->setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $domainsClient->configureManagementSettings($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Registration $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 -{ - $formattedRegistration = DomainsClient::registrationName( - '[PROJECT]', - '[LOCATION]', - '[REGISTRATION]' - ); - - configure_management_settings_sample($formattedRegistration); -} -// [END domains_v1_generated_Domains_ConfigureManagementSettings_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/delete_registration.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/delete_registration.php deleted file mode 100644 index 43b3858eeaba..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/delete_registration.php +++ /dev/null @@ -1,99 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $domainsClient->deleteRegistration($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 = DomainsClient::registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - - delete_registration_sample($formattedName); -} -// [END domains_v1_generated_Domains_DeleteRegistration_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/export_registration.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/export_registration.php deleted file mode 100644 index 92ef53b7ebbc..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/export_registration.php +++ /dev/null @@ -1,92 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $domainsClient->exportRegistration($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Registration $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 = DomainsClient::registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - - export_registration_sample($formattedName); -} -// [END domains_v1_generated_Domains_ExportRegistration_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/get_registration.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/get_registration.php deleted file mode 100644 index 3fcf2a9b1ad8..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/get_registration.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Registration $response */ - $response = $domainsClient->getRegistration($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = DomainsClient::registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - - get_registration_sample($formattedName); -} -// [END domains_v1_generated_Domains_GetRegistration_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/list_registrations.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/list_registrations.php deleted file mode 100644 index 92e8ac59c8c7..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/list_registrations.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $domainsClient->listRegistrations($request); - - /** @var Registration $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 = DomainsClient::locationName('[PROJECT]', '[LOCATION]'); - - list_registrations_sample($formattedParent); -} -// [END domains_v1_generated_Domains_ListRegistrations_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/register_domain.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/register_domain.php deleted file mode 100644 index afb669b04df2..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/register_domain.php +++ /dev/null @@ -1,165 +0,0 @@ -setPostalAddress($registrationContactSettingsRegistrantContactPostalAddress) - ->setEmail($registrationContactSettingsRegistrantContactEmail) - ->setPhoneNumber($registrationContactSettingsRegistrantContactPhoneNumber); - $registrationContactSettingsAdminContactPostalAddress = new PostalAddress(); - $registrationContactSettingsAdminContact = (new Contact()) - ->setPostalAddress($registrationContactSettingsAdminContactPostalAddress) - ->setEmail($registrationContactSettingsAdminContactEmail) - ->setPhoneNumber($registrationContactSettingsAdminContactPhoneNumber); - $registrationContactSettingsTechnicalContactPostalAddress = new PostalAddress(); - $registrationContactSettingsTechnicalContact = (new Contact()) - ->setPostalAddress($registrationContactSettingsTechnicalContactPostalAddress) - ->setEmail($registrationContactSettingsTechnicalContactEmail) - ->setPhoneNumber($registrationContactSettingsTechnicalContactPhoneNumber); - $registrationContactSettings = (new ContactSettings()) - ->setPrivacy($registrationContactSettingsPrivacy) - ->setRegistrantContact($registrationContactSettingsRegistrantContact) - ->setAdminContact($registrationContactSettingsAdminContact) - ->setTechnicalContact($registrationContactSettingsTechnicalContact); - $registration = (new Registration()) - ->setDomainName($registrationDomainName) - ->setContactSettings($registrationContactSettings); - $yearlyPrice = new Money(); - $request = (new RegisterDomainRequest()) - ->setParent($formattedParent) - ->setRegistration($registration) - ->setYearlyPrice($yearlyPrice); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $domainsClient->registerDomain($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Registration $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 = DomainsClient::locationName('[PROJECT]', '[LOCATION]'); - $registrationDomainName = '[DOMAIN_NAME]'; - $registrationContactSettingsPrivacy = ContactPrivacy::CONTACT_PRIVACY_UNSPECIFIED; - $registrationContactSettingsRegistrantContactEmail = '[EMAIL]'; - $registrationContactSettingsRegistrantContactPhoneNumber = '[PHONE_NUMBER]'; - $registrationContactSettingsAdminContactEmail = '[EMAIL]'; - $registrationContactSettingsAdminContactPhoneNumber = '[PHONE_NUMBER]'; - $registrationContactSettingsTechnicalContactEmail = '[EMAIL]'; - $registrationContactSettingsTechnicalContactPhoneNumber = '[PHONE_NUMBER]'; - - register_domain_sample( - $formattedParent, - $registrationDomainName, - $registrationContactSettingsPrivacy, - $registrationContactSettingsRegistrantContactEmail, - $registrationContactSettingsRegistrantContactPhoneNumber, - $registrationContactSettingsAdminContactEmail, - $registrationContactSettingsAdminContactPhoneNumber, - $registrationContactSettingsTechnicalContactEmail, - $registrationContactSettingsTechnicalContactPhoneNumber - ); -} -// [END domains_v1_generated_Domains_RegisterDomain_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/reset_authorization_code.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/reset_authorization_code.php deleted file mode 100644 index f4c1456a22e8..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/reset_authorization_code.php +++ /dev/null @@ -1,79 +0,0 @@ -setRegistration($formattedRegistration); - - // Call the API and handle any network failures. - try { - /** @var AuthorizationCode $response */ - $response = $domainsClient->resetAuthorizationCode($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedRegistration = DomainsClient::registrationName( - '[PROJECT]', - '[LOCATION]', - '[REGISTRATION]' - ); - - reset_authorization_code_sample($formattedRegistration); -} -// [END domains_v1_generated_Domains_ResetAuthorizationCode_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_authorization_code.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_authorization_code.php deleted file mode 100644 index 2b463a9edeae..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_authorization_code.php +++ /dev/null @@ -1,80 +0,0 @@ -setRegistration($formattedRegistration); - - // Call the API and handle any network failures. - try { - /** @var AuthorizationCode $response */ - $response = $domainsClient->retrieveAuthorizationCode($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedRegistration = DomainsClient::registrationName( - '[PROJECT]', - '[LOCATION]', - '[REGISTRATION]' - ); - - retrieve_authorization_code_sample($formattedRegistration); -} -// [END domains_v1_generated_Domains_RetrieveAuthorizationCode_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_register_parameters.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_register_parameters.php deleted file mode 100644 index 66a3c89aa6e4..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_register_parameters.php +++ /dev/null @@ -1,75 +0,0 @@ -setDomainName($domainName) - ->setLocation($formattedLocation); - - // Call the API and handle any network failures. - try { - /** @var RetrieveRegisterParametersResponse $response */ - $response = $domainsClient->retrieveRegisterParameters($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $domainName = '[DOMAIN_NAME]'; - $formattedLocation = DomainsClient::locationName('[PROJECT]', '[LOCATION]'); - - retrieve_register_parameters_sample($domainName, $formattedLocation); -} -// [END domains_v1_generated_Domains_RetrieveRegisterParameters_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_transfer_parameters.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_transfer_parameters.php deleted file mode 100644 index dea37c26b940..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/retrieve_transfer_parameters.php +++ /dev/null @@ -1,79 +0,0 @@ -setDomainName($domainName) - ->setLocation($formattedLocation); - - // Call the API and handle any network failures. - try { - /** @var RetrieveTransferParametersResponse $response */ - $response = $domainsClient->retrieveTransferParameters($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $domainName = '[DOMAIN_NAME]'; - $formattedLocation = DomainsClient::locationName('[PROJECT]', '[LOCATION]'); - - retrieve_transfer_parameters_sample($domainName, $formattedLocation); -} -// [END domains_v1_generated_Domains_RetrieveTransferParameters_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/search_domains.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/search_domains.php deleted file mode 100644 index 8817cbf8b0ed..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/search_domains.php +++ /dev/null @@ -1,78 +0,0 @@ -setQuery($query) - ->setLocation($formattedLocation); - - // Call the API and handle any network failures. - try { - /** @var SearchDomainsResponse $response */ - $response = $domainsClient->searchDomains($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - 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]'; - $formattedLocation = DomainsClient::locationName('[PROJECT]', '[LOCATION]'); - - search_domains_sample($query, $formattedLocation); -} -// [END domains_v1_generated_Domains_SearchDomains_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/transfer_domain.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/transfer_domain.php deleted file mode 100644 index ac3b380d87cd..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/transfer_domain.php +++ /dev/null @@ -1,173 +0,0 @@ -setPostalAddress($registrationContactSettingsRegistrantContactPostalAddress) - ->setEmail($registrationContactSettingsRegistrantContactEmail) - ->setPhoneNumber($registrationContactSettingsRegistrantContactPhoneNumber); - $registrationContactSettingsAdminContactPostalAddress = new PostalAddress(); - $registrationContactSettingsAdminContact = (new Contact()) - ->setPostalAddress($registrationContactSettingsAdminContactPostalAddress) - ->setEmail($registrationContactSettingsAdminContactEmail) - ->setPhoneNumber($registrationContactSettingsAdminContactPhoneNumber); - $registrationContactSettingsTechnicalContactPostalAddress = new PostalAddress(); - $registrationContactSettingsTechnicalContact = (new Contact()) - ->setPostalAddress($registrationContactSettingsTechnicalContactPostalAddress) - ->setEmail($registrationContactSettingsTechnicalContactEmail) - ->setPhoneNumber($registrationContactSettingsTechnicalContactPhoneNumber); - $registrationContactSettings = (new ContactSettings()) - ->setPrivacy($registrationContactSettingsPrivacy) - ->setRegistrantContact($registrationContactSettingsRegistrantContact) - ->setAdminContact($registrationContactSettingsAdminContact) - ->setTechnicalContact($registrationContactSettingsTechnicalContact); - $registration = (new Registration()) - ->setDomainName($registrationDomainName) - ->setContactSettings($registrationContactSettings); - $yearlyPrice = new Money(); - $request = (new TransferDomainRequest()) - ->setParent($formattedParent) - ->setRegistration($registration) - ->setYearlyPrice($yearlyPrice); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $domainsClient->transferDomain($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Registration $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 = DomainsClient::locationName('[PROJECT]', '[LOCATION]'); - $registrationDomainName = '[DOMAIN_NAME]'; - $registrationContactSettingsPrivacy = ContactPrivacy::CONTACT_PRIVACY_UNSPECIFIED; - $registrationContactSettingsRegistrantContactEmail = '[EMAIL]'; - $registrationContactSettingsRegistrantContactPhoneNumber = '[PHONE_NUMBER]'; - $registrationContactSettingsAdminContactEmail = '[EMAIL]'; - $registrationContactSettingsAdminContactPhoneNumber = '[PHONE_NUMBER]'; - $registrationContactSettingsTechnicalContactEmail = '[EMAIL]'; - $registrationContactSettingsTechnicalContactPhoneNumber = '[PHONE_NUMBER]'; - - transfer_domain_sample( - $formattedParent, - $registrationDomainName, - $registrationContactSettingsPrivacy, - $registrationContactSettingsRegistrantContactEmail, - $registrationContactSettingsRegistrantContactPhoneNumber, - $registrationContactSettingsAdminContactEmail, - $registrationContactSettingsAdminContactPhoneNumber, - $registrationContactSettingsTechnicalContactEmail, - $registrationContactSettingsTechnicalContactPhoneNumber - ); -} -// [END domains_v1_generated_Domains_TransferDomain_sync] diff --git a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/update_registration.php b/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/update_registration.php deleted file mode 100644 index 7fa8fe952ea4..000000000000 --- a/owl-bot-staging/Domains/v1/samples/V1/DomainsClient/update_registration.php +++ /dev/null @@ -1,77 +0,0 @@ -setUpdateMask($updateMask); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $domainsClient->updateRegistration($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Registration $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 domains_v1_generated_Domains_UpdateRegistration_sync] diff --git a/owl-bot-staging/Domains/v1/src/V1/Client/DomainsClient.php b/owl-bot-staging/Domains/v1/src/V1/Client/DomainsClient.php deleted file mode 100644 index f96149bcc8fe..000000000000 --- a/owl-bot-staging/Domains/v1/src/V1/Client/DomainsClient.php +++ /dev/null @@ -1,789 +0,0 @@ - configureContactSettingsAsync(ConfigureContactSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface configureDnsSettingsAsync(ConfigureDnsSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface configureManagementSettingsAsync(ConfigureManagementSettingsRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRegistrationAsync(DeleteRegistrationRequest $request, array $optionalArgs = []) - * @method PromiseInterface exportRegistrationAsync(ExportRegistrationRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRegistrationAsync(GetRegistrationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRegistrationsAsync(ListRegistrationsRequest $request, array $optionalArgs = []) - * @method PromiseInterface registerDomainAsync(RegisterDomainRequest $request, array $optionalArgs = []) - * @method PromiseInterface resetAuthorizationCodeAsync(ResetAuthorizationCodeRequest $request, array $optionalArgs = []) - * @method PromiseInterface retrieveAuthorizationCodeAsync(RetrieveAuthorizationCodeRequest $request, array $optionalArgs = []) - * @method PromiseInterface retrieveRegisterParametersAsync(RetrieveRegisterParametersRequest $request, array $optionalArgs = []) - * @method PromiseInterface retrieveTransferParametersAsync(RetrieveTransferParametersRequest $request, array $optionalArgs = []) - * @method PromiseInterface searchDomainsAsync(SearchDomainsRequest $request, array $optionalArgs = []) - * @method PromiseInterface transferDomainAsync(TransferDomainRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRegistrationAsync(UpdateRegistrationRequest $request, array $optionalArgs = []) - */ -final class DomainsClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.domains.v1.Domains'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'domains.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'domains.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/domains_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/domains_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/domains_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/domains_rest_client_config.php', - ], - ], - ]; - } - - /** - * Return an OperationsClient object with the same endpoint as $this. - * - * @return OperationsClient - */ - public function getOperationsClient() - { - return $this->operationsClient; - } - - /** - * Resume an existing long running operation that was previously started by a long - * running API method. If $methodName is not provided, or does not match a long - * running API method, then the operation can still be resumed, but the - * OperationResponse object will not deserialize the final response. - * - * @param string $operationName The name of the long running operation - * @param string $methodName The name of the method used to start the operation - * - * @return OperationResponse - */ - public function resumeOperation($operationName, $methodName = null) - { - $options = isset($this->descriptors[$methodName]['longRunning']) ? $this->descriptors[$methodName]['longRunning'] : []; - $operation = new OperationResponse($operationName, $this->getOperationsClient(), $options); - $operation->reload(); - return $operation; - } - - /** - * Create the default operation client for the service. - * - * @param array $options ClientOptions for the client. - * - * @return OperationsClient - */ - private function createOperationsClient(array $options) - { - // Unset client-specific configuration options - unset($options['serviceName'], $options['clientConfig'], $options['descriptorsConfigPath']); - - if (isset($options['operationsClient'])) { - return $options['operationsClient']; - } - - return new OperationsClient($options); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $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 registration - * resource. - * - * @param string $project - * @param string $location - * @param string $registration - * - * @return string The formatted registration resource. - */ - public static function registrationName(string $project, string $location, string $registration): string - { - return self::getPathTemplate('registration')->render([ - 'project' => $project, - 'location' => $location, - 'registration' => $registration, - ]); - } - - /** - * 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} - * - registration: projects/{project}/locations/{location}/registrations/{registration} - * - * 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 'domains.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); - } - - /** - * Updates a `Registration`'s contact settings. Some changes require - * confirmation by the domain's registrant contact . - * - * The async variant is {@see DomainsClient::configureContactSettingsAsync()} . - * - * @example samples/V1/DomainsClient/configure_contact_settings.php - * - * @param ConfigureContactSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 configureContactSettings(ConfigureContactSettingsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ConfigureContactSettings', $request, $callOptions)->wait(); - } - - /** - * Updates a `Registration`'s DNS settings. - * - * The async variant is {@see DomainsClient::configureDnsSettingsAsync()} . - * - * @example samples/V1/DomainsClient/configure_dns_settings.php - * - * @param ConfigureDnsSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 configureDnsSettings(ConfigureDnsSettingsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ConfigureDnsSettings', $request, $callOptions)->wait(); - } - - /** - * Updates a `Registration`'s management settings. - * - * The async variant is {@see DomainsClient::configureManagementSettingsAsync()} . - * - * @example samples/V1/DomainsClient/configure_management_settings.php - * - * @param ConfigureManagementSettingsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 configureManagementSettings(ConfigureManagementSettingsRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ConfigureManagementSettings', $request, $callOptions)->wait(); - } - - /** - * Deletes a `Registration` resource. - * - * This method works on any `Registration` resource using [Subscription or - * Commitment billing](/domains/pricing#billing-models), provided that the - * resource was created at least 1 day in the past. - * - * For `Registration` resources using - * [Monthly billing](/domains/pricing#billing-models), this method works if: - * - * * `state` is `EXPORTED` with `expire_time` in the past - * * `state` is `REGISTRATION_FAILED` - * * `state` is `TRANSFER_FAILED` - * - * When an active registration is successfully deleted, you can continue to - * use the domain in [Google Domains](https://domains.google/) until it - * expires. The calling user becomes the domain's sole owner in Google - * Domains, and permissions for the domain are subsequently managed there. The - * domain does not renew automatically unless the new owner sets up billing in - * Google Domains. - * - * The async variant is {@see DomainsClient::deleteRegistrationAsync()} . - * - * @example samples/V1/DomainsClient/delete_registration.php - * - * @param DeleteRegistrationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteRegistration(DeleteRegistrationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteRegistration', $request, $callOptions)->wait(); - } - - /** - * Exports a `Registration` resource, such that it is no longer managed by - * Cloud Domains. - * - * When an active domain is successfully exported, you can continue to use the - * domain in [Google Domains](https://domains.google/) until it expires. The - * calling user becomes the domain's sole owner in Google Domains, and - * permissions for the domain are subsequently managed there. The domain does - * not renew automatically unless the new owner sets up billing in Google - * Domains. - * - * The async variant is {@see DomainsClient::exportRegistrationAsync()} . - * - * @example samples/V1/DomainsClient/export_registration.php - * - * @param ExportRegistrationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 exportRegistration(ExportRegistrationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('ExportRegistration', $request, $callOptions)->wait(); - } - - /** - * Gets the details of a `Registration` resource. - * - * The async variant is {@see DomainsClient::getRegistrationAsync()} . - * - * @example samples/V1/DomainsClient/get_registration.php - * - * @param GetRegistrationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Registration - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRegistration(GetRegistrationRequest $request, array $callOptions = []): Registration - { - return $this->startApiCall('GetRegistration', $request, $callOptions)->wait(); - } - - /** - * Lists the `Registration` resources in a project. - * - * The async variant is {@see DomainsClient::listRegistrationsAsync()} . - * - * @example samples/V1/DomainsClient/list_registrations.php - * - * @param ListRegistrationsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listRegistrations(ListRegistrationsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRegistrations', $request, $callOptions); - } - - /** - * Registers a new domain name and creates a corresponding `Registration` - * resource. - * - * Call `RetrieveRegisterParameters` first to check availability of the domain - * name and determine parameters like price that are needed to build a call to - * this method. - * - * A successful call creates a `Registration` resource in state - * `REGISTRATION_PENDING`, which resolves to `ACTIVE` within 1-2 - * minutes, indicating that the domain was successfully registered. If the - * resource ends up in state `REGISTRATION_FAILED`, it indicates that the - * domain was not registered successfully, and you can safely delete the - * resource and retry registration. - * - * The async variant is {@see DomainsClient::registerDomainAsync()} . - * - * @example samples/V1/DomainsClient/register_domain.php - * - * @param RegisterDomainRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 registerDomain(RegisterDomainRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('RegisterDomain', $request, $callOptions)->wait(); - } - - /** - * Resets the authorization code of the `Registration` to a new random string. - * - * You can call this method only after 60 days have elapsed since the initial - * domain registration. - * - * The async variant is {@see DomainsClient::resetAuthorizationCodeAsync()} . - * - * @example samples/V1/DomainsClient/reset_authorization_code.php - * - * @param ResetAuthorizationCodeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AuthorizationCode - * - * @throws ApiException Thrown if the API call fails. - */ - public function resetAuthorizationCode(ResetAuthorizationCodeRequest $request, array $callOptions = []): AuthorizationCode - { - return $this->startApiCall('ResetAuthorizationCode', $request, $callOptions)->wait(); - } - - /** - * Gets the authorization code of the `Registration` for the purpose of - * transferring the domain to another registrar. - * - * You can call this method only after 60 days have elapsed since the initial - * domain registration. - * - * The async variant is {@see DomainsClient::retrieveAuthorizationCodeAsync()} . - * - * @example samples/V1/DomainsClient/retrieve_authorization_code.php - * - * @param RetrieveAuthorizationCodeRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return AuthorizationCode - * - * @throws ApiException Thrown if the API call fails. - */ - public function retrieveAuthorizationCode(RetrieveAuthorizationCodeRequest $request, array $callOptions = []): AuthorizationCode - { - return $this->startApiCall('RetrieveAuthorizationCode', $request, $callOptions)->wait(); - } - - /** - * Gets parameters needed to register a new domain name, including price and - * up-to-date availability. Use the returned values to call `RegisterDomain`. - * - * The async variant is {@see DomainsClient::retrieveRegisterParametersAsync()} . - * - * @example samples/V1/DomainsClient/retrieve_register_parameters.php - * - * @param RetrieveRegisterParametersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RetrieveRegisterParametersResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function retrieveRegisterParameters(RetrieveRegisterParametersRequest $request, array $callOptions = []): RetrieveRegisterParametersResponse - { - return $this->startApiCall('RetrieveRegisterParameters', $request, $callOptions)->wait(); - } - - /** - * Gets parameters needed to transfer a domain name from another registrar to - * Cloud Domains. For domains managed by Google Domains, transferring to Cloud - * Domains is not supported. - * - * - * Use the returned values to call `TransferDomain`. - * - * The async variant is {@see DomainsClient::retrieveTransferParametersAsync()} . - * - * @example samples/V1/DomainsClient/retrieve_transfer_parameters.php - * - * @param RetrieveTransferParametersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return RetrieveTransferParametersResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function retrieveTransferParameters(RetrieveTransferParametersRequest $request, array $callOptions = []): RetrieveTransferParametersResponse - { - return $this->startApiCall('RetrieveTransferParameters', $request, $callOptions)->wait(); - } - - /** - * Searches for available domain names similar to the provided query. - * - * Availability results from this method are approximate; call - * `RetrieveRegisterParameters` on a domain before registering to confirm - * availability. - * - * The async variant is {@see DomainsClient::searchDomainsAsync()} . - * - * @example samples/V1/DomainsClient/search_domains.php - * - * @param SearchDomainsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return SearchDomainsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function searchDomains(SearchDomainsRequest $request, array $callOptions = []): SearchDomainsResponse - { - return $this->startApiCall('SearchDomains', $request, $callOptions)->wait(); - } - - /** - * Transfers a domain name from another registrar to Cloud Domains. For - * domains managed by Google Domains, transferring to Cloud Domains is not - * supported. - * - * - * Before calling this method, go to the domain's current registrar to unlock - * the domain for transfer and retrieve the domain's transfer authorization - * code. Then call `RetrieveTransferParameters` to confirm that the domain is - * unlocked and to get values needed to build a call to this method. - * - * A successful call creates a `Registration` resource in state - * `TRANSFER_PENDING`. It can take several days to complete the transfer - * process. The registrant can often speed up this process by approving the - * transfer through the current registrar, either by clicking a link in an - * email from the registrar or by visiting the registrar's website. - * - * A few minutes after transfer approval, the resource transitions to state - * `ACTIVE`, indicating that the transfer was successful. If the transfer is - * rejected or the request expires without being approved, the resource can - * end up in state `TRANSFER_FAILED`. If transfer fails, you can safely delete - * the resource and retry the transfer. - * - * The async variant is {@see DomainsClient::transferDomainAsync()} . - * - * @example samples/V1/DomainsClient/transfer_domain.php - * - * @param TransferDomainRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 transferDomain(TransferDomainRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('TransferDomain', $request, $callOptions)->wait(); - } - - /** - * Updates select fields of a `Registration` resource, notably `labels`. To - * update other fields, use the appropriate custom update method: - * - * * To update management settings, see `ConfigureManagementSettings` - * * To update DNS configuration, see `ConfigureDnsSettings` - * * To update contact information, see `ConfigureContactSettings` - * - * The async variant is {@see DomainsClient::updateRegistrationAsync()} . - * - * @example samples/V1/DomainsClient/update_registration.php - * - * @param UpdateRegistrationRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateRegistration(UpdateRegistrationRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateRegistration', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/Domains/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Domains/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 4ed76d3335ed..000000000000 --- a/owl-bot-staging/Domains/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.domains.v1", - "libraryPackage": "Google\\Cloud\\Domains\\V1", - "services": { - "Domains": { - "clients": { - "grpc": { - "libraryClient": "DomainsGapicClient", - "rpcs": { - "ConfigureContactSettings": { - "methods": [ - "configureContactSettings" - ] - }, - "ConfigureDnsSettings": { - "methods": [ - "configureDnsSettings" - ] - }, - "ConfigureManagementSettings": { - "methods": [ - "configureManagementSettings" - ] - }, - "DeleteRegistration": { - "methods": [ - "deleteRegistration" - ] - }, - "ExportRegistration": { - "methods": [ - "exportRegistration" - ] - }, - "GetRegistration": { - "methods": [ - "getRegistration" - ] - }, - "ListRegistrations": { - "methods": [ - "listRegistrations" - ] - }, - "RegisterDomain": { - "methods": [ - "registerDomain" - ] - }, - "ResetAuthorizationCode": { - "methods": [ - "resetAuthorizationCode" - ] - }, - "RetrieveAuthorizationCode": { - "methods": [ - "retrieveAuthorizationCode" - ] - }, - "RetrieveRegisterParameters": { - "methods": [ - "retrieveRegisterParameters" - ] - }, - "RetrieveTransferParameters": { - "methods": [ - "retrieveTransferParameters" - ] - }, - "SearchDomains": { - "methods": [ - "searchDomains" - ] - }, - "TransferDomain": { - "methods": [ - "transferDomain" - ] - }, - "UpdateRegistration": { - "methods": [ - "updateRegistration" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/Domains/v1/src/V1/resources/domains_client_config.json b/owl-bot-staging/Domains/v1/src/V1/resources/domains_client_config.json deleted file mode 100644 index e2c083de3554..000000000000 --- a/owl-bot-staging/Domains/v1/src/V1/resources/domains_client_config.json +++ /dev/null @@ -1,119 +0,0 @@ -{ - "interfaces": { - "google.cloud.domains.v1.Domains": { - "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": { - "ConfigureContactSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ConfigureDnsSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ConfigureManagementSettings": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "DeleteRegistration": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ExportRegistration": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetRegistration": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListRegistrations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RegisterDomain": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ResetAuthorizationCode": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RetrieveAuthorizationCode": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RetrieveRegisterParameters": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "RetrieveTransferParameters": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SearchDomains": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TransferDomain": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateRegistration": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Domains/v1/src/V1/resources/domains_descriptor_config.php b/owl-bot-staging/Domains/v1/src/V1/resources/domains_descriptor_config.php deleted file mode 100644 index 5d662988f1e2..000000000000 --- a/owl-bot-staging/Domains/v1/src/V1/resources/domains_descriptor_config.php +++ /dev/null @@ -1,277 +0,0 @@ - [ - 'google.cloud.domains.v1.Domains' => [ - 'ConfigureContactSettings' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Domains\V1\Registration', - 'metadataReturnType' => '\Google\Cloud\Domains\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'registration', - 'fieldAccessors' => [ - 'getRegistration', - ], - ], - ], - ], - 'ConfigureDnsSettings' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Domains\V1\Registration', - 'metadataReturnType' => '\Google\Cloud\Domains\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'registration', - 'fieldAccessors' => [ - 'getRegistration', - ], - ], - ], - ], - 'ConfigureManagementSettings' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Domains\V1\Registration', - 'metadataReturnType' => '\Google\Cloud\Domains\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'registration', - 'fieldAccessors' => [ - 'getRegistration', - ], - ], - ], - ], - 'DeleteRegistration' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\Domains\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ExportRegistration' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Domains\V1\Registration', - 'metadataReturnType' => '\Google\Cloud\Domains\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'RegisterDomain' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Domains\V1\Registration', - 'metadataReturnType' => '\Google\Cloud\Domains\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'TransferDomain' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Domains\V1\Registration', - 'metadataReturnType' => '\Google\Cloud\Domains\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateRegistration' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Domains\V1\Registration', - 'metadataReturnType' => '\Google\Cloud\Domains\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'registration.name', - 'fieldAccessors' => [ - 'getRegistration', - 'getName', - ], - ], - ], - ], - 'GetRegistration' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Domains\V1\Registration', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListRegistrations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRegistrations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Domains\V1\ListRegistrationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ResetAuthorizationCode' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Domains\V1\AuthorizationCode', - 'headerParams' => [ - [ - 'keyName' => 'registration', - 'fieldAccessors' => [ - 'getRegistration', - ], - ], - ], - ], - 'RetrieveAuthorizationCode' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Domains\V1\AuthorizationCode', - 'headerParams' => [ - [ - 'keyName' => 'registration', - 'fieldAccessors' => [ - 'getRegistration', - ], - ], - ], - ], - 'RetrieveRegisterParameters' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Domains\V1\RetrieveRegisterParametersResponse', - 'headerParams' => [ - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'RetrieveTransferParameters' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Domains\V1\RetrieveTransferParametersResponse', - 'headerParams' => [ - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'SearchDomains' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Domains\V1\SearchDomainsResponse', - 'headerParams' => [ - [ - 'keyName' => 'location', - 'fieldAccessors' => [ - 'getLocation', - ], - ], - ], - ], - 'templateMap' => [ - 'location' => 'projects/{project}/locations/{location}', - 'registration' => 'projects/{project}/locations/{location}/registrations/{registration}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Domains/v1/src/V1/resources/domains_rest_client_config.php b/owl-bot-staging/Domains/v1/src/V1/resources/domains_rest_client_config.php deleted file mode 100644 index 52bd5773353d..000000000000 --- a/owl-bot-staging/Domains/v1/src/V1/resources/domains_rest_client_config.php +++ /dev/null @@ -1,291 +0,0 @@ - [ - 'google.cloud.domains.v1.Domains' => [ - 'ConfigureContactSettings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{registration=projects/*/locations/*/registrations/*}:configureContactSettings', - 'body' => '*', - 'placeholders' => [ - 'registration' => [ - 'getters' => [ - 'getRegistration', - ], - ], - ], - ], - 'ConfigureDnsSettings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{registration=projects/*/locations/*/registrations/*}:configureDnsSettings', - 'body' => '*', - 'placeholders' => [ - 'registration' => [ - 'getters' => [ - 'getRegistration', - ], - ], - ], - ], - 'ConfigureManagementSettings' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{registration=projects/*/locations/*/registrations/*}:configureManagementSettings', - 'body' => '*', - 'placeholders' => [ - 'registration' => [ - 'getters' => [ - 'getRegistration', - ], - ], - ], - ], - 'DeleteRegistration' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/registrations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ExportRegistration' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/registrations/*}:export', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRegistration' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/registrations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListRegistrations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/registrations', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'RegisterDomain' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/registrations:register', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ResetAuthorizationCode' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{registration=projects/*/locations/*/registrations/*}:resetAuthorizationCode', - 'body' => '*', - 'placeholders' => [ - 'registration' => [ - 'getters' => [ - 'getRegistration', - ], - ], - ], - ], - 'RetrieveAuthorizationCode' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{registration=projects/*/locations/*/registrations/*}:retrieveAuthorizationCode', - 'placeholders' => [ - 'registration' => [ - 'getters' => [ - 'getRegistration', - ], - ], - ], - ], - 'RetrieveRegisterParameters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{location=projects/*/locations/*}/registrations:retrieveRegisterParameters', - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - ], - ], - 'RetrieveTransferParameters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{location=projects/*/locations/*}/registrations:retrieveTransferParameters', - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - ], - ], - 'SearchDomains' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{location=projects/*/locations/*}/registrations:searchDomains', - 'placeholders' => [ - 'location' => [ - 'getters' => [ - 'getLocation', - ], - ], - ], - ], - 'TransferDomain' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/registrations:transfer', - 'body' => '*', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateRegistration' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{registration.name=projects/*/locations/*/registrations/*}', - 'body' => 'registration', - 'placeholders' => [ - 'registration.name' => [ - 'getters' => [ - 'getRegistration', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.iam.v1.IAMPolicy' => [ - 'GetIamPolicy' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/registrations/*}:getIamPolicy', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/registrations/*}:setIamPolicy', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/registrations/*}:testIamPermissions', - 'body' => '*', - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - '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/Domains/v1/tests/Unit/V1/Client/DomainsClientTest.php b/owl-bot-staging/Domains/v1/tests/Unit/V1/Client/DomainsClientTest.php deleted file mode 100644 index 20653ee0f3de..000000000000 --- a/owl-bot-staging/Domains/v1/tests/Unit/V1/Client/DomainsClientTest.php +++ /dev/null @@ -1,1792 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return DomainsClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new DomainsClient($options); - } - - /** @test */ - public function configureContactSettingsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/configureContactSettingsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $domainName = 'domainName104118566'; - $expectedResponse = new Registration(); - $expectedResponse->setName($name); - $expectedResponse->setDomainName($domainName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/configureContactSettingsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $updateMask = new FieldMask(); - $request = (new ConfigureContactSettingsRequest()) - ->setRegistration($formattedRegistration) - ->setUpdateMask($updateMask); - $response = $gapicClient->configureContactSettings($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.domains.v1.Domains/ConfigureContactSettings', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getRegistration(); - $this->assertProtobufEquals($formattedRegistration, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/configureContactSettingsTest'); - $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 configureContactSettingsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/configureContactSettingsTest'); - $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 - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $updateMask = new FieldMask(); - $request = (new ConfigureContactSettingsRequest()) - ->setRegistration($formattedRegistration) - ->setUpdateMask($updateMask); - $response = $gapicClient->configureContactSettings($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/configureContactSettingsTest'); - 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 configureDnsSettingsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/configureDnsSettingsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $domainName = 'domainName104118566'; - $expectedResponse = new Registration(); - $expectedResponse->setName($name); - $expectedResponse->setDomainName($domainName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/configureDnsSettingsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $updateMask = new FieldMask(); - $request = (new ConfigureDnsSettingsRequest()) - ->setRegistration($formattedRegistration) - ->setUpdateMask($updateMask); - $response = $gapicClient->configureDnsSettings($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.domains.v1.Domains/ConfigureDnsSettings', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getRegistration(); - $this->assertProtobufEquals($formattedRegistration, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/configureDnsSettingsTest'); - $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 configureDnsSettingsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/configureDnsSettingsTest'); - $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 - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $updateMask = new FieldMask(); - $request = (new ConfigureDnsSettingsRequest()) - ->setRegistration($formattedRegistration) - ->setUpdateMask($updateMask); - $response = $gapicClient->configureDnsSettings($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/configureDnsSettingsTest'); - 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 configureManagementSettingsTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/configureManagementSettingsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $domainName = 'domainName104118566'; - $expectedResponse = new Registration(); - $expectedResponse->setName($name); - $expectedResponse->setDomainName($domainName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/configureManagementSettingsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $updateMask = new FieldMask(); - $request = (new ConfigureManagementSettingsRequest()) - ->setRegistration($formattedRegistration) - ->setUpdateMask($updateMask); - $response = $gapicClient->configureManagementSettings($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.domains.v1.Domains/ConfigureManagementSettings', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getRegistration(); - $this->assertProtobufEquals($formattedRegistration, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/configureManagementSettingsTest'); - $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 configureManagementSettingsExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/configureManagementSettingsTest'); - $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 - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $updateMask = new FieldMask(); - $request = (new ConfigureManagementSettingsRequest()) - ->setRegistration($formattedRegistration) - ->setUpdateMask($updateMask); - $response = $gapicClient->configureManagementSettings($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/configureManagementSettingsTest'); - 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 deleteRegistrationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteRegistrationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteRegistrationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $request = (new DeleteRegistrationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteRegistration($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.domains.v1.Domains/DeleteRegistration', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteRegistrationTest'); - $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 deleteRegistrationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteRegistrationTest'); - $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->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $request = (new DeleteRegistrationRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteRegistration($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteRegistrationTest'); - 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 exportRegistrationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportRegistrationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $domainName = 'domainName104118566'; - $expectedResponse = new Registration(); - $expectedResponse->setName($name2); - $expectedResponse->setDomainName($domainName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/exportRegistrationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $request = (new ExportRegistrationRequest()) - ->setName($formattedName); - $response = $gapicClient->exportRegistration($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.domains.v1.Domains/ExportRegistration', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportRegistrationTest'); - $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 exportRegistrationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/exportRegistrationTest'); - $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->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $request = (new ExportRegistrationRequest()) - ->setName($formattedName); - $response = $gapicClient->exportRegistration($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/exportRegistrationTest'); - 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 getRegistrationTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $domainName = 'domainName104118566'; - $expectedResponse = new Registration(); - $expectedResponse->setName($name2); - $expectedResponse->setDomainName($domainName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $request = (new GetRegistrationRequest()) - ->setName($formattedName); - $response = $gapicClient->getRegistration($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.domains.v1.Domains/GetRegistration', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRegistrationExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $request = (new GetRegistrationRequest()) - ->setName($formattedName); - try { - $gapicClient->getRegistration($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRegistrationsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $registrationsElement = new Registration(); - $registrations = [ - $registrationsElement, - ]; - $expectedResponse = new ListRegistrationsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRegistrations($registrations); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListRegistrationsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRegistrations($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRegistrations()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.domains.v1.Domains/ListRegistrations', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRegistrationsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListRegistrationsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRegistrations($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function registerDomainTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/registerDomainTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $domainName = 'domainName104118566'; - $expectedResponse = new Registration(); - $expectedResponse->setName($name); - $expectedResponse->setDomainName($domainName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/registerDomainTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $registration = new Registration(); - $registrationDomainName = 'registrationDomainName1873916680'; - $registration->setDomainName($registrationDomainName); - $registrationContactSettings = new ContactSettings(); - $contactSettingsPrivacy = ContactPrivacy::CONTACT_PRIVACY_UNSPECIFIED; - $registrationContactSettings->setPrivacy($contactSettingsPrivacy); - $contactSettingsRegistrantContact = new Contact(); - $registrantContactPostalAddress = new PostalAddress(); - $contactSettingsRegistrantContact->setPostalAddress($registrantContactPostalAddress); - $registrantContactEmail = 'registrantContactEmail1001340839'; - $contactSettingsRegistrantContact->setEmail($registrantContactEmail); - $registrantContactPhoneNumber = 'registrantContactPhoneNumber-2077279710'; - $contactSettingsRegistrantContact->setPhoneNumber($registrantContactPhoneNumber); - $registrationContactSettings->setRegistrantContact($contactSettingsRegistrantContact); - $contactSettingsAdminContact = new Contact(); - $adminContactPostalAddress = new PostalAddress(); - $contactSettingsAdminContact->setPostalAddress($adminContactPostalAddress); - $adminContactEmail = 'adminContactEmail1687004235'; - $contactSettingsAdminContact->setEmail($adminContactEmail); - $adminContactPhoneNumber = 'adminContactPhoneNumber-516910138'; - $contactSettingsAdminContact->setPhoneNumber($adminContactPhoneNumber); - $registrationContactSettings->setAdminContact($contactSettingsAdminContact); - $contactSettingsTechnicalContact = new Contact(); - $technicalContactPostalAddress = new PostalAddress(); - $contactSettingsTechnicalContact->setPostalAddress($technicalContactPostalAddress); - $technicalContactEmail = 'technicalContactEmail-221168807'; - $contactSettingsTechnicalContact->setEmail($technicalContactEmail); - $technicalContactPhoneNumber = 'technicalContactPhoneNumber582887508'; - $contactSettingsTechnicalContact->setPhoneNumber($technicalContactPhoneNumber); - $registrationContactSettings->setTechnicalContact($contactSettingsTechnicalContact); - $registration->setContactSettings($registrationContactSettings); - $yearlyPrice = new Money(); - $request = (new RegisterDomainRequest()) - ->setParent($formattedParent) - ->setRegistration($registration) - ->setYearlyPrice($yearlyPrice); - $response = $gapicClient->registerDomain($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.domains.v1.Domains/RegisterDomain', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRegistration(); - $this->assertProtobufEquals($registration, $actualValue); - $actualValue = $actualApiRequestObject->getYearlyPrice(); - $this->assertProtobufEquals($yearlyPrice, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/registerDomainTest'); - $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 registerDomainExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/registerDomainTest'); - $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]'); - $registration = new Registration(); - $registrationDomainName = 'registrationDomainName1873916680'; - $registration->setDomainName($registrationDomainName); - $registrationContactSettings = new ContactSettings(); - $contactSettingsPrivacy = ContactPrivacy::CONTACT_PRIVACY_UNSPECIFIED; - $registrationContactSettings->setPrivacy($contactSettingsPrivacy); - $contactSettingsRegistrantContact = new Contact(); - $registrantContactPostalAddress = new PostalAddress(); - $contactSettingsRegistrantContact->setPostalAddress($registrantContactPostalAddress); - $registrantContactEmail = 'registrantContactEmail1001340839'; - $contactSettingsRegistrantContact->setEmail($registrantContactEmail); - $registrantContactPhoneNumber = 'registrantContactPhoneNumber-2077279710'; - $contactSettingsRegistrantContact->setPhoneNumber($registrantContactPhoneNumber); - $registrationContactSettings->setRegistrantContact($contactSettingsRegistrantContact); - $contactSettingsAdminContact = new Contact(); - $adminContactPostalAddress = new PostalAddress(); - $contactSettingsAdminContact->setPostalAddress($adminContactPostalAddress); - $adminContactEmail = 'adminContactEmail1687004235'; - $contactSettingsAdminContact->setEmail($adminContactEmail); - $adminContactPhoneNumber = 'adminContactPhoneNumber-516910138'; - $contactSettingsAdminContact->setPhoneNumber($adminContactPhoneNumber); - $registrationContactSettings->setAdminContact($contactSettingsAdminContact); - $contactSettingsTechnicalContact = new Contact(); - $technicalContactPostalAddress = new PostalAddress(); - $contactSettingsTechnicalContact->setPostalAddress($technicalContactPostalAddress); - $technicalContactEmail = 'technicalContactEmail-221168807'; - $contactSettingsTechnicalContact->setEmail($technicalContactEmail); - $technicalContactPhoneNumber = 'technicalContactPhoneNumber582887508'; - $contactSettingsTechnicalContact->setPhoneNumber($technicalContactPhoneNumber); - $registrationContactSettings->setTechnicalContact($contactSettingsTechnicalContact); - $registration->setContactSettings($registrationContactSettings); - $yearlyPrice = new Money(); - $request = (new RegisterDomainRequest()) - ->setParent($formattedParent) - ->setRegistration($registration) - ->setYearlyPrice($yearlyPrice); - $response = $gapicClient->registerDomain($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/registerDomainTest'); - 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 resetAuthorizationCodeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $code = 'code3059181'; - $expectedResponse = new AuthorizationCode(); - $expectedResponse->setCode($code); - $transport->addResponse($expectedResponse); - // Mock request - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $request = (new ResetAuthorizationCodeRequest()) - ->setRegistration($formattedRegistration); - $response = $gapicClient->resetAuthorizationCode($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.domains.v1.Domains/ResetAuthorizationCode', $actualFuncCall); - $actualValue = $actualRequestObject->getRegistration(); - $this->assertProtobufEquals($formattedRegistration, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function resetAuthorizationCodeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $request = (new ResetAuthorizationCodeRequest()) - ->setRegistration($formattedRegistration); - try { - $gapicClient->resetAuthorizationCode($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function retrieveAuthorizationCodeTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $code = 'code3059181'; - $expectedResponse = new AuthorizationCode(); - $expectedResponse->setCode($code); - $transport->addResponse($expectedResponse); - // Mock request - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $request = (new RetrieveAuthorizationCodeRequest()) - ->setRegistration($formattedRegistration); - $response = $gapicClient->retrieveAuthorizationCode($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.domains.v1.Domains/RetrieveAuthorizationCode', $actualFuncCall); - $actualValue = $actualRequestObject->getRegistration(); - $this->assertProtobufEquals($formattedRegistration, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function retrieveAuthorizationCodeExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $request = (new RetrieveAuthorizationCodeRequest()) - ->setRegistration($formattedRegistration); - try { - $gapicClient->retrieveAuthorizationCode($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function retrieveRegisterParametersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RetrieveRegisterParametersResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $domainName = 'domainName104118566'; - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new RetrieveRegisterParametersRequest()) - ->setDomainName($domainName) - ->setLocation($formattedLocation); - $response = $gapicClient->retrieveRegisterParameters($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.domains.v1.Domains/RetrieveRegisterParameters', $actualFuncCall); - $actualValue = $actualRequestObject->getDomainName(); - $this->assertProtobufEquals($domainName, $actualValue); - $actualValue = $actualRequestObject->getLocation(); - $this->assertProtobufEquals($formattedLocation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function retrieveRegisterParametersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $domainName = 'domainName104118566'; - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new RetrieveRegisterParametersRequest()) - ->setDomainName($domainName) - ->setLocation($formattedLocation); - try { - $gapicClient->retrieveRegisterParameters($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function retrieveTransferParametersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new RetrieveTransferParametersResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $domainName = 'domainName104118566'; - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new RetrieveTransferParametersRequest()) - ->setDomainName($domainName) - ->setLocation($formattedLocation); - $response = $gapicClient->retrieveTransferParameters($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.domains.v1.Domains/RetrieveTransferParameters', $actualFuncCall); - $actualValue = $actualRequestObject->getDomainName(); - $this->assertProtobufEquals($domainName, $actualValue); - $actualValue = $actualRequestObject->getLocation(); - $this->assertProtobufEquals($formattedLocation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function retrieveTransferParametersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $domainName = 'domainName104118566'; - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new RetrieveTransferParametersRequest()) - ->setDomainName($domainName) - ->setLocation($formattedLocation); - try { - $gapicClient->retrieveTransferParameters($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchDomainsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new SearchDomainsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $query = 'query107944136'; - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new SearchDomainsRequest()) - ->setQuery($query) - ->setLocation($formattedLocation); - $response = $gapicClient->searchDomains($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.domains.v1.Domains/SearchDomains', $actualFuncCall); - $actualValue = $actualRequestObject->getQuery(); - $this->assertProtobufEquals($query, $actualValue); - $actualValue = $actualRequestObject->getLocation(); - $this->assertProtobufEquals($formattedLocation, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function searchDomainsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $query = 'query107944136'; - $formattedLocation = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new SearchDomainsRequest()) - ->setQuery($query) - ->setLocation($formattedLocation); - try { - $gapicClient->searchDomains($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function transferDomainTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/transferDomainTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $domainName = 'domainName104118566'; - $expectedResponse = new Registration(); - $expectedResponse->setName($name); - $expectedResponse->setDomainName($domainName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/transferDomainTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $registration = new Registration(); - $registrationDomainName = 'registrationDomainName1873916680'; - $registration->setDomainName($registrationDomainName); - $registrationContactSettings = new ContactSettings(); - $contactSettingsPrivacy = ContactPrivacy::CONTACT_PRIVACY_UNSPECIFIED; - $registrationContactSettings->setPrivacy($contactSettingsPrivacy); - $contactSettingsRegistrantContact = new Contact(); - $registrantContactPostalAddress = new PostalAddress(); - $contactSettingsRegistrantContact->setPostalAddress($registrantContactPostalAddress); - $registrantContactEmail = 'registrantContactEmail1001340839'; - $contactSettingsRegistrantContact->setEmail($registrantContactEmail); - $registrantContactPhoneNumber = 'registrantContactPhoneNumber-2077279710'; - $contactSettingsRegistrantContact->setPhoneNumber($registrantContactPhoneNumber); - $registrationContactSettings->setRegistrantContact($contactSettingsRegistrantContact); - $contactSettingsAdminContact = new Contact(); - $adminContactPostalAddress = new PostalAddress(); - $contactSettingsAdminContact->setPostalAddress($adminContactPostalAddress); - $adminContactEmail = 'adminContactEmail1687004235'; - $contactSettingsAdminContact->setEmail($adminContactEmail); - $adminContactPhoneNumber = 'adminContactPhoneNumber-516910138'; - $contactSettingsAdminContact->setPhoneNumber($adminContactPhoneNumber); - $registrationContactSettings->setAdminContact($contactSettingsAdminContact); - $contactSettingsTechnicalContact = new Contact(); - $technicalContactPostalAddress = new PostalAddress(); - $contactSettingsTechnicalContact->setPostalAddress($technicalContactPostalAddress); - $technicalContactEmail = 'technicalContactEmail-221168807'; - $contactSettingsTechnicalContact->setEmail($technicalContactEmail); - $technicalContactPhoneNumber = 'technicalContactPhoneNumber582887508'; - $contactSettingsTechnicalContact->setPhoneNumber($technicalContactPhoneNumber); - $registrationContactSettings->setTechnicalContact($contactSettingsTechnicalContact); - $registration->setContactSettings($registrationContactSettings); - $yearlyPrice = new Money(); - $request = (new TransferDomainRequest()) - ->setParent($formattedParent) - ->setRegistration($registration) - ->setYearlyPrice($yearlyPrice); - $response = $gapicClient->transferDomain($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.domains.v1.Domains/TransferDomain', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRegistration(); - $this->assertProtobufEquals($registration, $actualValue); - $actualValue = $actualApiRequestObject->getYearlyPrice(); - $this->assertProtobufEquals($yearlyPrice, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/transferDomainTest'); - $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 transferDomainExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/transferDomainTest'); - $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]'); - $registration = new Registration(); - $registrationDomainName = 'registrationDomainName1873916680'; - $registration->setDomainName($registrationDomainName); - $registrationContactSettings = new ContactSettings(); - $contactSettingsPrivacy = ContactPrivacy::CONTACT_PRIVACY_UNSPECIFIED; - $registrationContactSettings->setPrivacy($contactSettingsPrivacy); - $contactSettingsRegistrantContact = new Contact(); - $registrantContactPostalAddress = new PostalAddress(); - $contactSettingsRegistrantContact->setPostalAddress($registrantContactPostalAddress); - $registrantContactEmail = 'registrantContactEmail1001340839'; - $contactSettingsRegistrantContact->setEmail($registrantContactEmail); - $registrantContactPhoneNumber = 'registrantContactPhoneNumber-2077279710'; - $contactSettingsRegistrantContact->setPhoneNumber($registrantContactPhoneNumber); - $registrationContactSettings->setRegistrantContact($contactSettingsRegistrantContact); - $contactSettingsAdminContact = new Contact(); - $adminContactPostalAddress = new PostalAddress(); - $contactSettingsAdminContact->setPostalAddress($adminContactPostalAddress); - $adminContactEmail = 'adminContactEmail1687004235'; - $contactSettingsAdminContact->setEmail($adminContactEmail); - $adminContactPhoneNumber = 'adminContactPhoneNumber-516910138'; - $contactSettingsAdminContact->setPhoneNumber($adminContactPhoneNumber); - $registrationContactSettings->setAdminContact($contactSettingsAdminContact); - $contactSettingsTechnicalContact = new Contact(); - $technicalContactPostalAddress = new PostalAddress(); - $contactSettingsTechnicalContact->setPostalAddress($technicalContactPostalAddress); - $technicalContactEmail = 'technicalContactEmail-221168807'; - $contactSettingsTechnicalContact->setEmail($technicalContactEmail); - $technicalContactPhoneNumber = 'technicalContactPhoneNumber582887508'; - $contactSettingsTechnicalContact->setPhoneNumber($technicalContactPhoneNumber); - $registrationContactSettings->setTechnicalContact($contactSettingsTechnicalContact); - $registration->setContactSettings($registrationContactSettings); - $yearlyPrice = new Money(); - $request = (new TransferDomainRequest()) - ->setParent($formattedParent) - ->setRegistration($registration) - ->setYearlyPrice($yearlyPrice); - $response = $gapicClient->transferDomain($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/transferDomainTest'); - 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 updateRegistrationTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateRegistrationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $domainName = 'domainName104118566'; - $expectedResponse = new Registration(); - $expectedResponse->setName($name); - $expectedResponse->setDomainName($domainName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateRegistrationTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateRegistrationRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateRegistration($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.domains.v1.Domains/UpdateRegistration', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateRegistrationTest'); - $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 updateRegistrationExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateRegistrationTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $request = (new UpdateRegistrationRequest()) - ->setUpdateMask($updateMask); - $response = $gapicClient->updateRegistration($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateRegistrationTest'); - 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 configureContactSettingsAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/configureContactSettingsTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $domainName = 'domainName104118566'; - $expectedResponse = new Registration(); - $expectedResponse->setName($name); - $expectedResponse->setDomainName($domainName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/configureContactSettingsTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedRegistration = $gapicClient->registrationName('[PROJECT]', '[LOCATION]', '[REGISTRATION]'); - $updateMask = new FieldMask(); - $request = (new ConfigureContactSettingsRequest()) - ->setRegistration($formattedRegistration) - ->setUpdateMask($updateMask); - $response = $gapicClient->configureContactSettingsAsync($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.domains.v1.Domains/ConfigureContactSettings', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getRegistration(); - $this->assertProtobufEquals($formattedRegistration, $actualValue); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/configureContactSettingsTest'); - $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/EdgeNetwork/v1/proto/src/GPBMetadata/Google/Cloud/Edgenetwork/V1/Resources.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/GPBMetadata/Google/Cloud/Edgenetwork/V1/Resources.php deleted file mode 100644 index 96e1b6ed9fe44f1792e91019dbfd61aa11a8475a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 7182 zcmc&(&2t+`6-OF>NKcmI%!Wj(kj+E{oMefFO@Kuqo0TQSh&7VdR-X{N z*YCal{zG@qg|8}`%x0bzFhl7bDZw67T+ay{-LaJ3V0V{!itZe^rp3IXqSRVSv(-`R zwMOR#lKRfT(^*;RJ5JwXCEaocMu{1H-D!_%S?RW6A$ne}`z6eVI=99f2_ zB%&I)2=kCinvJRg3zpVnmYi-$j1Hbfn_%$q9j*h3(v2iT=9F|_7tT;gbhJ{~Au-Fvw;%!^}qX~$kL5Nb;Y(gd`g8UW8ZM2%TMsri`{J33LA2)Z}^=ji$qh4G2 zk_@mwv-q8mmjRlsrW*cEmJg0ApTUhOm=57rKNqBZj$K5w_!t&`Jr7I#`qmxW#u)Xs zVO^hq^|z<`EiUZD}YAPXL-Fm`(E*l$C$&5aWFtgFCsgBF-mfG74il< zGq(9BK5_G;#w)MFvb%TWo4RJHuHywho(w!a=R#u*RwgBsZ@{%ivs2%$wwld) zwR0LSvyetmHma2lL9_hxzm_qL zp^BpD*^-5iFf*VsXcx;~o-DjBn-4|fF@cEW2axLZUDajG%Ta2PS$}`(Nemfm^xZa+ zU)q8EN#7Le7>h4?1PoO(4w)C2KBJiCW5N?g{6zkX1f<7mF2zf(Frf-_ zEUKC&axCr$`RnkWW!n49!15n$99?*0gz_>iEn_+&vH@yMU`<8ruECcr$8md_zOR}t zifQ1zWvOv_i{ospA~S(FcW5)_46n+LvBDIQL_?L?BbKoJL2DaU$`vIK4EV6twW4 z6kOq$53yP^wZ856*u{E<60h1ld5+!XCd`v6eon|f`;8tGvq(A#>*fEL1Q`FMW2T#) zJ}?8SdU)?deoB1^-Bqbl83=%7)~i#a&@1f2H{PmL+o9{8LDsU2h%+8sq0}4j-l|2s zpF$S01Db!R|fi%w-`y>c$O+niICGs^!i0ZZ`#Y}8yZ?H*1V>cGa-*blhnBnl1D z1oJ${6ULLU(XbMY8>X*o9-do@G<*g_?nz!GxI~+bWcQC zmN|aMCVv`LoaEc(^~Sl(agt||yvax@(N|LaBR^mV1R!zz@*vyH?Cm^vy z`hAb}v5(xd823_&!_cuTEcLL==8c$?j4M&Sz%zRTK1wR43PqR~+h<_$ar5J5>(i#F zT`Sd2<4GNB*Cj~R>YYmU2Usp7^M6W&CK)3I1?K@d6noq?l&`~;_)NSxBs4>(@CEuF zwz#QH3#<9Qjv_Iv9KpfELmvhWmp)vyaOyQWIUzf_vj9#i(Qgic(HqI*ZhfyAUt=Y z5OM}PwK+YH8_X-*f%I6Y6L?*Kq%p$(Q0CAX(c(P-hSNVLlWNh7sS$? z$Jle?U8Xq{Z&?i1>Ra^=(avxDBLUa3M?DRi8_SWfew!Y9+KFcs(Pa-i`_$v^J15?@ zu=kD6Td}Il?cG1|>-Wj4oBUO)Sfy93VjW+#nxfHNe6se}XtoC5F9gL3)FT5kdCyTJL@>gXZm8{#o3_Vz@eHT6^8o%l-eIy8hK!2bY<=fOMx diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/GPBMetadata/Google/Cloud/Edgenetwork/V1/Service.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/GPBMetadata/Google/Cloud/Edgenetwork/V1/Service.php deleted file mode 100644 index 7576c88b58e07052c420e13eafb9559284cdb23a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 12466 zcmcgyOK%)m6{gyW6JO`y+&tW|Go(_E6x(sS$IfHo%6KyEM~unK*iL{^i&nY&+Ah+r zYO1OeGQnbmkU&B#5CS0p%HzNIK;C8Qqk96>cJM#Yn~gpWw)xY*EcqZryI9<=?n8qYnOo4ck5o6nEIycZdOUYTy^V}JgIDg#NdVNJEs=R%2mtv^;Iqiy+S(ttJT-5 zc3JlWD}XSD&9N4a-Q-;S*nT(FHb@AZPTz zs}uF>y6%yn?m2fDZYp3W{9mz&!3s6ISa2MdTETUE(~NYAM6_a@tJ=f~I^(%#lWJv_ zY+283*XxXRg@|xT4YFA{6s4FBlzrejn_k^A@03KM_t_3gCD;}~k z!#%Y8XI=2F*^o1VwOwn@%R=_rJGKbWLZuSM<2}gR(J+E&JY7Nm`U)CLov?VAljc}% z=ak&eJ)ayJ6mqPZ4arZViKqF{Mdif?4Vluqh#5g}ULo*AV2D>&#jB>(MAG_#ctj9a zBNyl0(8YpC=#Xb62y!`3s1wCYS-irR9Pc)`N>E5;LW)58gA*7()6l>J+YjDz9pbN$ zZ`8qC_$}01vpg_KR@1f7zS-iHe-twREnLDERU>lvU_UaRN2WDsETj)$2 zn=tb&bW|*a($bd`EiHj{WNhOhIt7LnywcXUW40DnK`E?a{82+^=D?u=X%M*|QxC$z z&plVND=en_W_!R@*hELf3l`P=Q>iS(c|oYhlZ^^xNkCs{hKxrA49n?;upDDyIf5@Gge4boa8db^XH1Ap1mz8M#OGi|_KzgSq(IeK zNZv;S5R#l#M&w(uh!h4v?G0l50aBj_WL)4rY!2{jW-C}A*^+F-`-G-NdDSqK7H$+w|v2}{{hgJ-6h zXRhPPl#Yo+9-NCl($GjEbm6QgD62ZFWJT%;zg9^j)_K0$`d}p*6r}twJ1Mx9)14Dj#Ifsc=vu zhlCjHP-YvG65W8eY?;Do2{m^Qo2A0#PH?X`-5-{Jgok|ZR+o9*g zTaWe`J$M+MptHTYUxN9J4_kJ=@8;hfLFYWaJ0X=)*@8J^waNxh*W965 z2?YBvlFA;TTWa>kSV8CJZEMqU{lXvR@o=zlJFHhJH7Dk$;!fjhL546@RI+^7{wwQmey03Fj*}3+XntbLl>IM?=~{#8zSRIqHR^3 z1P++!`^GXlD`6c>xiP-0ML8u!cB><-D6!~I?*IAML}WZdXP3gG3OZbqp6qfyW@OR1 zMuA+dsSmHB{slNq5jlnbq@fdWQashhIr2zcrq^aH?L! zztvDb&0^jf`8Y5A&~#pM4(R0W{fMDyhWUCNo~`7KWimWRv@*F)}Ff zf}@(?e`Hq77~L4(6w`40cTi6qVz*f?RMM2{?X*)53%!(~Im`F?DU*d2f1T^hZ=r&p zfP(52yp4h?X-Wm%u2cTzIQLy=s^O0{e)6mK*FL`4Ht%EfQn_25vWXh-#dr<4gQq*G z0XDtSAP4Oj&Vf!shO78+@?zRREtN^`)m8b%7u4Dy(Wh}l3_7h4kV0qVI<0;J-%d1b zGZv}GbQhe$FJDsin#Z%LJA+2OqW0iF8XBhShN@gNclPn!M6?Nmy0%#XKZf4$D&6WvMIpl2bV-~ROQNl?C}%(uEuPCo^J~UI#E04H%mc%e^8#N< zTIiH)(j?ZDCjEBTi_*e4x6MAIO17nZK$4~{6_irJ_i-M6IzB2C&q!@NhXAOdRgyeCd9@g^6cMjm13`)Uz-2fv+qiHYz>i%ZmB z3pJAc&Z`Y4l}fa!F1)`M(wptUWPi=!P4GXmRCL&1b7tQZM@UM4EdV5|$NOteno>R9 zUkmBY)WaOpM63RqzfRR(b5go$gbGIewSbVUATMp4G^K+7pZ+>hZRpW%VW{;Lh`$zc zTR~9s&3yjFix;8?2(Nis^zf3QsFKh1= z`0ica-h>OJn{Mp>J$wM$jq6v!OUM)a(z|j;o}SCtgoogle.cloud.edgenetwork.v1.CreateInterconnectAttachmentRequest - */ -class CreateInterconnectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * interconnect_attachment_id from the method_signature of Create RPC - * - * Generated from protobuf field string interconnect_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $interconnect_attachment_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectAttachment interconnect_attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $interconnect_attachment = null; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $parent Required. Value for parent. Please see - * {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * @param \Google\Cloud\EdgeNetwork\V1\InterconnectAttachment $interconnectAttachment Required. The resource being created - * @param string $interconnectAttachmentId Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * interconnect_attachment_id from the method_signature of Create RPC - * - * @return \Google\Cloud\EdgeNetwork\V1\CreateInterconnectAttachmentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\EdgeNetwork\V1\InterconnectAttachment $interconnectAttachment, string $interconnectAttachmentId): self - { - return (new self()) - ->setParent($parent) - ->setInterconnectAttachment($interconnectAttachment) - ->setInterconnectAttachmentId($interconnectAttachmentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Value for parent. - * @type string $interconnect_attachment_id - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * interconnect_attachment_id from the method_signature of Create RPC - * @type \Google\Cloud\EdgeNetwork\V1\InterconnectAttachment $interconnect_attachment - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * interconnect_attachment_id from the method_signature of Create RPC - * - * Generated from protobuf field string interconnect_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getInterconnectAttachmentId() - { - return $this->interconnect_attachment_id; - } - - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * interconnect_attachment_id from the method_signature of Create RPC - * - * Generated from protobuf field string interconnect_attachment_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setInterconnectAttachmentId($var) - { - GPBUtil::checkString($var, True); - $this->interconnect_attachment_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectAttachment interconnect_attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\EdgeNetwork\V1\InterconnectAttachment|null - */ - public function getInterconnectAttachment() - { - return $this->interconnect_attachment; - } - - public function hasInterconnectAttachment() - { - return isset($this->interconnect_attachment); - } - - public function clearInterconnectAttachment() - { - unset($this->interconnect_attachment); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectAttachment interconnect_attachment = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\EdgeNetwork\V1\InterconnectAttachment $var - * @return $this - */ - public function setInterconnectAttachment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\InterconnectAttachment::class); - $this->interconnect_attachment = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateNetworkRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateNetworkRequest.php deleted file mode 100644 index f6a3d7b68b95..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateNetworkRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.edgenetwork.v1.CreateNetworkRequest - */ -class CreateNetworkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * network_id from the method_signature of Create RPC - * - * Generated from protobuf field string network_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $network_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Network network = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $network = 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. Value for parent. Please see - * {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * @param \Google\Cloud\EdgeNetwork\V1\Network $network Required. The resource being created - * @param string $networkId Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * network_id from the method_signature of Create RPC - * - * @return \Google\Cloud\EdgeNetwork\V1\CreateNetworkRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\EdgeNetwork\V1\Network $network, string $networkId): self - { - return (new self()) - ->setParent($parent) - ->setNetwork($network) - ->setNetworkId($networkId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Value for parent. - * @type string $network_id - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * network_id from the method_signature of Create RPC - * @type \Google\Cloud\EdgeNetwork\V1\Network $network - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * network_id from the method_signature of Create RPC - * - * Generated from protobuf field string network_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNetworkId() - { - return $this->network_id; - } - - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * network_id from the method_signature of Create RPC - * - * Generated from protobuf field string network_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNetworkId($var) - { - GPBUtil::checkString($var, True); - $this->network_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Network network = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\EdgeNetwork\V1\Network|null - */ - public function getNetwork() - { - return $this->network; - } - - public function hasNetwork() - { - return isset($this->network); - } - - public function clearNetwork() - { - unset($this->network); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Network network = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\EdgeNetwork\V1\Network $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\Network::class); - $this->network = $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/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateRouterRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateRouterRequest.php deleted file mode 100644 index 4bbaaa3346e6..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateRouterRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.edgenetwork.v1.CreateRouterRequest - */ -class CreateRouterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * router_id from the method_signature of Create RPC - * - * Generated from protobuf field string router_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $router_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Router router = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $router = 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. Value for parent. Please see - * {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * @param \Google\Cloud\EdgeNetwork\V1\Router $router Required. The resource being created - * @param string $routerId Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * router_id from the method_signature of Create RPC - * - * @return \Google\Cloud\EdgeNetwork\V1\CreateRouterRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\EdgeNetwork\V1\Router $router, string $routerId): self - { - return (new self()) - ->setParent($parent) - ->setRouter($router) - ->setRouterId($routerId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Value for parent. - * @type string $router_id - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * router_id from the method_signature of Create RPC - * @type \Google\Cloud\EdgeNetwork\V1\Router $router - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * router_id from the method_signature of Create RPC - * - * Generated from protobuf field string router_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRouterId() - { - return $this->router_id; - } - - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * router_id from the method_signature of Create RPC - * - * Generated from protobuf field string router_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRouterId($var) - { - GPBUtil::checkString($var, True); - $this->router_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Router router = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\EdgeNetwork\V1\Router|null - */ - public function getRouter() - { - return $this->router; - } - - public function hasRouter() - { - return isset($this->router); - } - - public function clearRouter() - { - unset($this->router); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Router router = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\EdgeNetwork\V1\Router $var - * @return $this - */ - public function setRouter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\Router::class); - $this->router = $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/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateSubnetRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateSubnetRequest.php deleted file mode 100644 index 66558a9ba58f..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/CreateSubnetRequest.php +++ /dev/null @@ -1,247 +0,0 @@ -google.cloud.edgenetwork.v1.CreateSubnetRequest - */ -class CreateSubnetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * subnet_id from the method_signature of Create RPC - * - * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subnet_id = ''; - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subnet = 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. Value for parent. Please see - * {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * @param \Google\Cloud\EdgeNetwork\V1\Subnet $subnet Required. The resource being created - * @param string $subnetId Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * subnet_id from the method_signature of Create RPC - * - * @return \Google\Cloud\EdgeNetwork\V1\CreateSubnetRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\EdgeNetwork\V1\Subnet $subnet, string $subnetId): self - { - return (new self()) - ->setParent($parent) - ->setSubnet($subnet) - ->setSubnetId($subnetId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Value for parent. - * @type string $subnet_id - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * subnet_id from the method_signature of Create RPC - * @type \Google\Cloud\EdgeNetwork\V1\Subnet $subnet - * Required. The resource being created - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Value for parent. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * subnet_id from the method_signature of Create RPC - * - * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSubnetId() - { - return $this->subnet_id; - } - - /** - * Required. Id of the requesting object - * If auto-generating Id server-side, remove this field and - * subnet_id from the method_signature of Create RPC - * - * Generated from protobuf field string subnet_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSubnetId($var) - { - GPBUtil::checkString($var, True); - $this->subnet_id = $var; - - return $this; - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\EdgeNetwork\V1\Subnet|null - */ - public function getSubnet() - { - return $this->subnet; - } - - public function hasSubnet() - { - return isset($this->subnet); - } - - public function clearSubnet() - { - unset($this->subnet); - } - - /** - * Required. The resource being created - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Subnet subnet = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\EdgeNetwork\V1\Subnet $var - * @return $this - */ - public function setSubnet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\Subnet::class); - $this->subnet = $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/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteInterconnectAttachmentRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteInterconnectAttachmentRequest.php deleted file mode 100644 index 4bceb13d9f0b..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteInterconnectAttachmentRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.edgenetwork.v1.DeleteInterconnectAttachmentRequest - */ -class DeleteInterconnectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see EdgeNetworkClient::interconnectAttachmentName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\DeleteInterconnectAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteNetworkRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteNetworkRequest.php deleted file mode 100644 index baca7343c01d..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteNetworkRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.edgenetwork.v1.DeleteNetworkRequest - */ -class DeleteNetworkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see EdgeNetworkClient::networkName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\DeleteNetworkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteRouterRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteRouterRequest.php deleted file mode 100644 index 6ce2a9abce39..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteRouterRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.edgenetwork.v1.DeleteRouterRequest - */ -class DeleteRouterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see EdgeNetworkClient::routerName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\DeleteRouterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteSubnetRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteSubnetRequest.php deleted file mode 100644 index 74e05066fb86..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DeleteSubnetRequest.php +++ /dev/null @@ -1,155 +0,0 @@ -google.cloud.edgenetwork.v1.DeleteSubnetRequest - */ -class DeleteSubnetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $request_id = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see EdgeNetworkClient::subnetName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\DeleteSubnetRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getRequestId() - { - return $this->request_id; - } - - /** - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes after the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * - * Generated from protobuf field string request_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setRequestId($var) - { - GPBUtil::checkString($var, True); - $this->request_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseInterconnectRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseInterconnectRequest.php deleted file mode 100644 index 4b54776b9332..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseInterconnectRequest.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.edgenetwork.v1.DiagnoseInterconnectRequest - */ -class DiagnoseInterconnectRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the interconnect 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 interconnect resource. Please see - * {@see EdgeNetworkClient::interconnectName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\DiagnoseInterconnectRequest - * - * @experimental - */ - public static function 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 interconnect resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the interconnect 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 interconnect 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/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseInterconnectResponse.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseInterconnectResponse.php deleted file mode 100644 index 0d8c929ede38..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseInterconnectResponse.php +++ /dev/null @@ -1,122 +0,0 @@ -google.cloud.edgenetwork.v1.DiagnoseInterconnectResponse - */ -class DiagnoseInterconnectResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The time when the interconnect diagnostics was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; - */ - protected $update_time = null; - /** - * The network status of a specific interconnect. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics result = 2; - */ - protected $result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $update_time - * The time when the interconnect diagnostics was last updated. - * @type \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics $result - * The network status of a specific interconnect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The time when the interconnect diagnostics was last updated. - * - * 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 time when the interconnect diagnostics was last updated. - * - * 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; - } - - /** - * The network status of a specific interconnect. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics result = 2; - * @return \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics|null - */ - public function getResult() - { - return $this->result; - } - - public function hasResult() - { - return isset($this->result); - } - - public function clearResult() - { - unset($this->result); - } - - /** - * The network status of a specific interconnect. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics result = 2; - * @param \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics::class); - $this->result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkRequest.php deleted file mode 100644 index 51fde143de64..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.edgenetwork.v1.DiagnoseNetworkRequest - */ -class DiagnoseNetworkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the network 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 network resource. Please see - * {@see EdgeNetworkClient::networkName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\DiagnoseNetworkRequest - * - * @experimental - */ - public static function 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 network resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the network 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 network 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/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse.php deleted file mode 100644 index 8b8bf18fd4d8..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.edgenetwork.v1.DiagnoseNetworkResponse - */ -class DiagnoseNetworkResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The time when the network status was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; - */ - protected $update_time = null; - /** - * The network status of a specific network. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.DiagnoseNetworkResponse.NetworkStatus result = 2; - */ - protected $result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $update_time - * The time when the network status was last updated. - * @type \Google\Cloud\EdgeNetwork\V1\DiagnoseNetworkResponse\NetworkStatus $result - * The network status of a specific network. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The time when the network status was last updated. - * - * 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 time when the network status was last updated. - * - * 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; - } - - /** - * The network status of a specific network. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.DiagnoseNetworkResponse.NetworkStatus result = 2; - * @return \Google\Cloud\EdgeNetwork\V1\DiagnoseNetworkResponse\NetworkStatus|null - */ - public function getResult() - { - return $this->result; - } - - public function hasResult() - { - return isset($this->result); - } - - public function clearResult() - { - unset($this->result); - } - - /** - * The network status of a specific network. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.DiagnoseNetworkResponse.NetworkStatus result = 2; - * @param \Google\Cloud\EdgeNetwork\V1\DiagnoseNetworkResponse\NetworkStatus $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\DiagnoseNetworkResponse\NetworkStatus::class); - $this->result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse/NetworkStatus.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse/NetworkStatus.php deleted file mode 100644 index de5cd7217f49..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse/NetworkStatus.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.edgenetwork.v1.DiagnoseNetworkResponse.NetworkStatus - */ -class NetworkStatus extends \Google\Protobuf\Internal\Message -{ - /** - * A list of status for the subnets under the current network. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.SubnetStatus subnet_status = 1; - */ - private $subnet_status; - /** - * The MACsec status of internal links. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.DiagnoseNetworkResponse.NetworkStatus.MacsecStatus macsec_status_internal_links = 2; - */ - protected $macsec_status_internal_links = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\EdgeNetwork\V1\SubnetStatus>|\Google\Protobuf\Internal\RepeatedField $subnet_status - * A list of status for the subnets under the current network. - * @type int $macsec_status_internal_links - * The MACsec status of internal links. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * A list of status for the subnets under the current network. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.SubnetStatus subnet_status = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubnetStatus() - { - return $this->subnet_status; - } - - /** - * A list of status for the subnets under the current network. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.SubnetStatus subnet_status = 1; - * @param array<\Google\Cloud\EdgeNetwork\V1\SubnetStatus>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubnetStatus($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\SubnetStatus::class); - $this->subnet_status = $arr; - - return $this; - } - - /** - * The MACsec status of internal links. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.DiagnoseNetworkResponse.NetworkStatus.MacsecStatus macsec_status_internal_links = 2; - * @return int - */ - public function getMacsecStatusInternalLinks() - { - return $this->macsec_status_internal_links; - } - - /** - * The MACsec status of internal links. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.DiagnoseNetworkResponse.NetworkStatus.MacsecStatus macsec_status_internal_links = 2; - * @param int $var - * @return $this - */ - public function setMacsecStatusInternalLinks($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\EdgeNetwork\V1\DiagnoseNetworkResponse\NetworkStatus\MacsecStatus::class); - $this->macsec_status_internal_links = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NetworkStatus::class, \Google\Cloud\EdgeNetwork\V1\DiagnoseNetworkResponse_NetworkStatus::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse/NetworkStatus/MacsecStatus.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse/NetworkStatus/MacsecStatus.php deleted file mode 100644 index 2417dc189209..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseNetworkResponse/NetworkStatus/MacsecStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.edgenetwork.v1.DiagnoseNetworkResponse.NetworkStatus.MacsecStatus - */ -class MacsecStatus -{ - /** - * MACsec status not specified, likely due to missing metrics. - * - * Generated from protobuf enum MACSEC_STATUS_UNSPECIFIED = 0; - */ - const MACSEC_STATUS_UNSPECIFIED = 0; - /** - * All relevant links have at least one MACsec session up. - * - * Generated from protobuf enum SECURE = 1; - */ - const SECURE = 1; - /** - * At least one relevant link does not have any MACsec sessions up. - * - * Generated from protobuf enum UNSECURE = 2; - */ - const UNSECURE = 2; - - private static $valueToName = [ - self::MACSEC_STATUS_UNSPECIFIED => 'MACSEC_STATUS_UNSPECIFIED', - self::SECURE => 'SECURE', - self::UNSECURE => 'UNSECURE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(MacsecStatus::class, \Google\Cloud\EdgeNetwork\V1\DiagnoseNetworkResponse_NetworkStatus_MacsecStatus::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseRouterRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseRouterRequest.php deleted file mode 100644 index bb19420ef91e..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseRouterRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.edgenetwork.v1.DiagnoseRouterRequest - */ -class DiagnoseRouterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the router 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 router resource. Please see - * {@see EdgeNetworkClient::routerName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\DiagnoseRouterRequest - * - * @experimental - */ - public static function 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 router resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the router 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 router 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/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseRouterResponse.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseRouterResponse.php deleted file mode 100644 index 833f8a2f0cf3..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/DiagnoseRouterResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.edgenetwork.v1.DiagnoseRouterResponse - */ -class DiagnoseRouterResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The time when the router status was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 1; - */ - protected $update_time = null; - /** - * The network status of a specific router. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.RouterStatus result = 2; - */ - protected $result = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $update_time - * The time when the router status was last updated. - * @type \Google\Cloud\EdgeNetwork\V1\RouterStatus $result - * The network status of a specific router. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The time when the router status was last updated. - * - * 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 time when the router status was last updated. - * - * 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; - } - - /** - * The network status of a specific router. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.RouterStatus result = 2; - * @return \Google\Cloud\EdgeNetwork\V1\RouterStatus|null - */ - public function getResult() - { - return $this->result; - } - - public function hasResult() - { - return isset($this->result); - } - - public function clearResult() - { - unset($this->result); - } - - /** - * The network status of a specific router. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.RouterStatus result = 2; - * @param \Google\Cloud\EdgeNetwork\V1\RouterStatus $var - * @return $this - */ - public function setResult($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\RouterStatus::class); - $this->result = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetInterconnectAttachmentRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetInterconnectAttachmentRequest.php deleted file mode 100644 index 86fe850adc6b..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetInterconnectAttachmentRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.edgenetwork.v1.GetInterconnectAttachmentRequest - */ -class GetInterconnectAttachmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see EdgeNetworkClient::interconnectAttachmentName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\GetInterconnectAttachmentRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetInterconnectRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetInterconnectRequest.php deleted file mode 100644 index e4bec26ad53e..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetInterconnectRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.edgenetwork.v1.GetInterconnectRequest - */ -class GetInterconnectRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see EdgeNetworkClient::interconnectName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\GetInterconnectRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetNetworkRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetNetworkRequest.php deleted file mode 100644 index 866b8997d290..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetNetworkRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.edgenetwork.v1.GetNetworkRequest - */ -class GetNetworkRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see EdgeNetworkClient::networkName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\GetNetworkRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetRouterRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetRouterRequest.php deleted file mode 100644 index 97c99a0439f4..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetRouterRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.edgenetwork.v1.GetRouterRequest - */ -class GetRouterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see EdgeNetworkClient::routerName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\GetRouterRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetSubnetRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetSubnetRequest.php deleted file mode 100644 index 35b6a9200013..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetSubnetRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.edgenetwork.v1.GetSubnetRequest - */ -class GetSubnetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see EdgeNetworkClient::subnetName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\GetSubnetRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetZoneRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetZoneRequest.php deleted file mode 100644 index 226d2f545f4b..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/GetZoneRequest.php +++ /dev/null @@ -1,83 +0,0 @@ -google.cloud.edgenetwork.v1.GetZoneRequest - */ -class GetZoneRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. Name of the resource - * Please see {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\GetZoneRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. Name of the resource - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. Name of the resource - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InitializeZoneRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InitializeZoneRequest.php deleted file mode 100644 index ecccd767dca9..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InitializeZoneRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.edgenetwork.v1.InitializeZoneRequest - */ -class InitializeZoneRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the zone 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 zone resource. Please see - * {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\InitializeZoneRequest - * - * @experimental - */ - public static function 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 zone resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the zone 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 zone 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/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InitializeZoneResponse.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InitializeZoneResponse.php deleted file mode 100644 index 2268e8824ebc..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InitializeZoneResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.edgenetwork.v1.InitializeZoneResponse - */ -class InitializeZoneResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Interconnect.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Interconnect.php deleted file mode 100644 index 3f31f9ae700b..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Interconnect.php +++ /dev/null @@ -1,371 +0,0 @@ -google.cloud.edgenetwork.v1.Interconnect - */ -class Interconnect extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The canonical resource name of the interconnect. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Output only. The time when the subnet was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the subnet was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Labels associated with this resource. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Optional. Type of interconnect, which takes only the value 'DEDICATED' for - * now. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Interconnect.InterconnectType interconnect_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $interconnect_type = 0; - /** - * Output only. Unique identifier for the link. - * - * Generated from protobuf field string uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uuid = ''; - /** - * Output only. Cloud resource name of the switch device. - * - * Generated from protobuf field string device_cloud_resource_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $device_cloud_resource_name = ''; - /** - * Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the - * interconnect. - * - * Generated from protobuf field repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $physical_ports; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The canonical resource name of the interconnect. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the subnet was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the subnet was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels associated with this resource. - * @type string $description - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * @type int $interconnect_type - * Optional. Type of interconnect, which takes only the value 'DEDICATED' for - * now. - * @type string $uuid - * Output only. Unique identifier for the link. - * @type string $device_cloud_resource_name - * Output only. Cloud resource name of the switch device. - * @type array|\Google\Protobuf\Internal\RepeatedField $physical_ports - * Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the - * interconnect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The canonical resource name of the interconnect. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The canonical resource name of the interconnect. - * - * 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; - } - - /** - * Output only. The time when the subnet was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the subnet was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the subnet was 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 when the subnet was 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; - } - - /** - * Labels associated with this resource. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels associated with this resource. - * - * 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; - } - - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Optional. Type of interconnect, which takes only the value 'DEDICATED' for - * now. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Interconnect.InterconnectType interconnect_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getInterconnectType() - { - return $this->interconnect_type; - } - - /** - * Optional. Type of interconnect, which takes only the value 'DEDICATED' for - * now. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Interconnect.InterconnectType interconnect_type = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setInterconnectType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\EdgeNetwork\V1\Interconnect\InterconnectType::class); - $this->interconnect_type = $var; - - return $this; - } - - /** - * Output only. Unique identifier for the link. - * - * Generated from protobuf field string uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUuid() - { - return $this->uuid; - } - - /** - * Output only. Unique identifier for the link. - * - * Generated from protobuf field string uuid = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUuid($var) - { - GPBUtil::checkString($var, True); - $this->uuid = $var; - - return $this; - } - - /** - * Output only. Cloud resource name of the switch device. - * - * Generated from protobuf field string device_cloud_resource_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDeviceCloudResourceName() - { - return $this->device_cloud_resource_name; - } - - /** - * Output only. Cloud resource name of the switch device. - * - * Generated from protobuf field string device_cloud_resource_name = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDeviceCloudResourceName($var) - { - GPBUtil::checkString($var, True); - $this->device_cloud_resource_name = $var; - - return $this; - } - - /** - * Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the - * interconnect. - * - * Generated from protobuf field repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPhysicalPorts() - { - return $this->physical_ports; - } - - /** - * Output only. Physical ports (e.g., TenGigE0/0/0/1) that form the - * interconnect. - * - * Generated from protobuf field repeated string physical_ports = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPhysicalPorts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->physical_ports = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Interconnect/InterconnectType.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Interconnect/InterconnectType.php deleted file mode 100644 index 42b30cbd42ee..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Interconnect/InterconnectType.php +++ /dev/null @@ -1,57 +0,0 @@ -google.cloud.edgenetwork.v1.Interconnect.InterconnectType - */ -class InterconnectType -{ - /** - * Unspecified. - * - * Generated from protobuf enum INTERCONNECT_TYPE_UNSPECIFIED = 0; - */ - const INTERCONNECT_TYPE_UNSPECIFIED = 0; - /** - * Dedicated Interconnect. - * - * Generated from protobuf enum DEDICATED = 1; - */ - const DEDICATED = 1; - - private static $valueToName = [ - self::INTERCONNECT_TYPE_UNSPECIFIED => 'INTERCONNECT_TYPE_UNSPECIFIED', - self::DEDICATED => 'DEDICATED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(InterconnectType::class, \Google\Cloud\EdgeNetwork\V1\Interconnect_InterconnectType::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectAttachment.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectAttachment.php deleted file mode 100644 index f1082b7d7ad3..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectAttachment.php +++ /dev/null @@ -1,417 +0,0 @@ -google.cloud.edgenetwork.v1.InterconnectAttachment - */ -class InterconnectAttachment extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The canonical resource name of the interconnect attachment. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Output only. The time when the interconnect attachment was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the interconnect attachment was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Labels associated with this resource. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The canonical name of underlying Interconnect object that this - * attachment's traffic will traverse through. The name is in the form of - * `projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}`. - * - * Generated from protobuf field string interconnect = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $interconnect = ''; - /** - * Optional. The canonical Network name in the form of - * `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`. - * - * Generated from protobuf field string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $network = ''; - /** - * Required. VLAN id provided by user. Must be site-wise unique. - * - * Generated from protobuf field int32 vlan_id = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $vlan_id = 0; - /** - * IP (L3) MTU value of the virtual edge cloud. - * Valid values are: 1500 and 9000. - * Default to 1500 if not set. - * - * Generated from protobuf field int32 mtu = 9; - */ - protected $mtu = 0; - /** - * Output only. Current stage of the resource to the device by config push. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The canonical resource name of the interconnect attachment. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the interconnect attachment was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the interconnect attachment was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels associated with this resource. - * @type string $description - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * @type string $interconnect - * Required. The canonical name of underlying Interconnect object that this - * attachment's traffic will traverse through. The name is in the form of - * `projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}`. - * @type string $network - * Optional. The canonical Network name in the form of - * `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`. - * @type int $vlan_id - * Required. VLAN id provided by user. Must be site-wise unique. - * @type int $mtu - * IP (L3) MTU value of the virtual edge cloud. - * Valid values are: 1500 and 9000. - * Default to 1500 if not set. - * @type int $state - * Output only. Current stage of the resource to the device by config push. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The canonical resource name of the interconnect attachment. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The canonical resource name of the interconnect attachment. - * - * 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; - } - - /** - * Output only. The time when the interconnect attachment was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the interconnect attachment was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the interconnect attachment was 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 when the interconnect attachment was 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; - } - - /** - * Labels associated with this resource. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels associated with this resource. - * - * 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; - } - - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The canonical name of underlying Interconnect object that this - * attachment's traffic will traverse through. The name is in the form of - * `projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}`. - * - * Generated from protobuf field string interconnect = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getInterconnect() - { - return $this->interconnect; - } - - /** - * Required. The canonical name of underlying Interconnect object that this - * attachment's traffic will traverse through. The name is in the form of - * `projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}`. - * - * Generated from protobuf field string interconnect = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setInterconnect($var) - { - GPBUtil::checkString($var, True); - $this->interconnect = $var; - - return $this; - } - - /** - * Optional. The canonical Network name in the form of - * `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`. - * - * Generated from protobuf field string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Optional. The canonical Network name in the form of - * `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`. - * - * Generated from protobuf field string network = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Required. VLAN id provided by user. Must be site-wise unique. - * - * Generated from protobuf field int32 vlan_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getVlanId() - { - return $this->vlan_id; - } - - /** - * Required. VLAN id provided by user. Must be site-wise unique. - * - * Generated from protobuf field int32 vlan_id = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setVlanId($var) - { - GPBUtil::checkInt32($var); - $this->vlan_id = $var; - - return $this; - } - - /** - * IP (L3) MTU value of the virtual edge cloud. - * Valid values are: 1500 and 9000. - * Default to 1500 if not set. - * - * Generated from protobuf field int32 mtu = 9; - * @return int - */ - public function getMtu() - { - return $this->mtu; - } - - /** - * IP (L3) MTU value of the virtual edge cloud. - * Valid values are: 1500 and 9000. - * Default to 1500 if not set. - * - * Generated from protobuf field int32 mtu = 9; - * @param int $var - * @return $this - */ - public function setMtu($var) - { - GPBUtil::checkInt32($var); - $this->mtu = $var; - - return $this; - } - - /** - * Output only. Current stage of the resource to the device by config push. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current stage of the resource to the device by config push. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\EdgeNetwork\V1\ResourceState::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics.php deleted file mode 100644 index c8acdd241add..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics.php +++ /dev/null @@ -1,144 +0,0 @@ -google.cloud.edgenetwork.v1.InterconnectDiagnostics - */ -class InterconnectDiagnostics extends \Google\Protobuf\Internal\Message -{ - /** - * The MAC address of the Interconnect's bundle interface. - * - * Generated from protobuf field string mac_address = 1; - */ - protected $mac_address = ''; - /** - * A list of LinkLayerAddress, describing the ip address and corresponding - * link-layer address of the neighbors for this interconnect. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.LinkLayerAddress link_layer_addresses = 2; - */ - private $link_layer_addresses; - /** - * A list of LinkStatus objects, used to describe the status for each link on - * the Interconnect. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkStatus links = 3; - */ - private $links; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $mac_address - * The MAC address of the Interconnect's bundle interface. - * @type array<\Google\Cloud\EdgeNetwork\V1\LinkLayerAddress>|\Google\Protobuf\Internal\RepeatedField $link_layer_addresses - * A list of LinkLayerAddress, describing the ip address and corresponding - * link-layer address of the neighbors for this interconnect. - * @type array<\Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkStatus>|\Google\Protobuf\Internal\RepeatedField $links - * A list of LinkStatus objects, used to describe the status for each link on - * the Interconnect. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The MAC address of the Interconnect's bundle interface. - * - * Generated from protobuf field string mac_address = 1; - * @return string - */ - public function getMacAddress() - { - return $this->mac_address; - } - - /** - * The MAC address of the Interconnect's bundle interface. - * - * Generated from protobuf field string mac_address = 1; - * @param string $var - * @return $this - */ - public function setMacAddress($var) - { - GPBUtil::checkString($var, True); - $this->mac_address = $var; - - return $this; - } - - /** - * A list of LinkLayerAddress, describing the ip address and corresponding - * link-layer address of the neighbors for this interconnect. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.LinkLayerAddress link_layer_addresses = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLinkLayerAddresses() - { - return $this->link_layer_addresses; - } - - /** - * A list of LinkLayerAddress, describing the ip address and corresponding - * link-layer address of the neighbors for this interconnect. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.LinkLayerAddress link_layer_addresses = 2; - * @param array<\Google\Cloud\EdgeNetwork\V1\LinkLayerAddress>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLinkLayerAddresses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\LinkLayerAddress::class); - $this->link_layer_addresses = $arr; - - return $this; - } - - /** - * A list of LinkStatus objects, used to describe the status for each link on - * the Interconnect. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkStatus links = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLinks() - { - return $this->links; - } - - /** - * A list of LinkStatus objects, used to describe the status for each link on - * the Interconnect. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkStatus links = 3; - * @param array<\Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkStatus>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLinks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkStatus::class); - $this->links = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLACPStatus.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLACPStatus.php deleted file mode 100644 index 27ff34a35e72..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLACPStatus.php +++ /dev/null @@ -1,256 +0,0 @@ -google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLACPStatus - */ -class LinkLACPStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The state of a LACP link. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLACPStatus.State state = 1; - */ - protected $state = 0; - /** - * System ID of the port on Google's side of the LACP exchange. - * - * Generated from protobuf field string google_system_id = 2; - */ - protected $google_system_id = ''; - /** - * System ID of the port on the neighbor's side of the LACP exchange. - * - * Generated from protobuf field string neighbor_system_id = 3; - */ - protected $neighbor_system_id = ''; - /** - * A true value indicates that the participant will allow the link to be - * used as part of the aggregate. - * A false value indicates the link should be used as an individual link. - * - * Generated from protobuf field bool aggregatable = 4; - */ - protected $aggregatable = false; - /** - * If true, the participant is collecting incoming frames on the link, - * otherwise false - * - * Generated from protobuf field bool collecting = 5; - */ - protected $collecting = false; - /** - * When true, the participant is distributing outgoing frames; when false, - * distribution is disabled - * - * Generated from protobuf field bool distributing = 6; - */ - protected $distributing = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $state - * The state of a LACP link. - * @type string $google_system_id - * System ID of the port on Google's side of the LACP exchange. - * @type string $neighbor_system_id - * System ID of the port on the neighbor's side of the LACP exchange. - * @type bool $aggregatable - * A true value indicates that the participant will allow the link to be - * used as part of the aggregate. - * A false value indicates the link should be used as an individual link. - * @type bool $collecting - * If true, the participant is collecting incoming frames on the link, - * otherwise false - * @type bool $distributing - * When true, the participant is distributing outgoing frames; when false, - * distribution is disabled - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The state of a LACP link. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLACPStatus.State state = 1; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * The state of a LACP link. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLACPStatus.State state = 1; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkLACPStatus\State::class); - $this->state = $var; - - return $this; - } - - /** - * System ID of the port on Google's side of the LACP exchange. - * - * Generated from protobuf field string google_system_id = 2; - * @return string - */ - public function getGoogleSystemId() - { - return $this->google_system_id; - } - - /** - * System ID of the port on Google's side of the LACP exchange. - * - * Generated from protobuf field string google_system_id = 2; - * @param string $var - * @return $this - */ - public function setGoogleSystemId($var) - { - GPBUtil::checkString($var, True); - $this->google_system_id = $var; - - return $this; - } - - /** - * System ID of the port on the neighbor's side of the LACP exchange. - * - * Generated from protobuf field string neighbor_system_id = 3; - * @return string - */ - public function getNeighborSystemId() - { - return $this->neighbor_system_id; - } - - /** - * System ID of the port on the neighbor's side of the LACP exchange. - * - * Generated from protobuf field string neighbor_system_id = 3; - * @param string $var - * @return $this - */ - public function setNeighborSystemId($var) - { - GPBUtil::checkString($var, True); - $this->neighbor_system_id = $var; - - return $this; - } - - /** - * A true value indicates that the participant will allow the link to be - * used as part of the aggregate. - * A false value indicates the link should be used as an individual link. - * - * Generated from protobuf field bool aggregatable = 4; - * @return bool - */ - public function getAggregatable() - { - return $this->aggregatable; - } - - /** - * A true value indicates that the participant will allow the link to be - * used as part of the aggregate. - * A false value indicates the link should be used as an individual link. - * - * Generated from protobuf field bool aggregatable = 4; - * @param bool $var - * @return $this - */ - public function setAggregatable($var) - { - GPBUtil::checkBool($var); - $this->aggregatable = $var; - - return $this; - } - - /** - * If true, the participant is collecting incoming frames on the link, - * otherwise false - * - * Generated from protobuf field bool collecting = 5; - * @return bool - */ - public function getCollecting() - { - return $this->collecting; - } - - /** - * If true, the participant is collecting incoming frames on the link, - * otherwise false - * - * Generated from protobuf field bool collecting = 5; - * @param bool $var - * @return $this - */ - public function setCollecting($var) - { - GPBUtil::checkBool($var); - $this->collecting = $var; - - return $this; - } - - /** - * When true, the participant is distributing outgoing frames; when false, - * distribution is disabled - * - * Generated from protobuf field bool distributing = 6; - * @return bool - */ - public function getDistributing() - { - return $this->distributing; - } - - /** - * When true, the participant is distributing outgoing frames; when false, - * distribution is disabled - * - * Generated from protobuf field bool distributing = 6; - * @param bool $var - * @return $this - */ - public function setDistributing($var) - { - GPBUtil::checkBool($var); - $this->distributing = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LinkLACPStatus::class, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics_LinkLACPStatus::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLACPStatus/State.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLACPStatus/State.php deleted file mode 100644 index 120c6589d9ab..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLACPStatus/State.php +++ /dev/null @@ -1,65 +0,0 @@ -google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLACPStatus.State - */ -class State -{ - /** - * The default state indicating state is in unknown state. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * The link is configured and active within the bundle. - * - * Generated from protobuf enum ACTIVE = 1; - */ - const ACTIVE = 1; - /** - * The link is not configured within the bundle, this means the rest of - * the object should be empty. - * - * Generated from protobuf enum DETACHED = 2; - */ - const DETACHED = 2; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::ACTIVE => 'ACTIVE', - self::DETACHED => 'DETACHED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics_LinkLACPStatus_State::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLLDPStatus.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLLDPStatus.php deleted file mode 100644 index e63d385f43d0..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkLLDPStatus.php +++ /dev/null @@ -1,252 +0,0 @@ -google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLLDPStatus - */ -class LinkLLDPStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The peer system's administratively assigned name. - * - * Generated from protobuf field string peer_system_name = 1; - */ - protected $peer_system_name = ''; - /** - * The textual description of the network entity of LLDP peer. - * - * Generated from protobuf field string peer_system_description = 2; - */ - protected $peer_system_description = ''; - /** - * The peer chassis component of the endpoint identifier associated with the - * transmitting LLDP agent. - * - * Generated from protobuf field string peer_chassis_id = 3; - */ - protected $peer_chassis_id = ''; - /** - * The format and source of the peer chassis identifier string. - * - * Generated from protobuf field string peer_chassis_id_type = 4; - */ - protected $peer_chassis_id_type = ''; - /** - * The port component of the endpoint identifier associated with the - * transmitting LLDP agent. If the specified port is an IEEE 802.3 Repeater - * port, then this TLV is optional. - * - * Generated from protobuf field string peer_port_id = 5; - */ - protected $peer_port_id = ''; - /** - * The format and source of the peer port identifier string. - * - * Generated from protobuf field string peer_port_id_type = 6; - */ - protected $peer_port_id_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $peer_system_name - * The peer system's administratively assigned name. - * @type string $peer_system_description - * The textual description of the network entity of LLDP peer. - * @type string $peer_chassis_id - * The peer chassis component of the endpoint identifier associated with the - * transmitting LLDP agent. - * @type string $peer_chassis_id_type - * The format and source of the peer chassis identifier string. - * @type string $peer_port_id - * The port component of the endpoint identifier associated with the - * transmitting LLDP agent. If the specified port is an IEEE 802.3 Repeater - * port, then this TLV is optional. - * @type string $peer_port_id_type - * The format and source of the peer port identifier string. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The peer system's administratively assigned name. - * - * Generated from protobuf field string peer_system_name = 1; - * @return string - */ - public function getPeerSystemName() - { - return $this->peer_system_name; - } - - /** - * The peer system's administratively assigned name. - * - * Generated from protobuf field string peer_system_name = 1; - * @param string $var - * @return $this - */ - public function setPeerSystemName($var) - { - GPBUtil::checkString($var, True); - $this->peer_system_name = $var; - - return $this; - } - - /** - * The textual description of the network entity of LLDP peer. - * - * Generated from protobuf field string peer_system_description = 2; - * @return string - */ - public function getPeerSystemDescription() - { - return $this->peer_system_description; - } - - /** - * The textual description of the network entity of LLDP peer. - * - * Generated from protobuf field string peer_system_description = 2; - * @param string $var - * @return $this - */ - public function setPeerSystemDescription($var) - { - GPBUtil::checkString($var, True); - $this->peer_system_description = $var; - - return $this; - } - - /** - * The peer chassis component of the endpoint identifier associated with the - * transmitting LLDP agent. - * - * Generated from protobuf field string peer_chassis_id = 3; - * @return string - */ - public function getPeerChassisId() - { - return $this->peer_chassis_id; - } - - /** - * The peer chassis component of the endpoint identifier associated with the - * transmitting LLDP agent. - * - * Generated from protobuf field string peer_chassis_id = 3; - * @param string $var - * @return $this - */ - public function setPeerChassisId($var) - { - GPBUtil::checkString($var, True); - $this->peer_chassis_id = $var; - - return $this; - } - - /** - * The format and source of the peer chassis identifier string. - * - * Generated from protobuf field string peer_chassis_id_type = 4; - * @return string - */ - public function getPeerChassisIdType() - { - return $this->peer_chassis_id_type; - } - - /** - * The format and source of the peer chassis identifier string. - * - * Generated from protobuf field string peer_chassis_id_type = 4; - * @param string $var - * @return $this - */ - public function setPeerChassisIdType($var) - { - GPBUtil::checkString($var, True); - $this->peer_chassis_id_type = $var; - - return $this; - } - - /** - * The port component of the endpoint identifier associated with the - * transmitting LLDP agent. If the specified port is an IEEE 802.3 Repeater - * port, then this TLV is optional. - * - * Generated from protobuf field string peer_port_id = 5; - * @return string - */ - public function getPeerPortId() - { - return $this->peer_port_id; - } - - /** - * The port component of the endpoint identifier associated with the - * transmitting LLDP agent. If the specified port is an IEEE 802.3 Repeater - * port, then this TLV is optional. - * - * Generated from protobuf field string peer_port_id = 5; - * @param string $var - * @return $this - */ - public function setPeerPortId($var) - { - GPBUtil::checkString($var, True); - $this->peer_port_id = $var; - - return $this; - } - - /** - * The format and source of the peer port identifier string. - * - * Generated from protobuf field string peer_port_id_type = 6; - * @return string - */ - public function getPeerPortIdType() - { - return $this->peer_port_id_type; - } - - /** - * The format and source of the peer port identifier string. - * - * Generated from protobuf field string peer_port_id_type = 6; - * @param string $var - * @return $this - */ - public function setPeerPortIdType($var) - { - GPBUtil::checkString($var, True); - $this->peer_port_id_type = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LinkLLDPStatus::class, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics_LinkLLDPStatus::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkStatus.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkStatus.php deleted file mode 100644 index 2b4e074f20d4..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/LinkStatus.php +++ /dev/null @@ -1,196 +0,0 @@ -google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkStatus - */ -class LinkStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The unique ID for this link assigned during turn up by Google. - * - * Generated from protobuf field string circuit_id = 1; - */ - protected $circuit_id = ''; - /** - * Describing the state of a LACP link. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLACPStatus lacp_status = 2; - */ - protected $lacp_status = null; - /** - * A list of LinkLLDPStatus objects, used to describe LLDP status of each - * peer for each link on the Interconnect. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLLDPStatus lldp_statuses = 3; - */ - private $lldp_statuses; - /** - * Packet counts specific statistics for this link. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics.PacketCounts packet_counts = 4; - */ - protected $packet_counts = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $circuit_id - * The unique ID for this link assigned during turn up by Google. - * @type \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkLACPStatus $lacp_status - * Describing the state of a LACP link. - * @type array<\Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkLLDPStatus>|\Google\Protobuf\Internal\RepeatedField $lldp_statuses - * A list of LinkLLDPStatus objects, used to describe LLDP status of each - * peer for each link on the Interconnect. - * @type \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\PacketCounts $packet_counts - * Packet counts specific statistics for this link. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The unique ID for this link assigned during turn up by Google. - * - * Generated from protobuf field string circuit_id = 1; - * @return string - */ - public function getCircuitId() - { - return $this->circuit_id; - } - - /** - * The unique ID for this link assigned during turn up by Google. - * - * Generated from protobuf field string circuit_id = 1; - * @param string $var - * @return $this - */ - public function setCircuitId($var) - { - GPBUtil::checkString($var, True); - $this->circuit_id = $var; - - return $this; - } - - /** - * Describing the state of a LACP link. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLACPStatus lacp_status = 2; - * @return \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkLACPStatus|null - */ - public function getLacpStatus() - { - return $this->lacp_status; - } - - public function hasLacpStatus() - { - return isset($this->lacp_status); - } - - public function clearLacpStatus() - { - unset($this->lacp_status); - } - - /** - * Describing the state of a LACP link. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLACPStatus lacp_status = 2; - * @param \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkLACPStatus $var - * @return $this - */ - public function setLacpStatus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkLACPStatus::class); - $this->lacp_status = $var; - - return $this; - } - - /** - * A list of LinkLLDPStatus objects, used to describe LLDP status of each - * peer for each link on the Interconnect. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLLDPStatus lldp_statuses = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLldpStatuses() - { - return $this->lldp_statuses; - } - - /** - * A list of LinkLLDPStatus objects, used to describe LLDP status of each - * peer for each link on the Interconnect. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.InterconnectDiagnostics.LinkLLDPStatus lldp_statuses = 3; - * @param array<\Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkLLDPStatus>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLldpStatuses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\LinkLLDPStatus::class); - $this->lldp_statuses = $arr; - - return $this; - } - - /** - * Packet counts specific statistics for this link. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics.PacketCounts packet_counts = 4; - * @return \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\PacketCounts|null - */ - public function getPacketCounts() - { - return $this->packet_counts; - } - - public function hasPacketCounts() - { - return isset($this->packet_counts); - } - - public function clearPacketCounts() - { - unset($this->packet_counts); - } - - /** - * Packet counts specific statistics for this link. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.InterconnectDiagnostics.PacketCounts packet_counts = 4; - * @param \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\PacketCounts $var - * @return $this - */ - public function setPacketCounts($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics\PacketCounts::class); - $this->packet_counts = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LinkStatus::class, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics_LinkStatus::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/PacketCounts.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/PacketCounts.php deleted file mode 100644 index fec679fa1fcf..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/InterconnectDiagnostics/PacketCounts.php +++ /dev/null @@ -1,252 +0,0 @@ -google.cloud.edgenetwork.v1.InterconnectDiagnostics.PacketCounts - */ -class PacketCounts extends \Google\Protobuf\Internal\Message -{ - /** - * The number of packets that are delivered. - * - * Generated from protobuf field int64 inbound_unicast = 1; - */ - protected $inbound_unicast = 0; - /** - * The number of inbound packets that contained errors. - * - * Generated from protobuf field int64 inbound_errors = 2; - */ - protected $inbound_errors = 0; - /** - * The number of inbound packets that were chosen to be discarded even - * though no errors had been detected to prevent their being deliverable. - * - * Generated from protobuf field int64 inbound_discards = 3; - */ - protected $inbound_discards = 0; - /** - * The total number of packets that are requested be transmitted. - * - * Generated from protobuf field int64 outbound_unicast = 4; - */ - protected $outbound_unicast = 0; - /** - * The number of outbound packets that could not be transmitted because of - * errors. - * - * Generated from protobuf field int64 outbound_errors = 5; - */ - protected $outbound_errors = 0; - /** - * The number of outbound packets that were chosen to be discarded even - * though no errors had been detected to prevent their being transmitted. - * - * Generated from protobuf field int64 outbound_discards = 6; - */ - protected $outbound_discards = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $inbound_unicast - * The number of packets that are delivered. - * @type int|string $inbound_errors - * The number of inbound packets that contained errors. - * @type int|string $inbound_discards - * The number of inbound packets that were chosen to be discarded even - * though no errors had been detected to prevent their being deliverable. - * @type int|string $outbound_unicast - * The total number of packets that are requested be transmitted. - * @type int|string $outbound_errors - * The number of outbound packets that could not be transmitted because of - * errors. - * @type int|string $outbound_discards - * The number of outbound packets that were chosen to be discarded even - * though no errors had been detected to prevent their being transmitted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The number of packets that are delivered. - * - * Generated from protobuf field int64 inbound_unicast = 1; - * @return int|string - */ - public function getInboundUnicast() - { - return $this->inbound_unicast; - } - - /** - * The number of packets that are delivered. - * - * Generated from protobuf field int64 inbound_unicast = 1; - * @param int|string $var - * @return $this - */ - public function setInboundUnicast($var) - { - GPBUtil::checkInt64($var); - $this->inbound_unicast = $var; - - return $this; - } - - /** - * The number of inbound packets that contained errors. - * - * Generated from protobuf field int64 inbound_errors = 2; - * @return int|string - */ - public function getInboundErrors() - { - return $this->inbound_errors; - } - - /** - * The number of inbound packets that contained errors. - * - * Generated from protobuf field int64 inbound_errors = 2; - * @param int|string $var - * @return $this - */ - public function setInboundErrors($var) - { - GPBUtil::checkInt64($var); - $this->inbound_errors = $var; - - return $this; - } - - /** - * The number of inbound packets that were chosen to be discarded even - * though no errors had been detected to prevent their being deliverable. - * - * Generated from protobuf field int64 inbound_discards = 3; - * @return int|string - */ - public function getInboundDiscards() - { - return $this->inbound_discards; - } - - /** - * The number of inbound packets that were chosen to be discarded even - * though no errors had been detected to prevent their being deliverable. - * - * Generated from protobuf field int64 inbound_discards = 3; - * @param int|string $var - * @return $this - */ - public function setInboundDiscards($var) - { - GPBUtil::checkInt64($var); - $this->inbound_discards = $var; - - return $this; - } - - /** - * The total number of packets that are requested be transmitted. - * - * Generated from protobuf field int64 outbound_unicast = 4; - * @return int|string - */ - public function getOutboundUnicast() - { - return $this->outbound_unicast; - } - - /** - * The total number of packets that are requested be transmitted. - * - * Generated from protobuf field int64 outbound_unicast = 4; - * @param int|string $var - * @return $this - */ - public function setOutboundUnicast($var) - { - GPBUtil::checkInt64($var); - $this->outbound_unicast = $var; - - return $this; - } - - /** - * The number of outbound packets that could not be transmitted because of - * errors. - * - * Generated from protobuf field int64 outbound_errors = 5; - * @return int|string - */ - public function getOutboundErrors() - { - return $this->outbound_errors; - } - - /** - * The number of outbound packets that could not be transmitted because of - * errors. - * - * Generated from protobuf field int64 outbound_errors = 5; - * @param int|string $var - * @return $this - */ - public function setOutboundErrors($var) - { - GPBUtil::checkInt64($var); - $this->outbound_errors = $var; - - return $this; - } - - /** - * The number of outbound packets that were chosen to be discarded even - * though no errors had been detected to prevent their being transmitted. - * - * Generated from protobuf field int64 outbound_discards = 6; - * @return int|string - */ - public function getOutboundDiscards() - { - return $this->outbound_discards; - } - - /** - * The number of outbound packets that were chosen to be discarded even - * though no errors had been detected to prevent their being transmitted. - * - * Generated from protobuf field int64 outbound_discards = 6; - * @param int|string $var - * @return $this - */ - public function setOutboundDiscards($var) - { - GPBUtil::checkInt64($var); - $this->outbound_discards = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PacketCounts::class, \Google\Cloud\EdgeNetwork\V1\InterconnectDiagnostics_PacketCounts::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/LinkLayerAddress.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/LinkLayerAddress.php deleted file mode 100644 index 9d50ff8146bb..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/LinkLayerAddress.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.edgenetwork.v1.LinkLayerAddress - */ -class LinkLayerAddress extends \Google\Protobuf\Internal\Message -{ - /** - * The MAC address of this neighbor. - * - * Generated from protobuf field string mac_address = 1; - */ - protected $mac_address = ''; - /** - * The IP address of this neighbor. - * - * Generated from protobuf field string ip_address = 2; - */ - protected $ip_address = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $mac_address - * The MAC address of this neighbor. - * @type string $ip_address - * The IP address of this neighbor. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The MAC address of this neighbor. - * - * Generated from protobuf field string mac_address = 1; - * @return string - */ - public function getMacAddress() - { - return $this->mac_address; - } - - /** - * The MAC address of this neighbor. - * - * Generated from protobuf field string mac_address = 1; - * @param string $var - * @return $this - */ - public function setMacAddress($var) - { - GPBUtil::checkString($var, True); - $this->mac_address = $var; - - return $this; - } - - /** - * The IP address of this neighbor. - * - * Generated from protobuf field string ip_address = 2; - * @return string - */ - public function getIpAddress() - { - return $this->ip_address; - } - - /** - * The IP address of this neighbor. - * - * Generated from protobuf field string ip_address = 2; - * @param string $var - * @return $this - */ - public function setIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->ip_address = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectAttachmentsRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectAttachmentsRequest.php deleted file mode 100644 index 5d2583b3bdc7..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectAttachmentsRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.edgenetwork.v1.ListInterconnectAttachmentsRequest - */ -class ListInterconnectAttachmentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListInterconnectAttachmentsRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent value for ListInterconnectAttachmentsRequest - * Please see {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\ListInterconnectAttachmentsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for ListInterconnectAttachmentsRequest - * @type int $page_size - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results the server should return. - * @type string $filter - * Filtering results - * @type string $order_by - * Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListInterconnectAttachmentsRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent value for ListInterconnectAttachmentsRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectAttachmentsResponse.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectAttachmentsResponse.php deleted file mode 100644 index 4b8fd35dd010..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectAttachmentsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.edgenetwork.v1.ListInterconnectAttachmentsResponse - */ -class ListInterconnectAttachmentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of InterconnectAttachment - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.InterconnectAttachment interconnect_attachments = 1; - */ - private $interconnect_attachments; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\EdgeNetwork\V1\InterconnectAttachment>|\Google\Protobuf\Internal\RepeatedField $interconnect_attachments - * The list of InterconnectAttachment - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of InterconnectAttachment - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.InterconnectAttachment interconnect_attachments = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInterconnectAttachments() - { - return $this->interconnect_attachments; - } - - /** - * The list of InterconnectAttachment - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.InterconnectAttachment interconnect_attachments = 1; - * @param array<\Google\Cloud\EdgeNetwork\V1\InterconnectAttachment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInterconnectAttachments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\InterconnectAttachment::class); - $this->interconnect_attachments = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectsRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectsRequest.php deleted file mode 100644 index 0c22bb3c6d3c..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectsRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.edgenetwork.v1.ListInterconnectsRequest - */ -class ListInterconnectsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListInterconnectsRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent value for ListInterconnectsRequest - * Please see {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\ListInterconnectsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for ListInterconnectsRequest - * @type int $page_size - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results the server should return. - * @type string $filter - * Filtering results - * @type string $order_by - * Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListInterconnectsRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent value for ListInterconnectsRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectsResponse.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectsResponse.php deleted file mode 100644 index c026998f4466..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListInterconnectsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.edgenetwork.v1.ListInterconnectsResponse - */ -class ListInterconnectsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Interconnect - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Interconnect interconnects = 1; - */ - private $interconnects; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\EdgeNetwork\V1\Interconnect>|\Google\Protobuf\Internal\RepeatedField $interconnects - * The list of Interconnect - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of Interconnect - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Interconnect interconnects = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInterconnects() - { - return $this->interconnects; - } - - /** - * The list of Interconnect - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Interconnect interconnects = 1; - * @param array<\Google\Cloud\EdgeNetwork\V1\Interconnect>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInterconnects($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\Interconnect::class); - $this->interconnects = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListNetworksRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListNetworksRequest.php deleted file mode 100644 index dbc3ed4cd5f4..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListNetworksRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.edgenetwork.v1.ListNetworksRequest - */ -class ListNetworksRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListNetworksRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent value for ListNetworksRequest - * Please see {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\ListNetworksRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for ListNetworksRequest - * @type int $page_size - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results the server should return. - * @type string $filter - * Filtering results - * @type string $order_by - * Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListNetworksRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent value for ListNetworksRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListNetworksResponse.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListNetworksResponse.php deleted file mode 100644 index e5038c2be94b..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListNetworksResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.edgenetwork.v1.ListNetworksResponse - */ -class ListNetworksResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Network - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Network networks = 1; - */ - private $networks; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\EdgeNetwork\V1\Network>|\Google\Protobuf\Internal\RepeatedField $networks - * The list of Network - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of Network - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Network networks = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNetworks() - { - return $this->networks; - } - - /** - * The list of Network - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Network networks = 1; - * @param array<\Google\Cloud\EdgeNetwork\V1\Network>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNetworks($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\Network::class); - $this->networks = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListRoutersRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListRoutersRequest.php deleted file mode 100644 index 56ddcb9571c4..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListRoutersRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.edgenetwork.v1.ListRoutersRequest - */ -class ListRoutersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListRoutersRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent value for ListRoutersRequest - * Please see {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\ListRoutersRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for ListRoutersRequest - * @type int $page_size - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results the server should return. - * @type string $filter - * Filtering results - * @type string $order_by - * Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListRoutersRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent value for ListRoutersRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListRoutersResponse.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListRoutersResponse.php deleted file mode 100644 index 446303c4e1f1..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListRoutersResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.edgenetwork.v1.ListRoutersResponse - */ -class ListRoutersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Router - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Router routers = 1; - */ - private $routers; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\EdgeNetwork\V1\Router>|\Google\Protobuf\Internal\RepeatedField $routers - * The list of Router - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of Router - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Router routers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRouters() - { - return $this->routers; - } - - /** - * The list of Router - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Router routers = 1; - * @param array<\Google\Cloud\EdgeNetwork\V1\Router>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRouters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\Router::class); - $this->routers = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListSubnetsRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListSubnetsRequest.php deleted file mode 100644 index 71b1546d0442..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListSubnetsRequest.php +++ /dev/null @@ -1,221 +0,0 @@ -google.cloud.edgenetwork.v1.ListSubnetsRequest - */ -class ListSubnetsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListSubnetsRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent value for ListSubnetsRequest - * Please see {@see EdgeNetworkClient::zoneName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\ListSubnetsRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for ListSubnetsRequest - * @type int $page_size - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results the server should return. - * @type string $filter - * Filtering results - * @type string $order_by - * Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListSubnetsRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent value for ListSubnetsRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListSubnetsResponse.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListSubnetsResponse.php deleted file mode 100644 index c8e1193fa73d..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListSubnetsResponse.php +++ /dev/null @@ -1,135 +0,0 @@ -google.cloud.edgenetwork.v1.ListSubnetsResponse - */ -class ListSubnetsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Subnet - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1; - */ - private $subnets; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\EdgeNetwork\V1\Subnet>|\Google\Protobuf\Internal\RepeatedField $subnets - * The list of Subnet - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of Subnet - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getSubnets() - { - return $this->subnets; - } - - /** - * The list of Subnet - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Subnet subnets = 1; - * @param array<\Google\Cloud\EdgeNetwork\V1\Subnet>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setSubnets($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\Subnet::class); - $this->subnets = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListZonesRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListZonesRequest.php deleted file mode 100644 index b4075f810f38..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListZonesRequest.php +++ /dev/null @@ -1,223 +0,0 @@ -google.cloud.edgenetwork.v1.ListZonesRequest - */ -class ListZonesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Parent value for ListZonesRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - */ - protected $filter = ''; - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. Parent value for ListZonesRequest - * Please see {@see EdgeNetworkClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\EdgeNetwork\V1\ListZonesRequest - * - * @experimental - */ - public static function build(string $parent): self - { - return (new self()) - ->setParent($parent); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. Parent value for ListZonesRequest - * @type int $page_size - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * @type string $page_token - * A token identifying a page of results the server should return. - * @type string $filter - * Filtering results - * @type string $order_by - * Hint for how to order the results - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Parent value for ListZonesRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. Parent value for ListZonesRequest - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Requested page size. Server may return fewer items than requested. - * If unspecified, server will pick an appropriate default. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filtering results - * - * Generated from protobuf field string filter = 4; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Hint for how to order the results - * - * Generated from protobuf field string order_by = 5; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListZonesResponse.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListZonesResponse.php deleted file mode 100644 index 448303fcea08..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ListZonesResponse.php +++ /dev/null @@ -1,137 +0,0 @@ -google.cloud.edgenetwork.v1.ListZonesResponse - */ -class ListZonesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The list of Zone - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Zone zones = 1; - */ - private $zones; - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - */ - private $unreachable; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\EdgeNetwork\V1\Zone>|\Google\Protobuf\Internal\RepeatedField $zones - * The list of Zone - * @type string $next_page_token - * A token identifying a page of results the server should return. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Locations that could not be reached. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The list of Zone - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Zone zones = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getZones() - { - return $this->zones; - } - - /** - * The list of Zone - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Zone zones = 1; - * @param array<\Google\Cloud\EdgeNetwork\V1\Zone>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setZones($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\Zone::class); - $this->zones = $arr; - - return $this; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A token identifying a page of results the server should return. - * - * Generated from protobuf field string next_page_token = 2; - * @param string $var - * @return $this - */ - public function setNextPageToken($var) - { - GPBUtil::checkString($var, True); - $this->next_page_token = $var; - - return $this; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getUnreachable() - { - return $this->unreachable; - } - - /** - * Locations that could not be reached. - * - * Generated from protobuf field repeated string unreachable = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setUnreachable($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->unreachable = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Network.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Network.php deleted file mode 100644 index 57d60cd558fd..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Network.php +++ /dev/null @@ -1,269 +0,0 @@ -google.cloud.edgenetwork.v1.Network - */ -class Network extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The canonical resource name of the network. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Output only. The time when the network was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the network was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Labels associated with this resource. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * IP (L3) MTU value of the network. - * Valid values are: 1500 and 9000. - * Default to 1500 if not set. - * - * Generated from protobuf field int32 mtu = 6; - */ - protected $mtu = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The canonical resource name of the network. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the network was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the network was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels associated with this resource. - * @type string $description - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * @type int $mtu - * IP (L3) MTU value of the network. - * Valid values are: 1500 and 9000. - * Default to 1500 if not set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The canonical resource name of the network. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The canonical resource name of the network. - * - * 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; - } - - /** - * Output only. The time when the network was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the network was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the network was 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 when the network was 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; - } - - /** - * Labels associated with this resource. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels associated with this resource. - * - * 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; - } - - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * IP (L3) MTU value of the network. - * Valid values are: 1500 and 9000. - * Default to 1500 if not set. - * - * Generated from protobuf field int32 mtu = 6; - * @return int - */ - public function getMtu() - { - return $this->mtu; - } - - /** - * IP (L3) MTU value of the network. - * Valid values are: 1500 and 9000. - * Default to 1500 if not set. - * - * Generated from protobuf field int32 mtu = 6; - * @param int $var - * @return $this - */ - public function setMtu($var) - { - GPBUtil::checkInt32($var); - $this->mtu = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/OperationMetadata.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/OperationMetadata.php deleted file mode 100644 index 370335b35ce5..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.edgenetwork.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have been cancelled successfully - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::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/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ResourceState.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ResourceState.php deleted file mode 100644 index d0048a99e748..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/ResourceState.php +++ /dev/null @@ -1,86 +0,0 @@ - - * PROVISIONING -> RUNNING. A normal lifecycle of an existing resource being - * deleted would be: RUNNING -> DELETING. Any failures during processing will - * result the resource to be in a SUSPENDED state. - * - * Protobuf type google.cloud.edgenetwork.v1.ResourceState - */ -class ResourceState -{ - /** - * Unspecified state. - * - * Generated from protobuf enum STATE_UNKNOWN = 0; - */ - const STATE_UNKNOWN = 0; - /** - * The resource is being prepared to be applied to the rack. - * - * Generated from protobuf enum STATE_PENDING = 1; - */ - const STATE_PENDING = 1; - /** - * The resource has started being applied to the rack. - * - * Generated from protobuf enum STATE_PROVISIONING = 2; - */ - const STATE_PROVISIONING = 2; - /** - * The resource has been pushed to the rack. - * - * Generated from protobuf enum STATE_RUNNING = 3; - */ - const STATE_RUNNING = 3; - /** - * The resource failed to push to the rack. - * - * Generated from protobuf enum STATE_SUSPENDED = 4; - */ - const STATE_SUSPENDED = 4; - /** - * The resource is under deletion. - * - * Generated from protobuf enum STATE_DELETING = 5; - */ - const STATE_DELETING = 5; - - private static $valueToName = [ - self::STATE_UNKNOWN => 'STATE_UNKNOWN', - self::STATE_PENDING => 'STATE_PENDING', - self::STATE_PROVISIONING => 'STATE_PROVISIONING', - self::STATE_RUNNING => 'STATE_RUNNING', - self::STATE_SUSPENDED => 'STATE_SUSPENDED', - self::STATE_DELETING => 'STATE_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); - } -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router.php deleted file mode 100644 index 246cd561add4..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router.php +++ /dev/null @@ -1,453 +0,0 @@ -google.cloud.edgenetwork.v1.Router - */ -class Router extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The canonical resource name of the router. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Output only. The time when the router was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the router was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Labels associated with this resource. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The canonical name of the network to which this router belongs. - * The name is in the form of - * `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`. - * - * Generated from protobuf field string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $network = ''; - /** - * Router interfaces. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7; - */ - private $interface; - /** - * BGP peers. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8; - */ - private $bgp_peer; - /** - * BGP information specific to this router. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Router.Bgp bgp = 9; - */ - protected $bgp = null; - /** - * Output only. Current stage of the resource to the device by config push. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Optional. A list of CIDRs in IP/Length format to advertise northbound as - * static routes from this router. - * - * Generated from protobuf field repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $route_advertisements; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The canonical resource name of the router. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the router was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the router was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels associated with this resource. - * @type string $description - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * @type string $network - * Required. The canonical name of the network to which this router belongs. - * The name is in the form of - * `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`. - * @type array<\Google\Cloud\EdgeNetwork\V1\Router\PBInterface>|\Google\Protobuf\Internal\RepeatedField $interface - * Router interfaces. - * @type array<\Google\Cloud\EdgeNetwork\V1\Router\BgpPeer>|\Google\Protobuf\Internal\RepeatedField $bgp_peer - * BGP peers. - * @type \Google\Cloud\EdgeNetwork\V1\Router\Bgp $bgp - * BGP information specific to this router. - * @type int $state - * Output only. Current stage of the resource to the device by config push. - * @type array|\Google\Protobuf\Internal\RepeatedField $route_advertisements - * Optional. A list of CIDRs in IP/Length format to advertise northbound as - * static routes from this router. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The canonical resource name of the router. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The canonical resource name of the router. - * - * 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; - } - - /** - * Output only. The time when the router was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the router was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the router was 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 when the router was 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; - } - - /** - * Labels associated with this resource. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels associated with this resource. - * - * 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; - } - - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The canonical name of the network to which this router belongs. - * The name is in the form of - * `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`. - * - * Generated from protobuf field string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Required. The canonical name of the network to which this router belongs. - * The name is in the form of - * `projects/{project}/locations/{location}/zones/{zone}/networks/{network}`. - * - * Generated from protobuf field string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * Router interfaces. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getInterface() - { - return $this->interface; - } - - /** - * Router interfaces. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Router.Interface interface = 7; - * @param array<\Google\Cloud\EdgeNetwork\V1\Router\PBInterface>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setInterface($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\Router\PBInterface::class); - $this->interface = $arr; - - return $this; - } - - /** - * BGP peers. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBgpPeer() - { - return $this->bgp_peer; - } - - /** - * BGP peers. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.Router.BgpPeer bgp_peer = 8; - * @param array<\Google\Cloud\EdgeNetwork\V1\Router\BgpPeer>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBgpPeer($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\Router\BgpPeer::class); - $this->bgp_peer = $arr; - - return $this; - } - - /** - * BGP information specific to this router. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Router.Bgp bgp = 9; - * @return \Google\Cloud\EdgeNetwork\V1\Router\Bgp|null - */ - public function getBgp() - { - return $this->bgp; - } - - public function hasBgp() - { - return isset($this->bgp); - } - - public function clearBgp() - { - unset($this->bgp); - } - - /** - * BGP information specific to this router. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Router.Bgp bgp = 9; - * @param \Google\Cloud\EdgeNetwork\V1\Router\Bgp $var - * @return $this - */ - public function setBgp($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\Router\Bgp::class); - $this->bgp = $var; - - return $this; - } - - /** - * Output only. Current stage of the resource to the device by config push. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current stage of the resource to the device by config push. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\EdgeNetwork\V1\ResourceState::class); - $this->state = $var; - - return $this; - } - - /** - * Optional. A list of CIDRs in IP/Length format to advertise northbound as - * static routes from this router. - * - * Generated from protobuf field repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getRouteAdvertisements() - { - return $this->route_advertisements; - } - - /** - * Optional. A list of CIDRs in IP/Length format to advertise northbound as - * static routes from this router. - * - * Generated from protobuf field repeated string route_advertisements = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setRouteAdvertisements($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->route_advertisements = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/Bgp.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/Bgp.php deleted file mode 100644 index 217d22eff46f..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/Bgp.php +++ /dev/null @@ -1,108 +0,0 @@ -google.cloud.edgenetwork.v1.Router.Bgp - */ -class Bgp extends \Google\Protobuf\Internal\Message -{ - /** - * Locally assigned BGP ASN. - * - * Generated from protobuf field uint32 asn = 1; - */ - protected $asn = 0; - /** - * The interval in seconds between BGP keepalive messages that are - * sent to the peer. Default is 20 with value between 20 and 60. - * - * Generated from protobuf field uint32 keepalive_interval_in_seconds = 2; - */ - protected $keepalive_interval_in_seconds = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $asn - * Locally assigned BGP ASN. - * @type int $keepalive_interval_in_seconds - * The interval in seconds between BGP keepalive messages that are - * sent to the peer. Default is 20 with value between 20 and 60. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Locally assigned BGP ASN. - * - * Generated from protobuf field uint32 asn = 1; - * @return int - */ - public function getAsn() - { - return $this->asn; - } - - /** - * Locally assigned BGP ASN. - * - * Generated from protobuf field uint32 asn = 1; - * @param int $var - * @return $this - */ - public function setAsn($var) - { - GPBUtil::checkUint32($var); - $this->asn = $var; - - return $this; - } - - /** - * The interval in seconds between BGP keepalive messages that are - * sent to the peer. Default is 20 with value between 20 and 60. - * - * Generated from protobuf field uint32 keepalive_interval_in_seconds = 2; - * @return int - */ - public function getKeepaliveIntervalInSeconds() - { - return $this->keepalive_interval_in_seconds; - } - - /** - * The interval in seconds between BGP keepalive messages that are - * sent to the peer. Default is 20 with value between 20 and 60. - * - * Generated from protobuf field uint32 keepalive_interval_in_seconds = 2; - * @param int $var - * @return $this - */ - public function setKeepaliveIntervalInSeconds($var) - { - GPBUtil::checkUint32($var); - $this->keepalive_interval_in_seconds = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Bgp::class, \Google\Cloud\EdgeNetwork\V1\Router_Bgp::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/BgpPeer.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/BgpPeer.php deleted file mode 100644 index 6eb6d958e65a..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/BgpPeer.php +++ /dev/null @@ -1,321 +0,0 @@ -google.cloud.edgenetwork.v1.Router.BgpPeer - */ -class BgpPeer extends \Google\Protobuf\Internal\Message -{ - /** - * Name of this BGP peer. Unique within the Zones resource. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * Name of the RouterInterface the BGP peer is associated with. - * - * Generated from protobuf field string interface = 2; - */ - protected $interface = ''; - /** - * IP range of the interface within Google. - * - * Generated from protobuf field string interface_ipv4_cidr = 3; - */ - protected $interface_ipv4_cidr = ''; - /** - * IPv6 range of the interface within Google. - * - * Generated from protobuf field string interface_ipv6_cidr = 7; - */ - protected $interface_ipv6_cidr = ''; - /** - * IP range of the BGP interface outside Google. - * - * Generated from protobuf field string peer_ipv4_cidr = 4; - */ - protected $peer_ipv4_cidr = ''; - /** - * IPv6 range of the BGP interface outside Google. - * - * Generated from protobuf field string peer_ipv6_cidr = 6; - */ - protected $peer_ipv6_cidr = ''; - /** - * Peer BGP Autonomous System Number (ASN). Each BGP interface may use - * a different value. - * - * Generated from protobuf field uint32 peer_asn = 5; - */ - protected $peer_asn = 0; - /** - * Output only. Local BGP Autonomous System Number (ASN). - * This field is ST_NOT_REQUIRED because it stores private ASNs, which are - * meaningless outside the zone in which they are being used. - * - * Generated from protobuf field uint32 local_asn = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $local_asn = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of this BGP peer. Unique within the Zones resource. - * @type string $interface - * Name of the RouterInterface the BGP peer is associated with. - * @type string $interface_ipv4_cidr - * IP range of the interface within Google. - * @type string $interface_ipv6_cidr - * IPv6 range of the interface within Google. - * @type string $peer_ipv4_cidr - * IP range of the BGP interface outside Google. - * @type string $peer_ipv6_cidr - * IPv6 range of the BGP interface outside Google. - * @type int $peer_asn - * Peer BGP Autonomous System Number (ASN). Each BGP interface may use - * a different value. - * @type int $local_asn - * Output only. Local BGP Autonomous System Number (ASN). - * This field is ST_NOT_REQUIRED because it stores private ASNs, which are - * meaningless outside the zone in which they are being used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Name of this BGP peer. Unique within the Zones resource. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of this BGP peer. Unique within the Zones resource. - * - * 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; - } - - /** - * Name of the RouterInterface the BGP peer is associated with. - * - * Generated from protobuf field string interface = 2; - * @return string - */ - public function getInterface() - { - return $this->interface; - } - - /** - * Name of the RouterInterface the BGP peer is associated with. - * - * Generated from protobuf field string interface = 2; - * @param string $var - * @return $this - */ - public function setInterface($var) - { - GPBUtil::checkString($var, True); - $this->interface = $var; - - return $this; - } - - /** - * IP range of the interface within Google. - * - * Generated from protobuf field string interface_ipv4_cidr = 3; - * @return string - */ - public function getInterfaceIpv4Cidr() - { - return $this->interface_ipv4_cidr; - } - - /** - * IP range of the interface within Google. - * - * Generated from protobuf field string interface_ipv4_cidr = 3; - * @param string $var - * @return $this - */ - public function setInterfaceIpv4Cidr($var) - { - GPBUtil::checkString($var, True); - $this->interface_ipv4_cidr = $var; - - return $this; - } - - /** - * IPv6 range of the interface within Google. - * - * Generated from protobuf field string interface_ipv6_cidr = 7; - * @return string - */ - public function getInterfaceIpv6Cidr() - { - return $this->interface_ipv6_cidr; - } - - /** - * IPv6 range of the interface within Google. - * - * Generated from protobuf field string interface_ipv6_cidr = 7; - * @param string $var - * @return $this - */ - public function setInterfaceIpv6Cidr($var) - { - GPBUtil::checkString($var, True); - $this->interface_ipv6_cidr = $var; - - return $this; - } - - /** - * IP range of the BGP interface outside Google. - * - * Generated from protobuf field string peer_ipv4_cidr = 4; - * @return string - */ - public function getPeerIpv4Cidr() - { - return $this->peer_ipv4_cidr; - } - - /** - * IP range of the BGP interface outside Google. - * - * Generated from protobuf field string peer_ipv4_cidr = 4; - * @param string $var - * @return $this - */ - public function setPeerIpv4Cidr($var) - { - GPBUtil::checkString($var, True); - $this->peer_ipv4_cidr = $var; - - return $this; - } - - /** - * IPv6 range of the BGP interface outside Google. - * - * Generated from protobuf field string peer_ipv6_cidr = 6; - * @return string - */ - public function getPeerIpv6Cidr() - { - return $this->peer_ipv6_cidr; - } - - /** - * IPv6 range of the BGP interface outside Google. - * - * Generated from protobuf field string peer_ipv6_cidr = 6; - * @param string $var - * @return $this - */ - public function setPeerIpv6Cidr($var) - { - GPBUtil::checkString($var, True); - $this->peer_ipv6_cidr = $var; - - return $this; - } - - /** - * Peer BGP Autonomous System Number (ASN). Each BGP interface may use - * a different value. - * - * Generated from protobuf field uint32 peer_asn = 5; - * @return int - */ - public function getPeerAsn() - { - return $this->peer_asn; - } - - /** - * Peer BGP Autonomous System Number (ASN). Each BGP interface may use - * a different value. - * - * Generated from protobuf field uint32 peer_asn = 5; - * @param int $var - * @return $this - */ - public function setPeerAsn($var) - { - GPBUtil::checkUint32($var); - $this->peer_asn = $var; - - return $this; - } - - /** - * Output only. Local BGP Autonomous System Number (ASN). - * This field is ST_NOT_REQUIRED because it stores private ASNs, which are - * meaningless outside the zone in which they are being used. - * - * Generated from protobuf field uint32 local_asn = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getLocalAsn() - { - return $this->local_asn; - } - - /** - * Output only. Local BGP Autonomous System Number (ASN). - * This field is ST_NOT_REQUIRED because it stores private ASNs, which are - * meaningless outside the zone in which they are being used. - * - * Generated from protobuf field uint32 local_asn = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setLocalAsn($var) - { - GPBUtil::checkUint32($var); - $this->local_asn = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BgpPeer::class, \Google\Cloud\EdgeNetwork\V1\Router_BgpPeer::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/PBInterface.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/PBInterface.php deleted file mode 100644 index 701ce3d3bd93..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Router/PBInterface.php +++ /dev/null @@ -1,249 +0,0 @@ -google.cloud.edgenetwork.v1.Router.Interface - */ -class PBInterface extends \Google\Protobuf\Internal\Message -{ - /** - * Name of this interface entry. Unique within the Zones resource. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * IP address and range of the interface. - * - * Generated from protobuf field string ipv4_cidr = 3; - */ - protected $ipv4_cidr = ''; - /** - * IPv6 address and range of the interface. - * - * Generated from protobuf field string ipv6_cidr = 6; - */ - protected $ipv6_cidr = ''; - /** - * The canonical name of the linked Interconnect attachment. - * - * Generated from protobuf field string linked_interconnect_attachment = 2; - */ - protected $linked_interconnect_attachment = ''; - /** - * The canonical name of the subnetwork resource that this interface - * belongs to. - * - * Generated from protobuf field string subnetwork = 4; - */ - protected $subnetwork = ''; - /** - * Create loopback interface in the router when specified. - * The number of IP addresses must match the number of TOR devices. - * - * Generated from protobuf field repeated string loopback_ip_addresses = 5; - */ - private $loopback_ip_addresses; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of this interface entry. Unique within the Zones resource. - * @type string $ipv4_cidr - * IP address and range of the interface. - * @type string $ipv6_cidr - * IPv6 address and range of the interface. - * @type string $linked_interconnect_attachment - * The canonical name of the linked Interconnect attachment. - * @type string $subnetwork - * The canonical name of the subnetwork resource that this interface - * belongs to. - * @type array|\Google\Protobuf\Internal\RepeatedField $loopback_ip_addresses - * Create loopback interface in the router when specified. - * The number of IP addresses must match the number of TOR devices. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Name of this interface entry. Unique within the Zones resource. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of this interface entry. Unique within the Zones resource. - * - * 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; - } - - /** - * IP address and range of the interface. - * - * Generated from protobuf field string ipv4_cidr = 3; - * @return string - */ - public function getIpv4Cidr() - { - return $this->ipv4_cidr; - } - - /** - * IP address and range of the interface. - * - * Generated from protobuf field string ipv4_cidr = 3; - * @param string $var - * @return $this - */ - public function setIpv4Cidr($var) - { - GPBUtil::checkString($var, True); - $this->ipv4_cidr = $var; - - return $this; - } - - /** - * IPv6 address and range of the interface. - * - * Generated from protobuf field string ipv6_cidr = 6; - * @return string - */ - public function getIpv6Cidr() - { - return $this->ipv6_cidr; - } - - /** - * IPv6 address and range of the interface. - * - * Generated from protobuf field string ipv6_cidr = 6; - * @param string $var - * @return $this - */ - public function setIpv6Cidr($var) - { - GPBUtil::checkString($var, True); - $this->ipv6_cidr = $var; - - return $this; - } - - /** - * The canonical name of the linked Interconnect attachment. - * - * Generated from protobuf field string linked_interconnect_attachment = 2; - * @return string - */ - public function getLinkedInterconnectAttachment() - { - return $this->linked_interconnect_attachment; - } - - /** - * The canonical name of the linked Interconnect attachment. - * - * Generated from protobuf field string linked_interconnect_attachment = 2; - * @param string $var - * @return $this - */ - public function setLinkedInterconnectAttachment($var) - { - GPBUtil::checkString($var, True); - $this->linked_interconnect_attachment = $var; - - return $this; - } - - /** - * The canonical name of the subnetwork resource that this interface - * belongs to. - * - * Generated from protobuf field string subnetwork = 4; - * @return string - */ - public function getSubnetwork() - { - return $this->subnetwork; - } - - /** - * The canonical name of the subnetwork resource that this interface - * belongs to. - * - * Generated from protobuf field string subnetwork = 4; - * @param string $var - * @return $this - */ - public function setSubnetwork($var) - { - GPBUtil::checkString($var, True); - $this->subnetwork = $var; - - return $this; - } - - /** - * Create loopback interface in the router when specified. - * The number of IP addresses must match the number of TOR devices. - * - * Generated from protobuf field repeated string loopback_ip_addresses = 5; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLoopbackIpAddresses() - { - return $this->loopback_ip_addresses; - } - - /** - * Create loopback interface in the router when specified. - * The number of IP addresses must match the number of TOR devices. - * - * Generated from protobuf field repeated string loopback_ip_addresses = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLoopbackIpAddresses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->loopback_ip_addresses = $arr; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PBInterface::class, \Google\Cloud\EdgeNetwork\V1\Router_Interface::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus.php deleted file mode 100644 index 60d9f8abd801..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus.php +++ /dev/null @@ -1,105 +0,0 @@ -google.cloud.edgenetwork.v1.RouterStatus - */ -class RouterStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The canonical name of the network to which this router belongs. - * - * Generated from protobuf field string network = 1 [(.google.api.resource_reference) = { - */ - protected $network = ''; - /** - * A list of BgpPeerStatus objects, describing all BGP peers related to this - * router. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus bgp_peer_status = 2; - */ - private $bgp_peer_status; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network - * The canonical name of the network to which this router belongs. - * @type array<\Google\Cloud\EdgeNetwork\V1\RouterStatus\BgpPeerStatus>|\Google\Protobuf\Internal\RepeatedField $bgp_peer_status - * A list of BgpPeerStatus objects, describing all BGP peers related to this - * router. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The canonical name of the network to which this router belongs. - * - * Generated from protobuf field string network = 1 [(.google.api.resource_reference) = { - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * The canonical name of the network to which this router belongs. - * - * Generated from protobuf field string network = 1 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * A list of BgpPeerStatus objects, describing all BGP peers related to this - * router. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus bgp_peer_status = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getBgpPeerStatus() - { - return $this->bgp_peer_status; - } - - /** - * A list of BgpPeerStatus objects, describing all BGP peers related to this - * router. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus bgp_peer_status = 2; - * @param array<\Google\Cloud\EdgeNetwork\V1\RouterStatus\BgpPeerStatus>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setBgpPeerStatus($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\RouterStatus\BgpPeerStatus::class); - $this->bgp_peer_status = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/BgpPeerStatus.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/BgpPeerStatus.php deleted file mode 100644 index b63ef718abce..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/BgpPeerStatus.php +++ /dev/null @@ -1,326 +0,0 @@ -google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus - */ -class BgpPeerStatus extends \Google\Protobuf\Internal\Message -{ - /** - * Name of this BGP peer. Unique within the Routers resource. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * IP address of the local BGP interface. - * - * Generated from protobuf field string ip_address = 2; - */ - protected $ip_address = ''; - /** - * IP address of the remote BGP interface. - * - * Generated from protobuf field string peer_ip_address = 3; - */ - protected $peer_ip_address = ''; - /** - * The current status of BGP. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus status = 4; - */ - protected $status = 0; - /** - * BGP state as specified in RFC1771. - * - * Generated from protobuf field string state = 5; - */ - protected $state = ''; - /** - * Time this session has been up. - * Format: - * 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds - * - * Generated from protobuf field string uptime = 6; - */ - protected $uptime = ''; - /** - * Time this session has been up, in seconds. - * - * Generated from protobuf field int64 uptime_seconds = 7; - */ - protected $uptime_seconds = 0; - /** - * A collection of counts for prefixes. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8; - */ - protected $prefix_counter = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Name of this BGP peer. Unique within the Routers resource. - * @type string $ip_address - * IP address of the local BGP interface. - * @type string $peer_ip_address - * IP address of the remote BGP interface. - * @type int $status - * The current status of BGP. - * @type string $state - * BGP state as specified in RFC1771. - * @type string $uptime - * Time this session has been up. - * Format: - * 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds - * @type int|string $uptime_seconds - * Time this session has been up, in seconds. - * @type \Google\Cloud\EdgeNetwork\V1\RouterStatus\PrefixCounter $prefix_counter - * A collection of counts for prefixes. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Name of this BGP peer. Unique within the Routers resource. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Name of this BGP peer. Unique within the Routers resource. - * - * 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; - } - - /** - * IP address of the local BGP interface. - * - * Generated from protobuf field string ip_address = 2; - * @return string - */ - public function getIpAddress() - { - return $this->ip_address; - } - - /** - * IP address of the local BGP interface. - * - * Generated from protobuf field string ip_address = 2; - * @param string $var - * @return $this - */ - public function setIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->ip_address = $var; - - return $this; - } - - /** - * IP address of the remote BGP interface. - * - * Generated from protobuf field string peer_ip_address = 3; - * @return string - */ - public function getPeerIpAddress() - { - return $this->peer_ip_address; - } - - /** - * IP address of the remote BGP interface. - * - * Generated from protobuf field string peer_ip_address = 3; - * @param string $var - * @return $this - */ - public function setPeerIpAddress($var) - { - GPBUtil::checkString($var, True); - $this->peer_ip_address = $var; - - return $this; - } - - /** - * The current status of BGP. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus status = 4; - * @return int - */ - public function getStatus() - { - return $this->status; - } - - /** - * The current status of BGP. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus status = 4; - * @param int $var - * @return $this - */ - public function setStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\EdgeNetwork\V1\RouterStatus\BgpPeerStatus\BgpStatus::class); - $this->status = $var; - - return $this; - } - - /** - * BGP state as specified in RFC1771. - * - * Generated from protobuf field string state = 5; - * @return string - */ - public function getState() - { - return $this->state; - } - - /** - * BGP state as specified in RFC1771. - * - * Generated from protobuf field string state = 5; - * @param string $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkString($var, True); - $this->state = $var; - - return $this; - } - - /** - * Time this session has been up. - * Format: - * 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds - * - * Generated from protobuf field string uptime = 6; - * @return string - */ - public function getUptime() - { - return $this->uptime; - } - - /** - * Time this session has been up. - * Format: - * 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds - * - * Generated from protobuf field string uptime = 6; - * @param string $var - * @return $this - */ - public function setUptime($var) - { - GPBUtil::checkString($var, True); - $this->uptime = $var; - - return $this; - } - - /** - * Time this session has been up, in seconds. - * - * Generated from protobuf field int64 uptime_seconds = 7; - * @return int|string - */ - public function getUptimeSeconds() - { - return $this->uptime_seconds; - } - - /** - * Time this session has been up, in seconds. - * - * Generated from protobuf field int64 uptime_seconds = 7; - * @param int|string $var - * @return $this - */ - public function setUptimeSeconds($var) - { - GPBUtil::checkInt64($var); - $this->uptime_seconds = $var; - - return $this; - } - - /** - * A collection of counts for prefixes. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8; - * @return \Google\Cloud\EdgeNetwork\V1\RouterStatus\PrefixCounter|null - */ - public function getPrefixCounter() - { - return $this->prefix_counter; - } - - public function hasPrefixCounter() - { - return isset($this->prefix_counter); - } - - public function clearPrefixCounter() - { - unset($this->prefix_counter); - } - - /** - * A collection of counts for prefixes. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter prefix_counter = 8; - * @param \Google\Cloud\EdgeNetwork\V1\RouterStatus\PrefixCounter $var - * @return $this - */ - public function setPrefixCounter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\RouterStatus\PrefixCounter::class); - $this->prefix_counter = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BgpPeerStatus::class, \Google\Cloud\EdgeNetwork\V1\RouterStatus_BgpPeerStatus::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/BgpPeerStatus/BgpStatus.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/BgpPeerStatus/BgpStatus.php deleted file mode 100644 index 0cbd26e6cbe2..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/BgpPeerStatus/BgpStatus.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.edgenetwork.v1.RouterStatus.BgpPeerStatus.BgpStatus - */ -class BgpStatus -{ - /** - * The default status indicating BGP session is in unknown state. - * - * Generated from protobuf enum UNKNOWN = 0; - */ - const UNKNOWN = 0; - /** - * The UP status indicating BGP session is established. - * - * Generated from protobuf enum UP = 1; - */ - const UP = 1; - /** - * The DOWN state indicating BGP session is not established yet. - * - * Generated from protobuf enum DOWN = 2; - */ - const DOWN = 2; - - private static $valueToName = [ - self::UNKNOWN => 'UNKNOWN', - self::UP => 'UP', - self::DOWN => 'DOWN', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BgpStatus::class, \Google\Cloud\EdgeNetwork\V1\RouterStatus_BgpPeerStatus_BgpStatus::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/PrefixCounter.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/PrefixCounter.php deleted file mode 100644 index 8ee539efe454..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/RouterStatus/PrefixCounter.php +++ /dev/null @@ -1,240 +0,0 @@ -google.cloud.edgenetwork.v1.RouterStatus.PrefixCounter - */ -class PrefixCounter extends \Google\Protobuf\Internal\Message -{ - /** - * Number of prefixes advertised. - * - * Generated from protobuf field int64 advertised = 1; - */ - protected $advertised = 0; - /** - * Number of prefixes denied. - * - * Generated from protobuf field int64 denied = 2; - */ - protected $denied = 0; - /** - * Number of prefixes received. - * - * Generated from protobuf field int64 received = 3; - */ - protected $received = 0; - /** - * Number of prefixes sent. - * - * Generated from protobuf field int64 sent = 4; - */ - protected $sent = 0; - /** - * Number of prefixes suppressed. - * - * Generated from protobuf field int64 suppressed = 5; - */ - protected $suppressed = 0; - /** - * Number of prefixes withdrawn. - * - * Generated from protobuf field int64 withdrawn = 6; - */ - protected $withdrawn = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int|string $advertised - * Number of prefixes advertised. - * @type int|string $denied - * Number of prefixes denied. - * @type int|string $received - * Number of prefixes received. - * @type int|string $sent - * Number of prefixes sent. - * @type int|string $suppressed - * Number of prefixes suppressed. - * @type int|string $withdrawn - * Number of prefixes withdrawn. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Number of prefixes advertised. - * - * Generated from protobuf field int64 advertised = 1; - * @return int|string - */ - public function getAdvertised() - { - return $this->advertised; - } - - /** - * Number of prefixes advertised. - * - * Generated from protobuf field int64 advertised = 1; - * @param int|string $var - * @return $this - */ - public function setAdvertised($var) - { - GPBUtil::checkInt64($var); - $this->advertised = $var; - - return $this; - } - - /** - * Number of prefixes denied. - * - * Generated from protobuf field int64 denied = 2; - * @return int|string - */ - public function getDenied() - { - return $this->denied; - } - - /** - * Number of prefixes denied. - * - * Generated from protobuf field int64 denied = 2; - * @param int|string $var - * @return $this - */ - public function setDenied($var) - { - GPBUtil::checkInt64($var); - $this->denied = $var; - - return $this; - } - - /** - * Number of prefixes received. - * - * Generated from protobuf field int64 received = 3; - * @return int|string - */ - public function getReceived() - { - return $this->received; - } - - /** - * Number of prefixes received. - * - * Generated from protobuf field int64 received = 3; - * @param int|string $var - * @return $this - */ - public function setReceived($var) - { - GPBUtil::checkInt64($var); - $this->received = $var; - - return $this; - } - - /** - * Number of prefixes sent. - * - * Generated from protobuf field int64 sent = 4; - * @return int|string - */ - public function getSent() - { - return $this->sent; - } - - /** - * Number of prefixes sent. - * - * Generated from protobuf field int64 sent = 4; - * @param int|string $var - * @return $this - */ - public function setSent($var) - { - GPBUtil::checkInt64($var); - $this->sent = $var; - - return $this; - } - - /** - * Number of prefixes suppressed. - * - * Generated from protobuf field int64 suppressed = 5; - * @return int|string - */ - public function getSuppressed() - { - return $this->suppressed; - } - - /** - * Number of prefixes suppressed. - * - * Generated from protobuf field int64 suppressed = 5; - * @param int|string $var - * @return $this - */ - public function setSuppressed($var) - { - GPBUtil::checkInt64($var); - $this->suppressed = $var; - - return $this; - } - - /** - * Number of prefixes withdrawn. - * - * Generated from protobuf field int64 withdrawn = 6; - * @return int|string - */ - public function getWithdrawn() - { - return $this->withdrawn; - } - - /** - * Number of prefixes withdrawn. - * - * Generated from protobuf field int64 withdrawn = 6; - * @param int|string $var - * @return $this - */ - public function setWithdrawn($var) - { - GPBUtil::checkInt64($var); - $this->withdrawn = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(PrefixCounter::class, \Google\Cloud\EdgeNetwork\V1\RouterStatus_PrefixCounter::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Subnet.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Subnet.php deleted file mode 100644 index 8e602567f124..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Subnet.php +++ /dev/null @@ -1,451 +0,0 @@ -google.cloud.edgenetwork.v1.Subnet - */ -class Subnet extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The canonical resource name of the subnet. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Output only. The time when the subnet was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the subnet was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Labels associated with this resource. - * - * Generated from protobuf field map labels = 4; - */ - private $labels; - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $description = ''; - /** - * Required. The network that this subnetwork belongs to. - * - * Generated from protobuf field string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $network = ''; - /** - * The ranges of ipv4 addresses that are owned by this subnetwork. - * - * Generated from protobuf field repeated string ipv4_cidr = 7; - */ - private $ipv4_cidr; - /** - * The ranges of ipv6 addresses that are owned by this subnetwork. - * - * Generated from protobuf field repeated string ipv6_cidr = 8; - */ - private $ipv6_cidr; - /** - * Optional. VLAN id provided by user. If not specified we assign one - * automatically. - * - * Generated from protobuf field int32 vlan_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $vlan_id = 0; - /** - * Optional. A bonding type in the subnet creation specifies whether a VLAN - * being created will be present on Bonded or Non-Bonded or Both port types. - * In addition, this flag is to be used to set the specific network - * configuration which clusters can then use for their workloads based on the - * bonding choice. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Subnet.BondingType bonding_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $bonding_type = 0; - /** - * Output only. Current stage of the resource to the device by config push. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The canonical resource name of the subnet. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the subnet was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the subnet was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Labels associated with this resource. - * @type string $description - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * @type string $network - * Required. The network that this subnetwork belongs to. - * @type array|\Google\Protobuf\Internal\RepeatedField $ipv4_cidr - * The ranges of ipv4 addresses that are owned by this subnetwork. - * @type array|\Google\Protobuf\Internal\RepeatedField $ipv6_cidr - * The ranges of ipv6 addresses that are owned by this subnetwork. - * @type int $vlan_id - * Optional. VLAN id provided by user. If not specified we assign one - * automatically. - * @type int $bonding_type - * Optional. A bonding type in the subnet creation specifies whether a VLAN - * being created will be present on Bonded or Non-Bonded or Both port types. - * In addition, this flag is to be used to set the specific network - * configuration which clusters can then use for their workloads based on the - * bonding choice. - * @type int $state - * Output only. Current stage of the resource to the device by config push. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The canonical resource name of the subnet. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The canonical resource name of the subnet. - * - * 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; - } - - /** - * Output only. The time when the subnet was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the subnet was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the subnet was 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 when the subnet was 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; - } - - /** - * Labels associated with this resource. - * - * Generated from protobuf field map labels = 4; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Labels associated with this resource. - * - * 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; - } - - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Optional. A free-text description of the resource. Max length 1024 - * characters. - * - * Generated from protobuf field string description = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDescription($var) - { - GPBUtil::checkString($var, True); - $this->description = $var; - - return $this; - } - - /** - * Required. The network that this subnetwork belongs to. - * - * Generated from protobuf field string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getNetwork() - { - return $this->network; - } - - /** - * Required. The network that this subnetwork belongs to. - * - * Generated from protobuf field string network = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNetwork($var) - { - GPBUtil::checkString($var, True); - $this->network = $var; - - return $this; - } - - /** - * The ranges of ipv4 addresses that are owned by this subnetwork. - * - * Generated from protobuf field repeated string ipv4_cidr = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIpv4Cidr() - { - return $this->ipv4_cidr; - } - - /** - * The ranges of ipv4 addresses that are owned by this subnetwork. - * - * Generated from protobuf field repeated string ipv4_cidr = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIpv4Cidr($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ipv4_cidr = $arr; - - return $this; - } - - /** - * The ranges of ipv6 addresses that are owned by this subnetwork. - * - * Generated from protobuf field repeated string ipv6_cidr = 8; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getIpv6Cidr() - { - return $this->ipv6_cidr; - } - - /** - * The ranges of ipv6 addresses that are owned by this subnetwork. - * - * Generated from protobuf field repeated string ipv6_cidr = 8; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIpv6Cidr($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ipv6_cidr = $arr; - - return $this; - } - - /** - * Optional. VLAN id provided by user. If not specified we assign one - * automatically. - * - * Generated from protobuf field int32 vlan_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getVlanId() - { - return $this->vlan_id; - } - - /** - * Optional. VLAN id provided by user. If not specified we assign one - * automatically. - * - * Generated from protobuf field int32 vlan_id = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setVlanId($var) - { - GPBUtil::checkInt32($var); - $this->vlan_id = $var; - - return $this; - } - - /** - * Optional. A bonding type in the subnet creation specifies whether a VLAN - * being created will be present on Bonded or Non-Bonded or Both port types. - * In addition, this flag is to be used to set the specific network - * configuration which clusters can then use for their workloads based on the - * bonding choice. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Subnet.BondingType bonding_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getBondingType() - { - return $this->bonding_type; - } - - /** - * Optional. A bonding type in the subnet creation specifies whether a VLAN - * being created will be present on Bonded or Non-Bonded or Both port types. - * In addition, this flag is to be used to set the specific network - * configuration which clusters can then use for their workloads based on the - * bonding choice. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Subnet.BondingType bonding_type = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setBondingType($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\EdgeNetwork\V1\Subnet\BondingType::class); - $this->bonding_type = $var; - - return $this; - } - - /** - * Output only. Current stage of the resource to the device by config push. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. Current stage of the resource to the device by config push. - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.ResourceState state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\EdgeNetwork\V1\ResourceState::class); - $this->state = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Subnet/BondingType.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Subnet/BondingType.php deleted file mode 100644 index 4adc56a59998..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Subnet/BondingType.php +++ /dev/null @@ -1,68 +0,0 @@ -google.cloud.edgenetwork.v1.Subnet.BondingType - */ -class BondingType -{ - /** - * Unspecified - * Bonding type will be unspecified by default and if the user chooses to - * not specify a bonding type at time of creating the VLAN. This will be - * treated as mixed bonding where the VLAN will have both bonded and - * non-bonded connectivity to machines. - * - * Generated from protobuf enum BONDING_TYPE_UNSPECIFIED = 0; - */ - const BONDING_TYPE_UNSPECIFIED = 0; - /** - * Multi homed. - * - * Generated from protobuf enum BONDED = 1; - */ - const BONDED = 1; - /** - * Single homed. - * - * Generated from protobuf enum NON_BONDED = 2; - */ - const NON_BONDED = 2; - - private static $valueToName = [ - self::BONDING_TYPE_UNSPECIFIED => 'BONDING_TYPE_UNSPECIFIED', - self::BONDED => 'BONDED', - self::NON_BONDED => 'NON_BONDED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(BondingType::class, \Google\Cloud\EdgeNetwork\V1\Subnet_BondingType::class); - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/SubnetStatus.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/SubnetStatus.php deleted file mode 100644 index 9da065106467..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/SubnetStatus.php +++ /dev/null @@ -1,140 +0,0 @@ -google.cloud.edgenetwork.v1.SubnetStatus - */ -class SubnetStatus extends \Google\Protobuf\Internal\Message -{ - /** - * The name of CCFE subnet resource. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * BVI MAC address. - * - * Generated from protobuf field string mac_address = 2; - */ - protected $mac_address = ''; - /** - * A list of LinkLayerAddress, describing the ip address and corresponding - * link-layer address of the neighbors for this subnet. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.LinkLayerAddress link_layer_addresses = 3; - */ - private $link_layer_addresses; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The name of CCFE subnet resource. - * @type string $mac_address - * BVI MAC address. - * @type array<\Google\Cloud\EdgeNetwork\V1\LinkLayerAddress>|\Google\Protobuf\Internal\RepeatedField $link_layer_addresses - * A list of LinkLayerAddress, describing the ip address and corresponding - * link-layer address of the neighbors for this subnet. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * The name of CCFE subnet resource. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The name of CCFE subnet resource. - * - * 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; - } - - /** - * BVI MAC address. - * - * Generated from protobuf field string mac_address = 2; - * @return string - */ - public function getMacAddress() - { - return $this->mac_address; - } - - /** - * BVI MAC address. - * - * Generated from protobuf field string mac_address = 2; - * @param string $var - * @return $this - */ - public function setMacAddress($var) - { - GPBUtil::checkString($var, True); - $this->mac_address = $var; - - return $this; - } - - /** - * A list of LinkLayerAddress, describing the ip address and corresponding - * link-layer address of the neighbors for this subnet. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.LinkLayerAddress link_layer_addresses = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getLinkLayerAddresses() - { - return $this->link_layer_addresses; - } - - /** - * A list of LinkLayerAddress, describing the ip address and corresponding - * link-layer address of the neighbors for this subnet. - * - * Generated from protobuf field repeated .google.cloud.edgenetwork.v1.LinkLayerAddress link_layer_addresses = 3; - * @param array<\Google\Cloud\EdgeNetwork\V1\LinkLayerAddress>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setLinkLayerAddresses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EdgeNetwork\V1\LinkLayerAddress::class); - $this->link_layer_addresses = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/UpdateRouterRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/UpdateRouterRequest.php deleted file mode 100644 index 30f64b5788a3..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/UpdateRouterRequest.php +++ /dev/null @@ -1,230 +0,0 @@ -google.cloud.edgenetwork.v1.UpdateRouterRequest - */ -class UpdateRouterRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Router 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) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Router router = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $router = 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\EdgeNetwork\V1\Router $router Required. The resource being updated - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the - * Router 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\EdgeNetwork\V1\UpdateRouterRequest - * - * @experimental - */ - public static function build(\Google\Cloud\EdgeNetwork\V1\Router $router, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setRouter($router) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten in the - * Router 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\EdgeNetwork\V1\Router $router - * Required. The resource being updated - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Router 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) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Router 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) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Router router = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\EdgeNetwork\V1\Router|null - */ - public function getRouter() - { - return $this->router; - } - - public function hasRouter() - { - return isset($this->router); - } - - public function clearRouter() - { - unset($this->router); - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Router router = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\EdgeNetwork\V1\Router $var - * @return $this - */ - public function setRouter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\Router::class); - $this->router = $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/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/UpdateSubnetRequest.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/UpdateSubnetRequest.php deleted file mode 100644 index b4033b549422..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/UpdateSubnetRequest.php +++ /dev/null @@ -1,230 +0,0 @@ -google.cloud.edgenetwork.v1.UpdateSubnetRequest - */ -class UpdateSubnetRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Subnet 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) = REQUIRED]; - */ - protected $update_mask = null; - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $subnet = 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\EdgeNetwork\V1\Subnet $subnet Required. The resource being updated - * @param \Google\Protobuf\FieldMask $updateMask Required. Field mask is used to specify the fields to be overwritten in the - * Subnet 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\EdgeNetwork\V1\UpdateSubnetRequest - * - * @experimental - */ - public static function build(\Google\Cloud\EdgeNetwork\V1\Subnet $subnet, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setSubnet($subnet) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\FieldMask $update_mask - * Required. Field mask is used to specify the fields to be overwritten in the - * Subnet 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\EdgeNetwork\V1\Subnet $subnet - * Required. The resource being updated - * @type string $request_id - * Optional. An optional request ID to identify requests. Specify a unique - * request ID so that if you must retry your request, the server will know to - * ignore the request if it has already been completed. The server will - * guarantee that for at least 60 minutes since the first request. - * For example, consider a situation where you make an initial request and - * the request times out. If you make the request again with the same request - * ID, the server can check if original operation with the same request ID - * was received, and if so, will ignore the second request. This prevents - * clients from accidentally creating duplicate commitments. - * The request ID must be a valid UUID with the exception that zero UUID is - * not supported (00000000-0000-0000-0000-000000000000). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Subnet 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) = REQUIRED]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Required. Field mask is used to specify the fields to be overwritten in the - * Subnet 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) = REQUIRED]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\EdgeNetwork\V1\Subnet|null - */ - public function getSubnet() - { - return $this->subnet; - } - - public function hasSubnet() - { - return isset($this->subnet); - } - - public function clearSubnet() - { - unset($this->subnet); - } - - /** - * Required. The resource being updated - * - * Generated from protobuf field .google.cloud.edgenetwork.v1.Subnet subnet = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\EdgeNetwork\V1\Subnet $var - * @return $this - */ - public function setSubnet($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EdgeNetwork\V1\Subnet::class); - $this->subnet = $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/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Zone.php b/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Zone.php deleted file mode 100644 index d63636482fcd..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/proto/src/Google/Cloud/EdgeNetwork/V1/Zone.php +++ /dev/null @@ -1,241 +0,0 @@ -google.cloud.edgenetwork.v1.Zone - */ -class Zone extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the zone. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Output only. The time when the zone was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time when the zone was last updated. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Deprecated: not implemented. - * Labels as key value pairs. - * - * Generated from protobuf field map labels = 4 [deprecated = true]; - * @deprecated - */ - private $labels; - /** - * Deprecated: not implemented. - * The deployment layout type. - * - * Generated from protobuf field string layout_name = 5 [deprecated = true]; - * @deprecated - */ - protected $layout_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the zone. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time when the zone was created. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The time when the zone was last updated. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Deprecated: not implemented. - * Labels as key value pairs. - * @type string $layout_name - * Deprecated: not implemented. - * The deployment layout type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Edgenetwork\V1\Resources::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the zone. - * - * 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 zone. - * - * 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; - } - - /** - * Output only. The time when the zone was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time when the zone was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time when the zone was 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 when the zone was 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; - } - - /** - * Deprecated: not implemented. - * Labels as key value pairs. - * - * Generated from protobuf field map labels = 4 [deprecated = true]; - * @return \Google\Protobuf\Internal\MapField - * @deprecated - */ - public function getLabels() - { - @trigger_error('labels is deprecated.', E_USER_DEPRECATED); - return $this->labels; - } - - /** - * Deprecated: not implemented. - * Labels as key value pairs. - * - * Generated from protobuf field map labels = 4 [deprecated = true]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - * @deprecated - */ - public function setLabels($var) - { - @trigger_error('labels is deprecated.', E_USER_DEPRECATED); - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Deprecated: not implemented. - * The deployment layout type. - * - * Generated from protobuf field string layout_name = 5 [deprecated = true]; - * @return string - * @deprecated - */ - public function getLayoutName() - { - @trigger_error('layout_name is deprecated.', E_USER_DEPRECATED); - return $this->layout_name; - } - - /** - * Deprecated: not implemented. - * The deployment layout type. - * - * Generated from protobuf field string layout_name = 5 [deprecated = true]; - * @param string $var - * @return $this - * @deprecated - */ - public function setLayoutName($var) - { - @trigger_error('layout_name is deprecated.', E_USER_DEPRECATED); - GPBUtil::checkString($var, True); - $this->layout_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_interconnect_attachment.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_interconnect_attachment.php deleted file mode 100644 index 129fe7d74254..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_interconnect_attachment.php +++ /dev/null @@ -1,118 +0,0 @@ -setName($interconnectAttachmentName) - ->setInterconnect($formattedInterconnectAttachmentInterconnect) - ->setVlanId($interconnectAttachmentVlanId); - $request = (new CreateInterconnectAttachmentRequest()) - ->setParent($formattedParent) - ->setInterconnectAttachmentId($interconnectAttachmentId) - ->setInterconnectAttachment($interconnectAttachment); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $edgeNetworkClient->createInterconnectAttachment($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var InterconnectAttachment $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 = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $interconnectAttachmentId = '[INTERCONNECT_ATTACHMENT_ID]'; - $interconnectAttachmentName = '[NAME]'; - $formattedInterconnectAttachmentInterconnect = EdgeNetworkClient::interconnectName( - '[PROJECT]', - '[LOCATION]', - '[ZONE]', - '[INTERCONNECT]' - ); - $interconnectAttachmentVlanId = 0; - - create_interconnect_attachment_sample( - $formattedParent, - $interconnectAttachmentId, - $interconnectAttachmentName, - $formattedInterconnectAttachmentInterconnect, - $interconnectAttachmentVlanId - ); -} -// [END edgenetwork_v1_generated_EdgeNetwork_CreateInterconnectAttachment_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_network.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_network.php deleted file mode 100644 index 49618d1adb65..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_network.php +++ /dev/null @@ -1,96 +0,0 @@ -setName($networkName); - $request = (new CreateNetworkRequest()) - ->setParent($formattedParent) - ->setNetworkId($networkId) - ->setNetwork($network); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $edgeNetworkClient->createNetwork($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Network $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 = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $networkId = '[NETWORK_ID]'; - $networkName = '[NAME]'; - - create_network_sample($formattedParent, $networkId, $networkName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_CreateNetwork_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_router.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_router.php deleted file mode 100644 index c38f33cbb5e3..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_router.php +++ /dev/null @@ -1,108 +0,0 @@ -setName($routerName) - ->setNetwork($formattedRouterNetwork); - $request = (new CreateRouterRequest()) - ->setParent($formattedParent) - ->setRouterId($routerId) - ->setRouter($router); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $edgeNetworkClient->createRouter($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Router $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 = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $routerId = '[ROUTER_ID]'; - $routerName = '[NAME]'; - $formattedRouterNetwork = EdgeNetworkClient::networkName( - '[PROJECT]', - '[LOCATION]', - '[ZONE]', - '[NETWORK]' - ); - - create_router_sample($formattedParent, $routerId, $routerName, $formattedRouterNetwork); -} -// [END edgenetwork_v1_generated_EdgeNetwork_CreateRouter_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_subnet.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_subnet.php deleted file mode 100644 index 63f2e637ae07..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/create_subnet.php +++ /dev/null @@ -1,106 +0,0 @@ -setName($subnetName) - ->setNetwork($formattedSubnetNetwork); - $request = (new CreateSubnetRequest()) - ->setParent($formattedParent) - ->setSubnetId($subnetId) - ->setSubnet($subnet); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $edgeNetworkClient->createSubnet($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Subnet $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 = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $subnetId = '[SUBNET_ID]'; - $subnetName = '[NAME]'; - $formattedSubnetNetwork = EdgeNetworkClient::networkName( - '[PROJECT]', - '[LOCATION]', - '[ZONE]', - '[NETWORK]' - ); - - create_subnet_sample($formattedParent, $subnetId, $subnetName, $formattedSubnetNetwork); -} -// [END edgenetwork_v1_generated_EdgeNetwork_CreateSubnet_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_interconnect_attachment.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_interconnect_attachment.php deleted file mode 100644 index e1ac672c488b..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_interconnect_attachment.php +++ /dev/null @@ -1,85 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $edgeNetworkClient->deleteInterconnectAttachment($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 = EdgeNetworkClient::interconnectAttachmentName( - '[PROJECT]', - '[LOCATION]', - '[ZONE]', - '[INTERCONNECT_ATTACHMENT]' - ); - - delete_interconnect_attachment_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_DeleteInterconnectAttachment_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_network.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_network.php deleted file mode 100644 index c6e529a550b2..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_network.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $edgeNetworkClient->deleteNetwork($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 = EdgeNetworkClient::networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - - delete_network_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_DeleteNetwork_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_router.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_router.php deleted file mode 100644 index be067a6b6f5b..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_router.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $edgeNetworkClient->deleteRouter($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 = EdgeNetworkClient::routerName('[PROJECT]', '[LOCATION]', '[ZONE]', '[ROUTER]'); - - delete_router_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_DeleteRouter_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_subnet.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_subnet.php deleted file mode 100644 index da8180f5819b..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/delete_subnet.php +++ /dev/null @@ -1,80 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $edgeNetworkClient->deleteSubnet($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 = EdgeNetworkClient::subnetName('[PROJECT]', '[LOCATION]', '[ZONE]', '[SUBNET]'); - - delete_subnet_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_DeleteSubnet_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_interconnect.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_interconnect.php deleted file mode 100644 index 9af4eaeb12ba..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_interconnect.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DiagnoseInterconnectResponse $response */ - $response = $edgeNetworkClient->diagnoseInterconnect($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EdgeNetworkClient::interconnectName( - '[PROJECT]', - '[LOCATION]', - '[ZONE]', - '[INTERCONNECT]' - ); - - diagnose_interconnect_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_DiagnoseInterconnect_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_network.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_network.php deleted file mode 100644 index da4dd791e911..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_network.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DiagnoseNetworkResponse $response */ - $response = $edgeNetworkClient->diagnoseNetwork($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EdgeNetworkClient::networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - - diagnose_network_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_DiagnoseNetwork_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_router.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_router.php deleted file mode 100644 index e73b3aa24a91..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/diagnose_router.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var DiagnoseRouterResponse $response */ - $response = $edgeNetworkClient->diagnoseRouter($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EdgeNetworkClient::routerName('[PROJECT]', '[LOCATION]', '[ZONE]', '[ROUTER]'); - - diagnose_router_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_DiagnoseRouter_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_interconnect.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_interconnect.php deleted file mode 100644 index cf9d729020d0..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_interconnect.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Interconnect $response */ - $response = $edgeNetworkClient->getInterconnect($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EdgeNetworkClient::interconnectName( - '[PROJECT]', - '[LOCATION]', - '[ZONE]', - '[INTERCONNECT]' - ); - - get_interconnect_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_GetInterconnect_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_interconnect_attachment.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_interconnect_attachment.php deleted file mode 100644 index 0d82507d65f5..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_interconnect_attachment.php +++ /dev/null @@ -1,76 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var InterconnectAttachment $response */ - $response = $edgeNetworkClient->getInterconnectAttachment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EdgeNetworkClient::interconnectAttachmentName( - '[PROJECT]', - '[LOCATION]', - '[ZONE]', - '[INTERCONNECT_ATTACHMENT]' - ); - - get_interconnect_attachment_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_GetInterconnectAttachment_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_location.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_location.php deleted file mode 100644 index be535d6eea01..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END edgenetwork_v1_generated_EdgeNetwork_GetLocation_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_network.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_network.php deleted file mode 100644 index eca2d643c3d1..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_network.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Network $response */ - $response = $edgeNetworkClient->getNetwork($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EdgeNetworkClient::networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - - get_network_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_GetNetwork_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_router.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_router.php deleted file mode 100644 index 6d6a9e36cc20..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_router.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Router $response */ - $response = $edgeNetworkClient->getRouter($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EdgeNetworkClient::routerName('[PROJECT]', '[LOCATION]', '[ZONE]', '[ROUTER]'); - - get_router_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_GetRouter_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_subnet.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_subnet.php deleted file mode 100644 index a18c72a41444..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_subnet.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Subnet $response */ - $response = $edgeNetworkClient->getSubnet($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EdgeNetworkClient::subnetName('[PROJECT]', '[LOCATION]', '[ZONE]', '[SUBNET]'); - - get_subnet_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_GetSubnet_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_zone.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_zone.php deleted file mode 100644 index 49b6a3e71851..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/get_zone.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Zone $response */ - $response = $edgeNetworkClient->getZone($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - - get_zone_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_GetZone_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/initialize_zone.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/initialize_zone.php deleted file mode 100644 index a7c680c7e488..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/initialize_zone.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var InitializeZoneResponse $response */ - $response = $edgeNetworkClient->initializeZone($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - - initialize_zone_sample($formattedName); -} -// [END edgenetwork_v1_generated_EdgeNetwork_InitializeZone_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_interconnect_attachments.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_interconnect_attachments.php deleted file mode 100644 index 5ab1bc27c813..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_interconnect_attachments.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $edgeNetworkClient->listInterconnectAttachments($request); - - /** @var InterconnectAttachment $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 = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - - list_interconnect_attachments_sample($formattedParent); -} -// [END edgenetwork_v1_generated_EdgeNetwork_ListInterconnectAttachments_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_interconnects.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_interconnects.php deleted file mode 100644 index 74184251302a..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_interconnects.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $edgeNetworkClient->listInterconnects($request); - - /** @var Interconnect $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 = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - - list_interconnects_sample($formattedParent); -} -// [END edgenetwork_v1_generated_EdgeNetwork_ListInterconnects_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_locations.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_locations.php deleted file mode 100644 index 8ee444c91111..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END edgenetwork_v1_generated_EdgeNetwork_ListLocations_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_networks.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_networks.php deleted file mode 100644 index 4cbd89e13874..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_networks.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $edgeNetworkClient->listNetworks($request); - - /** @var Network $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 = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - - list_networks_sample($formattedParent); -} -// [END edgenetwork_v1_generated_EdgeNetwork_ListNetworks_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_routers.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_routers.php deleted file mode 100644 index 88007a7284a1..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_routers.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $edgeNetworkClient->listRouters($request); - - /** @var Router $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 = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - - list_routers_sample($formattedParent); -} -// [END edgenetwork_v1_generated_EdgeNetwork_ListRouters_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_subnets.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_subnets.php deleted file mode 100644 index b990b602c821..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_subnets.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $edgeNetworkClient->listSubnets($request); - - /** @var Subnet $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 = EdgeNetworkClient::zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - - list_subnets_sample($formattedParent); -} -// [END edgenetwork_v1_generated_EdgeNetwork_ListSubnets_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_zones.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_zones.php deleted file mode 100644 index 6a361f082cbc..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/list_zones.php +++ /dev/null @@ -1,77 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $edgeNetworkClient->listZones($request); - - /** @var Zone $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 = EdgeNetworkClient::locationName('[PROJECT]', '[LOCATION]'); - - list_zones_sample($formattedParent); -} -// [END edgenetwork_v1_generated_EdgeNetwork_ListZones_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/update_router.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/update_router.php deleted file mode 100644 index 78f6970df0a5..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/update_router.php +++ /dev/null @@ -1,98 +0,0 @@ -setName($routerName) - ->setNetwork($formattedRouterNetwork); - $request = (new UpdateRouterRequest()) - ->setUpdateMask($updateMask) - ->setRouter($router); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $edgeNetworkClient->updateRouter($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Router $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 -{ - $routerName = '[NAME]'; - $formattedRouterNetwork = EdgeNetworkClient::networkName( - '[PROJECT]', - '[LOCATION]', - '[ZONE]', - '[NETWORK]' - ); - - update_router_sample($routerName, $formattedRouterNetwork); -} -// [END edgenetwork_v1_generated_EdgeNetwork_UpdateRouter_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/update_subnet.php b/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/update_subnet.php deleted file mode 100644 index 6ce543d43474..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/samples/V1/EdgeNetworkClient/update_subnet.php +++ /dev/null @@ -1,96 +0,0 @@ -setName($subnetName) - ->setNetwork($formattedSubnetNetwork); - $request = (new UpdateSubnetRequest()) - ->setUpdateMask($updateMask) - ->setSubnet($subnet); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $edgeNetworkClient->updateSubnet($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Subnet $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 -{ - $subnetName = '[NAME]'; - $formattedSubnetNetwork = EdgeNetworkClient::networkName( - '[PROJECT]', - '[LOCATION]', - '[ZONE]', - '[NETWORK]' - ); - - update_subnet_sample($subnetName, $formattedSubnetNetwork); -} -// [END edgenetwork_v1_generated_EdgeNetwork_UpdateSubnet_sync] diff --git a/owl-bot-staging/EdgeNetwork/v1/src/V1/Client/EdgeNetworkClient.php b/owl-bot-staging/EdgeNetwork/v1/src/V1/Client/EdgeNetworkClient.php deleted file mode 100644 index e8c36fcc6cc4..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/src/V1/Client/EdgeNetworkClient.php +++ /dev/null @@ -1,1201 +0,0 @@ - createInterconnectAttachmentAsync(CreateInterconnectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createNetworkAsync(CreateNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface createRouterAsync(CreateRouterRequest $request, array $optionalArgs = []) - * @method PromiseInterface createSubnetAsync(CreateSubnetRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteInterconnectAttachmentAsync(DeleteInterconnectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteNetworkAsync(DeleteNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteRouterAsync(DeleteRouterRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteSubnetAsync(DeleteSubnetRequest $request, array $optionalArgs = []) - * @method PromiseInterface diagnoseInterconnectAsync(DiagnoseInterconnectRequest $request, array $optionalArgs = []) - * @method PromiseInterface diagnoseNetworkAsync(DiagnoseNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface diagnoseRouterAsync(DiagnoseRouterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInterconnectAsync(GetInterconnectRequest $request, array $optionalArgs = []) - * @method PromiseInterface getInterconnectAttachmentAsync(GetInterconnectAttachmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getNetworkAsync(GetNetworkRequest $request, array $optionalArgs = []) - * @method PromiseInterface getRouterAsync(GetRouterRequest $request, array $optionalArgs = []) - * @method PromiseInterface getSubnetAsync(GetSubnetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getZoneAsync(GetZoneRequest $request, array $optionalArgs = []) - * @method PromiseInterface initializeZoneAsync(InitializeZoneRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInterconnectAttachmentsAsync(ListInterconnectAttachmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listInterconnectsAsync(ListInterconnectsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listNetworksAsync(ListNetworksRequest $request, array $optionalArgs = []) - * @method PromiseInterface listRoutersAsync(ListRoutersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listSubnetsAsync(ListSubnetsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listZonesAsync(ListZonesRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateRouterAsync(UpdateRouterRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateSubnetAsync(UpdateSubnetRequest $request, array $optionalArgs = []) - * @method PromiseInterface getLocationAsync(GetLocationRequest $request, array $optionalArgs = []) - * @method PromiseInterface listLocationsAsync(ListLocationsRequest $request, array $optionalArgs = []) - */ -final class EdgeNetworkClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.edgenetwork.v1.EdgeNetwork'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'edgenetwork.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'edgenetwork.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/edge_network_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/edge_network_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/edge_network_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/edge_network_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 interconnect - * resource. - * - * @param string $project - * @param string $location - * @param string $zone - * @param string $interconnect - * - * @return string The formatted interconnect resource. - */ - public static function interconnectName(string $project, string $location, string $zone, string $interconnect): string - { - return self::getPathTemplate('interconnect')->render([ - 'project' => $project, - 'location' => $location, - 'zone' => $zone, - 'interconnect' => $interconnect, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * interconnect_attachment resource. - * - * @param string $project - * @param string $location - * @param string $zone - * @param string $interconnectAttachment - * - * @return string The formatted interconnect_attachment resource. - */ - public static function interconnectAttachmentName(string $project, string $location, string $zone, string $interconnectAttachment): string - { - return self::getPathTemplate('interconnectAttachment')->render([ - 'project' => $project, - 'location' => $location, - 'zone' => $zone, - 'interconnect_attachment' => $interconnectAttachment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a location - * resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted location resource. - */ - public static function locationName(string $project, string $location): string - { - return self::getPathTemplate('location')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a network - * resource. - * - * @param string $project - * @param string $location - * @param string $zone - * @param string $network - * - * @return string The formatted network resource. - */ - public static function networkName(string $project, string $location, string $zone, string $network): string - { - return self::getPathTemplate('network')->render([ - 'project' => $project, - 'location' => $location, - 'zone' => $zone, - 'network' => $network, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a router - * resource. - * - * @param string $project - * @param string $location - * @param string $zone - * @param string $router - * - * @return string The formatted router resource. - */ - public static function routerName(string $project, string $location, string $zone, string $router): string - { - return self::getPathTemplate('router')->render([ - 'project' => $project, - 'location' => $location, - 'zone' => $zone, - 'router' => $router, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a subnet - * resource. - * - * @param string $project - * @param string $location - * @param string $zone - * @param string $subnet - * - * @return string The formatted subnet resource. - */ - public static function subnetName(string $project, string $location, string $zone, string $subnet): string - { - return self::getPathTemplate('subnet')->render([ - 'project' => $project, - 'location' => $location, - 'zone' => $zone, - 'subnet' => $subnet, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a zone - * resource. - * - * @param string $project - * @param string $location - * @param string $zone - * - * @return string The formatted zone resource. - */ - public static function zoneName(string $project, string $location, string $zone): string - { - return self::getPathTemplate('zone')->render([ - 'project' => $project, - 'location' => $location, - 'zone' => $zone, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - interconnect: projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect} - * - interconnectAttachment: projects/{project}/locations/{location}/zones/{zone}/interconnectAttachments/{interconnect_attachment} - * - location: projects/{project}/locations/{location} - * - network: projects/{project}/locations/{location}/zones/{zone}/networks/{network} - * - router: projects/{project}/locations/{location}/zones/{zone}/routers/{router} - * - subnet: projects/{project}/locations/{location}/zones/{zone}/subnets/{subnet} - * - zone: projects/{project}/locations/{location}/zones/{zone} - * - * 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 'edgenetwork.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 InterconnectAttachment in a given project and location. - * - * The async variant is - * {@see EdgeNetworkClient::createInterconnectAttachmentAsync()} . - * - * @example samples/V1/EdgeNetworkClient/create_interconnect_attachment.php - * - * @param CreateInterconnectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createInterconnectAttachment(CreateInterconnectAttachmentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateInterconnectAttachment', $request, $callOptions)->wait(); - } - - /** - * Creates a new Network in a given project and location. - * - * The async variant is {@see EdgeNetworkClient::createNetworkAsync()} . - * - * @example samples/V1/EdgeNetworkClient/create_network.php - * - * @param CreateNetworkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createNetwork(CreateNetworkRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateNetwork', $request, $callOptions)->wait(); - } - - /** - * Creates a new Router in a given project and location. - * - * The async variant is {@see EdgeNetworkClient::createRouterAsync()} . - * - * @example samples/V1/EdgeNetworkClient/create_router.php - * - * @param CreateRouterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createRouter(CreateRouterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateRouter', $request, $callOptions)->wait(); - } - - /** - * Creates a new Subnet in a given project and location. - * - * The async variant is {@see EdgeNetworkClient::createSubnetAsync()} . - * - * @example samples/V1/EdgeNetworkClient/create_subnet.php - * - * @param CreateSubnetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createSubnet(CreateSubnetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateSubnet', $request, $callOptions)->wait(); - } - - /** - * Deletes a single InterconnectAttachment. - * - * The async variant is - * {@see EdgeNetworkClient::deleteInterconnectAttachmentAsync()} . - * - * @example samples/V1/EdgeNetworkClient/delete_interconnect_attachment.php - * - * @param DeleteInterconnectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteInterconnectAttachment(DeleteInterconnectAttachmentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteInterconnectAttachment', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Network. - * - * The async variant is {@see EdgeNetworkClient::deleteNetworkAsync()} . - * - * @example samples/V1/EdgeNetworkClient/delete_network.php - * - * @param DeleteNetworkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteNetwork(DeleteNetworkRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteNetwork', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Router. - * - * The async variant is {@see EdgeNetworkClient::deleteRouterAsync()} . - * - * @example samples/V1/EdgeNetworkClient/delete_router.php - * - * @param DeleteRouterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteRouter(DeleteRouterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteRouter', $request, $callOptions)->wait(); - } - - /** - * Deletes a single Subnet. - * - * The async variant is {@see EdgeNetworkClient::deleteSubnetAsync()} . - * - * @example samples/V1/EdgeNetworkClient/delete_subnet.php - * - * @param DeleteSubnetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteSubnet(DeleteSubnetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteSubnet', $request, $callOptions)->wait(); - } - - /** - * Get the diagnostics of a single interconnect resource. - * - * The async variant is {@see EdgeNetworkClient::diagnoseInterconnectAsync()} . - * - * @example samples/V1/EdgeNetworkClient/diagnose_interconnect.php - * - * @param DiagnoseInterconnectRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiagnoseInterconnectResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function diagnoseInterconnect(DiagnoseInterconnectRequest $request, array $callOptions = []): DiagnoseInterconnectResponse - { - return $this->startApiCall('DiagnoseInterconnect', $request, $callOptions)->wait(); - } - - /** - * Get the diagnostics of a single network resource. - * - * The async variant is {@see EdgeNetworkClient::diagnoseNetworkAsync()} . - * - * @example samples/V1/EdgeNetworkClient/diagnose_network.php - * - * @param DiagnoseNetworkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiagnoseNetworkResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function diagnoseNetwork(DiagnoseNetworkRequest $request, array $callOptions = []): DiagnoseNetworkResponse - { - return $this->startApiCall('DiagnoseNetwork', $request, $callOptions)->wait(); - } - - /** - * Get the diagnostics of a single router resource. - * - * The async variant is {@see EdgeNetworkClient::diagnoseRouterAsync()} . - * - * @example samples/V1/EdgeNetworkClient/diagnose_router.php - * - * @param DiagnoseRouterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DiagnoseRouterResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function diagnoseRouter(DiagnoseRouterRequest $request, array $callOptions = []): DiagnoseRouterResponse - { - return $this->startApiCall('DiagnoseRouter', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Interconnect. - * - * The async variant is {@see EdgeNetworkClient::getInterconnectAsync()} . - * - * @example samples/V1/EdgeNetworkClient/get_interconnect.php - * - * @param GetInterconnectRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Interconnect - * - * @throws ApiException Thrown if the API call fails. - */ - public function getInterconnect(GetInterconnectRequest $request, array $callOptions = []): Interconnect - { - return $this->startApiCall('GetInterconnect', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single InterconnectAttachment. - * - * The async variant is {@see EdgeNetworkClient::getInterconnectAttachmentAsync()} - * . - * - * @example samples/V1/EdgeNetworkClient/get_interconnect_attachment.php - * - * @param GetInterconnectAttachmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InterconnectAttachment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getInterconnectAttachment(GetInterconnectAttachmentRequest $request, array $callOptions = []): InterconnectAttachment - { - return $this->startApiCall('GetInterconnectAttachment', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Network. - * - * The async variant is {@see EdgeNetworkClient::getNetworkAsync()} . - * - * @example samples/V1/EdgeNetworkClient/get_network.php - * - * @param GetNetworkRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Network - * - * @throws ApiException Thrown if the API call fails. - */ - public function getNetwork(GetNetworkRequest $request, array $callOptions = []): Network - { - return $this->startApiCall('GetNetwork', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Router. - * - * The async variant is {@see EdgeNetworkClient::getRouterAsync()} . - * - * @example samples/V1/EdgeNetworkClient/get_router.php - * - * @param GetRouterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Router - * - * @throws ApiException Thrown if the API call fails. - */ - public function getRouter(GetRouterRequest $request, array $callOptions = []): Router - { - return $this->startApiCall('GetRouter', $request, $callOptions)->wait(); - } - - /** - * Gets details of a single Subnet. - * - * The async variant is {@see EdgeNetworkClient::getSubnetAsync()} . - * - * @example samples/V1/EdgeNetworkClient/get_subnet.php - * - * @param GetSubnetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Subnet - * - * @throws ApiException Thrown if the API call fails. - */ - public function getSubnet(GetSubnetRequest $request, array $callOptions = []): Subnet - { - return $this->startApiCall('GetSubnet', $request, $callOptions)->wait(); - } - - /** - * Deprecated: not implemented. - * Gets details of a single Zone. - * - * The async variant is {@see EdgeNetworkClient::getZoneAsync()} . - * - * @example samples/V1/EdgeNetworkClient/get_zone.php - * - * @param GetZoneRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Zone - * - * @throws ApiException Thrown if the API call fails. - * - * @deprecated This method will be removed in the next major version update. - */ - public function getZone(GetZoneRequest $request, array $callOptions = []): Zone - { - return $this->startApiCall('GetZone', $request, $callOptions)->wait(); - } - - /** - * InitializeZone will initialize resources for a zone in a project. - * - * The async variant is {@see EdgeNetworkClient::initializeZoneAsync()} . - * - * @example samples/V1/EdgeNetworkClient/initialize_zone.php - * - * @param InitializeZoneRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return InitializeZoneResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function initializeZone(InitializeZoneRequest $request, array $callOptions = []): InitializeZoneResponse - { - return $this->startApiCall('InitializeZone', $request, $callOptions)->wait(); - } - - /** - * Lists InterconnectAttachments in a given project and location. - * - * The async variant is - * {@see EdgeNetworkClient::listInterconnectAttachmentsAsync()} . - * - * @example samples/V1/EdgeNetworkClient/list_interconnect_attachments.php - * - * @param ListInterconnectAttachmentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listInterconnectAttachments(ListInterconnectAttachmentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListInterconnectAttachments', $request, $callOptions); - } - - /** - * Lists Interconnects in a given project and location. - * - * The async variant is {@see EdgeNetworkClient::listInterconnectsAsync()} . - * - * @example samples/V1/EdgeNetworkClient/list_interconnects.php - * - * @param ListInterconnectsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listInterconnects(ListInterconnectsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListInterconnects', $request, $callOptions); - } - - /** - * Lists Networks in a given project and location. - * - * The async variant is {@see EdgeNetworkClient::listNetworksAsync()} . - * - * @example samples/V1/EdgeNetworkClient/list_networks.php - * - * @param ListNetworksRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PagedListResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function listNetworks(ListNetworksRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListNetworks', $request, $callOptions); - } - - /** - * Lists Routers in a given project and location. - * - * The async variant is {@see EdgeNetworkClient::listRoutersAsync()} . - * - * @example samples/V1/EdgeNetworkClient/list_routers.php - * - * @param ListRoutersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listRouters(ListRoutersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListRouters', $request, $callOptions); - } - - /** - * Lists Subnets in a given project and location. - * - * The async variant is {@see EdgeNetworkClient::listSubnetsAsync()} . - * - * @example samples/V1/EdgeNetworkClient/list_subnets.php - * - * @param ListSubnetsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listSubnets(ListSubnetsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListSubnets', $request, $callOptions); - } - - /** - * Deprecated: not implemented. - * Lists Zones in a given project and location. - * - * The async variant is {@see EdgeNetworkClient::listZonesAsync()} . - * - * @example samples/V1/EdgeNetworkClient/list_zones.php - * - * @param ListZonesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listZones(ListZonesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListZones', $request, $callOptions); - } - - /** - * Updates the parameters of a single Router. - * - * The async variant is {@see EdgeNetworkClient::updateRouterAsync()} . - * - * @example samples/V1/EdgeNetworkClient/update_router.php - * - * @param UpdateRouterRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateRouter(UpdateRouterRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateRouter', $request, $callOptions)->wait(); - } - - /** - * Updates the parameters of a single Subnet. - * - * The async variant is {@see EdgeNetworkClient::updateSubnetAsync()} . - * - * @example samples/V1/EdgeNetworkClient/update_subnet.php - * - * @param UpdateSubnetRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateSubnet(UpdateSubnetRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateSubnet', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see EdgeNetworkClient::getLocationAsync()} . - * - * @example samples/V1/EdgeNetworkClient/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 EdgeNetworkClient::listLocationsAsync()} . - * - * @example samples/V1/EdgeNetworkClient/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/EdgeNetwork/v1/src/V1/gapic_metadata.json b/owl-bot-staging/EdgeNetwork/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 38d2cf56bb69..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,158 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.edgenetwork.v1", - "libraryPackage": "Google\\Cloud\\EdgeNetwork\\V1", - "services": { - "EdgeNetwork": { - "clients": { - "grpc": { - "libraryClient": "EdgeNetworkGapicClient", - "rpcs": { - "CreateInterconnectAttachment": { - "methods": [ - "createInterconnectAttachment" - ] - }, - "CreateNetwork": { - "methods": [ - "createNetwork" - ] - }, - "CreateRouter": { - "methods": [ - "createRouter" - ] - }, - "CreateSubnet": { - "methods": [ - "createSubnet" - ] - }, - "DeleteInterconnectAttachment": { - "methods": [ - "deleteInterconnectAttachment" - ] - }, - "DeleteNetwork": { - "methods": [ - "deleteNetwork" - ] - }, - "DeleteRouter": { - "methods": [ - "deleteRouter" - ] - }, - "DeleteSubnet": { - "methods": [ - "deleteSubnet" - ] - }, - "DiagnoseInterconnect": { - "methods": [ - "diagnoseInterconnect" - ] - }, - "DiagnoseNetwork": { - "methods": [ - "diagnoseNetwork" - ] - }, - "DiagnoseRouter": { - "methods": [ - "diagnoseRouter" - ] - }, - "GetInterconnect": { - "methods": [ - "getInterconnect" - ] - }, - "GetInterconnectAttachment": { - "methods": [ - "getInterconnectAttachment" - ] - }, - "GetNetwork": { - "methods": [ - "getNetwork" - ] - }, - "GetRouter": { - "methods": [ - "getRouter" - ] - }, - "GetSubnet": { - "methods": [ - "getSubnet" - ] - }, - "GetZone": { - "methods": [ - "getZone" - ] - }, - "InitializeZone": { - "methods": [ - "initializeZone" - ] - }, - "ListInterconnectAttachments": { - "methods": [ - "listInterconnectAttachments" - ] - }, - "ListInterconnects": { - "methods": [ - "listInterconnects" - ] - }, - "ListNetworks": { - "methods": [ - "listNetworks" - ] - }, - "ListRouters": { - "methods": [ - "listRouters" - ] - }, - "ListSubnets": { - "methods": [ - "listSubnets" - ] - }, - "ListZones": { - "methods": [ - "listZones" - ] - }, - "UpdateRouter": { - "methods": [ - "updateRouter" - ] - }, - "UpdateSubnet": { - "methods": [ - "updateSubnet" - ] - }, - "GetLocation": { - "methods": [ - "getLocation" - ] - }, - "ListLocations": { - "methods": [ - "listLocations" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_client_config.json b/owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_client_config.json deleted file mode 100644 index 05aa7f74e20a..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_client_config.json +++ /dev/null @@ -1,184 +0,0 @@ -{ - "interfaces": { - "google.cloud.edgenetwork.v1.EdgeNetwork": { - "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": { - "CreateInterconnectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateNetwork": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateRouter": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateSubnet": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteInterconnectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteNetwork": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteRouter": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteSubnet": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DiagnoseInterconnect": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DiagnoseNetwork": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "DiagnoseRouter": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetInterconnect": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetInterconnectAttachment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetNetwork": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetRouter": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetSubnet": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetZone": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "InitializeZone": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "ListInterconnectAttachments": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListInterconnects": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListNetworks": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListRouters": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListSubnets": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListZones": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "UpdateRouter": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateSubnet": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_descriptor_config.php b/owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_descriptor_config.php deleted file mode 100644 index c646f29b1cd8..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_descriptor_config.php +++ /dev/null @@ -1,503 +0,0 @@ - [ - 'google.cloud.edgenetwork.v1.EdgeNetwork' => [ - 'CreateInterconnectAttachment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\EdgeNetwork\V1\InterconnectAttachment', - 'metadataReturnType' => '\Google\Cloud\EdgeNetwork\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateNetwork' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\EdgeNetwork\V1\Network', - 'metadataReturnType' => '\Google\Cloud\EdgeNetwork\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateRouter' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\EdgeNetwork\V1\Router', - 'metadataReturnType' => '\Google\Cloud\EdgeNetwork\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateSubnet' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\EdgeNetwork\V1\Subnet', - 'metadataReturnType' => '\Google\Cloud\EdgeNetwork\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteInterconnectAttachment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\EdgeNetwork\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteNetwork' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\EdgeNetwork\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRouter' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\EdgeNetwork\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSubnet' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Protobuf\GPBEmpty', - 'metadataReturnType' => '\Google\Cloud\EdgeNetwork\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateRouter' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\EdgeNetwork\V1\Router', - 'metadataReturnType' => '\Google\Cloud\EdgeNetwork\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'router.name', - 'fieldAccessors' => [ - 'getRouter', - 'getName', - ], - ], - ], - ], - 'UpdateSubnet' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\EdgeNetwork\V1\Subnet', - 'metadataReturnType' => '\Google\Cloud\EdgeNetwork\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'subnet.name', - 'fieldAccessors' => [ - 'getSubnet', - 'getName', - ], - ], - ], - ], - 'DiagnoseInterconnect' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\DiagnoseInterconnectResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DiagnoseNetwork' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\DiagnoseNetworkResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DiagnoseRouter' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\DiagnoseRouterResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetInterconnect' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\Interconnect', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetInterconnectAttachment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\InterconnectAttachment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetNetwork' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\Network', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetRouter' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\Router', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetSubnet' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\Subnet', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetZone' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\Zone', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'InitializeZone' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\InitializeZoneResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListInterconnectAttachments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getInterconnectAttachments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\ListInterconnectAttachmentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListInterconnects' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getInterconnects', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\ListInterconnectsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListNetworks' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getNetworks', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\ListNetworksResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListRouters' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getRouters', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\ListRoutersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListSubnets' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getSubnets', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\ListSubnetsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListZones' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getZones', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\EdgeNetwork\V1\ListZonesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'templateMap' => [ - 'interconnect' => 'projects/{project}/locations/{location}/zones/{zone}/interconnects/{interconnect}', - 'interconnectAttachment' => 'projects/{project}/locations/{location}/zones/{zone}/interconnectAttachments/{interconnect_attachment}', - 'location' => 'projects/{project}/locations/{location}', - 'network' => 'projects/{project}/locations/{location}/zones/{zone}/networks/{network}', - 'router' => 'projects/{project}/locations/{location}/zones/{zone}/routers/{router}', - 'subnet' => 'projects/{project}/locations/{location}/zones/{zone}/subnets/{subnet}', - 'zone' => 'projects/{project}/locations/{location}/zones/{zone}', - ], - ], - ], -]; diff --git a/owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_rest_client_config.php b/owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_rest_client_config.php deleted file mode 100644 index d0fd42485045..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/src/V1/resources/edge_network_rest_client_config.php +++ /dev/null @@ -1,413 +0,0 @@ - [ - 'google.cloud.edgenetwork.v1.EdgeNetwork' => [ - 'CreateInterconnectAttachment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/zones/*}/interconnectAttachments', - 'body' => 'interconnect_attachment', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'interconnect_attachment_id', - ], - ], - 'CreateNetwork' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/zones/*}/networks', - 'body' => 'network', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'network_id', - ], - ], - 'CreateRouter' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/zones/*}/routers', - 'body' => 'router', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'router_id', - ], - ], - 'CreateSubnet' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/zones/*}/subnets', - 'body' => 'subnet', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'subnet_id', - ], - ], - 'DeleteInterconnectAttachment' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/interconnectAttachments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteNetwork' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/networks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteRouter' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/routers/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteSubnet' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/subnets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DiagnoseInterconnect' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/interconnects/*}:diagnose', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DiagnoseNetwork' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/networks/*}:diagnose', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DiagnoseRouter' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/routers/*}:diagnose', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetInterconnect' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/interconnects/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetInterconnectAttachment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/interconnectAttachments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetNetwork' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/networks/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetRouter' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/routers/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetSubnet' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*/subnets/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetZone' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'InitializeZone' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/zones/*}:initialize', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListInterconnectAttachments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/zones/*}/interconnectAttachments', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListInterconnects' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/zones/*}/interconnects', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListNetworks' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/zones/*}/networks', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListRouters' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/zones/*}/routers', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListSubnets' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/zones/*}/subnets', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListZones' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/zones', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateRouter' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{router.name=projects/*/locations/*/zones/*/routers/*}', - 'body' => 'router', - 'placeholders' => [ - 'router.name' => [ - 'getters' => [ - 'getRouter', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - 'UpdateSubnet' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{subnet.name=projects/*/locations/*/zones/*/subnets/*}', - 'body' => 'subnet', - 'placeholders' => [ - 'subnet.name' => [ - 'getters' => [ - 'getSubnet', - 'getName', - ], - ], - ], - 'queryParams' => [ - 'update_mask', - ], - ], - ], - 'google.cloud.location.Locations' => [ - 'GetLocation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListLocations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*}/locations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - 'google.longrunning.Operations' => [ - 'CancelOperation' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}:cancel', - 'body' => '*', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteOperation' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetOperation' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/operations/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListOperations' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*}/operations', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/EdgeNetwork/v1/tests/Unit/V1/Client/EdgeNetworkClientTest.php b/owl-bot-staging/EdgeNetwork/v1/tests/Unit/V1/Client/EdgeNetworkClientTest.php deleted file mode 100644 index b8bad7971bbf..000000000000 --- a/owl-bot-staging/EdgeNetwork/v1/tests/Unit/V1/Client/EdgeNetworkClientTest.php +++ /dev/null @@ -1,2786 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return EdgeNetworkClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new EdgeNetworkClient($options); - } - - /** @test */ - public function createInterconnectAttachmentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createInterconnectAttachmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $interconnect = 'interconnect-849140594'; - $network = 'network1843485230'; - $vlanId = 536153463; - $mtu = 108462; - $expectedResponse = new InterconnectAttachment(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setInterconnect($interconnect); - $expectedResponse->setNetwork($network); - $expectedResponse->setVlanId($vlanId); - $expectedResponse->setMtu($mtu); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createInterconnectAttachmentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $interconnectAttachmentId = 'interconnectAttachmentId1313228742'; - $interconnectAttachment = new InterconnectAttachment(); - $interconnectAttachmentName = 'interconnectAttachmentName-1161503108'; - $interconnectAttachment->setName($interconnectAttachmentName); - $interconnectAttachmentInterconnect = $gapicClient->interconnectName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT]'); - $interconnectAttachment->setInterconnect($interconnectAttachmentInterconnect); - $interconnectAttachmentVlanId = 725855631; - $interconnectAttachment->setVlanId($interconnectAttachmentVlanId); - $request = (new CreateInterconnectAttachmentRequest()) - ->setParent($formattedParent) - ->setInterconnectAttachmentId($interconnectAttachmentId) - ->setInterconnectAttachment($interconnectAttachment); - $response = $gapicClient->createInterconnectAttachment($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.edgenetwork.v1.EdgeNetwork/CreateInterconnectAttachment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getInterconnectAttachmentId(); - $this->assertProtobufEquals($interconnectAttachmentId, $actualValue); - $actualValue = $actualApiRequestObject->getInterconnectAttachment(); - $this->assertProtobufEquals($interconnectAttachment, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createInterconnectAttachmentTest'); - $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 createInterconnectAttachmentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createInterconnectAttachmentTest'); - $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->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $interconnectAttachmentId = 'interconnectAttachmentId1313228742'; - $interconnectAttachment = new InterconnectAttachment(); - $interconnectAttachmentName = 'interconnectAttachmentName-1161503108'; - $interconnectAttachment->setName($interconnectAttachmentName); - $interconnectAttachmentInterconnect = $gapicClient->interconnectName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT]'); - $interconnectAttachment->setInterconnect($interconnectAttachmentInterconnect); - $interconnectAttachmentVlanId = 725855631; - $interconnectAttachment->setVlanId($interconnectAttachmentVlanId); - $request = (new CreateInterconnectAttachmentRequest()) - ->setParent($formattedParent) - ->setInterconnectAttachmentId($interconnectAttachmentId) - ->setInterconnectAttachment($interconnectAttachment); - $response = $gapicClient->createInterconnectAttachment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createInterconnectAttachmentTest'); - 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 createNetworkTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createNetworkTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $mtu = 108462; - $expectedResponse = new Network(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setMtu($mtu); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createNetworkTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $networkId = 'networkId-478232372'; - $network = new Network(); - $networkName = 'networkName-1940815399'; - $network->setName($networkName); - $request = (new CreateNetworkRequest()) - ->setParent($formattedParent) - ->setNetworkId($networkId) - ->setNetwork($network); - $response = $gapicClient->createNetwork($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.edgenetwork.v1.EdgeNetwork/CreateNetwork', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getNetworkId(); - $this->assertProtobufEquals($networkId, $actualValue); - $actualValue = $actualApiRequestObject->getNetwork(); - $this->assertProtobufEquals($network, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createNetworkTest'); - $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 createNetworkExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createNetworkTest'); - $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->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $networkId = 'networkId-478232372'; - $network = new Network(); - $networkName = 'networkName-1940815399'; - $network->setName($networkName); - $request = (new CreateNetworkRequest()) - ->setParent($formattedParent) - ->setNetworkId($networkId) - ->setNetwork($network); - $response = $gapicClient->createNetwork($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createNetworkTest'); - 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 createRouterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRouterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $network = 'network1843485230'; - $expectedResponse = new Router(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setNetwork($network); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createRouterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $routerId = 'routerId168536529'; - $router = new Router(); - $routerName = 'routerName929151348'; - $router->setName($routerName); - $routerNetwork = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $router->setNetwork($routerNetwork); - $request = (new CreateRouterRequest()) - ->setParent($formattedParent) - ->setRouterId($routerId) - ->setRouter($router); - $response = $gapicClient->createRouter($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.edgenetwork.v1.EdgeNetwork/CreateRouter', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getRouterId(); - $this->assertProtobufEquals($routerId, $actualValue); - $actualValue = $actualApiRequestObject->getRouter(); - $this->assertProtobufEquals($router, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRouterTest'); - $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 createRouterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createRouterTest'); - $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->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $routerId = 'routerId168536529'; - $router = new Router(); - $routerName = 'routerName929151348'; - $router->setName($routerName); - $routerNetwork = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $router->setNetwork($routerNetwork); - $request = (new CreateRouterRequest()) - ->setParent($formattedParent) - ->setRouterId($routerId) - ->setRouter($router); - $response = $gapicClient->createRouter($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createRouterTest'); - 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 createSubnetTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSubnetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $network = 'network1843485230'; - $vlanId = 536153463; - $expectedResponse = new Subnet(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setNetwork($network); - $expectedResponse->setVlanId($vlanId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createSubnetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $subnetId = 'subnetId373593405'; - $subnet = new Subnet(); - $subnetName = 'subnetName-1304020088'; - $subnet->setName($subnetName); - $subnetNetwork = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $subnet->setNetwork($subnetNetwork); - $request = (new CreateSubnetRequest()) - ->setParent($formattedParent) - ->setSubnetId($subnetId) - ->setSubnet($subnet); - $response = $gapicClient->createSubnet($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.edgenetwork.v1.EdgeNetwork/CreateSubnet', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getSubnetId(); - $this->assertProtobufEquals($subnetId, $actualValue); - $actualValue = $actualApiRequestObject->getSubnet(); - $this->assertProtobufEquals($subnet, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSubnetTest'); - $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 createSubnetExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createSubnetTest'); - $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->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $subnetId = 'subnetId373593405'; - $subnet = new Subnet(); - $subnetName = 'subnetName-1304020088'; - $subnet->setName($subnetName); - $subnetNetwork = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $subnet->setNetwork($subnetNetwork); - $request = (new CreateSubnetRequest()) - ->setParent($formattedParent) - ->setSubnetId($subnetId) - ->setSubnet($subnet); - $response = $gapicClient->createSubnet($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createSubnetTest'); - 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 deleteInterconnectAttachmentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteInterconnectAttachmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteInterconnectAttachmentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->interconnectAttachmentName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT_ATTACHMENT]'); - $request = (new DeleteInterconnectAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteInterconnectAttachment($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.edgenetwork.v1.EdgeNetwork/DeleteInterconnectAttachment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteInterconnectAttachmentTest'); - $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 deleteInterconnectAttachmentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteInterconnectAttachmentTest'); - $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->interconnectAttachmentName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT_ATTACHMENT]'); - $request = (new DeleteInterconnectAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteInterconnectAttachment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteInterconnectAttachmentTest'); - 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 deleteNetworkTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteNetworkTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteNetworkTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $request = (new DeleteNetworkRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteNetwork($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.edgenetwork.v1.EdgeNetwork/DeleteNetwork', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteNetworkTest'); - $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 deleteNetworkExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteNetworkTest'); - $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->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $request = (new DeleteNetworkRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteNetwork($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteNetworkTest'); - 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 deleteRouterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteRouterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteRouterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->routerName('[PROJECT]', '[LOCATION]', '[ZONE]', '[ROUTER]'); - $request = (new DeleteRouterRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteRouter($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.edgenetwork.v1.EdgeNetwork/DeleteRouter', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteRouterTest'); - $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 deleteRouterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteRouterTest'); - $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->routerName('[PROJECT]', '[LOCATION]', '[ZONE]', '[ROUTER]'); - $request = (new DeleteRouterRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteRouter($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteRouterTest'); - 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 deleteSubnetTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteSubnetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $expectedResponse = new GPBEmpty(); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteSubnetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->subnetName('[PROJECT]', '[LOCATION]', '[ZONE]', '[SUBNET]'); - $request = (new DeleteSubnetRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteSubnet($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.edgenetwork.v1.EdgeNetwork/DeleteSubnet', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteSubnetTest'); - $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 deleteSubnetExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteSubnetTest'); - $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->subnetName('[PROJECT]', '[LOCATION]', '[ZONE]', '[SUBNET]'); - $request = (new DeleteSubnetRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteSubnet($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteSubnetTest'); - 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 diagnoseInterconnectTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DiagnoseInterconnectResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->interconnectName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT]'); - $request = (new DiagnoseInterconnectRequest()) - ->setName($formattedName); - $response = $gapicClient->diagnoseInterconnect($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.edgenetwork.v1.EdgeNetwork/DiagnoseInterconnect', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function diagnoseInterconnectExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->interconnectName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT]'); - $request = (new DiagnoseInterconnectRequest()) - ->setName($formattedName); - try { - $gapicClient->diagnoseInterconnect($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function diagnoseNetworkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DiagnoseNetworkResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $request = (new DiagnoseNetworkRequest()) - ->setName($formattedName); - $response = $gapicClient->diagnoseNetwork($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.edgenetwork.v1.EdgeNetwork/DiagnoseNetwork', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function diagnoseNetworkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $request = (new DiagnoseNetworkRequest()) - ->setName($formattedName); - try { - $gapicClient->diagnoseNetwork($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function diagnoseRouterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DiagnoseRouterResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->routerName('[PROJECT]', '[LOCATION]', '[ZONE]', '[ROUTER]'); - $request = (new DiagnoseRouterRequest()) - ->setName($formattedName); - $response = $gapicClient->diagnoseRouter($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.edgenetwork.v1.EdgeNetwork/DiagnoseRouter', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function diagnoseRouterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->routerName('[PROJECT]', '[LOCATION]', '[ZONE]', '[ROUTER]'); - $request = (new DiagnoseRouterRequest()) - ->setName($formattedName); - try { - $gapicClient->diagnoseRouter($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInterconnectTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $uuid = 'uuid3601339'; - $deviceCloudResourceName = 'deviceCloudResourceName390470697'; - $expectedResponse = new Interconnect(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setUuid($uuid); - $expectedResponse->setDeviceCloudResourceName($deviceCloudResourceName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->interconnectName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT]'); - $request = (new GetInterconnectRequest()) - ->setName($formattedName); - $response = $gapicClient->getInterconnect($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.edgenetwork.v1.EdgeNetwork/GetInterconnect', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInterconnectExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->interconnectName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT]'); - $request = (new GetInterconnectRequest()) - ->setName($formattedName); - try { - $gapicClient->getInterconnect($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInterconnectAttachmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $interconnect = 'interconnect-849140594'; - $network = 'network1843485230'; - $vlanId = 536153463; - $mtu = 108462; - $expectedResponse = new InterconnectAttachment(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setInterconnect($interconnect); - $expectedResponse->setNetwork($network); - $expectedResponse->setVlanId($vlanId); - $expectedResponse->setMtu($mtu); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->interconnectAttachmentName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT_ATTACHMENT]'); - $request = (new GetInterconnectAttachmentRequest()) - ->setName($formattedName); - $response = $gapicClient->getInterconnectAttachment($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.edgenetwork.v1.EdgeNetwork/GetInterconnectAttachment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getInterconnectAttachmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->interconnectAttachmentName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT_ATTACHMENT]'); - $request = (new GetInterconnectAttachmentRequest()) - ->setName($formattedName); - try { - $gapicClient->getInterconnectAttachment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNetworkTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $mtu = 108462; - $expectedResponse = new Network(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setMtu($mtu); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $request = (new GetNetworkRequest()) - ->setName($formattedName); - $response = $gapicClient->getNetwork($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.edgenetwork.v1.EdgeNetwork/GetNetwork', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getNetworkExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $request = (new GetNetworkRequest()) - ->setName($formattedName); - try { - $gapicClient->getNetwork($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRouterTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $network = 'network1843485230'; - $expectedResponse = new Router(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setNetwork($network); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->routerName('[PROJECT]', '[LOCATION]', '[ZONE]', '[ROUTER]'); - $request = (new GetRouterRequest()) - ->setName($formattedName); - $response = $gapicClient->getRouter($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.edgenetwork.v1.EdgeNetwork/GetRouter', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getRouterExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->routerName('[PROJECT]', '[LOCATION]', '[ZONE]', '[ROUTER]'); - $request = (new GetRouterRequest()) - ->setName($formattedName); - try { - $gapicClient->getRouter($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSubnetTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $description = 'description-1724546052'; - $network = 'network1843485230'; - $vlanId = 536153463; - $expectedResponse = new Subnet(); - $expectedResponse->setName($name2); - $expectedResponse->setDescription($description); - $expectedResponse->setNetwork($network); - $expectedResponse->setVlanId($vlanId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->subnetName('[PROJECT]', '[LOCATION]', '[ZONE]', '[SUBNET]'); - $request = (new GetSubnetRequest()) - ->setName($formattedName); - $response = $gapicClient->getSubnet($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.edgenetwork.v1.EdgeNetwork/GetSubnet', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getSubnetExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->subnetName('[PROJECT]', '[LOCATION]', '[ZONE]', '[SUBNET]'); - $request = (new GetSubnetRequest()) - ->setName($formattedName); - try { - $gapicClient->getSubnet($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getZoneTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $layoutName = 'layoutName2011406976'; - $expectedResponse = new Zone(); - $expectedResponse->setName($name2); - $expectedResponse->setLayoutName($layoutName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new GetZoneRequest()) - ->setName($formattedName); - $response = $gapicClient->getZone($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.edgenetwork.v1.EdgeNetwork/GetZone', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getZoneExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new GetZoneRequest()) - ->setName($formattedName); - try { - $gapicClient->getZone($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function initializeZoneTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new InitializeZoneResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new InitializeZoneRequest()) - ->setName($formattedName); - $response = $gapicClient->initializeZone($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.edgenetwork.v1.EdgeNetwork/InitializeZone', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function initializeZoneExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new InitializeZoneRequest()) - ->setName($formattedName); - try { - $gapicClient->initializeZone($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInterconnectAttachmentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $interconnectAttachmentsElement = new InterconnectAttachment(); - $interconnectAttachments = [ - $interconnectAttachmentsElement, - ]; - $expectedResponse = new ListInterconnectAttachmentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setInterconnectAttachments($interconnectAttachments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new ListInterconnectAttachmentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listInterconnectAttachments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getInterconnectAttachments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.edgenetwork.v1.EdgeNetwork/ListInterconnectAttachments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInterconnectAttachmentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new ListInterconnectAttachmentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listInterconnectAttachments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInterconnectsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $interconnectsElement = new Interconnect(); - $interconnects = [ - $interconnectsElement, - ]; - $expectedResponse = new ListInterconnectsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setInterconnects($interconnects); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new ListInterconnectsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listInterconnects($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getInterconnects()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.edgenetwork.v1.EdgeNetwork/ListInterconnects', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listInterconnectsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new ListInterconnectsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listInterconnects($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNetworksTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $networksElement = new Network(); - $networks = [ - $networksElement, - ]; - $expectedResponse = new ListNetworksResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setNetworks($networks); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new ListNetworksRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listNetworks($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getNetworks()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.edgenetwork.v1.EdgeNetwork/ListNetworks', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listNetworksExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new ListNetworksRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listNetworks($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRoutersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $routersElement = new Router(); - $routers = [ - $routersElement, - ]; - $expectedResponse = new ListRoutersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setRouters($routers); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new ListRoutersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listRouters($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getRouters()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.edgenetwork.v1.EdgeNetwork/ListRouters', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listRoutersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new ListRoutersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listRouters($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSubnetsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $subnetsElement = new Subnet(); - $subnets = [ - $subnetsElement, - ]; - $expectedResponse = new ListSubnetsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setSubnets($subnets); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new ListSubnetsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listSubnets($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getSubnets()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.edgenetwork.v1.EdgeNetwork/ListSubnets', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listSubnetsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $request = (new ListSubnetsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listSubnets($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listZonesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $zonesElement = new Zone(); - $zones = [ - $zonesElement, - ]; - $expectedResponse = new ListZonesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setZones($zones); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListZonesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listZones($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getZones()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.edgenetwork.v1.EdgeNetwork/ListZones', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listZonesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListZonesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listZones($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateRouterTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateRouterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $network = 'network1843485230'; - $expectedResponse = new Router(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setNetwork($network); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateRouterTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $router = new Router(); - $routerName = 'routerName929151348'; - $router->setName($routerName); - $routerNetwork = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $router->setNetwork($routerNetwork); - $request = (new UpdateRouterRequest()) - ->setUpdateMask($updateMask) - ->setRouter($router); - $response = $gapicClient->updateRouter($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.edgenetwork.v1.EdgeNetwork/UpdateRouter', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getRouter(); - $this->assertProtobufEquals($router, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateRouterTest'); - $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 updateRouterExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateRouterTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $router = new Router(); - $routerName = 'routerName929151348'; - $router->setName($routerName); - $routerNetwork = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $router->setNetwork($routerNetwork); - $request = (new UpdateRouterRequest()) - ->setUpdateMask($updateMask) - ->setRouter($router); - $response = $gapicClient->updateRouter($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateRouterTest'); - 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 updateSubnetTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateSubnetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $network = 'network1843485230'; - $vlanId = 536153463; - $expectedResponse = new Subnet(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setNetwork($network); - $expectedResponse->setVlanId($vlanId); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateSubnetTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $updateMask = new FieldMask(); - $subnet = new Subnet(); - $subnetName = 'subnetName-1304020088'; - $subnet->setName($subnetName); - $subnetNetwork = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $subnet->setNetwork($subnetNetwork); - $request = (new UpdateSubnetRequest()) - ->setUpdateMask($updateMask) - ->setSubnet($subnet); - $response = $gapicClient->updateSubnet($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.edgenetwork.v1.EdgeNetwork/UpdateSubnet', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getUpdateMask(); - $this->assertProtobufEquals($updateMask, $actualValue); - $actualValue = $actualApiRequestObject->getSubnet(); - $this->assertProtobufEquals($subnet, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateSubnetTest'); - $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 updateSubnetExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateSubnetTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - // Mock request - $updateMask = new FieldMask(); - $subnet = new Subnet(); - $subnetName = 'subnetName-1304020088'; - $subnet->setName($subnetName); - $subnetNetwork = $gapicClient->networkName('[PROJECT]', '[LOCATION]', '[ZONE]', '[NETWORK]'); - $subnet->setNetwork($subnetNetwork); - $request = (new UpdateSubnetRequest()) - ->setUpdateMask($updateMask) - ->setSubnet($subnet); - $response = $gapicClient->updateSubnet($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateSubnetTest'); - 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 createInterconnectAttachmentAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createInterconnectAttachmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $description = 'description-1724546052'; - $interconnect = 'interconnect-849140594'; - $network = 'network1843485230'; - $vlanId = 536153463; - $mtu = 108462; - $expectedResponse = new InterconnectAttachment(); - $expectedResponse->setName($name); - $expectedResponse->setDescription($description); - $expectedResponse->setInterconnect($interconnect); - $expectedResponse->setNetwork($network); - $expectedResponse->setVlanId($vlanId); - $expectedResponse->setMtu($mtu); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createInterconnectAttachmentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->zoneName('[PROJECT]', '[LOCATION]', '[ZONE]'); - $interconnectAttachmentId = 'interconnectAttachmentId1313228742'; - $interconnectAttachment = new InterconnectAttachment(); - $interconnectAttachmentName = 'interconnectAttachmentName-1161503108'; - $interconnectAttachment->setName($interconnectAttachmentName); - $interconnectAttachmentInterconnect = $gapicClient->interconnectName('[PROJECT]', '[LOCATION]', '[ZONE]', '[INTERCONNECT]'); - $interconnectAttachment->setInterconnect($interconnectAttachmentInterconnect); - $interconnectAttachmentVlanId = 725855631; - $interconnectAttachment->setVlanId($interconnectAttachmentVlanId); - $request = (new CreateInterconnectAttachmentRequest()) - ->setParent($formattedParent) - ->setInterconnectAttachmentId($interconnectAttachmentId) - ->setInterconnectAttachment($interconnectAttachment); - $response = $gapicClient->createInterconnectAttachmentAsync($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.edgenetwork.v1.EdgeNetwork/CreateInterconnectAttachment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getInterconnectAttachmentId(); - $this->assertProtobufEquals($interconnectAttachmentId, $actualValue); - $actualValue = $actualApiRequestObject->getInterconnectAttachment(); - $this->assertProtobufEquals($interconnectAttachment, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createInterconnectAttachmentTest'); - $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/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/Common.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/Common.php deleted file mode 100644 index ec68ba0c1b8ceb54cbc286c8bab82059c62b0d59..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2297 zcmbVOU2hvj6vfU*lj}4|7m%!~h>2TKx6rj>USLD0oWwPTG`3>9RA{BudOfzctap~# zS&LHn9sUZB`~qI#r}Twa9=S6+>&A_dFnRH2eeaob&pmUmzjz#tBe+W%G^E@WbU^wq zi5OE7aVD6@0@6>0L&}NACXpXdZW40VA{VVLsh>5w2bdbOgnQH?BgRGntqkZ?Fc!oW zFJQ@la?UuX5#z!SN0sSep9=S|f@l*Kn(7dM(4EjYay?2K?USb%FmQ!yHx!v;CF!xM>j1mFd39FtRp3$K9SUzGF%-y^Yb1%BM~W5*AD;k$wV6V`c5hHem3OuZgE zOhQliEF?0a6?(M%fTWl*_FjbbVSdK2Eu})4>}Dt^58VJc#~$}1!FU@(Eo(%@TwwX8 z{6HTo;rt;fryMQo8p&fKctWq9P6($W;o*_uEdgfpCwqy0waB+Gscw?>rl2?Z%d+M* zb$#rOa3_(qG*@Zy=u2N$UKaLgV5ZSt}Q+mbn5gv#T+h62f>6w>Y*YNTk^uX@Vp!Zs2*l)#H_5WrI_cjsmfI zuWOg^XqiAMTQ~A!6K`SViUbF!)eGv0xbjLr%_>R-e4##Pr8{tQv4R4uB|Jz~EB%$z zlGdj*6ov^v<%1)oS0RP!?X0Y(lR@KO_YuOFw2(8j^@r_L(L8~Pp7jJ zFc0UXX1TKFs+@BTQTjOt#*(9VVRJ&om<{wT)8xBSaw1oZHIa9r5cnZ= z!er9d(rg&mr)&>6YBVSY4`0Ck+qca)fDbO~oz{7;+iYDpoo=n$>o~oOPP=~EeA29+ z?Z0De!FsD*zu3>=Y}u)uesj_K_Pl=9!0+-nd$v^iGyHGO*oKX#y)HhkpZt;sxhhv_ z`AH$&fo-{z+PUvqY6fHo^2U!?1r@!zm2ntki+S;zsDJeKi@$TZU-NexYB!r|C7X4L zcA4#XQ}5(IvnV^=+_t?KXXEl#KL%dsKT6>&OW|48VxVQ|!2YHh8lT>uFO^Ty?RaIG P{_7%Dk?GEx!3^LZLOkxi diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ErrorGroupService.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ErrorGroupService.php deleted file mode 100644 index ea1f3c95d6e2..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ErrorGroupService.php +++ /dev/null @@ -1,43 +0,0 @@ -internalAddGeneratedFile( - ' -Û - -Egoogle/devtools/clouderrorreporting/v1beta1/error_group_service.proto+google.devtools.clouderrorreporting.v1beta1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto8google/devtools/clouderrorreporting/v1beta1/common.proto"\\ -GetGroupRequestI - -group_name ( B5àAúA/ --clouderrorreporting.googleapis.com/ErrorGroup"a -UpdateGroupRequestK -group ( 27.google.devtools.clouderrorreporting.v1beta1.ErrorGroupBàA2õ -ErrorGroupServiceú -GetGroup<.google.devtools.clouderrorreporting.v1beta1.GetGroupRequest7.google.devtools.clouderrorreporting.v1beta1.ErrorGroup"wÚA -group_name‚Óä“d)/v1beta1/{group_name=projects/*/groups/*}Z75/v1beta1/{group_name=projects/*/locations/*/groups/*}Š - UpdateGroup?.google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest7.google.devtools.clouderrorreporting.v1beta1.ErrorGroup"€ÚAgroup‚Óä“r)/v1beta1/{group.name=projects/*/groups/*}:groupZ>5/v1beta1/{group.name=projects/*/locations/*/groups/*}:groupVÊA"clouderrorreporting.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB” -/com.google.devtools.clouderrorreporting.v1beta1BErrorGroupServiceProtoPZOcloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpbøª#Google.Cloud.ErrorReporting.V1Beta1Ê#Google\\Cloud\\ErrorReporting\\V1beta1ê&Google::Cloud::ErrorReporting::V1beta1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ErrorStatsService.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ErrorStatsService.php deleted file mode 100644 index 7034fea3c8e28d6470dac3b32bc006160863df6a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5318 zcmcgw&2Jk;6vuYckJr?7rfFir*Vg4D4XsU6py0HWjlBsGZEWnMKxMIP?6I@3-d%Rb zDFH=7AaOz*fIk9p4l^RbRM327Vwz0{eR_nSBG{oZe8-?bb5 zx)0~IMe5SPVzi~LZE9?tYJT7`ujx73TCd%vf!6f8zU|N;uW99qwp>}!jPlaTIW!Hu zUeKgPt>bwehZb6NgL$447MhONYtbO^f`Iy7z-+fu*ton#nRU4!hRu*!EHpzJY}iej z7dryDR+omp)uh^Db^aEvZduG~EDG>OS%Ei7yTKc`FVA!EIe?~Pg`sBfz3Y6By4(Uj z1P%ZBy*0;fYJ7M6?{PacZP#YD<=7wK`LAnj%Lyr>>|WdMxlLw!uEq^2Zj(-5&?F{b z`?!ziM*GOwDi0xsud(DZ8n~8&?uX65_L&z{acQyGp{yTxJ~DklZOh^8wl*z&EEab; zd0k^cj}GpxX#r)uz?~C*bAYY>uf`ss)P1|5yROHh;JIP3xP7K=h<`FHIW~3Ka5f7z zbz1Xu-P*9dU^vqnRU|vGlLsM6qvUnFo_lat`Ux%fuvRc?hcI2Sk>1Se`g_|74qbZ5 zR*cbGtv*2(u>7X`Ddh=%3cf!F#=lZ``9GMiq{Wo8uc z>`{ULV1yqaY8a7_d^0EcCs+^QJX1w9meF9DH+7Cg%G)zLY^GfQ$cew38!5o zj5**@l6yp+g$xg$qzzVa$9A(vaOULfKB3HgdIU~y2SaYL03*U{Q9CDRuO2e8l$7`O0c(!@85*~1D7B^5>Wq{uB8?~80!Y=U zEmg|q>TAOzBC=y@?z&m>6(M*GXk`kR?l%kM9@hK~GQ;kl+spw5(vQ3`~ z;aBN@8_txeLmBn3M#Wf{C4z`if~Rmov$kt-%{jT<-+27SXtBR%&IVwqv6- zfb^tn)JrnEH}(38SvQPjQ;do1mTHE+VwB}b3i*CUUsy0od}y_9)ar8L$n1B=U`*77 zxJ*@Q$=69p$DayhIR3_sl}JvNhN^*`7&1?}&l11rlY@`ui~J^*4~dU|{_V@8LoW3j z0Ur)7ysrKT3o}~<@n#T*zB5N&ystsQ@tX2WHf~J5NCIr@6?tjsBgTk6b>qW>Z$!0t!l{5TcZ(Q*TCkR=IX0aZ$Fk20CE)NW>1^9^EgoQg*4fU<=@H15yrJ diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ReportErrorsService.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ReportErrorsService.php deleted file mode 100644 index 9481b683784e..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/GPBMetadata/Google/Devtools/Clouderrorreporting/V1Beta1/ReportErrorsService.php +++ /dev/null @@ -1,46 +0,0 @@ -internalAddGeneratedFile( - ' -• -Ggoogle/devtools/clouderrorreporting/v1beta1/report_errors_service.proto+google.devtools.clouderrorreporting.v1beta1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto8google/devtools/clouderrorreporting/v1beta1/common.protogoogle/protobuf/timestamp.proto"¹ -ReportErrorEventRequestI - project_name ( B3àAúA- -+cloudresourcemanager.googleapis.com/ProjectS -event ( 2?.google.devtools.clouderrorreporting.v1beta1.ReportedErrorEventBàA" -ReportErrorEventResponse"‹ -ReportedErrorEvent3 - -event_time ( 2.google.protobuf.TimestampBàAY -service_context ( 2;.google.devtools.clouderrorreporting.v1beta1.ServiceContextBàA -message ( BàAO -context ( 29.google.devtools.clouderrorreporting.v1beta1.ErrorContextBàA2å -ReportErrorsServiceõ -ReportErrorEventD.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequestE.google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse"TÚAproject_name,event‚Óä“9"0/v1beta1/{project_name=projects/*}/events:report:eventVÊA"clouderrorreporting.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB– -/com.google.devtools.clouderrorreporting.v1beta1BReportErrorsServiceProtoPZOcloud.google.com/go/errorreporting/apiv1beta1/errorreportingpb;errorreportingpbøª#Google.Cloud.ErrorReporting.V1Beta1Ê#Google\\Cloud\\ErrorReporting\\V1beta1ê&Google::Cloud::ErrorReporting::V1beta1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/DeleteEventsRequest.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/DeleteEventsRequest.php deleted file mode 100644 index d0dee4e03f70..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/DeleteEventsRequest.php +++ /dev/null @@ -1,128 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.DeleteEventsRequest - */ -class DeleteEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $project_name = ''; - - /** - * @param string $projectName Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. Please see - * {@see ErrorStatsServiceClient::projectName()} for help formatting this field. - * - * @return \Google\Cloud\ErrorReporting\V1beta1\DeleteEventsRequest - * - * @experimental - */ - public static function build(string $projectName): self - { - return (new self()) - ->setProjectName($projectName); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_name - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorStatsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProjectName() - { - return $this->project_name; - } - - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProjectName($var) - { - GPBUtil::checkString($var, True); - $this->project_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/DeleteEventsResponse.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/DeleteEventsResponse.php deleted file mode 100644 index 53e2ba2358d4..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/DeleteEventsResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.DeleteEventsResponse - */ -class DeleteEventsResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorStatsService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorContext.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorContext.php deleted file mode 100644 index 1c5566968212..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorContext.php +++ /dev/null @@ -1,206 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ErrorContext - */ -class ErrorContext extends \Google\Protobuf\Internal\Message -{ - /** - * The HTTP request which was processed when the error was - * triggered. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1; - */ - protected $http_request = null; - /** - * The user who caused or was affected by the crash. - * This can be a user ID, an email address, or an arbitrary token that - * uniquely identifies the user. - * When sending an error report, leave this field empty if the user was not - * logged in. In this case the - * Error Reporting system will use other data, such as remote IP address, to - * distinguish affected users. See `affected_users_count` in - * `ErrorGroupStats`. - * - * Generated from protobuf field string user = 2; - */ - protected $user = ''; - /** - * The location in the source code where the decision was made to - * report the error, usually the place where it was logged. - * For a logged exception this would be the source line where the - * exception is logged, usually close to the place where it was - * caught. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3; - */ - protected $report_location = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ErrorReporting\V1beta1\HttpRequestContext $http_request - * The HTTP request which was processed when the error was - * triggered. - * @type string $user - * The user who caused or was affected by the crash. - * This can be a user ID, an email address, or an arbitrary token that - * uniquely identifies the user. - * When sending an error report, leave this field empty if the user was not - * logged in. In this case the - * Error Reporting system will use other data, such as remote IP address, to - * distinguish affected users. See `affected_users_count` in - * `ErrorGroupStats`. - * @type \Google\Cloud\ErrorReporting\V1beta1\SourceLocation $report_location - * The location in the source code where the decision was made to - * report the error, usually the place where it was logged. - * For a logged exception this would be the source line where the - * exception is logged, usually close to the place where it was - * caught. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The HTTP request which was processed when the error was - * triggered. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1; - * @return \Google\Cloud\ErrorReporting\V1beta1\HttpRequestContext|null - */ - public function getHttpRequest() - { - return $this->http_request; - } - - public function hasHttpRequest() - { - return isset($this->http_request); - } - - public function clearHttpRequest() - { - unset($this->http_request); - } - - /** - * The HTTP request which was processed when the error was - * triggered. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.HttpRequestContext http_request = 1; - * @param \Google\Cloud\ErrorReporting\V1beta1\HttpRequestContext $var - * @return $this - */ - public function setHttpRequest($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\HttpRequestContext::class); - $this->http_request = $var; - - return $this; - } - - /** - * The user who caused or was affected by the crash. - * This can be a user ID, an email address, or an arbitrary token that - * uniquely identifies the user. - * When sending an error report, leave this field empty if the user was not - * logged in. In this case the - * Error Reporting system will use other data, such as remote IP address, to - * distinguish affected users. See `affected_users_count` in - * `ErrorGroupStats`. - * - * Generated from protobuf field string user = 2; - * @return string - */ - public function getUser() - { - return $this->user; - } - - /** - * The user who caused or was affected by the crash. - * This can be a user ID, an email address, or an arbitrary token that - * uniquely identifies the user. - * When sending an error report, leave this field empty if the user was not - * logged in. In this case the - * Error Reporting system will use other data, such as remote IP address, to - * distinguish affected users. See `affected_users_count` in - * `ErrorGroupStats`. - * - * Generated from protobuf field string user = 2; - * @param string $var - * @return $this - */ - public function setUser($var) - { - GPBUtil::checkString($var, True); - $this->user = $var; - - return $this; - } - - /** - * The location in the source code where the decision was made to - * report the error, usually the place where it was logged. - * For a logged exception this would be the source line where the - * exception is logged, usually close to the place where it was - * caught. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3; - * @return \Google\Cloud\ErrorReporting\V1beta1\SourceLocation|null - */ - public function getReportLocation() - { - return $this->report_location; - } - - public function hasReportLocation() - { - return isset($this->report_location); - } - - public function clearReportLocation() - { - unset($this->report_location); - } - - /** - * The location in the source code where the decision was made to - * report the error, usually the place where it was logged. - * For a logged exception this would be the source line where the - * exception is logged, usually close to the place where it was - * caught. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.SourceLocation report_location = 3; - * @param \Google\Cloud\ErrorReporting\V1beta1\SourceLocation $var - * @return $this - */ - public function setReportLocation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\SourceLocation::class); - $this->report_location = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorEvent.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorEvent.php deleted file mode 100644 index 64d7396ca2d5..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorEvent.php +++ /dev/null @@ -1,207 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ErrorEvent - */ -class ErrorEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Time when the event occurred as provided in the error report. - * If the report did not contain a timestamp, the time the error was received - * by the Error Reporting system is used. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 1; - */ - protected $event_time = null; - /** - * The `ServiceContext` for which this error was reported. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2; - */ - protected $service_context = null; - /** - * The stack trace that was reported or logged by the service. - * - * Generated from protobuf field string message = 3; - */ - protected $message = ''; - /** - * Data about the context in which the error occurred. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5; - */ - protected $context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $event_time - * Time when the event occurred as provided in the error report. - * If the report did not contain a timestamp, the time the error was received - * by the Error Reporting system is used. - * @type \Google\Cloud\ErrorReporting\V1beta1\ServiceContext $service_context - * The `ServiceContext` for which this error was reported. - * @type string $message - * The stack trace that was reported or logged by the service. - * @type \Google\Cloud\ErrorReporting\V1beta1\ErrorContext $context - * Data about the context in which the error occurred. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * Time when the event occurred as provided in the error report. - * If the report did not contain a timestamp, the time the error was received - * by the Error Reporting system is used. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 1; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEventTime() - { - return $this->event_time; - } - - public function hasEventTime() - { - return isset($this->event_time); - } - - public function clearEventTime() - { - unset($this->event_time); - } - - /** - * Time when the event occurred as provided in the error report. - * If the report did not contain a timestamp, the time the error was received - * by the Error Reporting system is used. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 1; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEventTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->event_time = $var; - - return $this; - } - - /** - * The `ServiceContext` for which this error was reported. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2; - * @return \Google\Cloud\ErrorReporting\V1beta1\ServiceContext|null - */ - public function getServiceContext() - { - return $this->service_context; - } - - public function hasServiceContext() - { - return isset($this->service_context); - } - - public function clearServiceContext() - { - unset($this->service_context); - } - - /** - * The `ServiceContext` for which this error was reported. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2; - * @param \Google\Cloud\ErrorReporting\V1beta1\ServiceContext $var - * @return $this - */ - public function setServiceContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ServiceContext::class); - $this->service_context = $var; - - return $this; - } - - /** - * The stack trace that was reported or logged by the service. - * - * Generated from protobuf field string message = 3; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * The stack trace that was reported or logged by the service. - * - * Generated from protobuf field string message = 3; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Data about the context in which the error occurred. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5; - * @return \Google\Cloud\ErrorReporting\V1beta1\ErrorContext|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * Data about the context in which the error occurred. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 5; - * @param \Google\Cloud\ErrorReporting\V1beta1\ErrorContext $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ErrorContext::class); - $this->context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroup.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroup.php deleted file mode 100644 index 8d97e5065a69..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroup.php +++ /dev/null @@ -1,245 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ErrorGroup - */ -class ErrorGroup extends \Google\Protobuf\Internal\Message -{ - /** - * The group resource name. - * Written as `projects/{projectID}/groups/{group_id}` or - * `projects/{projectID}/locations/{location}/groups/{group_id}` - * Examples: `projects/my-project-123/groups/my-group`, - * `projects/my-project-123/locations/us-central1/groups/my-group` - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string name = 1; - */ - protected $name = ''; - /** - * An opaque identifier of the group. This field is assigned by the Error - * Reporting system and always populated. - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * - * Generated from protobuf field string group_id = 2; - */ - protected $group_id = ''; - /** - * Associated tracking issues. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.TrackingIssue tracking_issues = 3; - */ - private $tracking_issues; - /** - * Error group's resolution status. - * An unspecified resolution status will be interpreted as OPEN - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ResolutionStatus resolution_status = 5; - */ - protected $resolution_status = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * The group resource name. - * Written as `projects/{projectID}/groups/{group_id}` or - * `projects/{projectID}/locations/{location}/groups/{group_id}` - * Examples: `projects/my-project-123/groups/my-group`, - * `projects/my-project-123/locations/us-central1/groups/my-group` - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * @type string $group_id - * An opaque identifier of the group. This field is assigned by the Error - * Reporting system and always populated. - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * @type array<\Google\Cloud\ErrorReporting\V1beta1\TrackingIssue>|\Google\Protobuf\Internal\RepeatedField $tracking_issues - * Associated tracking issues. - * @type int $resolution_status - * Error group's resolution status. - * An unspecified resolution status will be interpreted as OPEN - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The group resource name. - * Written as `projects/{projectID}/groups/{group_id}` or - * `projects/{projectID}/locations/{location}/groups/{group_id}` - * Examples: `projects/my-project-123/groups/my-group`, - * `projects/my-project-123/locations/us-central1/groups/my-group` - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string name = 1; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * The group resource name. - * Written as `projects/{projectID}/groups/{group_id}` or - * `projects/{projectID}/locations/{location}/groups/{group_id}` - * Examples: `projects/my-project-123/groups/my-group`, - * `projects/my-project-123/locations/us-central1/groups/my-group` - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string name = 1; - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * An opaque identifier of the group. This field is assigned by the Error - * Reporting system and always populated. - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * - * Generated from protobuf field string group_id = 2; - * @return string - */ - public function getGroupId() - { - return $this->group_id; - } - - /** - * An opaque identifier of the group. This field is assigned by the Error - * Reporting system and always populated. - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * - * Generated from protobuf field string group_id = 2; - * @param string $var - * @return $this - */ - public function setGroupId($var) - { - GPBUtil::checkString($var, True); - $this->group_id = $var; - - return $this; - } - - /** - * Associated tracking issues. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.TrackingIssue tracking_issues = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTrackingIssues() - { - return $this->tracking_issues; - } - - /** - * Associated tracking issues. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.TrackingIssue tracking_issues = 3; - * @param array<\Google\Cloud\ErrorReporting\V1beta1\TrackingIssue>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTrackingIssues($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ErrorReporting\V1beta1\TrackingIssue::class); - $this->tracking_issues = $arr; - - return $this; - } - - /** - * Error group's resolution status. - * An unspecified resolution status will be interpreted as OPEN - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ResolutionStatus resolution_status = 5; - * @return int - */ - public function getResolutionStatus() - { - return $this->resolution_status; - } - - /** - * Error group's resolution status. - * An unspecified resolution status will be interpreted as OPEN - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ResolutionStatus resolution_status = 5; - * @param int $var - * @return $this - */ - public function setResolutionStatus($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ErrorReporting\V1beta1\ResolutionStatus::class); - $this->resolution_status = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroupOrder.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroupOrder.php deleted file mode 100644 index fd726de75f01..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroupOrder.php +++ /dev/null @@ -1,76 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder - */ -class ErrorGroupOrder -{ - /** - * No group order specified. - * - * Generated from protobuf enum GROUP_ORDER_UNSPECIFIED = 0; - */ - const GROUP_ORDER_UNSPECIFIED = 0; - /** - * Total count of errors in the given time window in descending order. - * - * Generated from protobuf enum COUNT_DESC = 1; - */ - const COUNT_DESC = 1; - /** - * Timestamp when the group was last seen in the given time window - * in descending order. - * - * Generated from protobuf enum LAST_SEEN_DESC = 2; - */ - const LAST_SEEN_DESC = 2; - /** - * Timestamp when the group was created in descending order. - * - * Generated from protobuf enum CREATED_DESC = 3; - */ - const CREATED_DESC = 3; - /** - * Number of affected users in the given time window in descending order. - * - * Generated from protobuf enum AFFECTED_USERS_DESC = 4; - */ - const AFFECTED_USERS_DESC = 4; - - private static $valueToName = [ - self::GROUP_ORDER_UNSPECIFIED => 'GROUP_ORDER_UNSPECIFIED', - self::COUNT_DESC => 'COUNT_DESC', - self::LAST_SEEN_DESC => 'LAST_SEEN_DESC', - self::CREATED_DESC => 'CREATED_DESC', - self::AFFECTED_USERS_DESC => 'AFFECTED_USERS_DESC', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroupStats.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroupStats.php deleted file mode 100644 index 78ea93617fcb..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ErrorGroupStats.php +++ /dev/null @@ -1,492 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats - */ -class ErrorGroupStats extends \Google\Protobuf\Internal\Message -{ - /** - * Group data that is independent of the filter criteria. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorGroup group = 1; - */ - protected $group = null; - /** - * Approximate total number of events in the given group that match - * the filter criteria. - * - * Generated from protobuf field int64 count = 2; - */ - protected $count = 0; - /** - * Approximate number of affected users in the given group that - * match the filter criteria. - * Users are distinguished by data in the [ErrorContext] - * [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the - * individual error events, such as their login name or their remote - * IP address in case of HTTP requests. - * The number of affected users can be zero even if the number of - * errors is non-zero if no data was provided from which the - * affected user could be deduced. - * Users are counted based on data in the request - * context that was provided in the error report. If more users are - * implicitly affected, such as due to a crash of the whole service, - * this is not reflected here. - * - * Generated from protobuf field int64 affected_users_count = 3; - */ - protected $affected_users_count = 0; - /** - * Approximate number of occurrences over time. - * Timed counts returned by ListGroups are guaranteed to be: - * - Inside the requested time interval - * - Non-overlapping, and - * - Ordered by ascending time. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.TimedCount timed_counts = 4; - */ - private $timed_counts; - /** - * Approximate first occurrence that was ever seen for this group - * and which matches the given filter criteria, ignoring the - * time_range that was specified in the request. - * - * Generated from protobuf field .google.protobuf.Timestamp first_seen_time = 5; - */ - protected $first_seen_time = null; - /** - * Approximate last occurrence that was ever seen for this group and - * which matches the given filter criteria, ignoring the time_range - * that was specified in the request. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_time = 6; - */ - protected $last_seen_time = null; - /** - * Service contexts with a non-zero error count for the given filter - * criteria. This list can be truncated if multiple services are affected. - * Refer to `num_affected_services` for the total count. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.ServiceContext affected_services = 7; - */ - private $affected_services; - /** - * The total number of services with a non-zero error count for the given - * filter criteria. - * - * Generated from protobuf field int32 num_affected_services = 8; - */ - protected $num_affected_services = 0; - /** - * An arbitrary event that is chosen as representative for the whole group. - * The representative event is intended to be used as a quick preview for - * the whole group. Events in the group are usually sufficiently similar - * to each other such that showing an arbitrary representative provides - * insight into the characteristics of the group as a whole. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorEvent representative = 9; - */ - protected $representative = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup $group - * Group data that is independent of the filter criteria. - * @type int|string $count - * Approximate total number of events in the given group that match - * the filter criteria. - * @type int|string $affected_users_count - * Approximate number of affected users in the given group that - * match the filter criteria. - * Users are distinguished by data in the [ErrorContext] - * [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the - * individual error events, such as their login name or their remote - * IP address in case of HTTP requests. - * The number of affected users can be zero even if the number of - * errors is non-zero if no data was provided from which the - * affected user could be deduced. - * Users are counted based on data in the request - * context that was provided in the error report. If more users are - * implicitly affected, such as due to a crash of the whole service, - * this is not reflected here. - * @type array<\Google\Cloud\ErrorReporting\V1beta1\TimedCount>|\Google\Protobuf\Internal\RepeatedField $timed_counts - * Approximate number of occurrences over time. - * Timed counts returned by ListGroups are guaranteed to be: - * - Inside the requested time interval - * - Non-overlapping, and - * - Ordered by ascending time. - * @type \Google\Protobuf\Timestamp $first_seen_time - * Approximate first occurrence that was ever seen for this group - * and which matches the given filter criteria, ignoring the - * time_range that was specified in the request. - * @type \Google\Protobuf\Timestamp $last_seen_time - * Approximate last occurrence that was ever seen for this group and - * which matches the given filter criteria, ignoring the time_range - * that was specified in the request. - * @type array<\Google\Cloud\ErrorReporting\V1beta1\ServiceContext>|\Google\Protobuf\Internal\RepeatedField $affected_services - * Service contexts with a non-zero error count for the given filter - * criteria. This list can be truncated if multiple services are affected. - * Refer to `num_affected_services` for the total count. - * @type int $num_affected_services - * The total number of services with a non-zero error count for the given - * filter criteria. - * @type \Google\Cloud\ErrorReporting\V1beta1\ErrorEvent $representative - * An arbitrary event that is chosen as representative for the whole group. - * The representative event is intended to be used as a quick preview for - * the whole group. Events in the group are usually sufficiently similar - * to each other such that showing an arbitrary representative provides - * insight into the characteristics of the group as a whole. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorStatsService::initOnce(); - parent::__construct($data); - } - - /** - * Group data that is independent of the filter criteria. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorGroup group = 1; - * @return \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup|null - */ - public function getGroup() - { - return $this->group; - } - - public function hasGroup() - { - return isset($this->group); - } - - public function clearGroup() - { - unset($this->group); - } - - /** - * Group data that is independent of the filter criteria. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorGroup group = 1; - * @param \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup $var - * @return $this - */ - public function setGroup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup::class); - $this->group = $var; - - return $this; - } - - /** - * Approximate total number of events in the given group that match - * the filter criteria. - * - * Generated from protobuf field int64 count = 2; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * Approximate total number of events in the given group that match - * the filter criteria. - * - * Generated from protobuf field int64 count = 2; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - - /** - * Approximate number of affected users in the given group that - * match the filter criteria. - * Users are distinguished by data in the [ErrorContext] - * [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the - * individual error events, such as their login name or their remote - * IP address in case of HTTP requests. - * The number of affected users can be zero even if the number of - * errors is non-zero if no data was provided from which the - * affected user could be deduced. - * Users are counted based on data in the request - * context that was provided in the error report. If more users are - * implicitly affected, such as due to a crash of the whole service, - * this is not reflected here. - * - * Generated from protobuf field int64 affected_users_count = 3; - * @return int|string - */ - public function getAffectedUsersCount() - { - return $this->affected_users_count; - } - - /** - * Approximate number of affected users in the given group that - * match the filter criteria. - * Users are distinguished by data in the [ErrorContext] - * [google.devtools.clouderrorreporting.v1beta1.ErrorContext] of the - * individual error events, such as their login name or their remote - * IP address in case of HTTP requests. - * The number of affected users can be zero even if the number of - * errors is non-zero if no data was provided from which the - * affected user could be deduced. - * Users are counted based on data in the request - * context that was provided in the error report. If more users are - * implicitly affected, such as due to a crash of the whole service, - * this is not reflected here. - * - * Generated from protobuf field int64 affected_users_count = 3; - * @param int|string $var - * @return $this - */ - public function setAffectedUsersCount($var) - { - GPBUtil::checkInt64($var); - $this->affected_users_count = $var; - - return $this; - } - - /** - * Approximate number of occurrences over time. - * Timed counts returned by ListGroups are guaranteed to be: - * - Inside the requested time interval - * - Non-overlapping, and - * - Ordered by ascending time. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.TimedCount timed_counts = 4; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTimedCounts() - { - return $this->timed_counts; - } - - /** - * Approximate number of occurrences over time. - * Timed counts returned by ListGroups are guaranteed to be: - * - Inside the requested time interval - * - Non-overlapping, and - * - Ordered by ascending time. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.TimedCount timed_counts = 4; - * @param array<\Google\Cloud\ErrorReporting\V1beta1\TimedCount>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTimedCounts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ErrorReporting\V1beta1\TimedCount::class); - $this->timed_counts = $arr; - - return $this; - } - - /** - * Approximate first occurrence that was ever seen for this group - * and which matches the given filter criteria, ignoring the - * time_range that was specified in the request. - * - * Generated from protobuf field .google.protobuf.Timestamp first_seen_time = 5; - * @return \Google\Protobuf\Timestamp|null - */ - public function getFirstSeenTime() - { - return $this->first_seen_time; - } - - public function hasFirstSeenTime() - { - return isset($this->first_seen_time); - } - - public function clearFirstSeenTime() - { - unset($this->first_seen_time); - } - - /** - * Approximate first occurrence that was ever seen for this group - * and which matches the given filter criteria, ignoring the - * time_range that was specified in the request. - * - * Generated from protobuf field .google.protobuf.Timestamp first_seen_time = 5; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setFirstSeenTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->first_seen_time = $var; - - return $this; - } - - /** - * Approximate last occurrence that was ever seen for this group and - * which matches the given filter criteria, ignoring the time_range - * that was specified in the request. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_time = 6; - * @return \Google\Protobuf\Timestamp|null - */ - public function getLastSeenTime() - { - return $this->last_seen_time; - } - - public function hasLastSeenTime() - { - return isset($this->last_seen_time); - } - - public function clearLastSeenTime() - { - unset($this->last_seen_time); - } - - /** - * Approximate last occurrence that was ever seen for this group and - * which matches the given filter criteria, ignoring the time_range - * that was specified in the request. - * - * Generated from protobuf field .google.protobuf.Timestamp last_seen_time = 6; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setLastSeenTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->last_seen_time = $var; - - return $this; - } - - /** - * Service contexts with a non-zero error count for the given filter - * criteria. This list can be truncated if multiple services are affected. - * Refer to `num_affected_services` for the total count. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.ServiceContext affected_services = 7; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getAffectedServices() - { - return $this->affected_services; - } - - /** - * Service contexts with a non-zero error count for the given filter - * criteria. This list can be truncated if multiple services are affected. - * Refer to `num_affected_services` for the total count. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.ServiceContext affected_services = 7; - * @param array<\Google\Cloud\ErrorReporting\V1beta1\ServiceContext>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setAffectedServices($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ErrorReporting\V1beta1\ServiceContext::class); - $this->affected_services = $arr; - - return $this; - } - - /** - * The total number of services with a non-zero error count for the given - * filter criteria. - * - * Generated from protobuf field int32 num_affected_services = 8; - * @return int - */ - public function getNumAffectedServices() - { - return $this->num_affected_services; - } - - /** - * The total number of services with a non-zero error count for the given - * filter criteria. - * - * Generated from protobuf field int32 num_affected_services = 8; - * @param int $var - * @return $this - */ - public function setNumAffectedServices($var) - { - GPBUtil::checkInt32($var); - $this->num_affected_services = $var; - - return $this; - } - - /** - * An arbitrary event that is chosen as representative for the whole group. - * The representative event is intended to be used as a quick preview for - * the whole group. Events in the group are usually sufficiently similar - * to each other such that showing an arbitrary representative provides - * insight into the characteristics of the group as a whole. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorEvent representative = 9; - * @return \Google\Cloud\ErrorReporting\V1beta1\ErrorEvent|null - */ - public function getRepresentative() - { - return $this->representative; - } - - public function hasRepresentative() - { - return isset($this->representative); - } - - public function clearRepresentative() - { - unset($this->representative); - } - - /** - * An arbitrary event that is chosen as representative for the whole group. - * The representative event is intended to be used as a quick preview for - * the whole group. Events in the group are usually sufficiently similar - * to each other such that showing an arbitrary representative provides - * insight into the characteristics of the group as a whole. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorEvent representative = 9; - * @param \Google\Cloud\ErrorReporting\V1beta1\ErrorEvent $var - * @return $this - */ - public function setRepresentative($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ErrorEvent::class); - $this->representative = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/GetGroupRequest.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/GetGroupRequest.php deleted file mode 100644 index 6d75a39bcf61..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/GetGroupRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.GetGroupRequest - */ -class GetGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The group resource name. Written as either - * `projects/{projectID}/groups/{group_id}` or - * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call - * [groupStats.list] - * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats] - * to return a list of groups belonging to this project. - * Examples: `projects/my-project-123/groups/my-group`, - * `projects/my-project-123/locations/global/groups/my-group` - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string group_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $group_name = ''; - - /** - * @param string $groupName Required. The group resource name. Written as either - * `projects/{projectID}/groups/{group_id}` or - * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call - * [groupStats.list] - * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats] - * to return a list of groups belonging to this project. - * - * Examples: `projects/my-project-123/groups/my-group`, - * `projects/my-project-123/locations/global/groups/my-group` - * - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. Please see - * {@see ErrorGroupServiceClient::errorGroupName()} for help formatting this field. - * - * @return \Google\Cloud\ErrorReporting\V1beta1\GetGroupRequest - * - * @experimental - */ - public static function build(string $groupName): self - { - return (new self()) - ->setGroupName($groupName); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $group_name - * Required. The group resource name. Written as either - * `projects/{projectID}/groups/{group_id}` or - * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call - * [groupStats.list] - * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats] - * to return a list of groups belonging to this project. - * Examples: `projects/my-project-123/groups/my-group`, - * `projects/my-project-123/locations/global/groups/my-group` - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorGroupService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The group resource name. Written as either - * `projects/{projectID}/groups/{group_id}` or - * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call - * [groupStats.list] - * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats] - * to return a list of groups belonging to this project. - * Examples: `projects/my-project-123/groups/my-group`, - * `projects/my-project-123/locations/global/groups/my-group` - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string group_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getGroupName() - { - return $this->group_name; - } - - /** - * Required. The group resource name. Written as either - * `projects/{projectID}/groups/{group_id}` or - * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call - * [groupStats.list] - * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats] - * to return a list of groups belonging to this project. - * Examples: `projects/my-project-123/groups/my-group`, - * `projects/my-project-123/locations/global/groups/my-group` - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string group_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setGroupName($var) - { - GPBUtil::checkString($var, True); - $this->group_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/HttpRequestContext.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/HttpRequestContext.php deleted file mode 100644 index 95c45a2ac88f..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/HttpRequestContext.php +++ /dev/null @@ -1,252 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.HttpRequestContext - */ -class HttpRequestContext extends \Google\Protobuf\Internal\Message -{ - /** - * The type of HTTP request, such as `GET`, `POST`, etc. - * - * Generated from protobuf field string method = 1; - */ - protected $method = ''; - /** - * The URL of the request. - * - * Generated from protobuf field string url = 2; - */ - protected $url = ''; - /** - * The user agent information that is provided with the request. - * - * Generated from protobuf field string user_agent = 3; - */ - protected $user_agent = ''; - /** - * The referrer information that is provided with the request. - * - * Generated from protobuf field string referrer = 4; - */ - protected $referrer = ''; - /** - * The HTTP response status code for the request. - * - * Generated from protobuf field int32 response_status_code = 5; - */ - protected $response_status_code = 0; - /** - * The IP address from which the request originated. - * This can be IPv4, IPv6, or a token which is derived from the - * IP address, depending on the data that has been provided - * in the error report. - * - * Generated from protobuf field string remote_ip = 6; - */ - protected $remote_ip = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $method - * The type of HTTP request, such as `GET`, `POST`, etc. - * @type string $url - * The URL of the request. - * @type string $user_agent - * The user agent information that is provided with the request. - * @type string $referrer - * The referrer information that is provided with the request. - * @type int $response_status_code - * The HTTP response status code for the request. - * @type string $remote_ip - * The IP address from which the request originated. - * This can be IPv4, IPv6, or a token which is derived from the - * IP address, depending on the data that has been provided - * in the error report. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The type of HTTP request, such as `GET`, `POST`, etc. - * - * Generated from protobuf field string method = 1; - * @return string - */ - public function getMethod() - { - return $this->method; - } - - /** - * The type of HTTP request, such as `GET`, `POST`, etc. - * - * Generated from protobuf field string method = 1; - * @param string $var - * @return $this - */ - public function setMethod($var) - { - GPBUtil::checkString($var, True); - $this->method = $var; - - return $this; - } - - /** - * The URL of the request. - * - * Generated from protobuf field string url = 2; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * The URL of the request. - * - * Generated from protobuf field string url = 2; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - - /** - * The user agent information that is provided with the request. - * - * Generated from protobuf field string user_agent = 3; - * @return string - */ - public function getUserAgent() - { - return $this->user_agent; - } - - /** - * The user agent information that is provided with the request. - * - * Generated from protobuf field string user_agent = 3; - * @param string $var - * @return $this - */ - public function setUserAgent($var) - { - GPBUtil::checkString($var, True); - $this->user_agent = $var; - - return $this; - } - - /** - * The referrer information that is provided with the request. - * - * Generated from protobuf field string referrer = 4; - * @return string - */ - public function getReferrer() - { - return $this->referrer; - } - - /** - * The referrer information that is provided with the request. - * - * Generated from protobuf field string referrer = 4; - * @param string $var - * @return $this - */ - public function setReferrer($var) - { - GPBUtil::checkString($var, True); - $this->referrer = $var; - - return $this; - } - - /** - * The HTTP response status code for the request. - * - * Generated from protobuf field int32 response_status_code = 5; - * @return int - */ - public function getResponseStatusCode() - { - return $this->response_status_code; - } - - /** - * The HTTP response status code for the request. - * - * Generated from protobuf field int32 response_status_code = 5; - * @param int $var - * @return $this - */ - public function setResponseStatusCode($var) - { - GPBUtil::checkInt32($var); - $this->response_status_code = $var; - - return $this; - } - - /** - * The IP address from which the request originated. - * This can be IPv4, IPv6, or a token which is derived from the - * IP address, depending on the data that has been provided - * in the error report. - * - * Generated from protobuf field string remote_ip = 6; - * @return string - */ - public function getRemoteIp() - { - return $this->remote_ip; - } - - /** - * The IP address from which the request originated. - * This can be IPv4, IPv6, or a token which is derived from the - * IP address, depending on the data that has been provided - * in the error report. - * - * Generated from protobuf field string remote_ip = 6; - * @param string $var - * @return $this - */ - public function setRemoteIp($var) - { - GPBUtil::checkString($var, True); - $this->remote_ip = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListEventsRequest.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListEventsRequest.php deleted file mode 100644 index 65f2fdd15fd1..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListEventsRequest.php +++ /dev/null @@ -1,361 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ListEventsRequest - */ -class ListEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $project_name = ''; - /** - * Required. The group for which events shall be returned. - * The `group_id` is a unique identifier for a particular error group. The - * identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * - * Generated from protobuf field string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $group_id = ''; - /** - * Optional. List only ErrorGroups which belong to a service context that - * matches the filter. - * Data for all service contexts is returned if this field is not specified. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_filter = null; - /** - * Optional. List only data for the given time range. - * If not set a default time range is used. The field time_range_begin - * in the response will specify the beginning of this time range. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_range = null; - /** - * Optional. The maximum number of results to return per response. - * - * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A `next_page_token` provided by a previous response. - * - * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $projectName Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. Please see - * {@see ErrorStatsServiceClient::projectName()} for help formatting this field. - * @param string $groupId Required. The group for which events shall be returned. - * The `group_id` is a unique identifier for a particular error group. The - * identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * - * @return \Google\Cloud\ErrorReporting\V1beta1\ListEventsRequest - * - * @experimental - */ - public static function build(string $projectName, string $groupId): self - { - return (new self()) - ->setProjectName($projectName) - ->setGroupId($groupId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_name - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * @type string $group_id - * Required. The group for which events shall be returned. - * The `group_id` is a unique identifier for a particular error group. The - * identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * @type \Google\Cloud\ErrorReporting\V1beta1\ServiceContextFilter $service_filter - * Optional. List only ErrorGroups which belong to a service context that - * matches the filter. - * Data for all service contexts is returned if this field is not specified. - * @type \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange $time_range - * Optional. List only data for the given time range. - * If not set a default time range is used. The field time_range_begin - * in the response will specify the beginning of this time range. - * @type int $page_size - * Optional. The maximum number of results to return per response. - * @type string $page_token - * Optional. A `next_page_token` provided by a previous response. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorStatsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProjectName() - { - return $this->project_name; - } - - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProjectName($var) - { - GPBUtil::checkString($var, True); - $this->project_name = $var; - - return $this; - } - - /** - * Required. The group for which events shall be returned. - * The `group_id` is a unique identifier for a particular error group. The - * identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * - * Generated from protobuf field string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getGroupId() - { - return $this->group_id; - } - - /** - * Required. The group for which events shall be returned. - * The `group_id` is a unique identifier for a particular error group. The - * identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * - * Generated from protobuf field string group_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setGroupId($var) - { - GPBUtil::checkString($var, True); - $this->group_id = $var; - - return $this; - } - - /** - * Optional. List only ErrorGroups which belong to a service context that - * matches the filter. - * Data for all service contexts is returned if this field is not specified. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ErrorReporting\V1beta1\ServiceContextFilter|null - */ - public function getServiceFilter() - { - return $this->service_filter; - } - - public function hasServiceFilter() - { - return isset($this->service_filter); - } - - public function clearServiceFilter() - { - unset($this->service_filter); - } - - /** - * Optional. List only ErrorGroups which belong to a service context that - * matches the filter. - * Data for all service contexts is returned if this field is not specified. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ErrorReporting\V1beta1\ServiceContextFilter $var - * @return $this - */ - public function setServiceFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ServiceContextFilter::class); - $this->service_filter = $var; - - return $this; - } - - /** - * Optional. List only data for the given time range. - * If not set a default time range is used. The field time_range_begin - * in the response will specify the beginning of this time range. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange|null - */ - public function getTimeRange() - { - return $this->time_range; - } - - public function hasTimeRange() - { - return isset($this->time_range); - } - - public function clearTimeRange() - { - unset($this->time_range); - } - - /** - * Optional. List only data for the given time range. - * If not set a default time range is used. The field time_range_begin - * in the response will specify the beginning of this time range. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange $var - * @return $this - */ - public function setTimeRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange::class); - $this->time_range = $var; - - return $this; - } - - /** - * Optional. The maximum number of results to return per response. - * - * Generated from protobuf field int32 page_size = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of results to return per response. - * - * Generated from protobuf field int32 page_size = 6 [(.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 `next_page_token` provided by a previous response. - * - * Generated from protobuf field string page_token = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A `next_page_token` provided by a previous response. - * - * Generated from protobuf field string page_token = 7 [(.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/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListEventsResponse.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListEventsResponse.php deleted file mode 100644 index 55faa7e5a56a..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListEventsResponse.php +++ /dev/null @@ -1,153 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ListEventsResponse - */ -class ListEventsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The error events which match the given request. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.ErrorEvent error_events = 1; - */ - private $error_events; - /** - * If non-empty, more results are available. - * Pass this token, along with the same query parameters as the first - * request, to view the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * The timestamp specifies the start time to which the request was restricted. - * - * Generated from protobuf field .google.protobuf.Timestamp time_range_begin = 4; - */ - protected $time_range_begin = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ErrorReporting\V1beta1\ErrorEvent>|\Google\Protobuf\Internal\RepeatedField $error_events - * The error events which match the given request. - * @type string $next_page_token - * If non-empty, more results are available. - * Pass this token, along with the same query parameters as the first - * request, to view the next page of results. - * @type \Google\Protobuf\Timestamp $time_range_begin - * The timestamp specifies the start time to which the request was restricted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorStatsService::initOnce(); - parent::__construct($data); - } - - /** - * The error events which match the given request. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.ErrorEvent error_events = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorEvents() - { - return $this->error_events; - } - - /** - * The error events which match the given request. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.ErrorEvent error_events = 1; - * @param array<\Google\Cloud\ErrorReporting\V1beta1\ErrorEvent>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ErrorReporting\V1beta1\ErrorEvent::class); - $this->error_events = $arr; - - return $this; - } - - /** - * If non-empty, more results are available. - * Pass this token, along with the same query parameters as the first - * request, to view the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If non-empty, more results are available. - * Pass this token, along with the same query parameters as the first - * request, to view 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; - } - - /** - * The timestamp specifies the start time to which the request was restricted. - * - * Generated from protobuf field .google.protobuf.Timestamp time_range_begin = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimeRangeBegin() - { - return $this->time_range_begin; - } - - public function hasTimeRangeBegin() - { - return isset($this->time_range_begin); - } - - public function clearTimeRangeBegin() - { - unset($this->time_range_begin); - } - - /** - * The timestamp specifies the start time to which the request was restricted. - * - * Generated from protobuf field .google.protobuf.Timestamp time_range_begin = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimeRangeBegin($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time_range_begin = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListGroupStatsRequest.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListGroupStatsRequest.php deleted file mode 100644 index f38e58bc6b2e..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListGroupStatsRequest.php +++ /dev/null @@ -1,638 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest - */ -class ListGroupStatsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectNumber}`, where - * `{projectID}` and `{projectNumber}` can be found in the - * [Google Cloud console](https://support.google.com/cloud/answer/6158840). - * It may also include a location, such as - * `projects/{projectID}/locations/{location}` where `{location}` is a cloud - * region. - * Examples: `projects/my-project-123`, `projects/5551234`, - * `projects/my-project-123/locations/us-central1`, - * `projects/5551234/locations/us-central1`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. Use `-` as a wildcard to request group stats - * from all regions. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $project_name = ''; - /** - * Optional. List all [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these - * IDs. The `group_id` is a unique identifier for a particular error group. - * The identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy Notice] - * (https://cloud.google.com/terms/cloud-privacy-notice). - * - * Generated from protobuf field repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $group_id; - /** - * Optional. List only [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong - * to a service context that matches the filter. Data for all service contexts - * is returned if this field is not specified. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service_filter = null; - /** - * Optional. List data for the given time range. - * If not set, a default time range is used. The field - * [time_range_begin] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin] - * in the response will specify the beginning of this time range. Only - * [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a - * non-zero count in the given time range are returned, unless the request - * contains an explicit [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list. If a [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list is given, also [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero - * occurrences are returned. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $time_range = null; - /** - * Optional. The preferred duration for a single returned [TimedCount] - * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no - * timed counts are returned. - * - * Generated from protobuf field .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $timed_count_duration = null; - /** - * Optional. The alignment of the timed counts to be returned. - * Default is `ALIGNMENT_EQUAL_AT_END`. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment alignment = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $alignment = 0; - /** - * Optional. Time where the timed counts shall be aligned if rounded - * alignment is chosen. Default is 00:00 UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $alignment_time = null; - /** - * Optional. The sort order in which the results are returned. - * Default is `COUNT_DESC`. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder order = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order = 0; - /** - * Optional. The maximum number of results to return per response. - * Default is 20. - * - * Generated from protobuf field int32 page_size = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. A [next_page_token] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token] - * provided by a previous response. To view additional results, pass this - * token along with the identical query parameters as the first request. - * - * Generated from protobuf field string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $projectName Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectNumber}`, where - * `{projectID}` and `{projectNumber}` can be found in the - * [Google Cloud console](https://support.google.com/cloud/answer/6158840). - * It may also include a location, such as - * `projects/{projectID}/locations/{location}` where `{location}` is a cloud - * region. - * - * Examples: `projects/my-project-123`, `projects/5551234`, - * `projects/my-project-123/locations/us-central1`, - * `projects/5551234/locations/us-central1`. - * - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. Use `-` as a wildcard to request group stats - * from all regions. Please see - * {@see ErrorStatsServiceClient::projectName()} for help formatting this field. - * @param \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange $timeRange Optional. List data for the given time range. - * If not set, a default time range is used. The field - * [time_range_begin] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin] - * in the response will specify the beginning of this time range. Only - * [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a - * non-zero count in the given time range are returned, unless the request - * contains an explicit [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list. If a [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list is given, also [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero - * occurrences are returned. - * - * @return \Google\Cloud\ErrorReporting\V1beta1\ListGroupStatsRequest - * - * @experimental - */ - public static function build(string $projectName, \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange $timeRange): self - { - return (new self()) - ->setProjectName($projectName) - ->setTimeRange($timeRange); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_name - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectNumber}`, where - * `{projectID}` and `{projectNumber}` can be found in the - * [Google Cloud console](https://support.google.com/cloud/answer/6158840). - * It may also include a location, such as - * `projects/{projectID}/locations/{location}` where `{location}` is a cloud - * region. - * Examples: `projects/my-project-123`, `projects/5551234`, - * `projects/my-project-123/locations/us-central1`, - * `projects/5551234/locations/us-central1`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. Use `-` as a wildcard to request group stats - * from all regions. - * @type array|\Google\Protobuf\Internal\RepeatedField $group_id - * Optional. List all [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these - * IDs. The `group_id` is a unique identifier for a particular error group. - * The identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy Notice] - * (https://cloud.google.com/terms/cloud-privacy-notice). - * @type \Google\Cloud\ErrorReporting\V1beta1\ServiceContextFilter $service_filter - * Optional. List only [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong - * to a service context that matches the filter. Data for all service contexts - * is returned if this field is not specified. - * @type \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange $time_range - * Optional. List data for the given time range. - * If not set, a default time range is used. The field - * [time_range_begin] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin] - * in the response will specify the beginning of this time range. Only - * [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a - * non-zero count in the given time range are returned, unless the request - * contains an explicit [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list. If a [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list is given, also [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero - * occurrences are returned. - * @type \Google\Protobuf\Duration $timed_count_duration - * Optional. The preferred duration for a single returned [TimedCount] - * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no - * timed counts are returned. - * @type int $alignment - * Optional. The alignment of the timed counts to be returned. - * Default is `ALIGNMENT_EQUAL_AT_END`. - * @type \Google\Protobuf\Timestamp $alignment_time - * Optional. Time where the timed counts shall be aligned if rounded - * alignment is chosen. Default is 00:00 UTC. - * @type int $order - * Optional. The sort order in which the results are returned. - * Default is `COUNT_DESC`. - * @type int $page_size - * Optional. The maximum number of results to return per response. - * Default is 20. - * @type string $page_token - * Optional. A [next_page_token] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token] - * provided by a previous response. To view additional results, pass this - * token along with the identical query parameters as the first request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorStatsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectNumber}`, where - * `{projectID}` and `{projectNumber}` can be found in the - * [Google Cloud console](https://support.google.com/cloud/answer/6158840). - * It may also include a location, such as - * `projects/{projectID}/locations/{location}` where `{location}` is a cloud - * region. - * Examples: `projects/my-project-123`, `projects/5551234`, - * `projects/my-project-123/locations/us-central1`, - * `projects/5551234/locations/us-central1`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. Use `-` as a wildcard to request group stats - * from all regions. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProjectName() - { - return $this->project_name; - } - - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectNumber}`, where - * `{projectID}` and `{projectNumber}` can be found in the - * [Google Cloud console](https://support.google.com/cloud/answer/6158840). - * It may also include a location, such as - * `projects/{projectID}/locations/{location}` where `{location}` is a cloud - * region. - * Examples: `projects/my-project-123`, `projects/5551234`, - * `projects/my-project-123/locations/us-central1`, - * `projects/5551234/locations/us-central1`. - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. Use `-` as a wildcard to request group stats - * from all regions. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProjectName($var) - { - GPBUtil::checkString($var, True); - $this->project_name = $var; - - return $this; - } - - /** - * Optional. List all [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these - * IDs. The `group_id` is a unique identifier for a particular error group. - * The identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy Notice] - * (https://cloud.google.com/terms/cloud-privacy-notice). - * - * Generated from protobuf field repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGroupId() - { - return $this->group_id; - } - - /** - * Optional. List all [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these - * IDs. The `group_id` is a unique identifier for a particular error group. - * The identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy Notice] - * (https://cloud.google.com/terms/cloud-privacy-notice). - * - * Generated from protobuf field repeated string group_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGroupId($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->group_id = $arr; - - return $this; - } - - /** - * Optional. List only [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong - * to a service context that matches the filter. Data for all service contexts - * is returned if this field is not specified. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ErrorReporting\V1beta1\ServiceContextFilter|null - */ - public function getServiceFilter() - { - return $this->service_filter; - } - - public function hasServiceFilter() - { - return isset($this->service_filter); - } - - public function clearServiceFilter() - { - unset($this->service_filter); - } - - /** - * Optional. List only [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong - * to a service context that matches the filter. Data for all service contexts - * is returned if this field is not specified. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter service_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ErrorReporting\V1beta1\ServiceContextFilter $var - * @return $this - */ - public function setServiceFilter($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ServiceContextFilter::class); - $this->service_filter = $var; - - return $this; - } - - /** - * Optional. List data for the given time range. - * If not set, a default time range is used. The field - * [time_range_begin] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin] - * in the response will specify the beginning of this time range. Only - * [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a - * non-zero count in the given time range are returned, unless the request - * contains an explicit [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list. If a [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list is given, also [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero - * occurrences are returned. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange|null - */ - public function getTimeRange() - { - return $this->time_range; - } - - public function hasTimeRange() - { - return isset($this->time_range); - } - - public function clearTimeRange() - { - unset($this->time_range); - } - - /** - * Optional. List data for the given time range. - * If not set, a default time range is used. The field - * [time_range_begin] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin] - * in the response will specify the beginning of this time range. Only - * [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a - * non-zero count in the given time range are returned, unless the request - * contains an explicit [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list. If a [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list is given, also [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero - * occurrences are returned. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange time_range = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange $var - * @return $this - */ - public function setTimeRange($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange::class); - $this->time_range = $var; - - return $this; - } - - /** - * Optional. The preferred duration for a single returned [TimedCount] - * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no - * timed counts are returned. - * - * Generated from protobuf field .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getTimedCountDuration() - { - return $this->timed_count_duration; - } - - public function hasTimedCountDuration() - { - return isset($this->timed_count_duration); - } - - public function clearTimedCountDuration() - { - unset($this->timed_count_duration); - } - - /** - * Optional. The preferred duration for a single returned [TimedCount] - * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no - * timed counts are returned. - * - * Generated from protobuf field .google.protobuf.Duration timed_count_duration = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setTimedCountDuration($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->timed_count_duration = $var; - - return $this; - } - - /** - * Optional. The alignment of the timed counts to be returned. - * Default is `ALIGNMENT_EQUAL_AT_END`. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment alignment = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getAlignment() - { - return $this->alignment; - } - - /** - * Optional. The alignment of the timed counts to be returned. - * Default is `ALIGNMENT_EQUAL_AT_END`. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment alignment = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setAlignment($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ErrorReporting\V1beta1\TimedCountAlignment::class); - $this->alignment = $var; - - return $this; - } - - /** - * Optional. Time where the timed counts shall be aligned if rounded - * alignment is chosen. Default is 00:00 UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getAlignmentTime() - { - return $this->alignment_time; - } - - public function hasAlignmentTime() - { - return isset($this->alignment_time); - } - - public function clearAlignmentTime() - { - unset($this->alignment_time); - } - - /** - * Optional. Time where the timed counts shall be aligned if rounded - * alignment is chosen. Default is 00:00 UTC. - * - * Generated from protobuf field .google.protobuf.Timestamp alignment_time = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setAlignmentTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->alignment_time = $var; - - return $this; - } - - /** - * Optional. The sort order in which the results are returned. - * Default is `COUNT_DESC`. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder order = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getOrder() - { - return $this->order; - } - - /** - * Optional. The sort order in which the results are returned. - * Default is `COUNT_DESC`. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorGroupOrder order = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setOrder($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ErrorReporting\V1beta1\ErrorGroupOrder::class); - $this->order = $var; - - return $this; - } - - /** - * Optional. The maximum number of results to return per response. - * Default is 20. - * - * Generated from protobuf field int32 page_size = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of results to return per response. - * Default is 20. - * - * Generated from protobuf field int32 page_size = 11 [(.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 [next_page_token] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token] - * provided by a previous response. To view additional results, pass this - * token along with the identical query parameters as the first request. - * - * Generated from protobuf field string page_token = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. A [next_page_token] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token] - * provided by a previous response. To view additional results, pass this - * token along with the identical query parameters as the first request. - * - * Generated from protobuf field string page_token = 12 [(.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/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListGroupStatsResponse.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListGroupStatsResponse.php deleted file mode 100644 index 56bfa9df4b28..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ListGroupStatsResponse.php +++ /dev/null @@ -1,165 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse - */ -class ListGroupStatsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The error group stats which match the given request. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats error_group_stats = 1; - */ - private $error_group_stats; - /** - * If non-empty, more results are available. - * Pass this token, along with the same query parameters as the first - * request, to view the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - */ - protected $next_page_token = ''; - /** - * The timestamp specifies the start time to which the request was restricted. - * The start time is set based on the requested time range. It may be adjusted - * to a later time if a project has exceeded the storage quota and older data - * has been deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp time_range_begin = 4; - */ - protected $time_range_begin = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array<\Google\Cloud\ErrorReporting\V1beta1\ErrorGroupStats>|\Google\Protobuf\Internal\RepeatedField $error_group_stats - * The error group stats which match the given request. - * @type string $next_page_token - * If non-empty, more results are available. - * Pass this token, along with the same query parameters as the first - * request, to view the next page of results. - * @type \Google\Protobuf\Timestamp $time_range_begin - * The timestamp specifies the start time to which the request was restricted. - * The start time is set based on the requested time range. It may be adjusted - * to a later time if a project has exceeded the storage quota and older data - * has been deleted. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorStatsService::initOnce(); - parent::__construct($data); - } - - /** - * The error group stats which match the given request. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats error_group_stats = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getErrorGroupStats() - { - return $this->error_group_stats; - } - - /** - * The error group stats which match the given request. - * - * Generated from protobuf field repeated .google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats error_group_stats = 1; - * @param array<\Google\Cloud\ErrorReporting\V1beta1\ErrorGroupStats>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setErrorGroupStats($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\ErrorReporting\V1beta1\ErrorGroupStats::class); - $this->error_group_stats = $arr; - - return $this; - } - - /** - * If non-empty, more results are available. - * Pass this token, along with the same query parameters as the first - * request, to view the next page of results. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If non-empty, more results are available. - * Pass this token, along with the same query parameters as the first - * request, to view 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; - } - - /** - * The timestamp specifies the start time to which the request was restricted. - * The start time is set based on the requested time range. It may be adjusted - * to a later time if a project has exceeded the storage quota and older data - * has been deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp time_range_begin = 4; - * @return \Google\Protobuf\Timestamp|null - */ - public function getTimeRangeBegin() - { - return $this->time_range_begin; - } - - public function hasTimeRangeBegin() - { - return isset($this->time_range_begin); - } - - public function clearTimeRangeBegin() - { - unset($this->time_range_begin); - } - - /** - * The timestamp specifies the start time to which the request was restricted. - * The start time is set based on the requested time range. It may be adjusted - * to a later time if a project has exceeded the storage quota and older data - * has been deleted. - * - * Generated from protobuf field .google.protobuf.Timestamp time_range_begin = 4; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setTimeRangeBegin($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->time_range_begin = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/QueryTimeRange.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/QueryTimeRange.php deleted file mode 100644 index fc05d0791e6e..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/QueryTimeRange.php +++ /dev/null @@ -1,73 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.QueryTimeRange - */ -class QueryTimeRange extends \Google\Protobuf\Internal\Message -{ - /** - * Restricts the query to the specified time range. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period period = 1; - */ - protected $period = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $period - * Restricts the query to the specified time range. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorStatsService::initOnce(); - parent::__construct($data); - } - - /** - * Restricts the query to the specified time range. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period period = 1; - * @return int - */ - public function getPeriod() - { - return $this->period; - } - - /** - * Restricts the query to the specified time range. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period period = 1; - * @param int $var - * @return $this - */ - public function setPeriod($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange\Period::class); - $this->period = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/QueryTimeRange/Period.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/QueryTimeRange/Period.php deleted file mode 100644 index 9aa826cf2d57..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/QueryTimeRange/Period.php +++ /dev/null @@ -1,90 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.QueryTimeRange.Period - */ -class Period -{ - /** - * Do not use. - * - * Generated from protobuf enum PERIOD_UNSPECIFIED = 0; - */ - const PERIOD_UNSPECIFIED = 0; - /** - * Retrieve data for the last hour. - * Recommended minimum timed count duration: 1 min. - * - * Generated from protobuf enum PERIOD_1_HOUR = 1; - */ - const PERIOD_1_HOUR = 1; - /** - * Retrieve data for the last 6 hours. - * Recommended minimum timed count duration: 10 min. - * - * Generated from protobuf enum PERIOD_6_HOURS = 2; - */ - const PERIOD_6_HOURS = 2; - /** - * Retrieve data for the last day. - * Recommended minimum timed count duration: 1 hour. - * - * Generated from protobuf enum PERIOD_1_DAY = 3; - */ - const PERIOD_1_DAY = 3; - /** - * Retrieve data for the last week. - * Recommended minimum timed count duration: 6 hours. - * - * Generated from protobuf enum PERIOD_1_WEEK = 4; - */ - const PERIOD_1_WEEK = 4; - /** - * Retrieve data for the last 30 days. - * Recommended minimum timed count duration: 1 day. - * - * Generated from protobuf enum PERIOD_30_DAYS = 5; - */ - const PERIOD_30_DAYS = 5; - - private static $valueToName = [ - self::PERIOD_UNSPECIFIED => 'PERIOD_UNSPECIFIED', - self::PERIOD_1_HOUR => 'PERIOD_1_HOUR', - self::PERIOD_6_HOURS => 'PERIOD_6_HOURS', - self::PERIOD_1_DAY => 'PERIOD_1_DAY', - self::PERIOD_1_WEEK => 'PERIOD_1_WEEK', - self::PERIOD_30_DAYS => 'PERIOD_30_DAYS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Period::class, \Google\Cloud\ErrorReporting\V1beta1\QueryTimeRange_Period::class); - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportErrorEventRequest.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportErrorEventRequest.php deleted file mode 100644 index c9394dedac65..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportErrorEventRequest.php +++ /dev/null @@ -1,148 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ReportErrorEventRequest - */ -class ReportErrorEventRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectId}`, where `{projectId}` is the - * [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840). - * Example: // `projects/my-project-123`. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $project_name = ''; - /** - * Required. The error event to be reported. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $event = null; - - /** - * @param string $projectName Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectId}`, where `{projectId}` is the - * [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840). - * - * Example: // `projects/my-project-123`. Please see - * {@see ReportErrorsServiceClient::projectName()} for help formatting this field. - * @param \Google\Cloud\ErrorReporting\V1beta1\ReportedErrorEvent $event Required. The error event to be reported. - * - * @return \Google\Cloud\ErrorReporting\V1beta1\ReportErrorEventRequest - * - * @experimental - */ - public static function build(string $projectName, \Google\Cloud\ErrorReporting\V1beta1\ReportedErrorEvent $event): self - { - return (new self()) - ->setProjectName($projectName) - ->setEvent($event); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $project_name - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectId}`, where `{projectId}` is the - * [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840). - * Example: // `projects/my-project-123`. - * @type \Google\Cloud\ErrorReporting\V1beta1\ReportedErrorEvent $event - * Required. The error event to be reported. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ReportErrorsService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectId}`, where `{projectId}` is the - * [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840). - * Example: // `projects/my-project-123`. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getProjectName() - { - return $this->project_name; - } - - /** - * Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectId}`, where `{projectId}` is the - * [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840). - * Example: // `projects/my-project-123`. - * - * Generated from protobuf field string project_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setProjectName($var) - { - GPBUtil::checkString($var, True); - $this->project_name = $var; - - return $this; - } - - /** - * Required. The error event to be reported. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ErrorReporting\V1beta1\ReportedErrorEvent|null - */ - public function getEvent() - { - return $this->event; - } - - public function hasEvent() - { - return isset($this->event); - } - - public function clearEvent() - { - unset($this->event); - } - - /** - * Required. The error event to be reported. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ErrorReporting\V1beta1\ReportedErrorEvent $var - * @return $this - */ - public function setEvent($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ReportedErrorEvent::class); - $this->event = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportErrorEventResponse.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportErrorEventResponse.php deleted file mode 100644 index 14380862c6a8..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportErrorEventResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ReportErrorEventResponse - */ -class ReportErrorEventResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ReportErrorsService::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportedErrorEvent.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportedErrorEvent.php deleted file mode 100644 index 3d6dcf7f9142..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ReportedErrorEvent.php +++ /dev/null @@ -1,311 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ReportedErrorEvent - */ -class ReportedErrorEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Time when the event occurred. - * If not provided, the time when the event was received by the - * Error Reporting system is used. If provided, the time must not - * exceed the [logs retention - * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in - * the past, or be more than 24 hours in the future. - * If an invalid time is provided, then an error is returned. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $event_time = null; - /** - * Required. The service context in which this error has occurred. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service_context = null; - /** - * Required. The error message. - * If no `context.reportLocation` is provided, the message must contain a - * header (typically consisting of the exception type name and an error - * message) and an exception stack trace in one of the supported programming - * languages and formats. - * Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. - * Supported stack trace formats are: - * * **Java**: Must be the return value of - * [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29). - * * **Python**: Must be the return value of - * [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc). - * * **JavaScript**: Must be the value of - * [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned - * by V8. - * * **Ruby**: Must contain frames returned by - * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). - * * **C#**: Must be the return value of - * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal - * error|Warning): "` and contain the result of - * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). - * * **Go**: Must be the return value of - * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). - * - * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $message = ''; - /** - * Optional. A description of the context in which the error occurred. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $context = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $event_time - * Optional. Time when the event occurred. - * If not provided, the time when the event was received by the - * Error Reporting system is used. If provided, the time must not - * exceed the [logs retention - * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in - * the past, or be more than 24 hours in the future. - * If an invalid time is provided, then an error is returned. - * @type \Google\Cloud\ErrorReporting\V1beta1\ServiceContext $service_context - * Required. The service context in which this error has occurred. - * @type string $message - * Required. The error message. - * If no `context.reportLocation` is provided, the message must contain a - * header (typically consisting of the exception type name and an error - * message) and an exception stack trace in one of the supported programming - * languages and formats. - * Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. - * Supported stack trace formats are: - * * **Java**: Must be the return value of - * [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29). - * * **Python**: Must be the return value of - * [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc). - * * **JavaScript**: Must be the value of - * [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned - * by V8. - * * **Ruby**: Must contain frames returned by - * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). - * * **C#**: Must be the return value of - * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal - * error|Warning): "` and contain the result of - * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). - * * **Go**: Must be the return value of - * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). - * @type \Google\Cloud\ErrorReporting\V1beta1\ErrorContext $context - * Optional. A description of the context in which the error occurred. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ReportErrorsService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Time when the event occurred. - * If not provided, the time when the event was received by the - * Error Reporting system is used. If provided, the time must not - * exceed the [logs retention - * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in - * the past, or be more than 24 hours in the future. - * If an invalid time is provided, then an error is returned. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEventTime() - { - return $this->event_time; - } - - public function hasEventTime() - { - return isset($this->event_time); - } - - public function clearEventTime() - { - unset($this->event_time); - } - - /** - * Optional. Time when the event occurred. - * If not provided, the time when the event was received by the - * Error Reporting system is used. If provided, the time must not - * exceed the [logs retention - * period](https://cloud.google.com/logging/quotas#logs_retention_periods) in - * the past, or be more than 24 hours in the future. - * If an invalid time is provided, then an error is returned. - * - * Generated from protobuf field .google.protobuf.Timestamp event_time = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEventTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->event_time = $var; - - return $this; - } - - /** - * Required. The service context in which this error has occurred. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ErrorReporting\V1beta1\ServiceContext|null - */ - public function getServiceContext() - { - return $this->service_context; - } - - public function hasServiceContext() - { - return isset($this->service_context); - } - - public function clearServiceContext() - { - unset($this->service_context); - } - - /** - * Required. The service context in which this error has occurred. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ServiceContext service_context = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ErrorReporting\V1beta1\ServiceContext $var - * @return $this - */ - public function setServiceContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ServiceContext::class); - $this->service_context = $var; - - return $this; - } - - /** - * Required. The error message. - * If no `context.reportLocation` is provided, the message must contain a - * header (typically consisting of the exception type name and an error - * message) and an exception stack trace in one of the supported programming - * languages and formats. - * Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. - * Supported stack trace formats are: - * * **Java**: Must be the return value of - * [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29). - * * **Python**: Must be the return value of - * [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc). - * * **JavaScript**: Must be the value of - * [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned - * by V8. - * * **Ruby**: Must contain frames returned by - * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). - * * **C#**: Must be the return value of - * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal - * error|Warning): "` and contain the result of - * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). - * * **Go**: Must be the return value of - * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). - * - * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Required. The error message. - * If no `context.reportLocation` is provided, the message must contain a - * header (typically consisting of the exception type name and an error - * message) and an exception stack trace in one of the supported programming - * languages and formats. - * Supported languages are Java, Python, JavaScript, Ruby, C#, PHP, and Go. - * Supported stack trace formats are: - * * **Java**: Must be the return value of - * [`Throwable.printStackTrace()`](https://docs.oracle.com/javase/7/docs/api/java/lang/Throwable.html#printStackTrace%28%29). - * * **Python**: Must be the return value of - * [`traceback.format_exc()`](https://docs.python.org/2/library/traceback.html#traceback.format_exc). - * * **JavaScript**: Must be the value of - * [`error.stack`](https://github.com/v8/v8/wiki/Stack-Trace-API) as returned - * by V8. - * * **Ruby**: Must contain frames returned by - * [`Exception.backtrace`](https://ruby-doc.org/core-2.2.0/Exception.html#method-i-backtrace). - * * **C#**: Must be the return value of - * [`Exception.ToString()`](https://msdn.microsoft.com/en-us/library/system.exception.tostring.aspx). - * * **PHP**: Must be prefixed with `"PHP (Notice|Parse error|Fatal - * error|Warning): "` and contain the result of - * [`(string)$exception`](https://php.net/manual/en/exception.tostring.php). - * * **Go**: Must be the return value of - * [`runtime.Stack()`](https://golang.org/pkg/runtime/debug/#Stack). - * - * Generated from protobuf field string message = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - - /** - * Optional. A description of the context in which the error occurred. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\ErrorReporting\V1beta1\ErrorContext|null - */ - public function getContext() - { - return $this->context; - } - - public function hasContext() - { - return isset($this->context); - } - - public function clearContext() - { - unset($this->context); - } - - /** - * Optional. A description of the context in which the error occurred. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorContext context = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\ErrorReporting\V1beta1\ErrorContext $var - * @return $this - */ - public function setContext($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ErrorContext::class); - $this->context = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ResolutionStatus.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ResolutionStatus.php deleted file mode 100644 index a50feb043ec5..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ResolutionStatus.php +++ /dev/null @@ -1,78 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ResolutionStatus - */ -class ResolutionStatus -{ - /** - * Status is unknown. When left unspecified in requests, it is treated like - * OPEN. - * - * Generated from protobuf enum RESOLUTION_STATUS_UNSPECIFIED = 0; - */ - const RESOLUTION_STATUS_UNSPECIFIED = 0; - /** - * The error group is not being addressed. This is the default for - * new groups. It is also used for errors re-occurring after marked RESOLVED. - * - * Generated from protobuf enum OPEN = 1; - */ - const OPEN = 1; - /** - * Error Group manually acknowledged, it can have an issue link attached. - * - * Generated from protobuf enum ACKNOWLEDGED = 2; - */ - const ACKNOWLEDGED = 2; - /** - * Error Group manually resolved, more events for this group are not expected - * to occur. - * - * Generated from protobuf enum RESOLVED = 3; - */ - const RESOLVED = 3; - /** - * The error group is muted and excluded by default on group stats requests. - * - * Generated from protobuf enum MUTED = 4; - */ - const MUTED = 4; - - private static $valueToName = [ - self::RESOLUTION_STATUS_UNSPECIFIED => 'RESOLUTION_STATUS_UNSPECIFIED', - self::OPEN => 'OPEN', - self::ACKNOWLEDGED => 'ACKNOWLEDGED', - self::RESOLVED => 'RESOLVED', - self::MUTED => 'MUTED', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ServiceContext.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ServiceContext.php deleted file mode 100644 index df54f8cfb839..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ServiceContext.php +++ /dev/null @@ -1,180 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ServiceContext - */ -class ServiceContext extends \Google\Protobuf\Internal\Message -{ - /** - * An identifier of the service, such as the name of the - * executable, job, or Google App Engine service name. This field is expected - * to have a low number of values that are relatively stable over time, as - * opposed to `version`, which can be changed whenever new code is deployed. - * Contains the service name for error reports extracted from Google - * App Engine logs or `default` if the App Engine default service is used. - * - * Generated from protobuf field string service = 2; - */ - protected $service = ''; - /** - * Represents the source code version that the developer provided, - * which could represent a version label or a Git SHA-1 hash, for example. - * For App Engine standard environment, the version is set to the version of - * the app. - * - * Generated from protobuf field string version = 3; - */ - protected $version = ''; - /** - * Type of the MonitoredResource. List of possible values: - * https://cloud.google.com/monitoring/api/resources - * Value is set automatically for incoming errors and must not be set when - * reporting errors. - * - * Generated from protobuf field string resource_type = 4; - */ - protected $resource_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * An identifier of the service, such as the name of the - * executable, job, or Google App Engine service name. This field is expected - * to have a low number of values that are relatively stable over time, as - * opposed to `version`, which can be changed whenever new code is deployed. - * Contains the service name for error reports extracted from Google - * App Engine logs or `default` if the App Engine default service is used. - * @type string $version - * Represents the source code version that the developer provided, - * which could represent a version label or a Git SHA-1 hash, for example. - * For App Engine standard environment, the version is set to the version of - * the app. - * @type string $resource_type - * Type of the MonitoredResource. List of possible values: - * https://cloud.google.com/monitoring/api/resources - * Value is set automatically for incoming errors and must not be set when - * reporting errors. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * An identifier of the service, such as the name of the - * executable, job, or Google App Engine service name. This field is expected - * to have a low number of values that are relatively stable over time, as - * opposed to `version`, which can be changed whenever new code is deployed. - * Contains the service name for error reports extracted from Google - * App Engine logs or `default` if the App Engine default service is used. - * - * Generated from protobuf field string service = 2; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * An identifier of the service, such as the name of the - * executable, job, or Google App Engine service name. This field is expected - * to have a low number of values that are relatively stable over time, as - * opposed to `version`, which can be changed whenever new code is deployed. - * Contains the service name for error reports extracted from Google - * App Engine logs or `default` if the App Engine default service is used. - * - * Generated from protobuf field string service = 2; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Represents the source code version that the developer provided, - * which could represent a version label or a Git SHA-1 hash, for example. - * For App Engine standard environment, the version is set to the version of - * the app. - * - * Generated from protobuf field string version = 3; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Represents the source code version that the developer provided, - * which could represent a version label or a Git SHA-1 hash, for example. - * For App Engine standard environment, the version is set to the version of - * the app. - * - * Generated from protobuf field string version = 3; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Type of the MonitoredResource. List of possible values: - * https://cloud.google.com/monitoring/api/resources - * Value is set automatically for incoming errors and must not be set when - * reporting errors. - * - * Generated from protobuf field string resource_type = 4; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Type of the MonitoredResource. List of possible values: - * https://cloud.google.com/monitoring/api/resources - * Value is set automatically for incoming errors and must not be set when - * reporting errors. - * - * Generated from protobuf field string resource_type = 4; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ServiceContextFilter.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ServiceContextFilter.php deleted file mode 100644 index 140d3323103d..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/ServiceContextFilter.php +++ /dev/null @@ -1,150 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.ServiceContextFilter - */ -class ServiceContextFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The exact value to match against - * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). - * - * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $service = ''; - /** - * Optional. The exact value to match against - * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $version = ''; - /** - * Optional. The exact value to match against - * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). - * - * Generated from protobuf field string resource_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $resource_type = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Optional. The exact value to match against - * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). - * @type string $version - * Optional. The exact value to match against - * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). - * @type string $resource_type - * Optional. The exact value to match against - * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorStatsService::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The exact value to match against - * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). - * - * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Optional. The exact value to match against - * [`ServiceContext.service`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.service). - * - * Generated from protobuf field string service = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Optional. The exact value to match against - * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getVersion() - { - return $this->version; - } - - /** - * Optional. The exact value to match against - * [`ServiceContext.version`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.version). - * - * Generated from protobuf field string version = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setVersion($var) - { - GPBUtil::checkString($var, True); - $this->version = $var; - - return $this; - } - - /** - * Optional. The exact value to match against - * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). - * - * Generated from protobuf field string resource_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getResourceType() - { - return $this->resource_type; - } - - /** - * Optional. The exact value to match against - * [`ServiceContext.resource_type`](/error-reporting/reference/rest/v1beta1/ServiceContext#FIELDS.resource_type). - * - * Generated from protobuf field string resource_type = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setResourceType($var) - { - GPBUtil::checkString($var, True); - $this->resource_type = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/SourceLocation.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/SourceLocation.php deleted file mode 100644 index f85e34012700..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/SourceLocation.php +++ /dev/null @@ -1,150 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.SourceLocation - */ -class SourceLocation extends \Google\Protobuf\Internal\Message -{ - /** - * The source code filename, which can include a truncated relative - * path, or a full path from a production machine. - * - * Generated from protobuf field string file_path = 1; - */ - protected $file_path = ''; - /** - * 1-based. 0 indicates that the line number is unknown. - * - * Generated from protobuf field int32 line_number = 2; - */ - protected $line_number = 0; - /** - * Human-readable name of a function or method. - * The value can include optional context like the class or package name. - * For example, `my.package.MyClass.method` in case of Java. - * - * Generated from protobuf field string function_name = 4; - */ - protected $function_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $file_path - * The source code filename, which can include a truncated relative - * path, or a full path from a production machine. - * @type int $line_number - * 1-based. 0 indicates that the line number is unknown. - * @type string $function_name - * Human-readable name of a function or method. - * The value can include optional context like the class or package name. - * For example, `my.package.MyClass.method` in case of Java. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * The source code filename, which can include a truncated relative - * path, or a full path from a production machine. - * - * Generated from protobuf field string file_path = 1; - * @return string - */ - public function getFilePath() - { - return $this->file_path; - } - - /** - * The source code filename, which can include a truncated relative - * path, or a full path from a production machine. - * - * Generated from protobuf field string file_path = 1; - * @param string $var - * @return $this - */ - public function setFilePath($var) - { - GPBUtil::checkString($var, True); - $this->file_path = $var; - - return $this; - } - - /** - * 1-based. 0 indicates that the line number is unknown. - * - * Generated from protobuf field int32 line_number = 2; - * @return int - */ - public function getLineNumber() - { - return $this->line_number; - } - - /** - * 1-based. 0 indicates that the line number is unknown. - * - * Generated from protobuf field int32 line_number = 2; - * @param int $var - * @return $this - */ - public function setLineNumber($var) - { - GPBUtil::checkInt32($var); - $this->line_number = $var; - - return $this; - } - - /** - * Human-readable name of a function or method. - * The value can include optional context like the class or package name. - * For example, `my.package.MyClass.method` in case of Java. - * - * Generated from protobuf field string function_name = 4; - * @return string - */ - public function getFunctionName() - { - return $this->function_name; - } - - /** - * Human-readable name of a function or method. - * The value can include optional context like the class or package name. - * For example, `my.package.MyClass.method` in case of Java. - * - * Generated from protobuf field string function_name = 4; - * @param string $var - * @return $this - */ - public function setFunctionName($var) - { - GPBUtil::checkString($var, True); - $this->function_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TimedCount.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TimedCount.php deleted file mode 100644 index 7605fd7676fd..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TimedCount.php +++ /dev/null @@ -1,157 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.TimedCount - */ -class TimedCount extends \Google\Protobuf\Internal\Message -{ - /** - * Approximate number of occurrences in the given time period. - * - * Generated from protobuf field int64 count = 1; - */ - protected $count = 0; - /** - * Start of the time period to which `count` refers (included). - * - * Generated from protobuf field .google.protobuf.Timestamp start_time = 2; - */ - protected $start_time = null; - /** - * End of the time period to which `count` refers (excluded). - * - * 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|string $count - * Approximate number of occurrences in the given time period. - * @type \Google\Protobuf\Timestamp $start_time - * Start of the time period to which `count` refers (included). - * @type \Google\Protobuf\Timestamp $end_time - * End of the time period to which `count` refers (excluded). - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorStatsService::initOnce(); - parent::__construct($data); - } - - /** - * Approximate number of occurrences in the given time period. - * - * Generated from protobuf field int64 count = 1; - * @return int|string - */ - public function getCount() - { - return $this->count; - } - - /** - * Approximate number of occurrences in the given time period. - * - * Generated from protobuf field int64 count = 1; - * @param int|string $var - * @return $this - */ - public function setCount($var) - { - GPBUtil::checkInt64($var); - $this->count = $var; - - return $this; - } - - /** - * Start of the time period to which `count` refers (included). - * - * 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); - } - - /** - * Start of the time period to which `count` refers (included). - * - * 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; - } - - /** - * End of the time period to which `count` refers (excluded). - * - * 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); - } - - /** - * End of the time period to which `count` refers (excluded). - * - * 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/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TimedCountAlignment.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TimedCountAlignment.php deleted file mode 100644 index 697ac5cb0e0f..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TimedCountAlignment.php +++ /dev/null @@ -1,74 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.TimedCountAlignment - */ -class TimedCountAlignment -{ - /** - * No alignment specified. - * - * Generated from protobuf enum ERROR_COUNT_ALIGNMENT_UNSPECIFIED = 0; - */ - const ERROR_COUNT_ALIGNMENT_UNSPECIFIED = 0; - /** - * The time periods shall be consecutive, have width equal to the - * requested duration, and be aligned at the - * [alignment_time] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time] - * provided in the request. - * The [alignment_time] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.alignment_time] - * does not have to be inside the query period but even if it is outside, only - * time periods are returned which overlap with the query period. - * A rounded alignment will typically result in a different size of the first - * or the last time period. - * - * Generated from protobuf enum ALIGNMENT_EQUAL_ROUNDED = 1; - */ - const ALIGNMENT_EQUAL_ROUNDED = 1; - /** - * The time periods shall be consecutive, have width equal to the - * requested duration, and be aligned at the end of the requested time - * period. This can result in a different size of the - * first time period. - * - * Generated from protobuf enum ALIGNMENT_EQUAL_AT_END = 2; - */ - const ALIGNMENT_EQUAL_AT_END = 2; - - private static $valueToName = [ - self::ERROR_COUNT_ALIGNMENT_UNSPECIFIED => 'ERROR_COUNT_ALIGNMENT_UNSPECIFIED', - self::ALIGNMENT_EQUAL_ROUNDED => 'ALIGNMENT_EQUAL_ROUNDED', - self::ALIGNMENT_EQUAL_AT_END => 'ALIGNMENT_EQUAL_AT_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); - } -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TrackingIssue.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TrackingIssue.php deleted file mode 100644 index b6a97dcab003..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/TrackingIssue.php +++ /dev/null @@ -1,71 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.TrackingIssue - */ -class TrackingIssue extends \Google\Protobuf\Internal\Message -{ - /** - * A URL pointing to a related entry in an issue tracking system. - * Example: `https://github.com/user/project/issues/4` - * - * Generated from protobuf field string url = 1; - */ - protected $url = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $url - * A URL pointing to a related entry in an issue tracking system. - * Example: `https://github.com/user/project/issues/4` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\Common::initOnce(); - parent::__construct($data); - } - - /** - * A URL pointing to a related entry in an issue tracking system. - * Example: `https://github.com/user/project/issues/4` - * - * Generated from protobuf field string url = 1; - * @return string - */ - public function getUrl() - { - return $this->url; - } - - /** - * A URL pointing to a related entry in an issue tracking system. - * Example: `https://github.com/user/project/issues/4` - * - * Generated from protobuf field string url = 1; - * @param string $var - * @return $this - */ - public function setUrl($var) - { - GPBUtil::checkString($var, True); - $this->url = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/UpdateGroupRequest.php b/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/UpdateGroupRequest.php deleted file mode 100644 index eb7d7c9e99b9..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/proto/src/Google/Cloud/ErrorReporting/V1beta1/UpdateGroupRequest.php +++ /dev/null @@ -1,90 +0,0 @@ -google.devtools.clouderrorreporting.v1beta1.UpdateGroupRequest - */ -class UpdateGroupRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The group which replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorGroup group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $group = null; - - /** - * @param \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup $group Required. The group which replaces the resource on the server. - * - * @return \Google\Cloud\ErrorReporting\V1beta1\UpdateGroupRequest - * - * @experimental - */ - public static function build(\Google\Cloud\ErrorReporting\V1beta1\ErrorGroup $group): self - { - return (new self()) - ->setGroup($group); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup $group - * Required. The group which replaces the resource on the server. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Devtools\Clouderrorreporting\V1Beta1\ErrorGroupService::initOnce(); - parent::__construct($data); - } - - /** - * Required. The group which replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorGroup group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup|null - */ - public function getGroup() - { - return $this->group; - } - - public function hasGroup() - { - return isset($this->group); - } - - public function clearGroup() - { - unset($this->group); - } - - /** - * Required. The group which replaces the resource on the server. - * - * Generated from protobuf field .google.devtools.clouderrorreporting.v1beta1.ErrorGroup group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup $var - * @return $this - */ - public function setGroup($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup::class); - $this->group = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorGroupServiceClient/get_group.php b/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorGroupServiceClient/get_group.php deleted file mode 100644 index e9fb73623905..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorGroupServiceClient/get_group.php +++ /dev/null @@ -1,89 +0,0 @@ -setGroupName($formattedGroupName); - - // Call the API and handle any network failures. - try { - /** @var ErrorGroup $response */ - $response = $errorGroupServiceClient->getGroup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedGroupName = ErrorGroupServiceClient::errorGroupName('[PROJECT]', '[GROUP]'); - - get_group_sample($formattedGroupName); -} -// [END clouderrorreporting_v1beta1_generated_ErrorGroupService_GetGroup_sync] diff --git a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorGroupServiceClient/update_group.php b/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorGroupServiceClient/update_group.php deleted file mode 100644 index 0a79571025b9..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorGroupServiceClient/update_group.php +++ /dev/null @@ -1,60 +0,0 @@ -setGroup($group); - - // Call the API and handle any network failures. - try { - /** @var ErrorGroup $response */ - $response = $errorGroupServiceClient->updateGroup($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END clouderrorreporting_v1beta1_generated_ErrorGroupService_UpdateGroup_sync] diff --git a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/delete_events.php b/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/delete_events.php deleted file mode 100644 index 322c42bac81e..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/delete_events.php +++ /dev/null @@ -1,82 +0,0 @@ -setProjectName($formattedProjectName); - - // Call the API and handle any network failures. - try { - /** @var DeleteEventsResponse $response */ - $response = $errorStatsServiceClient->deleteEvents($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedProjectName = ErrorStatsServiceClient::projectName('[PROJECT]'); - - delete_events_sample($formattedProjectName); -} -// [END clouderrorreporting_v1beta1_generated_ErrorStatsService_DeleteEvents_sync] diff --git a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/list_events.php b/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/list_events.php deleted file mode 100644 index d1667901b649..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/list_events.php +++ /dev/null @@ -1,95 +0,0 @@ -setProjectName($formattedProjectName) - ->setGroupId($groupId); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $errorStatsServiceClient->listEvents($request); - - /** @var ErrorEvent $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 -{ - $formattedProjectName = ErrorStatsServiceClient::projectName('[PROJECT]'); - $groupId = '[GROUP_ID]'; - - list_events_sample($formattedProjectName, $groupId); -} -// [END clouderrorreporting_v1beta1_generated_ErrorStatsService_ListEvents_sync] diff --git a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/list_group_stats.php b/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/list_group_stats.php deleted file mode 100644 index 6a42de798e60..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ErrorStatsServiceClient/list_group_stats.php +++ /dev/null @@ -1,91 +0,0 @@ -setProjectName($formattedProjectName); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $errorStatsServiceClient->listGroupStats($request); - - /** @var ErrorGroupStats $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 -{ - $formattedProjectName = ErrorStatsServiceClient::projectName('[PROJECT]'); - - list_group_stats_sample($formattedProjectName); -} -// [END clouderrorreporting_v1beta1_generated_ErrorStatsService_ListGroupStats_sync] diff --git a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ReportErrorsServiceClient/report_error_event.php b/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ReportErrorsServiceClient/report_error_event.php deleted file mode 100644 index 17c638f82863..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/samples/V1beta1/ReportErrorsServiceClient/report_error_event.php +++ /dev/null @@ -1,127 +0,0 @@ -setServiceContext($eventServiceContext) - ->setMessage($eventMessage); - $request = (new ReportErrorEventRequest()) - ->setProjectName($formattedProjectName) - ->setEvent($event); - - // Call the API and handle any network failures. - try { - /** @var ReportErrorEventResponse $response */ - $response = $reportErrorsServiceClient->reportErrorEvent($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedProjectName = ReportErrorsServiceClient::projectName('[PROJECT]'); - $eventMessage = '[MESSAGE]'; - - report_error_event_sample($formattedProjectName, $eventMessage); -} -// [END clouderrorreporting_v1beta1_generated_ReportErrorsService_ReportErrorEvent_sync] diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ErrorGroupServiceClient.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ErrorGroupServiceClient.php deleted file mode 100644 index bd3621ff5b65..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ErrorGroupServiceClient.php +++ /dev/null @@ -1,280 +0,0 @@ - getGroupAsync(GetGroupRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGroupAsync(UpdateGroupRequest $request, array $optionalArgs = []) - */ -final class ErrorGroupServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.devtools.clouderrorreporting.v1beta1.ErrorGroupService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'clouderrorreporting.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouderrorreporting.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/error_group_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/error_group_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/error_group_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/error_group_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a error_group - * resource. - * - * @param string $project - * @param string $group - * - * @return string The formatted error_group resource. - * - * @experimental - */ - public static function errorGroupName(string $project, string $group): string - { - return self::getPathTemplate('errorGroup')->render([ - 'project' => $project, - 'group' => $group, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - errorGroup: projects/{project}/groups/{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. - * - * @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 'clouderrorreporting.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); - } - - /** - * Get the specified group. - * - * The async variant is {@see ErrorGroupServiceClient::getGroupAsync()} . - * - * @example samples/V1beta1/ErrorGroupServiceClient/get_group.php - * - * @param GetGroupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ErrorGroup - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function getGroup(GetGroupRequest $request, array $callOptions = []): ErrorGroup - { - return $this->startApiCall('GetGroup', $request, $callOptions)->wait(); - } - - /** - * Replace the data for the specified group. - * Fails if the group does not exist. - * - * The async variant is {@see ErrorGroupServiceClient::updateGroupAsync()} . - * - * @example samples/V1beta1/ErrorGroupServiceClient/update_group.php - * - * @param UpdateGroupRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ErrorGroup - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function updateGroup(UpdateGroupRequest $request, array $callOptions = []): ErrorGroup - { - return $this->startApiCall('UpdateGroup', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ErrorStatsServiceClient.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ErrorStatsServiceClient.php deleted file mode 100644 index 5884ccb94a5e..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ErrorStatsServiceClient.php +++ /dev/null @@ -1,309 +0,0 @@ - deleteEventsAsync(DeleteEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEventsAsync(ListEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGroupStatsAsync(ListGroupStatsRequest $request, array $optionalArgs = []) - */ -final class ErrorStatsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.devtools.clouderrorreporting.v1beta1.ErrorStatsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'clouderrorreporting.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouderrorreporting.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/error_stats_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/error_stats_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/error_stats_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/error_stats_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - * - * @experimental - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - project: projects/{project} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @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 'clouderrorreporting.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); - } - - /** - * Deletes all error events of a given project. - * - * The async variant is {@see ErrorStatsServiceClient::deleteEventsAsync()} . - * - * @example samples/V1beta1/ErrorStatsServiceClient/delete_events.php - * - * @param DeleteEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return DeleteEventsResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function deleteEvents(DeleteEventsRequest $request, array $callOptions = []): DeleteEventsResponse - { - return $this->startApiCall('DeleteEvents', $request, $callOptions)->wait(); - } - - /** - * Lists the specified events. - * - * The async variant is {@see ErrorStatsServiceClient::listEventsAsync()} . - * - * @example samples/V1beta1/ErrorStatsServiceClient/list_events.php - * - * @param ListEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listEvents(ListEventsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEvents', $request, $callOptions); - } - - /** - * Lists the specified groups. - * - * The async variant is {@see ErrorStatsServiceClient::listGroupStatsAsync()} . - * - * @example samples/V1beta1/ErrorStatsServiceClient/list_group_stats.php - * - * @param ListGroupStatsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listGroupStats(ListGroupStatsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGroupStats', $request, $callOptions); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ReportErrorsServiceClient.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ReportErrorsServiceClient.php deleted file mode 100644 index dc7bed8fa6ad..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Client/ReportErrorsServiceClient.php +++ /dev/null @@ -1,266 +0,0 @@ - reportErrorEventAsync(ReportErrorEventRequest $request, array $optionalArgs = []) - */ -final class ReportErrorsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.devtools.clouderrorreporting.v1beta1.ReportErrorsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'clouderrorreporting.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouderrorreporting.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/report_errors_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/report_errors_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/report_errors_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/report_errors_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - * - * @experimental - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - project: projects/{project} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @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 'clouderrorreporting.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); - } - - /** - * Report an individual error event and record the event to a log. - * - * This endpoint accepts **either** an OAuth token, - * **or** an [API key](https://support.google.com/cloud/answer/6158862) - * for authentication. To use an API key, append it to the URL as the value of - * a `key` parameter. For example: - * - * `POST - * https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` - * - * **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) - * is a service built on Cloud Logging and can analyze log entries when all of - * the following are true: - * - * * Customer-managed encryption keys (CMEK) are disabled on the log bucket. - * * The log bucket satisfies one of the following: - * * The log bucket is stored in the same project where the logs - * originated. - * * The logs were routed to a project, and then that project stored those - * logs in a log bucket that it owns. - * - * The async variant is {@see ReportErrorsServiceClient::reportErrorEventAsync()} . - * - * @example samples/V1beta1/ReportErrorsServiceClient/report_error_event.php - * - * @param ReportErrorEventRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ReportErrorEventResponse - * - * @throws ApiException Thrown if the API call fails. - * - * @experimental - */ - public function reportErrorEvent(ReportErrorEventRequest $request, array $callOptions = []): ReportErrorEventResponse - { - return $this->startApiCall('ReportErrorEvent', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/ErrorGroupServiceClient.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/ErrorGroupServiceClient.php deleted file mode 100644 index 18581dbed1b8..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/ErrorGroupServiceClient.php +++ /dev/null @@ -1,36 +0,0 @@ -errorGroupName('[PROJECT]', '[GROUP]'); - * $response = $errorGroupServiceClient->getGroup($formattedGroupName); - * } finally { - * $errorGroupServiceClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - * - * @experimental - * - * @deprecated Please use the new service client {@see \Google\Cloud\ErrorReporting\V1beta1\Client\ErrorGroupServiceClient}. - */ -class ErrorGroupServiceGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.devtools.clouderrorreporting.v1beta1.ErrorGroupService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'clouderrorreporting.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouderrorreporting.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static $errorGroupNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/error_group_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/error_group_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/error_group_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/error_group_service_rest_client_config.php', - ], - ], - ]; - } - - private static function getErrorGroupNameTemplate() - { - if (self::$errorGroupNameTemplate == null) { - self::$errorGroupNameTemplate = new PathTemplate('projects/{project}/groups/{group}'); - } - - return self::$errorGroupNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'errorGroup' => self::getErrorGroupNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a error_group - * resource. - * - * @param string $project - * @param string $group - * - * @return string The formatted error_group resource. - * - * @experimental - */ - public static function errorGroupName($project, $group) - { - return self::getErrorGroupNameTemplate()->render([ - 'project' => $project, - 'group' => $group, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - errorGroup: projects/{project}/groups/{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. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'clouderrorreporting.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); - } - - /** - * Get the specified group. - * - * Sample code: - * ``` - * $errorGroupServiceClient = new ErrorGroupServiceClient(); - * try { - * $formattedGroupName = $errorGroupServiceClient->errorGroupName('[PROJECT]', '[GROUP]'); - * $response = $errorGroupServiceClient->getGroup($formattedGroupName); - * } finally { - * $errorGroupServiceClient->close(); - * } - * ``` - * - * @param string $groupName Required. The group resource name. Written as either - * `projects/{projectID}/groups/{group_id}` or - * `projects/{projectID}/locations/{location}/groups/{group_id}`. Call - * [groupStats.list] - * [google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats] - * to return a list of groups belonging to this project. - * - * Examples: `projects/my-project-123/groups/my-group`, - * `projects/my-project-123/locations/global/groups/my-group` - * - * In the group resource name, the `group_id` is a unique identifier for a - * particular error group. The identifier is derived from key parts of the - * error-log content and is treated as Service Data. For information about - * how Service Data is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function getGroup($groupName, array $optionalArgs = []) - { - $request = new GetGroupRequest(); - $requestParamHeaders = []; - $request->setGroupName($groupName); - $requestParamHeaders['group_name'] = $groupName; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('GetGroup', ErrorGroup::class, $optionalArgs, $request)->wait(); - } - - /** - * Replace the data for the specified group. - * Fails if the group does not exist. - * - * Sample code: - * ``` - * $errorGroupServiceClient = new ErrorGroupServiceClient(); - * try { - * $group = new ErrorGroup(); - * $response = $errorGroupServiceClient->updateGroup($group); - * } finally { - * $errorGroupServiceClient->close(); - * } - * ``` - * - * @param ErrorGroup $group Required. The group which replaces the resource on the server. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\ErrorReporting\V1beta1\ErrorGroup - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function updateGroup($group, array $optionalArgs = []) - { - $request = new UpdateGroupRequest(); - $requestParamHeaders = []; - $request->setGroup($group); - $requestParamHeaders['group.name'] = $group->getName(); - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('UpdateGroup', ErrorGroup::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Gapic/ErrorStatsServiceGapicClient.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Gapic/ErrorStatsServiceGapicClient.php deleted file mode 100644 index 27b0118c054d..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Gapic/ErrorStatsServiceGapicClient.php +++ /dev/null @@ -1,581 +0,0 @@ -projectName('[PROJECT]'); - * $response = $errorStatsServiceClient->deleteEvents($formattedProjectName); - * } finally { - * $errorStatsServiceClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - * - * @experimental - * - * @deprecated Please use the new service client {@see \Google\Cloud\ErrorReporting\V1beta1\Client\ErrorStatsServiceClient}. - */ -class ErrorStatsServiceGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.devtools.clouderrorreporting.v1beta1.ErrorStatsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'clouderrorreporting.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouderrorreporting.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static $projectNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/error_stats_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/error_stats_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/error_stats_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/error_stats_service_rest_client_config.php', - ], - ], - ]; - } - - private static function getProjectNameTemplate() - { - if (self::$projectNameTemplate == null) { - self::$projectNameTemplate = new PathTemplate('projects/{project}'); - } - - return self::$projectNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'project' => self::getProjectNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - * - * @experimental - */ - public static function projectName($project) - { - return self::getProjectNameTemplate()->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - project: projects/{project} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'clouderrorreporting.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); - } - - /** - * Deletes all error events of a given project. - * - * Sample code: - * ``` - * $errorStatsServiceClient = new ErrorStatsServiceClient(); - * try { - * $formattedProjectName = $errorStatsServiceClient->projectName('[PROJECT]'); - * $response = $errorStatsServiceClient->deleteEvents($formattedProjectName); - * } finally { - * $errorStatsServiceClient->close(); - * } - * ``` - * - * @param string $projectName Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\ErrorReporting\V1beta1\DeleteEventsResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function deleteEvents($projectName, array $optionalArgs = []) - { - $request = new DeleteEventsRequest(); - $requestParamHeaders = []; - $request->setProjectName($projectName); - $requestParamHeaders['project_name'] = $projectName; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('DeleteEvents', DeleteEventsResponse::class, $optionalArgs, $request)->wait(); - } - - /** - * Lists the specified events. - * - * Sample code: - * ``` - * $errorStatsServiceClient = new ErrorStatsServiceClient(); - * try { - * $formattedProjectName = $errorStatsServiceClient->projectName('[PROJECT]'); - * $groupId = 'group_id'; - * // Iterate over pages of elements - * $pagedResponse = $errorStatsServiceClient->listEvents($formattedProjectName, $groupId); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $errorStatsServiceClient->listEvents($formattedProjectName, $groupId); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $errorStatsServiceClient->close(); - * } - * ``` - * - * @param string $projectName Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectID}/locations/{location}`, - * where `{projectID}` is the [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840) and `{location}` is - * a Cloud region. - * - * Examples: `projects/my-project-123`, - * `projects/my-project-123/locations/global`. - * - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. - * @param string $groupId Required. The group for which events shall be returned. - * The `group_id` is a unique identifier for a particular error group. The - * identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy - * Notice](https://cloud.google.com/terms/cloud-privacy-notice). - * @param array $optionalArgs { - * Optional. - * - * @type ServiceContextFilter $serviceFilter - * Optional. List only ErrorGroups which belong to a service context that - * matches the filter. - * Data for all service contexts is returned if this field is not specified. - * @type QueryTimeRange $timeRange - * Optional. List only data for the given time range. - * If not set a default time range is used. The field time_range_begin - * in the response will specify the beginning of this time range. - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listEvents($projectName, $groupId, array $optionalArgs = []) - { - $request = new ListEventsRequest(); - $requestParamHeaders = []; - $request->setProjectName($projectName); - $request->setGroupId($groupId); - $requestParamHeaders['project_name'] = $projectName; - if (isset($optionalArgs['serviceFilter'])) { - $request->setServiceFilter($optionalArgs['serviceFilter']); - } - - if (isset($optionalArgs['timeRange'])) { - $request->setTimeRange($optionalArgs['timeRange']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListEvents', $optionalArgs, ListEventsResponse::class, $request); - } - - /** - * Lists the specified groups. - * - * Sample code: - * ``` - * $errorStatsServiceClient = new ErrorStatsServiceClient(); - * try { - * $formattedProjectName = $errorStatsServiceClient->projectName('[PROJECT]'); - * // Iterate over pages of elements - * $pagedResponse = $errorStatsServiceClient->listGroupStats($formattedProjectName); - * foreach ($pagedResponse->iteratePages() as $page) { - * foreach ($page as $element) { - * // doSomethingWith($element); - * } - * } - * // Alternatively: - * // Iterate through all elements - * $pagedResponse = $errorStatsServiceClient->listGroupStats($formattedProjectName); - * foreach ($pagedResponse->iterateAllElements() as $element) { - * // doSomethingWith($element); - * } - * } finally { - * $errorStatsServiceClient->close(); - * } - * ``` - * - * @param string $projectName Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectID}` or `projects/{projectNumber}`, where - * `{projectID}` and `{projectNumber}` can be found in the - * [Google Cloud console](https://support.google.com/cloud/answer/6158840). - * It may also include a location, such as - * `projects/{projectID}/locations/{location}` where `{location}` is a cloud - * region. - * - * Examples: `projects/my-project-123`, `projects/5551234`, - * `projects/my-project-123/locations/us-central1`, - * `projects/5551234/locations/us-central1`. - * - * For a list of supported locations, see [Supported - * Regions](https://cloud.google.com/logging/docs/region-support). `global` is - * the default when unspecified. Use `-` as a wildcard to request group stats - * from all regions. - * @param array $optionalArgs { - * Optional. - * - * @type string[] $groupId - * Optional. List all [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with these - * IDs. The `group_id` is a unique identifier for a particular error group. - * The identifier is derived from key parts of the error-log content and is - * treated as Service Data. For information about how Service Data - * is handled, see [Google Cloud Privacy Notice] - * (https://cloud.google.com/terms/cloud-privacy-notice). - * @type ServiceContextFilter $serviceFilter - * Optional. List only [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] which belong - * to a service context that matches the filter. Data for all service contexts - * is returned if this field is not specified. - * @type QueryTimeRange $timeRange - * Optional. List data for the given time range. - * If not set, a default time range is used. The field - * [time_range_begin] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin] - * in the response will specify the beginning of this time range. Only - * [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with a - * non-zero count in the given time range are returned, unless the request - * contains an explicit [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list. If a [group_id] - * [google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id] - * list is given, also [ErrorGroupStats] - * [google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats] with zero - * occurrences are returned. - * @type Duration $timedCountDuration - * Optional. The preferred duration for a single returned [TimedCount] - * [google.devtools.clouderrorreporting.v1beta1.TimedCount]. If not set, no - * timed counts are returned. - * @type int $alignment - * Optional. The alignment of the timed counts to be returned. - * Default is `ALIGNMENT_EQUAL_AT_END`. - * For allowed values, use constants defined on {@see \Google\Cloud\ErrorReporting\V1beta1\TimedCountAlignment} - * @type Timestamp $alignmentTime - * Optional. Time where the timed counts shall be aligned if rounded - * alignment is chosen. Default is 00:00 UTC. - * @type int $order - * Optional. The sort order in which the results are returned. - * Default is `COUNT_DESC`. - * For allowed values, use constants defined on {@see \Google\Cloud\ErrorReporting\V1beta1\ErrorGroupOrder} - * @type int $pageSize - * The maximum number of resources contained in the underlying API - * response. The API may return fewer values in a page, even if - * there are additional values to be retrieved. - * @type string $pageToken - * A page token is used to specify a page of values to be returned. - * If no page token is specified (the default), the first page - * of values will be returned. Any page token used here must have - * been generated by a previous call to the API. - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\ApiCore\PagedListResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function listGroupStats($projectName, array $optionalArgs = []) - { - $request = new ListGroupStatsRequest(); - $requestParamHeaders = []; - $request->setProjectName($projectName); - $requestParamHeaders['project_name'] = $projectName; - if (isset($optionalArgs['groupId'])) { - $request->setGroupId($optionalArgs['groupId']); - } - - if (isset($optionalArgs['serviceFilter'])) { - $request->setServiceFilter($optionalArgs['serviceFilter']); - } - - if (isset($optionalArgs['timeRange'])) { - $request->setTimeRange($optionalArgs['timeRange']); - } - - if (isset($optionalArgs['timedCountDuration'])) { - $request->setTimedCountDuration($optionalArgs['timedCountDuration']); - } - - if (isset($optionalArgs['alignment'])) { - $request->setAlignment($optionalArgs['alignment']); - } - - if (isset($optionalArgs['alignmentTime'])) { - $request->setAlignmentTime($optionalArgs['alignmentTime']); - } - - if (isset($optionalArgs['order'])) { - $request->setOrder($optionalArgs['order']); - } - - if (isset($optionalArgs['pageSize'])) { - $request->setPageSize($optionalArgs['pageSize']); - } - - if (isset($optionalArgs['pageToken'])) { - $request->setPageToken($optionalArgs['pageToken']); - } - - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->getPagedListResponse('ListGroupStats', $optionalArgs, ListGroupStatsResponse::class, $request); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Gapic/ReportErrorsServiceGapicClient.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Gapic/ReportErrorsServiceGapicClient.php deleted file mode 100644 index f619f1c4d006..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/Gapic/ReportErrorsServiceGapicClient.php +++ /dev/null @@ -1,328 +0,0 @@ -projectName('[PROJECT]'); - * $event = new ReportedErrorEvent(); - * $response = $reportErrorsServiceClient->reportErrorEvent($formattedProjectName, $event); - * } finally { - * $reportErrorsServiceClient->close(); - * } - * ``` - * - * Many parameters require resource names to be formatted in a particular way. To - * assist with these names, this class includes a format method for each type of - * name, and additionally a parseName method to extract the individual identifiers - * contained within formatted names that are returned by the API. - * - * @experimental - * - * @deprecated Please use the new service client {@see \Google\Cloud\ErrorReporting\V1beta1\Client\ReportErrorsServiceClient}. - */ -class ReportErrorsServiceGapicClient -{ - use GapicClientTrait; - - /** The name of the service. */ - const SERVICE_NAME = 'google.devtools.clouderrorreporting.v1beta1.ReportErrorsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - const SERVICE_ADDRESS = 'clouderrorreporting.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'clouderrorreporting.UNIVERSE_DOMAIN'; - - /** The default port of the service. */ - const DEFAULT_SERVICE_PORT = 443; - - /** The name of the code generator, to be included in the agent header. */ - const CODEGEN_NAME = 'gapic'; - - /** The default scopes required by the service. */ - public static $serviceScopes = [ - 'https://www.googleapis.com/auth/cloud-platform', - ]; - - private static $projectNameTemplate; - - private static $pathTemplateMap; - - private static function getClientDefaults() - { - return [ - 'serviceName' => self::SERVICE_NAME, - 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, - 'clientConfig' => __DIR__ . '/../resources/report_errors_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/report_errors_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/report_errors_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/report_errors_service_rest_client_config.php', - ], - ], - ]; - } - - private static function getProjectNameTemplate() - { - if (self::$projectNameTemplate == null) { - self::$projectNameTemplate = new PathTemplate('projects/{project}'); - } - - return self::$projectNameTemplate; - } - - private static function getPathTemplateMap() - { - if (self::$pathTemplateMap == null) { - self::$pathTemplateMap = [ - 'project' => self::getProjectNameTemplate(), - ]; - } - - return self::$pathTemplateMap; - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - * - * @experimental - */ - public static function projectName($project) - { - return self::getProjectNameTemplate()->render([ - 'project' => $project, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - project: projects/{project} - * - * The optional $template argument can be supplied to specify a particular pattern, - * and must match one of the templates listed above. If no $template argument is - * provided, or if the $template argument does not match one of the templates - * listed, then parseName will check each of the supported templates, and return - * the first match. - * - * @param string $formattedName The formatted name string - * @param string $template Optional name of template to match - * - * @return array An associative array from name component IDs to component values. - * - * @throws ValidationException If $formattedName could not be matched. - * - * @experimental - */ - public static function parseName($formattedName, $template = null) - { - $templateMap = self::getPathTemplateMap(); - if ($template) { - if (!isset($templateMap[$template])) { - throw new ValidationException("Template name $template does not exist"); - } - - return $templateMap[$template]->match($formattedName); - } - - foreach ($templateMap as $templateName => $pathTemplate) { - try { - return $pathTemplate->match($formattedName); - } catch (ValidationException $ex) { - // Swallow the exception to continue trying other path templates - } - } - - throw new ValidationException("Input did not match any known format. Input: $formattedName"); - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'clouderrorreporting.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); - } - - /** - * Report an individual error event and record the event to a log. - * - * This endpoint accepts **either** an OAuth token, - * **or** an [API key](https://support.google.com/cloud/answer/6158862) - * for authentication. To use an API key, append it to the URL as the value of - * a `key` parameter. For example: - * - * `POST - * https://clouderrorreporting.googleapis.com/v1beta1/{projectName}/events:report?key=123ABC456` - * - * **Note:** [Error Reporting] (https://cloud.google.com/error-reporting) - * is a service built on Cloud Logging and can analyze log entries when all of - * the following are true: - * - * * Customer-managed encryption keys (CMEK) are disabled on the log bucket. - * * The log bucket satisfies one of the following: - * * The log bucket is stored in the same project where the logs - * originated. - * * The logs were routed to a project, and then that project stored those - * logs in a log bucket that it owns. - * - * Sample code: - * ``` - * $reportErrorsServiceClient = new ReportErrorsServiceClient(); - * try { - * $formattedProjectName = $reportErrorsServiceClient->projectName('[PROJECT]'); - * $event = new ReportedErrorEvent(); - * $response = $reportErrorsServiceClient->reportErrorEvent($formattedProjectName, $event); - * } finally { - * $reportErrorsServiceClient->close(); - * } - * ``` - * - * @param string $projectName Required. The resource name of the Google Cloud Platform project. Written - * as `projects/{projectId}`, where `{projectId}` is the - * [Google Cloud Platform project - * ID](https://support.google.com/cloud/answer/6158840). - * - * Example: // `projects/my-project-123`. - * @param ReportedErrorEvent $event Required. The error event to be reported. - * @param array $optionalArgs { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return \Google\Cloud\ErrorReporting\V1beta1\ReportErrorEventResponse - * - * @throws ApiException if the remote call fails - * - * @experimental - */ - public function reportErrorEvent($projectName, $event, array $optionalArgs = []) - { - $request = new ReportErrorEventRequest(); - $requestParamHeaders = []; - $request->setProjectName($projectName); - $request->setEvent($event); - $requestParamHeaders['project_name'] = $projectName; - $requestParams = new RequestParamsHeaderDescriptor($requestParamHeaders); - $optionalArgs['headers'] = isset($optionalArgs['headers']) ? array_merge($requestParams->getHeader(), $optionalArgs['headers']) : $requestParams->getHeader(); - return $this->startCall('ReportErrorEvent', ReportErrorEventResponse::class, $optionalArgs, $request)->wait(); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/ReportErrorsServiceClient.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/ReportErrorsServiceClient.php deleted file mode 100644 index d180aaa3358e..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/ReportErrorsServiceClient.php +++ /dev/null @@ -1,36 +0,0 @@ - [ - 'google.devtools.clouderrorreporting.v1beta1.ErrorGroupService' => [ - 'GetGroup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ErrorReporting\V1beta1\ErrorGroup', - 'headerParams' => [ - [ - 'keyName' => 'group_name', - 'fieldAccessors' => [ - 'getGroupName', - ], - ], - ], - ], - 'UpdateGroup' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ErrorReporting\V1beta1\ErrorGroup', - 'headerParams' => [ - [ - 'keyName' => 'group.name', - 'fieldAccessors' => [ - 'getGroup', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'errorGroup' => 'projects/{project}/groups/{group}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_group_service_rest_client_config.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_group_service_rest_client_config.php deleted file mode 100644 index 35d531ef1550..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_group_service_rest_client_config.php +++ /dev/null @@ -1,66 +0,0 @@ - [ - 'google.devtools.clouderrorreporting.v1beta1.ErrorGroupService' => [ - 'GetGroup' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{group_name=projects/*/groups/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{group_name=projects/*/locations/*/groups/*}', - ], - ], - 'placeholders' => [ - 'group_name' => [ - 'getters' => [ - 'getGroupName', - ], - ], - ], - ], - 'UpdateGroup' => [ - 'method' => 'put', - 'uriTemplate' => '/v1beta1/{group.name=projects/*/groups/*}', - 'body' => 'group', - 'additionalBindings' => [ - [ - 'method' => 'put', - 'uriTemplate' => '/v1beta1/{group.name=projects/*/locations/*/groups/*}', - 'body' => 'group', - ], - ], - 'placeholders' => [ - 'group.name' => [ - 'getters' => [ - 'getGroup', - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_client_config.json b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_client_config.json deleted file mode 100644 index 0a7501188091..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_client_config.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "interfaces": { - "google.devtools.clouderrorreporting.v1beta1.ErrorStatsService": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "DEADLINE_EXCEEDED" - ] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 100, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "DeleteEvents": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListEvents": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListGroupStats": { - "timeout_millis": 600000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_descriptor_config.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_descriptor_config.php deleted file mode 100644 index 9676fb120ec2..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_descriptor_config.php +++ /dev/null @@ -1,83 +0,0 @@ - [ - 'google.devtools.clouderrorreporting.v1beta1.ErrorStatsService' => [ - 'DeleteEvents' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ErrorReporting\V1beta1\DeleteEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_name', - 'fieldAccessors' => [ - 'getProjectName', - ], - ], - ], - ], - 'ListEvents' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getErrorEvents', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ErrorReporting\V1beta1\ListEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_name', - 'fieldAccessors' => [ - 'getProjectName', - ], - ], - ], - ], - 'ListGroupStats' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getErrorGroupStats', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\ErrorReporting\V1beta1\ListGroupStatsResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_name', - 'fieldAccessors' => [ - 'getProjectName', - ], - ], - ], - ], - 'templateMap' => [ - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_rest_client_config.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_rest_client_config.php deleted file mode 100644 index 1b28c08f8287..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/error_stats_service_rest_client_config.php +++ /dev/null @@ -1,86 +0,0 @@ - [ - 'google.devtools.clouderrorreporting.v1beta1.ErrorStatsService' => [ - 'DeleteEvents' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{project_name=projects/*}/events', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1beta1/{project_name=projects/*/locations/*}/events', - ], - ], - 'placeholders' => [ - 'project_name' => [ - 'getters' => [ - 'getProjectName', - ], - ], - ], - ], - 'ListEvents' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{project_name=projects/*}/events', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{project_name=projects/*/locations/*}/events', - 'queryParams' => [ - 'group_id', - ], - ], - ], - 'placeholders' => [ - 'project_name' => [ - 'getters' => [ - 'getProjectName', - ], - ], - ], - 'queryParams' => [ - 'group_id', - ], - ], - 'ListGroupStats' => [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{project_name=projects/*}/groupStats', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1beta1/{project_name=projects/*/locations/*}/groupStats', - ], - ], - 'placeholders' => [ - 'project_name' => [ - 'getters' => [ - 'getProjectName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_client_config.json b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_client_config.json deleted file mode 100644 index 701d5afb9615..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_client_config.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "interfaces": { - "google.devtools.clouderrorreporting.v1beta1.ReportErrorsService": { - "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": 600000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 600000, - "total_timeout_millis": 600000 - } - }, - "methods": { - "ReportErrorEvent": { - "timeout_millis": 600000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_descriptor_config.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_descriptor_config.php deleted file mode 100644 index 9d9ca105faaf..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_descriptor_config.php +++ /dev/null @@ -1,43 +0,0 @@ - [ - 'google.devtools.clouderrorreporting.v1beta1.ReportErrorsService' => [ - 'ReportErrorEvent' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\ErrorReporting\V1beta1\ReportErrorEventResponse', - 'headerParams' => [ - [ - 'keyName' => 'project_name', - 'fieldAccessors' => [ - 'getProjectName', - ], - ], - ], - ], - 'templateMap' => [ - 'project' => 'projects/{project}', - ], - ], - ], -]; diff --git a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_rest_client_config.php b/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_rest_client_config.php deleted file mode 100644 index d13830718190..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/src/V1beta1/resources/report_errors_service_rest_client_config.php +++ /dev/null @@ -1,41 +0,0 @@ - [ - 'google.devtools.clouderrorreporting.v1beta1.ReportErrorsService' => [ - 'ReportErrorEvent' => [ - 'method' => 'post', - 'uriTemplate' => '/v1beta1/{project_name=projects/*}/events:report', - 'body' => 'event', - 'placeholders' => [ - 'project_name' => [ - 'getters' => [ - 'getProjectName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ErrorGroupServiceClientTest.php b/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ErrorGroupServiceClientTest.php deleted file mode 100644 index 1b64a1b4b69c..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ErrorGroupServiceClientTest.php +++ /dev/null @@ -1,226 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ErrorGroupServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ErrorGroupServiceClient($options); - } - - /** @test */ - public function getGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $groupId = 'groupId506361563'; - $expectedResponse = new ErrorGroup(); - $expectedResponse->setName($name); - $expectedResponse->setGroupId($groupId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedGroupName = $gapicClient->errorGroupName('[PROJECT]', '[GROUP]'); - $request = (new GetGroupRequest()) - ->setGroupName($formattedGroupName); - $response = $gapicClient->getGroup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getGroupName(); - $this->assertProtobufEquals($formattedGroupName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedGroupName = $gapicClient->errorGroupName('[PROJECT]', '[GROUP]'); - $request = (new GetGroupRequest()) - ->setGroupName($formattedGroupName); - try { - $gapicClient->getGroup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $groupId = 'groupId506361563'; - $expectedResponse = new ErrorGroup(); - $expectedResponse->setName($name); - $expectedResponse->setGroupId($groupId); - $transport->addResponse($expectedResponse); - // Mock request - $group = new ErrorGroup(); - $request = (new UpdateGroupRequest()) - ->setGroup($group); - $response = $gapicClient->updateGroup($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getGroup(); - $this->assertProtobufEquals($group, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $group = new ErrorGroup(); - $request = (new UpdateGroupRequest()) - ->setGroup($group); - try { - $gapicClient->updateGroup($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGroupAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $groupId = 'groupId506361563'; - $expectedResponse = new ErrorGroup(); - $expectedResponse->setName($name); - $expectedResponse->setGroupId($groupId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedGroupName = $gapicClient->errorGroupName('[PROJECT]', '[GROUP]'); - $request = (new GetGroupRequest()) - ->setGroupName($formattedGroupName); - $response = $gapicClient->getGroupAsync($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.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getGroupName(); - $this->assertProtobufEquals($formattedGroupName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ErrorStatsServiceClientTest.php b/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ErrorStatsServiceClientTest.php deleted file mode 100644 index bbdfa03303bd..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ErrorStatsServiceClientTest.php +++ /dev/null @@ -1,307 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ErrorStatsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ErrorStatsServiceClient($options); - } - - /** @test */ - public function deleteEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DeleteEventsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $request = (new DeleteEventsRequest()) - ->setProjectName($formattedProjectName); - $response = $gapicClient->deleteEvents($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/DeleteEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectName(); - $this->assertProtobufEquals($formattedProjectName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $request = (new DeleteEventsRequest()) - ->setProjectName($formattedProjectName); - try { - $gapicClient->deleteEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $errorEventsElement = new ErrorEvent(); - $errorEvents = [ - $errorEventsElement, - ]; - $expectedResponse = new ListEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setErrorEvents($errorEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $groupId = 'groupId506361563'; - $request = (new ListEventsRequest()) - ->setProjectName($formattedProjectName) - ->setGroupId($groupId); - $response = $gapicClient->listEvents($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getErrorEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectName(); - $this->assertProtobufEquals($formattedProjectName, $actualValue); - $actualValue = $actualRequestObject->getGroupId(); - $this->assertProtobufEquals($groupId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $groupId = 'groupId506361563'; - $request = (new ListEventsRequest()) - ->setProjectName($formattedProjectName) - ->setGroupId($groupId); - try { - $gapicClient->listEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGroupStatsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $errorGroupStatsElement = new ErrorGroupStats(); - $errorGroupStats = [ - $errorGroupStatsElement, - ]; - $expectedResponse = new ListGroupStatsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setErrorGroupStats($errorGroupStats); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $request = (new ListGroupStatsRequest()) - ->setProjectName($formattedProjectName); - $response = $gapicClient->listGroupStats($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getErrorGroupStats()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListGroupStats', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectName(); - $this->assertProtobufEquals($formattedProjectName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGroupStatsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $request = (new ListGroupStatsRequest()) - ->setProjectName($formattedProjectName); - try { - $gapicClient->listGroupStats($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DeleteEventsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $request = (new DeleteEventsRequest()) - ->setProjectName($formattedProjectName); - $response = $gapicClient->deleteEventsAsync($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.devtools.clouderrorreporting.v1beta1.ErrorStatsService/DeleteEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectName(); - $this->assertProtobufEquals($formattedProjectName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ReportErrorsServiceClientTest.php b/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ReportErrorsServiceClientTest.php deleted file mode 100644 index 63209ba9881f..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/Client/ReportErrorsServiceClientTest.php +++ /dev/null @@ -1,175 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ReportErrorsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ReportErrorsServiceClient($options); - } - - /** @test */ - public function reportErrorEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ReportErrorEventResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $event = new ReportedErrorEvent(); - $eventServiceContext = new ServiceContext(); - $event->setServiceContext($eventServiceContext); - $eventMessage = 'eventMessage1863181325'; - $event->setMessage($eventMessage); - $request = (new ReportErrorEventRequest()) - ->setProjectName($formattedProjectName) - ->setEvent($event); - $response = $gapicClient->reportErrorEvent($request); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectName(); - $this->assertProtobufEquals($formattedProjectName, $actualValue); - $actualValue = $actualRequestObject->getEvent(); - $this->assertProtobufEquals($event, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reportErrorEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $event = new ReportedErrorEvent(); - $eventServiceContext = new ServiceContext(); - $event->setServiceContext($eventServiceContext); - $eventMessage = 'eventMessage1863181325'; - $event->setMessage($eventMessage); - $request = (new ReportErrorEventRequest()) - ->setProjectName($formattedProjectName) - ->setEvent($event); - try { - $gapicClient->reportErrorEvent($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reportErrorEventAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ReportErrorEventResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $event = new ReportedErrorEvent(); - $eventServiceContext = new ServiceContext(); - $event->setServiceContext($eventServiceContext); - $eventMessage = 'eventMessage1863181325'; - $event->setMessage($eventMessage); - $request = (new ReportErrorEventRequest()) - ->setProjectName($formattedProjectName) - ->setEvent($event); - $response = $gapicClient->reportErrorEventAsync($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.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectName(); - $this->assertProtobufEquals($formattedProjectName, $actualValue); - $actualValue = $actualRequestObject->getEvent(); - $this->assertProtobufEquals($event, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ErrorGroupServiceClientTest.php b/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ErrorGroupServiceClientTest.php deleted file mode 100644 index 9efc96914e5e..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ErrorGroupServiceClientTest.php +++ /dev/null @@ -1,185 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ErrorGroupServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ErrorGroupServiceClient($options); - } - - /** @test */ - public function getGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $groupId = 'groupId506361563'; - $expectedResponse = new ErrorGroup(); - $expectedResponse->setName($name); - $expectedResponse->setGroupId($groupId); - $transport->addResponse($expectedResponse); - // Mock request - $formattedGroupName = $gapicClient->errorGroupName('[PROJECT]', '[GROUP]'); - $response = $gapicClient->getGroup($formattedGroupName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/GetGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getGroupName(); - $this->assertProtobufEquals($formattedGroupName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedGroupName = $gapicClient->errorGroupName('[PROJECT]', '[GROUP]'); - try { - $gapicClient->getGroup($formattedGroupName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGroupTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $groupId = 'groupId506361563'; - $expectedResponse = new ErrorGroup(); - $expectedResponse->setName($name); - $expectedResponse->setGroupId($groupId); - $transport->addResponse($expectedResponse); - // Mock request - $group = new ErrorGroup(); - $response = $gapicClient->updateGroup($group); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ErrorGroupService/UpdateGroup', $actualFuncCall); - $actualValue = $actualRequestObject->getGroup(); - $this->assertProtobufEquals($group, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGroupExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $group = new ErrorGroup(); - try { - $gapicClient->updateGroup($group); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ErrorStatsServiceClientTest.php b/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ErrorStatsServiceClientTest.php deleted file mode 100644 index 7e5d9f83e846..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ErrorStatsServiceClientTest.php +++ /dev/null @@ -1,263 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ErrorStatsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ErrorStatsServiceClient($options); - } - - /** @test */ - public function deleteEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new DeleteEventsResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $response = $gapicClient->deleteEvents($formattedProjectName); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/DeleteEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectName(); - $this->assertProtobufEquals($formattedProjectName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - try { - $gapicClient->deleteEvents($formattedProjectName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $errorEventsElement = new ErrorEvent(); - $errorEvents = [ - $errorEventsElement, - ]; - $expectedResponse = new ListEventsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setErrorEvents($errorEvents); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $groupId = 'groupId506361563'; - $response = $gapicClient->listEvents($formattedProjectName, $groupId); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getErrorEvents()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListEvents', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectName(); - $this->assertProtobufEquals($formattedProjectName, $actualValue); - $actualValue = $actualRequestObject->getGroupId(); - $this->assertProtobufEquals($groupId, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $groupId = 'groupId506361563'; - try { - $gapicClient->listEvents($formattedProjectName, $groupId); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGroupStatsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $errorGroupStatsElement = new ErrorGroupStats(); - $errorGroupStats = [ - $errorGroupStatsElement, - ]; - $expectedResponse = new ListGroupStatsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setErrorGroupStats($errorGroupStats); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $response = $gapicClient->listGroupStats($formattedProjectName); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getErrorGroupStats()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ErrorStatsService/ListGroupStats', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectName(); - $this->assertProtobufEquals($formattedProjectName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGroupStatsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - try { - $gapicClient->listGroupStats($formattedProjectName); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ReportErrorsServiceClientTest.php b/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ReportErrorsServiceClientTest.php deleted file mode 100644 index cb525d650151..000000000000 --- a/owl-bot-staging/ErrorReporting/v1beta1/tests/Unit/V1beta1/ReportErrorsServiceClientTest.php +++ /dev/null @@ -1,133 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return ReportErrorsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new ReportErrorsServiceClient($options); - } - - /** @test */ - public function reportErrorEventTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new ReportErrorEventResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $event = new ReportedErrorEvent(); - $eventServiceContext = new ServiceContext(); - $event->setServiceContext($eventServiceContext); - $eventMessage = 'eventMessage1863181325'; - $event->setMessage($eventMessage); - $response = $gapicClient->reportErrorEvent($formattedProjectName, $event); - $this->assertEquals($expectedResponse, $response); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.devtools.clouderrorreporting.v1beta1.ReportErrorsService/ReportErrorEvent', $actualFuncCall); - $actualValue = $actualRequestObject->getProjectName(); - $this->assertProtobufEquals($formattedProjectName, $actualValue); - $actualValue = $actualRequestObject->getEvent(); - $this->assertProtobufEquals($event, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function reportErrorEventExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedProjectName = $gapicClient->projectName('[PROJECT]'); - $event = new ReportedErrorEvent(); - $eventServiceContext = new ServiceContext(); - $event->setServiceContext($eventServiceContext); - $eventMessage = 'eventMessage1863181325'; - $event->setMessage($eventMessage); - try { - $gapicClient->reportErrorEvent($formattedProjectName, $event); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/EssentialContacts/v1/proto/src/GPBMetadata/Google/Cloud/Essentialcontacts/V1/Enums.php b/owl-bot-staging/EssentialContacts/v1/proto/src/GPBMetadata/Google/Cloud/Essentialcontacts/V1/Enums.php deleted file mode 100644 index c480762058189a56b24d1d41d51902f012f564da..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1168 zcmb7D%Wj)M6s?`+b^8b+mAdI-tR{*RHCR@6q-kXXp{NvF0b5FiWMMpZkT8Q_h?G|O zq5eUCp+C`m|Dd~Gz@|~0sw$g-nRCxQ+&SmXyZADOmqe!#O*~E~WPDBdB_(mfIP+OZ z#@TdA6XLUZ9E3EH2vK{)>N!MH4X1&nDa#U{%4EjaETkb3ZfwI9(=|>IweytOet2bVy9W;^MFMpFX%-+Z61=6Gso`53@30( zma_W!P;elw5pkMCUg)Yc^^+jxEa@XumS>b#qs(`jhl{p3T`(ohQll)dh&&}c$>{Cw zgd~(_Npw=^&IxX+w?f(R+hC!iGnrIv&+wX>6)-P5fFBRx_`mK)Y?N@RxK3&1I;E@j z(YG2rvltJifsb=%k%Io2vE*9ZhXxwNI5U)vWAv;ME}GsuzZeZHyRRvDpsB(GaTC@$ zrYY3LrvUZ>8$NSh}z&Zo|5% z>A1fo?!r$0yr&KnXEf-m*wGfY#pkeF)s75HF;vZRYyplwz|Iiufu2L*Hu{E&1YQg~ zrh%ooX4^rEJA$!Wfe>oB3d1Tt>fK*8*vEWG{~TEt3fC4k>eoKm<#3l}Y~Gr&dy?bD zK^~sFVTi{k_w0SGH}oPyQjsC4%8;@MqBLxOUt-)v(EcQCiE=S&KkIuXl`I!rvb;hj f%ft3~qe%4YgUWNSN-N)T{$E{RAWMVazzx7}k9Kkv diff --git a/owl-bot-staging/EssentialContacts/v1/proto/src/GPBMetadata/Google/Cloud/Essentialcontacts/V1/Service.php b/owl-bot-staging/EssentialContacts/v1/proto/src/GPBMetadata/Google/Cloud/Essentialcontacts/V1/Service.php deleted file mode 100644 index cd7ede5d98f6..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/GPBMetadata/Google/Cloud/Essentialcontacts/V1/Service.php +++ /dev/null @@ -1,86 +0,0 @@ -internalAddGeneratedFile( - ' -š" -/google/cloud/essentialcontacts/v1/service.proto!google.cloud.essentialcontacts.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto-google/cloud/essentialcontacts/v1/enums.protogoogle/protobuf/empty.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"ê -Contact -name ( BàA -email ( BàAi -#notification_category_subscriptions (27.google.cloud.essentialcontacts.v1.NotificationCategoryBàA - language_tag ( BàAQ -validation_state (22.google.cloud.essentialcontacts.v1.ValidationStateBàA1 - validate_time ( 2.google.protobuf.Timestamp:«êA§ -(essentialcontacts.googleapis.com/Contact%projects/{project}/contacts/{contact}#folders/{folder}/contacts/{contact}/organizations/{organization}/contacts/{contact}"ˆ -ListContactsRequest@ -parent ( B0àAúA*(essentialcontacts.googleapis.com/Contact - page_size (BàA - -page_token ( BàA"m -ListContactsResponse< -contacts ( 2*.google.cloud.essentialcontacts.v1.Contact -next_page_token ( "S -GetContactRequest> -name ( B0àAúA* -(essentialcontacts.googleapis.com/Contact"V -DeleteContactRequest> -name ( B0àAúA* -(essentialcontacts.googleapis.com/Contact"š -CreateContactRequest@ -parent ( B0àAúA*(essentialcontacts.googleapis.com/Contact@ -contact ( 2*.google.cloud.essentialcontacts.v1.ContactBàA"Ž -UpdateContactRequest@ -contact ( 2*.google.cloud.essentialcontacts.v1.ContactBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA"å -ComputeContactsRequest@ -parent ( B0àAúA*(essentialcontacts.googleapis.com/ContactX -notification_categories (27.google.cloud.essentialcontacts.v1.NotificationCategory - page_size (BàA - -page_token ( BàA"p -ComputeContactsResponse< -contacts ( 2*.google.cloud.essentialcontacts.v1.Contact -next_page_token ( "ý -SendTestMessageRequestB -contacts ( B0àAúA* -(essentialcontacts.googleapis.com/ContactB -resource ( B0àAúA*(essentialcontacts.googleapis.com/Contact[ -notification_category (27.google.cloud.essentialcontacts.v1.NotificationCategoryBàA2Ë -EssentialContactsService˜ - CreateContact7.google.cloud.essentialcontacts.v1.CreateContactRequest*.google.cloud.essentialcontacts.v1.Contact"¡ÚAparent,contact‚Ó䓉" /v1/{parent=projects/*}/contacts:contactZ*"/v1/{parent=folders/*}/contacts:contactZ0"%/v1/{parent=organizations/*}/contacts:contactµ - UpdateContact7.google.cloud.essentialcontacts.v1.UpdateContactRequest*.google.cloud.essentialcontacts.v1.Contact"¾ÚAcontact,update_mask‚Óä“¡2(/v1/{contact.name=projects/*/contacts/*}:contactZ22\'/v1/{contact.name=folders/*/contacts/*}:contactZ82-/v1/{contact.name=organizations/*/contacts/*}:contactþ - ListContacts6.google.cloud.essentialcontacts.v1.ListContactsRequest7.google.cloud.essentialcontacts.v1.ListContactsResponse"}ÚAparent‚Óä“n /v1/{parent=projects/*}/contactsZ!/v1/{parent=folders/*}/contactsZ\'%/v1/{parent=organizations/*}/contactsë - -GetContact4.google.cloud.essentialcontacts.v1.GetContactRequest*.google.cloud.essentialcontacts.v1.Contact"{ÚAname‚Óä“n /v1/{name=projects/*/contacts/*}Z!/v1/{name=folders/*/contacts/*}Z\'%/v1/{name=organizations/*/contacts/*}Ý - DeleteContact7.google.cloud.essentialcontacts.v1.DeleteContactRequest.google.protobuf.Empty"{ÚAname‚Óä“n* /v1/{name=projects/*/contacts/*}Z!*/v1/{name=folders/*/contacts/*}Z\'*%/v1/{name=organizations/*/contacts/*}˜ -ComputeContacts9.google.cloud.essentialcontacts.v1.ComputeContactsRequest:.google.cloud.essentialcontacts.v1.ComputeContactsResponse"‚Ó䓆(/v1/{parent=projects/*}/contacts:computeZ)\'/v1/{parent=folders/*}/contacts:computeZ/-/v1/{parent=organizations/*}/contacts:compute› -SendTestMessage9.google.cloud.essentialcontacts.v1.SendTestMessageRequest.google.protobuf.Empty"´‚Óä“­"2/v1/{resource=projects/*}/contacts:sendTestMessage:*Z6"1/v1/{resource=folders/*}/contacts:sendTestMessage:*Z<"7/v1/{resource=organizations/*}/contacts:sendTestMessage:*TÊA essentialcontacts.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformBí -%com.google.cloud.essentialcontacts.v1PZScloud.google.com/go/essentialcontacts/apiv1/essentialcontactspb;essentialcontactspbª!Google.Cloud.EssentialContacts.V1Ê!Google\\Cloud\\EssentialContacts\\V1ê$Google::Cloud::EssentialContacts::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ComputeContactsRequest.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ComputeContactsRequest.php deleted file mode 100644 index a00eed430a0d..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ComputeContactsRequest.php +++ /dev/null @@ -1,209 +0,0 @@ -google.cloud.essentialcontacts.v1.ComputeContactsRequest - */ -class ComputeContactsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the resource to compute contacts for. - * Format: organizations/{organization_id}, - * folders/{folder_id} or projects/{project_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The categories of notifications to compute contacts for. If ALL is included - * in this list, contacts subscribed to any notification category will be - * returned. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - */ - private $notification_categories; - /** - * Optional. The maximum number of results to return from this request. - * Non-positive values are ignored. The presence of `next_page_token` in the - * response indicates that more results might be available. - * If not specified, the default page_size is 100. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. If present, retrieves the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of other method - * parameters should be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The name of the resource to compute contacts for. - * Format: organizations/{organization_id}, - * folders/{folder_id} or projects/{project_id} - * @type array|\Google\Protobuf\Internal\RepeatedField $notification_categories - * The categories of notifications to compute contacts for. If ALL is included - * in this list, contacts subscribed to any notification category will be - * returned. - * @type int $page_size - * Optional. The maximum number of results to return from this request. - * Non-positive values are ignored. The presence of `next_page_token` in the - * response indicates that more results might be available. - * If not specified, the default page_size is 100. - * @type string $page_token - * Optional. If present, retrieves the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of other method - * parameters should be identical to those in the previous call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Essentialcontacts\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the resource to compute contacts for. - * Format: organizations/{organization_id}, - * folders/{folder_id} or projects/{project_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The name of the resource to compute contacts for. - * Format: organizations/{organization_id}, - * folders/{folder_id} or projects/{project_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * The categories of notifications to compute contacts for. If ALL is included - * in this list, contacts subscribed to any notification category will be - * returned. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNotificationCategories() - { - return $this->notification_categories; - } - - /** - * The categories of notifications to compute contacts for. If ALL is included - * in this list, contacts subscribed to any notification category will be - * returned. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNotificationCategories($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\EssentialContacts\V1\NotificationCategory::class); - $this->notification_categories = $arr; - - return $this; - } - - /** - * Optional. The maximum number of results to return from this request. - * Non-positive values are ignored. The presence of `next_page_token` in the - * response indicates that more results might be available. - * If not specified, the default page_size is 100. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * Optional. The maximum number of results to return from this request. - * Non-positive values are ignored. The presence of `next_page_token` in the - * response indicates that more results might be available. - * If not specified, the default page_size is 100. - * - * Generated from protobuf field int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * Optional. If present, retrieves the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of other method - * parameters should be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. If present, retrieves the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of other method - * parameters should be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ComputeContactsResponse.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ComputeContactsResponse.php deleted file mode 100644 index 3bd97e666fdd..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ComputeContactsResponse.php +++ /dev/null @@ -1,121 +0,0 @@ -google.cloud.essentialcontacts.v1.ComputeContactsResponse - */ -class ComputeContactsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * All contacts for the resource that are subscribed to the specified - * notification categories, including contacts inherited from any parent - * resources. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; - */ - private $contacts; - /** - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token` and the - * rest of the parameters the same as the original request. - * - * 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\EssentialContacts\V1\Contact>|\Google\Protobuf\Internal\RepeatedField $contacts - * All contacts for the resource that are subscribed to the specified - * notification categories, including contacts inherited from any parent - * resources. - * @type string $next_page_token - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token` and the - * rest of the parameters the same as the original request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Essentialcontacts\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * All contacts for the resource that are subscribed to the specified - * notification categories, including contacts inherited from any parent - * resources. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContacts() - { - return $this->contacts; - } - - /** - * All contacts for the resource that are subscribed to the specified - * notification categories, including contacts inherited from any parent - * resources. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; - * @param array<\Google\Cloud\EssentialContacts\V1\Contact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EssentialContacts\V1\Contact::class); - $this->contacts = $arr; - - return $this; - } - - /** - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token` and the - * rest of the parameters the same as the original request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token` and the - * rest of the parameters the same as the original request. - * - * 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/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/Contact.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/Contact.php deleted file mode 100644 index 7c3a10ac5fa8..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/Contact.php +++ /dev/null @@ -1,283 +0,0 @@ -google.cloud.essentialcontacts.v1.Contact - */ -class Contact extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The identifier for the contact. - * Format: {resource_type}/{resource_id}/contacts/{contact_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Required. The email address to send notifications to. The email address - * does not need to be a Google Account. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $email = ''; - /** - * Required. The categories of notifications that the contact will receive - * communications for. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - private $notification_category_subscriptions; - /** - * Required. The preferred language for notifications, as a ISO 639-1 language - * code. See [Supported - * languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) - * for a list of supported languages. - * - * Generated from protobuf field string language_tag = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $language_tag = ''; - /** - * Output only. The validity of the contact. A contact is considered valid if - * it is the correct recipient for notifications for a particular resource. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $validation_state = 0; - /** - * The last time the validation_state was updated, either manually or - * automatically. A contact is considered stale if its validation state was - * updated more than 1 year ago. - * - * Generated from protobuf field .google.protobuf.Timestamp validate_time = 9; - */ - protected $validate_time = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. The identifier for the contact. - * Format: {resource_type}/{resource_id}/contacts/{contact_id} - * @type string $email - * Required. The email address to send notifications to. The email address - * does not need to be a Google Account. - * @type array|\Google\Protobuf\Internal\RepeatedField $notification_category_subscriptions - * Required. The categories of notifications that the contact will receive - * communications for. - * @type string $language_tag - * Required. The preferred language for notifications, as a ISO 639-1 language - * code. See [Supported - * languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) - * for a list of supported languages. - * @type int $validation_state - * Output only. The validity of the contact. A contact is considered valid if - * it is the correct recipient for notifications for a particular resource. - * @type \Google\Protobuf\Timestamp $validate_time - * The last time the validation_state was updated, either manually or - * automatically. A contact is considered stale if its validation state was - * updated more than 1 year ago. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Essentialcontacts\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The identifier for the contact. - * Format: {resource_type}/{resource_id}/contacts/{contact_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. The identifier for the contact. - * Format: {resource_type}/{resource_id}/contacts/{contact_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 email address to send notifications to. The email address - * does not need to be a Google Account. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEmail() - { - return $this->email; - } - - /** - * Required. The email address to send notifications to. The email address - * does not need to be a Google Account. - * - * Generated from protobuf field string email = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEmail($var) - { - GPBUtil::checkString($var, True); - $this->email = $var; - - return $this; - } - - /** - * Required. The categories of notifications that the contact will receive - * communications for. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getNotificationCategorySubscriptions() - { - return $this->notification_category_subscriptions; - } - - /** - * Required. The categories of notifications that the contact will receive - * communications for. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setNotificationCategorySubscriptions($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Cloud\EssentialContacts\V1\NotificationCategory::class); - $this->notification_category_subscriptions = $arr; - - return $this; - } - - /** - * Required. The preferred language for notifications, as a ISO 639-1 language - * code. See [Supported - * languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) - * for a list of supported languages. - * - * Generated from protobuf field string language_tag = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLanguageTag() - { - return $this->language_tag; - } - - /** - * Required. The preferred language for notifications, as a ISO 639-1 language - * code. See [Supported - * languages](https://cloud.google.com/resource-manager/docs/managing-notification-contacts#supported-languages) - * for a list of supported languages. - * - * Generated from protobuf field string language_tag = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLanguageTag($var) - { - GPBUtil::checkString($var, True); - $this->language_tag = $var; - - return $this; - } - - /** - * Output only. The validity of the contact. A contact is considered valid if - * it is the correct recipient for notifications for a particular resource. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getValidationState() - { - return $this->validation_state; - } - - /** - * Output only. The validity of the contact. A contact is considered valid if - * it is the correct recipient for notifications for a particular resource. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setValidationState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\EssentialContacts\V1\ValidationState::class); - $this->validation_state = $var; - - return $this; - } - - /** - * The last time the validation_state was updated, either manually or - * automatically. A contact is considered stale if its validation state was - * updated more than 1 year ago. - * - * Generated from protobuf field .google.protobuf.Timestamp validate_time = 9; - * @return \Google\Protobuf\Timestamp|null - */ - public function getValidateTime() - { - return $this->validate_time; - } - - public function hasValidateTime() - { - return isset($this->validate_time); - } - - public function clearValidateTime() - { - unset($this->validate_time); - } - - /** - * The last time the validation_state was updated, either manually or - * automatically. A contact is considered stale if its validation state was - * updated more than 1 year ago. - * - * Generated from protobuf field .google.protobuf.Timestamp validate_time = 9; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setValidateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->validate_time = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/CreateContactRequest.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/CreateContactRequest.php deleted file mode 100644 index aa04a1644f45..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/CreateContactRequest.php +++ /dev/null @@ -1,142 +0,0 @@ -google.cloud.essentialcontacts.v1.CreateContactRequest - */ -class CreateContactRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource to save this contact for. - * Format: organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The contact to create. Must specify an email address and language - * tag. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $contact = null; - - /** - * @param string $parent Required. The resource to save this contact for. - * Format: organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * Please see {@see EssentialContactsServiceClient::projectName()} for help formatting this field. - * @param \Google\Cloud\EssentialContacts\V1\Contact $contact Required. The contact to create. Must specify an email address and language - * tag. - * - * @return \Google\Cloud\EssentialContacts\V1\CreateContactRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\EssentialContacts\V1\Contact $contact): self - { - return (new self()) - ->setParent($parent) - ->setContact($contact); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The resource to save this contact for. - * Format: organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * @type \Google\Cloud\EssentialContacts\V1\Contact $contact - * Required. The contact to create. Must specify an email address and language - * tag. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Essentialcontacts\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource to save this contact for. - * Format: organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The resource to save this contact for. - * Format: organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Required. The contact to create. Must specify an email address and language - * tag. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\EssentialContacts\V1\Contact|null - */ - public function getContact() - { - return $this->contact; - } - - public function hasContact() - { - return isset($this->contact); - } - - public function clearContact() - { - unset($this->contact); - } - - /** - * Required. The contact to create. Must specify an email address and language - * tag. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\EssentialContacts\V1\Contact $var - * @return $this - */ - public function setContact($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EssentialContacts\V1\Contact::class); - $this->contact = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/DeleteContactRequest.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/DeleteContactRequest.php deleted file mode 100644 index f07753c9588d..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/DeleteContactRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.essentialcontacts.v1.DeleteContactRequest - */ -class DeleteContactRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the contact to delete. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the contact to delete. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * Please see {@see EssentialContactsServiceClient::contactName()} for help formatting this field. - * - * @return \Google\Cloud\EssentialContacts\V1\DeleteContactRequest - * - * @experimental - */ - public static function 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 contact to delete. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Essentialcontacts\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the contact to delete. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the contact to delete. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_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/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/GetContactRequest.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/GetContactRequest.php deleted file mode 100644 index dbdbff500ad2..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/GetContactRequest.php +++ /dev/null @@ -1,96 +0,0 @@ -google.cloud.essentialcontacts.v1.GetContactRequest - */ -class GetContactRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the contact to retrieve. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - - /** - * @param string $name Required. The name of the contact to retrieve. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * Please see {@see EssentialContactsServiceClient::contactName()} for help formatting this field. - * - * @return \Google\Cloud\EssentialContacts\V1\GetContactRequest - * - * @experimental - */ - public static function 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 contact to retrieve. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Essentialcontacts\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the contact to retrieve. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the contact to retrieve. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_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/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ListContactsRequest.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ListContactsRequest.php deleted file mode 100644 index 4cb6c56e7bb4..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ListContactsRequest.php +++ /dev/null @@ -1,183 +0,0 @@ -google.cloud.essentialcontacts.v1.ListContactsRequest - */ -class ListContactsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent resource name. - * Format: organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of results to return from this request. - * Non-positive values are ignored. The presence of `next_page_token` in the - * response indicates that more results might be available. - * If not specified, the default page_size is 100. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. If present, retrieves the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of other method - * parameters should be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent resource name. - * Format: organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * Please see {@see EssentialContactsServiceClient::projectName()} for help formatting this field. - * - * @return \Google\Cloud\EssentialContacts\V1\ListContactsRequest - * - * @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 name. - * Format: organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * @type int $page_size - * Optional. The maximum number of results to return from this request. - * Non-positive values are ignored. The presence of `next_page_token` in the - * response indicates that more results might be available. - * If not specified, the default page_size is 100. - * @type string $page_token - * Optional. If present, retrieves the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of other method - * parameters should be identical to those in the previous call. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Essentialcontacts\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent resource name. - * Format: organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getParent() - { - return $this->parent; - } - - /** - * Required. The parent resource name. - * Format: organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setParent($var) - { - GPBUtil::checkString($var, True); - $this->parent = $var; - - return $this; - } - - /** - * Optional. The maximum number of results to return from this request. - * Non-positive values are ignored. The presence of `next_page_token` in the - * response indicates that more results might be available. - * If not specified, the default page_size 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. The maximum number of results to return from this request. - * Non-positive values are ignored. The presence of `next_page_token` in the - * response indicates that more results might be available. - * If not specified, the default page_size 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. If present, retrieves the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of other method - * parameters should be identical to those in the previous call. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. If present, retrieves the next batch of results from the - * preceding call to this method. `page_token` must be the value of - * `next_page_token` from the previous response. The values of other method - * parameters should be identical to those in the previous 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/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ListContactsResponse.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ListContactsResponse.php deleted file mode 100644 index 7d094531e0d4..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ListContactsResponse.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.essentialcontacts.v1.ListContactsResponse - */ -class ListContactsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The contacts for the specified resource. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; - */ - private $contacts; - /** - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token` and the - * rest of the parameters the same as the original request. - * - * 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\EssentialContacts\V1\Contact>|\Google\Protobuf\Internal\RepeatedField $contacts - * The contacts for the specified resource. - * @type string $next_page_token - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token` and the - * rest of the parameters the same as the original request. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Essentialcontacts\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * The contacts for the specified resource. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContacts() - { - return $this->contacts; - } - - /** - * The contacts for the specified resource. - * - * Generated from protobuf field repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; - * @param array<\Google\Cloud\EssentialContacts\V1\Contact>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\EssentialContacts\V1\Contact::class); - $this->contacts = $arr; - - return $this; - } - - /** - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token` and the - * rest of the parameters the same as the original request. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * If there are more results than those appearing in this response, then - * `next_page_token` is included. To get the next set of results, call this - * method again using the value of `next_page_token` as `page_token` and the - * rest of the parameters the same as the original request. - * - * 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/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/NotificationCategory.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/NotificationCategory.php deleted file mode 100644 index 4839f5697d55..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/NotificationCategory.php +++ /dev/null @@ -1,113 +0,0 @@ -google.cloud.essentialcontacts.v1.NotificationCategory - */ -class NotificationCategory -{ - /** - * Notification category is unrecognized or unspecified. - * - * Generated from protobuf enum NOTIFICATION_CATEGORY_UNSPECIFIED = 0; - */ - const NOTIFICATION_CATEGORY_UNSPECIFIED = 0; - /** - * All notifications related to the resource, including notifications - * pertaining to categories added in the future. - * - * Generated from protobuf enum ALL = 2; - */ - const ALL = 2; - /** - * Notifications related to imminent account suspension. - * - * Generated from protobuf enum SUSPENSION = 3; - */ - const SUSPENSION = 3; - /** - * Notifications related to security/privacy incidents, notifications, and - * vulnerabilities. - * - * Generated from protobuf enum SECURITY = 5; - */ - const SECURITY = 5; - /** - * Notifications related to technical events and issues such as outages, - * errors, or bugs. - * - * Generated from protobuf enum TECHNICAL = 6; - */ - const TECHNICAL = 6; - /** - * Notifications related to billing and payments notifications, price updates, - * errors, or credits. - * - * Generated from protobuf enum BILLING = 7; - */ - const BILLING = 7; - /** - * Notifications related to enforcement actions, regulatory compliance, or - * government notices. - * - * Generated from protobuf enum LEGAL = 8; - */ - const LEGAL = 8; - /** - * Notifications related to new versions, product terms updates, or - * deprecations. - * - * Generated from protobuf enum PRODUCT_UPDATES = 9; - */ - const PRODUCT_UPDATES = 9; - /** - * Child category of TECHNICAL. If assigned, technical incident notifications - * will go to these contacts instead of TECHNICAL. - * - * Generated from protobuf enum TECHNICAL_INCIDENTS = 10; - */ - const TECHNICAL_INCIDENTS = 10; - - private static $valueToName = [ - self::NOTIFICATION_CATEGORY_UNSPECIFIED => 'NOTIFICATION_CATEGORY_UNSPECIFIED', - self::ALL => 'ALL', - self::SUSPENSION => 'SUSPENSION', - self::SECURITY => 'SECURITY', - self::TECHNICAL => 'TECHNICAL', - self::BILLING => 'BILLING', - self::LEGAL => 'LEGAL', - self::PRODUCT_UPDATES => 'PRODUCT_UPDATES', - self::TECHNICAL_INCIDENTS => 'TECHNICAL_INCIDENTS', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/SendTestMessageRequest.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/SendTestMessageRequest.php deleted file mode 100644 index e756f41f0c33..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/SendTestMessageRequest.php +++ /dev/null @@ -1,167 +0,0 @@ -google.cloud.essentialcontacts.v1.SendTestMessageRequest - */ -class SendTestMessageRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The list of names of the contacts to send a test message to. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * - * Generated from protobuf field repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - private $contacts; - /** - * Required. The name of the resource to send the test message for. All - * contacts must either be set directly on this resource or inherited from - * another resource that is an ancestor of this one. Format: - * organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * - * Generated from protobuf field string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $resource = ''; - /** - * Required. The notification category to send the test message for. All - * contacts must be subscribed to this category. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $notification_category = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type array|\Google\Protobuf\Internal\RepeatedField $contacts - * Required. The list of names of the contacts to send a test message to. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * @type string $resource - * Required. The name of the resource to send the test message for. All - * contacts must either be set directly on this resource or inherited from - * another resource that is an ancestor of this one. Format: - * organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * @type int $notification_category - * Required. The notification category to send the test message for. All - * contacts must be subscribed to this category. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Essentialcontacts\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The list of names of the contacts to send a test message to. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * - * Generated from protobuf field repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getContacts() - { - return $this->contacts; - } - - /** - * Required. The list of names of the contacts to send a test message to. - * Format: organizations/{organization_id}/contacts/{contact_id}, - * folders/{folder_id}/contacts/{contact_id} or - * projects/{project_id}/contacts/{contact_id} - * - * Generated from protobuf field repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setContacts($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->contacts = $arr; - - return $this; - } - - /** - * Required. The name of the resource to send the test message for. All - * contacts must either be set directly on this resource or inherited from - * another resource that is an ancestor of this one. Format: - * organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * - * Generated from protobuf field string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getResource() - { - return $this->resource; - } - - /** - * Required. The name of the resource to send the test message for. All - * contacts must either be set directly on this resource or inherited from - * another resource that is an ancestor of this one. Format: - * organizations/{organization_id}, folders/{folder_id} or - * projects/{project_id} - * - * Generated from protobuf field string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setResource($var) - { - GPBUtil::checkString($var, True); - $this->resource = $var; - - return $this; - } - - /** - * Required. The notification category to send the test message for. All - * contacts must be subscribed to this category. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return int - */ - public function getNotificationCategory() - { - return $this->notification_category; - } - - /** - * Required. The notification category to send the test message for. All - * contacts must be subscribed to this category. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param int $var - * @return $this - */ - public function setNotificationCategory($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\EssentialContacts\V1\NotificationCategory::class); - $this->notification_category = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/UpdateContactRequest.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/UpdateContactRequest.php deleted file mode 100644 index 33f95f31b4a2..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/UpdateContactRequest.php +++ /dev/null @@ -1,151 +0,0 @@ -google.cloud.essentialcontacts.v1.UpdateContactRequest - */ -class UpdateContactRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The contact resource to replace the existing saved contact. Note: - * the email address of the contact cannot be modified. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $contact = null; - /** - * Optional. The update mask applied to the resource. For the `FieldMask` - * definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\EssentialContacts\V1\Contact $contact Required. The contact resource to replace the existing saved contact. Note: - * the email address of the contact cannot be modified. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The update mask applied to the resource. For the `FieldMask` - * definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * @return \Google\Cloud\EssentialContacts\V1\UpdateContactRequest - * - * @experimental - */ - public static function build(\Google\Cloud\EssentialContacts\V1\Contact $contact, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setContact($contact) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\EssentialContacts\V1\Contact $contact - * Required. The contact resource to replace the existing saved contact. Note: - * the email address of the contact cannot be modified. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The update mask applied to the resource. For the `FieldMask` - * definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Essentialcontacts\V1\Service::initOnce(); - parent::__construct($data); - } - - /** - * Required. The contact resource to replace the existing saved contact. Note: - * the email address of the contact cannot be modified. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\EssentialContacts\V1\Contact|null - */ - public function getContact() - { - return $this->contact; - } - - public function hasContact() - { - return isset($this->contact); - } - - public function clearContact() - { - unset($this->contact); - } - - /** - * Required. The contact resource to replace the existing saved contact. Note: - * the email address of the contact cannot be modified. - * - * Generated from protobuf field .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\EssentialContacts\V1\Contact $var - * @return $this - */ - public function setContact($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\EssentialContacts\V1\Contact::class); - $this->contact = $var; - - return $this; - } - - /** - * Optional. The update mask applied to the resource. For the `FieldMask` - * definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * 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. The update mask applied to the resource. For the `FieldMask` - * definition, see - * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - * - * 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/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ValidationState.php b/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ValidationState.php deleted file mode 100644 index d1085febe567..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/proto/src/Google/Cloud/EssentialContacts/V1/ValidationState.php +++ /dev/null @@ -1,64 +0,0 @@ -google.cloud.essentialcontacts.v1.ValidationState - */ -class ValidationState -{ - /** - * The validation state is unknown or unspecified. - * - * Generated from protobuf enum VALIDATION_STATE_UNSPECIFIED = 0; - */ - const VALIDATION_STATE_UNSPECIFIED = 0; - /** - * The contact is marked as valid. This is usually done manually by the - * contact admin. All new contacts begin in the valid state. - * - * Generated from protobuf enum VALID = 1; - */ - const VALID = 1; - /** - * The contact is considered invalid. This may become the state if the - * contact's email is found to be unreachable. - * - * Generated from protobuf enum INVALID = 2; - */ - const INVALID = 2; - - private static $valueToName = [ - self::VALIDATION_STATE_UNSPECIFIED => 'VALIDATION_STATE_UNSPECIFIED', - self::VALID => 'VALID', - self::INVALID => 'INVALID', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __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/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/compute_contacts.php b/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/compute_contacts.php deleted file mode 100644 index 86aaf4e106cc..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/compute_contacts.php +++ /dev/null @@ -1,80 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $essentialContactsServiceClient->computeContacts($request); - - /** @var Contact $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 = EssentialContactsServiceClient::projectName('[PROJECT]'); - - compute_contacts_sample($formattedParent); -} -// [END essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_sync] diff --git a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/create_contact.php b/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/create_contact.php deleted file mode 100644 index 8ad1dbc0a19f..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/create_contact.php +++ /dev/null @@ -1,100 +0,0 @@ -setEmail($contactEmail) - ->setNotificationCategorySubscriptions($contactNotificationCategorySubscriptions) - ->setLanguageTag($contactLanguageTag); - $request = (new CreateContactRequest()) - ->setParent($formattedParent) - ->setContact($contact); - - // Call the API and handle any network failures. - try { - /** @var Contact $response */ - $response = $essentialContactsServiceClient->createContact($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedParent = EssentialContactsServiceClient::projectName('[PROJECT]'); - $contactEmail = '[EMAIL]'; - $contactNotificationCategorySubscriptionsElement = NotificationCategory::NOTIFICATION_CATEGORY_UNSPECIFIED; - $contactLanguageTag = '[LANGUAGE_TAG]'; - - create_contact_sample( - $formattedParent, - $contactEmail, - $contactNotificationCategorySubscriptionsElement, - $contactLanguageTag - ); -} -// [END essentialcontacts_v1_generated_EssentialContactsService_CreateContact_sync] diff --git a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/delete_contact.php b/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/delete_contact.php deleted file mode 100644 index 12a2b1f1b086..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/delete_contact.php +++ /dev/null @@ -1,72 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - $essentialContactsServiceClient->deleteContact($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 = EssentialContactsServiceClient::contactName('[PROJECT]', '[CONTACT]'); - - delete_contact_sample($formattedName); -} -// [END essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_sync] diff --git a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/get_contact.php b/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/get_contact.php deleted file mode 100644 index 63b085230109..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/get_contact.php +++ /dev/null @@ -1,74 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Contact $response */ - $response = $essentialContactsServiceClient->getContact($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EssentialContactsServiceClient::contactName('[PROJECT]', '[CONTACT]'); - - get_contact_sample($formattedName); -} -// [END essentialcontacts_v1_generated_EssentialContactsService_GetContact_sync] diff --git a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/list_contacts.php b/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/list_contacts.php deleted file mode 100644 index 630c13b5d844..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/list_contacts.php +++ /dev/null @@ -1,78 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $essentialContactsServiceClient->listContacts($request); - - /** @var Contact $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 = EssentialContactsServiceClient::projectName('[PROJECT]'); - - list_contacts_sample($formattedParent); -} -// [END essentialcontacts_v1_generated_EssentialContactsService_ListContacts_sync] diff --git a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/send_test_message.php b/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/send_test_message.php deleted file mode 100644 index 1b325fc93544..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/send_test_message.php +++ /dev/null @@ -1,90 +0,0 @@ -setContacts($formattedContacts) - ->setResource($formattedResource) - ->setNotificationCategory($notificationCategory); - - // Call the API and handle any network failures. - try { - $essentialContactsServiceClient->sendTestMessage($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 -{ - $formattedContactsElement = EssentialContactsServiceClient::contactName('[PROJECT]', '[CONTACT]'); - $formattedResource = EssentialContactsServiceClient::projectName('[PROJECT]'); - $notificationCategory = NotificationCategory::NOTIFICATION_CATEGORY_UNSPECIFIED; - - send_test_message_sample($formattedContactsElement, $formattedResource, $notificationCategory); -} -// [END essentialcontacts_v1_generated_EssentialContactsService_SendTestMessage_sync] diff --git a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/update_contact.php b/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/update_contact.php deleted file mode 100644 index 8f0dc77bc9e7..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/samples/V1/EssentialContactsServiceClient/update_contact.php +++ /dev/null @@ -1,93 +0,0 @@ -setEmail($contactEmail) - ->setNotificationCategorySubscriptions($contactNotificationCategorySubscriptions) - ->setLanguageTag($contactLanguageTag); - $request = (new UpdateContactRequest()) - ->setContact($contact); - - // Call the API and handle any network failures. - try { - /** @var Contact $response */ - $response = $essentialContactsServiceClient->updateContact($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $contactEmail = '[EMAIL]'; - $contactNotificationCategorySubscriptionsElement = NotificationCategory::NOTIFICATION_CATEGORY_UNSPECIFIED; - $contactLanguageTag = '[LANGUAGE_TAG]'; - - update_contact_sample( - $contactEmail, - $contactNotificationCategorySubscriptionsElement, - $contactLanguageTag - ); -} -// [END essentialcontacts_v1_generated_EssentialContactsService_UpdateContact_sync] diff --git a/owl-bot-staging/EssentialContacts/v1/src/V1/Client/EssentialContactsServiceClient.php b/owl-bot-staging/EssentialContacts/v1/src/V1/Client/EssentialContactsServiceClient.php deleted file mode 100644 index 11936f755877..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/src/V1/Client/EssentialContactsServiceClient.php +++ /dev/null @@ -1,514 +0,0 @@ - computeContactsAsync(ComputeContactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface createContactAsync(CreateContactRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteContactAsync(DeleteContactRequest $request, array $optionalArgs = []) - * @method PromiseInterface getContactAsync(GetContactRequest $request, array $optionalArgs = []) - * @method PromiseInterface listContactsAsync(ListContactsRequest $request, array $optionalArgs = []) - * @method PromiseInterface sendTestMessageAsync(SendTestMessageRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateContactAsync(UpdateContactRequest $request, array $optionalArgs = []) - */ -final class EssentialContactsServiceClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.essentialcontacts.v1.EssentialContactsService'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'essentialcontacts.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'essentialcontacts.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/essential_contacts_service_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/essential_contacts_service_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/essential_contacts_service_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/essential_contacts_service_rest_client_config.php', - ], - ], - ]; - } - - /** - * Formats a string containing the fully-qualified path to represent a contact - * resource. - * - * @param string $project - * @param string $contact - * - * @return string The formatted contact resource. - */ - public static function contactName(string $project, string $contact): string - { - return self::getPathTemplate('contact')->render([ - 'project' => $project, - 'contact' => $contact, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a folder - * resource. - * - * @param string $folder - * - * @return string The formatted folder resource. - */ - public static function folderName(string $folder): string - { - return self::getPathTemplate('folder')->render([ - 'folder' => $folder, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * folder_contact resource. - * - * @param string $folder - * @param string $contact - * - * @return string The formatted folder_contact resource. - */ - public static function folderContactName(string $folder, string $contact): string - { - return self::getPathTemplate('folderContact')->render([ - 'folder' => $folder, - 'contact' => $contact, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a organization - * resource. - * - * @param string $organization - * - * @return string The formatted organization resource. - */ - public static function organizationName(string $organization): string - { - return self::getPathTemplate('organization')->render([ - 'organization' => $organization, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * organization_contact resource. - * - * @param string $organization - * @param string $contact - * - * @return string The formatted organization_contact resource. - */ - public static function organizationContactName(string $organization, string $contact): string - { - return self::getPathTemplate('organizationContact')->render([ - 'organization' => $organization, - 'contact' => $contact, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a project - * resource. - * - * @param string $project - * - * @return string The formatted project resource. - */ - public static function projectName(string $project): string - { - return self::getPathTemplate('project')->render([ - 'project' => $project, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * project_contact resource. - * - * @param string $project - * @param string $contact - * - * @return string The formatted project_contact resource. - */ - public static function projectContactName(string $project, string $contact): string - { - return self::getPathTemplate('projectContact')->render([ - 'project' => $project, - 'contact' => $contact, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - contact: projects/{project}/contacts/{contact} - * - folder: folders/{folder} - * - folderContact: folders/{folder}/contacts/{contact} - * - organization: organizations/{organization} - * - organizationContact: organizations/{organization}/contacts/{contact} - * - project: projects/{project} - * - projectContact: projects/{project}/contacts/{contact} - * - * 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 'essentialcontacts.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Lists all contacts for the resource that are subscribed to the - * specified notification categories, including contacts inherited from - * any parent resources. - * - * The async variant is - * {@see EssentialContactsServiceClient::computeContactsAsync()} . - * - * @example samples/V1/EssentialContactsServiceClient/compute_contacts.php - * - * @param ComputeContactsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 computeContacts(ComputeContactsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ComputeContacts', $request, $callOptions); - } - - /** - * Adds a new contact for a resource. - * - * The async variant is {@see EssentialContactsServiceClient::createContactAsync()} - * . - * - * @example samples/V1/EssentialContactsServiceClient/create_contact.php - * - * @param CreateContactRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Contact - * - * @throws ApiException Thrown if the API call fails. - */ - public function createContact(CreateContactRequest $request, array $callOptions = []): Contact - { - return $this->startApiCall('CreateContact', $request, $callOptions)->wait(); - } - - /** - * Deletes a contact. - * - * The async variant is {@see EssentialContactsServiceClient::deleteContactAsync()} - * . - * - * @example samples/V1/EssentialContactsServiceClient/delete_contact.php - * - * @param DeleteContactRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 deleteContact(DeleteContactRequest $request, array $callOptions = []): void - { - $this->startApiCall('DeleteContact', $request, $callOptions)->wait(); - } - - /** - * Gets a single contact. - * - * The async variant is {@see EssentialContactsServiceClient::getContactAsync()} . - * - * @example samples/V1/EssentialContactsServiceClient/get_contact.php - * - * @param GetContactRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Contact - * - * @throws ApiException Thrown if the API call fails. - */ - public function getContact(GetContactRequest $request, array $callOptions = []): Contact - { - return $this->startApiCall('GetContact', $request, $callOptions)->wait(); - } - - /** - * Lists the contacts that have been set on a resource. - * - * The async variant is {@see EssentialContactsServiceClient::listContactsAsync()} - * . - * - * @example samples/V1/EssentialContactsServiceClient/list_contacts.php - * - * @param ListContactsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listContacts(ListContactsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListContacts', $request, $callOptions); - } - - /** - * Allows a contact admin to send a test message to contact to verify that it - * has been configured correctly. - * - * The async variant is - * {@see EssentialContactsServiceClient::sendTestMessageAsync()} . - * - * @example samples/V1/EssentialContactsServiceClient/send_test_message.php - * - * @param SendTestMessageRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this 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 sendTestMessage(SendTestMessageRequest $request, array $callOptions = []): void - { - $this->startApiCall('SendTestMessage', $request, $callOptions)->wait(); - } - - /** - * Updates a contact. - * Note: A contact's email address cannot be changed. - * - * The async variant is {@see EssentialContactsServiceClient::updateContactAsync()} - * . - * - * @example samples/V1/EssentialContactsServiceClient/update_contact.php - * - * @param UpdateContactRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Contact - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateContact(UpdateContactRequest $request, array $callOptions = []): Contact - { - return $this->startApiCall('UpdateContact', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/EssentialContacts/v1/src/V1/gapic_metadata.json b/owl-bot-staging/EssentialContacts/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 2a955b8f76f0..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.essentialcontacts.v1", - "libraryPackage": "Google\\Cloud\\EssentialContacts\\V1", - "services": { - "EssentialContactsService": { - "clients": { - "grpc": { - "libraryClient": "EssentialContactsServiceGapicClient", - "rpcs": { - "ComputeContacts": { - "methods": [ - "computeContacts" - ] - }, - "CreateContact": { - "methods": [ - "createContact" - ] - }, - "DeleteContact": { - "methods": [ - "deleteContact" - ] - }, - "GetContact": { - "methods": [ - "getContact" - ] - }, - "ListContacts": { - "methods": [ - "listContacts" - ] - }, - "SendTestMessage": { - "methods": [ - "sendTestMessage" - ] - }, - "UpdateContact": { - "methods": [ - "updateContact" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_client_config.json b/owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_client_config.json deleted file mode 100644 index 304dacd21d0f..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_client_config.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "interfaces": { - "google.cloud.essentialcontacts.v1.EssentialContactsService": { - "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": { - "ComputeContacts": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateContact": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteContact": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetContact": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListContacts": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "SendTestMessage": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateContact": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - } - } - } - } -} diff --git a/owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_descriptor_config.php b/owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_descriptor_config.php deleted file mode 100644 index 67ffbf8c75a4..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_descriptor_config.php +++ /dev/null @@ -1,138 +0,0 @@ - [ - 'google.cloud.essentialcontacts.v1.EssentialContactsService' => [ - 'ComputeContacts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getContacts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\EssentialContacts\V1\ComputeContactsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateContact' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EssentialContacts\V1\Contact', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteContact' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetContact' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EssentialContacts\V1\Contact', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListContacts' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getContacts', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\EssentialContacts\V1\ListContactsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'SendTestMessage' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Protobuf\GPBEmpty', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateContact' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\EssentialContacts\V1\Contact', - 'headerParams' => [ - [ - 'keyName' => 'contact.name', - 'fieldAccessors' => [ - 'getContact', - 'getName', - ], - ], - ], - ], - 'templateMap' => [ - 'contact' => 'projects/{project}/contacts/{contact}', - 'folder' => 'folders/{folder}', - 'folderContact' => 'folders/{folder}/contacts/{contact}', - 'organization' => 'organizations/{organization}', - 'organizationContact' => 'organizations/{organization}/contacts/{contact}', - 'project' => 'projects/{project}', - 'projectContact' => 'projects/{project}/contacts/{contact}', - ], - ], - ], -]; diff --git a/owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_rest_client_config.php b/owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_rest_client_config.php deleted file mode 100644 index 2109acd4a5bf..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/src/V1/resources/essential_contacts_service_rest_client_config.php +++ /dev/null @@ -1,186 +0,0 @@ - [ - 'google.cloud.essentialcontacts.v1.EssentialContactsService' => [ - 'ComputeContacts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*}/contacts:compute', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=folders/*}/contacts:compute', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*}/contacts:compute', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'CreateContact' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*}/contacts', - 'body' => 'contact', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=folders/*}/contacts', - 'body' => 'contact', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=organizations/*}/contacts', - 'body' => 'contact', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteContact' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/contacts/*}', - 'additionalBindings' => [ - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=folders/*/contacts/*}', - ], - [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=organizations/*/contacts/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetContact' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/contacts/*}', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=folders/*/contacts/*}', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=organizations/*/contacts/*}', - ], - ], - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListContacts' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*}/contacts', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=folders/*}/contacts', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=organizations/*}/contacts', - ], - ], - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'SendTestMessage' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*}/contacts:sendTestMessage', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=folders/*}/contacts:sendTestMessage', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=organizations/*}/contacts:sendTestMessage', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'UpdateContact' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{contact.name=projects/*/contacts/*}', - 'body' => 'contact', - 'additionalBindings' => [ - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{contact.name=folders/*/contacts/*}', - 'body' => 'contact', - ], - [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{contact.name=organizations/*/contacts/*}', - 'body' => 'contact', - ], - ], - 'placeholders' => [ - 'contact.name' => [ - 'getters' => [ - 'getContact', - 'getName', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/EssentialContacts/v1/tests/Unit/V1/Client/EssentialContactsServiceClientTest.php b/owl-bot-staging/EssentialContacts/v1/tests/Unit/V1/Client/EssentialContactsServiceClientTest.php deleted file mode 100644 index ad454720ed9b..000000000000 --- a/owl-bot-staging/EssentialContacts/v1/tests/Unit/V1/Client/EssentialContactsServiceClientTest.php +++ /dev/null @@ -1,625 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return EssentialContactsServiceClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new EssentialContactsServiceClient($options); - } - - /** @test */ - public function computeContactsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $contactsElement = new Contact(); - $contacts = [ - $contactsElement, - ]; - $expectedResponse = new ComputeContactsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setContacts($contacts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ComputeContactsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->computeContacts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getContacts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.essentialcontacts.v1.EssentialContactsService/ComputeContacts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function computeContactsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ComputeContactsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->computeContacts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createContactTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $email = 'email96619420'; - $languageTag = 'languageTag-2091510221'; - $expectedResponse = new Contact(); - $expectedResponse->setName($name); - $expectedResponse->setEmail($email); - $expectedResponse->setLanguageTag($languageTag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $contact = new Contact(); - $contactEmail = 'contactEmail1253690204'; - $contact->setEmail($contactEmail); - $contactNotificationCategorySubscriptions = []; - $contact->setNotificationCategorySubscriptions($contactNotificationCategorySubscriptions); - $contactLanguageTag = 'contactLanguageTag229803234'; - $contact->setLanguageTag($contactLanguageTag); - $request = (new CreateContactRequest()) - ->setParent($formattedParent) - ->setContact($contact); - $response = $gapicClient->createContact($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.essentialcontacts.v1.EssentialContactsService/CreateContact', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualRequestObject->getContact(); - $this->assertProtobufEquals($contact, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function createContactExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $contact = new Contact(); - $contactEmail = 'contactEmail1253690204'; - $contact->setEmail($contactEmail); - $contactNotificationCategorySubscriptions = []; - $contact->setNotificationCategorySubscriptions($contactNotificationCategorySubscriptions); - $contactLanguageTag = 'contactLanguageTag229803234'; - $contact->setLanguageTag($contactLanguageTag); - $request = (new CreateContactRequest()) - ->setParent($formattedParent) - ->setContact($contact); - try { - $gapicClient->createContact($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteContactTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->contactName('[PROJECT]', '[CONTACT]'); - $request = (new DeleteContactRequest()) - ->setName($formattedName); - $gapicClient->deleteContact($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.essentialcontacts.v1.EssentialContactsService/DeleteContact', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function deleteContactExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->contactName('[PROJECT]', '[CONTACT]'); - $request = (new DeleteContactRequest()) - ->setName($formattedName); - try { - $gapicClient->deleteContact($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getContactTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $email = 'email96619420'; - $languageTag = 'languageTag-2091510221'; - $expectedResponse = new Contact(); - $expectedResponse->setName($name2); - $expectedResponse->setEmail($email); - $expectedResponse->setLanguageTag($languageTag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->contactName('[PROJECT]', '[CONTACT]'); - $request = (new GetContactRequest()) - ->setName($formattedName); - $response = $gapicClient->getContact($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.essentialcontacts.v1.EssentialContactsService/GetContact', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getContactExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->contactName('[PROJECT]', '[CONTACT]'); - $request = (new GetContactRequest()) - ->setName($formattedName); - try { - $gapicClient->getContact($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listContactsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $contactsElement = new Contact(); - $contacts = [ - $contactsElement, - ]; - $expectedResponse = new ListContactsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setContacts($contacts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListContactsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listContacts($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getContacts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.essentialcontacts.v1.EssentialContactsService/ListContacts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listContactsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ListContactsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listContacts($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function sendTestMessageTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new GPBEmpty(); - $transport->addResponse($expectedResponse); - // Mock request - $formattedContacts = [ - $gapicClient->contactName('[PROJECT]', '[CONTACT]'), - ]; - $formattedResource = $gapicClient->projectName('[PROJECT]'); - $notificationCategory = NotificationCategory::NOTIFICATION_CATEGORY_UNSPECIFIED; - $request = (new SendTestMessageRequest()) - ->setContacts($formattedContacts) - ->setResource($formattedResource) - ->setNotificationCategory($notificationCategory); - $gapicClient->sendTestMessage($request); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.essentialcontacts.v1.EssentialContactsService/SendTestMessage', $actualFuncCall); - $actualValue = $actualRequestObject->getContacts(); - $this->assertProtobufEquals($formattedContacts, $actualValue); - $actualValue = $actualRequestObject->getResource(); - $this->assertProtobufEquals($formattedResource, $actualValue); - $actualValue = $actualRequestObject->getNotificationCategory(); - $this->assertProtobufEquals($notificationCategory, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function sendTestMessageExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedContacts = [ - $gapicClient->contactName('[PROJECT]', '[CONTACT]'), - ]; - $formattedResource = $gapicClient->projectName('[PROJECT]'); - $notificationCategory = NotificationCategory::NOTIFICATION_CATEGORY_UNSPECIFIED; - $request = (new SendTestMessageRequest()) - ->setContacts($formattedContacts) - ->setResource($formattedResource) - ->setNotificationCategory($notificationCategory); - try { - $gapicClient->sendTestMessage($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateContactTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $email = 'email96619420'; - $languageTag = 'languageTag-2091510221'; - $expectedResponse = new Contact(); - $expectedResponse->setName($name); - $expectedResponse->setEmail($email); - $expectedResponse->setLanguageTag($languageTag); - $transport->addResponse($expectedResponse); - // Mock request - $contact = new Contact(); - $contactEmail = 'contactEmail1253690204'; - $contact->setEmail($contactEmail); - $contactNotificationCategorySubscriptions = []; - $contact->setNotificationCategorySubscriptions($contactNotificationCategorySubscriptions); - $contactLanguageTag = 'contactLanguageTag229803234'; - $contact->setLanguageTag($contactLanguageTag); - $request = (new UpdateContactRequest()) - ->setContact($contact); - $response = $gapicClient->updateContact($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.essentialcontacts.v1.EssentialContactsService/UpdateContact', $actualFuncCall); - $actualValue = $actualRequestObject->getContact(); - $this->assertProtobufEquals($contact, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateContactExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $contact = new Contact(); - $contactEmail = 'contactEmail1253690204'; - $contact->setEmail($contactEmail); - $contactNotificationCategorySubscriptions = []; - $contact->setNotificationCategorySubscriptions($contactNotificationCategorySubscriptions); - $contactLanguageTag = 'contactLanguageTag229803234'; - $contact->setLanguageTag($contactLanguageTag); - $request = (new UpdateContactRequest()) - ->setContact($contact); - try { - $gapicClient->updateContact($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function computeContactsAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $contactsElement = new Contact(); - $contacts = [ - $contactsElement, - ]; - $expectedResponse = new ComputeContactsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setContacts($contacts); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->projectName('[PROJECT]'); - $request = (new ComputeContactsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->computeContactsAsync($request)->wait(); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getContacts()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.essentialcontacts.v1.EssentialContactsService/ComputeContacts', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -} diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Channel.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Channel.php deleted file mode 100644 index 591f38500aa820dd47c40ed6b299efab1cb5a499..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1636 zcma)6-EP}97_FTqcIb3-1q{&A4P}4OxWgvF*)9fUS>YeWHHtaL;^krxV9+$3a8X2p zqzt5mpJH#ZXXq2OFVX8h!mdh6lw2Sw5Z{<0zw`YZ9-iM`@N*8HzyV2!K#I)a>yhaF}vh6Cc=ZTe+);*6Bzb~lSdjVSt>9I;2C3QG4XNC(z#ETBvD9U zf7$l&IZ6@|ds#{V5_Cx#>V8!HTj38o+UaN$WYxbDG$voavbl zVbRan(4Z-ZhKV8~L2=Y45(~-|6Js431ZPB* zD`qtQ^gFerb>{Puqa&@NRymcKaS!}k1J72QK%Dx*PL^wK z_n|$?6sT|0S4I1Iz~lFKLCp%xxex9diMkb7X>E5mK6I*16Kte(?pBMP4d)loz=G%p zGc~E)O?}eX-}P*BMIEoC$>hmUDc5qhsIA+fnxL)|F6o>Iw`N*!9)KPF0AxCwD#j^x z>t$mv?>Glw(@2iE+j{q_{b;Y~>KbL99oaiE@p+5igC^4NW2xU2OLY1RlDMEu@4NtC zV{xU`KfNGV(~PG^cKYo9&J*w`D{*ltZApC<($mi2_cF{Ya^>uTds63?3rggazn1Qf zhS#&&k3+DTb>e&j?w?FLlW_Xi=wuxBhDXD&-@M~AKy4h3`oqznS#bc^>hvbV)38}} zc0heNvR@m4{Mg~(VJVILPS&mDKH>zL(|-t7(tl%DD?es9n_KS{%T-}tde0i!>W8{r z$^DvLbsJz?36x0AgzCPnfbaC!UnIV}W0@Ztdl^^${x!cFD<8wy8C!d(?p@nxF%X{} zte5{)-9hG@Ue7qE7h31^PTTK_qsY4I+E%r%eyl#ofkBWVgP?#0!D)N8r8!aT=e_cw Z{+OH9XWnK+M)3{4mPO|7vjQssJ^>}a4FmuH diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/ChannelConnection.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/ChannelConnection.php deleted file mode 100644 index eaab2f11d3bf..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/ChannelConnection.php +++ /dev/null @@ -1,39 +0,0 @@ -internalAddGeneratedFile( - ' -„ -1google/cloud/eventarc/v1/channel_connection.protogoogle.cloud.eventarc.v1google/api/resource.protogoogle/protobuf/timestamp.proto"§ -ChannelConnection -name ( BàA -uid ( BàA8 -channel ( B\'àAúA! -eventarc.googleapis.com/Channel4 - create_time ( 2.google.protobuf.TimestampBàA4 - update_time ( 2.google.protobuf.TimestampBàA -activation_token ( BàA:§êA£ -)eventarc.googleapis.com/ChannelConnectionOprojects/{project}/locations/{location}/channelConnections/{channel_connection}*channelConnections2channelConnectionBÆ -com.google.cloud.eventarc.v1BChannelConnectionProtoPZ8cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpbªGoogle.Cloud.Eventarc.V1ÊGoogle\\Cloud\\Eventarc\\V1êGoogle::Cloud::Eventarc::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Discovery.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Discovery.php deleted file mode 100644 index 4221d9e6f564..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Discovery.php +++ /dev/null @@ -1,44 +0,0 @@ -internalAddGeneratedFile( - ' -÷ -(google/cloud/eventarc/v1/discovery.protogoogle.cloud.eventarc.v1google/api/resource.proto"ñ -Provider -name ( BàA - display_name ( BàA= - event_types ( 2#.google.cloud.eventarc.v1.EventTypeBàA:xêAu - eventarc.googleapis.com/ProviderinternalAddGeneratedFile( - ' -Œ -)google/cloud/eventarc/v1/enrollment.protogoogle.cloud.eventarc.v1google/api/resource.protogoogle/protobuf/timestamp.proto"¾ - -Enrollment -name ( BàA -uid ( BàA -etag ( BàA4 - create_time ( 2.google.protobuf.TimestampBàA4 - update_time ( 2.google.protobuf.TimestampBàAE -labels ( 20.google.cloud.eventarc.v1.Enrollment.LabelsEntryBàAO - annotations ( 25.google.cloud.eventarc.v1.Enrollment.AnnotationsEntryBàA - display_name ( BàA - cel_match ( BàA? - message_bus - ( B*àAúA$ -"eventarc.googleapis.com/MessageBus - destination ( BàA- - LabelsEntry -key (  -value ( :82 -AnnotationsEntry -key (  -value ( :8:‚êA -"eventarc.googleapis.com/Enrollment@projects/{project}/locations/{location}/enrollments/{enrollment}* enrollments2 -enrollmentB¿ -com.google.cloud.eventarc.v1BEnrollmentProtoPZ8cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpbªGoogle.Cloud.Eventarc.V1ÊGoogle\\Cloud\\Eventarc\\V1êGoogle::Cloud::Eventarc::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Eventarc.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Eventarc.php deleted file mode 100644 index 69c3be8ae46f..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Eventarc.php +++ /dev/null @@ -1,350 +0,0 @@ -internalAddGeneratedFile( - ' -Ó -\'google/cloud/eventarc/v1/eventarc.protogoogle.cloud.eventarc.v1google/api/client.protogoogle/api/field_behavior.protogoogle/api/resource.proto&google/cloud/eventarc/v1/channel.proto1google/cloud/eventarc/v1/channel_connection.proto(google/cloud/eventarc/v1/discovery.proto)google/cloud/eventarc/v1/enrollment.proto0google/cloud/eventarc/v1/google_api_source.proto4google/cloud/eventarc/v1/google_channel_config.proto*google/cloud/eventarc/v1/message_bus.proto\'google/cloud/eventarc/v1/pipeline.proto&google/cloud/eventarc/v1/trigger.proto#google/longrunning/operations.proto google/protobuf/field_mask.protogoogle/protobuf/timestamp.proto"J -GetTriggerRequest5 -name ( B\'àAúA! -eventarc.googleapis.com/Trigger"— -ListTriggersRequest7 -parent ( B\'àAúA!eventarc.googleapis.com/Trigger - page_size ( - -page_token (  -order_by (  -filter ( "y -ListTriggersResponse3 -triggers ( 2!.google.cloud.eventarc.v1.Trigger -next_page_token (  - unreachable ( "½ -CreateTriggerRequest7 -parent ( B\'àAúA!eventarc.googleapis.com/Trigger7 -trigger ( 2!.google.cloud.eventarc.v1.TriggerBàA - -trigger_id ( BàA - validate_only (BàA"® -UpdateTriggerRequest2 -trigger ( 2!.google.cloud.eventarc.v1.Trigger/ - update_mask ( 2.google.protobuf.FieldMask - allow_missing ( - validate_only (BàA"Ž -DeleteTriggerRequest5 -name ( B\'àAúA! -eventarc.googleapis.com/Trigger -etag (  - allow_missing ( - validate_only (BàA"J -GetChannelRequest5 -name ( B\'àAúA! -eventarc.googleapis.com/Channel"‡ -ListChannelsRequest7 -parent ( B\'àAúA!eventarc.googleapis.com/Channel - page_size ( - -page_token (  -order_by ( "y -ListChannelsResponse3 -channels ( 2!.google.cloud.eventarc.v1.Channel -next_page_token (  - unreachable ( "½ -CreateChannelRequest7 -parent ( B\'àAúA!eventarc.googleapis.com/Channel7 -channel ( 2!.google.cloud.eventarc.v1.ChannelBàA - -channel_id ( BàA - validate_only (BàA"— -UpdateChannelRequest2 -channel ( 2!.google.cloud.eventarc.v1.Channel/ - update_mask ( 2.google.protobuf.FieldMask - validate_only (BàA"i -DeleteChannelRequest5 -name ( B\'àAúA! -eventarc.googleapis.com/Channel - validate_only (BàA"L -GetProviderRequest6 -name ( B(àAúA" - eventarc.googleapis.com/Provider"™ -ListProvidersRequest8 -parent ( B(àAúA" eventarc.googleapis.com/Provider - page_size ( - -page_token (  -order_by (  -filter ( "| -ListProvidersResponse5 - providers ( 2".google.cloud.eventarc.v1.Provider -next_page_token (  - unreachable ( "^ -GetChannelConnectionRequest? -name ( B1àAúA+ -)eventarc.googleapis.com/ChannelConnection"‰ -ListChannelConnectionsRequestA -parent ( B1àAúA+)eventarc.googleapis.com/ChannelConnection - page_size ( - -page_token ( "˜ -ListChannelConnectionsResponseH -channel_connections ( 2+.google.cloud.eventarc.v1.ChannelConnection -next_page_token (  - unreachable ( "Õ -CreateChannelConnectionRequestA -parent ( B1àAúA+)eventarc.googleapis.com/ChannelConnectionL -channel_connection ( 2+.google.cloud.eventarc.v1.ChannelConnectionBàA" -channel_connection_id ( BàA"a -DeleteChannelConnectionRequest? -name ( B1àAúA+ -)eventarc.googleapis.com/ChannelConnection"¦ - UpdateGoogleChannelConfigRequestQ -google_channel_config ( 2-.google.cloud.eventarc.v1.GoogleChannelConfigBàA/ - update_mask ( 2.google.protobuf.FieldMask"b -GetGoogleChannelConfigRequestA -name ( B3àAúA- -+eventarc.googleapis.com/GoogleChannelConfig"P -GetMessageBusRequest8 -name ( B*àAúA$ -"eventarc.googleapis.com/MessageBus"² -ListMessageBusesRequest: -parent ( B*àAúA$"eventarc.googleapis.com/MessageBus - page_size (BàA - -page_token ( BàA -order_by ( BàA -filter ( BàA"… -ListMessageBusesResponse; - message_buses ( 2$.google.cloud.eventarc.v1.MessageBus -next_page_token (  - unreachable ( " - ListMessageBusEnrollmentsRequest: -parent ( B*àAúA$ -"eventarc.googleapis.com/MessageBus - page_size (BàA - -page_token ( BàA"f -!ListMessageBusEnrollmentsResponse - enrollments (  -next_page_token (  - unreachable ( "Î -CreateMessageBusRequest: -parent ( B*àAúA$"eventarc.googleapis.com/MessageBus> - message_bus ( 2$.google.cloud.eventarc.v1.MessageBusBàA -message_bus_id ( BàA - validate_only (BàA"Ç -UpdateMessageBusRequest> - message_bus ( 2$.google.cloud.eventarc.v1.MessageBusBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA - allow_missing (BàA - validate_only (BàA"ž -DeleteMessageBusRequest8 -name ( B*àAúA$ -"eventarc.googleapis.com/MessageBus -etag ( BàA - allow_missing (BàA - validate_only (BàA"P -GetEnrollmentRequest8 -name ( B*àAúA$ -"eventarc.googleapis.com/Enrollment"± -ListEnrollmentsRequest: -parent ( B*àAúA$"eventarc.googleapis.com/Enrollment - page_size (BàA - -page_token ( BàA -order_by ( BàA -filter ( BàA"‚ -ListEnrollmentsResponse9 - enrollments ( 2$.google.cloud.eventarc.v1.Enrollment -next_page_token (  - unreachable ( "Ì -CreateEnrollmentRequest: -parent ( B*àAúA$"eventarc.googleapis.com/Enrollment= - -enrollment ( 2$.google.cloud.eventarc.v1.EnrollmentBàA - enrollment_id ( BàA - validate_only (BàA"Æ -UpdateEnrollmentRequest= - -enrollment ( 2$.google.cloud.eventarc.v1.EnrollmentBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA - allow_missing (BàA - validate_only (BàA"ž -DeleteEnrollmentRequest8 -name ( B*àAúA$ -"eventarc.googleapis.com/Enrollment -etag ( BàA - allow_missing (BàA - validate_only (BàA"L -GetPipelineRequest6 -name ( B(àAúA" - eventarc.googleapis.com/Pipeline"­ -ListPipelinesRequest8 -parent ( B(àAúA" eventarc.googleapis.com/Pipeline - page_size (BàA - -page_token ( BàA -order_by ( BàA -filter ( BàA"| -ListPipelinesResponse5 - pipelines ( 2".google.cloud.eventarc.v1.Pipeline -next_page_token (  - unreachable ( " -CreatePipelineRequest8 -parent ( B(àAúA" eventarc.googleapis.com/Pipeline9 -pipeline ( 2".google.cloud.eventarc.v1.PipelineBàA - pipeline_id ( BàA - validate_only (BàA"À -UpdatePipelineRequest9 -pipeline ( 2".google.cloud.eventarc.v1.PipelineBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA - allow_missing (BàA - validate_only (BàA"š -DeletePipelineRequest6 -name ( B(àAúA" - eventarc.googleapis.com/Pipeline -etag ( BàA - allow_missing (BàA - validate_only (BàA"Z -GetGoogleApiSourceRequest= -name ( B/àAúA) -\'eventarc.googleapis.com/GoogleApiSource"» -ListGoogleApiSourcesRequest? -parent ( B/àAúA)\'eventarc.googleapis.com/GoogleApiSource - page_size (BàA - -page_token ( BàA -order_by ( BàA -filter ( BàA"“ -ListGoogleApiSourcesResponseE -google_api_sources ( 2).google.cloud.eventarc.v1.GoogleApiSource -next_page_token (  - unreachable ( "é -CreateGoogleApiSourceRequest? -parent ( B/àAúA)\'eventarc.googleapis.com/GoogleApiSourceI -google_api_source ( 2).google.cloud.eventarc.v1.GoogleApiSourceBàA! -google_api_source_id ( BàA - validate_only (BàA"× -UpdateGoogleApiSourceRequestI -google_api_source ( 2).google.cloud.eventarc.v1.GoogleApiSourceBàA4 - update_mask ( 2.google.protobuf.FieldMaskBàA - allow_missing (BàA - validate_only (BàA"¨ -DeleteGoogleApiSourceRequest= -name ( B/àAúA) -\'eventarc.googleapis.com/GoogleApiSource -etag ( BàA - allow_missing (BàA - validate_only (BàA"€ -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õ@ -Eventarc™ - -GetTrigger+.google.cloud.eventarc.v1.GetTriggerRequest!.google.cloud.eventarc.v1.Trigger";ÚAname‚Óä“.,/v1/{name=projects/*/locations/*/triggers/*}¬ - ListTriggers-.google.cloud.eventarc.v1.ListTriggersRequest..google.cloud.eventarc.v1.ListTriggersResponse"=ÚAparent‚Óä“.,/v1/{parent=projects/*/locations/*}/triggersØ - CreateTrigger..google.cloud.eventarc.v1.CreateTriggerRequest.google.longrunning.Operation"xÊA -TriggerOperationMetadataÚAparent,trigger,trigger_id‚Óä“7",/v1/{parent=projects/*/locations/*}/triggers:triggeré - UpdateTrigger..google.cloud.eventarc.v1.UpdateTriggerRequest.google.longrunning.Operation"ˆÊA -TriggerOperationMetadataÚA!trigger,update_mask,allow_missing‚Óä“?24/v1/{trigger.name=projects/*/locations/*/triggers/*}:triggerÈ - DeleteTrigger..google.cloud.eventarc.v1.DeleteTriggerRequest.google.longrunning.Operation"hÊA -TriggerOperationMetadataÚAname,allow_missing‚Óä“.*,/v1/{name=projects/*/locations/*/triggers/*}™ - -GetChannel+.google.cloud.eventarc.v1.GetChannelRequest!.google.cloud.eventarc.v1.Channel";ÚAname‚Óä“.,/v1/{name=projects/*/locations/*/channels/*}¬ - ListChannels-.google.cloud.eventarc.v1.ListChannelsRequest..google.cloud.eventarc.v1.ListChannelsResponse"=ÚAparent‚Óä“.,/v1/{parent=projects/*/locations/*}/channelsØ - CreateChannel..google.cloud.eventarc.v1.CreateChannelRequest.google.longrunning.Operation"xÊA -ChannelOperationMetadataÚAparent,channel,channel_id‚Óä“7",/v1/{parent=projects/*/locations/*}/channels:channelÚ - UpdateChannel..google.cloud.eventarc.v1.UpdateChannelRequest.google.longrunning.Operation"zÊA -ChannelOperationMetadataÚAchannel,update_mask‚Óä“?24/v1/{channel.name=projects/*/locations/*/channels/*}:channelº - DeleteChannel..google.cloud.eventarc.v1.DeleteChannelRequest.google.longrunning.Operation"ZÊA -ChannelOperationMetadataÚAname‚Óä“.*,/v1/{name=projects/*/locations/*/channels/*} - GetProvider,.google.cloud.eventarc.v1.GetProviderRequest".google.cloud.eventarc.v1.Provider"<ÚAname‚Óä“/-/v1/{name=projects/*/locations/*/providers/*}° - ListProviders..google.cloud.eventarc.v1.ListProvidersRequest/.google.cloud.eventarc.v1.ListProvidersResponse">ÚAparent‚Óä“/-/v1/{parent=projects/*/locations/*}/providersÁ -GetChannelConnection5.google.cloud.eventarc.v1.GetChannelConnectionRequest+.google.cloud.eventarc.v1.ChannelConnection"EÚAname‚Óä“86/v1/{name=projects/*/locations/*/channelConnections/*}Ô -ListChannelConnections7.google.cloud.eventarc.v1.ListChannelConnectionsRequest8.google.cloud.eventarc.v1.ListChannelConnectionsResponse"GÚAparent‚Óä“86/v1/{parent=projects/*/locations/*}/channelConnections¢ -CreateChannelConnection8.google.cloud.eventarc.v1.CreateChannelConnectionRequest.google.longrunning.Operation"­ÊA& -ChannelConnectionOperationMetadataÚA/parent,channel_connection,channel_connection_id‚Óä“L"6/v1/{parent=projects/*/locations/*}/channelConnections:channel_connectionâ -DeleteChannelConnection8.google.cloud.eventarc.v1.DeleteChannelConnectionRequest.google.longrunning.Operation"nÊA& -ChannelConnectionOperationMetadataÚAname‚Óä“8*6/v1/{name=projects/*/locations/*/channelConnections/*}Æ -GetGoogleChannelConfig7.google.cloud.eventarc.v1.GetGoogleChannelConfigRequest-.google.cloud.eventarc.v1.GoogleChannelConfig"DÚAname‚Óä“75/v1/{name=projects/*/locations/*/googleChannelConfig}— -UpdateGoogleChannelConfig:.google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest-.google.cloud.eventarc.v1.GoogleChannelConfig"ŽÚA!google_channel_config,update_mask‚Óä“d2K/v1/{google_channel_config.name=projects/*/locations/*/googleChannelConfig}:google_channel_config¦ - GetMessageBus..google.cloud.eventarc.v1.GetMessageBusRequest$.google.cloud.eventarc.v1.MessageBus"?ÚAname‚Óä“20/v1/{name=projects/*/locations/*/messageBuses/*}¼ -ListMessageBuses1.google.cloud.eventarc.v1.ListMessageBusesRequest2.google.cloud.eventarc.v1.ListMessageBusesResponse"AÚAparent‚Óä“20/v1/{parent=projects/*/locations/*}/messageBusesé -ListMessageBusEnrollments:.google.cloud.eventarc.v1.ListMessageBusEnrollmentsRequest;.google.cloud.eventarc.v1.ListMessageBusEnrollmentsResponse"SÚAparent‚Óä“DB/v1/{parent=projects/*/locations/*/messageBuses/*}:listEnrollmentsò -CreateMessageBus1.google.cloud.eventarc.v1.CreateMessageBusRequest.google.longrunning.Operation"‹ÊA - -MessageBusOperationMetadataÚA!parent,message_bus,message_bus_id‚Óä“?"0/v1/{parent=projects/*/locations/*}/messageBuses: message_busô -UpdateMessageBus1.google.cloud.eventarc.v1.UpdateMessageBusRequest.google.longrunning.Operation"ÊA - -MessageBusOperationMetadataÚAmessage_bus,update_mask‚Óä“K2ÚAname‚Óä“1//v1/{name=projects/*/locations/*/enrollments/*}¸ -ListEnrollments0.google.cloud.eventarc.v1.ListEnrollmentsRequest1.google.cloud.eventarc.v1.ListEnrollmentsResponse"@ÚAparent‚Óä“1//v1/{parent=projects/*/locations/*}/enrollmentsî -CreateEnrollment1.google.cloud.eventarc.v1.CreateEnrollmentRequest.google.longrunning.Operation"‡ÊA - -EnrollmentOperationMetadataÚAparent,enrollment,enrollment_id‚Óä“="//v1/{parent=projects/*/locations/*}/enrollments: -enrollmentð -UpdateEnrollment1.google.cloud.eventarc.v1.UpdateEnrollmentRequest.google.longrunning.Operation"‰ÊA - -EnrollmentOperationMetadataÚAenrollment,update_mask‚Óä“H2:/v1/{enrollment.name=projects/*/locations/*/enrollments/*}: -enrollmentË -DeleteEnrollment1.google.cloud.eventarc.v1.DeleteEnrollmentRequest.google.longrunning.Operation"eÊA - -EnrollmentOperationMetadataÚA name,etag‚Óä“1*//v1/{name=projects/*/locations/*/enrollments/*} - GetPipeline,.google.cloud.eventarc.v1.GetPipelineRequest".google.cloud.eventarc.v1.Pipeline"<ÚAname‚Óä“/-/v1/{name=projects/*/locations/*/pipelines/*}° - ListPipelines..google.cloud.eventarc.v1.ListPipelinesRequest/.google.cloud.eventarc.v1.ListPipelinesResponse">ÚAparent‚Óä“/-/v1/{parent=projects/*/locations/*}/pipelinesß -CreatePipeline/.google.cloud.eventarc.v1.CreatePipelineRequest.google.longrunning.Operation"}ÊA -PipelineOperationMetadataÚAparent,pipeline,pipeline_id‚Óä“9"-/v1/{parent=projects/*/locations/*}/pipelines:pipelineá -UpdatePipeline/.google.cloud.eventarc.v1.UpdatePipelineRequest.google.longrunning.Operation"ÊA -PipelineOperationMetadataÚApipeline,update_mask‚Óä“B26/v1/{pipeline.name=projects/*/locations/*/pipelines/*}:pipelineà -DeletePipeline/.google.cloud.eventarc.v1.DeletePipelineRequest.google.longrunning.Operation"aÊA -PipelineOperationMetadataÚA name,etag‚Óä“/*-/v1/{name=projects/*/locations/*/pipelines/*}¹ -GetGoogleApiSource3.google.cloud.eventarc.v1.GetGoogleApiSourceRequest).google.cloud.eventarc.v1.GoogleApiSource"CÚAname‚Óä“64/v1/{name=projects/*/locations/*/googleApiSources/*}Ì -ListGoogleApiSources5.google.cloud.eventarc.v1.ListGoogleApiSourcesRequest6.google.cloud.eventarc.v1.ListGoogleApiSourcesResponse"EÚAparent‚Óä“64/v1/{parent=projects/*/locations/*}/googleApiSources— -CreateGoogleApiSource6.google.cloud.eventarc.v1.CreateGoogleApiSourceRequest.google.longrunning.Operation"¦ÊA$ -GoogleApiSourceOperationMetadataÚA-parent,google_api_source,google_api_source_id‚Óä“I"4/v1/{parent=projects/*/locations/*}/googleApiSources:google_api_source™ -UpdateGoogleApiSource6.google.cloud.eventarc.v1.UpdateGoogleApiSourceRequest.google.longrunning.Operation"¨ÊA$ -GoogleApiSourceOperationMetadataÚAgoogle_api_source,update_mask‚Óä“[2F/v1/{google_api_source.name=projects/*/locations/*/googleApiSources/*}:google_api_sourceß -DeleteGoogleApiSource6.google.cloud.eventarc.v1.DeleteGoogleApiSourceRequest.google.longrunning.Operation"oÊA$ -GoogleApiSourceOperationMetadataÚA name,etag‚Óä“6*4/v1/{name=projects/*/locations/*/googleApiSources/*}KÊAeventarc.googleapis.comÒA.https://www.googleapis.com/auth/cloud-platformB½ -com.google.cloud.eventarc.v1B EventarcProtoPZ8cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpbªGoogle.Cloud.Eventarc.V1ÊGoogle\\Cloud\\Eventarc\\V1êGoogle::Cloud::Eventarc::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/GoogleApiSource.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/GoogleApiSource.php deleted file mode 100644 index 2d3a1acb1c57..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/GoogleApiSource.php +++ /dev/null @@ -1,54 +0,0 @@ -internalAddGeneratedFile( - ' -ï -0google/cloud/eventarc/v1/google_api_source.protogoogle.cloud.eventarc.v1google/api/field_info.protogoogle/api/resource.proto-google/cloud/eventarc/v1/logging_config.protogoogle/protobuf/timestamp.proto"É -GoogleApiSource -name ( BàA -uid ( B àAâŒÏ× -etag ( BàA4 - create_time ( 2.google.protobuf.TimestampBàA4 - update_time ( 2.google.protobuf.TimestampBàAJ -labels ( 25.google.cloud.eventarc.v1.GoogleApiSource.LabelsEntryBàAT - annotations ( 2:.google.cloud.eventarc.v1.GoogleApiSource.AnnotationsEntryBàA - display_name ( BàA? - destination ( B*àAúA$ -"eventarc.googleapis.com/MessageBusB -crypto_key_name - ( B)àAúA# -!cloudkms.googleapis.com/CryptoKeyD -logging_config ( 2\'.google.cloud.eventarc.v1.LoggingConfigBàA- - LabelsEntry -key (  -value ( :82 -AnnotationsEntry -key (  -value ( :8:žêAš -\'eventarc.googleapis.com/GoogleApiSourceLprojects/{project}/locations/{location}/googleApiSources/{google_api_source}*googleApiSources2googleApiSourceBÄ -com.google.cloud.eventarc.v1BGoogleApiSourceProtoPZ8cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpbªGoogle.Cloud.Eventarc.V1ÊGoogle\\Cloud\\Eventarc\\V1êGoogle::Cloud::Eventarc::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/GoogleChannelConfig.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/GoogleChannelConfig.php deleted file mode 100644 index d49aa422f240..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/GoogleChannelConfig.php +++ /dev/null @@ -1,37 +0,0 @@ -internalAddGeneratedFile( - ' -„ -4google/cloud/eventarc/v1/google_channel_config.protogoogle.cloud.eventarc.v1google/api/resource.protogoogle/protobuf/timestamp.proto"§ -GoogleChannelConfig -name ( BàA4 - update_time ( 2.google.protobuf.TimestampBàAB -crypto_key_name ( B)àAúA# -!cloudkms.googleapis.com/CryptoKey:‚êA -+eventarc.googleapis.com/GoogleChannelConfig;projects/{project}/locations/{location}/googleChannelConfig2googleChannelConfigBà -com.google.cloud.eventarc.v1BGoogleChannelConfigProtoPZ8cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpbªGoogle.Cloud.Eventarc.V1ÊGoogle\\Cloud\\Eventarc\\V1êGoogle::Cloud::Eventarc::V1êAx -!cloudkms.googleapis.com/CryptoKeySprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/LoggingConfig.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/LoggingConfig.php deleted file mode 100644 index 73f9aeba0dea53dc963ac3b5a6c03f02dfc90ef6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1148 zcmb7D%WB&|6s_{kBq>5GL$jEsfjH2}xY-n?X|d(85IB-i9G4V<8OvjNK+%ZN$dHzN zL^u72enyx5imv+wU3Mh-k&tFlZ8VR2&%O7|IqyCslLWki7KsVRf{fts7K#ah31@-@ zEP}&qJSH3l>?WZR;W~sZ7dmbaqL$rzDN|FH@qidGWGswGEr?h)s*x#)1?E9*TCYVc z3~3w=0v3;Hs29ip#Q27!2@VLfy3GqB@CXa+TLp-3<{&G|$*mfBqX)ld$;DPZT`p|%ey9oHIMqCWEM-u2+hx$Gj-ZriA(KGU|qn&Uc1 zRkUre-a^eQOI^tiZKv(3s~P|sQs=gb)HQ7fY<_Hbj_p|LdLE5D&-K&|Z5M2r64^Ez z9d$FmXmpU*Q@6A|u#GN|XCcSDR=1l!6tFKX^yFYo?ZIS)(z?p0wlI@nDuWJ_=1 zgi3qO8BT_0%jNf#id9%iFRY}anU(Z@{pbA3pV@5bGikKnD=*4K!zeNhW1eal{rYgD baPR5SLM5+D-QJV=lM*i?OCjEYI{^LykLhUp diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/MessageBus.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/MessageBus.php deleted file mode 100644 index 1b8f2ed0c15f..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/MessageBus.php +++ /dev/null @@ -1,53 +0,0 @@ -internalAddGeneratedFile( - ' -× -*google/cloud/eventarc/v1/message_bus.protogoogle.cloud.eventarc.v1google/api/resource.proto-google/cloud/eventarc/v1/logging_config.protogoogle/protobuf/timestamp.proto"Ù - -MessageBus -name ( BàA -uid ( BàA -etag ( BàA4 - create_time ( 2.google.protobuf.TimestampBàA4 - update_time ( 2.google.protobuf.TimestampBàAE -labels ( 20.google.cloud.eventarc.v1.MessageBus.LabelsEntryBàAO - annotations ( 25.google.cloud.eventarc.v1.MessageBus.AnnotationsEntryBàA - display_name ( BàAB -crypto_key_name - ( B)àAúA# -!cloudkms.googleapis.com/CryptoKeyD -logging_config ( 2\'.google.cloud.eventarc.v1.LoggingConfigBàA- - LabelsEntry -key (  -value ( :82 -AnnotationsEntry -key (  -value ( :8:†êA‚ -"eventarc.googleapis.com/MessageBusBprojects/{project}/locations/{location}/messageBuses/{message_bus}* messageBuses2 -messageBusB¿ -com.google.cloud.eventarc.v1BMessageBusProtoPZ8cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpbªGoogle.Cloud.Eventarc.V1ÊGoogle\\Cloud\\Eventarc\\V1êGoogle::Cloud::Eventarc::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/NetworkConfig.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/NetworkConfig.php deleted file mode 100644 index f04fa3828dde..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/NetworkConfig.php +++ /dev/null @@ -1,32 +0,0 @@ -internalAddGeneratedFile( - ' - --google/cloud/eventarc/v1/network_config.protogoogle.cloud.eventarc.v1google/api/resource.proto"] - NetworkConfigL -network_attachment ( B0àAúA* -(compute.googleapis.com/NetworkAttachmentB -com.google.cloud.eventarc.v1BNetworkConfigProtoPZ8cloud.google.com/go/eventarc/apiv1/eventarcpb;eventarcpbªGoogle.Cloud.Eventarc.V1ÊGoogle\\Cloud\\Eventarc\\V1êGoogle::Cloud::Eventarc::V1bproto3' - , true); - - static::$is_initialized = true; - } -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Pipeline.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Pipeline.php deleted file mode 100644 index 65ff91e3be27fd79330f9945a53ded06f7492e89..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4457 zcmb_g+iuiG81ClO&A&+ii^F1iFo%kOz)J!uXaj9`lMrYLiD(3ZZe>mE+078I$Fj$P z6h-O-^a*;?`@TTmp*Ov()SDip-tY)q^`G(B>m>;+l-#W2neY4m`Oo9)pNAVEoVJ!| zKqDfkXRU8rVuM;?#07V`Z>=ZoHjONocSGjW$hNG773=QGnzguad+j7bW1d7Vty>+= zJ3g(sK2N+F-J*dYkz3oEsf8@0J`1R=H~|9ErEy4HYAvlcm#H8g5u~-G;H`NHZ!Kzg z>;B9ffa{YuwpKL_JOc~=!erfNt`!R+@aGJR9TqUbh|j*mQ{1rH#E&V0ckgW{fh!mf zED2Z%TsnQuN;&1;Ga<)Q->@=;R;3}(2(8XC=5GeON43)j7PiZ+tvkHaVL@k}2W{3FTzu}1g#_ajz4#W;HHHBwNH^RY zt0LgyXH5IM;d!}xZ(<5e=MItXISYTBfY#XogWss88*P;(c9tdf){J>VQ;?9=+R~#K z&uyOOjCs7U7-{3{rHlKD_EQTxt}?OS{*m6UauLJ2=4m_X^^ad(7n!lr4X6G-2IVXj zjYBXZv$=`kf>paNw($rKvmi`_6OwJ86VGY$s7pk(qP%-`Af@7%bm(e|zp3D2==m0)s<#4e;S6v%XGK) zh6Cj+_f*hhlewc8TNBw(9bzMP71B<^_PBwy)dW9D|Wf7I@~r<4`GN zkMR(u0xF*HXj4~A?VjrcSg^oj-%Ux<#+HW0LzvtUB6Mirg&g~e_RZWIGT%auMNOfI z(c3qmELCp%{E2eRcr#DX?ES6`eV_pdZ$Jfmq0BL7J&|Qp*75Ty#m~U0yg#MYJ5O;P zjm;!RiYqWGc*xvpS%FV0@P}{$2edd@*GJ5uYjP{1I&g#}IA{hqy{TH28C}-l%Iy3b znx@gmRkZy#aD*pfk18~#1pTinWPS^ieeO2yfRP0e5rViIT|A+V)k|2OUo_6cw49|A zL0>kFW@_X(a|tGjJ~s|xtBP1J^oNX3pql#+gBk}aN6;?z7(sP7$R20@iPdN?6B!ID zsc#+5JXc5j@;flTy@Gsee3J%Qq&|iUmo9gNe5+I7?mH1Bk5-grwqZP%Z(u8nX|%;$ z>JZoEN$wEL6m$r-GDf;DJLBsV(MSQt5h#>rluQp`B^Ulq1Q{?IyF4sP zX`TX08m^ElT`D%XhvhK4i8QNl6#vUcfx?RUO9{sF=8ipiN<<`x+p3r1T%&zHNG-}) z?6p1$?P2p%nCf3J&cLyLX}##|)$is}IGm3xMa_RKL8Z`U4IH4lQA3H60r6w!r5$KT*sq5rml!<&-Bwy&F5)V#dq1`PJR)W z8}(&+=lpo~7|)io$L9A#@Bvn-%yzrR>E>i6UA5}f(xYqX9zEvEIk3ZfUjeZEXN$p+w=13Z!hYrzkPq^*KDb!KMVA}3*d)==R+q_V7;!8^?C-a*KxJ+ v#VcEoadHo;U`+XB@^* diff --git a/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Trigger.php b/owl-bot-staging/Eventarc/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/V1/Trigger.php deleted file mode 100644 index 047dcf6b0f487d8b142d86839ba79bdb5399a81b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3485 zcmb7H>uwWA6vlRNlH=UEK)YD9EDi-jiQO0^kOM{QBm`(nB8XbGwPdZ=V|$v-&T4no zC`5jUzChoh@6re0cOHRXJ#*Q$Lt=0vOBv0a^PM@j@60}a8uSBLwRVV4LWh%%)jqO# zpIAZ2ICGh2wc~D=gqF(=1L~2mVp&_e)~nrpYkTX({tZ-(SRA^fZuJ=Jd8F!kEbdgv zfcV@A-RfYy%0t@gp{9fc@SQ^v1&&LsoxR4-ggYIFJIx)b-P{z~&26pS{AGOu!1bIc zvi21U9D{{_LEQGJYen4Q`0pl-TGXeUIv#z8K0L9yju#QsJuBOdeV0?_TS8&icS-q< zr7(r;&48iLPpsrVdm;=Ng60dKlhAj(<`#+EkOrKEdnj73_XtmeCw9trv{?a1yH;7< zv0guO$tM;MV=`{tvO>b+(BF{v768L^)jTI!c0ilYDDgTC(su@wh4uQ#s}aZ~)z?Jl zZfdPF>1n#oX^_-KJES|AMEs*6ET+oiu}VODpD@deC?9y2pmraa%sy|=T*3glwiF|)}| z&UgR?Hze5cEn&gDh$n?wv7*owD4MUN=@B?mD-N(EJq|9P?xkE*JZKK&3Wn1o%eR;gS`qjsB@?xF%eM( zDXaQMY1m4^cnXCMmK*hvHkfaMy#FWefz6%>t3YnRJP#c|3RuX^f>d9f?8bf~DwH$m zLEdxP#EZ-Y8GyA;SH({i{kot(c^X>ezyR5|>BSW4#(yJ?6^7!M$WTOvW4T=|MNVJEvDsZC0;J zdr%lFYU4|ocQ~H4V}7bpjd90x^Im~D7KrK0LNk|yG*hx+>9ljkH!ve8L56jywvq$| zsiGqI(pZLBB-_a8=}?#c%0XeQ#EpkAFMF{S#=b-;)Jh4;*(Ti-v-)-HKfhqSge9ez zOjk`c-+!>z;5&JgoJ1Nh4Y-7Prl&Gu-Gf~3fJjdZwXY|e-}!MHrRy*!=1b`xF-YoChu9cLIh3L$lzm$u^&(__mftfGt=$&ElqF#OCeE5T^#F z?CHh=0J4&PRg`vNKIILg26=qyL~&cE!9{7gcGMAjwU{xRTwGDLsU|^4!4Q;Vhu;$ZE#83JVxK z6qr}r?0svajxyu|>@;*$mG_2a764QO-jxcx(%ZN|%U997kg4ywhlsvCWz nhG%*YnOs8++j+#|?EdZanR!pW^2a_3CVmh|N%d?W!Vus;a3p6i diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Channel.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Channel.php deleted file mode 100644 index 6a51e006a6f7..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Channel.php +++ /dev/null @@ -1,458 +0,0 @@ -google.cloud.eventarc.v1.Channel - */ -class Channel extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the channel. Must be unique within the - * location on the project and must be in - * `projects/{project}/locations/{location}/channels/{channel_id}` format. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * The name of the event provider (e.g. Eventarc SaaS partner) associated - * with the channel. This provider will be granted permissions to publish - * events to the channel. Format: - * `projects/{project}/locations/{location}/providers/{provider_id}`. - * - * Generated from protobuf field string provider = 7; - */ - protected $provider = ''; - /** - * Output only. The state of a Channel. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Channel.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $state = 0; - /** - * Output only. The activation token for the channel. The token must be used - * by the provider to register the channel for publishing. - * - * Generated from protobuf field string activation_token = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $activation_token = ''; - /** - * Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 11 [(.google.api.resource_reference) = { - */ - protected $crypto_key_name = ''; - /** - * Output only. Whether or not this Channel satisfies the requirements of - * physical zone separation - * - * Generated from protobuf field bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = false; - protected $transport; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the channel. Must be unique within the - * location on the project and must be in - * `projects/{project}/locations/{location}/channels/{channel_id}` format. - * @type string $uid - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last-modified time. - * @type string $provider - * The name of the event provider (e.g. Eventarc SaaS partner) associated - * with the channel. This provider will be granted permissions to publish - * events to the channel. Format: - * `projects/{project}/locations/{location}/providers/{provider_id}`. - * @type string $pubsub_topic - * Output only. The name of the Pub/Sub topic created and managed by - * Eventarc system as a transport for the event delivery. Format: - * `projects/{project}/topics/{topic_id}`. - * @type int $state - * Output only. The state of a Channel. - * @type string $activation_token - * Output only. The activation token for the channel. The token must be used - * by the provider to register the channel for publishing. - * @type string $crypto_key_name - * Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * @type bool $satisfies_pzs - * Output only. Whether or not this Channel satisfies the requirements of - * physical zone separation - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Channel::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the channel. Must be unique within the - * location on the project and must be in - * `projects/{project}/locations/{location}/channels/{channel_id}` format. - * - * 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. Must be unique within the - * location on the project and must be in - * `projects/{project}/locations/{location}/channels/{channel_id}` format. - * - * 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; - } - - /** - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * The name of the event provider (e.g. Eventarc SaaS partner) associated - * with the channel. This provider will be granted permissions to publish - * events to the channel. Format: - * `projects/{project}/locations/{location}/providers/{provider_id}`. - * - * Generated from protobuf field string provider = 7; - * @return string - */ - public function getProvider() - { - return $this->provider; - } - - /** - * The name of the event provider (e.g. Eventarc SaaS partner) associated - * with the channel. This provider will be granted permissions to publish - * events to the channel. Format: - * `projects/{project}/locations/{location}/providers/{provider_id}`. - * - * Generated from protobuf field string provider = 7; - * @param string $var - * @return $this - */ - public function setProvider($var) - { - GPBUtil::checkString($var, True); - $this->provider = $var; - - return $this; - } - - /** - * Output only. The name of the Pub/Sub topic created and managed by - * Eventarc system as a transport for the event delivery. Format: - * `projects/{project}/topics/{topic_id}`. - * - * Generated from protobuf field string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getPubsubTopic() - { - return $this->readOneof(8); - } - - public function hasPubsubTopic() - { - return $this->hasOneof(8); - } - - /** - * Output only. The name of the Pub/Sub topic created and managed by - * Eventarc system as a transport for the event delivery. Format: - * `projects/{project}/topics/{topic_id}`. - * - * Generated from protobuf field string pubsub_topic = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setPubsubTopic($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Output only. The state of a Channel. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Channel.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return int - */ - public function getState() - { - return $this->state; - } - - /** - * Output only. The state of a Channel. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Channel.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param int $var - * @return $this - */ - public function setState($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Eventarc\V1\Channel\State::class); - $this->state = $var; - - return $this; - } - - /** - * Output only. The activation token for the channel. The token must be used - * by the provider to register the channel for publishing. - * - * Generated from protobuf field string activation_token = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getActivationToken() - { - return $this->activation_token; - } - - /** - * Output only. The activation token for the channel. The token must be used - * by the provider to register the channel for publishing. - * - * Generated from protobuf field string activation_token = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setActivationToken($var) - { - GPBUtil::checkString($var, True); - $this->activation_token = $var; - - return $this; - } - - /** - * Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 11 [(.google.api.resource_reference) = { - * @return string - */ - public function getCryptoKeyName() - { - return $this->crypto_key_name; - } - - /** - * Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 11 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCryptoKeyName($var) - { - GPBUtil::checkString($var, True); - $this->crypto_key_name = $var; - - return $this; - } - - /** - * Output only. Whether or not this Channel satisfies the requirements of - * physical zone separation - * - * Generated from protobuf field bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzs() - { - return $this->satisfies_pzs; - } - - /** - * Output only. Whether or not this Channel satisfies the requirements of - * physical zone separation - * - * Generated from protobuf field bool satisfies_pzs = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * @return string - */ - public function getTransport() - { - return $this->whichOneof("transport"); - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Channel/State.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Channel/State.php deleted file mode 100644 index f20e5c4d3786..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Channel/State.php +++ /dev/null @@ -1,82 +0,0 @@ -google.cloud.eventarc.v1.Channel.State - */ -class State -{ - /** - * Default value. This value is unused. - * - * Generated from protobuf enum STATE_UNSPECIFIED = 0; - */ - const STATE_UNSPECIFIED = 0; - /** - * The PENDING state indicates that a Channel has been created successfully - * and there is a new activation token available for the subscriber to use - * to convey the Channel to the provider in order to create a Connection. - * - * Generated from protobuf enum PENDING = 1; - */ - const PENDING = 1; - /** - * The ACTIVE state indicates that a Channel has been successfully - * connected with the event provider. - * An ACTIVE Channel is ready to receive and route events from the - * event provider. - * - * Generated from protobuf enum ACTIVE = 2; - */ - const ACTIVE = 2; - /** - * The INACTIVE state indicates that the Channel cannot receive events - * permanently. There are two possible cases this state can happen: - * 1. The SaaS provider disconnected from this Channel. - * 2. The Channel activation token has expired but the SaaS provider - * wasn't connected. - * To re-establish a Connection with a provider, the subscriber - * should create a new Channel and give it to the provider. - * - * Generated from protobuf enum INACTIVE = 3; - */ - const INACTIVE = 3; - - private static $valueToName = [ - self::STATE_UNSPECIFIED => 'STATE_UNSPECIFIED', - self::PENDING => 'PENDING', - self::ACTIVE => 'ACTIVE', - self::INACTIVE => 'INACTIVE', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(State::class, \Google\Cloud\Eventarc\V1\Channel_State::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ChannelConnection.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ChannelConnection.php deleted file mode 100644 index 1478f29772d9..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ChannelConnection.php +++ /dev/null @@ -1,284 +0,0 @@ -google.cloud.eventarc.v1.ChannelConnection - */ -class ChannelConnection extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the connection. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Output only. Server assigned ID of the resource. - * The server guarantees uniqueness and immutability until deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Required. The name of the connected subscriber Channel. - * This is a weak reference to avoid cross project and cross accounts - * references. This must be in - * `projects/{project}/location/{location}/channels/{channel_id}` format. - * - * Generated from protobuf field string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $channel = ''; - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Input only. Activation token for the channel. The token will be used - * during the creation of ChannelConnection to bind the channel with the - * provider project. This field will not be stored in the provider resource. - * - * Generated from protobuf field string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY]; - */ - protected $activation_token = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the connection. - * @type string $uid - * Output only. Server assigned ID of the resource. - * The server guarantees uniqueness and immutability until deleted. - * @type string $channel - * Required. The name of the connected subscriber Channel. - * This is a weak reference to avoid cross project and cross accounts - * references. This must be in - * `projects/{project}/location/{location}/channels/{channel_id}` format. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last-modified time. - * @type string $activation_token - * Input only. Activation token for the channel. The token will be used - * during the creation of ChannelConnection to bind the channel with the - * provider project. This field will not be stored in the provider resource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\ChannelConnection::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the connection. - * - * 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 connection. - * - * 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; - } - - /** - * Output only. Server assigned ID of the resource. - * The server guarantees uniqueness and immutability until deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Server assigned ID of the resource. - * The server guarantees uniqueness and immutability until deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Required. The name of the connected subscriber Channel. - * This is a weak reference to avoid cross project and cross accounts - * references. This must be in - * `projects/{project}/location/{location}/channels/{channel_id}` format. - * - * Generated from protobuf field string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getChannel() - { - return $this->channel; - } - - /** - * Required. The name of the connected subscriber Channel. - * This is a weak reference to avoid cross project and cross accounts - * references. This must be in - * `projects/{project}/location/{location}/channels/{channel_id}` format. - * - * Generated from protobuf field string channel = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkString($var, True); - $this->channel = $var; - - return $this; - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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 time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 6 [(.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-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 7 [(.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; - } - - /** - * Input only. Activation token for the channel. The token will be used - * during the creation of ChannelConnection to bind the channel with the - * provider project. This field will not be stored in the provider resource. - * - * Generated from protobuf field string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return string - */ - public function getActivationToken() - { - return $this->activation_token; - } - - /** - * Input only. Activation token for the channel. The token will be used - * during the creation of ChannelConnection to bind the channel with the - * provider project. This field will not be stored in the provider resource. - * - * Generated from protobuf field string activation_token = 8 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setActivationToken($var) - { - GPBUtil::checkString($var, True); - $this->activation_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CloudRun.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CloudRun.php deleted file mode 100644 index 1b030dca2294..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CloudRun.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.eventarc.v1.CloudRun - */ -class CloudRun extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Cloud Run service being addressed. See - * https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. - * Only services located in the same project as the trigger object - * can be addressed. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service = ''; - /** - * Optional. The relative path on the Cloud Run service the events should be - * sent to. - * The value must conform to the definition of a URI path segment (section 3.3 - * of RFC2396). Examples: "/route", "route", "route/subroute". - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $path = ''; - /** - * Required. The region the Cloud Run service is deployed in. - * - * Generated from protobuf field string region = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $region = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service - * Required. The name of the Cloud Run service being addressed. See - * https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. - * Only services located in the same project as the trigger object - * can be addressed. - * @type string $path - * Optional. The relative path on the Cloud Run service the events should be - * sent to. - * The value must conform to the definition of a URI path segment (section 3.3 - * of RFC2396). Examples: "/route", "route", "route/subroute". - * @type string $region - * Required. The region the Cloud Run service is deployed in. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Trigger::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Cloud Run service being addressed. See - * https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. - * Only services located in the same project as the trigger object - * can be addressed. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. The name of the Cloud Run service being addressed. See - * https://cloud.google.com/run/docs/reference/rest/v1/namespaces.services. - * Only services located in the same project as the trigger object - * can be addressed. - * - * Generated from protobuf field string service = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Optional. The relative path on the Cloud Run service the events should be - * sent to. - * The value must conform to the definition of a URI path segment (section 3.3 - * of RFC2396). Examples: "/route", "route", "route/subroute". - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Optional. The relative path on the Cloud Run service the events should be - * sent to. - * The value must conform to the definition of a URI path segment (section 3.3 - * of RFC2396). Examples: "/route", "route", "route/subroute". - * - * Generated from protobuf field string path = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - - /** - * Required. The region the Cloud Run service is deployed in. - * - * Generated from protobuf field string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getRegion() - { - return $this->region; - } - - /** - * Required. The region the Cloud Run service is deployed in. - * - * Generated from protobuf field string region = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setRegion($var) - { - GPBUtil::checkString($var, True); - $this->region = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateChannelConnectionRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateChannelConnectionRequest.php deleted file mode 100644 index db746856ae6a..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateChannelConnectionRequest.php +++ /dev/null @@ -1,163 +0,0 @@ -google.cloud.eventarc.v1.CreateChannelConnectionRequest - */ -class CreateChannelConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which to add this channel connection. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. Channel connection to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.ChannelConnection channel_connection = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $channel_connection = null; - /** - * Required. The user-provided ID to be assigned to the channel connection. - * - * Generated from protobuf field string channel_connection_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $channel_connection_id = ''; - - /** - * @param string $parent Required. The parent collection in which to add this channel connection. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Eventarc\V1\ChannelConnection $channelConnection Required. Channel connection to create. - * @param string $channelConnectionId Required. The user-provided ID to be assigned to the channel connection. - * - * @return \Google\Cloud\Eventarc\V1\CreateChannelConnectionRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Eventarc\V1\ChannelConnection $channelConnection, string $channelConnectionId): self - { - return (new self()) - ->setParent($parent) - ->setChannelConnection($channelConnection) - ->setChannelConnectionId($channelConnectionId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which to add this channel connection. - * @type \Google\Cloud\Eventarc\V1\ChannelConnection $channel_connection - * Required. Channel connection to create. - * @type string $channel_connection_id - * Required. The user-provided ID to be assigned to the channel connection. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which to add this channel connection. - * - * Generated 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 collection in which to add this channel connection. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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. Channel connection to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.ChannelConnection channel_connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\ChannelConnection|null - */ - public function getChannelConnection() - { - return $this->channel_connection; - } - - public function hasChannelConnection() - { - return isset($this->channel_connection); - } - - public function clearChannelConnection() - { - unset($this->channel_connection); - } - - /** - * Required. Channel connection to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.ChannelConnection channel_connection = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\ChannelConnection $var - * @return $this - */ - public function setChannelConnection($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\ChannelConnection::class); - $this->channel_connection = $var; - - return $this; - } - - /** - * Required. The user-provided ID to be assigned to the channel connection. - * - * Generated from protobuf field string channel_connection_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getChannelConnectionId() - { - return $this->channel_connection_id; - } - - /** - * Required. The user-provided ID to be assigned to the channel connection. - * - * Generated from protobuf field string channel_connection_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setChannelConnectionId($var) - { - GPBUtil::checkString($var, True); - $this->channel_connection_id = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateChannelRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateChannelRequest.php deleted file mode 100644 index be57772dd014..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateChannelRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.eventarc.v1.CreateChannelRequest - */ -class CreateChannelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which to add this channel. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The channel to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $channel = null; - /** - * Required. The user-provided ID to be assigned to the channel. - * - * Generated from protobuf field string channel_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $channel_id = ''; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which to add this channel. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Eventarc\V1\Channel $channel Required. The channel to create. - * @param string $channelId Required. The user-provided ID to be assigned to the channel. - * - * @return \Google\Cloud\Eventarc\V1\CreateChannelRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Eventarc\V1\Channel $channel, string $channelId): self - { - return (new self()) - ->setParent($parent) - ->setChannel($channel) - ->setChannelId($channelId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which to add this channel. - * @type \Google\Cloud\Eventarc\V1\Channel $channel - * Required. The channel to create. - * @type string $channel_id - * Required. The user-provided ID to be assigned to the channel. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which to add this channel. - * - * Generated 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 collection in which to add this channel. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 channel to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\Channel|null - */ - public function getChannel() - { - return $this->channel; - } - - public function hasChannel() - { - return isset($this->channel); - } - - public function clearChannel() - { - unset($this->channel); - } - - /** - * Required. The channel to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Channel channel = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\Channel $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Channel::class); - $this->channel = $var; - - return $this; - } - - /** - * Required. The user-provided ID to be assigned to the channel. - * - * Generated from protobuf field string channel_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getChannelId() - { - return $this->channel_id; - } - - /** - * Required. The user-provided ID to be assigned to the channel. - * - * Generated from protobuf field string channel_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setChannelId($var) - { - GPBUtil::checkString($var, True); - $this->channel_id = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateEnrollmentRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateEnrollmentRequest.php deleted file mode 100644 index 541e6796863a..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateEnrollmentRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.cloud.eventarc.v1.CreateEnrollmentRequest - */ -class CreateEnrollmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which to add this enrollment. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The enrollment to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enrollment = null; - /** - * Required. The user-provided ID to be assigned to the Enrollment. It should - * match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). - * - * Generated from protobuf field string enrollment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enrollment_id = ''; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which to add this enrollment. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Eventarc\V1\Enrollment $enrollment Required. The enrollment to create. - * @param string $enrollmentId Required. The user-provided ID to be assigned to the Enrollment. It should - * match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). - * - * @return \Google\Cloud\Eventarc\V1\CreateEnrollmentRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Eventarc\V1\Enrollment $enrollment, string $enrollmentId): self - { - return (new self()) - ->setParent($parent) - ->setEnrollment($enrollment) - ->setEnrollmentId($enrollmentId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which to add this enrollment. - * @type \Google\Cloud\Eventarc\V1\Enrollment $enrollment - * Required. The enrollment to create. - * @type string $enrollment_id - * Required. The user-provided ID to be assigned to the Enrollment. It should - * match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which to add this enrollment. - * - * Generated 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 collection in which to add this enrollment. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 enrollment to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\Enrollment|null - */ - public function getEnrollment() - { - return $this->enrollment; - } - - public function hasEnrollment() - { - return isset($this->enrollment); - } - - public function clearEnrollment() - { - unset($this->enrollment); - } - - /** - * Required. The enrollment to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Enrollment enrollment = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\Enrollment $var - * @return $this - */ - public function setEnrollment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Enrollment::class); - $this->enrollment = $var; - - return $this; - } - - /** - * Required. The user-provided ID to be assigned to the Enrollment. It should - * match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). - * - * Generated from protobuf field string enrollment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getEnrollmentId() - { - return $this->enrollment_id; - } - - /** - * Required. The user-provided ID to be assigned to the Enrollment. It should - * match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). - * - * Generated from protobuf field string enrollment_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setEnrollmentId($var) - { - GPBUtil::checkString($var, True); - $this->enrollment_id = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateGoogleApiSourceRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateGoogleApiSourceRequest.php deleted file mode 100644 index 5070ae20182c..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateGoogleApiSourceRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.cloud.eventarc.v1.CreateGoogleApiSourceRequest - */ -class CreateGoogleApiSourceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which to add this google api source. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The google api source to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $google_api_source = null; - /** - * Required. The user-provided ID to be assigned to the GoogleApiSource. It - * should match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). - * - * Generated from protobuf field string google_api_source_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $google_api_source_id = ''; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which to add this google api source. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Eventarc\V1\GoogleApiSource $googleApiSource Required. The google api source to create. - * @param string $googleApiSourceId Required. The user-provided ID to be assigned to the GoogleApiSource. It - * should match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). - * - * @return \Google\Cloud\Eventarc\V1\CreateGoogleApiSourceRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Eventarc\V1\GoogleApiSource $googleApiSource, string $googleApiSourceId): self - { - return (new self()) - ->setParent($parent) - ->setGoogleApiSource($googleApiSource) - ->setGoogleApiSourceId($googleApiSourceId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which to add this google api source. - * @type \Google\Cloud\Eventarc\V1\GoogleApiSource $google_api_source - * Required. The google api source to create. - * @type string $google_api_source_id - * Required. The user-provided ID to be assigned to the GoogleApiSource. It - * should match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which to add this google api source. - * - * Generated 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 collection in which to add this google api source. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 google api source to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\GoogleApiSource|null - */ - public function getGoogleApiSource() - { - return $this->google_api_source; - } - - public function hasGoogleApiSource() - { - return isset($this->google_api_source); - } - - public function clearGoogleApiSource() - { - unset($this->google_api_source); - } - - /** - * Required. The google api source to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\GoogleApiSource $var - * @return $this - */ - public function setGoogleApiSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\GoogleApiSource::class); - $this->google_api_source = $var; - - return $this; - } - - /** - * Required. The user-provided ID to be assigned to the GoogleApiSource. It - * should match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). - * - * Generated from protobuf field string google_api_source_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getGoogleApiSourceId() - { - return $this->google_api_source_id; - } - - /** - * Required. The user-provided ID to be assigned to the GoogleApiSource. It - * should match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$). - * - * Generated from protobuf field string google_api_source_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setGoogleApiSourceId($var) - { - GPBUtil::checkString($var, True); - $this->google_api_source_id = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateMessageBusRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateMessageBusRequest.php deleted file mode 100644 index 76d38e323df2..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateMessageBusRequest.php +++ /dev/null @@ -1,206 +0,0 @@ -google.cloud.eventarc.v1.CreateMessageBusRequest - */ -class CreateMessageBusRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which to add this message bus. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The message bus to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $message_bus = null; - /** - * Required. The user-provided ID to be assigned to the MessageBus. It should - * match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) - * - * Generated from protobuf field string message_bus_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $message_bus_id = ''; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which to add this message bus. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Eventarc\V1\MessageBus $messageBus Required. The message bus to create. - * @param string $messageBusId Required. The user-provided ID to be assigned to the MessageBus. It should - * match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) - * - * @return \Google\Cloud\Eventarc\V1\CreateMessageBusRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Eventarc\V1\MessageBus $messageBus, string $messageBusId): self - { - return (new self()) - ->setParent($parent) - ->setMessageBus($messageBus) - ->setMessageBusId($messageBusId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which to add this message bus. - * @type \Google\Cloud\Eventarc\V1\MessageBus $message_bus - * Required. The message bus to create. - * @type string $message_bus_id - * Required. The user-provided ID to be assigned to the MessageBus. It should - * match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which to add this message bus. - * - * Generated 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 collection in which to add this message bus. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 message bus to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\MessageBus|null - */ - public function getMessageBus() - { - return $this->message_bus; - } - - public function hasMessageBus() - { - return isset($this->message_bus); - } - - public function clearMessageBus() - { - unset($this->message_bus); - } - - /** - * Required. The message bus to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.MessageBus message_bus = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\MessageBus $var - * @return $this - */ - public function setMessageBus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\MessageBus::class); - $this->message_bus = $var; - - return $this; - } - - /** - * Required. The user-provided ID to be assigned to the MessageBus. It should - * match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) - * - * Generated from protobuf field string message_bus_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMessageBusId() - { - return $this->message_bus_id; - } - - /** - * Required. The user-provided ID to be assigned to the MessageBus. It should - * match the format (^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$) - * - * Generated from protobuf field string message_bus_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMessageBusId($var) - { - GPBUtil::checkString($var, True); - $this->message_bus_id = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreatePipelineRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreatePipelineRequest.php deleted file mode 100644 index c09197f49b40..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreatePipelineRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.eventarc.v1.CreatePipelineRequest - */ -class CreatePipelineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which to add this pipeline. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The pipeline to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $pipeline = null; - /** - * Required. The user-provided ID to be assigned to the Pipeline. - * - * Generated from protobuf field string pipeline_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $pipeline_id = ''; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which to add this pipeline. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Eventarc\V1\Pipeline $pipeline Required. The pipeline to create. - * @param string $pipelineId Required. The user-provided ID to be assigned to the Pipeline. - * - * @return \Google\Cloud\Eventarc\V1\CreatePipelineRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Eventarc\V1\Pipeline $pipeline, string $pipelineId): self - { - return (new self()) - ->setParent($parent) - ->setPipeline($pipeline) - ->setPipelineId($pipelineId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which to add this pipeline. - * @type \Google\Cloud\Eventarc\V1\Pipeline $pipeline - * Required. The pipeline to create. - * @type string $pipeline_id - * Required. The user-provided ID to be assigned to the Pipeline. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which to add this pipeline. - * - * Generated 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 collection in which to add this pipeline. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 pipeline to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\Pipeline|null - */ - public function getPipeline() - { - return $this->pipeline; - } - - public function hasPipeline() - { - return isset($this->pipeline); - } - - public function clearPipeline() - { - unset($this->pipeline); - } - - /** - * Required. The pipeline to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline pipeline = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\Pipeline $var - * @return $this - */ - public function setPipeline($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline::class); - $this->pipeline = $var; - - return $this; - } - - /** - * Required. The user-provided ID to be assigned to the Pipeline. - * - * Generated from protobuf field string pipeline_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getPipelineId() - { - return $this->pipeline_id; - } - - /** - * Required. The user-provided ID to be assigned to the Pipeline. - * - * Generated from protobuf field string pipeline_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setPipelineId($var) - { - GPBUtil::checkString($var, True); - $this->pipeline_id = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateTriggerRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateTriggerRequest.php deleted file mode 100644 index 98083421cc3b..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/CreateTriggerRequest.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.eventarc.v1.CreateTriggerRequest - */ -class CreateTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection in which to add this trigger. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Required. The trigger to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trigger = null; - /** - * Required. The user-provided ID to be assigned to the trigger. - * - * Generated from protobuf field string trigger_id = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $trigger_id = ''; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $parent Required. The parent collection in which to add this trigger. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * @param \Google\Cloud\Eventarc\V1\Trigger $trigger Required. The trigger to create. - * @param string $triggerId Required. The user-provided ID to be assigned to the trigger. - * - * @return \Google\Cloud\Eventarc\V1\CreateTriggerRequest - * - * @experimental - */ - public static function build(string $parent, \Google\Cloud\Eventarc\V1\Trigger $trigger, string $triggerId): self - { - return (new self()) - ->setParent($parent) - ->setTrigger($trigger) - ->setTriggerId($triggerId); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $parent - * Required. The parent collection in which to add this trigger. - * @type \Google\Cloud\Eventarc\V1\Trigger $trigger - * Required. The trigger to create. - * @type string $trigger_id - * Required. The user-provided ID to be assigned to the trigger. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection in which to add this trigger. - * - * Generated 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 collection in which to add this trigger. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 trigger to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\Trigger|null - */ - public function getTrigger() - { - return $this->trigger; - } - - public function hasTrigger() - { - return isset($this->trigger); - } - - public function clearTrigger() - { - unset($this->trigger); - } - - /** - * Required. The trigger to create. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Trigger trigger = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\Trigger $var - * @return $this - */ - public function setTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Trigger::class); - $this->trigger = $var; - - return $this; - } - - /** - * Required. The user-provided ID to be assigned to the trigger. - * - * Generated from protobuf field string trigger_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getTriggerId() - { - return $this->trigger_id; - } - - /** - * Required. The user-provided ID to be assigned to the trigger. - * - * Generated from protobuf field string trigger_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setTriggerId($var) - { - GPBUtil::checkString($var, True); - $this->trigger_id = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteChannelConnectionRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteChannelConnectionRequest.php deleted file mode 100644 index a4809ebcf693..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteChannelConnectionRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.eventarc.v1.DeleteChannelConnectionRequest - */ -class DeleteChannelConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the channel connection 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 channel connection to delete. Please see - * {@see EventarcClient::channelConnectionName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\DeleteChannelConnectionRequest - * - * @experimental - */ - public static function 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 channel connection to delete. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the channel connection 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 channel connection 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteChannelRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteChannelRequest.php deleted file mode 100644 index 590a423a9f6e..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteChannelRequest.php +++ /dev/null @@ -1,119 +0,0 @@ -google.cloud.eventarc.v1.DeleteChannelRequest - */ -class DeleteChannelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the channel to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the channel to be deleted. Please see - * {@see EventarcClient::channelName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\DeleteChannelRequest - * - * @experimental - */ - public static function 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 channel to be deleted. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the channel to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the channel to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteEnrollmentRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteEnrollmentRequest.php deleted file mode 100644 index 4eef495161bc..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteEnrollmentRequest.php +++ /dev/null @@ -1,198 +0,0 @@ -google.cloud.eventarc.v1.DeleteEnrollmentRequest - */ -class DeleteEnrollmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Enrollment to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If provided, the Enrollment will only be deleted if the etag - * matches the current etag on the resource. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. If set to true, and the Enrollment is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the Enrollment to be deleted. Please see - * {@see EventarcClient::enrollmentName()} for help formatting this field. - * @param string $etag Optional. If provided, the Enrollment will only be deleted if the etag - * matches the current etag on the resource. - * - * @return \Google\Cloud\Eventarc\V1\DeleteEnrollmentRequest - * - * @experimental - */ - public static function build(string $name, string $etag): self - { - return (new self()) - ->setName($name) - ->setEtag($etag); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Enrollment to be deleted. - * @type string $etag - * Optional. If provided, the Enrollment will only be deleted if the etag - * matches the current etag on the resource. - * @type bool $allow_missing - * Optional. If set to true, and the Enrollment is not found, the request will - * succeed but no action will be taken on the server. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Enrollment to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Enrollment to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If provided, the Enrollment will only be deleted if the etag - * matches the current etag on the resource. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. If provided, the Enrollment will only be deleted if the etag - * matches the current etag on the resource. - * - * 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. If set to true, and the Enrollment is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, and the Enrollment is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteGoogleApiSourceRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteGoogleApiSourceRequest.php deleted file mode 100644 index dc9beaf2e21d..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteGoogleApiSourceRequest.php +++ /dev/null @@ -1,198 +0,0 @@ -google.cloud.eventarc.v1.DeleteGoogleApiSourceRequest - */ -class DeleteGoogleApiSourceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the GoogleApiSource to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If provided, the MessageBus will only be deleted if the etag - * matches the current etag on the resource. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. If set to true, and the MessageBus is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the GoogleApiSource to be deleted. Please see - * {@see EventarcClient::googleApiSourceName()} for help formatting this field. - * @param string $etag Optional. If provided, the MessageBus will only be deleted if the etag - * matches the current etag on the resource. - * - * @return \Google\Cloud\Eventarc\V1\DeleteGoogleApiSourceRequest - * - * @experimental - */ - public static function build(string $name, string $etag): self - { - return (new self()) - ->setName($name) - ->setEtag($etag); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the GoogleApiSource to be deleted. - * @type string $etag - * Optional. If provided, the MessageBus will only be deleted if the etag - * matches the current etag on the resource. - * @type bool $allow_missing - * Optional. If set to true, and the MessageBus is not found, the request will - * succeed but no action will be taken on the server. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the GoogleApiSource to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the GoogleApiSource to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If provided, the MessageBus will only be deleted if the etag - * matches the current etag on the resource. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. If provided, the MessageBus will only be deleted if the etag - * matches the current etag on the resource. - * - * 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. If set to true, and the MessageBus is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, and the MessageBus is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteMessageBusRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteMessageBusRequest.php deleted file mode 100644 index 8b71397cc98d..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteMessageBusRequest.php +++ /dev/null @@ -1,198 +0,0 @@ -google.cloud.eventarc.v1.DeleteMessageBusRequest - */ -class DeleteMessageBusRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the MessageBus to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If provided, the MessageBus will only be deleted if the etag - * matches the current etag on the resource. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. If set to true, and the MessageBus is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the MessageBus to be deleted. Please see - * {@see EventarcClient::messageBusName()} for help formatting this field. - * @param string $etag Optional. If provided, the MessageBus will only be deleted if the etag - * matches the current etag on the resource. - * - * @return \Google\Cloud\Eventarc\V1\DeleteMessageBusRequest - * - * @experimental - */ - public static function build(string $name, string $etag): self - { - return (new self()) - ->setName($name) - ->setEtag($etag); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the MessageBus to be deleted. - * @type string $etag - * Optional. If provided, the MessageBus will only be deleted if the etag - * matches the current etag on the resource. - * @type bool $allow_missing - * Optional. If set to true, and the MessageBus is not found, the request will - * succeed but no action will be taken on the server. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the MessageBus to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the MessageBus to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If provided, the MessageBus will only be deleted if the etag - * matches the current etag on the resource. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. If provided, the MessageBus will only be deleted if the etag - * matches the current etag on the resource. - * - * 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. If set to true, and the MessageBus is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, and the MessageBus is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeletePipelineRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeletePipelineRequest.php deleted file mode 100644 index 360d61522744..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeletePipelineRequest.php +++ /dev/null @@ -1,198 +0,0 @@ -google.cloud.eventarc.v1.DeletePipelineRequest - */ -class DeletePipelineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Pipeline to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * Optional. If provided, the Pipeline will only be deleted if the etag - * matches the current etag on the resource. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $etag = ''; - /** - * Optional. If set to true, and the Pipeline is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the Pipeline to be deleted. Please see - * {@see EventarcClient::pipelineName()} for help formatting this field. - * @param string $etag Optional. If provided, the Pipeline will only be deleted if the etag - * matches the current etag on the resource. - * - * @return \Google\Cloud\Eventarc\V1\DeletePipelineRequest - * - * @experimental - */ - public static function build(string $name, string $etag): self - { - return (new self()) - ->setName($name) - ->setEtag($etag); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the Pipeline to be deleted. - * @type string $etag - * Optional. If provided, the Pipeline will only be deleted if the etag - * matches the current etag on the resource. - * @type bool $allow_missing - * Optional. If set to true, and the Pipeline is not found, the request will - * succeed but no action will be taken on the server. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Pipeline to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the Pipeline to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * Optional. If provided, the Pipeline will only be deleted if the etag - * matches the current etag on the resource. - * - * Generated from protobuf field string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Optional. If provided, the Pipeline will only be deleted if the etag - * matches the current etag on the resource. - * - * 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. If set to true, and the Pipeline is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, and the Pipeline is not found, the request will - * succeed but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteTriggerRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteTriggerRequest.php deleted file mode 100644 index 43ad08d1b38e..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/DeleteTriggerRequest.php +++ /dev/null @@ -1,198 +0,0 @@ -google.cloud.eventarc.v1.DeleteTriggerRequest - */ -class DeleteTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the trigger to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $name = ''; - /** - * If provided, the trigger will only be deleted if the etag matches the - * current etag on the resource. - * - * Generated from protobuf field string etag = 2; - */ - protected $etag = ''; - /** - * If set to true, and the trigger is not found, the request will succeed - * but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param string $name Required. The name of the trigger to be deleted. Please see - * {@see EventarcClient::triggerName()} for help formatting this field. - * @param bool $allowMissing If set to true, and the trigger is not found, the request will succeed - * but no action will be taken on the server. - * - * @return \Google\Cloud\Eventarc\V1\DeleteTriggerRequest - * - * @experimental - */ - public static function build(string $name, bool $allowMissing): self - { - return (new self()) - ->setName($name) - ->setAllowMissing($allowMissing); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the trigger to be deleted. - * @type string $etag - * If provided, the trigger will only be deleted if the etag matches the - * current etag on the resource. - * @type bool $allow_missing - * If set to true, and the trigger is not found, the request will succeed - * but no action will be taken on the server. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the trigger to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Required. The name of the trigger to be deleted. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setName($var) - { - GPBUtil::checkString($var, True); - $this->name = $var; - - return $this; - } - - /** - * If provided, the trigger will only be deleted if the etag matches the - * current etag on the resource. - * - * Generated from protobuf field string etag = 2; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * If provided, the trigger will only be deleted if the etag matches the - * current etag on the resource. - * - * Generated from protobuf field string etag = 2; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * If set to true, and the trigger is not found, the request will succeed - * but no action will be taken on the server. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the trigger is not found, the request will succeed - * but no action will be taken on the server. - * - * 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; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Destination.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Destination.php deleted file mode 100644 index 0399e85771e5..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Destination.php +++ /dev/null @@ -1,289 +0,0 @@ -google.cloud.eventarc.v1.Destination - */ -class Destination extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Network config is used to configure how Eventarc resolves and - * connect to a destination. - * This should only be used with HttpEndpoint destination type. - * - * Generated from protobuf field .google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $network_config = null; - protected $descriptor; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\CloudRun $cloud_run - * Cloud Run fully-managed resource that receives the events. The resource - * should be in the same project as the trigger. - * @type string $cloud_function - * The Cloud Function resource name. Cloud Functions V1 and V2 are - * supported. - * Format: `projects/{project}/locations/{location}/functions/{function}` - * This is a read-only field. Creating Cloud Functions V1/V2 triggers is - * only supported via the Cloud Functions product. An error will be returned - * if the user sets this value. - * @type \Google\Cloud\Eventarc\V1\GKE $gke - * A GKE service capable of receiving events. The service should be running - * in the same project as the trigger. - * @type string $workflow - * The resource name of the Workflow whose Executions are triggered by - * the events. The Workflow resource should be deployed in the same project - * as the trigger. - * Format: `projects/{project}/locations/{location}/workflows/{workflow}` - * @type \Google\Cloud\Eventarc\V1\HttpEndpoint $http_endpoint - * An HTTP endpoint destination described by an URI. - * @type \Google\Cloud\Eventarc\V1\NetworkConfig $network_config - * Optional. Network config is used to configure how Eventarc resolves and - * connect to a destination. - * This should only be used with HttpEndpoint destination type. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Trigger::initOnce(); - parent::__construct($data); - } - - /** - * Cloud Run fully-managed resource that receives the events. The resource - * should be in the same project as the trigger. - * - * Generated from protobuf field .google.cloud.eventarc.v1.CloudRun cloud_run = 1; - * @return \Google\Cloud\Eventarc\V1\CloudRun|null - */ - public function getCloudRun() - { - return $this->readOneof(1); - } - - public function hasCloudRun() - { - return $this->hasOneof(1); - } - - /** - * Cloud Run fully-managed resource that receives the events. The resource - * should be in the same project as the trigger. - * - * Generated from protobuf field .google.cloud.eventarc.v1.CloudRun cloud_run = 1; - * @param \Google\Cloud\Eventarc\V1\CloudRun $var - * @return $this - */ - public function setCloudRun($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\CloudRun::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * The Cloud Function resource name. Cloud Functions V1 and V2 are - * supported. - * Format: `projects/{project}/locations/{location}/functions/{function}` - * This is a read-only field. Creating Cloud Functions V1/V2 triggers is - * only supported via the Cloud Functions product. An error will be returned - * if the user sets this value. - * - * Generated from protobuf field string cloud_function = 2 [(.google.api.resource_reference) = { - * @return string - */ - public function getCloudFunction() - { - return $this->readOneof(2); - } - - public function hasCloudFunction() - { - return $this->hasOneof(2); - } - - /** - * The Cloud Function resource name. Cloud Functions V1 and V2 are - * supported. - * Format: `projects/{project}/locations/{location}/functions/{function}` - * This is a read-only field. Creating Cloud Functions V1/V2 triggers is - * only supported via the Cloud Functions product. An error will be returned - * if the user sets this value. - * - * Generated from protobuf field string cloud_function = 2 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCloudFunction($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * A GKE service capable of receiving events. The service should be running - * in the same project as the trigger. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GKE gke = 3; - * @return \Google\Cloud\Eventarc\V1\GKE|null - */ - public function getGke() - { - return $this->readOneof(3); - } - - public function hasGke() - { - return $this->hasOneof(3); - } - - /** - * A GKE service capable of receiving events. The service should be running - * in the same project as the trigger. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GKE gke = 3; - * @param \Google\Cloud\Eventarc\V1\GKE $var - * @return $this - */ - public function setGke($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\GKE::class); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The resource name of the Workflow whose Executions are triggered by - * the events. The Workflow resource should be deployed in the same project - * as the trigger. - * Format: `projects/{project}/locations/{location}/workflows/{workflow}` - * - * Generated from protobuf field string workflow = 4 [(.google.api.resource_reference) = { - * @return string - */ - public function getWorkflow() - { - return $this->readOneof(4); - } - - public function hasWorkflow() - { - return $this->hasOneof(4); - } - - /** - * The resource name of the Workflow whose Executions are triggered by - * the events. The Workflow resource should be deployed in the same project - * as the trigger. - * Format: `projects/{project}/locations/{location}/workflows/{workflow}` - * - * Generated from protobuf field string workflow = 4 [(.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkflow($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * An HTTP endpoint destination described by an URI. - * - * Generated from protobuf field .google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5; - * @return \Google\Cloud\Eventarc\V1\HttpEndpoint|null - */ - public function getHttpEndpoint() - { - return $this->readOneof(5); - } - - public function hasHttpEndpoint() - { - return $this->hasOneof(5); - } - - /** - * An HTTP endpoint destination described by an URI. - * - * Generated from protobuf field .google.cloud.eventarc.v1.HttpEndpoint http_endpoint = 5; - * @param \Google\Cloud\Eventarc\V1\HttpEndpoint $var - * @return $this - */ - public function setHttpEndpoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\HttpEndpoint::class); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * Optional. Network config is used to configure how Eventarc resolves and - * connect to a destination. - * This should only be used with HttpEndpoint destination type. - * - * Generated from protobuf field .google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\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); - } - - /** - * Optional. Network config is used to configure how Eventarc resolves and - * connect to a destination. - * This should only be used with HttpEndpoint destination type. - * - * Generated from protobuf field .google.cloud.eventarc.v1.NetworkConfig network_config = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * @return string - */ - public function getDescriptor() - { - return $this->whichOneof("descriptor"); - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Enrollment.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Enrollment.php deleted file mode 100644 index c4ed1239392d..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Enrollment.php +++ /dev/null @@ -1,469 +0,0 @@ -google.cloud.eventarc.v1.Enrollment - */ -class Enrollment extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the form - * projects/{project}/locations/{location}/enrollments/{enrollment} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $etag = ''; - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Resource labels. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Resource annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Optional. Resource display name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Required. A CEL expression identifying which messages this enrollment - * applies to. - * - * Generated from protobuf field string cel_match = 9 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cel_match = ''; - /** - * Required. Resource name of the message bus identifying the source of the - * messages. It matches the form - * projects/{project}/locations/{location}/messageBuses/{messageBus}. - * - * Generated from protobuf field string message_bus = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $message_bus = ''; - /** - * Required. Destination is the Pipeline that the Enrollment is delivering to. - * It must point to the full resource name of a Pipeline. Format: - * "projects/{PROJECT_ID}/locations/{region}/pipelines/{PIPELINE_ID)" - * - * Generated from protobuf field string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $destination = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the form - * projects/{project}/locations/{location}/enrollments/{enrollment} - * @type string $uid - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * @type string $etag - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last-modified time. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Resource annotations. - * @type string $display_name - * Optional. Resource display name. - * @type string $cel_match - * Required. A CEL expression identifying which messages this enrollment - * applies to. - * @type string $message_bus - * Required. Resource name of the message bus identifying the source of the - * messages. It matches the form - * projects/{project}/locations/{location}/messageBuses/{messageBus}. - * @type string $destination - * Required. Destination is the Pipeline that the Enrollment is delivering to. - * It must point to the full resource name of a Pipeline. Format: - * "projects/{PROJECT_ID}/locations/{region}/pipelines/{PIPELINE_ID)" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Enrollment::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the form - * projects/{project}/locations/{location}/enrollments/{enrollment} - * - * 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 form - * projects/{project}/locations/{location}/enrollments/{enrollment} - * - * 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. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Resource labels. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Resource annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Resource annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Optional. Resource display name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Resource display name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. A CEL expression identifying which messages this enrollment - * applies to. - * - * Generated from protobuf field string cel_match = 9 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCelMatch() - { - return $this->cel_match; - } - - /** - * Required. A CEL expression identifying which messages this enrollment - * applies to. - * - * Generated from protobuf field string cel_match = 9 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCelMatch($var) - { - GPBUtil::checkString($var, True); - $this->cel_match = $var; - - return $this; - } - - /** - * Required. Resource name of the message bus identifying the source of the - * messages. It matches the form - * projects/{project}/locations/{location}/messageBuses/{messageBus}. - * - * Generated from protobuf field string message_bus = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getMessageBus() - { - return $this->message_bus; - } - - /** - * Required. Resource name of the message bus identifying the source of the - * messages. It matches the form - * projects/{project}/locations/{location}/messageBuses/{messageBus}. - * - * Generated from protobuf field string message_bus = 10 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setMessageBus($var) - { - GPBUtil::checkString($var, True); - $this->message_bus = $var; - - return $this; - } - - /** - * Required. Destination is the Pipeline that the Enrollment is delivering to. - * It must point to the full resource name of a Pipeline. Format: - * "projects/{PROJECT_ID}/locations/{region}/pipelines/{PIPELINE_ID)" - * - * Generated from protobuf field string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getDestination() - { - return $this->destination; - } - - /** - * Required. Destination is the Pipeline that the Enrollment is delivering to. - * It must point to the full resource name of a Pipeline. Format: - * "projects/{PROJECT_ID}/locations/{region}/pipelines/{PIPELINE_ID)" - * - * Generated from protobuf field string destination = 11 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setDestination($var) - { - GPBUtil::checkString($var, True); - $this->destination = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/EventFilter.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/EventFilter.php deleted file mode 100644 index 1e48fa154dda..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/EventFilter.php +++ /dev/null @@ -1,167 +0,0 @@ -google.cloud.eventarc.v1.EventFilter - */ -class EventFilter extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of a CloudEvents attribute. Currently, only a subset of - * attributes are supported for filtering. You can [retrieve a specific - * provider's supported event - * types](/eventarc/docs/list-providers#describe-provider). - * All triggers MUST provide a filter for the 'type' attribute. - * - * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $attribute = ''; - /** - * Required. The value for the attribute. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $value = ''; - /** - * Optional. The operator used for matching the events with the value of the - * filter. If not specified, only events that have an exact key-value pair - * specified in the filter are matched. The allowed values are `path_pattern` - * and `match-path-pattern`. `path_pattern` is only allowed for GCFv1 - * triggers. - * - * Generated from protobuf field string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $operator = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $attribute - * Required. The name of a CloudEvents attribute. Currently, only a subset of - * attributes are supported for filtering. You can [retrieve a specific - * provider's supported event - * types](/eventarc/docs/list-providers#describe-provider). - * All triggers MUST provide a filter for the 'type' attribute. - * @type string $value - * Required. The value for the attribute. - * @type string $operator - * Optional. The operator used for matching the events with the value of the - * filter. If not specified, only events that have an exact key-value pair - * specified in the filter are matched. The allowed values are `path_pattern` - * and `match-path-pattern`. `path_pattern` is only allowed for GCFv1 - * triggers. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Trigger::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of a CloudEvents attribute. Currently, only a subset of - * attributes are supported for filtering. You can [retrieve a specific - * provider's supported event - * types](/eventarc/docs/list-providers#describe-provider). - * All triggers MUST provide a filter for the 'type' attribute. - * - * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getAttribute() - { - return $this->attribute; - } - - /** - * Required. The name of a CloudEvents attribute. Currently, only a subset of - * attributes are supported for filtering. You can [retrieve a specific - * provider's supported event - * types](/eventarc/docs/list-providers#describe-provider). - * All triggers MUST provide a filter for the 'type' attribute. - * - * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkString($var, True); - $this->attribute = $var; - - return $this; - } - - /** - * Required. The value for the attribute. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * Required. The value for the attribute. - * - * Generated from protobuf field string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setValue($var) - { - GPBUtil::checkString($var, True); - $this->value = $var; - - return $this; - } - - /** - * Optional. The operator used for matching the events with the value of the - * filter. If not specified, only events that have an exact key-value pair - * specified in the filter are matched. The allowed values are `path_pattern` - * and `match-path-pattern`. `path_pattern` is only allowed for GCFv1 - * triggers. - * - * Generated from protobuf field string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOperator() - { - return $this->operator; - } - - /** - * Optional. The operator used for matching the events with the value of the - * filter. If not specified, only events that have an exact key-value pair - * specified in the filter are matched. The allowed values are `path_pattern` - * and `match-path-pattern`. `path_pattern` is only allowed for GCFv1 - * triggers. - * - * Generated from protobuf field string operator = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setOperator($var) - { - GPBUtil::checkString($var, True); - $this->operator = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/EventType.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/EventType.php deleted file mode 100644 index 67e92e6f24f7..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/EventType.php +++ /dev/null @@ -1,201 +0,0 @@ -google.cloud.eventarc.v1.EventType - */ -class EventType extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The full name of the event type (for example, - * "google.cloud.storage.object.v1.finalized"). In the form of - * {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be - * versioned and event schemas are guaranteed to remain backward compatible - * within one version. Note that event type versions and API versions do not - * need to match. - * - * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $type = ''; - /** - * Output only. Human friendly description of what the event type is about. - * For example "Bucket created in Cloud Storage". - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. Filtering attributes for the event type. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $filtering_attributes; - /** - * Output only. URI for the event schema. - * For example - * "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto" - * - * Generated from protobuf field string event_schema_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $event_schema_uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $type - * Output only. The full name of the event type (for example, - * "google.cloud.storage.object.v1.finalized"). In the form of - * {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be - * versioned and event schemas are guaranteed to remain backward compatible - * within one version. Note that event type versions and API versions do not - * need to match. - * @type string $description - * Output only. Human friendly description of what the event type is about. - * For example "Bucket created in Cloud Storage". - * @type array<\Google\Cloud\Eventarc\V1\FilteringAttribute>|\Google\Protobuf\Internal\RepeatedField $filtering_attributes - * Output only. Filtering attributes for the event type. - * @type string $event_schema_uri - * Output only. URI for the event schema. - * For example - * "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto" - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Discovery::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The full name of the event type (for example, - * "google.cloud.storage.object.v1.finalized"). In the form of - * {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be - * versioned and event schemas are guaranteed to remain backward compatible - * within one version. Note that event type versions and API versions do not - * need to match. - * - * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Output only. The full name of the event type (for example, - * "google.cloud.storage.object.v1.finalized"). In the form of - * {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be - * versioned and event schemas are guaranteed to remain backward compatible - * within one version. Note that event type versions and API versions do not - * need to match. - * - * Generated from protobuf field string type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Output only. Human friendly description of what the event type is about. - * For example "Bucket created in Cloud Storage". - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. Human friendly description of what the event type is about. - * For example "Bucket created in Cloud Storage". - * - * 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. Filtering attributes for the event type. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getFilteringAttributes() - { - return $this->filtering_attributes; - } - - /** - * Output only. Filtering attributes for the event type. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.FilteringAttribute filtering_attributes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Eventarc\V1\FilteringAttribute>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setFilteringAttributes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\FilteringAttribute::class); - $this->filtering_attributes = $arr; - - return $this; - } - - /** - * Output only. URI for the event schema. - * For example - * "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto" - * - * Generated from protobuf field string event_schema_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEventSchemaUri() - { - return $this->event_schema_uri; - } - - /** - * Output only. URI for the event schema. - * For example - * "https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto" - * - * Generated from protobuf field string event_schema_uri = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEventSchemaUri($var) - { - GPBUtil::checkString($var, True); - $this->event_schema_uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/FilteringAttribute.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/FilteringAttribute.php deleted file mode 100644 index d36025d717b0..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/FilteringAttribute.php +++ /dev/null @@ -1,178 +0,0 @@ -google.cloud.eventarc.v1.FilteringAttribute - */ -class FilteringAttribute extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. Attribute used for filtering the event type. - * - * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $attribute = ''; - /** - * Output only. Description of the purpose of the attribute. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $description = ''; - /** - * Output only. If true, the triggers for this provider should always specify - * a filter on these attributes. Trigger creation will fail otherwise. - * - * Generated from protobuf field bool required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $required = false; - /** - * Output only. If true, the attribute accepts matching expressions in the - * Eventarc PathPattern format. - * - * Generated from protobuf field bool path_pattern_supported = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $path_pattern_supported = false; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $attribute - * Output only. Attribute used for filtering the event type. - * @type string $description - * Output only. Description of the purpose of the attribute. - * @type bool $required - * Output only. If true, the triggers for this provider should always specify - * a filter on these attributes. Trigger creation will fail otherwise. - * @type bool $path_pattern_supported - * Output only. If true, the attribute accepts matching expressions in the - * Eventarc PathPattern format. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Discovery::initOnce(); - parent::__construct($data); - } - - /** - * Output only. Attribute used for filtering the event type. - * - * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getAttribute() - { - return $this->attribute; - } - - /** - * Output only. Attribute used for filtering the event type. - * - * Generated from protobuf field string attribute = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setAttribute($var) - { - GPBUtil::checkString($var, True); - $this->attribute = $var; - - return $this; - } - - /** - * Output only. Description of the purpose of the attribute. - * - * Generated from protobuf field string description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * Output only. Description of the purpose of the attribute. - * - * 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. If true, the triggers for this provider should always specify - * a filter on these attributes. Trigger creation will fail otherwise. - * - * Generated from protobuf field bool required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequired() - { - return $this->required; - } - - /** - * Output only. If true, the triggers for this provider should always specify - * a filter on these attributes. Trigger creation will fail otherwise. - * - * Generated from protobuf field bool required = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequired($var) - { - GPBUtil::checkBool($var); - $this->required = $var; - - return $this; - } - - /** - * Output only. If true, the attribute accepts matching expressions in the - * Eventarc PathPattern format. - * - * Generated from protobuf field bool path_pattern_supported = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getPathPatternSupported() - { - return $this->path_pattern_supported; - } - - /** - * Output only. If true, the attribute accepts matching expressions in the - * Eventarc PathPattern format. - * - * Generated from protobuf field bool path_pattern_supported = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setPathPatternSupported($var) - { - GPBUtil::checkBool($var); - $this->path_pattern_supported = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GKE.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GKE.php deleted file mode 100644 index 428c452b3e82..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GKE.php +++ /dev/null @@ -1,231 +0,0 @@ -google.cloud.eventarc.v1.GKE - */ -class GKE extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the cluster the GKE service is running in. The - * cluster must be running in the same project as the trigger being created. - * - * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $cluster = ''; - /** - * Required. The name of the Google Compute Engine in which the cluster - * resides, which can either be compute zone (for example, us-central1-a) for - * the zonal clusters or region (for example, us-central1) for regional - * clusters. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $location = ''; - /** - * Required. The namespace the GKE service is running in. - * - * Generated from protobuf field string namespace = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $namespace = ''; - /** - * Required. Name of the GKE service. - * - * Generated from protobuf field string service = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $service = ''; - /** - * Optional. The relative path on the GKE service the events should be sent - * to. - * The value must conform to the definition of a URI path segment (section 3.3 - * of RFC2396). Examples: "/route", "route", "route/subroute". - * - * Generated from protobuf field string path = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $path = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $cluster - * Required. The name of the cluster the GKE service is running in. The - * cluster must be running in the same project as the trigger being created. - * @type string $location - * Required. The name of the Google Compute Engine in which the cluster - * resides, which can either be compute zone (for example, us-central1-a) for - * the zonal clusters or region (for example, us-central1) for regional - * clusters. - * @type string $namespace - * Required. The namespace the GKE service is running in. - * @type string $service - * Required. Name of the GKE service. - * @type string $path - * Optional. The relative path on the GKE service the events should be sent - * to. - * The value must conform to the definition of a URI path segment (section 3.3 - * of RFC2396). Examples: "/route", "route", "route/subroute". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Trigger::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the cluster the GKE service is running in. The - * cluster must be running in the same project as the trigger being created. - * - * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getCluster() - { - return $this->cluster; - } - - /** - * Required. The name of the cluster the GKE service is running in. The - * cluster must be running in the same project as the trigger being created. - * - * Generated from protobuf field string cluster = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setCluster($var) - { - GPBUtil::checkString($var, True); - $this->cluster = $var; - - return $this; - } - - /** - * Required. The name of the Google Compute Engine in which the cluster - * resides, which can either be compute zone (for example, us-central1-a) for - * the zonal clusters or region (for example, us-central1) for regional - * clusters. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getLocation() - { - return $this->location; - } - - /** - * Required. The name of the Google Compute Engine in which the cluster - * resides, which can either be compute zone (for example, us-central1-a) for - * the zonal clusters or region (for example, us-central1) for regional - * clusters. - * - * Generated from protobuf field string location = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setLocation($var) - { - GPBUtil::checkString($var, True); - $this->location = $var; - - return $this; - } - - /** - * Required. The namespace the GKE service is running in. - * - * Generated from protobuf field string namespace = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getNamespace() - { - return $this->namespace; - } - - /** - * Required. The namespace the GKE service is running in. - * - * Generated from protobuf field string namespace = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setNamespace($var) - { - GPBUtil::checkString($var, True); - $this->namespace = $var; - - return $this; - } - - /** - * Required. Name of the GKE service. - * - * Generated from protobuf field string service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getService() - { - return $this->service; - } - - /** - * Required. Name of the GKE service. - * - * Generated from protobuf field string service = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setService($var) - { - GPBUtil::checkString($var, True); - $this->service = $var; - - return $this; - } - - /** - * Optional. The relative path on the GKE service the events should be sent - * to. - * The value must conform to the definition of a URI path segment (section 3.3 - * of RFC2396). Examples: "/route", "route", "route/subroute". - * - * Generated from protobuf field string path = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPath() - { - return $this->path; - } - - /** - * Optional. The relative path on the GKE service the events should be sent - * to. - * The value must conform to the definition of a URI path segment (section 3.3 - * of RFC2396). Examples: "/route", "route", "route/subroute". - * - * Generated from protobuf field string path = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setPath($var) - { - GPBUtil::checkString($var, True); - $this->path = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetChannelConnectionRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetChannelConnectionRequest.php deleted file mode 100644 index dc8ea1280ac5..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetChannelConnectionRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.eventarc.v1.GetChannelConnectionRequest - */ -class GetChannelConnectionRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the channel connection 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 channel connection to get. Please see - * {@see EventarcClient::channelConnectionName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\GetChannelConnectionRequest - * - * @experimental - */ - public static function 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 channel connection to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the channel connection 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 channel connection 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetChannelRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetChannelRequest.php deleted file mode 100644 index c80223e28726..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetChannelRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.eventarc.v1.GetChannelRequest - */ -class GetChannelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the channel 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 channel to get. Please see - * {@see EventarcClient::channelName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\GetChannelRequest - * - * @experimental - */ - public static function 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 channel to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the channel 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 channel 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetEnrollmentRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetEnrollmentRequest.php deleted file mode 100644 index 8cd21daa3843..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetEnrollmentRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.eventarc.v1.GetEnrollmentRequest - */ -class GetEnrollmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the Enrollment 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 Enrollment to get. Please see - * {@see EventarcClient::enrollmentName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\GetEnrollmentRequest - * - * @experimental - */ - public static function 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 Enrollment to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the Enrollment 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 Enrollment 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetGoogleApiSourceRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetGoogleApiSourceRequest.php deleted file mode 100644 index 9cda03c132e4..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetGoogleApiSourceRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.eventarc.v1.GetGoogleApiSourceRequest - */ -class GetGoogleApiSourceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the google api source 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 google api source to get. Please see - * {@see EventarcClient::googleApiSourceName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\GetGoogleApiSourceRequest - * - * @experimental - */ - public static function build(string $name): self - { - return (new self()) - ->setName($name); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The name of the google api source to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the google api source 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 google api source 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetGoogleChannelConfigRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetGoogleChannelConfigRequest.php deleted file mode 100644 index 38ddbd0ee06e..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetGoogleChannelConfigRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.eventarc.v1.GetGoogleChannelConfigRequest - */ -class GetGoogleChannelConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the config 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 config to get. Please see - * {@see EventarcClient::googleChannelConfigName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\GetGoogleChannelConfigRequest - * - * @experimental - */ - public static function 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 config to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the config 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 config 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetMessageBusRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetMessageBusRequest.php deleted file mode 100644 index bcc8663131d1..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetMessageBusRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.eventarc.v1.GetMessageBusRequest - */ -class GetMessageBusRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the message bus 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 message bus to get. Please see - * {@see EventarcClient::messageBusName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\GetMessageBusRequest - * - * @experimental - */ - public static function 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 message bus to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the message bus 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 message bus 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetPipelineRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetPipelineRequest.php deleted file mode 100644 index 82d14ada1ede..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetPipelineRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.eventarc.v1.GetPipelineRequest - */ -class GetPipelineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the pipeline 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 pipeline to get. Please see - * {@see EventarcClient::pipelineName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\GetPipelineRequest - * - * @experimental - */ - public static function 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 pipeline to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the pipeline 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 pipeline 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetProviderRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetProviderRequest.php deleted file mode 100644 index 57173d9b151d..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetProviderRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.eventarc.v1.GetProviderRequest - */ -class GetProviderRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the provider 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 provider to get. Please see - * {@see EventarcClient::providerName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\GetProviderRequest - * - * @experimental - */ - public static function 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 provider to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the provider 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 provider 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetTriggerRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetTriggerRequest.php deleted file mode 100644 index 6345f521d820..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GetTriggerRequest.php +++ /dev/null @@ -1,81 +0,0 @@ -google.cloud.eventarc.v1.GetTriggerRequest - */ -class GetTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The name of the trigger 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 trigger to get. Please see - * {@see EventarcClient::triggerName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\GetTriggerRequest - * - * @experimental - */ - public static function 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 trigger to get. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The name of the trigger 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 trigger 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GoogleApiSource.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GoogleApiSource.php deleted file mode 100644 index 4ddd79e5c6a8..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GoogleApiSource.php +++ /dev/null @@ -1,481 +0,0 @@ -google.cloud.eventarc.v1.GoogleApiSource - */ -class GoogleApiSource extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the form - * projects/{project}/locations/{location}/googleApiSources/{google_api_source} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $etag = ''; - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Resource labels. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Resource annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Optional. Resource display name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Required. Destination is the message bus that the GoogleApiSource is - * delivering to. It must be point to the full resource name of a MessageBus. - * Format: - * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID) - * - * Generated from protobuf field string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $destination = ''; - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $crypto_key_name = ''; - /** - * Optional. Config to control Platform logging for the GoogleApiSource. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $logging_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the form - * projects/{project}/locations/{location}/googleApiSources/{google_api_source} - * @type string $uid - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * @type string $etag - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last-modified time. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Resource annotations. - * @type string $display_name - * Optional. Resource display name. - * @type string $destination - * Required. Destination is the message bus that the GoogleApiSource is - * delivering to. It must be point to the full resource name of a MessageBus. - * Format: - * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID) - * @type string $crypto_key_name - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * @type \Google\Cloud\Eventarc\V1\LoggingConfig $logging_config - * Optional. Config to control Platform logging for the GoogleApiSource. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\GoogleApiSource::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the form - * projects/{project}/locations/{location}/googleApiSources/{google_api_source} - * - * 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 form - * projects/{project}/locations/{location}/googleApiSources/{google_api_source} - * - * 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. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Resource labels. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Resource annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Resource annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Optional. Resource display name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Resource display name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. Destination is the message bus that the GoogleApiSource is - * delivering to. It must be point to the full resource name of a MessageBus. - * Format: - * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID) - * - * Generated from protobuf field string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getDestination() - { - return $this->destination; - } - - /** - * Required. Destination is the message bus that the GoogleApiSource is - * delivering to. It must be point to the full resource name of a MessageBus. - * Format: - * "projects/{PROJECT_ID}/locations/{region}/messagesBuses/{MESSAGE_BUS_ID) - * - * Generated from protobuf field string destination = 9 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setDestination($var) - { - GPBUtil::checkString($var, True); - $this->destination = $var; - - return $this; - } - - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getCryptoKeyName() - { - return $this->crypto_key_name; - } - - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCryptoKeyName($var) - { - GPBUtil::checkString($var, True); - $this->crypto_key_name = $var; - - return $this; - } - - /** - * Optional. Config to control Platform logging for the GoogleApiSource. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Optional. Config to control Platform logging for the GoogleApiSource. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GoogleChannelConfig.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GoogleChannelConfig.php deleted file mode 100644 index e0d2872ce2b3..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/GoogleChannelConfig.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.eventarc.v1.GoogleChannelConfig - */ -class GoogleChannelConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the config. Must be in the format of, - * `projects/{project}/locations/{location}/googleChannelConfig`. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $crypto_key_name = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the config. Must be in the format of, - * `projects/{project}/locations/{location}/googleChannelConfig`. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last-modified time. - * @type string $crypto_key_name - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\GoogleChannelConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the config. Must be in the format of, - * `projects/{project}/locations/{location}/googleChannelConfig`. - * - * 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 config. Must be in the format of, - * `projects/{project}/locations/{location}/googleChannelConfig`. - * - * 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; - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getCryptoKeyName() - { - return $this->crypto_key_name; - } - - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCryptoKeyName($var) - { - GPBUtil::checkString($var, True); - $this->crypto_key_name = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/HttpEndpoint.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/HttpEndpoint.php deleted file mode 100644 index 61cb425db51a..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/HttpEndpoint.php +++ /dev/null @@ -1,91 +0,0 @@ -google.cloud.eventarc.v1.HttpEndpoint - */ -class HttpEndpoint extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The URI of the HTTP enpdoint. - * The value must be a RFC2396 URI string. - * Examples: `http://10.10.10.8:80/route`, - * `http://svc.us-central1.p.local:8080/`. - * Only HTTP and HTTPS protocols are supported. The host can be either a - * static IP addressable from the VPC specified by the network config, or - * an internal DNS hostname of the service resolvable via Cloud DNS. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $uri = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Required. The URI of the HTTP enpdoint. - * The value must be a RFC2396 URI string. - * Examples: `http://10.10.10.8:80/route`, - * `http://svc.us-central1.p.local:8080/`. - * Only HTTP and HTTPS protocols are supported. The host can be either a - * static IP addressable from the VPC specified by the network config, or - * an internal DNS hostname of the service resolvable via Cloud DNS. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Trigger::initOnce(); - parent::__construct($data); - } - - /** - * Required. The URI of the HTTP enpdoint. - * The value must be a RFC2396 URI string. - * Examples: `http://10.10.10.8:80/route`, - * `http://svc.us-central1.p.local:8080/`. - * Only HTTP and HTTPS protocols are supported. The host can be either a - * static IP addressable from the VPC specified by the network config, or - * an internal DNS hostname of the service resolvable via Cloud DNS. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Required. The URI of the HTTP enpdoint. - * The value must be a RFC2396 URI string. - * Examples: `http://10.10.10.8:80/route`, - * `http://svc.us-central1.p.local:8080/`. - * Only HTTP and HTTPS protocols are supported. The host can be either a - * static IP addressable from the VPC specified by the network config, or - * an internal DNS hostname of the service resolvable via Cloud DNS. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelConnectionsRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelConnectionsRequest.php deleted file mode 100644 index 806e2e2ddffe..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelConnectionsRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.eventarc.v1.ListChannelConnectionsRequest - */ -class ListChannelConnectionsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection from which to list channel connections. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of channel connections to return on each page. - * Note: The service may send fewer responses. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The page token; provide the value from the `next_page_token` field in a - * previous `ListChannelConnections` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelConnetions` - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent collection from which to list channel connections. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\ListChannelConnectionsRequest - * - * @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 collection from which to list channel connections. - * @type int $page_size - * The maximum number of channel connections to return on each page. - * Note: The service may send fewer responses. - * @type string $page_token - * The page token; provide the value from the `next_page_token` field in a - * previous `ListChannelConnections` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelConnetions` - * match the call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection from which to list channel connections. - * - * Generated 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 collection from which to list channel connections. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 channel connections to return on each page. - * Note: The service may send fewer responses. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of channel connections to return on each page. - * Note: The service may send fewer responses. - * - * 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; provide the value from the `next_page_token` field in a - * previous `ListChannelConnections` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelConnetions` - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The page token; provide the value from the `next_page_token` field in a - * previous `ListChannelConnections` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannelConnetions` - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelConnectionsResponse.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelConnectionsResponse.php deleted file mode 100644 index 9659eb7acb7a..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelConnectionsResponse.php +++ /dev/null @@ -1,147 +0,0 @@ -google.cloud.eventarc.v1.ListChannelConnectionsResponse - */ -class ListChannelConnectionsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested channel connections, up to the number specified in - * `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.ChannelConnection channel_connections = 1; - */ - private $channel_connections; - /** - * A page token that can be sent to `ListChannelConnections` to request the - * next page. - * If this is empty, then there are no more pages. - * - * 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\Eventarc\V1\ChannelConnection>|\Google\Protobuf\Internal\RepeatedField $channel_connections - * The requested channel connections, up to the number specified in - * `page_size`. - * @type string $next_page_token - * A page token that can be sent to `ListChannelConnections` to request the - * next page. - * If this is empty, then there are no more pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable resources, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The requested channel connections, up to the number specified in - * `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.ChannelConnection channel_connections = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChannelConnections() - { - return $this->channel_connections; - } - - /** - * The requested channel connections, up to the number specified in - * `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.ChannelConnection channel_connections = 1; - * @param array<\Google\Cloud\Eventarc\V1\ChannelConnection>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChannelConnections($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\ChannelConnection::class); - $this->channel_connections = $arr; - - return $this; - } - - /** - * A page token that can be sent to `ListChannelConnections` to request the - * next page. - * If this is empty, then there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A page token that can be sent to `ListChannelConnections` to request the - * next page. - * If this is empty, then there are no more 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; - } - - /** - * 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelsRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelsRequest.php deleted file mode 100644 index bed6e9976240..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelsRequest.php +++ /dev/null @@ -1,211 +0,0 @@ -google.cloud.eventarc.v1.ListChannelsRequest - */ -class ListChannelsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection to list channels on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of channels to return on each page. - * Note: The service may send fewer. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The page token; provide the value from the `next_page_token` field in a - * previous `ListChannels` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannels` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, channel_id`. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - - /** - * @param string $parent Required. The parent collection to list channels on. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\ListChannelsRequest - * - * @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 collection to list channels on. - * @type int $page_size - * The maximum number of channels to return on each page. - * Note: The service may send fewer. - * @type string $page_token - * The page token; provide the value from the `next_page_token` field in a - * previous `ListChannels` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannels` must - * match the call that provided the page token. - * @type string $order_by - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, channel_id`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection to list channels on. - * - * Generated 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 collection to list channels on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 channels to return on each page. - * Note: The service may send fewer. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of channels to return on each page. - * Note: The service may send fewer. - * - * 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; provide the value from the `next_page_token` field in a - * previous `ListChannels` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannels` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The page token; provide the value from the `next_page_token` field in a - * previous `ListChannels` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListChannels` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, channel_id`. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, channel_id`. - * - * Generated from protobuf field string order_by = 4; - * @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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelsResponse.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelsResponse.php deleted file mode 100644 index 7706916cd782..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListChannelsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.eventarc.v1.ListChannelsResponse - */ -class ListChannelsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested channels, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Channel channels = 1; - */ - private $channels; - /** - * A page token that can be sent to `ListChannels` to request the next page. - * If this is empty, then there are no more pages. - * - * 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\Eventarc\V1\Channel>|\Google\Protobuf\Internal\RepeatedField $channels - * The requested channels, up to the number specified in `page_size`. - * @type string $next_page_token - * A page token that can be sent to `ListChannels` to request the next page. - * If this is empty, then there are no more pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable resources, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The requested channels, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Channel channels = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChannels() - { - return $this->channels; - } - - /** - * The requested channels, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Channel channels = 1; - * @param array<\Google\Cloud\Eventarc\V1\Channel>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setChannels($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\Channel::class); - $this->channels = $arr; - - return $this; - } - - /** - * A page token that can be sent to `ListChannels` to request the next page. - * If this is empty, then there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A page token that can be sent to `ListChannels` to request the next page. - * If this is empty, then there are no more 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; - } - - /** - * 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListEnrollmentsRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListEnrollmentsRequest.php deleted file mode 100644 index e54b7d747086..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListEnrollmentsRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.cloud.eventarc.v1.ListEnrollmentsRequest - */ -class ListEnrollmentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection to list triggers on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of results to return on each page. - * Note: The service may send fewer. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent collection to list triggers on. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\ListEnrollmentsRequest - * - * @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 collection to list triggers on. - * @type int $page_size - * Optional. The maximum number of results to return on each page. - * Note: The service may send fewer. - * @type string $page_token - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * @type string $order_by - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * @type string $filter - * Optional. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection to list triggers on. - * - * Generated 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 collection to list triggers on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 results to return on each page. - * Note: The service may send fewer. - * - * 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 results to return on each page. - * Note: The service may send fewer. - * - * 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; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous 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. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.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. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListEnrollmentsResponse.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListEnrollmentsResponse.php deleted file mode 100644 index f467a1b3d593..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListEnrollmentsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.eventarc.v1.ListEnrollmentsResponse - */ -class ListEnrollmentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested Enrollments, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1; - */ - private $enrollments; - /** - * A page token that can be sent to `ListEnrollments` to request the next - * page. If this is empty, then there are no more pages. - * - * 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\Eventarc\V1\Enrollment>|\Google\Protobuf\Internal\RepeatedField $enrollments - * The requested Enrollments, up to the number specified in `page_size`. - * @type string $next_page_token - * A page token that can be sent to `ListEnrollments` to request the next - * page. If this is empty, then there are no more pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable resources, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The requested Enrollments, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnrollments() - { - return $this->enrollments; - } - - /** - * The requested Enrollments, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Enrollment enrollments = 1; - * @param array<\Google\Cloud\Eventarc\V1\Enrollment>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnrollments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\Enrollment::class); - $this->enrollments = $arr; - - return $this; - } - - /** - * A page token that can be sent to `ListEnrollments` to request the next - * page. If this is empty, then there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A page token that can be sent to `ListEnrollments` to request the next - * page. If this is empty, then there are no more 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; - } - - /** - * 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListGoogleApiSourcesRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListGoogleApiSourcesRequest.php deleted file mode 100644 index afc0e23c4e35..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListGoogleApiSourcesRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.cloud.eventarc.v1.ListGoogleApiSourcesRequest - */ -class ListGoogleApiSourcesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection to list GoogleApiSources on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of results to return on each page. - * Note: The service may send fewer. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent collection to list GoogleApiSources on. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\ListGoogleApiSourcesRequest - * - * @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 collection to list GoogleApiSources on. - * @type int $page_size - * Optional. The maximum number of results to return on each page. - * Note: The service may send fewer. - * @type string $page_token - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * @type string $order_by - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * @type string $filter - * Optional. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection to list GoogleApiSources on. - * - * Generated 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 collection to list GoogleApiSources on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 results to return on each page. - * Note: The service may send fewer. - * - * 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 results to return on each page. - * Note: The service may send fewer. - * - * 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; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous 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. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.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. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListGoogleApiSourcesResponse.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListGoogleApiSourcesResponse.php deleted file mode 100644 index 9994f064503f..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListGoogleApiSourcesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.eventarc.v1.ListGoogleApiSourcesResponse - */ -class ListGoogleApiSourcesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested GoogleApiSources, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.GoogleApiSource google_api_sources = 1; - */ - private $google_api_sources; - /** - * A page token that can be sent to `ListMessageBusEnrollments` to request the - * next page. If this is empty, then there are no more pages. - * - * 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\Eventarc\V1\GoogleApiSource>|\Google\Protobuf\Internal\RepeatedField $google_api_sources - * The requested GoogleApiSources, up to the number specified in `page_size`. - * @type string $next_page_token - * A page token that can be sent to `ListMessageBusEnrollments` to request the - * next page. If this is empty, then there are no more pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable resources, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The requested GoogleApiSources, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.GoogleApiSource google_api_sources = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getGoogleApiSources() - { - return $this->google_api_sources; - } - - /** - * The requested GoogleApiSources, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.GoogleApiSource google_api_sources = 1; - * @param array<\Google\Cloud\Eventarc\V1\GoogleApiSource>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setGoogleApiSources($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\GoogleApiSource::class); - $this->google_api_sources = $arr; - - return $this; - } - - /** - * A page token that can be sent to `ListMessageBusEnrollments` to request the - * next page. If this is empty, then there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A page token that can be sent to `ListMessageBusEnrollments` to request the - * next page. If this is empty, then there are no more 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; - } - - /** - * 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusEnrollmentsRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusEnrollmentsRequest.php deleted file mode 100644 index 782b7a29711a..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusEnrollmentsRequest.php +++ /dev/null @@ -1,165 +0,0 @@ -google.cloud.eventarc.v1.ListMessageBusEnrollmentsRequest - */ -class ListMessageBusEnrollmentsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent message bus to list enrollments on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of results to return on each page. - * Note: The service may send fewer. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - - /** - * @param string $parent Required. The parent message bus to list enrollments on. Please see - * {@see EventarcClient::messageBusName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\ListMessageBusEnrollmentsRequest - * - * @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 message bus to list enrollments on. - * @type int $page_size - * Optional. The maximum number of results to return on each page. - * Note: The service may send fewer. - * @type string $page_token - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent message bus to list enrollments on. - * - * Generated 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 message bus to list enrollments on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 results to return on each page. - * Note: The service may send fewer. - * - * 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 results to return on each page. - * Note: The service may send fewer. - * - * 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; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusEnrollmentsResponse.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusEnrollmentsResponse.php deleted file mode 100644 index f58a262aad2c..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusEnrollmentsResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.eventarc.v1.ListMessageBusEnrollmentsResponse - */ -class ListMessageBusEnrollmentsResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested enrollments, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated string enrollments = 1; - */ - private $enrollments; - /** - * A page token that can be sent to `ListMessageBusEnrollments` to request the - * next page. If this is empty, then there are no more pages. - * - * 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\Protobuf\Internal\RepeatedField $enrollments - * The requested enrollments, up to the number specified in `page_size`. - * @type string $next_page_token - * A page token that can be sent to `ListMessageBusEnrollments` to request the - * next page. If this is empty, then there are no more pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable resources, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The requested enrollments, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated string enrollments = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEnrollments() - { - return $this->enrollments; - } - - /** - * The requested enrollments, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated string enrollments = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEnrollments($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->enrollments = $arr; - - return $this; - } - - /** - * A page token that can be sent to `ListMessageBusEnrollments` to request the - * next page. If this is empty, then there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A page token that can be sent to `ListMessageBusEnrollments` to request the - * next page. If this is empty, then there are no more 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; - } - - /** - * 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusesRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusesRequest.php deleted file mode 100644 index 7058037078d5..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusesRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.cloud.eventarc.v1.ListMessageBusesRequest - */ -class ListMessageBusesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection to list triggers on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of results to return on each page. - * Note: The service may send fewer. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent collection to list triggers on. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\ListMessageBusesRequest - * - * @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 collection to list triggers on. - * @type int $page_size - * Optional. The maximum number of results to return on each page. - * Note: The service may send fewer. - * @type string $page_token - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * @type string $order_by - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * @type string $filter - * Optional. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection to list triggers on. - * - * Generated 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 collection to list triggers on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 results to return on each page. - * Note: The service may send fewer. - * - * 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 results to return on each page. - * Note: The service may send fewer. - * - * 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; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous 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. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.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. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter field that the list request will filter on. - * Possible filtersare described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusesResponse.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusesResponse.php deleted file mode 100644 index 1ec7d56ab37f..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListMessageBusesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.eventarc.v1.ListMessageBusesResponse - */ -class ListMessageBusesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested message buses, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.MessageBus message_buses = 1; - */ - private $message_buses; - /** - * A page token that can be sent to `ListMessageBuses` to request the next - * page. If this is empty, then there are no more pages. - * - * 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\Eventarc\V1\MessageBus>|\Google\Protobuf\Internal\RepeatedField $message_buses - * The requested message buses, up to the number specified in `page_size`. - * @type string $next_page_token - * A page token that can be sent to `ListMessageBuses` to request the next - * page. If this is empty, then there are no more pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable resources, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The requested message buses, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.MessageBus message_buses = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMessageBuses() - { - return $this->message_buses; - } - - /** - * The requested message buses, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.MessageBus message_buses = 1; - * @param array<\Google\Cloud\Eventarc\V1\MessageBus>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMessageBuses($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\MessageBus::class); - $this->message_buses = $arr; - - return $this; - } - - /** - * A page token that can be sent to `ListMessageBuses` to request the next - * page. If this is empty, then there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A page token that can be sent to `ListMessageBuses` to request the next - * page. If this is empty, then there are no more 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; - } - - /** - * 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListPipelinesRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListPipelinesRequest.php deleted file mode 100644 index fe3533060eb7..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListPipelinesRequest.php +++ /dev/null @@ -1,249 +0,0 @@ -google.cloud.eventarc.v1.ListPipelinesRequest - */ -class ListPipelinesRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection to list pipelines on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * Optional. The maximum number of results to return on each page. - * Note: The service may send fewer. - * - * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_size = 0; - /** - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $page_token = ''; - /** - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $order_by = ''; - /** - * Optional. The filter field that the list request will filter on. - * Possible filters are described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent collection to list pipelines on. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\ListPipelinesRequest - * - * @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 collection to list pipelines on. - * @type int $page_size - * Optional. The maximum number of results to return on each page. - * Note: The service may send fewer. - * @type string $page_token - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * @type string $order_by - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * @type string $filter - * Optional. The filter field that the list request will filter on. - * Possible filters are described in https://google.aip.dev/160. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection to list pipelines on. - * - * Generated 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 collection to list pipelines on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 results to return on each page. - * Note: The service may send fewer. - * - * 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 results to return on each page. - * Note: The service may send fewer. - * - * 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; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous call that provided the page token. - * - * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * Optional. The page token; provide the value from the `next_page_token` - * field in a previous call to retrieve the subsequent page. - * When paginating, all other parameters provided must match - * the previous 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. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * Optional. The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, update_time`. - * - * Generated from protobuf field string order_by = 4 [(.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. The filter field that the list request will filter on. - * Possible filters are described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Optional. The filter field that the list request will filter on. - * Possible filters are described in https://google.aip.dev/160. - * - * Generated from protobuf field string filter = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListPipelinesResponse.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListPipelinesResponse.php deleted file mode 100644 index db5624cef798..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListPipelinesResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.eventarc.v1.ListPipelinesResponse - */ -class ListPipelinesResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested pipelines, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Pipeline pipelines = 1; - */ - private $pipelines; - /** - * A page token that can be sent to `ListPipelines` to request the next - * page. If this is empty, then there are no more pages. - * - * 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\Eventarc\V1\Pipeline>|\Google\Protobuf\Internal\RepeatedField $pipelines - * The requested pipelines, up to the number specified in `page_size`. - * @type string $next_page_token - * A page token that can be sent to `ListPipelines` to request the next - * page. If this is empty, then there are no more pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable resources, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The requested pipelines, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Pipeline pipelines = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getPipelines() - { - return $this->pipelines; - } - - /** - * The requested pipelines, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Pipeline pipelines = 1; - * @param array<\Google\Cloud\Eventarc\V1\Pipeline>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setPipelines($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\Pipeline::class); - $this->pipelines = $arr; - - return $this; - } - - /** - * A page token that can be sent to `ListPipelines` to request the next - * page. If this is empty, then there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A page token that can be sent to `ListPipelines` to request the next - * page. If this is empty, then there are no more 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; - } - - /** - * 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListProvidersRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListProvidersRequest.php deleted file mode 100644 index e95fa3d2cde7..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListProvidersRequest.php +++ /dev/null @@ -1,241 +0,0 @@ -google.cloud.eventarc.v1.ListProvidersRequest - */ -class ListProvidersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent of the provider to get. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of providers to return on each page. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The page token; provide the value from the `next_page_token` field in a - * previous `ListProviders` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProviders` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting oder is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, _id`. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * The filter field that the list request will filter on. - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent of the provider to get. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\ListProvidersRequest - * - * @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 of the provider to get. - * @type int $page_size - * The maximum number of providers to return on each page. - * @type string $page_token - * The page token; provide the value from the `next_page_token` field in a - * previous `ListProviders` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProviders` must - * match the call that provided the page token. - * @type string $order_by - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting oder is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, _id`. - * @type string $filter - * The filter field that the list request will filter on. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent of the provider 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 parent of the provider 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 providers to return on each page. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of providers to return on each page. - * - * Generated from protobuf field int32 page_size = 2; - * @param int $var - * @return $this - */ - public function setPageSize($var) - { - GPBUtil::checkInt32($var); - $this->page_size = $var; - - return $this; - } - - /** - * The page token; provide the value from the `next_page_token` field in a - * previous `ListProviders` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProviders` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The page token; provide the value from the `next_page_token` field in a - * previous `ListProviders` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListProviders` must - * match the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting oder is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, _id`. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting oder is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, _id`. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * The filter field that the list request will filter on. - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * The filter field that the list request will filter on. - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListProvidersResponse.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListProvidersResponse.php deleted file mode 100644 index d1bf4a8f1e6b..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListProvidersResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.eventarc.v1.ListProvidersResponse - */ -class ListProvidersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested providers, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Provider providers = 1; - */ - private $providers; - /** - * A page token that can be sent to `ListProviders` to request the next page. - * If this is empty, then there are no more pages. - * - * 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\Eventarc\V1\Provider>|\Google\Protobuf\Internal\RepeatedField $providers - * The requested providers, up to the number specified in `page_size`. - * @type string $next_page_token - * A page token that can be sent to `ListProviders` to request the next page. - * If this is empty, then there are no more pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable resources, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The requested providers, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Provider providers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProviders() - { - return $this->providers; - } - - /** - * The requested providers, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Provider providers = 1; - * @param array<\Google\Cloud\Eventarc\V1\Provider>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProviders($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\Provider::class); - $this->providers = $arr; - - return $this; - } - - /** - * A page token that can be sent to `ListProviders` to request the next page. - * If this is empty, then there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A page token that can be sent to `ListProviders` to request the next page. - * If this is empty, then there are no more 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; - } - - /** - * 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListTriggersRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListTriggersRequest.php deleted file mode 100644 index 822bf71ff9c0..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListTriggersRequest.php +++ /dev/null @@ -1,253 +0,0 @@ -google.cloud.eventarc.v1.ListTriggersRequest - */ -class ListTriggersRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The parent collection to list triggers on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $parent = ''; - /** - * The maximum number of triggers to return on each page. - * Note: The service may send fewer. - * - * Generated from protobuf field int32 page_size = 2; - */ - protected $page_size = 0; - /** - * The page token; provide the value from the `next_page_token` field in a - * previous `ListTriggers` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTriggers` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - */ - protected $page_token = ''; - /** - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, trigger_id`. - * - * Generated from protobuf field string order_by = 4; - */ - protected $order_by = ''; - /** - * Filter field. Used to filter the Triggers to be listed. Possible filters - * are described in https://google.aip.dev/160. For example, using - * "?filter=destination:gke" would list only Triggers with a gke destination. - * - * Generated from protobuf field string filter = 5; - */ - protected $filter = ''; - - /** - * @param string $parent Required. The parent collection to list triggers on. Please see - * {@see EventarcClient::locationName()} for help formatting this field. - * - * @return \Google\Cloud\Eventarc\V1\ListTriggersRequest - * - * @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 collection to list triggers on. - * @type int $page_size - * The maximum number of triggers to return on each page. - * Note: The service may send fewer. - * @type string $page_token - * The page token; provide the value from the `next_page_token` field in a - * previous `ListTriggers` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTriggers` must match - * the call that provided the page token. - * @type string $order_by - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, trigger_id`. - * @type string $filter - * Filter field. Used to filter the Triggers to be listed. Possible filters - * are described in https://google.aip.dev/160. For example, using - * "?filter=destination:gke" would list only Triggers with a gke destination. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The parent collection to list triggers on. - * - * Generated 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 collection to list triggers on. - * - * Generated from protobuf field string parent = 1 [(.google.api.field_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 triggers to return on each page. - * Note: The service may send fewer. - * - * Generated from protobuf field int32 page_size = 2; - * @return int - */ - public function getPageSize() - { - return $this->page_size; - } - - /** - * The maximum number of triggers to return on each page. - * Note: The service may send fewer. - * - * 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; provide the value from the `next_page_token` field in a - * previous `ListTriggers` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTriggers` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @return string - */ - public function getPageToken() - { - return $this->page_token; - } - - /** - * The page token; provide the value from the `next_page_token` field in a - * previous `ListTriggers` call to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListTriggers` must match - * the call that provided the page token. - * - * Generated from protobuf field string page_token = 3; - * @param string $var - * @return $this - */ - public function setPageToken($var) - { - GPBUtil::checkString($var, True); - $this->page_token = $var; - - return $this; - } - - /** - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, trigger_id`. - * - * Generated from protobuf field string order_by = 4; - * @return string - */ - public function getOrderBy() - { - return $this->order_by; - } - - /** - * The sorting order of the resources returned. Value should be a - * comma-separated list of fields. The default sorting order is ascending. To - * specify descending order for a field, append a `desc` suffix; for example: - * `name desc, trigger_id`. - * - * Generated from protobuf field string order_by = 4; - * @param string $var - * @return $this - */ - public function setOrderBy($var) - { - GPBUtil::checkString($var, True); - $this->order_by = $var; - - return $this; - } - - /** - * Filter field. Used to filter the Triggers to be listed. Possible filters - * are described in https://google.aip.dev/160. For example, using - * "?filter=destination:gke" would list only Triggers with a gke destination. - * - * Generated from protobuf field string filter = 5; - * @return string - */ - public function getFilter() - { - return $this->filter; - } - - /** - * Filter field. Used to filter the Triggers to be listed. Possible filters - * are described in https://google.aip.dev/160. For example, using - * "?filter=destination:gke" would list only Triggers with a gke destination. - * - * Generated from protobuf field string filter = 5; - * @param string $var - * @return $this - */ - public function setFilter($var) - { - GPBUtil::checkString($var, True); - $this->filter = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListTriggersResponse.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListTriggersResponse.php deleted file mode 100644 index ee71a58af28b..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/ListTriggersResponse.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.eventarc.v1.ListTriggersResponse - */ -class ListTriggersResponse extends \Google\Protobuf\Internal\Message -{ - /** - * The requested triggers, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Trigger triggers = 1; - */ - private $triggers; - /** - * A page token that can be sent to `ListTriggers` to request the next page. - * If this is empty, then there are no more pages. - * - * 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\Eventarc\V1\Trigger>|\Google\Protobuf\Internal\RepeatedField $triggers - * The requested triggers, up to the number specified in `page_size`. - * @type string $next_page_token - * A page token that can be sent to `ListTriggers` to request the next page. - * If this is empty, then there are no more pages. - * @type array|\Google\Protobuf\Internal\RepeatedField $unreachable - * Unreachable resources, if any. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The requested triggers, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Trigger triggers = 1; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTriggers() - { - return $this->triggers; - } - - /** - * The requested triggers, up to the number specified in `page_size`. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Trigger triggers = 1; - * @param array<\Google\Cloud\Eventarc\V1\Trigger>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTriggers($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\Trigger::class); - $this->triggers = $arr; - - return $this; - } - - /** - * A page token that can be sent to `ListTriggers` to request the next page. - * If this is empty, then there are no more pages. - * - * Generated from protobuf field string next_page_token = 2; - * @return string - */ - public function getNextPageToken() - { - return $this->next_page_token; - } - - /** - * A page token that can be sent to `ListTriggers` to request the next page. - * If this is empty, then there are no more 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; - } - - /** - * 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/LoggingConfig.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/LoggingConfig.php deleted file mode 100644 index 68522bb64d27..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/LoggingConfig.php +++ /dev/null @@ -1,76 +0,0 @@ -google.cloud.eventarc.v1.LoggingConfig - */ -class LoggingConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The minimum severity of logs that will be sent to - * Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be - * sent, unless it is NONE. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig.LogSeverity log_severity = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $log_severity = 0; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $log_severity - * Optional. The minimum severity of logs that will be sent to - * Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be - * sent, unless it is NONE. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\LoggingConfig::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The minimum severity of logs that will be sent to - * Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be - * sent, unless it is NONE. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig.LogSeverity log_severity = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getLogSeverity() - { - return $this->log_severity; - } - - /** - * Optional. The minimum severity of logs that will be sent to - * Stackdriver/Platform Telemetry. Logs at severitiy ≥ this value will be - * sent, unless it is NONE. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig.LogSeverity log_severity = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setLogSeverity($var) - { - GPBUtil::checkEnum($var, \Google\Cloud\Eventarc\V1\LoggingConfig\LogSeverity::class); - $this->log_severity = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/LoggingConfig/LogSeverity.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/LoggingConfig/LogSeverity.php deleted file mode 100644 index 8eec84d5088a..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/LoggingConfig/LogSeverity.php +++ /dev/null @@ -1,120 +0,0 @@ -google.cloud.eventarc.v1.LoggingConfig.LogSeverity - */ -class LogSeverity -{ - /** - * Log severity is not specified. This value is treated the same as NONE, - * but is used to distinguish between no update and update to NONE in - * update_masks. - * - * Generated from protobuf enum LOG_SEVERITY_UNSPECIFIED = 0; - */ - const LOG_SEVERITY_UNSPECIFIED = 0; - /** - * Default value at resource creation, presence of this value must be - * treated as no logging/disable logging. - * - * Generated from protobuf enum NONE = 1; - */ - const NONE = 1; - /** - * Debug or trace level logging. - * - * Generated from protobuf enum DEBUG = 2; - */ - const DEBUG = 2; - /** - * Routine information, such as ongoing status or performance. - * - * Generated from protobuf enum INFO = 3; - */ - const INFO = 3; - /** - * Normal but significant events, such as start up, shut down, or a - * configuration change. - * - * Generated from protobuf enum NOTICE = 4; - */ - const NOTICE = 4; - /** - * Warning events might cause problems. - * - * Generated from protobuf enum WARNING = 5; - */ - const WARNING = 5; - /** - * Error events are likely to cause problems. - * - * Generated from protobuf enum ERROR = 6; - */ - const ERROR = 6; - /** - * Critical events cause more severe problems or outages. - * - * Generated from protobuf enum CRITICAL = 7; - */ - const CRITICAL = 7; - /** - * A person must take action immediately. - * - * Generated from protobuf enum ALERT = 8; - */ - const ALERT = 8; - /** - * One or more systems are unusable. - * - * Generated from protobuf enum EMERGENCY = 9; - */ - const EMERGENCY = 9; - - private static $valueToName = [ - self::LOG_SEVERITY_UNSPECIFIED => 'LOG_SEVERITY_UNSPECIFIED', - self::NONE => 'NONE', - self::DEBUG => 'DEBUG', - self::INFO => 'INFO', - self::NOTICE => 'NOTICE', - self::WARNING => 'WARNING', - self::ERROR => 'ERROR', - self::CRITICAL => 'CRITICAL', - self::ALERT => 'ALERT', - self::EMERGENCY => 'EMERGENCY', - ]; - - public static function name($value) - { - if (!isset(self::$valueToName[$value])) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no name defined for value %s', __CLASS__, $value)); - } - return self::$valueToName[$value]; - } - - - public static function value($name) - { - $const = __CLASS__ . '::' . strtoupper($name); - if (!defined($const)) { - throw new UnexpectedValueException(sprintf( - 'Enum %s has no value defined for name %s', __CLASS__, $name)); - } - return constant($const); - } -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(LogSeverity::class, \Google\Cloud\Eventarc\V1\LoggingConfig_LogSeverity::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/MessageBus.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/MessageBus.php deleted file mode 100644 index 125bd3c86db6..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/MessageBus.php +++ /dev/null @@ -1,446 +0,0 @@ -google.cloud.eventarc.v1.MessageBus - */ -class MessageBus extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. Resource name of the form - * projects/{project}/locations/{location}/messageBuses/{message_bus} - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $etag = ''; - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. Resource labels. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. Resource annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Optional. Resource display name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $crypto_key_name = ''; - /** - * Optional. Config to control Platform logging for the Message Bus. This log - * configuration is applied to the Message Bus itself, and all the Enrollments - * attached to it. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $logging_config = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. Resource name of the form - * projects/{project}/locations/{location}/messageBuses/{message_bus} - * @type string $uid - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * @type string $etag - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last-modified time. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. Resource labels. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. Resource annotations. - * @type string $display_name - * Optional. Resource display name. - * @type string $crypto_key_name - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * @type \Google\Cloud\Eventarc\V1\LoggingConfig $logging_config - * Optional. Config to control Platform logging for the Message Bus. This log - * configuration is applied to the Message Bus itself, and all the Enrollments - * attached to it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\MessageBus::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. Resource name of the form - * projects/{project}/locations/{location}/messageBuses/{message_bus} - * - * 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 form - * projects/{project}/locations/{location}/messageBuses/{message_bus} - * - * 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. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Server assigned unique identifier for the channel. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on update and delete requests to - * ensure that the client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. Resource labels. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. Resource labels. - * - * Generated from protobuf field map labels = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. Resource annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. Resource annotations. - * - * Generated from protobuf field map annotations = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Optional. Resource display name. - * - * Generated from protobuf field string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Resource display name. - * - * Generated from protobuf field string display_name = 8 [(.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. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getCryptoKeyName() - { - return $this->crypto_key_name; - } - - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt their event data. - * It must match the pattern - * `projects/*/locations/*/keyRings/*/cryptoKeys/*`. - * - * Generated from protobuf field string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCryptoKeyName($var) - { - GPBUtil::checkString($var, True); - $this->crypto_key_name = $var; - - return $this; - } - - /** - * Optional. Config to control Platform logging for the Message Bus. This log - * configuration is applied to the Message Bus itself, and all the Enrollments - * attached to it. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Optional. Config to control Platform logging for the Message Bus. This log - * configuration is applied to the Message Bus itself, and all the Enrollments - * attached to it. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig logging_config = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/NetworkConfig.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/NetworkConfig.php deleted file mode 100644 index 715d1d668793..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/NetworkConfig.php +++ /dev/null @@ -1,75 +0,0 @@ -google.cloud.eventarc.v1.NetworkConfig - */ -class NetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the NetworkAttachment that allows access to the - * customer's VPC. Format: - * `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}` - * - * Generated from protobuf field string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $network_attachment = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network_attachment - * Required. Name of the NetworkAttachment that allows access to the - * customer's VPC. Format: - * `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\NetworkConfig::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the NetworkAttachment that allows access to the - * customer's VPC. Format: - * `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}` - * - * Generated from protobuf field string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getNetworkAttachment() - { - return $this->network_attachment; - } - - /** - * Required. Name of the NetworkAttachment that allows access to the - * customer's VPC. Format: - * `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}` - * - * Generated from protobuf field string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNetworkAttachment($var) - { - GPBUtil::checkString($var, True); - $this->network_attachment = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/OperationMetadata.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/OperationMetadata.php deleted file mode 100644 index bb3d67a302da..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/OperationMetadata.php +++ /dev/null @@ -1,307 +0,0 @@ -google.cloud.eventarc.v1.OperationMetadata - */ -class OperationMetadata extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $end_time = null; - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $target = ''; - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $verb = ''; - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $status_message = ''; - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $requested_cancellation = false; - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $api_version = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The time the operation was created. - * @type \Google\Protobuf\Timestamp $end_time - * Output only. The time the operation finished running. - * @type string $target - * Output only. Server-defined resource path for the target of the operation. - * @type string $verb - * Output only. Name of the verb executed by the operation. - * @type string $status_message - * Output only. Human-readable status of the operation, if any. - * @type bool $requested_cancellation - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * @type string $api_version - * Output only. API version used to start the operation. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The time the operation was created. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getEndTime() - { - return $this->end_time; - } - - public function hasEndTime() - { - return isset($this->end_time); - } - - public function clearEndTime() - { - unset($this->end_time); - } - - /** - * Output only. The time the operation finished running. - * - * Generated from protobuf field .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setEndTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->end_time = $var; - - return $this; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getTarget() - { - return $this->target; - } - - /** - * Output only. Server-defined resource path for the target of the operation. - * - * Generated from protobuf field string target = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setTarget($var) - { - GPBUtil::checkString($var, True); - $this->target = $var; - - return $this; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getVerb() - { - return $this->verb; - } - - /** - * Output only. Name of the verb executed by the operation. - * - * Generated from protobuf field string verb = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setVerb($var) - { - GPBUtil::checkString($var, True); - $this->verb = $var; - - return $this; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getStatusMessage() - { - return $this->status_message; - } - - /** - * Output only. Human-readable status of the operation, if any. - * - * Generated from protobuf field string status_message = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setStatusMessage($var) - { - GPBUtil::checkString($var, True); - $this->status_message = $var; - - return $this; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getRequestedCancellation() - { - return $this->requested_cancellation; - } - - /** - * Output only. Identifies whether the user has requested cancellation - * of the operation. Operations that have successfully been cancelled - * have [Operation.error][] value with a - * [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to - * `Code.CANCELLED`. - * - * Generated from protobuf field bool requested_cancellation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setRequestedCancellation($var) - { - GPBUtil::checkBool($var); - $this->requested_cancellation = $var; - - return $this; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getApiVersion() - { - return $this->api_version; - } - - /** - * Output only. API version used to start the operation. - * - * Generated from protobuf field string api_version = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setApiVersion($var) - { - GPBUtil::checkString($var, True); - $this->api_version = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline.php deleted file mode 100644 index 28217c019e05..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline.php +++ /dev/null @@ -1,667 +0,0 @@ -google.cloud.eventarc.v1.Pipeline - */ -class Pipeline extends \Google\Protobuf\Internal\Message -{ - /** - * Identifier. The resource name of the Pipeline. Must be unique within the - * location of the project and must be in - * `projects/{project}/locations/{location}/pipelines/{pipeline}` format. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - */ - protected $name = ''; - /** - * Output only. The creation time. - * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up - * to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and - * "2014-10-02T15:01:23.045123456Z". - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last-modified time. - * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up - * to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and - * "2014-10-02T15:01:23.045123456Z". - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Optional. User labels attached to the Pipeline that can be used to group - * resources. An object containing a list of "key": value pairs. Example: { - * "name": "wrench", "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Output only. Server-assigned unique identifier for the Pipeline. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - */ - protected $uid = ''; - /** - * Optional. User-defined annotations. See - * https://google.aip.dev/128#annotations. - * - * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $annotations; - /** - * Optional. Display name of resource. - * - * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $display_name = ''; - /** - * Required. List of destinations to which messages will be forwarded. - * Currently, exactly one destination is supported per Pipeline. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Pipeline.Destination destinations = 8 [(.google.api.field_behavior) = REQUIRED]; - */ - private $destinations; - /** - * Optional. List of mediation operations to be performed on the message. - * Currently, only one Transformation operation is allowed in each Pipeline. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Pipeline.Mediation mediations = 9 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $mediations; - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt the event data. If not set, an internal Google-owned key - * will be used to encrypt messages. It must match the pattern - * "projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}". - * - * Generated from protobuf field string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $crypto_key_name = ''; - /** - * Optional. The payload format expected for the messages received by the - * Pipeline. If input_payload_format is set then any messages not matching - * this format will be treated as persistent errors. If input_payload_format - * is not set, then the message data will be treated as an opaque binary and - * no output format can be set on the Pipeline through the - * Pipeline.Destination.output_payload_format field. Any Mediations on the - * Pipeline that involve access to the data field will fail as persistent - * errors. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat input_payload_format = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $input_payload_format = null; - /** - * Optional. Config to control Platform Logging for Pipelines. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig logging_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $logging_config = null; - /** - * Optional. The retry policy to use in the pipeline. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.RetryPolicy retry_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $retry_policy = null; - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on create requests to ensure that the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 99; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Identifier. The resource name of the Pipeline. Must be unique within the - * location of the project and must be in - * `projects/{project}/locations/{location}/pipelines/{pipeline}` format. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time. - * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up - * to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and - * "2014-10-02T15:01:23.045123456Z". - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last-modified time. - * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up - * to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and - * "2014-10-02T15:01:23.045123456Z". - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User labels attached to the Pipeline that can be used to group - * resources. An object containing a list of "key": value pairs. Example: { - * "name": "wrench", "mass": "1.3kg", "count": "3" }. - * @type string $uid - * Output only. Server-assigned unique identifier for the Pipeline. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * @type array|\Google\Protobuf\Internal\MapField $annotations - * Optional. User-defined annotations. See - * https://google.aip.dev/128#annotations. - * @type string $display_name - * Optional. Display name of resource. - * @type array<\Google\Cloud\Eventarc\V1\Pipeline\Destination>|\Google\Protobuf\Internal\RepeatedField $destinations - * Required. List of destinations to which messages will be forwarded. - * Currently, exactly one destination is supported per Pipeline. - * @type array<\Google\Cloud\Eventarc\V1\Pipeline\Mediation>|\Google\Protobuf\Internal\RepeatedField $mediations - * Optional. List of mediation operations to be performed on the message. - * Currently, only one Transformation operation is allowed in each Pipeline. - * @type string $crypto_key_name - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt the event data. If not set, an internal Google-owned key - * will be used to encrypt messages. It must match the pattern - * "projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}". - * @type \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat $input_payload_format - * Optional. The payload format expected for the messages received by the - * Pipeline. If input_payload_format is set then any messages not matching - * this format will be treated as persistent errors. If input_payload_format - * is not set, then the message data will be treated as an opaque binary and - * no output format can be set on the Pipeline through the - * Pipeline.Destination.output_payload_format field. Any Mediations on the - * Pipeline that involve access to the data field will fail as persistent - * errors. - * @type \Google\Cloud\Eventarc\V1\LoggingConfig $logging_config - * Optional. Config to control Platform Logging for Pipelines. - * @type \Google\Cloud\Eventarc\V1\Pipeline\RetryPolicy $retry_policy - * Optional. The retry policy to use in the pipeline. - * @type string $etag - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on create requests to ensure that the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Identifier. The resource name of the Pipeline. Must be unique within the - * location of the project and must be in - * `projects/{project}/locations/{location}/pipelines/{pipeline}` format. - * - * 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 Pipeline. Must be unique within the - * location of the project and must be in - * `projects/{project}/locations/{location}/pipelines/{pipeline}` format. - * - * 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 creation time. - * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up - * to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and - * "2014-10-02T15:01:23.045123456Z". - * - * 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 creation time. - * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up - * to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and - * "2014-10-02T15:01:23.045123456Z". - * - * 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 last-modified time. - * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up - * to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and - * "2014-10-02T15:01:23.045123456Z". - * - * 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 last-modified time. - * A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up - * to nine fractional digits. Examples: "2014-10-02T15:01:23Z" and - * "2014-10-02T15:01:23.045123456Z". - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Optional. User labels attached to the Pipeline that can be used to group - * resources. An object containing a list of "key": value pairs. Example: { - * "name": "wrench", "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User labels attached to the Pipeline that can be used to group - * resources. An object containing a list of "key": value pairs. Example: { - * "name": "wrench", "mass": "1.3kg", "count": "3" }. - * - * Generated from protobuf field map labels = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Output only. Server-assigned unique identifier for the Pipeline. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Server-assigned unique identifier for the Pipeline. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Optional. User-defined annotations. See - * https://google.aip.dev/128#annotations. - * - * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAnnotations() - { - return $this->annotations; - } - - /** - * Optional. User-defined annotations. See - * https://google.aip.dev/128#annotations. - * - * Generated from protobuf field map annotations = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAnnotations($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->annotations = $arr; - - return $this; - } - - /** - * Optional. Display name of resource. - * - * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Optional. Display name of resource. - * - * Generated from protobuf field string display_name = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Required. List of destinations to which messages will be forwarded. - * Currently, exactly one destination is supported per Pipeline. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Pipeline.Destination destinations = 8 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getDestinations() - { - return $this->destinations; - } - - /** - * Required. List of destinations to which messages will be forwarded. - * Currently, exactly one destination is supported per Pipeline. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Pipeline.Destination destinations = 8 [(.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Eventarc\V1\Pipeline\Destination>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDestinations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\Pipeline\Destination::class); - $this->destinations = $arr; - - return $this; - } - - /** - * Optional. List of mediation operations to be performed on the message. - * Currently, only one Transformation operation is allowed in each Pipeline. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Pipeline.Mediation mediations = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getMediations() - { - return $this->mediations; - } - - /** - * Optional. List of mediation operations to be performed on the message. - * Currently, only one Transformation operation is allowed in each Pipeline. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.Pipeline.Mediation mediations = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param array<\Google\Cloud\Eventarc\V1\Pipeline\Mediation>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setMediations($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\Pipeline\Mediation::class); - $this->mediations = $arr; - - return $this; - } - - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt the event data. If not set, an internal Google-owned key - * will be used to encrypt messages. It must match the pattern - * "projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}". - * - * Generated from protobuf field string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getCryptoKeyName() - { - return $this->crypto_key_name; - } - - /** - * Optional. Resource name of a KMS crypto key (managed by the user) used to - * encrypt/decrypt the event data. If not set, an internal Google-owned key - * will be used to encrypt messages. It must match the pattern - * "projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}". - * - * Generated from protobuf field string crypto_key_name = 10 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setCryptoKeyName($var) - { - GPBUtil::checkString($var, True); - $this->crypto_key_name = $var; - - return $this; - } - - /** - * Optional. The payload format expected for the messages received by the - * Pipeline. If input_payload_format is set then any messages not matching - * this format will be treated as persistent errors. If input_payload_format - * is not set, then the message data will be treated as an opaque binary and - * no output format can be set on the Pipeline through the - * Pipeline.Destination.output_payload_format field. Any Mediations on the - * Pipeline that involve access to the data field will fail as persistent - * errors. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat input_payload_format = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat|null - */ - public function getInputPayloadFormat() - { - return $this->input_payload_format; - } - - public function hasInputPayloadFormat() - { - return isset($this->input_payload_format); - } - - public function clearInputPayloadFormat() - { - unset($this->input_payload_format); - } - - /** - * Optional. The payload format expected for the messages received by the - * Pipeline. If input_payload_format is set then any messages not matching - * this format will be treated as persistent errors. If input_payload_format - * is not set, then the message data will be treated as an opaque binary and - * no output format can be set on the Pipeline through the - * Pipeline.Destination.output_payload_format field. Any Mediations on the - * Pipeline that involve access to the data field will fail as persistent - * errors. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat input_payload_format = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat $var - * @return $this - */ - public function setInputPayloadFormat($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat::class); - $this->input_payload_format = $var; - - return $this; - } - - /** - * Optional. Config to control Platform Logging for Pipelines. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig logging_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\LoggingConfig|null - */ - public function getLoggingConfig() - { - return $this->logging_config; - } - - public function hasLoggingConfig() - { - return isset($this->logging_config); - } - - public function clearLoggingConfig() - { - unset($this->logging_config); - } - - /** - * Optional. Config to control Platform Logging for Pipelines. - * - * Generated from protobuf field .google.cloud.eventarc.v1.LoggingConfig logging_config = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\LoggingConfig $var - * @return $this - */ - public function setLoggingConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\LoggingConfig::class); - $this->logging_config = $var; - - return $this; - } - - /** - * Optional. The retry policy to use in the pipeline. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.RetryPolicy retry_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\RetryPolicy|null - */ - public function getRetryPolicy() - { - return $this->retry_policy; - } - - public function hasRetryPolicy() - { - return isset($this->retry_policy); - } - - public function clearRetryPolicy() - { - unset($this->retry_policy); - } - - /** - * Optional. The retry policy to use in the pipeline. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.RetryPolicy retry_policy = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\RetryPolicy $var - * @return $this - */ - public function setRetryPolicy($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\RetryPolicy::class); - $this->retry_policy = $var; - - return $this; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on create requests to ensure that the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 99; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on create requests to ensure that the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 99; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination.php deleted file mode 100644 index 46d9a226fb16..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination.php +++ /dev/null @@ -1,377 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.Destination - */ -class Destination extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. Network config is used to configure how Pipeline resolves and - * connects to a destination. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.NetworkConfig network_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $network_config = null; - /** - * Optional. An authentication config used to authenticate message requests, - * such that destinations can verify the source. For example, this can be - * used with private GCP destinations that require GCP credentials to access - * like Cloud Run. This field is optional and should be set only by users - * interested in authenticated push - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $authentication_config = null; - /** - * Optional. The message format before it is delivered to the destination. - * If not set, the message will be delivered in the format it was originally - * delivered to the Pipeline. This field can only be set if - * Pipeline.input_payload_format is also set. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat output_payload_format = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $output_payload_format = null; - protected $destination_descriptor; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\Pipeline\Destination\NetworkConfig $network_config - * Optional. Network config is used to configure how Pipeline resolves and - * connects to a destination. - * @type \Google\Cloud\Eventarc\V1\Pipeline\Destination\HttpEndpoint $http_endpoint - * Optional. An HTTP endpoint destination described by an URI. - * If a DNS FQDN is provided as the endpoint, Pipeline will create a - * peering zone to the consumer VPC and forward DNS requests to the VPC - * specified by network config to resolve the service endpoint. See: - * https://cloud.google.com/dns/docs/zones/zones-overview#peering_zones - * @type string $workflow - * Optional. The resource name of the Workflow whose Executions are - * triggered by the events. The Workflow resource should be deployed in - * the same project as the Pipeline. Format: - * `projects/{project}/locations/{location}/workflows/{workflow}` - * @type string $message_bus - * Optional. The resource name of the Message Bus to which events should - * be published. The Message Bus resource should exist in the same project - * as the Pipeline. Format: - * `projects/{project}/locations/{location}/messageBuses/{message_bus}` - * @type string $topic - * Optional. The resource name of the Pub/Sub topic to which events should - * be published. Format: - * `projects/{project}/locations/{location}/topics/{topic}` - * @type \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig $authentication_config - * Optional. An authentication config used to authenticate message requests, - * such that destinations can verify the source. For example, this can be - * used with private GCP destinations that require GCP credentials to access - * like Cloud Run. This field is optional and should be set only by users - * interested in authenticated push - * @type \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat $output_payload_format - * Optional. The message format before it is delivered to the destination. - * If not set, the message will be delivered in the format it was originally - * delivered to the Pipeline. This field can only be set if - * Pipeline.input_payload_format is also set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Network config is used to configure how Pipeline resolves and - * connects to a destination. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.NetworkConfig network_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\Destination\NetworkConfig|null - */ - public function getNetworkConfig() - { - return $this->network_config; - } - - public function hasNetworkConfig() - { - return isset($this->network_config); - } - - public function clearNetworkConfig() - { - unset($this->network_config); - } - - /** - * Optional. Network config is used to configure how Pipeline resolves and - * connects to a destination. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.NetworkConfig network_config = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\Destination\NetworkConfig $var - * @return $this - */ - public function setNetworkConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\Destination\NetworkConfig::class); - $this->network_config = $var; - - return $this; - } - - /** - * Optional. An HTTP endpoint destination described by an URI. - * If a DNS FQDN is provided as the endpoint, Pipeline will create a - * peering zone to the consumer VPC and forward DNS requests to the VPC - * specified by network config to resolve the service endpoint. See: - * https://cloud.google.com/dns/docs/zones/zones-overview#peering_zones - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.HttpEndpoint http_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\Destination\HttpEndpoint|null - */ - public function getHttpEndpoint() - { - return $this->readOneof(2); - } - - public function hasHttpEndpoint() - { - return $this->hasOneof(2); - } - - /** - * Optional. An HTTP endpoint destination described by an URI. - * If a DNS FQDN is provided as the endpoint, Pipeline will create a - * peering zone to the consumer VPC and forward DNS requests to the VPC - * specified by network config to resolve the service endpoint. See: - * https://cloud.google.com/dns/docs/zones/zones-overview#peering_zones - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.HttpEndpoint http_endpoint = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\Destination\HttpEndpoint $var - * @return $this - */ - public function setHttpEndpoint($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\Destination\HttpEndpoint::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. The resource name of the Workflow whose Executions are - * triggered by the events. The Workflow resource should be deployed in - * the same project as the Pipeline. Format: - * `projects/{project}/locations/{location}/workflows/{workflow}` - * - * Generated from protobuf field string workflow = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getWorkflow() - { - return $this->readOneof(3); - } - - public function hasWorkflow() - { - return $this->hasOneof(3); - } - - /** - * Optional. The resource name of the Workflow whose Executions are - * triggered by the events. The Workflow resource should be deployed in - * the same project as the Pipeline. Format: - * `projects/{project}/locations/{location}/workflows/{workflow}` - * - * Generated from protobuf field string workflow = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setWorkflow($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Optional. The resource name of the Message Bus to which events should - * be published. The Message Bus resource should exist in the same project - * as the Pipeline. Format: - * `projects/{project}/locations/{location}/messageBuses/{message_bus}` - * - * Generated from protobuf field string message_bus = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getMessageBus() - { - return $this->readOneof(4); - } - - public function hasMessageBus() - { - return $this->hasOneof(4); - } - - /** - * Optional. The resource name of the Message Bus to which events should - * be published. The Message Bus resource should exist in the same project - * as the Pipeline. Format: - * `projects/{project}/locations/{location}/messageBuses/{message_bus}` - * - * Generated from protobuf field string message_bus = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setMessageBus($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * Optional. The resource name of the Pub/Sub topic to which events should - * be published. Format: - * `projects/{project}/locations/{location}/topics/{topic}` - * - * Generated from protobuf field string topic = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getTopic() - { - return $this->readOneof(8); - } - - public function hasTopic() - { - return $this->hasOneof(8); - } - - /** - * Optional. The resource name of the Pub/Sub topic to which events should - * be published. Format: - * `projects/{project}/locations/{location}/topics/{topic}` - * - * Generated from protobuf field string topic = 8 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setTopic($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * Optional. An authentication config used to authenticate message requests, - * such that destinations can verify the source. For example, this can be - * used with private GCP destinations that require GCP credentials to access - * like Cloud Run. This field is optional and should be set only by users - * interested in authenticated push - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig|null - */ - public function getAuthenticationConfig() - { - return $this->authentication_config; - } - - public function hasAuthenticationConfig() - { - return isset($this->authentication_config); - } - - public function clearAuthenticationConfig() - { - unset($this->authentication_config); - } - - /** - * Optional. An authentication config used to authenticate message requests, - * such that destinations can verify the source. For example, this can be - * used with private GCP destinations that require GCP credentials to access - * like Cloud Run. This field is optional and should be set only by users - * interested in authenticated push - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig authentication_config = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig $var - * @return $this - */ - public function setAuthenticationConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig::class); - $this->authentication_config = $var; - - return $this; - } - - /** - * Optional. The message format before it is delivered to the destination. - * If not set, the message will be delivered in the format it was originally - * delivered to the Pipeline. This field can only be set if - * Pipeline.input_payload_format is also set. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat output_payload_format = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat|null - */ - public function getOutputPayloadFormat() - { - return $this->output_payload_format; - } - - public function hasOutputPayloadFormat() - { - return isset($this->output_payload_format); - } - - public function clearOutputPayloadFormat() - { - unset($this->output_payload_format); - } - - /** - * Optional. The message format before it is delivered to the destination. - * If not set, the message will be delivered in the format it was originally - * delivered to the Pipeline. This field can only be set if - * Pipeline.input_payload_format is also set. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat output_payload_format = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat $var - * @return $this - */ - public function setOutputPayloadFormat($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat::class); - $this->output_payload_format = $var; - - return $this; - } - - /** - * @return string - */ - public function getDestinationDescriptor() - { - return $this->whichOneof("destination_descriptor"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Destination::class, \Google\Cloud\Eventarc\V1\Pipeline_Destination::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig.php deleted file mode 100644 index 401a43482797..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig - */ -class AuthenticationConfig extends \Google\Protobuf\Internal\Message -{ - protected $authentication_method_descriptor; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig\OidcToken $google_oidc - * Optional. This authenticate method will apply Google OIDC tokens - * signed by a GCP service account to the requests. - * @type \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig\OAuthToken $oauth_token - * Optional. If specified, an [OAuth - * token](https://developers.google.com/identity/protocols/OAuth2) will - * be generated and attached as an `Authorization` header in the HTTP - * request. - * This type of authorization should generally only be used when calling - * Google APIs hosted on *.googleapis.com. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Optional. This authenticate method will apply Google OIDC tokens - * signed by a GCP service account to the requests. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OidcToken google_oidc = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig\OidcToken|null - */ - public function getGoogleOidc() - { - return $this->readOneof(1); - } - - public function hasGoogleOidc() - { - return $this->hasOneof(1); - } - - /** - * Optional. This authenticate method will apply Google OIDC tokens - * signed by a GCP service account to the requests. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OidcToken google_oidc = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig\OidcToken $var - * @return $this - */ - public function setGoogleOidc($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig\OidcToken::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. If specified, an [OAuth - * token](https://developers.google.com/identity/protocols/OAuth2) will - * be generated and attached as an `Authorization` header in the HTTP - * request. - * This type of authorization should generally only be used when calling - * Google APIs hosted on *.googleapis.com. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OAuthToken oauth_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig\OAuthToken|null - */ - public function getOauthToken() - { - return $this->readOneof(2); - } - - public function hasOauthToken() - { - return $this->hasOneof(2); - } - - /** - * Optional. If specified, an [OAuth - * token](https://developers.google.com/identity/protocols/OAuth2) will - * be generated and attached as an `Authorization` header in the HTTP - * request. - * This type of authorization should generally only be used when calling - * Google APIs hosted on *.googleapis.com. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OAuthToken oauth_token = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig\OAuthToken $var - * @return $this - */ - public function setOauthToken($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\Destination\AuthenticationConfig\OAuthToken::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * @return string - */ - public function getAuthenticationMethodDescriptor() - { - return $this->whichOneof("authentication_method_descriptor"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AuthenticationConfig::class, \Google\Cloud\Eventarc\V1\Pipeline_Destination_AuthenticationConfig::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig/OAuthToken.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig/OAuthToken.php deleted file mode 100644 index 867769cd7ef9..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig/OAuthToken.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OAuthToken - */ -class OAuthToken extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Service account email used to generate the [OAuth - * token](https://developers.google.com/identity/protocols/OAuth2). - * The principal who calls this API must have - * iam.serviceAccounts.actAs permission in the service account. See - * https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common - * for more information. Eventarc service agents must have - * roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline - * to create OAuth2 tokens for authenticated requests. - * - * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service_account = ''; - /** - * Optional. OAuth scope to be used for generating OAuth access token. - * If not specified, "https://www.googleapis.com/auth/cloud-platform" - * will be used. - * - * Generated from protobuf field string scope = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $scope = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service_account - * Required. Service account email used to generate the [OAuth - * token](https://developers.google.com/identity/protocols/OAuth2). - * The principal who calls this API must have - * iam.serviceAccounts.actAs permission in the service account. See - * https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common - * for more information. Eventarc service agents must have - * roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline - * to create OAuth2 tokens for authenticated requests. - * @type string $scope - * Optional. OAuth scope to be used for generating OAuth access token. - * If not specified, "https://www.googleapis.com/auth/cloud-platform" - * will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Required. Service account email used to generate the [OAuth - * token](https://developers.google.com/identity/protocols/OAuth2). - * The principal who calls this API must have - * iam.serviceAccounts.actAs permission in the service account. See - * https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common - * for more information. Eventarc service agents must have - * roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline - * to create OAuth2 tokens for authenticated requests. - * - * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Required. Service account email used to generate the [OAuth - * token](https://developers.google.com/identity/protocols/OAuth2). - * The principal who calls this API must have - * iam.serviceAccounts.actAs permission in the service account. See - * https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common - * for more information. Eventarc service agents must have - * roles/roles/iam.serviceAccountTokenCreator role to allow Pipeline - * to create OAuth2 tokens for authenticated requests. - * - * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. OAuth scope to be used for generating OAuth access token. - * If not specified, "https://www.googleapis.com/auth/cloud-platform" - * will be used. - * - * Generated from protobuf field string scope = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getScope() - { - return $this->scope; - } - - /** - * Optional. OAuth scope to be used for generating OAuth access token. - * If not specified, "https://www.googleapis.com/auth/cloud-platform" - * will be used. - * - * Generated from protobuf field string scope = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setScope($var) - { - GPBUtil::checkString($var, True); - $this->scope = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OAuthToken::class, \Google\Cloud\Eventarc\V1\Pipeline_Destination_AuthenticationConfig_OAuthToken::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig/OidcToken.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig/OidcToken.php deleted file mode 100644 index f1c52895d4b3..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/AuthenticationConfig/OidcToken.php +++ /dev/null @@ -1,139 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.Destination.AuthenticationConfig.OidcToken - */ -class OidcToken extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Service account email used to generate the OIDC Token. - * The principal who calls this API must have - * iam.serviceAccounts.actAs permission in the service account. See - * https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common - * for more information. Eventarc service agents must have - * roles/roles/iam.serviceAccountTokenCreator role to allow the - * Pipeline to create OpenID tokens for authenticated requests. - * - * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $service_account = ''; - /** - * Optional. Audience to be used to generate the OIDC Token. The - * audience claim identifies the recipient that the JWT is intended for. - * If unspecified, the destination URI will be used. - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $audience = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $service_account - * Required. Service account email used to generate the OIDC Token. - * The principal who calls this API must have - * iam.serviceAccounts.actAs permission in the service account. See - * https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common - * for more information. Eventarc service agents must have - * roles/roles/iam.serviceAccountTokenCreator role to allow the - * Pipeline to create OpenID tokens for authenticated requests. - * @type string $audience - * Optional. Audience to be used to generate the OIDC Token. The - * audience claim identifies the recipient that the JWT is intended for. - * If unspecified, the destination URI will be used. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Required. Service account email used to generate the OIDC Token. - * The principal who calls this API must have - * iam.serviceAccounts.actAs permission in the service account. See - * https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common - * for more information. Eventarc service agents must have - * roles/roles/iam.serviceAccountTokenCreator role to allow the - * Pipeline to create OpenID tokens for authenticated requests. - * - * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Required. Service account email used to generate the OIDC Token. - * The principal who calls this API must have - * iam.serviceAccounts.actAs permission in the service account. See - * https://cloud.google.com/iam/docs/understanding-service-accounts?hl=en#sa_common - * for more information. Eventarc service agents must have - * roles/roles/iam.serviceAccountTokenCreator role to allow the - * Pipeline to create OpenID tokens for authenticated requests. - * - * Generated from protobuf field string service_account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setServiceAccount($var) - { - GPBUtil::checkString($var, True); - $this->service_account = $var; - - return $this; - } - - /** - * Optional. Audience to be used to generate the OIDC Token. The - * audience claim identifies the recipient that the JWT is intended for. - * If unspecified, the destination URI will be used. - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getAudience() - { - return $this->audience; - } - - /** - * Optional. Audience to be used to generate the OIDC Token. The - * audience claim identifies the recipient that the JWT is intended for. - * If unspecified, the destination URI will be used. - * - * Generated from protobuf field string audience = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setAudience($var) - { - GPBUtil::checkString($var, True); - $this->audience = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(OidcToken::class, \Google\Cloud\Eventarc\V1\Pipeline_Destination_AuthenticationConfig_OidcToken::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/HttpEndpoint.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/HttpEndpoint.php deleted file mode 100644 index 5c18247fe988..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/HttpEndpoint.php +++ /dev/null @@ -1,740 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.Destination.HttpEndpoint - */ -class HttpEndpoint extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The URI of the HTTP enpdoint. - * The value must be a RFC2396 URI string. - * Examples: `https://svc.us-central1.p.local:8080/route`. - * Only the HTTPS protocol is supported. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $uri = ''; - /** - * Optional. The CEL expression used to modify how the destination-bound - * HTTP request is constructed. - * If a binding expression is not specified here, the message - * is treated as a CloudEvent and is mapped to the HTTP request according - * to the CloudEvent HTTP Protocol Binding Binary Content Mode. In this - * representation, all fields except the `data` and `datacontenttype` - * field on the message are mapped to HTTP request headers with a prefix - * of `ce-`. - * To construct the HTTP request payload and the value of the content-type - * HTTP header, the payload format is defined as follows: - * 1) Use the output_payload_format_type on the Pipeline.Destination if it - * is set, else: - * 2) Use the input_payload_format_type on the Pipeline if it is set, - * else: - * 3) Treat the payload as opaque binary data. - * The `data` field of the message is converted to the payload format or - * left as-is for case 3) and then attached as the payload of the HTTP - * request. The `content-type` header on the HTTP request is set to the - * payload format type or left empty for case 3). However, if a mediation - * has updated the `datacontenttype` field on the message so that it is - * not the same as the payload format type but it is still a prefix of the - * payload format type, then the `content-type` header on the HTTP request - * is set to this `datacontenttype` value. For example, if the - * `datacontenttype` is "application/json" and the payload format type is - * "application/json; charset=utf-8", then the `content-type` header on - * the HTTP request is set to "application/json; charset=utf-8". - * If a non-empty binding expression is specified then this expression is - * used to modify the default CloudEvent HTTP Protocol Binding Binary - * Content representation. - * The result of the CEL expression must be a map of key/value pairs - * which is used as follows: - * - If a map named `headers` exists on the result of the expression, - * then its key/value pairs are directly mapped to the HTTP request - * headers. The headers values are constructed from the corresponding - * value type’s canonical representation. If the `headers` field doesn’t - * exist then the resulting HTTP request will be the headers of the - * CloudEvent HTTP Binding Binary Content Mode representation of the final - * message. Note: If the specified binding expression, has updated the - * `datacontenttype` field on the message so that it is not the same as - * the payload format type but it is still a prefix of the payload format - * type, then the `content-type` header in the `headers` map is set to - * this `datacontenttype` value. - * - If a field named `body` exists on the result of the expression then - * its value is directly mapped to the body of the request. If the value - * of the `body` field is of type bytes or string then it is used for - * the HTTP request body as-is, with no conversion. If the body field is - * of any other type then it is converted to a JSON string. If the body - * field does not exist then the resulting payload of the HTTP request - * will be data value of the CloudEvent HTTP Binding Binary Content Mode - * representation of the final message as described earlier. - * - Any other fields in the resulting expression will be ignored. - * The CEL expression may access the incoming CloudEvent message in its - * definition, as follows: - * - The `data` field of the incoming CloudEvent message can be accessed - * using the `message.data` value. Subfields of `message.data` may also be - * accessed if an input_payload_format has been specified on the Pipeline. - * - Each attribute of the incoming CloudEvent message can be accessed - * using the `message.` value, where is replaced with the - * name of the attribute. - * - Existing headers can be accessed in the CEL expression using the - * `headers` variable. The `headers` variable defines a map of key/value - * pairs corresponding to the HTTP headers of the CloudEvent HTTP Binding - * Binary Content Mode representation of the final message as described - * earlier. For example, the following CEL expression can be used to - * construct an HTTP request by adding an additional header to the HTTP - * headers of the CloudEvent HTTP Binding Binary Content Mode - * representation of the final message and by overwriting the body of the - * request: - * ``` - * { - * "headers": headers.merge({"new-header-key": "new-header-value"}), - * "body": "new-body" - * } - * ``` - * Additionally, the following CEL extension functions are provided for - * use in this CEL expression: - * - toBase64Url: - * map.toBase64Url() -> string - * - Converts a CelValue to a base64url encoded string - * - toJsonString: map.toJsonString() -> string - * - Converts a CelValue to a JSON string - * - merge: - * map1.merge(map2) -> map3 - * - Merges the passed CEL map with the existing CEL map the - * function is applied to. - * - If the same key exists in both maps, if the key's value is type - * map both maps are merged else the value from the passed map is - * used. - * - denormalize: - * map.denormalize() -> map - * - Denormalizes a CEL map such that every value of type map or key - * in the map is expanded to return a single level map. - * - The resulting keys are "." separated indices of the map keys. - * - For example: - * { - * "a": 1, - * "b": { - * "c": 2, - * "d": 3 - * } - * "e": [4, 5] - * } - * .denormalize() - * -> { - * "a": 1, - * "b.c": 2, - * "b.d": 3, - * "e.0": 4, - * "e.1": 5 - * } - * - setField: - * map.setField(key, value) -> message - * - Sets the field of the message with the given key to the - * given value. - * - If the field is not present it will be added. - * - If the field is present it will be overwritten. - * - The key can be a dot separated path to set a field in a nested - * message. - * - Key must be of type string. - * - Value may be any valid type. - * - removeFields: - * map.removeFields([key1, key2, ...]) -> message - * - Removes the fields of the map with the given keys. - * - The keys can be a dot separated path to remove a field in a - * nested message. - * - If a key is not found it will be ignored. - * - Keys must be of type string. - * - toMap: - * [map1, map2, ...].toMap() -> map - * - Converts a CEL list of CEL maps to a single CEL map - * - toDestinationPayloadFormat(): - * message.data.toDestinationPayloadFormat() -> string or bytes - * - Converts the message data to the destination payload format - * specified in Pipeline.Destination.output_payload_format - * - This function is meant to be applied to the message.data field. - * - If the destination payload format is not set, the function will - * return the message data unchanged. - * - toCloudEventJsonWithPayloadFormat: - * message.toCloudEventJsonWithPayloadFormat() -> map - * - Converts a message to the corresponding structure of JSON - * format for CloudEvents - * - This function applies toDestinationPayloadFormat() to the - * message data. It also sets the corresponding datacontenttype of - * the CloudEvent, as indicated by - * Pipeline.Destination.output_payload_format. If no - * output_payload_format is set it will use the existing - * datacontenttype on the CloudEvent if present, else leave - * datacontenttype absent. - * - This function expects that the content of the message will - * adhere to the standard CloudEvent format. If it doesn’t then this - * function will fail. - * - The result is a CEL map that corresponds to the JSON - * representation of the CloudEvent. To convert that data to a JSON - * string it can be chained with the toJsonString function. - * The Pipeline expects that the message it receives adheres to the - * standard CloudEvent format. If it doesn’t then the outgoing message - * request may fail with a persistent error. - * - * Generated from protobuf field string message_binding_template = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $message_binding_template = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $uri - * Required. The URI of the HTTP enpdoint. - * The value must be a RFC2396 URI string. - * Examples: `https://svc.us-central1.p.local:8080/route`. - * Only the HTTPS protocol is supported. - * @type string $message_binding_template - * Optional. The CEL expression used to modify how the destination-bound - * HTTP request is constructed. - * If a binding expression is not specified here, the message - * is treated as a CloudEvent and is mapped to the HTTP request according - * to the CloudEvent HTTP Protocol Binding Binary Content Mode. In this - * representation, all fields except the `data` and `datacontenttype` - * field on the message are mapped to HTTP request headers with a prefix - * of `ce-`. - * To construct the HTTP request payload and the value of the content-type - * HTTP header, the payload format is defined as follows: - * 1) Use the output_payload_format_type on the Pipeline.Destination if it - * is set, else: - * 2) Use the input_payload_format_type on the Pipeline if it is set, - * else: - * 3) Treat the payload as opaque binary data. - * The `data` field of the message is converted to the payload format or - * left as-is for case 3) and then attached as the payload of the HTTP - * request. The `content-type` header on the HTTP request is set to the - * payload format type or left empty for case 3). However, if a mediation - * has updated the `datacontenttype` field on the message so that it is - * not the same as the payload format type but it is still a prefix of the - * payload format type, then the `content-type` header on the HTTP request - * is set to this `datacontenttype` value. For example, if the - * `datacontenttype` is "application/json" and the payload format type is - * "application/json; charset=utf-8", then the `content-type` header on - * the HTTP request is set to "application/json; charset=utf-8". - * If a non-empty binding expression is specified then this expression is - * used to modify the default CloudEvent HTTP Protocol Binding Binary - * Content representation. - * The result of the CEL expression must be a map of key/value pairs - * which is used as follows: - * - If a map named `headers` exists on the result of the expression, - * then its key/value pairs are directly mapped to the HTTP request - * headers. The headers values are constructed from the corresponding - * value type’s canonical representation. If the `headers` field doesn’t - * exist then the resulting HTTP request will be the headers of the - * CloudEvent HTTP Binding Binary Content Mode representation of the final - * message. Note: If the specified binding expression, has updated the - * `datacontenttype` field on the message so that it is not the same as - * the payload format type but it is still a prefix of the payload format - * type, then the `content-type` header in the `headers` map is set to - * this `datacontenttype` value. - * - If a field named `body` exists on the result of the expression then - * its value is directly mapped to the body of the request. If the value - * of the `body` field is of type bytes or string then it is used for - * the HTTP request body as-is, with no conversion. If the body field is - * of any other type then it is converted to a JSON string. If the body - * field does not exist then the resulting payload of the HTTP request - * will be data value of the CloudEvent HTTP Binding Binary Content Mode - * representation of the final message as described earlier. - * - Any other fields in the resulting expression will be ignored. - * The CEL expression may access the incoming CloudEvent message in its - * definition, as follows: - * - The `data` field of the incoming CloudEvent message can be accessed - * using the `message.data` value. Subfields of `message.data` may also be - * accessed if an input_payload_format has been specified on the Pipeline. - * - Each attribute of the incoming CloudEvent message can be accessed - * using the `message.` value, where is replaced with the - * name of the attribute. - * - Existing headers can be accessed in the CEL expression using the - * `headers` variable. The `headers` variable defines a map of key/value - * pairs corresponding to the HTTP headers of the CloudEvent HTTP Binding - * Binary Content Mode representation of the final message as described - * earlier. For example, the following CEL expression can be used to - * construct an HTTP request by adding an additional header to the HTTP - * headers of the CloudEvent HTTP Binding Binary Content Mode - * representation of the final message and by overwriting the body of the - * request: - * ``` - * { - * "headers": headers.merge({"new-header-key": "new-header-value"}), - * "body": "new-body" - * } - * ``` - * Additionally, the following CEL extension functions are provided for - * use in this CEL expression: - * - toBase64Url: - * map.toBase64Url() -> string - * - Converts a CelValue to a base64url encoded string - * - toJsonString: map.toJsonString() -> string - * - Converts a CelValue to a JSON string - * - merge: - * map1.merge(map2) -> map3 - * - Merges the passed CEL map with the existing CEL map the - * function is applied to. - * - If the same key exists in both maps, if the key's value is type - * map both maps are merged else the value from the passed map is - * used. - * - denormalize: - * map.denormalize() -> map - * - Denormalizes a CEL map such that every value of type map or key - * in the map is expanded to return a single level map. - * - The resulting keys are "." separated indices of the map keys. - * - For example: - * { - * "a": 1, - * "b": { - * "c": 2, - * "d": 3 - * } - * "e": [4, 5] - * } - * .denormalize() - * -> { - * "a": 1, - * "b.c": 2, - * "b.d": 3, - * "e.0": 4, - * "e.1": 5 - * } - * - setField: - * map.setField(key, value) -> message - * - Sets the field of the message with the given key to the - * given value. - * - If the field is not present it will be added. - * - If the field is present it will be overwritten. - * - The key can be a dot separated path to set a field in a nested - * message. - * - Key must be of type string. - * - Value may be any valid type. - * - removeFields: - * map.removeFields([key1, key2, ...]) -> message - * - Removes the fields of the map with the given keys. - * - The keys can be a dot separated path to remove a field in a - * nested message. - * - If a key is not found it will be ignored. - * - Keys must be of type string. - * - toMap: - * [map1, map2, ...].toMap() -> map - * - Converts a CEL list of CEL maps to a single CEL map - * - toDestinationPayloadFormat(): - * message.data.toDestinationPayloadFormat() -> string or bytes - * - Converts the message data to the destination payload format - * specified in Pipeline.Destination.output_payload_format - * - This function is meant to be applied to the message.data field. - * - If the destination payload format is not set, the function will - * return the message data unchanged. - * - toCloudEventJsonWithPayloadFormat: - * message.toCloudEventJsonWithPayloadFormat() -> map - * - Converts a message to the corresponding structure of JSON - * format for CloudEvents - * - This function applies toDestinationPayloadFormat() to the - * message data. It also sets the corresponding datacontenttype of - * the CloudEvent, as indicated by - * Pipeline.Destination.output_payload_format. If no - * output_payload_format is set it will use the existing - * datacontenttype on the CloudEvent if present, else leave - * datacontenttype absent. - * - This function expects that the content of the message will - * adhere to the standard CloudEvent format. If it doesn’t then this - * function will fail. - * - The result is a CEL map that corresponds to the JSON - * representation of the CloudEvent. To convert that data to a JSON - * string it can be chained with the toJsonString function. - * The Pipeline expects that the message it receives adheres to the - * standard CloudEvent format. If it doesn’t then the outgoing message - * request may fail with a persistent error. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Required. The URI of the HTTP enpdoint. - * The value must be a RFC2396 URI string. - * Examples: `https://svc.us-central1.p.local:8080/route`. - * Only the HTTPS protocol is supported. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getUri() - { - return $this->uri; - } - - /** - * Required. The URI of the HTTP enpdoint. - * The value must be a RFC2396 URI string. - * Examples: `https://svc.us-central1.p.local:8080/route`. - * Only the HTTPS protocol is supported. - * - * Generated from protobuf field string uri = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setUri($var) - { - GPBUtil::checkString($var, True); - $this->uri = $var; - - return $this; - } - - /** - * Optional. The CEL expression used to modify how the destination-bound - * HTTP request is constructed. - * If a binding expression is not specified here, the message - * is treated as a CloudEvent and is mapped to the HTTP request according - * to the CloudEvent HTTP Protocol Binding Binary Content Mode. In this - * representation, all fields except the `data` and `datacontenttype` - * field on the message are mapped to HTTP request headers with a prefix - * of `ce-`. - * To construct the HTTP request payload and the value of the content-type - * HTTP header, the payload format is defined as follows: - * 1) Use the output_payload_format_type on the Pipeline.Destination if it - * is set, else: - * 2) Use the input_payload_format_type on the Pipeline if it is set, - * else: - * 3) Treat the payload as opaque binary data. - * The `data` field of the message is converted to the payload format or - * left as-is for case 3) and then attached as the payload of the HTTP - * request. The `content-type` header on the HTTP request is set to the - * payload format type or left empty for case 3). However, if a mediation - * has updated the `datacontenttype` field on the message so that it is - * not the same as the payload format type but it is still a prefix of the - * payload format type, then the `content-type` header on the HTTP request - * is set to this `datacontenttype` value. For example, if the - * `datacontenttype` is "application/json" and the payload format type is - * "application/json; charset=utf-8", then the `content-type` header on - * the HTTP request is set to "application/json; charset=utf-8". - * If a non-empty binding expression is specified then this expression is - * used to modify the default CloudEvent HTTP Protocol Binding Binary - * Content representation. - * The result of the CEL expression must be a map of key/value pairs - * which is used as follows: - * - If a map named `headers` exists on the result of the expression, - * then its key/value pairs are directly mapped to the HTTP request - * headers. The headers values are constructed from the corresponding - * value type’s canonical representation. If the `headers` field doesn’t - * exist then the resulting HTTP request will be the headers of the - * CloudEvent HTTP Binding Binary Content Mode representation of the final - * message. Note: If the specified binding expression, has updated the - * `datacontenttype` field on the message so that it is not the same as - * the payload format type but it is still a prefix of the payload format - * type, then the `content-type` header in the `headers` map is set to - * this `datacontenttype` value. - * - If a field named `body` exists on the result of the expression then - * its value is directly mapped to the body of the request. If the value - * of the `body` field is of type bytes or string then it is used for - * the HTTP request body as-is, with no conversion. If the body field is - * of any other type then it is converted to a JSON string. If the body - * field does not exist then the resulting payload of the HTTP request - * will be data value of the CloudEvent HTTP Binding Binary Content Mode - * representation of the final message as described earlier. - * - Any other fields in the resulting expression will be ignored. - * The CEL expression may access the incoming CloudEvent message in its - * definition, as follows: - * - The `data` field of the incoming CloudEvent message can be accessed - * using the `message.data` value. Subfields of `message.data` may also be - * accessed if an input_payload_format has been specified on the Pipeline. - * - Each attribute of the incoming CloudEvent message can be accessed - * using the `message.` value, where is replaced with the - * name of the attribute. - * - Existing headers can be accessed in the CEL expression using the - * `headers` variable. The `headers` variable defines a map of key/value - * pairs corresponding to the HTTP headers of the CloudEvent HTTP Binding - * Binary Content Mode representation of the final message as described - * earlier. For example, the following CEL expression can be used to - * construct an HTTP request by adding an additional header to the HTTP - * headers of the CloudEvent HTTP Binding Binary Content Mode - * representation of the final message and by overwriting the body of the - * request: - * ``` - * { - * "headers": headers.merge({"new-header-key": "new-header-value"}), - * "body": "new-body" - * } - * ``` - * Additionally, the following CEL extension functions are provided for - * use in this CEL expression: - * - toBase64Url: - * map.toBase64Url() -> string - * - Converts a CelValue to a base64url encoded string - * - toJsonString: map.toJsonString() -> string - * - Converts a CelValue to a JSON string - * - merge: - * map1.merge(map2) -> map3 - * - Merges the passed CEL map with the existing CEL map the - * function is applied to. - * - If the same key exists in both maps, if the key's value is type - * map both maps are merged else the value from the passed map is - * used. - * - denormalize: - * map.denormalize() -> map - * - Denormalizes a CEL map such that every value of type map or key - * in the map is expanded to return a single level map. - * - The resulting keys are "." separated indices of the map keys. - * - For example: - * { - * "a": 1, - * "b": { - * "c": 2, - * "d": 3 - * } - * "e": [4, 5] - * } - * .denormalize() - * -> { - * "a": 1, - * "b.c": 2, - * "b.d": 3, - * "e.0": 4, - * "e.1": 5 - * } - * - setField: - * map.setField(key, value) -> message - * - Sets the field of the message with the given key to the - * given value. - * - If the field is not present it will be added. - * - If the field is present it will be overwritten. - * - The key can be a dot separated path to set a field in a nested - * message. - * - Key must be of type string. - * - Value may be any valid type. - * - removeFields: - * map.removeFields([key1, key2, ...]) -> message - * - Removes the fields of the map with the given keys. - * - The keys can be a dot separated path to remove a field in a - * nested message. - * - If a key is not found it will be ignored. - * - Keys must be of type string. - * - toMap: - * [map1, map2, ...].toMap() -> map - * - Converts a CEL list of CEL maps to a single CEL map - * - toDestinationPayloadFormat(): - * message.data.toDestinationPayloadFormat() -> string or bytes - * - Converts the message data to the destination payload format - * specified in Pipeline.Destination.output_payload_format - * - This function is meant to be applied to the message.data field. - * - If the destination payload format is not set, the function will - * return the message data unchanged. - * - toCloudEventJsonWithPayloadFormat: - * message.toCloudEventJsonWithPayloadFormat() -> map - * - Converts a message to the corresponding structure of JSON - * format for CloudEvents - * - This function applies toDestinationPayloadFormat() to the - * message data. It also sets the corresponding datacontenttype of - * the CloudEvent, as indicated by - * Pipeline.Destination.output_payload_format. If no - * output_payload_format is set it will use the existing - * datacontenttype on the CloudEvent if present, else leave - * datacontenttype absent. - * - This function expects that the content of the message will - * adhere to the standard CloudEvent format. If it doesn’t then this - * function will fail. - * - The result is a CEL map that corresponds to the JSON - * representation of the CloudEvent. To convert that data to a JSON - * string it can be chained with the toJsonString function. - * The Pipeline expects that the message it receives adheres to the - * standard CloudEvent format. If it doesn’t then the outgoing message - * request may fail with a persistent error. - * - * Generated from protobuf field string message_binding_template = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getMessageBindingTemplate() - { - return $this->message_binding_template; - } - - /** - * Optional. The CEL expression used to modify how the destination-bound - * HTTP request is constructed. - * If a binding expression is not specified here, the message - * is treated as a CloudEvent and is mapped to the HTTP request according - * to the CloudEvent HTTP Protocol Binding Binary Content Mode. In this - * representation, all fields except the `data` and `datacontenttype` - * field on the message are mapped to HTTP request headers with a prefix - * of `ce-`. - * To construct the HTTP request payload and the value of the content-type - * HTTP header, the payload format is defined as follows: - * 1) Use the output_payload_format_type on the Pipeline.Destination if it - * is set, else: - * 2) Use the input_payload_format_type on the Pipeline if it is set, - * else: - * 3) Treat the payload as opaque binary data. - * The `data` field of the message is converted to the payload format or - * left as-is for case 3) and then attached as the payload of the HTTP - * request. The `content-type` header on the HTTP request is set to the - * payload format type or left empty for case 3). However, if a mediation - * has updated the `datacontenttype` field on the message so that it is - * not the same as the payload format type but it is still a prefix of the - * payload format type, then the `content-type` header on the HTTP request - * is set to this `datacontenttype` value. For example, if the - * `datacontenttype` is "application/json" and the payload format type is - * "application/json; charset=utf-8", then the `content-type` header on - * the HTTP request is set to "application/json; charset=utf-8". - * If a non-empty binding expression is specified then this expression is - * used to modify the default CloudEvent HTTP Protocol Binding Binary - * Content representation. - * The result of the CEL expression must be a map of key/value pairs - * which is used as follows: - * - If a map named `headers` exists on the result of the expression, - * then its key/value pairs are directly mapped to the HTTP request - * headers. The headers values are constructed from the corresponding - * value type’s canonical representation. If the `headers` field doesn’t - * exist then the resulting HTTP request will be the headers of the - * CloudEvent HTTP Binding Binary Content Mode representation of the final - * message. Note: If the specified binding expression, has updated the - * `datacontenttype` field on the message so that it is not the same as - * the payload format type but it is still a prefix of the payload format - * type, then the `content-type` header in the `headers` map is set to - * this `datacontenttype` value. - * - If a field named `body` exists on the result of the expression then - * its value is directly mapped to the body of the request. If the value - * of the `body` field is of type bytes or string then it is used for - * the HTTP request body as-is, with no conversion. If the body field is - * of any other type then it is converted to a JSON string. If the body - * field does not exist then the resulting payload of the HTTP request - * will be data value of the CloudEvent HTTP Binding Binary Content Mode - * representation of the final message as described earlier. - * - Any other fields in the resulting expression will be ignored. - * The CEL expression may access the incoming CloudEvent message in its - * definition, as follows: - * - The `data` field of the incoming CloudEvent message can be accessed - * using the `message.data` value. Subfields of `message.data` may also be - * accessed if an input_payload_format has been specified on the Pipeline. - * - Each attribute of the incoming CloudEvent message can be accessed - * using the `message.` value, where is replaced with the - * name of the attribute. - * - Existing headers can be accessed in the CEL expression using the - * `headers` variable. The `headers` variable defines a map of key/value - * pairs corresponding to the HTTP headers of the CloudEvent HTTP Binding - * Binary Content Mode representation of the final message as described - * earlier. For example, the following CEL expression can be used to - * construct an HTTP request by adding an additional header to the HTTP - * headers of the CloudEvent HTTP Binding Binary Content Mode - * representation of the final message and by overwriting the body of the - * request: - * ``` - * { - * "headers": headers.merge({"new-header-key": "new-header-value"}), - * "body": "new-body" - * } - * ``` - * Additionally, the following CEL extension functions are provided for - * use in this CEL expression: - * - toBase64Url: - * map.toBase64Url() -> string - * - Converts a CelValue to a base64url encoded string - * - toJsonString: map.toJsonString() -> string - * - Converts a CelValue to a JSON string - * - merge: - * map1.merge(map2) -> map3 - * - Merges the passed CEL map with the existing CEL map the - * function is applied to. - * - If the same key exists in both maps, if the key's value is type - * map both maps are merged else the value from the passed map is - * used. - * - denormalize: - * map.denormalize() -> map - * - Denormalizes a CEL map such that every value of type map or key - * in the map is expanded to return a single level map. - * - The resulting keys are "." separated indices of the map keys. - * - For example: - * { - * "a": 1, - * "b": { - * "c": 2, - * "d": 3 - * } - * "e": [4, 5] - * } - * .denormalize() - * -> { - * "a": 1, - * "b.c": 2, - * "b.d": 3, - * "e.0": 4, - * "e.1": 5 - * } - * - setField: - * map.setField(key, value) -> message - * - Sets the field of the message with the given key to the - * given value. - * - If the field is not present it will be added. - * - If the field is present it will be overwritten. - * - The key can be a dot separated path to set a field in a nested - * message. - * - Key must be of type string. - * - Value may be any valid type. - * - removeFields: - * map.removeFields([key1, key2, ...]) -> message - * - Removes the fields of the map with the given keys. - * - The keys can be a dot separated path to remove a field in a - * nested message. - * - If a key is not found it will be ignored. - * - Keys must be of type string. - * - toMap: - * [map1, map2, ...].toMap() -> map - * - Converts a CEL list of CEL maps to a single CEL map - * - toDestinationPayloadFormat(): - * message.data.toDestinationPayloadFormat() -> string or bytes - * - Converts the message data to the destination payload format - * specified in Pipeline.Destination.output_payload_format - * - This function is meant to be applied to the message.data field. - * - If the destination payload format is not set, the function will - * return the message data unchanged. - * - toCloudEventJsonWithPayloadFormat: - * message.toCloudEventJsonWithPayloadFormat() -> map - * - Converts a message to the corresponding structure of JSON - * format for CloudEvents - * - This function applies toDestinationPayloadFormat() to the - * message data. It also sets the corresponding datacontenttype of - * the CloudEvent, as indicated by - * Pipeline.Destination.output_payload_format. If no - * output_payload_format is set it will use the existing - * datacontenttype on the CloudEvent if present, else leave - * datacontenttype absent. - * - This function expects that the content of the message will - * adhere to the standard CloudEvent format. If it doesn’t then this - * function will fail. - * - The result is a CEL map that corresponds to the JSON - * representation of the CloudEvent. To convert that data to a JSON - * string it can be chained with the toJsonString function. - * The Pipeline expects that the message it receives adheres to the - * standard CloudEvent format. If it doesn’t then the outgoing message - * request may fail with a persistent error. - * - * Generated from protobuf field string message_binding_template = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setMessageBindingTemplate($var) - { - GPBUtil::checkString($var, True); - $this->message_binding_template = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(HttpEndpoint::class, \Google\Cloud\Eventarc\V1\Pipeline_Destination_HttpEndpoint::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/NetworkConfig.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/NetworkConfig.php deleted file mode 100644 index b53fa44d2374..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Destination/NetworkConfig.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.Destination.NetworkConfig - */ -class NetworkConfig extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Name of the NetworkAttachment that allows access to the - * consumer VPC. Format: - * `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}` - * - * Generated from protobuf field string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - */ - protected $network_attachment = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $network_attachment - * Required. Name of the NetworkAttachment that allows access to the - * consumer VPC. Format: - * `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}` - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Required. Name of the NetworkAttachment that allows access to the - * consumer VPC. Format: - * `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}` - * - * Generated from protobuf field string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @return string - */ - public function getNetworkAttachment() - { - return $this->network_attachment; - } - - /** - * Required. Name of the NetworkAttachment that allows access to the - * consumer VPC. Format: - * `projects/{PROJECT_ID}/regions/{REGION}/networkAttachments/{NETWORK_ATTACHMENT_NAME}` - * - * Generated from protobuf field string network_attachment = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { - * @param string $var - * @return $this - */ - public function setNetworkAttachment($var) - { - GPBUtil::checkString($var, True); - $this->network_attachment = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(NetworkConfig::class, \Google\Cloud\Eventarc\V1\Pipeline_Destination_NetworkConfig::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Mediation.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Mediation.php deleted file mode 100644 index e31e50e48a14..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Mediation.php +++ /dev/null @@ -1,78 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.Mediation - */ -class Mediation extends \Google\Protobuf\Internal\Message -{ - protected $mediation_descriptor; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\Pipeline\Mediation\Transformation $transformation - * Optional. How the Pipeline is to transform messages - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Optional. How the Pipeline is to transform messages - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Mediation.Transformation transformation = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\Mediation\Transformation|null - */ - public function getTransformation() - { - return $this->readOneof(1); - } - - public function hasTransformation() - { - return $this->hasOneof(1); - } - - /** - * Optional. How the Pipeline is to transform messages - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.Mediation.Transformation transformation = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\Mediation\Transformation $var - * @return $this - */ - public function setTransformation($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\Mediation\Transformation::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getMediationDescriptor() - { - return $this->whichOneof("mediation_descriptor"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Mediation::class, \Google\Cloud\Eventarc\V1\Pipeline_Mediation::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Mediation/Transformation.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Mediation/Transformation.php deleted file mode 100644 index 9f7167e46164..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/Mediation/Transformation.php +++ /dev/null @@ -1,370 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.Mediation.Transformation - */ -class Transformation extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The CEL expression template to apply to transform messages. - * The following CEL extension functions are provided for - * use in this CEL expression: - * - merge: - * map1.merge(map2) -> map3 - * - Merges the passed CEL map with the existing CEL map the - * function is applied to. - * - If the same key exists in both maps, if the key's value is type - * map both maps are merged else the value from the passed map is - * used. - * - denormalize: - * map.denormalize() -> map - * - Denormalizes a CEL map such that every value of type map or key - * in the map is expanded to return a single level map. - * - The resulting keys are "." separated indices of the map keys. - * - For example: - * { - * "a": 1, - * "b": { - * "c": 2, - * "d": 3 - * } - * "e": [4, 5] - * } - * .denormalize() - * -> { - * "a": 1, - * "b.c": 2, - * "b.d": 3, - * "e.0": 4, - * "e.1": 5 - * } - * - setField: - * map.setField(key, value) -> message - * - Sets the field of the message with the given key to the - * given value. - * - If the field is not present it will be added. - * - If the field is present it will be overwritten. - * - The key can be a dot separated path to set a field in a nested - * message. - * - Key must be of type string. - * - Value may be any valid type. - * - removeFields: - * map.removeFields([key1, key2, ...]) -> message - * - Removes the fields of the map with the given keys. - * - The keys can be a dot separated path to remove a field in a - * nested message. - * - If a key is not found it will be ignored. - * - Keys must be of type string. - * - toMap: - * [map1, map2, ...].toMap() -> map - * - Converts a CEL list of CEL maps to a single CEL map - * - toDestinationPayloadFormat(): - * message.data.toDestinationPayloadFormat() -> string or bytes - * - Converts the message data to the destination payload format - * specified in Pipeline.Destination.output_payload_format - * - This function is meant to be applied to the message.data field. - * - If the destination payload format is not set, the function will - * return the message data unchanged. - * - toCloudEventJsonWithPayloadFormat: - * message.toCloudEventJsonWithPayloadFormat() -> map - * - Converts a message to the corresponding structure of JSON - * format for CloudEvents - * - This function applies toDestinationPayloadFormat() to the - * message data. It also sets the corresponding datacontenttype of - * the CloudEvent, as indicated by - * Pipeline.Destination.output_payload_format. If no - * output_payload_format is set it will use the existing - * datacontenttype on the CloudEvent if present, else leave - * datacontenttype absent. - * - This function expects that the content of the message will - * adhere to the standard CloudEvent format. If it doesn’t then this - * function will fail. - * - The result is a CEL map that corresponds to the JSON - * representation of the CloudEvent. To convert that data to a JSON - * string it can be chained with the toJsonString function. - * - * Generated from protobuf field string transformation_template = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $transformation_template = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $transformation_template - * Optional. The CEL expression template to apply to transform messages. - * The following CEL extension functions are provided for - * use in this CEL expression: - * - merge: - * map1.merge(map2) -> map3 - * - Merges the passed CEL map with the existing CEL map the - * function is applied to. - * - If the same key exists in both maps, if the key's value is type - * map both maps are merged else the value from the passed map is - * used. - * - denormalize: - * map.denormalize() -> map - * - Denormalizes a CEL map such that every value of type map or key - * in the map is expanded to return a single level map. - * - The resulting keys are "." separated indices of the map keys. - * - For example: - * { - * "a": 1, - * "b": { - * "c": 2, - * "d": 3 - * } - * "e": [4, 5] - * } - * .denormalize() - * -> { - * "a": 1, - * "b.c": 2, - * "b.d": 3, - * "e.0": 4, - * "e.1": 5 - * } - * - setField: - * map.setField(key, value) -> message - * - Sets the field of the message with the given key to the - * given value. - * - If the field is not present it will be added. - * - If the field is present it will be overwritten. - * - The key can be a dot separated path to set a field in a nested - * message. - * - Key must be of type string. - * - Value may be any valid type. - * - removeFields: - * map.removeFields([key1, key2, ...]) -> message - * - Removes the fields of the map with the given keys. - * - The keys can be a dot separated path to remove a field in a - * nested message. - * - If a key is not found it will be ignored. - * - Keys must be of type string. - * - toMap: - * [map1, map2, ...].toMap() -> map - * - Converts a CEL list of CEL maps to a single CEL map - * - toDestinationPayloadFormat(): - * message.data.toDestinationPayloadFormat() -> string or bytes - * - Converts the message data to the destination payload format - * specified in Pipeline.Destination.output_payload_format - * - This function is meant to be applied to the message.data field. - * - If the destination payload format is not set, the function will - * return the message data unchanged. - * - toCloudEventJsonWithPayloadFormat: - * message.toCloudEventJsonWithPayloadFormat() -> map - * - Converts a message to the corresponding structure of JSON - * format for CloudEvents - * - This function applies toDestinationPayloadFormat() to the - * message data. It also sets the corresponding datacontenttype of - * the CloudEvent, as indicated by - * Pipeline.Destination.output_payload_format. If no - * output_payload_format is set it will use the existing - * datacontenttype on the CloudEvent if present, else leave - * datacontenttype absent. - * - This function expects that the content of the message will - * adhere to the standard CloudEvent format. If it doesn’t then this - * function will fail. - * - The result is a CEL map that corresponds to the JSON - * representation of the CloudEvent. To convert that data to a JSON - * string it can be chained with the toJsonString function. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The CEL expression template to apply to transform messages. - * The following CEL extension functions are provided for - * use in this CEL expression: - * - merge: - * map1.merge(map2) -> map3 - * - Merges the passed CEL map with the existing CEL map the - * function is applied to. - * - If the same key exists in both maps, if the key's value is type - * map both maps are merged else the value from the passed map is - * used. - * - denormalize: - * map.denormalize() -> map - * - Denormalizes a CEL map such that every value of type map or key - * in the map is expanded to return a single level map. - * - The resulting keys are "." separated indices of the map keys. - * - For example: - * { - * "a": 1, - * "b": { - * "c": 2, - * "d": 3 - * } - * "e": [4, 5] - * } - * .denormalize() - * -> { - * "a": 1, - * "b.c": 2, - * "b.d": 3, - * "e.0": 4, - * "e.1": 5 - * } - * - setField: - * map.setField(key, value) -> message - * - Sets the field of the message with the given key to the - * given value. - * - If the field is not present it will be added. - * - If the field is present it will be overwritten. - * - The key can be a dot separated path to set a field in a nested - * message. - * - Key must be of type string. - * - Value may be any valid type. - * - removeFields: - * map.removeFields([key1, key2, ...]) -> message - * - Removes the fields of the map with the given keys. - * - The keys can be a dot separated path to remove a field in a - * nested message. - * - If a key is not found it will be ignored. - * - Keys must be of type string. - * - toMap: - * [map1, map2, ...].toMap() -> map - * - Converts a CEL list of CEL maps to a single CEL map - * - toDestinationPayloadFormat(): - * message.data.toDestinationPayloadFormat() -> string or bytes - * - Converts the message data to the destination payload format - * specified in Pipeline.Destination.output_payload_format - * - This function is meant to be applied to the message.data field. - * - If the destination payload format is not set, the function will - * return the message data unchanged. - * - toCloudEventJsonWithPayloadFormat: - * message.toCloudEventJsonWithPayloadFormat() -> map - * - Converts a message to the corresponding structure of JSON - * format for CloudEvents - * - This function applies toDestinationPayloadFormat() to the - * message data. It also sets the corresponding datacontenttype of - * the CloudEvent, as indicated by - * Pipeline.Destination.output_payload_format. If no - * output_payload_format is set it will use the existing - * datacontenttype on the CloudEvent if present, else leave - * datacontenttype absent. - * - This function expects that the content of the message will - * adhere to the standard CloudEvent format. If it doesn’t then this - * function will fail. - * - The result is a CEL map that corresponds to the JSON - * representation of the CloudEvent. To convert that data to a JSON - * string it can be chained with the toJsonString function. - * - * Generated from protobuf field string transformation_template = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTransformationTemplate() - { - return $this->transformation_template; - } - - /** - * Optional. The CEL expression template to apply to transform messages. - * The following CEL extension functions are provided for - * use in this CEL expression: - * - merge: - * map1.merge(map2) -> map3 - * - Merges the passed CEL map with the existing CEL map the - * function is applied to. - * - If the same key exists in both maps, if the key's value is type - * map both maps are merged else the value from the passed map is - * used. - * - denormalize: - * map.denormalize() -> map - * - Denormalizes a CEL map such that every value of type map or key - * in the map is expanded to return a single level map. - * - The resulting keys are "." separated indices of the map keys. - * - For example: - * { - * "a": 1, - * "b": { - * "c": 2, - * "d": 3 - * } - * "e": [4, 5] - * } - * .denormalize() - * -> { - * "a": 1, - * "b.c": 2, - * "b.d": 3, - * "e.0": 4, - * "e.1": 5 - * } - * - setField: - * map.setField(key, value) -> message - * - Sets the field of the message with the given key to the - * given value. - * - If the field is not present it will be added. - * - If the field is present it will be overwritten. - * - The key can be a dot separated path to set a field in a nested - * message. - * - Key must be of type string. - * - Value may be any valid type. - * - removeFields: - * map.removeFields([key1, key2, ...]) -> message - * - Removes the fields of the map with the given keys. - * - The keys can be a dot separated path to remove a field in a - * nested message. - * - If a key is not found it will be ignored. - * - Keys must be of type string. - * - toMap: - * [map1, map2, ...].toMap() -> map - * - Converts a CEL list of CEL maps to a single CEL map - * - toDestinationPayloadFormat(): - * message.data.toDestinationPayloadFormat() -> string or bytes - * - Converts the message data to the destination payload format - * specified in Pipeline.Destination.output_payload_format - * - This function is meant to be applied to the message.data field. - * - If the destination payload format is not set, the function will - * return the message data unchanged. - * - toCloudEventJsonWithPayloadFormat: - * message.toCloudEventJsonWithPayloadFormat() -> map - * - Converts a message to the corresponding structure of JSON - * format for CloudEvents - * - This function applies toDestinationPayloadFormat() to the - * message data. It also sets the corresponding datacontenttype of - * the CloudEvent, as indicated by - * Pipeline.Destination.output_payload_format. If no - * output_payload_format is set it will use the existing - * datacontenttype on the CloudEvent if present, else leave - * datacontenttype absent. - * - This function expects that the content of the message will - * adhere to the standard CloudEvent format. If it doesn’t then this - * function will fail. - * - The result is a CEL map that corresponds to the JSON - * representation of the CloudEvent. To convert that data to a JSON - * string it can be chained with the toJsonString function. - * - * Generated from protobuf field string transformation_template = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTransformationTemplate($var) - { - GPBUtil::checkString($var, True); - $this->transformation_template = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(Transformation::class, \Google\Cloud\Eventarc\V1\Pipeline_Mediation_Transformation::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat.php deleted file mode 100644 index f830368107a0..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat.php +++ /dev/null @@ -1,144 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat - */ -class MessagePayloadFormat extends \Google\Protobuf\Internal\Message -{ - protected $kind; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\ProtobufFormat $protobuf - * Optional. Protobuf format. - * @type \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\AvroFormat $avro - * Optional. Avro format. - * @type \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\JsonFormat $json - * Optional. JSON format. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Optional. Protobuf format. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat protobuf = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\ProtobufFormat|null - */ - public function getProtobuf() - { - return $this->readOneof(1); - } - - public function hasProtobuf() - { - return $this->hasOneof(1); - } - - /** - * Optional. Protobuf format. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat protobuf = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\ProtobufFormat $var - * @return $this - */ - public function setProtobuf($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\ProtobufFormat::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Optional. Avro format. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat avro = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\AvroFormat|null - */ - public function getAvro() - { - return $this->readOneof(2); - } - - public function hasAvro() - { - return $this->hasOneof(2); - } - - /** - * Optional. Avro format. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat avro = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\AvroFormat $var - * @return $this - */ - public function setAvro($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\AvroFormat::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * Optional. JSON format. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat json = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\JsonFormat|null - */ - public function getJson() - { - return $this->readOneof(3); - } - - public function hasJson() - { - return $this->hasOneof(3); - } - - /** - * Optional. JSON format. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat json = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\JsonFormat $var - * @return $this - */ - public function setJson($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\JsonFormat::class); - $this->writeOneof(3, $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(MessagePayloadFormat::class, \Google\Cloud\Eventarc\V1\Pipeline_MessagePayloadFormat::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/AvroFormat.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/AvroFormat.php deleted file mode 100644 index 9a243655793d..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/AvroFormat.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.AvroFormat - */ -class AvroFormat extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The entire schema definition is stored in this field. - * - * Generated from protobuf field string schema_definition = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema_definition = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $schema_definition - * Optional. The entire schema definition is stored in this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The entire schema definition is stored in this field. - * - * Generated from protobuf field string schema_definition = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchemaDefinition() - { - return $this->schema_definition; - } - - /** - * Optional. The entire schema definition is stored in this field. - * - * Generated from protobuf field string schema_definition = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchemaDefinition($var) - { - GPBUtil::checkString($var, True); - $this->schema_definition = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(AvroFormat::class, \Google\Cloud\Eventarc\V1\Pipeline_MessagePayloadFormat_AvroFormat::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/JsonFormat.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/JsonFormat.php deleted file mode 100644 index 392714db2ce2..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/JsonFormat.php +++ /dev/null @@ -1,36 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.JsonFormat - */ -class JsonFormat extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(JsonFormat::class, \Google\Cloud\Eventarc\V1\Pipeline_MessagePayloadFormat_JsonFormat::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/ProtobufFormat.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/ProtobufFormat.php deleted file mode 100644 index 6d761aa346eb..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/MessagePayloadFormat/ProtobufFormat.php +++ /dev/null @@ -1,70 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat.ProtobufFormat - */ -class ProtobufFormat extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The entire schema definition is stored in this field. - * - * Generated from protobuf field string schema_definition = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $schema_definition = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $schema_definition - * Optional. The entire schema definition is stored in this field. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The entire schema definition is stored in this field. - * - * Generated from protobuf field string schema_definition = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getSchemaDefinition() - { - return $this->schema_definition; - } - - /** - * Optional. The entire schema definition is stored in this field. - * - * Generated from protobuf field string schema_definition = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setSchemaDefinition($var) - { - GPBUtil::checkString($var, True); - $this->schema_definition = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(ProtobufFormat::class, \Google\Cloud\Eventarc\V1\Pipeline_MessagePayloadFormat_ProtobufFormat::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/RetryPolicy.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/RetryPolicy.php deleted file mode 100644 index 7f6ee67d94ab..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pipeline/RetryPolicy.php +++ /dev/null @@ -1,185 +0,0 @@ -google.cloud.eventarc.v1.Pipeline.RetryPolicy - */ -class RetryPolicy extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The maximum number of delivery attempts for any message. The - * value must be between 1 and 100. The default value for this field is 5. - * - * Generated from protobuf field int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_attempts = 0; - /** - * Optional. The minimum amount of seconds to wait between retry attempts. - * The value must be between 1 and 600. The default value for this field - * is 5. - * - * Generated from protobuf field .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $min_retry_delay = null; - /** - * Optional. The maximum amount of seconds to wait between retry attempts. - * The value must be between 1 and 600. The default value for this field - * is 60. - * - * Generated from protobuf field .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $max_retry_delay = null; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $max_attempts - * Optional. The maximum number of delivery attempts for any message. The - * value must be between 1 and 100. The default value for this field is 5. - * @type \Google\Protobuf\Duration $min_retry_delay - * Optional. The minimum amount of seconds to wait between retry attempts. - * The value must be between 1 and 600. The default value for this field - * is 5. - * @type \Google\Protobuf\Duration $max_retry_delay - * Optional. The maximum amount of seconds to wait between retry attempts. - * The value must be between 1 and 600. The default value for this field - * is 60. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Pipeline::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The maximum number of delivery attempts for any message. The - * value must be between 1 and 100. The default value for this field is 5. - * - * Generated from protobuf field int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return int - */ - public function getMaxAttempts() - { - return $this->max_attempts; - } - - /** - * Optional. The maximum number of delivery attempts for any message. The - * value must be between 1 and 100. The default value for this field is 5. - * - * Generated from protobuf field int32 max_attempts = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param int $var - * @return $this - */ - public function setMaxAttempts($var) - { - GPBUtil::checkInt32($var); - $this->max_attempts = $var; - - return $this; - } - - /** - * Optional. The minimum amount of seconds to wait between retry attempts. - * The value must be between 1 and 600. The default value for this field - * is 5. - * - * Generated from protobuf field .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getMinRetryDelay() - { - return $this->min_retry_delay; - } - - public function hasMinRetryDelay() - { - return isset($this->min_retry_delay); - } - - public function clearMinRetryDelay() - { - unset($this->min_retry_delay); - } - - /** - * Optional. The minimum amount of seconds to wait between retry attempts. - * The value must be between 1 and 600. The default value for this field - * is 5. - * - * Generated from protobuf field .google.protobuf.Duration min_retry_delay = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMinRetryDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->min_retry_delay = $var; - - return $this; - } - - /** - * Optional. The maximum amount of seconds to wait between retry attempts. - * The value must be between 1 and 600. The default value for this field - * is 60. - * - * Generated from protobuf field .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Duration|null - */ - public function getMaxRetryDelay() - { - return $this->max_retry_delay; - } - - public function hasMaxRetryDelay() - { - return isset($this->max_retry_delay); - } - - public function clearMaxRetryDelay() - { - unset($this->max_retry_delay); - } - - /** - * Optional. The maximum amount of seconds to wait between retry attempts. - * The value must be between 1 and 600. The default value for this field - * is 60. - * - * Generated from protobuf field .google.protobuf.Duration max_retry_delay = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Duration $var - * @return $this - */ - public function setMaxRetryDelay($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); - $this->max_retry_delay = $var; - - return $this; - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(RetryPolicy::class, \Google\Cloud\Eventarc\V1\Pipeline_RetryPolicy::class); - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Provider.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Provider.php deleted file mode 100644 index 6afe5e7cb8af..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Provider.php +++ /dev/null @@ -1,143 +0,0 @@ -google.cloud.eventarc.v1.Provider - */ -class Provider extends \Google\Protobuf\Internal\Message -{ - /** - * Output only. In - * `projects/{project}/locations/{location}/providers/{provider_id}` format. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $name = ''; - /** - * Output only. Human friendly name for the Provider. For example "Cloud - * Storage". - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $display_name = ''; - /** - * Output only. Event types for this provider. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $event_types; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Output only. In - * `projects/{project}/locations/{location}/providers/{provider_id}` format. - * @type string $display_name - * Output only. Human friendly name for the Provider. For example "Cloud - * Storage". - * @type array<\Google\Cloud\Eventarc\V1\EventType>|\Google\Protobuf\Internal\RepeatedField $event_types - * Output only. Event types for this provider. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Discovery::initOnce(); - parent::__construct($data); - } - - /** - * Output only. In - * `projects/{project}/locations/{location}/providers/{provider_id}` format. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getName() - { - return $this->name; - } - - /** - * Output only. In - * `projects/{project}/locations/{location}/providers/{provider_id}` format. - * - * 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. Human friendly name for the Provider. For example "Cloud - * Storage". - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getDisplayName() - { - return $this->display_name; - } - - /** - * Output only. Human friendly name for the Provider. For example "Cloud - * Storage". - * - * Generated from protobuf field string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setDisplayName($var) - { - GPBUtil::checkString($var, True); - $this->display_name = $var; - - return $this; - } - - /** - * Output only. Event types for this provider. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventTypes() - { - return $this->event_types; - } - - /** - * Output only. Event types for this provider. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.EventType event_types = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array<\Google\Cloud\Eventarc\V1\EventType>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventTypes($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\EventType::class); - $this->event_types = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pubsub.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pubsub.php deleted file mode 100644 index 651c38bc08f3..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Pubsub.php +++ /dev/null @@ -1,129 +0,0 @@ -google.cloud.eventarc.v1.Pubsub - */ -class Pubsub extends \Google\Protobuf\Internal\Message -{ - /** - * Optional. The name of the Pub/Sub topic created and managed by Eventarc as - * a transport for the event delivery. Format: - * `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`. - * You can set an existing topic for triggers of the type - * `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide - * here is not deleted by Eventarc at trigger deletion. - * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $topic = ''; - /** - * Output only. The name of the Pub/Sub subscription created and managed by - * Eventarc as a transport for the event delivery. Format: - * `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`. - * - * Generated from protobuf field string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $subscription = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $topic - * Optional. The name of the Pub/Sub topic created and managed by Eventarc as - * a transport for the event delivery. Format: - * `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`. - * You can set an existing topic for triggers of the type - * `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide - * here is not deleted by Eventarc at trigger deletion. - * @type string $subscription - * Output only. The name of the Pub/Sub subscription created and managed by - * Eventarc as a transport for the event delivery. Format: - * `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Trigger::initOnce(); - parent::__construct($data); - } - - /** - * Optional. The name of the Pub/Sub topic created and managed by Eventarc as - * a transport for the event delivery. Format: - * `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`. - * You can set an existing topic for triggers of the type - * `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide - * here is not deleted by Eventarc at trigger deletion. - * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTopic() - { - return $this->topic; - } - - /** - * Optional. The name of the Pub/Sub topic created and managed by Eventarc as - * a transport for the event delivery. Format: - * `projects/{PROJECT_ID}/topics/{TOPIC_NAME}`. - * You can set an existing topic for triggers of the type - * `google.cloud.pubsub.topic.v1.messagePublished`. The topic you provide - * here is not deleted by Eventarc at trigger deletion. - * - * Generated from protobuf field string topic = 1 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTopic($var) - { - GPBUtil::checkString($var, True); - $this->topic = $var; - - return $this; - } - - /** - * Output only. The name of the Pub/Sub subscription created and managed by - * Eventarc as a transport for the event delivery. Format: - * `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`. - * - * Generated from protobuf field string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getSubscription() - { - return $this->subscription; - } - - /** - * Output only. The name of the Pub/Sub subscription created and managed by - * Eventarc as a transport for the event delivery. Format: - * `projects/{PROJECT_ID}/subscriptions/{SUBSCRIPTION_NAME}`. - * - * Generated from protobuf field string subscription = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setSubscription($var) - { - GPBUtil::checkString($var, True); - $this->subscription = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/StateCondition.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/StateCondition.php deleted file mode 100644 index 3c68f4ea51cd..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/StateCondition.php +++ /dev/null @@ -1,101 +0,0 @@ -google.cloud.eventarc.v1.StateCondition - */ -class StateCondition extends \Google\Protobuf\Internal\Message -{ - /** - * The canonical code of the condition. - * - * Generated from protobuf field .google.rpc.Code code = 1; - */ - protected $code = 0; - /** - * Human-readable message. - * - * Generated from protobuf field string message = 2; - */ - protected $message = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type int $code - * The canonical code of the condition. - * @type string $message - * Human-readable message. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Trigger::initOnce(); - parent::__construct($data); - } - - /** - * The canonical code of the condition. - * - * Generated from protobuf field .google.rpc.Code code = 1; - * @return int - */ - public function getCode() - { - return $this->code; - } - - /** - * The canonical code of the condition. - * - * Generated from protobuf field .google.rpc.Code code = 1; - * @param int $var - * @return $this - */ - public function setCode($var) - { - GPBUtil::checkEnum($var, \Google\Rpc\Code::class); - $this->code = $var; - - return $this; - } - - /** - * Human-readable message. - * - * Generated from protobuf field string message = 2; - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * Human-readable message. - * - * Generated from protobuf field string message = 2; - * @param string $var - * @return $this - */ - public function setMessage($var) - { - GPBUtil::checkString($var, True); - $this->message = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Transport.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Transport.php deleted file mode 100644 index 0d7bd861e1e0..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Transport.php +++ /dev/null @@ -1,79 +0,0 @@ -google.cloud.eventarc.v1.Transport - */ -class Transport extends \Google\Protobuf\Internal\Message -{ - protected $intermediary; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\Pubsub $pubsub - * The Pub/Sub topic and subscription used by Eventarc as a transport - * intermediary. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Trigger::initOnce(); - parent::__construct($data); - } - - /** - * The Pub/Sub topic and subscription used by Eventarc as a transport - * intermediary. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pubsub pubsub = 1; - * @return \Google\Cloud\Eventarc\V1\Pubsub|null - */ - public function getPubsub() - { - return $this->readOneof(1); - } - - public function hasPubsub() - { - return $this->hasOneof(1); - } - - /** - * The Pub/Sub topic and subscription used by Eventarc as a transport - * intermediary. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pubsub pubsub = 1; - * @param \Google\Cloud\Eventarc\V1\Pubsub $var - * @return $this - */ - public function setPubsub($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pubsub::class); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * @return string - */ - public function getIntermediary() - { - return $this->whichOneof("intermediary"); - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Trigger.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Trigger.php deleted file mode 100644 index 9a7a92ad8544..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/Trigger.php +++ /dev/null @@ -1,641 +0,0 @@ -google.cloud.eventarc.v1.Trigger - */ -class Trigger extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The resource name of the trigger. Must be unique within the - * location of the project and must be in - * `projects/{project}/locations/{location}/triggers/{trigger}` format. - * - * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $name = ''; - /** - * Output only. Server-assigned unique identifier for the trigger. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $uid = ''; - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $create_time = null; - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $update_time = null; - /** - * Required. Unordered list. The list of filters that applies to event - * attributes. Only events that match all the provided filters are sent to the - * destination. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; - */ - private $event_filters; - /** - * Optional. The IAM service account email associated with the trigger. The - * service account represents the identity of the trigger. - * The `iam.serviceAccounts.actAs` permission must be granted on the service - * account to allow a principal to impersonate the service account. For more - * information, see the - * [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific - * to the trigger destination. - * - * Generated from protobuf field string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - */ - protected $service_account = ''; - /** - * Required. Destination specifies where the events should be sent to. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $destination = null; - /** - * Optional. To deliver messages, Eventarc might use other Google Cloud - * products as a transport intermediary. This field contains a reference to - * that transport intermediary. This information can be used for debugging - * purposes. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $transport = null; - /** - * Optional. User labels attached to the triggers that can be used to group - * resources. - * - * Generated from protobuf field map labels = 12 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $labels; - /** - * Optional. The name of the channel associated with the trigger in - * `projects/{project}/locations/{location}/channels/{channel}` format. - * You must provide a channel to receive events from Eventarc SaaS partners. - * - * Generated from protobuf field string channel = 13 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $channel = ''; - /** - * Output only. The reason(s) why a trigger is in FAILED state. - * - * Generated from protobuf field map conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private $conditions; - /** - * Optional. EventDataContentType specifies the type of payload in MIME - * format that is expected from the CloudEvent data field. This is set to - * `application/json` if the value is not defined. - * - * Generated from protobuf field string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $event_data_content_type = ''; - /** - * Output only. Whether or not this Trigger satisfies the requirements of - * physical zone separation - * - * Generated from protobuf field bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $satisfies_pzs = false; - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on create requests to ensure that the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - protected $etag = ''; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $name - * Required. The resource name of the trigger. Must be unique within the - * location of the project and must be in - * `projects/{project}/locations/{location}/triggers/{trigger}` format. - * @type string $uid - * Output only. Server-assigned unique identifier for the trigger. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * @type \Google\Protobuf\Timestamp $create_time - * Output only. The creation time. - * @type \Google\Protobuf\Timestamp $update_time - * Output only. The last-modified time. - * @type array<\Google\Cloud\Eventarc\V1\EventFilter>|\Google\Protobuf\Internal\RepeatedField $event_filters - * Required. Unordered list. The list of filters that applies to event - * attributes. Only events that match all the provided filters are sent to the - * destination. - * @type string $service_account - * Optional. The IAM service account email associated with the trigger. The - * service account represents the identity of the trigger. - * The `iam.serviceAccounts.actAs` permission must be granted on the service - * account to allow a principal to impersonate the service account. For more - * information, see the - * [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific - * to the trigger destination. - * @type \Google\Cloud\Eventarc\V1\Destination $destination - * Required. Destination specifies where the events should be sent to. - * @type \Google\Cloud\Eventarc\V1\Transport $transport - * Optional. To deliver messages, Eventarc might use other Google Cloud - * products as a transport intermediary. This field contains a reference to - * that transport intermediary. This information can be used for debugging - * purposes. - * @type array|\Google\Protobuf\Internal\MapField $labels - * Optional. User labels attached to the triggers that can be used to group - * resources. - * @type string $channel - * Optional. The name of the channel associated with the trigger in - * `projects/{project}/locations/{location}/channels/{channel}` format. - * You must provide a channel to receive events from Eventarc SaaS partners. - * @type array|\Google\Protobuf\Internal\MapField $conditions - * Output only. The reason(s) why a trigger is in FAILED state. - * @type string $event_data_content_type - * Optional. EventDataContentType specifies the type of payload in MIME - * format that is expected from the CloudEvent data field. This is set to - * `application/json` if the value is not defined. - * @type bool $satisfies_pzs - * Output only. Whether or not this Trigger satisfies the requirements of - * physical zone separation - * @type string $etag - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on create requests to ensure that the - * client has an up-to-date value before proceeding. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Trigger::initOnce(); - parent::__construct($data); - } - - /** - * Required. The resource name of the trigger. Must be unique within the - * location of the project and must be in - * `projects/{project}/locations/{location}/triggers/{trigger}` format. - * - * 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 trigger. Must be unique within the - * location of the project and must be in - * `projects/{project}/locations/{location}/triggers/{trigger}` format. - * - * 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; - } - - /** - * Output only. Server-assigned unique identifier for the trigger. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Output only. Server-assigned unique identifier for the trigger. The value - * is a UUID4 string and guaranteed to remain unchanged until the resource is - * deleted. - * - * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCreateTime() - { - return $this->create_time; - } - - public function hasCreateTime() - { - return isset($this->create_time); - } - - public function clearCreateTime() - { - unset($this->create_time); - } - - /** - * Output only. The creation time. - * - * Generated from protobuf field .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCreateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->create_time = $var; - - return $this; - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Timestamp|null - */ - public function getUpdateTime() - { - return $this->update_time; - } - - public function hasUpdateTime() - { - return isset($this->update_time); - } - - public function clearUpdateTime() - { - unset($this->update_time); - } - - /** - * Output only. The last-modified time. - * - * Generated from protobuf field .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setUpdateTime($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->update_time = $var; - - return $this; - } - - /** - * Required. Unordered list. The list of filters that applies to event - * attributes. Only events that match all the provided filters are sent to the - * destination. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEventFilters() - { - return $this->event_filters; - } - - /** - * Required. Unordered list. The list of filters that applies to event - * attributes. Only events that match all the provided filters are sent to the - * destination. - * - * Generated from protobuf field repeated .google.cloud.eventarc.v1.EventFilter event_filters = 8 [(.google.api.field_behavior) = UNORDERED_LIST, (.google.api.field_behavior) = REQUIRED]; - * @param array<\Google\Cloud\Eventarc\V1\EventFilter>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEventFilters($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\EventFilter::class); - $this->event_filters = $arr; - - return $this; - } - - /** - * Optional. The IAM service account email associated with the trigger. The - * service account represents the identity of the trigger. - * The `iam.serviceAccounts.actAs` permission must be granted on the service - * account to allow a principal to impersonate the service account. For more - * information, see the - * [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific - * to the trigger destination. - * - * Generated from protobuf field string service_account = 9 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { - * @return string - */ - public function getServiceAccount() - { - return $this->service_account; - } - - /** - * Optional. The IAM service account email associated with the trigger. The - * service account represents the identity of the trigger. - * The `iam.serviceAccounts.actAs` permission must be granted on the service - * account to allow a principal to impersonate the service account. For more - * information, see the - * [Roles and permissions](/eventarc/docs/all-roles-permissions) page specific - * to the trigger destination. - * - * Generated from protobuf field string service_account = 9 [(.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; - } - - /** - * Required. Destination specifies where the events should be sent to. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\Destination|null - */ - public function getDestination() - { - return $this->destination; - } - - public function hasDestination() - { - return isset($this->destination); - } - - public function clearDestination() - { - unset($this->destination); - } - - /** - * Required. Destination specifies where the events should be sent to. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Destination destination = 10 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\Destination $var - * @return $this - */ - public function setDestination($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Destination::class); - $this->destination = $var; - - return $this; - } - - /** - * Optional. To deliver messages, Eventarc might use other Google Cloud - * products as a transport intermediary. This field contains a reference to - * that transport intermediary. This information can be used for debugging - * purposes. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Cloud\Eventarc\V1\Transport|null - */ - public function getTransport() - { - return $this->transport; - } - - public function hasTransport() - { - return isset($this->transport); - } - - public function clearTransport() - { - unset($this->transport); - } - - /** - * Optional. To deliver messages, Eventarc might use other Google Cloud - * products as a transport intermediary. This field contains a reference to - * that transport intermediary. This information can be used for debugging - * purposes. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Transport transport = 11 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Cloud\Eventarc\V1\Transport $var - * @return $this - */ - public function setTransport($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Transport::class); - $this->transport = $var; - - return $this; - } - - /** - * Optional. User labels attached to the triggers that can be used to group - * resources. - * - * Generated from protobuf field map labels = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getLabels() - { - return $this->labels; - } - - /** - * Optional. User labels attached to the triggers that can be used to group - * resources. - * - * Generated from protobuf field map labels = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setLabels($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->labels = $arr; - - return $this; - } - - /** - * Optional. The name of the channel associated with the trigger in - * `projects/{project}/locations/{location}/channels/{channel}` format. - * You must provide a channel to receive events from Eventarc SaaS partners. - * - * Generated from protobuf field string channel = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getChannel() - { - return $this->channel; - } - - /** - * Optional. The name of the channel associated with the trigger in - * `projects/{project}/locations/{location}/channels/{channel}` format. - * You must provide a channel to receive events from Eventarc SaaS partners. - * - * Generated from protobuf field string channel = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkString($var, True); - $this->channel = $var; - - return $this; - } - - /** - * Output only. The reason(s) why a trigger is in FAILED state. - * - * Generated from protobuf field map conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getConditions() - { - return $this->conditions; - } - - /** - * Output only. The reason(s) why a trigger is in FAILED state. - * - * Generated from protobuf field map conditions = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setConditions($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\V1\StateCondition::class); - $this->conditions = $arr; - - return $this; - } - - /** - * Optional. EventDataContentType specifies the type of payload in MIME - * format that is expected from the CloudEvent data field. This is set to - * `application/json` if the value is not defined. - * - * Generated from protobuf field string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getEventDataContentType() - { - return $this->event_data_content_type; - } - - /** - * Optional. EventDataContentType specifies the type of payload in MIME - * format that is expected from the CloudEvent data field. This is set to - * `application/json` if the value is not defined. - * - * Generated from protobuf field string event_data_content_type = 16 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setEventDataContentType($var) - { - GPBUtil::checkString($var, True); - $this->event_data_content_type = $var; - - return $this; - } - - /** - * Output only. Whether or not this Trigger satisfies the requirements of - * physical zone separation - * - * Generated from protobuf field bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return bool - */ - public function getSatisfiesPzs() - { - return $this->satisfies_pzs; - } - - /** - * Output only. Whether or not this Trigger satisfies the requirements of - * physical zone separation - * - * Generated from protobuf field bool satisfies_pzs = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param bool $var - * @return $this - */ - public function setSatisfiesPzs($var) - { - GPBUtil::checkBool($var); - $this->satisfies_pzs = $var; - - return $this; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on create requests to ensure that the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return string - */ - public function getEtag() - { - return $this->etag; - } - - /** - * Output only. This checksum is computed by the server based on the value of - * other fields, and might be sent only on create requests to ensure that the - * client has an up-to-date value before proceeding. - * - * Generated from protobuf field string etag = 99 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param string $var - * @return $this - */ - public function setEtag($var) - { - GPBUtil::checkString($var, True); - $this->etag = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateChannelRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateChannelRequest.php deleted file mode 100644 index 3cee00e08c23..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateChannelRequest.php +++ /dev/null @@ -1,184 +0,0 @@ -google.cloud.eventarc.v1.UpdateChannelRequest - */ -class UpdateChannelRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The channel to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Channel channel = 1; - */ - protected $channel = null; - /** - * The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Eventarc\V1\Channel $channel The channel to be updated. - * @param \Google\Protobuf\FieldMask $updateMask The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * @return \Google\Cloud\Eventarc\V1\UpdateChannelRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Eventarc\V1\Channel $channel, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setChannel($channel) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\Channel $channel - * The channel to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The channel to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Channel channel = 1; - * @return \Google\Cloud\Eventarc\V1\Channel|null - */ - public function getChannel() - { - return $this->channel; - } - - public function hasChannel() - { - return isset($this->channel); - } - - public function clearChannel() - { - unset($this->channel); - } - - /** - * The channel to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Channel channel = 1; - * @param \Google\Cloud\Eventarc\V1\Channel $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Channel::class); - $this->channel = $var; - - return $this; - } - - /** - * The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * 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 fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateEnrollmentRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateEnrollmentRequest.php deleted file mode 100644 index 70255d125bfe..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateEnrollmentRequest.php +++ /dev/null @@ -1,222 +0,0 @@ -google.cloud.eventarc.v1.UpdateEnrollmentRequest - */ -class UpdateEnrollmentRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Enrollment to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $enrollment = null; - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. If set to true, and the Enrollment is not found, a new Enrollment - * will be created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Eventarc\V1\Enrollment $enrollment Required. The Enrollment to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * @return \Google\Cloud\Eventarc\V1\UpdateEnrollmentRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Eventarc\V1\Enrollment $enrollment, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setEnrollment($enrollment) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\Enrollment $enrollment - * Required. The Enrollment to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * @type bool $allow_missing - * Optional. If set to true, and the Enrollment is not found, a new Enrollment - * will be created. In this situation, `update_mask` is ignored. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Enrollment to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\Enrollment|null - */ - public function getEnrollment() - { - return $this->enrollment; - } - - public function hasEnrollment() - { - return isset($this->enrollment); - } - - public function clearEnrollment() - { - unset($this->enrollment); - } - - /** - * Required. The Enrollment to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Enrollment enrollment = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\Enrollment $var - * @return $this - */ - public function setEnrollment($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Enrollment::class); - $this->enrollment = $var; - - return $this; - } - - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. If set to true, and the Enrollment is not found, a new Enrollment - * will be created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, and the Enrollment is not found, a new Enrollment - * will be created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateGoogleApiSourceRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateGoogleApiSourceRequest.php deleted file mode 100644 index 420c284a32ab..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateGoogleApiSourceRequest.php +++ /dev/null @@ -1,226 +0,0 @@ -google.cloud.eventarc.v1.UpdateGoogleApiSourceRequest - */ -class UpdateGoogleApiSourceRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The GoogleApiSource to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $google_api_source = null; - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. If set to true, and the GoogleApiSource is not found, a new - * GoogleApiSource will be created. In this situation, `update_mask` is - * ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Eventarc\V1\GoogleApiSource $googleApiSource Required. The GoogleApiSource to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * @return \Google\Cloud\Eventarc\V1\UpdateGoogleApiSourceRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Eventarc\V1\GoogleApiSource $googleApiSource, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setGoogleApiSource($googleApiSource) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\GoogleApiSource $google_api_source - * Required. The GoogleApiSource to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * @type bool $allow_missing - * Optional. If set to true, and the GoogleApiSource is not found, a new - * GoogleApiSource will be created. In this situation, `update_mask` is - * ignored. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The GoogleApiSource to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\GoogleApiSource|null - */ - public function getGoogleApiSource() - { - return $this->google_api_source; - } - - public function hasGoogleApiSource() - { - return isset($this->google_api_source); - } - - public function clearGoogleApiSource() - { - unset($this->google_api_source); - } - - /** - * Required. The GoogleApiSource to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GoogleApiSource google_api_source = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\GoogleApiSource $var - * @return $this - */ - public function setGoogleApiSource($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\GoogleApiSource::class); - $this->google_api_source = $var; - - return $this; - } - - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. If set to true, and the GoogleApiSource is not found, a new - * GoogleApiSource will be created. In this situation, `update_mask` is - * ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, and the GoogleApiSource is not found, a new - * GoogleApiSource will be created. In this situation, `update_mask` is - * ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateGoogleChannelConfigRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateGoogleChannelConfigRequest.php deleted file mode 100644 index 86a9f6b4dfdf..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateGoogleChannelConfigRequest.php +++ /dev/null @@ -1,146 +0,0 @@ -google.cloud.eventarc.v1.UpdateGoogleChannelConfigRequest - */ -class UpdateGoogleChannelConfigRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The config to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GoogleChannelConfig google_channel_config = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $google_channel_config = null; - /** - * The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - - /** - * @param \Google\Cloud\Eventarc\V1\GoogleChannelConfig $googleChannelConfig Required. The config to be updated. - * @param \Google\Protobuf\FieldMask $updateMask The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * @return \Google\Cloud\Eventarc\V1\UpdateGoogleChannelConfigRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Eventarc\V1\GoogleChannelConfig $googleChannelConfig, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setGoogleChannelConfig($googleChannelConfig) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\GoogleChannelConfig $google_channel_config - * Required. The config to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The config to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GoogleChannelConfig google_channel_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\GoogleChannelConfig|null - */ - public function getGoogleChannelConfig() - { - return $this->google_channel_config; - } - - public function hasGoogleChannelConfig() - { - return isset($this->google_channel_config); - } - - public function clearGoogleChannelConfig() - { - unset($this->google_channel_config); - } - - /** - * Required. The config to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.GoogleChannelConfig google_channel_config = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\GoogleChannelConfig $var - * @return $this - */ - public function setGoogleChannelConfig($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\GoogleChannelConfig::class); - $this->google_channel_config = $var; - - return $this; - } - - /** - * The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * 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 fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * 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/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateMessageBusRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateMessageBusRequest.php deleted file mode 100644 index 0699200ebaf8..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateMessageBusRequest.php +++ /dev/null @@ -1,222 +0,0 @@ -google.cloud.eventarc.v1.UpdateMessageBusRequest - */ -class UpdateMessageBusRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The MessageBus to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.MessageBus message_bus = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $message_bus = null; - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. If set to true, and the MessageBus is not found, a new MessageBus - * will be created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Eventarc\V1\MessageBus $messageBus Required. The MessageBus to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * @return \Google\Cloud\Eventarc\V1\UpdateMessageBusRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Eventarc\V1\MessageBus $messageBus, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setMessageBus($messageBus) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\MessageBus $message_bus - * Required. The MessageBus to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * @type bool $allow_missing - * Optional. If set to true, and the MessageBus is not found, a new MessageBus - * will be created. In this situation, `update_mask` is ignored. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The MessageBus to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.MessageBus message_bus = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\MessageBus|null - */ - public function getMessageBus() - { - return $this->message_bus; - } - - public function hasMessageBus() - { - return isset($this->message_bus); - } - - public function clearMessageBus() - { - unset($this->message_bus); - } - - /** - * Required. The MessageBus to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.MessageBus message_bus = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\MessageBus $var - * @return $this - */ - public function setMessageBus($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\MessageBus::class); - $this->message_bus = $var; - - return $this; - } - - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. If set to true, and the MessageBus is not found, a new MessageBus - * will be created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, and the MessageBus is not found, a new MessageBus - * will be created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdatePipelineRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdatePipelineRequest.php deleted file mode 100644 index 05d4848fe829..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdatePipelineRequest.php +++ /dev/null @@ -1,222 +0,0 @@ -google.cloud.eventarc.v1.UpdatePipelineRequest - */ -class UpdatePipelineRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The Pipeline to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline pipeline = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $pipeline = null; - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $update_mask = null; - /** - * Optional. If set to true, and the Pipeline is not found, a new Pipeline - * will be created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Eventarc\V1\Pipeline $pipeline Required. The Pipeline to be updated. - * @param \Google\Protobuf\FieldMask $updateMask Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * @return \Google\Cloud\Eventarc\V1\UpdatePipelineRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Eventarc\V1\Pipeline $pipeline, \Google\Protobuf\FieldMask $updateMask): self - { - return (new self()) - ->setPipeline($pipeline) - ->setUpdateMask($updateMask); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\Pipeline $pipeline - * Required. The Pipeline to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * @type bool $allow_missing - * Optional. If set to true, and the Pipeline is not found, a new Pipeline - * will be created. In this situation, `update_mask` is ignored. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * Required. The Pipeline to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline pipeline = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return \Google\Cloud\Eventarc\V1\Pipeline|null - */ - public function getPipeline() - { - return $this->pipeline; - } - - public function hasPipeline() - { - return isset($this->pipeline); - } - - public function clearPipeline() - { - unset($this->pipeline); - } - - /** - * Required. The Pipeline to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Pipeline pipeline = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param \Google\Cloud\Eventarc\V1\Pipeline $var - * @return $this - */ - public function setPipeline($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Pipeline::class); - $this->pipeline = $var; - - return $this; - } - - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\FieldMask|null - */ - public function getUpdateMask() - { - return $this->update_mask; - } - - public function hasUpdateMask() - { - return isset($this->update_mask); - } - - public function clearUpdateMask() - { - unset($this->update_mask); - } - - /** - * Optional. The fields to be updated; only fields explicitly provided are - * updated. If no field mask is provided, all provided fields in the request - * are updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\FieldMask $var - * @return $this - */ - public function setUpdateMask($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); - $this->update_mask = $var; - - return $this; - } - - /** - * Optional. If set to true, and the Pipeline is not found, a new Pipeline - * will be created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * Optional. If set to true, and the Pipeline is not found, a new Pipeline - * will be created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateTriggerRequest.php b/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateTriggerRequest.php deleted file mode 100644 index 6091f1a892eb..000000000000 --- a/owl-bot-staging/Eventarc/v1/proto/src/Google/Cloud/Eventarc/V1/UpdateTriggerRequest.php +++ /dev/null @@ -1,225 +0,0 @@ -google.cloud.eventarc.v1.UpdateTriggerRequest - */ -class UpdateTriggerRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The trigger to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Trigger trigger = 1; - */ - protected $trigger = null; - /** - * The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2; - */ - protected $update_mask = null; - /** - * If set to true, and the trigger is not found, a new trigger will be - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - */ - protected $allow_missing = false; - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - protected $validate_only = false; - - /** - * @param \Google\Cloud\Eventarc\V1\Trigger $trigger The trigger to be updated. - * @param \Google\Protobuf\FieldMask $updateMask The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * @param bool $allowMissing If set to true, and the trigger is not found, a new trigger will be - * created. In this situation, `update_mask` is ignored. - * - * @return \Google\Cloud\Eventarc\V1\UpdateTriggerRequest - * - * @experimental - */ - public static function build(\Google\Cloud\Eventarc\V1\Trigger $trigger, \Google\Protobuf\FieldMask $updateMask, bool $allowMissing): self - { - return (new self()) - ->setTrigger($trigger) - ->setUpdateMask($updateMask) - ->setAllowMissing($allowMissing); - } - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type \Google\Cloud\Eventarc\V1\Trigger $trigger - * The trigger to be updated. - * @type \Google\Protobuf\FieldMask $update_mask - * The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * @type bool $allow_missing - * If set to true, and the trigger is not found, a new trigger will be - * created. In this situation, `update_mask` is ignored. - * @type bool $validate_only - * Optional. If set, validate the request and preview the review, but do not - * post it. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\V1\Eventarc::initOnce(); - parent::__construct($data); - } - - /** - * The trigger to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Trigger trigger = 1; - * @return \Google\Cloud\Eventarc\V1\Trigger|null - */ - public function getTrigger() - { - return $this->trigger; - } - - public function hasTrigger() - { - return isset($this->trigger); - } - - public function clearTrigger() - { - unset($this->trigger); - } - - /** - * The trigger to be updated. - * - * Generated from protobuf field .google.cloud.eventarc.v1.Trigger trigger = 1; - * @param \Google\Cloud\Eventarc\V1\Trigger $var - * @return $this - */ - public function setTrigger($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\V1\Trigger::class); - $this->trigger = $var; - - return $this; - } - - /** - * The fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * 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 fields to be updated; only fields explicitly provided are updated. - * If no field mask is provided, all provided fields in the request are - * updated. To update all fields, provide a field mask of "*". - * - * 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 trigger is not found, a new trigger will be - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @return bool - */ - public function getAllowMissing() - { - return $this->allow_missing; - } - - /** - * If set to true, and the trigger is not found, a new trigger will be - * created. In this situation, `update_mask` is ignored. - * - * Generated from protobuf field bool allow_missing = 3; - * @param bool $var - * @return $this - */ - public function setAllowMissing($var) - { - GPBUtil::checkBool($var); - $this->allow_missing = $var; - - return $this; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return bool - */ - public function getValidateOnly() - { - return $this->validate_only; - } - - /** - * Optional. If set, validate the request and preview the review, but do not - * post it. - * - * Generated from protobuf field bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param bool $var - * @return $this - */ - public function setValidateOnly($var) - { - GPBUtil::checkBool($var); - $this->validate_only = $var; - - return $this; - } - -} - diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_channel.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_channel.php deleted file mode 100644 index 754ac8c69919..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_channel.php +++ /dev/null @@ -1,96 +0,0 @@ -setName($channelName); - $request = (new CreateChannelRequest()) - ->setParent($formattedParent) - ->setChannel($channel) - ->setChannelId($channelId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->createChannel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Channel $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - $channelName = '[NAME]'; - $channelId = '[CHANNEL_ID]'; - - create_channel_sample($formattedParent, $channelName, $channelId); -} -// [END eventarc_v1_generated_Eventarc_CreateChannel_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_channel_connection.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_channel_connection.php deleted file mode 100644 index d8737d23bfe0..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_channel_connection.php +++ /dev/null @@ -1,111 +0,0 @@ -setName($channelConnectionName) - ->setChannel($formattedChannelConnectionChannel); - $request = (new CreateChannelConnectionRequest()) - ->setParent($formattedParent) - ->setChannelConnection($channelConnection) - ->setChannelConnectionId($channelConnectionId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->createChannelConnection($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ChannelConnection $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - $channelConnectionName = '[NAME]'; - $formattedChannelConnectionChannel = EventarcClient::channelName( - '[PROJECT]', - '[LOCATION]', - '[CHANNEL]' - ); - $channelConnectionId = '[CHANNEL_CONNECTION_ID]'; - - create_channel_connection_sample( - $formattedParent, - $channelConnectionName, - $formattedChannelConnectionChannel, - $channelConnectionId - ); -} -// [END eventarc_v1_generated_Eventarc_CreateChannelConnection_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_enrollment.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_enrollment.php deleted file mode 100644 index dfa7ba61b56c..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_enrollment.php +++ /dev/null @@ -1,119 +0,0 @@ -setCelMatch($enrollmentCelMatch) - ->setMessageBus($formattedEnrollmentMessageBus) - ->setDestination($enrollmentDestination); - $request = (new CreateEnrollmentRequest()) - ->setParent($formattedParent) - ->setEnrollment($enrollment) - ->setEnrollmentId($enrollmentId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->createEnrollment($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Enrollment $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - $enrollmentCelMatch = '[CEL_MATCH]'; - $formattedEnrollmentMessageBus = EventarcClient::messageBusName( - '[PROJECT]', - '[LOCATION]', - '[MESSAGE_BUS]' - ); - $enrollmentDestination = '[DESTINATION]'; - $enrollmentId = '[ENROLLMENT_ID]'; - - create_enrollment_sample( - $formattedParent, - $enrollmentCelMatch, - $formattedEnrollmentMessageBus, - $enrollmentDestination, - $enrollmentId - ); -} -// [END eventarc_v1_generated_Eventarc_CreateEnrollment_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_google_api_source.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_google_api_source.php deleted file mode 100644 index cea200a0bfa6..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_google_api_source.php +++ /dev/null @@ -1,107 +0,0 @@ -setDestination($formattedGoogleApiSourceDestination); - $request = (new CreateGoogleApiSourceRequest()) - ->setParent($formattedParent) - ->setGoogleApiSource($googleApiSource) - ->setGoogleApiSourceId($googleApiSourceId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->createGoogleApiSource($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var GoogleApiSource $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - $formattedGoogleApiSourceDestination = EventarcClient::messageBusName( - '[PROJECT]', - '[LOCATION]', - '[MESSAGE_BUS]' - ); - $googleApiSourceId = '[GOOGLE_API_SOURCE_ID]'; - - create_google_api_source_sample( - $formattedParent, - $formattedGoogleApiSourceDestination, - $googleApiSourceId - ); -} -// [END eventarc_v1_generated_Eventarc_CreateGoogleApiSource_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_message_bus.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_message_bus.php deleted file mode 100644 index 9aca0e8d8b9f..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_message_bus.php +++ /dev/null @@ -1,89 +0,0 @@ -setParent($formattedParent) - ->setMessageBus($messageBus) - ->setMessageBusId($messageBusId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->createMessageBus($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MessageBus $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - $messageBusId = '[MESSAGE_BUS_ID]'; - - create_message_bus_sample($formattedParent, $messageBusId); -} -// [END eventarc_v1_generated_Eventarc_CreateMessageBus_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_pipeline.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_pipeline.php deleted file mode 100644 index f3911821a94d..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_pipeline.php +++ /dev/null @@ -1,91 +0,0 @@ -setDestinations($pipelineDestinations); - $request = (new CreatePipelineRequest()) - ->setParent($formattedParent) - ->setPipeline($pipeline) - ->setPipelineId($pipelineId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->createPipeline($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Pipeline $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - $pipelineId = '[PIPELINE_ID]'; - - create_pipeline_sample($formattedParent, $pipelineId); -} -// [END eventarc_v1_generated_Eventarc_CreatePipeline_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_trigger.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_trigger.php deleted file mode 100644 index 371ce8356ece..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/create_trigger.php +++ /dev/null @@ -1,122 +0,0 @@ -setAttribute($triggerEventFiltersAttribute) - ->setValue($triggerEventFiltersValue); - $triggerEventFilters = [$eventFilter,]; - $triggerDestination = new Destination(); - $trigger = (new Trigger()) - ->setName($triggerName) - ->setEventFilters($triggerEventFilters) - ->setDestination($triggerDestination); - $request = (new CreateTriggerRequest()) - ->setParent($formattedParent) - ->setTrigger($trigger) - ->setTriggerId($triggerId); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->createTrigger($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Trigger $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - $triggerName = '[NAME]'; - $triggerEventFiltersAttribute = '[ATTRIBUTE]'; - $triggerEventFiltersValue = '[VALUE]'; - $triggerId = '[TRIGGER_ID]'; - - create_trigger_sample( - $formattedParent, - $triggerName, - $triggerEventFiltersAttribute, - $triggerEventFiltersValue, - $triggerId - ); -} -// [END eventarc_v1_generated_Eventarc_CreateTrigger_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_channel.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_channel.php deleted file mode 100644 index 16e952b46ea4..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_channel.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->deleteChannel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Channel $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 = EventarcClient::channelName('[PROJECT]', '[LOCATION]', '[CHANNEL]'); - - delete_channel_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_DeleteChannel_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_channel_connection.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_channel_connection.php deleted file mode 100644 index 6ecccd438fb8..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_channel_connection.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->deleteChannelConnection($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var ChannelConnection $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 = EventarcClient::channelConnectionName( - '[PROJECT]', - '[LOCATION]', - '[CHANNEL_CONNECTION]' - ); - - delete_channel_connection_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_DeleteChannelConnection_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_enrollment.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_enrollment.php deleted file mode 100644 index 411125b20bcd..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_enrollment.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->deleteEnrollment($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Enrollment $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 = EventarcClient::enrollmentName('[PROJECT]', '[LOCATION]', '[ENROLLMENT]'); - - delete_enrollment_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_DeleteEnrollment_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_google_api_source.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_google_api_source.php deleted file mode 100644 index 11b4caf3fd3e..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_google_api_source.php +++ /dev/null @@ -1,87 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->deleteGoogleApiSource($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var GoogleApiSource $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 = EventarcClient::googleApiSourceName( - '[PROJECT]', - '[LOCATION]', - '[GOOGLE_API_SOURCE]' - ); - - delete_google_api_source_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_DeleteGoogleApiSource_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_message_bus.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_message_bus.php deleted file mode 100644 index cc88f5738e9b..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_message_bus.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->deleteMessageBus($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MessageBus $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 = EventarcClient::messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - - delete_message_bus_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_DeleteMessageBus_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_pipeline.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_pipeline.php deleted file mode 100644 index e5bcc5436686..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_pipeline.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->deletePipeline($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Pipeline $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 = EventarcClient::pipelineName('[PROJECT]', '[LOCATION]', '[PIPELINE]'); - - delete_pipeline_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_DeletePipeline_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_trigger.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_trigger.php deleted file mode 100644 index 0b91ac6bdc6d..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/delete_trigger.php +++ /dev/null @@ -1,83 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->deleteTrigger($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Trigger $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 = EventarcClient::triggerName('[PROJECT]', '[LOCATION]', '[TRIGGER]'); - - delete_trigger_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_DeleteTrigger_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_channel.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_channel.php deleted file mode 100644 index 42ce69103dbe..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_channel.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Channel $response */ - $response = $eventarcClient->getChannel($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EventarcClient::channelName('[PROJECT]', '[LOCATION]', '[CHANNEL]'); - - get_channel_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_GetChannel_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_channel_connection.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_channel_connection.php deleted file mode 100644 index e81c73abb54c..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_channel_connection.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var ChannelConnection $response */ - $response = $eventarcClient->getChannelConnection($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EventarcClient::channelConnectionName( - '[PROJECT]', - '[LOCATION]', - '[CHANNEL_CONNECTION]' - ); - - get_channel_connection_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_GetChannelConnection_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_enrollment.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_enrollment.php deleted file mode 100644 index e05d928e417a..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_enrollment.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Enrollment $response */ - $response = $eventarcClient->getEnrollment($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EventarcClient::enrollmentName('[PROJECT]', '[LOCATION]', '[ENROLLMENT]'); - - get_enrollment_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_GetEnrollment_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_google_api_source.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_google_api_source.php deleted file mode 100644 index c45c874e198d..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_google_api_source.php +++ /dev/null @@ -1,75 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GoogleApiSource $response */ - $response = $eventarcClient->getGoogleApiSource($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EventarcClient::googleApiSourceName( - '[PROJECT]', - '[LOCATION]', - '[GOOGLE_API_SOURCE]' - ); - - get_google_api_source_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_GetGoogleApiSource_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_google_channel_config.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_google_channel_config.php deleted file mode 100644 index f37332b7cf2f..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_google_channel_config.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var GoogleChannelConfig $response */ - $response = $eventarcClient->getGoogleChannelConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EventarcClient::googleChannelConfigName('[PROJECT]', '[LOCATION]'); - - get_google_channel_config_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_GetGoogleChannelConfig_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_iam_policy.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_iam_policy.php deleted file mode 100644 index fe56a020920d..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_iam_policy.php +++ /dev/null @@ -1,72 +0,0 @@ -setResource($resource); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $eventarcClient->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 eventarc_v1_generated_Eventarc_GetIamPolicy_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_location.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_location.php deleted file mode 100644 index 64f1cd3a3518..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_location.php +++ /dev/null @@ -1,57 +0,0 @@ -getLocation($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END eventarc_v1_generated_Eventarc_GetLocation_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_message_bus.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_message_bus.php deleted file mode 100644 index 5e6d2cbab565..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_message_bus.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var MessageBus $response */ - $response = $eventarcClient->getMessageBus($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EventarcClient::messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - - get_message_bus_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_GetMessageBus_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_pipeline.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_pipeline.php deleted file mode 100644 index b720c97a70cb..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_pipeline.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Pipeline $response */ - $response = $eventarcClient->getPipeline($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EventarcClient::pipelineName('[PROJECT]', '[LOCATION]', '[PIPELINE]'); - - get_pipeline_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_GetPipeline_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_provider.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_provider.php deleted file mode 100644 index b3a6e07937ff..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_provider.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Provider $response */ - $response = $eventarcClient->getProvider($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EventarcClient::providerName('[PROJECT]', '[LOCATION]', '[PROVIDER]'); - - get_provider_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_GetProvider_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_trigger.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_trigger.php deleted file mode 100644 index 64d47fdf6ffc..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/get_trigger.php +++ /dev/null @@ -1,71 +0,0 @@ -setName($formattedName); - - // Call the API and handle any network failures. - try { - /** @var Trigger $response */ - $response = $eventarcClient->getTrigger($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $formattedName = EventarcClient::triggerName('[PROJECT]', '[LOCATION]', '[TRIGGER]'); - - get_trigger_sample($formattedName); -} -// [END eventarc_v1_generated_Eventarc_GetTrigger_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_channel_connections.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_channel_connections.php deleted file mode 100644 index 72ee3a1034f2..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_channel_connections.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $eventarcClient->listChannelConnections($request); - - /** @var ChannelConnection $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - - list_channel_connections_sample($formattedParent); -} -// [END eventarc_v1_generated_Eventarc_ListChannelConnections_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_channels.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_channels.php deleted file mode 100644 index 1f9d8cbf5fcd..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_channels.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $eventarcClient->listChannels($request); - - /** @var Channel $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - - list_channels_sample($formattedParent); -} -// [END eventarc_v1_generated_Eventarc_ListChannels_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_enrollments.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_enrollments.php deleted file mode 100644 index a45acb7d1683..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_enrollments.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $eventarcClient->listEnrollments($request); - - /** @var Enrollment $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - - list_enrollments_sample($formattedParent); -} -// [END eventarc_v1_generated_Eventarc_ListEnrollments_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_google_api_sources.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_google_api_sources.php deleted file mode 100644 index c54259e74936..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_google_api_sources.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $eventarcClient->listGoogleApiSources($request); - - /** @var GoogleApiSource $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - - list_google_api_sources_sample($formattedParent); -} -// [END eventarc_v1_generated_Eventarc_ListGoogleApiSources_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_locations.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_locations.php deleted file mode 100644 index 97af06149611..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_locations.php +++ /dev/null @@ -1,62 +0,0 @@ -listLocations($request); - - /** @var Location $element */ - foreach ($response as $element) { - printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); - } - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END eventarc_v1_generated_Eventarc_ListLocations_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_message_bus_enrollments.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_message_bus_enrollments.php deleted file mode 100644 index 6ca12dfcb569..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_message_bus_enrollments.php +++ /dev/null @@ -1,75 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $eventarcClient->listMessageBusEnrollments($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 -{ - $formattedParent = EventarcClient::messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - - list_message_bus_enrollments_sample($formattedParent); -} -// [END eventarc_v1_generated_Eventarc_ListMessageBusEnrollments_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_message_buses.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_message_buses.php deleted file mode 100644 index 0d80ec0418b6..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_message_buses.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $eventarcClient->listMessageBuses($request); - - /** @var MessageBus $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - - list_message_buses_sample($formattedParent); -} -// [END eventarc_v1_generated_Eventarc_ListMessageBuses_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_pipelines.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_pipelines.php deleted file mode 100644 index 0555619a030b..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_pipelines.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $eventarcClient->listPipelines($request); - - /** @var Pipeline $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - - list_pipelines_sample($formattedParent); -} -// [END eventarc_v1_generated_Eventarc_ListPipelines_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_providers.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_providers.php deleted file mode 100644 index 30547973b4a9..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_providers.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $eventarcClient->listProviders($request); - - /** @var Provider $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - - list_providers_sample($formattedParent); -} -// [END eventarc_v1_generated_Eventarc_ListProviders_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_triggers.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_triggers.php deleted file mode 100644 index b675037ef450..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/list_triggers.php +++ /dev/null @@ -1,76 +0,0 @@ -setParent($formattedParent); - - // Call the API and handle any network failures. - try { - /** @var PagedListResponse $response */ - $response = $eventarcClient->listTriggers($request); - - /** @var Trigger $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 = EventarcClient::locationName('[PROJECT]', '[LOCATION]'); - - list_triggers_sample($formattedParent); -} -// [END eventarc_v1_generated_Eventarc_ListTriggers_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/set_iam_policy.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/set_iam_policy.php deleted file mode 100644 index 688af7a68980..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/set_iam_policy.php +++ /dev/null @@ -1,77 +0,0 @@ -setResource($resource) - ->setPolicy($policy); - - // Call the API and handle any network failures. - try { - /** @var Policy $response */ - $response = $eventarcClient->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 eventarc_v1_generated_Eventarc_SetIamPolicy_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/test_iam_permissions.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/test_iam_permissions.php deleted file mode 100644 index 219d16b3bd77..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/test_iam_permissions.php +++ /dev/null @@ -1,84 +0,0 @@ -setResource($resource) - ->setPermissions($permissions); - - // Call the API and handle any network failures. - try { - /** @var TestIamPermissionsResponse $response */ - $response = $eventarcClient->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 eventarc_v1_generated_Eventarc_TestIamPermissions_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_channel.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_channel.php deleted file mode 100644 index 9c56dc228aaf..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_channel.php +++ /dev/null @@ -1,69 +0,0 @@ -updateChannel($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Channel $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 eventarc_v1_generated_Eventarc_UpdateChannel_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_enrollment.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_enrollment.php deleted file mode 100644 index e545745a7362..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_enrollment.php +++ /dev/null @@ -1,107 +0,0 @@ -setCelMatch($enrollmentCelMatch) - ->setMessageBus($formattedEnrollmentMessageBus) - ->setDestination($enrollmentDestination); - $request = (new UpdateEnrollmentRequest()) - ->setEnrollment($enrollment); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->updateEnrollment($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Enrollment $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 -{ - $enrollmentCelMatch = '[CEL_MATCH]'; - $formattedEnrollmentMessageBus = EventarcClient::messageBusName( - '[PROJECT]', - '[LOCATION]', - '[MESSAGE_BUS]' - ); - $enrollmentDestination = '[DESTINATION]'; - - update_enrollment_sample( - $enrollmentCelMatch, - $formattedEnrollmentMessageBus, - $enrollmentDestination - ); -} -// [END eventarc_v1_generated_Eventarc_UpdateEnrollment_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_google_api_source.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_google_api_source.php deleted file mode 100644 index 02a93fc736ea..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_google_api_source.php +++ /dev/null @@ -1,92 +0,0 @@ -setDestination($formattedGoogleApiSourceDestination); - $request = (new UpdateGoogleApiSourceRequest()) - ->setGoogleApiSource($googleApiSource); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->updateGoogleApiSource($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var GoogleApiSource $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 -{ - $formattedGoogleApiSourceDestination = EventarcClient::messageBusName( - '[PROJECT]', - '[LOCATION]', - '[MESSAGE_BUS]' - ); - - update_google_api_source_sample($formattedGoogleApiSourceDestination); -} -// [END eventarc_v1_generated_Eventarc_UpdateGoogleApiSource_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_google_channel_config.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_google_channel_config.php deleted file mode 100644 index 5a6679299aff..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_google_channel_config.php +++ /dev/null @@ -1,73 +0,0 @@ -setName($googleChannelConfigName); - $request = (new UpdateGoogleChannelConfigRequest()) - ->setGoogleChannelConfig($googleChannelConfig); - - // Call the API and handle any network failures. - try { - /** @var GoogleChannelConfig $response */ - $response = $eventarcClient->updateGoogleChannelConfig($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $googleChannelConfigName = '[NAME]'; - - update_google_channel_config_sample($googleChannelConfigName); -} -// [END eventarc_v1_generated_Eventarc_UpdateGoogleChannelConfig_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_message_bus.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_message_bus.php deleted file mode 100644 index 2797696cf25a..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_message_bus.php +++ /dev/null @@ -1,71 +0,0 @@ -setMessageBus($messageBus); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->updateMessageBus($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var MessageBus $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 eventarc_v1_generated_Eventarc_UpdateMessageBus_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_pipeline.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_pipeline.php deleted file mode 100644 index 379b26852258..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_pipeline.php +++ /dev/null @@ -1,74 +0,0 @@ -setDestinations($pipelineDestinations); - $request = (new UpdatePipelineRequest()) - ->setPipeline($pipeline); - - // Call the API and handle any network failures. - try { - /** @var OperationResponse $response */ - $response = $eventarcClient->updatePipeline($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Pipeline $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 eventarc_v1_generated_Eventarc_UpdatePipeline_sync] diff --git a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_trigger.php b/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_trigger.php deleted file mode 100644 index 06a061ddc669..000000000000 --- a/owl-bot-staging/Eventarc/v1/samples/V1/EventarcClient/update_trigger.php +++ /dev/null @@ -1,69 +0,0 @@ -updateTrigger($request); - $response->pollUntilComplete(); - - if ($response->operationSucceeded()) { - /** @var Trigger $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 eventarc_v1_generated_Eventarc_UpdateTrigger_sync] diff --git a/owl-bot-staging/Eventarc/v1/src/V1/Client/EventarcClient.php b/owl-bot-staging/Eventarc/v1/src/V1/Client/EventarcClient.php deleted file mode 100644 index 4e6864916e59..000000000000 --- a/owl-bot-staging/Eventarc/v1/src/V1/Client/EventarcClient.php +++ /dev/null @@ -1,1815 +0,0 @@ - createChannelAsync(CreateChannelRequest $request, array $optionalArgs = []) - * @method PromiseInterface createChannelConnectionAsync(CreateChannelConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface createEnrollmentAsync(CreateEnrollmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface createGoogleApiSourceAsync(CreateGoogleApiSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface createMessageBusAsync(CreateMessageBusRequest $request, array $optionalArgs = []) - * @method PromiseInterface createPipelineAsync(CreatePipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface createTriggerAsync(CreateTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteChannelAsync(DeleteChannelRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteChannelConnectionAsync(DeleteChannelConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteEnrollmentAsync(DeleteEnrollmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteGoogleApiSourceAsync(DeleteGoogleApiSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteMessageBusAsync(DeleteMessageBusRequest $request, array $optionalArgs = []) - * @method PromiseInterface deletePipelineAsync(DeletePipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface deleteTriggerAsync(DeleteTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface getChannelAsync(GetChannelRequest $request, array $optionalArgs = []) - * @method PromiseInterface getChannelConnectionAsync(GetChannelConnectionRequest $request, array $optionalArgs = []) - * @method PromiseInterface getEnrollmentAsync(GetEnrollmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGoogleApiSourceAsync(GetGoogleApiSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface getGoogleChannelConfigAsync(GetGoogleChannelConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface getMessageBusAsync(GetMessageBusRequest $request, array $optionalArgs = []) - * @method PromiseInterface getPipelineAsync(GetPipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface getProviderAsync(GetProviderRequest $request, array $optionalArgs = []) - * @method PromiseInterface getTriggerAsync(GetTriggerRequest $request, array $optionalArgs = []) - * @method PromiseInterface listChannelConnectionsAsync(ListChannelConnectionsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listChannelsAsync(ListChannelsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listEnrollmentsAsync(ListEnrollmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listGoogleApiSourcesAsync(ListGoogleApiSourcesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMessageBusEnrollmentsAsync(ListMessageBusEnrollmentsRequest $request, array $optionalArgs = []) - * @method PromiseInterface listMessageBusesAsync(ListMessageBusesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listPipelinesAsync(ListPipelinesRequest $request, array $optionalArgs = []) - * @method PromiseInterface listProvidersAsync(ListProvidersRequest $request, array $optionalArgs = []) - * @method PromiseInterface listTriggersAsync(ListTriggersRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateChannelAsync(UpdateChannelRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateEnrollmentAsync(UpdateEnrollmentRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGoogleApiSourceAsync(UpdateGoogleApiSourceRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateGoogleChannelConfigAsync(UpdateGoogleChannelConfigRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateMessageBusAsync(UpdateMessageBusRequest $request, array $optionalArgs = []) - * @method PromiseInterface updatePipelineAsync(UpdatePipelineRequest $request, array $optionalArgs = []) - * @method PromiseInterface updateTriggerAsync(UpdateTriggerRequest $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 EventarcClient -{ - use GapicClientTrait; - use ResourceHelperTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.eventarc.v1.Eventarc'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'eventarc.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'eventarc.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/eventarc_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/eventarc_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/eventarc_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/eventarc_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 - * resource. - * - * @param string $project - * @param string $location - * @param string $channel - * - * @return string The formatted channel resource. - */ - public static function channelName(string $project, string $location, string $channel): string - { - return self::getPathTemplate('channel')->render([ - 'project' => $project, - 'location' => $location, - 'channel' => $channel, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * channel_connection resource. - * - * @param string $project - * @param string $location - * @param string $channelConnection - * - * @return string The formatted channel_connection resource. - */ - public static function channelConnectionName(string $project, string $location, string $channelConnection): string - { - return self::getPathTemplate('channelConnection')->render([ - 'project' => $project, - 'location' => $location, - 'channel_connection' => $channelConnection, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * cloud_function resource. - * - * @param string $project - * @param string $location - * @param string $function - * - * @return string The formatted cloud_function resource. - */ - public static function cloudFunctionName(string $project, string $location, string $function): string - { - return self::getPathTemplate('cloudFunction')->render([ - 'project' => $project, - 'location' => $location, - 'function' => $function, - ]); - } - - /** - * 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 enrollment - * resource. - * - * @param string $project - * @param string $location - * @param string $enrollment - * - * @return string The formatted enrollment resource. - */ - public static function enrollmentName(string $project, string $location, string $enrollment): string - { - return self::getPathTemplate('enrollment')->render([ - 'project' => $project, - 'location' => $location, - 'enrollment' => $enrollment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_api_source resource. - * - * @param string $project - * @param string $location - * @param string $googleApiSource - * - * @return string The formatted google_api_source resource. - */ - public static function googleApiSourceName(string $project, string $location, string $googleApiSource): string - { - return self::getPathTemplate('googleApiSource')->render([ - 'project' => $project, - 'location' => $location, - 'google_api_source' => $googleApiSource, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * google_channel_config resource. - * - * @param string $project - * @param string $location - * - * @return string The formatted google_channel_config resource. - */ - public static function googleChannelConfigName(string $project, string $location): string - { - return self::getPathTemplate('googleChannelConfig')->render([ - 'project' => $project, - 'location' => $location, - ]); - } - - /** - * 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 message_bus - * resource. - * - * @param string $project - * @param string $location - * @param string $messageBus - * - * @return string The formatted message_bus resource. - */ - public static function messageBusName(string $project, string $location, string $messageBus): string - { - return self::getPathTemplate('messageBus')->render([ - 'project' => $project, - 'location' => $location, - 'message_bus' => $messageBus, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a - * network_attachment resource. - * - * @param string $project - * @param string $region - * @param string $networkattachment - * - * @return string The formatted network_attachment resource. - */ - public static function networkAttachmentName(string $project, string $region, string $networkattachment): string - { - return self::getPathTemplate('networkAttachment')->render([ - 'project' => $project, - 'region' => $region, - 'networkattachment' => $networkattachment, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a pipeline - * resource. - * - * @param string $project - * @param string $location - * @param string $pipeline - * - * @return string The formatted pipeline resource. - */ - public static function pipelineName(string $project, string $location, string $pipeline): string - { - return self::getPathTemplate('pipeline')->render([ - 'project' => $project, - 'location' => $location, - 'pipeline' => $pipeline, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a provider - * resource. - * - * @param string $project - * @param string $location - * @param string $provider - * - * @return string The formatted provider resource. - */ - public static function providerName(string $project, string $location, string $provider): string - { - return self::getPathTemplate('provider')->render([ - 'project' => $project, - 'location' => $location, - 'provider' => $provider, - ]); - } - - /** - * 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 topic - * resource. - * - * @param string $project - * @param string $topic - * - * @return string The formatted topic resource. - */ - public static function topicName(string $project, string $topic): string - { - return self::getPathTemplate('topic')->render([ - 'project' => $project, - 'topic' => $topic, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a trigger - * resource. - * - * @param string $project - * @param string $location - * @param string $trigger - * - * @return string The formatted trigger resource. - */ - public static function triggerName(string $project, string $location, string $trigger): string - { - return self::getPathTemplate('trigger')->render([ - 'project' => $project, - 'location' => $location, - 'trigger' => $trigger, - ]); - } - - /** - * Formats a string containing the fully-qualified path to represent a workflow - * resource. - * - * @param string $project - * @param string $location - * @param string $workflow - * - * @return string The formatted workflow resource. - */ - public static function workflowName(string $project, string $location, string $workflow): string - { - return self::getPathTemplate('workflow')->render([ - 'project' => $project, - 'location' => $location, - 'workflow' => $workflow, - ]); - } - - /** - * Parses a formatted name string and returns an associative array of the components in the name. - * The following name formats are supported: - * Template: Pattern - * - channel: projects/{project}/locations/{location}/channels/{channel} - * - channelConnection: projects/{project}/locations/{location}/channelConnections/{channel_connection} - * - cloudFunction: projects/{project}/locations/{location}/functions/{function} - * - cryptoKey: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key} - * - enrollment: projects/{project}/locations/{location}/enrollments/{enrollment} - * - googleApiSource: projects/{project}/locations/{location}/googleApiSources/{google_api_source} - * - googleChannelConfig: projects/{project}/locations/{location}/googleChannelConfig - * - location: projects/{project}/locations/{location} - * - messageBus: projects/{project}/locations/{location}/messageBuses/{message_bus} - * - networkAttachment: projects/{project}/regions/{region}/networkAttachments/{networkattachment} - * - pipeline: projects/{project}/locations/{location}/pipelines/{pipeline} - * - provider: projects/{project}/locations/{location}/providers/{provider} - * - serviceAccount: projects/{project}/serviceAccounts/{service_account} - * - topic: projects/{project}/topics/{topic} - * - trigger: projects/{project}/locations/{location}/triggers/{trigger} - * - workflow: projects/{project}/locations/{location}/workflows/{workflow} - * - * 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 'eventarc.googleapis.com:443'. - * @type string|array|FetchAuthTokenInterface|CredentialsWrapper $credentials - * The credentials to be used by the client to authorize API calls. This option - * accepts either a path to a credentials file, or a decoded credentials file as a - * PHP array. - * *Advanced usage*: In addition, this option can also accept a pre-constructed - * {@see \Google\Auth\FetchAuthTokenInterface} object or - * {@see \Google\ApiCore\CredentialsWrapper} object. Note that when one of these - * objects are provided, any settings in $credentialsConfig will be ignored. - * @type array $credentialsConfig - * Options used to configure credentials, including auth token caching, for the - * client. For a full list of supporting configuration options, see - * {@see \Google\ApiCore\CredentialsWrapper::build()} . - * @type bool $disableRetries - * Determines whether or not retries defined by the client configuration should be - * disabled. Defaults to `false`. - * @type string|array $clientConfig - * Client method configuration, including retry settings. This option can be either - * a path to a JSON file, or a PHP array containing the decoded JSON data. By - * default this settings points to the default client config file, which is - * provided in the resources folder. - * @type string|TransportInterface $transport - * The transport used for executing network requests. May be either the string - * `rest` or `grpc`. Defaults to `grpc` if gRPC support is detected on the system. - * *Advanced usage*: Additionally, it is possible to pass in an already - * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note - * that when this object is provided, any settings in $transportConfig, and any - * $apiEndpoint setting, will be ignored. - * @type array $transportConfig - * Configuration options that will be used to construct the transport. Options for - * each supported transport type should be passed in a key for that transport. For - * example: - * $transportConfig = [ - * 'grpc' => [...], - * 'rest' => [...], - * ]; - * See the {@see \Google\ApiCore\Transport\GrpcTransport::build()} and - * {@see \Google\ApiCore\Transport\RestTransport::build()} methods for the - * supported options. - * @type callable $clientCertSource - * A callable which returns the client cert as a string. This can be used to - * provide a certificate and private key to the transport layer for mTLS. - * } - * - * @throws ValidationException - */ - public function __construct(array $options = []) - { - $clientOptions = $this->buildClientOptions($options); - $this->setClientOptions($clientOptions); - $this->operationsClient = $this->createOperationsClient($clientOptions); - } - - /** Handles execution of the async variants for each documented method. */ - public function __call($method, $args) - { - if (substr($method, -5) !== 'Async') { - trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); - } - - array_unshift($args, substr($method, 0, -5)); - return call_user_func_array([$this, 'startAsyncCall'], $args); - } - - /** - * Create a new channel in a particular project and location. - * - * The async variant is {@see EventarcClient::createChannelAsync()} . - * - * @example samples/V1/EventarcClient/create_channel.php - * - * @param CreateChannelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createChannel(CreateChannelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateChannel', $request, $callOptions)->wait(); - } - - /** - * Create a new ChannelConnection in a particular project and location. - * - * The async variant is {@see EventarcClient::createChannelConnectionAsync()} . - * - * @example samples/V1/EventarcClient/create_channel_connection.php - * - * @param CreateChannelConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createChannelConnection(CreateChannelConnectionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateChannelConnection', $request, $callOptions)->wait(); - } - - /** - * Create a new Enrollment in a particular project and location. - * - * The async variant is {@see EventarcClient::createEnrollmentAsync()} . - * - * @example samples/V1/EventarcClient/create_enrollment.php - * - * @param CreateEnrollmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createEnrollment(CreateEnrollmentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateEnrollment', $request, $callOptions)->wait(); - } - - /** - * Create a new GoogleApiSource in a particular project and location. - * - * The async variant is {@see EventarcClient::createGoogleApiSourceAsync()} . - * - * @example samples/V1/EventarcClient/create_google_api_source.php - * - * @param CreateGoogleApiSourceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createGoogleApiSource(CreateGoogleApiSourceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateGoogleApiSource', $request, $callOptions)->wait(); - } - - /** - * Create a new MessageBus in a particular project and location. - * - * The async variant is {@see EventarcClient::createMessageBusAsync()} . - * - * @example samples/V1/EventarcClient/create_message_bus.php - * - * @param CreateMessageBusRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createMessageBus(CreateMessageBusRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateMessageBus', $request, $callOptions)->wait(); - } - - /** - * Create a new Pipeline in a particular project and location. - * - * The async variant is {@see EventarcClient::createPipelineAsync()} . - * - * @example samples/V1/EventarcClient/create_pipeline.php - * - * @param CreatePipelineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createPipeline(CreatePipelineRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreatePipeline', $request, $callOptions)->wait(); - } - - /** - * Create a new trigger in a particular project and location. - * - * The async variant is {@see EventarcClient::createTriggerAsync()} . - * - * @example samples/V1/EventarcClient/create_trigger.php - * - * @param CreateTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 createTrigger(CreateTriggerRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('CreateTrigger', $request, $callOptions)->wait(); - } - - /** - * Delete a single channel. - * - * The async variant is {@see EventarcClient::deleteChannelAsync()} . - * - * @example samples/V1/EventarcClient/delete_channel.php - * - * @param DeleteChannelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteChannel(DeleteChannelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteChannel', $request, $callOptions)->wait(); - } - - /** - * Delete a single ChannelConnection. - * - * The async variant is {@see EventarcClient::deleteChannelConnectionAsync()} . - * - * @example samples/V1/EventarcClient/delete_channel_connection.php - * - * @param DeleteChannelConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteChannelConnection(DeleteChannelConnectionRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteChannelConnection', $request, $callOptions)->wait(); - } - - /** - * Delete a single Enrollment. - * - * The async variant is {@see EventarcClient::deleteEnrollmentAsync()} . - * - * @example samples/V1/EventarcClient/delete_enrollment.php - * - * @param DeleteEnrollmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteEnrollment(DeleteEnrollmentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteEnrollment', $request, $callOptions)->wait(); - } - - /** - * Delete a single GoogleApiSource. - * - * The async variant is {@see EventarcClient::deleteGoogleApiSourceAsync()} . - * - * @example samples/V1/EventarcClient/delete_google_api_source.php - * - * @param DeleteGoogleApiSourceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteGoogleApiSource(DeleteGoogleApiSourceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteGoogleApiSource', $request, $callOptions)->wait(); - } - - /** - * Delete a single message bus. - * - * The async variant is {@see EventarcClient::deleteMessageBusAsync()} . - * - * @example samples/V1/EventarcClient/delete_message_bus.php - * - * @param DeleteMessageBusRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteMessageBus(DeleteMessageBusRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteMessageBus', $request, $callOptions)->wait(); - } - - /** - * Delete a single pipeline. - * - * The async variant is {@see EventarcClient::deletePipelineAsync()} . - * - * @example samples/V1/EventarcClient/delete_pipeline.php - * - * @param DeletePipelineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deletePipeline(DeletePipelineRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeletePipeline', $request, $callOptions)->wait(); - } - - /** - * Delete a single trigger. - * - * The async variant is {@see EventarcClient::deleteTriggerAsync()} . - * - * @example samples/V1/EventarcClient/delete_trigger.php - * - * @param DeleteTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 deleteTrigger(DeleteTriggerRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('DeleteTrigger', $request, $callOptions)->wait(); - } - - /** - * Get a single Channel. - * - * The async variant is {@see EventarcClient::getChannelAsync()} . - * - * @example samples/V1/EventarcClient/get_channel.php - * - * @param GetChannelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Channel - * - * @throws ApiException Thrown if the API call fails. - */ - public function getChannel(GetChannelRequest $request, array $callOptions = []): Channel - { - return $this->startApiCall('GetChannel', $request, $callOptions)->wait(); - } - - /** - * Get a single ChannelConnection. - * - * The async variant is {@see EventarcClient::getChannelConnectionAsync()} . - * - * @example samples/V1/EventarcClient/get_channel_connection.php - * - * @param GetChannelConnectionRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return ChannelConnection - * - * @throws ApiException Thrown if the API call fails. - */ - public function getChannelConnection(GetChannelConnectionRequest $request, array $callOptions = []): ChannelConnection - { - return $this->startApiCall('GetChannelConnection', $request, $callOptions)->wait(); - } - - /** - * Get a single Enrollment. - * - * The async variant is {@see EventarcClient::getEnrollmentAsync()} . - * - * @example samples/V1/EventarcClient/get_enrollment.php - * - * @param GetEnrollmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Enrollment - * - * @throws ApiException Thrown if the API call fails. - */ - public function getEnrollment(GetEnrollmentRequest $request, array $callOptions = []): Enrollment - { - return $this->startApiCall('GetEnrollment', $request, $callOptions)->wait(); - } - - /** - * Get a single GoogleApiSource. - * - * The async variant is {@see EventarcClient::getGoogleApiSourceAsync()} . - * - * @example samples/V1/EventarcClient/get_google_api_source.php - * - * @param GetGoogleApiSourceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleApiSource - * - * @throws ApiException Thrown if the API call fails. - */ - public function getGoogleApiSource(GetGoogleApiSourceRequest $request, array $callOptions = []): GoogleApiSource - { - return $this->startApiCall('GetGoogleApiSource', $request, $callOptions)->wait(); - } - - /** - * Get a GoogleChannelConfig - * - * The async variant is {@see EventarcClient::getGoogleChannelConfigAsync()} . - * - * @example samples/V1/EventarcClient/get_google_channel_config.php - * - * @param GetGoogleChannelConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleChannelConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function getGoogleChannelConfig(GetGoogleChannelConfigRequest $request, array $callOptions = []): GoogleChannelConfig - { - return $this->startApiCall('GetGoogleChannelConfig', $request, $callOptions)->wait(); - } - - /** - * Get a single MessageBus. - * - * The async variant is {@see EventarcClient::getMessageBusAsync()} . - * - * @example samples/V1/EventarcClient/get_message_bus.php - * - * @param GetMessageBusRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return MessageBus - * - * @throws ApiException Thrown if the API call fails. - */ - public function getMessageBus(GetMessageBusRequest $request, array $callOptions = []): MessageBus - { - return $this->startApiCall('GetMessageBus', $request, $callOptions)->wait(); - } - - /** - * Get a single Pipeline. - * - * The async variant is {@see EventarcClient::getPipelineAsync()} . - * - * @example samples/V1/EventarcClient/get_pipeline.php - * - * @param GetPipelineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Pipeline - * - * @throws ApiException Thrown if the API call fails. - */ - public function getPipeline(GetPipelineRequest $request, array $callOptions = []): Pipeline - { - return $this->startApiCall('GetPipeline', $request, $callOptions)->wait(); - } - - /** - * Get a single Provider. - * - * The async variant is {@see EventarcClient::getProviderAsync()} . - * - * @example samples/V1/EventarcClient/get_provider.php - * - * @param GetProviderRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Provider - * - * @throws ApiException Thrown if the API call fails. - */ - public function getProvider(GetProviderRequest $request, array $callOptions = []): Provider - { - return $this->startApiCall('GetProvider', $request, $callOptions)->wait(); - } - - /** - * Get a single trigger. - * - * The async variant is {@see EventarcClient::getTriggerAsync()} . - * - * @example samples/V1/EventarcClient/get_trigger.php - * - * @param GetTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return Trigger - * - * @throws ApiException Thrown if the API call fails. - */ - public function getTrigger(GetTriggerRequest $request, array $callOptions = []): Trigger - { - return $this->startApiCall('GetTrigger', $request, $callOptions)->wait(); - } - - /** - * List channel connections. - * - * The async variant is {@see EventarcClient::listChannelConnectionsAsync()} . - * - * @example samples/V1/EventarcClient/list_channel_connections.php - * - * @param ListChannelConnectionsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listChannelConnections(ListChannelConnectionsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListChannelConnections', $request, $callOptions); - } - - /** - * List channels. - * - * The async variant is {@see EventarcClient::listChannelsAsync()} . - * - * @example samples/V1/EventarcClient/list_channels.php - * - * @param ListChannelsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listChannels(ListChannelsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListChannels', $request, $callOptions); - } - - /** - * List Enrollments. - * - * The async variant is {@see EventarcClient::listEnrollmentsAsync()} . - * - * @example samples/V1/EventarcClient/list_enrollments.php - * - * @param ListEnrollmentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listEnrollments(ListEnrollmentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListEnrollments', $request, $callOptions); - } - - /** - * List GoogleApiSources. - * - * The async variant is {@see EventarcClient::listGoogleApiSourcesAsync()} . - * - * @example samples/V1/EventarcClient/list_google_api_sources.php - * - * @param ListGoogleApiSourcesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listGoogleApiSources(ListGoogleApiSourcesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListGoogleApiSources', $request, $callOptions); - } - - /** - * List message bus enrollments. - * - * The async variant is {@see EventarcClient::listMessageBusEnrollmentsAsync()} . - * - * @example samples/V1/EventarcClient/list_message_bus_enrollments.php - * - * @param ListMessageBusEnrollmentsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listMessageBusEnrollments(ListMessageBusEnrollmentsRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMessageBusEnrollments', $request, $callOptions); - } - - /** - * List message buses. - * - * The async variant is {@see EventarcClient::listMessageBusesAsync()} . - * - * @example samples/V1/EventarcClient/list_message_buses.php - * - * @param ListMessageBusesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listMessageBuses(ListMessageBusesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListMessageBuses', $request, $callOptions); - } - - /** - * List pipelines. - * - * The async variant is {@see EventarcClient::listPipelinesAsync()} . - * - * @example samples/V1/EventarcClient/list_pipelines.php - * - * @param ListPipelinesRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listPipelines(ListPipelinesRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListPipelines', $request, $callOptions); - } - - /** - * List providers. - * - * The async variant is {@see EventarcClient::listProvidersAsync()} . - * - * @example samples/V1/EventarcClient/list_providers.php - * - * @param ListProvidersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listProviders(ListProvidersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListProviders', $request, $callOptions); - } - - /** - * List triggers. - * - * The async variant is {@see EventarcClient::listTriggersAsync()} . - * - * @example samples/V1/EventarcClient/list_triggers.php - * - * @param ListTriggersRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 listTriggers(ListTriggersRequest $request, array $callOptions = []): PagedListResponse - { - return $this->startApiCall('ListTriggers', $request, $callOptions); - } - - /** - * Update a single channel. - * - * The async variant is {@see EventarcClient::updateChannelAsync()} . - * - * @example samples/V1/EventarcClient/update_channel.php - * - * @param UpdateChannelRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateChannel(UpdateChannelRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateChannel', $request, $callOptions)->wait(); - } - - /** - * Update a single Enrollment. - * - * The async variant is {@see EventarcClient::updateEnrollmentAsync()} . - * - * @example samples/V1/EventarcClient/update_enrollment.php - * - * @param UpdateEnrollmentRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateEnrollment(UpdateEnrollmentRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateEnrollment', $request, $callOptions)->wait(); - } - - /** - * Update a single GoogleApiSource. - * - * The async variant is {@see EventarcClient::updateGoogleApiSourceAsync()} . - * - * @example samples/V1/EventarcClient/update_google_api_source.php - * - * @param UpdateGoogleApiSourceRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateGoogleApiSource(UpdateGoogleApiSourceRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateGoogleApiSource', $request, $callOptions)->wait(); - } - - /** - * Update a single GoogleChannelConfig - * - * The async variant is {@see EventarcClient::updateGoogleChannelConfigAsync()} . - * - * @example samples/V1/EventarcClient/update_google_channel_config.php - * - * @param UpdateGoogleChannelConfigRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return GoogleChannelConfig - * - * @throws ApiException Thrown if the API call fails. - */ - public function updateGoogleChannelConfig(UpdateGoogleChannelConfigRequest $request, array $callOptions = []): GoogleChannelConfig - { - return $this->startApiCall('UpdateGoogleChannelConfig', $request, $callOptions)->wait(); - } - - /** - * Update a single message bus. - * - * The async variant is {@see EventarcClient::updateMessageBusAsync()} . - * - * @example samples/V1/EventarcClient/update_message_bus.php - * - * @param UpdateMessageBusRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateMessageBus(UpdateMessageBusRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateMessageBus', $request, $callOptions)->wait(); - } - - /** - * Update a single pipeline. - * - * The async variant is {@see EventarcClient::updatePipelineAsync()} . - * - * @example samples/V1/EventarcClient/update_pipeline.php - * - * @param UpdatePipelineRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updatePipeline(UpdatePipelineRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdatePipeline', $request, $callOptions)->wait(); - } - - /** - * Update a single trigger. - * - * The async variant is {@see EventarcClient::updateTriggerAsync()} . - * - * @example samples/V1/EventarcClient/update_trigger.php - * - * @param UpdateTriggerRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. 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 updateTrigger(UpdateTriggerRequest $request, array $callOptions = []): OperationResponse - { - return $this->startApiCall('UpdateTrigger', $request, $callOptions)->wait(); - } - - /** - * Gets information about a location. - * - * The async variant is {@see EventarcClient::getLocationAsync()} . - * - * @example samples/V1/EventarcClient/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 EventarcClient::listLocationsAsync()} . - * - * @example samples/V1/EventarcClient/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 EventarcClient::getIamPolicyAsync()} . - * - * @example samples/V1/EventarcClient/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 EventarcClient::setIamPolicyAsync()} . - * - * @example samples/V1/EventarcClient/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 EventarcClient::testIamPermissionsAsync()} . - * - * @example samples/V1/EventarcClient/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/Eventarc/v1/src/V1/gapic_metadata.json b/owl-bot-staging/Eventarc/v1/src/V1/gapic_metadata.json deleted file mode 100644 index a6223f4e4409..000000000000 --- a/owl-bot-staging/Eventarc/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,238 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.eventarc.v1", - "libraryPackage": "Google\\Cloud\\Eventarc\\V1", - "services": { - "Eventarc": { - "clients": { - "grpc": { - "libraryClient": "EventarcGapicClient", - "rpcs": { - "CreateChannel": { - "methods": [ - "createChannel" - ] - }, - "CreateChannelConnection": { - "methods": [ - "createChannelConnection" - ] - }, - "CreateEnrollment": { - "methods": [ - "createEnrollment" - ] - }, - "CreateGoogleApiSource": { - "methods": [ - "createGoogleApiSource" - ] - }, - "CreateMessageBus": { - "methods": [ - "createMessageBus" - ] - }, - "CreatePipeline": { - "methods": [ - "createPipeline" - ] - }, - "CreateTrigger": { - "methods": [ - "createTrigger" - ] - }, - "DeleteChannel": { - "methods": [ - "deleteChannel" - ] - }, - "DeleteChannelConnection": { - "methods": [ - "deleteChannelConnection" - ] - }, - "DeleteEnrollment": { - "methods": [ - "deleteEnrollment" - ] - }, - "DeleteGoogleApiSource": { - "methods": [ - "deleteGoogleApiSource" - ] - }, - "DeleteMessageBus": { - "methods": [ - "deleteMessageBus" - ] - }, - "DeletePipeline": { - "methods": [ - "deletePipeline" - ] - }, - "DeleteTrigger": { - "methods": [ - "deleteTrigger" - ] - }, - "GetChannel": { - "methods": [ - "getChannel" - ] - }, - "GetChannelConnection": { - "methods": [ - "getChannelConnection" - ] - }, - "GetEnrollment": { - "methods": [ - "getEnrollment" - ] - }, - "GetGoogleApiSource": { - "methods": [ - "getGoogleApiSource" - ] - }, - "GetGoogleChannelConfig": { - "methods": [ - "getGoogleChannelConfig" - ] - }, - "GetMessageBus": { - "methods": [ - "getMessageBus" - ] - }, - "GetPipeline": { - "methods": [ - "getPipeline" - ] - }, - "GetProvider": { - "methods": [ - "getProvider" - ] - }, - "GetTrigger": { - "methods": [ - "getTrigger" - ] - }, - "ListChannelConnections": { - "methods": [ - "listChannelConnections" - ] - }, - "ListChannels": { - "methods": [ - "listChannels" - ] - }, - "ListEnrollments": { - "methods": [ - "listEnrollments" - ] - }, - "ListGoogleApiSources": { - "methods": [ - "listGoogleApiSources" - ] - }, - "ListMessageBusEnrollments": { - "methods": [ - "listMessageBusEnrollments" - ] - }, - "ListMessageBuses": { - "methods": [ - "listMessageBuses" - ] - }, - "ListPipelines": { - "methods": [ - "listPipelines" - ] - }, - "ListProviders": { - "methods": [ - "listProviders" - ] - }, - "ListTriggers": { - "methods": [ - "listTriggers" - ] - }, - "UpdateChannel": { - "methods": [ - "updateChannel" - ] - }, - "UpdateEnrollment": { - "methods": [ - "updateEnrollment" - ] - }, - "UpdateGoogleApiSource": { - "methods": [ - "updateGoogleApiSource" - ] - }, - "UpdateGoogleChannelConfig": { - "methods": [ - "updateGoogleChannelConfig" - ] - }, - "UpdateMessageBus": { - "methods": [ - "updateMessageBus" - ] - }, - "UpdatePipeline": { - "methods": [ - "updatePipeline" - ] - }, - "UpdateTrigger": { - "methods": [ - "updateTrigger" - ] - }, - "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/Eventarc/v1/src/V1/resources/eventarc_client_config.json b/owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_client_config.json deleted file mode 100644 index 5203bf50f2ef..000000000000 --- a/owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_client_config.json +++ /dev/null @@ -1,265 +0,0 @@ -{ - "interfaces": { - "google.cloud.eventarc.v1.Eventarc": { - "retry_codes": { - "no_retry_codes": [], - "retry_policy_1_codes": [ - "UNAVAILABLE", - "UNKNOWN" - ], - "no_retry_1_codes": [] - }, - "retry_params": { - "no_retry_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 0, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 0, - "total_timeout_millis": 0 - }, - "retry_policy_1_params": { - "initial_retry_delay_millis": 1000, - "retry_delay_multiplier": 1.3, - "max_retry_delay_millis": 60000, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - }, - "no_retry_1_params": { - "initial_retry_delay_millis": 0, - "retry_delay_multiplier": 0.0, - "max_retry_delay_millis": 0, - "initial_rpc_timeout_millis": 60000, - "rpc_timeout_multiplier": 1.0, - "max_rpc_timeout_millis": 60000, - "total_timeout_millis": 60000 - } - }, - "methods": { - "CreateChannel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateChannelConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateEnrollment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateGoogleApiSource": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateMessageBus": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreatePipeline": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "CreateTrigger": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteChannel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteChannelConnection": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteEnrollment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteGoogleApiSource": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteMessageBus": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeletePipeline": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "DeleteTrigger": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetChannel": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetChannelConnection": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetEnrollment": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetGoogleApiSource": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetGoogleChannelConfig": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetMessageBus": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetPipeline": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetProvider": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "GetTrigger": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListChannelConnections": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListChannels": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListEnrollments": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListGoogleApiSources": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMessageBusEnrollments": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListMessageBuses": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListPipelines": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListProviders": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "ListTriggers": { - "timeout_millis": 60000, - "retry_codes_name": "retry_policy_1_codes", - "retry_params_name": "retry_policy_1_params" - }, - "UpdateChannel": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateEnrollment": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateGoogleApiSource": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateGoogleChannelConfig": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateMessageBus": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdatePipeline": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "UpdateTrigger": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "GetLocation": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "ListLocations": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "GetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "SetIamPolicy": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - }, - "TestIamPermissions": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_descriptor_config.php b/owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_descriptor_config.php deleted file mode 100644 index 062cd5f67467..000000000000 --- a/owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_descriptor_config.php +++ /dev/null @@ -1,806 +0,0 @@ - [ - 'google.cloud.eventarc.v1.Eventarc' => [ - 'CreateChannel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Channel', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateChannelConnection' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\ChannelConnection', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateEnrollment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Enrollment', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateGoogleApiSource' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\GoogleApiSource', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateMessageBus' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\MessageBus', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreatePipeline' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Pipeline', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'CreateTrigger' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Trigger', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'DeleteChannel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Channel', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteChannelConnection' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\ChannelConnection', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEnrollment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Enrollment', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGoogleApiSource' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\GoogleApiSource', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMessageBus' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\MessageBus', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeletePipeline' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Pipeline', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTrigger' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Trigger', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'UpdateChannel' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Channel', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'channel.name', - 'fieldAccessors' => [ - 'getChannel', - 'getName', - ], - ], - ], - ], - 'UpdateEnrollment' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Enrollment', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'enrollment.name', - 'fieldAccessors' => [ - 'getEnrollment', - 'getName', - ], - ], - ], - ], - 'UpdateGoogleApiSource' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\GoogleApiSource', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'google_api_source.name', - 'fieldAccessors' => [ - 'getGoogleApiSource', - 'getName', - ], - ], - ], - ], - 'UpdateMessageBus' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\MessageBus', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'message_bus.name', - 'fieldAccessors' => [ - 'getMessageBus', - 'getName', - ], - ], - ], - ], - 'UpdatePipeline' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Pipeline', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'pipeline.name', - 'fieldAccessors' => [ - 'getPipeline', - 'getName', - ], - ], - ], - ], - 'UpdateTrigger' => [ - 'longRunning' => [ - 'operationReturnType' => '\Google\Cloud\Eventarc\V1\Trigger', - 'metadataReturnType' => '\Google\Cloud\Eventarc\V1\OperationMetadata', - 'initialPollDelayMillis' => '500', - 'pollDelayMultiplier' => '1.5', - 'maxPollDelayMillis' => '5000', - 'totalPollTimeoutMillis' => '300000', - ], - 'callType' => \Google\ApiCore\Call::LONGRUNNING_CALL, - 'headerParams' => [ - [ - 'keyName' => 'trigger.name', - 'fieldAccessors' => [ - 'getTrigger', - 'getName', - ], - ], - ], - ], - 'GetChannel' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\Channel', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetChannelConnection' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\ChannelConnection', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetEnrollment' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\Enrollment', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetGoogleApiSource' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\GoogleApiSource', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetGoogleChannelConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\GoogleChannelConfig', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetMessageBus' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\MessageBus', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetPipeline' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\Pipeline', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetProvider' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\Provider', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'GetTrigger' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\Trigger', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - ], - 'ListChannelConnections' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getChannelConnections', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\ListChannelConnectionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListChannels' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getChannels', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\ListChannelsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListEnrollments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEnrollments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\ListEnrollmentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListGoogleApiSources' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getGoogleApiSources', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\ListGoogleApiSourcesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessageBusEnrollments' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getEnrollments', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\ListMessageBusEnrollmentsResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessageBuses' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getMessageBuses', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\ListMessageBusesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListPipelines' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getPipelines', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\ListPipelinesResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListProviders' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getProviders', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\ListProvidersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'ListTriggers' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getTriggers', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\ListTriggersResponse', - 'headerParams' => [ - [ - 'keyName' => 'parent', - 'fieldAccessors' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateGoogleChannelConfig' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\V1\GoogleChannelConfig', - 'headerParams' => [ - [ - 'keyName' => 'google_channel_config.name', - 'fieldAccessors' => [ - 'getGoogleChannelConfig', - 'getName', - ], - ], - ], - ], - 'GetLocation' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Location\Location', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'ListLocations' => [ - 'pageStreaming' => [ - 'requestPageTokenGetMethod' => 'getPageToken', - 'requestPageTokenSetMethod' => 'setPageToken', - 'requestPageSizeGetMethod' => 'getPageSize', - 'requestPageSizeSetMethod' => 'setPageSize', - 'responsePageTokenGetMethod' => 'getNextPageToken', - 'resourcesGetMethod' => 'getLocations', - ], - 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, - 'responseType' => 'Google\Cloud\Location\ListLocationsResponse', - 'headerParams' => [ - [ - 'keyName' => 'name', - 'fieldAccessors' => [ - 'getName', - ], - ], - ], - 'interfaceOverride' => 'google.cloud.location.Locations', - ], - 'GetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'SetIamPolicy' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\Policy', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'TestIamPermissions' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Iam\V1\TestIamPermissionsResponse', - 'headerParams' => [ - [ - 'keyName' => 'resource', - 'fieldAccessors' => [ - 'getResource', - ], - ], - ], - 'interfaceOverride' => 'google.iam.v1.IAMPolicy', - ], - 'templateMap' => [ - 'channel' => 'projects/{project}/locations/{location}/channels/{channel}', - 'channelConnection' => 'projects/{project}/locations/{location}/channelConnections/{channel_connection}', - 'cloudFunction' => 'projects/{project}/locations/{location}/functions/{function}', - 'cryptoKey' => 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}', - 'enrollment' => 'projects/{project}/locations/{location}/enrollments/{enrollment}', - 'googleApiSource' => 'projects/{project}/locations/{location}/googleApiSources/{google_api_source}', - 'googleChannelConfig' => 'projects/{project}/locations/{location}/googleChannelConfig', - 'location' => 'projects/{project}/locations/{location}', - 'messageBus' => 'projects/{project}/locations/{location}/messageBuses/{message_bus}', - 'networkAttachment' => 'projects/{project}/regions/{region}/networkAttachments/{networkattachment}', - 'pipeline' => 'projects/{project}/locations/{location}/pipelines/{pipeline}', - 'provider' => 'projects/{project}/locations/{location}/providers/{provider}', - 'serviceAccount' => 'projects/{project}/serviceAccounts/{service_account}', - 'topic' => 'projects/{project}/topics/{topic}', - 'trigger' => 'projects/{project}/locations/{location}/triggers/{trigger}', - 'workflow' => 'projects/{project}/locations/{location}/workflows/{workflow}', - ], - ], - ], -]; diff --git a/owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_rest_client_config.php b/owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_rest_client_config.php deleted file mode 100644 index 44f6aec3f1aa..000000000000 --- a/owl-bot-staging/Eventarc/v1/src/V1/resources/eventarc_rest_client_config.php +++ /dev/null @@ -1,698 +0,0 @@ - [ - 'google.cloud.eventarc.v1.Eventarc' => [ - 'CreateChannel' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/channels', - 'body' => 'channel', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'channel_id', - ], - ], - 'CreateChannelConnection' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/channelConnections', - 'body' => 'channel_connection', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'channel_connection_id', - ], - ], - 'CreateEnrollment' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/enrollments', - 'body' => 'enrollment', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'enrollment_id', - ], - ], - 'CreateGoogleApiSource' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/googleApiSources', - 'body' => 'google_api_source', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'google_api_source_id', - ], - ], - 'CreateMessageBus' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/messageBuses', - 'body' => 'message_bus', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'message_bus_id', - ], - ], - 'CreatePipeline' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/pipelines', - 'body' => 'pipeline', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'pipeline_id', - ], - ], - 'CreateTrigger' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/triggers', - 'body' => 'trigger', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - 'queryParams' => [ - 'trigger_id', - ], - ], - 'DeleteChannel' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/channels/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteChannelConnection' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/channelConnections/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteEnrollment' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/enrollments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteGoogleApiSource' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/googleApiSources/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteMessageBus' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/messageBuses/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeletePipeline' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/pipelines/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'DeleteTrigger' => [ - 'method' => 'delete', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/triggers/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetChannel' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/channels/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetChannelConnection' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/channelConnections/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetEnrollment' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/enrollments/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGoogleApiSource' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/googleApiSources/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetGoogleChannelConfig' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/googleChannelConfig}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetMessageBus' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/messageBuses/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetPipeline' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/pipelines/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetProvider' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/providers/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'GetTrigger' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{name=projects/*/locations/*/triggers/*}', - 'placeholders' => [ - 'name' => [ - 'getters' => [ - 'getName', - ], - ], - ], - ], - 'ListChannelConnections' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/channelConnections', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListChannels' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/channels', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListEnrollments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/enrollments', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListGoogleApiSources' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/googleApiSources', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessageBusEnrollments' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*/messageBuses/*}:listEnrollments', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListMessageBuses' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/messageBuses', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListPipelines' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/pipelines', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListProviders' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/providers', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'ListTriggers' => [ - 'method' => 'get', - 'uriTemplate' => '/v1/{parent=projects/*/locations/*}/triggers', - 'placeholders' => [ - 'parent' => [ - 'getters' => [ - 'getParent', - ], - ], - ], - ], - 'UpdateChannel' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{channel.name=projects/*/locations/*/channels/*}', - 'body' => 'channel', - 'placeholders' => [ - 'channel.name' => [ - 'getters' => [ - 'getChannel', - 'getName', - ], - ], - ], - ], - 'UpdateEnrollment' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{enrollment.name=projects/*/locations/*/enrollments/*}', - 'body' => 'enrollment', - 'placeholders' => [ - 'enrollment.name' => [ - 'getters' => [ - 'getEnrollment', - 'getName', - ], - ], - ], - ], - 'UpdateGoogleApiSource' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{google_api_source.name=projects/*/locations/*/googleApiSources/*}', - 'body' => 'google_api_source', - 'placeholders' => [ - 'google_api_source.name' => [ - 'getters' => [ - 'getGoogleApiSource', - 'getName', - ], - ], - ], - ], - 'UpdateGoogleChannelConfig' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{google_channel_config.name=projects/*/locations/*/googleChannelConfig}', - 'body' => 'google_channel_config', - 'placeholders' => [ - 'google_channel_config.name' => [ - 'getters' => [ - 'getGoogleChannelConfig', - 'getName', - ], - ], - ], - ], - 'UpdateMessageBus' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{message_bus.name=projects/*/locations/*/messageBuses/*}', - 'body' => 'message_bus', - 'placeholders' => [ - 'message_bus.name' => [ - 'getters' => [ - 'getMessageBus', - 'getName', - ], - ], - ], - ], - 'UpdatePipeline' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{pipeline.name=projects/*/locations/*/pipelines/*}', - 'body' => 'pipeline', - 'placeholders' => [ - 'pipeline.name' => [ - 'getters' => [ - 'getPipeline', - 'getName', - ], - ], - ], - ], - 'UpdateTrigger' => [ - 'method' => 'patch', - 'uriTemplate' => '/v1/{trigger.name=projects/*/locations/*/triggers/*}', - 'body' => 'trigger', - 'placeholders' => [ - 'trigger.name' => [ - 'getters' => [ - 'getTrigger', - '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/*/triggers/*}:getIamPolicy', - 'additionalBindings' => [ - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/channels/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/channelConnections/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/messageBuses/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/enrollments/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/pipelines/*}:getIamPolicy', - ], - [ - 'method' => 'get', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/googleApiSources/*}:getIamPolicy', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'SetIamPolicy' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/triggers/*}:setIamPolicy', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/channels/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/channelConnections/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/messageBuses/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/enrollments/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/pipelines/*}:setIamPolicy', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/googleApiSources/*}:setIamPolicy', - 'body' => '*', - ], - ], - 'placeholders' => [ - 'resource' => [ - 'getters' => [ - 'getResource', - ], - ], - ], - ], - 'TestIamPermissions' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/triggers/*}:testIamPermissions', - 'body' => '*', - 'additionalBindings' => [ - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/channels/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/channelConnections/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/messageBuses/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/enrollments/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/pipelines/*}:testIamPermissions', - 'body' => '*', - ], - [ - 'method' => 'post', - 'uriTemplate' => '/v1/{resource=projects/*/locations/*/googleApiSources/*}: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/Eventarc/v1/tests/Unit/V1/Client/EventarcClientTest.php b/owl-bot-staging/Eventarc/v1/tests/Unit/V1/Client/EventarcClientTest.php deleted file mode 100644 index c3908921e3f1..000000000000 --- a/owl-bot-staging/Eventarc/v1/tests/Unit/V1/Client/EventarcClientTest.php +++ /dev/null @@ -1,4705 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return EventarcClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new EventarcClient($options); - } - - /** @test */ - public function createChannelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createChannelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $provider = 'provider-987494927'; - $pubsubTopic = 'pubsubTopic-338126829'; - $activationToken = 'activationToken1250030992'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $satisfiesPzs = false; - $expectedResponse = new Channel(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setProvider($provider); - $expectedResponse->setPubsubTopic($pubsubTopic); - $expectedResponse->setActivationToken($activationToken); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createChannelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $channel = new Channel(); - $channelName = 'channelName273953326'; - $channel->setName($channelName); - $channelId = 'channelId-1930808873'; - $request = (new CreateChannelRequest()) - ->setParent($formattedParent) - ->setChannel($channel) - ->setChannelId($channelId); - $response = $gapicClient->createChannel($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.eventarc.v1.Eventarc/CreateChannel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getChannel(); - $this->assertProtobufEquals($channel, $actualValue); - $actualValue = $actualApiRequestObject->getChannelId(); - $this->assertProtobufEquals($channelId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createChannelTest'); - $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 createChannelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createChannelTest'); - $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]'); - $channel = new Channel(); - $channelName = 'channelName273953326'; - $channel->setName($channelName); - $channelId = 'channelId-1930808873'; - $request = (new CreateChannelRequest()) - ->setParent($formattedParent) - ->setChannel($channel) - ->setChannelId($channelId); - $response = $gapicClient->createChannel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createChannelTest'); - 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 createChannelConnectionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createChannelConnectionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $channel = 'channel738950403'; - $activationToken = 'activationToken1250030992'; - $expectedResponse = new ChannelConnection(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setChannel($channel); - $expectedResponse->setActivationToken($activationToken); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createChannelConnectionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $channelConnection = new ChannelConnection(); - $channelConnectionName = 'channelConnectionName-46623124'; - $channelConnection->setName($channelConnectionName); - $channelConnectionChannel = $gapicClient->channelName('[PROJECT]', '[LOCATION]', '[CHANNEL]'); - $channelConnection->setChannel($channelConnectionChannel); - $channelConnectionId = 'channelConnectionId-1611273248'; - $request = (new CreateChannelConnectionRequest()) - ->setParent($formattedParent) - ->setChannelConnection($channelConnection) - ->setChannelConnectionId($channelConnectionId); - $response = $gapicClient->createChannelConnection($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.eventarc.v1.Eventarc/CreateChannelConnection', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getChannelConnection(); - $this->assertProtobufEquals($channelConnection, $actualValue); - $actualValue = $actualApiRequestObject->getChannelConnectionId(); - $this->assertProtobufEquals($channelConnectionId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createChannelConnectionTest'); - $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 createChannelConnectionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createChannelConnectionTest'); - $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]'); - $channelConnection = new ChannelConnection(); - $channelConnectionName = 'channelConnectionName-46623124'; - $channelConnection->setName($channelConnectionName); - $channelConnectionChannel = $gapicClient->channelName('[PROJECT]', '[LOCATION]', '[CHANNEL]'); - $channelConnection->setChannel($channelConnectionChannel); - $channelConnectionId = 'channelConnectionId-1611273248'; - $request = (new CreateChannelConnectionRequest()) - ->setParent($formattedParent) - ->setChannelConnection($channelConnection) - ->setChannelConnectionId($channelConnectionId); - $response = $gapicClient->createChannelConnection($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createChannelConnectionTest'); - 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 createEnrollmentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createEnrollmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $displayName = 'displayName1615086568'; - $celMatch = 'celMatch1270406544'; - $messageBus = 'messageBus-872787384'; - $destination = 'destination-1429847026'; - $expectedResponse = new Enrollment(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCelMatch($celMatch); - $expectedResponse->setMessageBus($messageBus); - $expectedResponse->setDestination($destination); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createEnrollmentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $enrollment = new Enrollment(); - $enrollmentCelMatch = 'enrollmentCelMatch2137295551'; - $enrollment->setCelMatch($enrollmentCelMatch); - $enrollmentMessageBus = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $enrollment->setMessageBus($enrollmentMessageBus); - $enrollmentDestination = 'enrollmentDestination-400605590'; - $enrollment->setDestination($enrollmentDestination); - $enrollmentId = 'enrollmentId976814134'; - $request = (new CreateEnrollmentRequest()) - ->setParent($formattedParent) - ->setEnrollment($enrollment) - ->setEnrollmentId($enrollmentId); - $response = $gapicClient->createEnrollment($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.eventarc.v1.Eventarc/CreateEnrollment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getEnrollment(); - $this->assertProtobufEquals($enrollment, $actualValue); - $actualValue = $actualApiRequestObject->getEnrollmentId(); - $this->assertProtobufEquals($enrollmentId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEnrollmentTest'); - $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 createEnrollmentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createEnrollmentTest'); - $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]'); - $enrollment = new Enrollment(); - $enrollmentCelMatch = 'enrollmentCelMatch2137295551'; - $enrollment->setCelMatch($enrollmentCelMatch); - $enrollmentMessageBus = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $enrollment->setMessageBus($enrollmentMessageBus); - $enrollmentDestination = 'enrollmentDestination-400605590'; - $enrollment->setDestination($enrollmentDestination); - $enrollmentId = 'enrollmentId976814134'; - $request = (new CreateEnrollmentRequest()) - ->setParent($formattedParent) - ->setEnrollment($enrollment) - ->setEnrollmentId($enrollmentId); - $response = $gapicClient->createEnrollment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createEnrollmentTest'); - 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 createGoogleApiSourceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createGoogleApiSourceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $displayName = 'displayName1615086568'; - $destination = 'destination-1429847026'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $expectedResponse = new GoogleApiSource(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDestination($destination); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createGoogleApiSourceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $googleApiSource = new GoogleApiSource(); - $googleApiSourceDestination = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $googleApiSource->setDestination($googleApiSourceDestination); - $googleApiSourceId = 'googleApiSourceId-1909472172'; - $request = (new CreateGoogleApiSourceRequest()) - ->setParent($formattedParent) - ->setGoogleApiSource($googleApiSource) - ->setGoogleApiSourceId($googleApiSourceId); - $response = $gapicClient->createGoogleApiSource($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.eventarc.v1.Eventarc/CreateGoogleApiSource', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getGoogleApiSource(); - $this->assertProtobufEquals($googleApiSource, $actualValue); - $actualValue = $actualApiRequestObject->getGoogleApiSourceId(); - $this->assertProtobufEquals($googleApiSourceId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createGoogleApiSourceTest'); - $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 createGoogleApiSourceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createGoogleApiSourceTest'); - $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]'); - $googleApiSource = new GoogleApiSource(); - $googleApiSourceDestination = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $googleApiSource->setDestination($googleApiSourceDestination); - $googleApiSourceId = 'googleApiSourceId-1909472172'; - $request = (new CreateGoogleApiSourceRequest()) - ->setParent($formattedParent) - ->setGoogleApiSource($googleApiSource) - ->setGoogleApiSourceId($googleApiSourceId); - $response = $gapicClient->createGoogleApiSource($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createGoogleApiSourceTest'); - 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 createMessageBusTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createMessageBusTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $displayName = 'displayName1615086568'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $expectedResponse = new MessageBus(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createMessageBusTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $messageBus = new MessageBus(); - $messageBusId = 'messageBusId523147890'; - $request = (new CreateMessageBusRequest()) - ->setParent($formattedParent) - ->setMessageBus($messageBus) - ->setMessageBusId($messageBusId); - $response = $gapicClient->createMessageBus($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.eventarc.v1.Eventarc/CreateMessageBus', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getMessageBus(); - $this->assertProtobufEquals($messageBus, $actualValue); - $actualValue = $actualApiRequestObject->getMessageBusId(); - $this->assertProtobufEquals($messageBusId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMessageBusTest'); - $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 createMessageBusExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createMessageBusTest'); - $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]'); - $messageBus = new MessageBus(); - $messageBusId = 'messageBusId523147890'; - $request = (new CreateMessageBusRequest()) - ->setParent($formattedParent) - ->setMessageBus($messageBus) - ->setMessageBusId($messageBusId); - $response = $gapicClient->createMessageBus($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createMessageBusTest'); - 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 createPipelineTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createPipelineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $etag = 'etag3123477'; - $expectedResponse = new Pipeline(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createPipelineTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $pipeline = new Pipeline(); - $pipelineDestinations = []; - $pipeline->setDestinations($pipelineDestinations); - $pipelineId = 'pipelineId981478360'; - $request = (new CreatePipelineRequest()) - ->setParent($formattedParent) - ->setPipeline($pipeline) - ->setPipelineId($pipelineId); - $response = $gapicClient->createPipeline($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.eventarc.v1.Eventarc/CreatePipeline', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getPipeline(); - $this->assertProtobufEquals($pipeline, $actualValue); - $actualValue = $actualApiRequestObject->getPipelineId(); - $this->assertProtobufEquals($pipelineId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createPipelineTest'); - $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 createPipelineExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createPipelineTest'); - $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]'); - $pipeline = new Pipeline(); - $pipelineDestinations = []; - $pipeline->setDestinations($pipelineDestinations); - $pipelineId = 'pipelineId981478360'; - $request = (new CreatePipelineRequest()) - ->setParent($formattedParent) - ->setPipeline($pipeline) - ->setPipelineId($pipelineId); - $response = $gapicClient->createPipeline($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createPipelineTest'); - 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 createTriggerTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createTriggerTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $serviceAccount = 'serviceAccount-1948028253'; - $channel = 'channel738950403'; - $eventDataContentType = 'eventDataContentType-440836272'; - $satisfiesPzs = false; - $etag = 'etag3123477'; - $expectedResponse = new Trigger(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setChannel($channel); - $expectedResponse->setEventDataContentType($eventDataContentType); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createTriggerTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $trigger = new Trigger(); - $triggerName = 'triggerName-681138077'; - $trigger->setName($triggerName); - $triggerEventFilters = []; - $trigger->setEventFilters($triggerEventFilters); - $triggerDestination = new Destination(); - $trigger->setDestination($triggerDestination); - $triggerId = 'triggerId1363517698'; - $request = (new CreateTriggerRequest()) - ->setParent($formattedParent) - ->setTrigger($trigger) - ->setTriggerId($triggerId); - $response = $gapicClient->createTrigger($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.eventarc.v1.Eventarc/CreateTrigger', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getTrigger(); - $this->assertProtobufEquals($trigger, $actualValue); - $actualValue = $actualApiRequestObject->getTriggerId(); - $this->assertProtobufEquals($triggerId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createTriggerTest'); - $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 createTriggerExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createTriggerTest'); - $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]'); - $trigger = new Trigger(); - $triggerName = 'triggerName-681138077'; - $trigger->setName($triggerName); - $triggerEventFilters = []; - $trigger->setEventFilters($triggerEventFilters); - $triggerDestination = new Destination(); - $trigger->setDestination($triggerDestination); - $triggerId = 'triggerId1363517698'; - $request = (new CreateTriggerRequest()) - ->setParent($formattedParent) - ->setTrigger($trigger) - ->setTriggerId($triggerId); - $response = $gapicClient->createTrigger($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createTriggerTest'); - 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 deleteChannelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteChannelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $provider = 'provider-987494927'; - $pubsubTopic = 'pubsubTopic-338126829'; - $activationToken = 'activationToken1250030992'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $satisfiesPzs = false; - $expectedResponse = new Channel(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setProvider($provider); - $expectedResponse->setPubsubTopic($pubsubTopic); - $expectedResponse->setActivationToken($activationToken); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteChannelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->channelName('[PROJECT]', '[LOCATION]', '[CHANNEL]'); - $request = (new DeleteChannelRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteChannel($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.eventarc.v1.Eventarc/DeleteChannel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteChannelTest'); - $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 deleteChannelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteChannelTest'); - $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->channelName('[PROJECT]', '[LOCATION]', '[CHANNEL]'); - $request = (new DeleteChannelRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteChannel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteChannelTest'); - 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 deleteChannelConnectionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteChannelConnectionTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $channel = 'channel738950403'; - $activationToken = 'activationToken1250030992'; - $expectedResponse = new ChannelConnection(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setChannel($channel); - $expectedResponse->setActivationToken($activationToken); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteChannelConnectionTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->channelConnectionName('[PROJECT]', '[LOCATION]', '[CHANNEL_CONNECTION]'); - $request = (new DeleteChannelConnectionRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteChannelConnection($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.eventarc.v1.Eventarc/DeleteChannelConnection', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteChannelConnectionTest'); - $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 deleteChannelConnectionExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteChannelConnectionTest'); - $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->channelConnectionName('[PROJECT]', '[LOCATION]', '[CHANNEL_CONNECTION]'); - $request = (new DeleteChannelConnectionRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteChannelConnection($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteChannelConnectionTest'); - 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 deleteEnrollmentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteEnrollmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $etag2 = 'etag2-1293302904'; - $displayName = 'displayName1615086568'; - $celMatch = 'celMatch1270406544'; - $messageBus = 'messageBus-872787384'; - $destination = 'destination-1429847026'; - $expectedResponse = new Enrollment(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCelMatch($celMatch); - $expectedResponse->setMessageBus($messageBus); - $expectedResponse->setDestination($destination); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteEnrollmentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->enrollmentName('[PROJECT]', '[LOCATION]', '[ENROLLMENT]'); - $request = (new DeleteEnrollmentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEnrollment($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.eventarc.v1.Eventarc/DeleteEnrollment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteEnrollmentTest'); - $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 deleteEnrollmentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteEnrollmentTest'); - $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->enrollmentName('[PROJECT]', '[LOCATION]', '[ENROLLMENT]'); - $request = (new DeleteEnrollmentRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteEnrollment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteEnrollmentTest'); - 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 deleteGoogleApiSourceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteGoogleApiSourceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $etag2 = 'etag2-1293302904'; - $displayName = 'displayName1615086568'; - $destination = 'destination-1429847026'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $expectedResponse = new GoogleApiSource(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDestination($destination); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteGoogleApiSourceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->googleApiSourceName('[PROJECT]', '[LOCATION]', '[GOOGLE_API_SOURCE]'); - $request = (new DeleteGoogleApiSourceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteGoogleApiSource($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.eventarc.v1.Eventarc/DeleteGoogleApiSource', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteGoogleApiSourceTest'); - $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 deleteGoogleApiSourceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteGoogleApiSourceTest'); - $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->googleApiSourceName('[PROJECT]', '[LOCATION]', '[GOOGLE_API_SOURCE]'); - $request = (new DeleteGoogleApiSourceRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteGoogleApiSource($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteGoogleApiSourceTest'); - 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 deleteMessageBusTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteMessageBusTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $etag2 = 'etag2-1293302904'; - $displayName = 'displayName1615086568'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $expectedResponse = new MessageBus(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag2); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteMessageBusTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $request = (new DeleteMessageBusRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteMessageBus($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.eventarc.v1.Eventarc/DeleteMessageBus', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteMessageBusTest'); - $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 deleteMessageBusExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteMessageBusTest'); - $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->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $request = (new DeleteMessageBusRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteMessageBus($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteMessageBusTest'); - 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 deletePipelineTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deletePipelineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $etag2 = 'etag2-1293302904'; - $expectedResponse = new Pipeline(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $expectedResponse->setEtag($etag2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deletePipelineTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->pipelineName('[PROJECT]', '[LOCATION]', '[PIPELINE]'); - $request = (new DeletePipelineRequest()) - ->setName($formattedName); - $response = $gapicClient->deletePipeline($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.eventarc.v1.Eventarc/DeletePipeline', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deletePipelineTest'); - $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 deletePipelineExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deletePipelineTest'); - $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->pipelineName('[PROJECT]', '[LOCATION]', '[PIPELINE]'); - $request = (new DeletePipelineRequest()) - ->setName($formattedName); - $response = $gapicClient->deletePipeline($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deletePipelineTest'); - 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 deleteTriggerTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteTriggerTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $serviceAccount = 'serviceAccount-1948028253'; - $channel = 'channel738950403'; - $eventDataContentType = 'eventDataContentType-440836272'; - $satisfiesPzs = false; - $etag2 = 'etag2-1293302904'; - $expectedResponse = new Trigger(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setChannel($channel); - $expectedResponse->setEventDataContentType($eventDataContentType); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setEtag($etag2); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/deleteTriggerTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedName = $gapicClient->triggerName('[PROJECT]', '[LOCATION]', '[TRIGGER]'); - $request = (new DeleteTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteTrigger($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.eventarc.v1.Eventarc/DeleteTrigger', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteTriggerTest'); - $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 deleteTriggerExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/deleteTriggerTest'); - $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->triggerName('[PROJECT]', '[LOCATION]', '[TRIGGER]'); - $request = (new DeleteTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->deleteTrigger($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/deleteTriggerTest'); - 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 getChannelTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $provider = 'provider-987494927'; - $pubsubTopic = 'pubsubTopic-338126829'; - $activationToken = 'activationToken1250030992'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $satisfiesPzs = false; - $expectedResponse = new Channel(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setProvider($provider); - $expectedResponse->setPubsubTopic($pubsubTopic); - $expectedResponse->setActivationToken($activationToken); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->channelName('[PROJECT]', '[LOCATION]', '[CHANNEL]'); - $request = (new GetChannelRequest()) - ->setName($formattedName); - $response = $gapicClient->getChannel($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.eventarc.v1.Eventarc/GetChannel', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getChannelExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->channelName('[PROJECT]', '[LOCATION]', '[CHANNEL]'); - $request = (new GetChannelRequest()) - ->setName($formattedName); - try { - $gapicClient->getChannel($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getChannelConnectionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $channel = 'channel738950403'; - $activationToken = 'activationToken1250030992'; - $expectedResponse = new ChannelConnection(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setChannel($channel); - $expectedResponse->setActivationToken($activationToken); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->channelConnectionName('[PROJECT]', '[LOCATION]', '[CHANNEL_CONNECTION]'); - $request = (new GetChannelConnectionRequest()) - ->setName($formattedName); - $response = $gapicClient->getChannelConnection($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.eventarc.v1.Eventarc/GetChannelConnection', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getChannelConnectionExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->channelConnectionName('[PROJECT]', '[LOCATION]', '[CHANNEL_CONNECTION]'); - $request = (new GetChannelConnectionRequest()) - ->setName($formattedName); - try { - $gapicClient->getChannelConnection($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEnrollmentTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $displayName = 'displayName1615086568'; - $celMatch = 'celMatch1270406544'; - $messageBus = 'messageBus-872787384'; - $destination = 'destination-1429847026'; - $expectedResponse = new Enrollment(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCelMatch($celMatch); - $expectedResponse->setMessageBus($messageBus); - $expectedResponse->setDestination($destination); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->enrollmentName('[PROJECT]', '[LOCATION]', '[ENROLLMENT]'); - $request = (new GetEnrollmentRequest()) - ->setName($formattedName); - $response = $gapicClient->getEnrollment($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.eventarc.v1.Eventarc/GetEnrollment', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getEnrollmentExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->enrollmentName('[PROJECT]', '[LOCATION]', '[ENROLLMENT]'); - $request = (new GetEnrollmentRequest()) - ->setName($formattedName); - try { - $gapicClient->getEnrollment($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleApiSourceTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $displayName = 'displayName1615086568'; - $destination = 'destination-1429847026'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $expectedResponse = new GoogleApiSource(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDestination($destination); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleApiSourceName('[PROJECT]', '[LOCATION]', '[GOOGLE_API_SOURCE]'); - $request = (new GetGoogleApiSourceRequest()) - ->setName($formattedName); - $response = $gapicClient->getGoogleApiSource($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.eventarc.v1.Eventarc/GetGoogleApiSource', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleApiSourceExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleApiSourceName('[PROJECT]', '[LOCATION]', '[GOOGLE_API_SOURCE]'); - $request = (new GetGoogleApiSourceRequest()) - ->setName($formattedName); - try { - $gapicClient->getGoogleApiSource($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleChannelConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $expectedResponse = new GoogleChannelConfig(); - $expectedResponse->setName($name2); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->googleChannelConfigName('[PROJECT]', '[LOCATION]'); - $request = (new GetGoogleChannelConfigRequest()) - ->setName($formattedName); - $response = $gapicClient->getGoogleChannelConfig($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.eventarc.v1.Eventarc/GetGoogleChannelConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getGoogleChannelConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->googleChannelConfigName('[PROJECT]', '[LOCATION]'); - $request = (new GetGoogleChannelConfigRequest()) - ->setName($formattedName); - try { - $gapicClient->getGoogleChannelConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMessageBusTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $displayName = 'displayName1615086568'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $expectedResponse = new MessageBus(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $request = (new GetMessageBusRequest()) - ->setName($formattedName); - $response = $gapicClient->getMessageBus($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.eventarc.v1.Eventarc/GetMessageBus', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getMessageBusExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $request = (new GetMessageBusRequest()) - ->setName($formattedName); - try { - $gapicClient->getMessageBus($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPipelineTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $etag = 'etag3123477'; - $expectedResponse = new Pipeline(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->pipelineName('[PROJECT]', '[LOCATION]', '[PIPELINE]'); - $request = (new GetPipelineRequest()) - ->setName($formattedName); - $response = $gapicClient->getPipeline($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.eventarc.v1.Eventarc/GetPipeline', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getPipelineExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->pipelineName('[PROJECT]', '[LOCATION]', '[PIPELINE]'); - $request = (new GetPipelineRequest()) - ->setName($formattedName); - try { - $gapicClient->getPipeline($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProviderTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $displayName = 'displayName1615086568'; - $expectedResponse = new Provider(); - $expectedResponse->setName($name2); - $expectedResponse->setDisplayName($displayName); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->providerName('[PROJECT]', '[LOCATION]', '[PROVIDER]'); - $request = (new GetProviderRequest()) - ->setName($formattedName); - $response = $gapicClient->getProvider($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.eventarc.v1.Eventarc/GetProvider', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getProviderExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->providerName('[PROJECT]', '[LOCATION]', '[PROVIDER]'); - $request = (new GetProviderRequest()) - ->setName($formattedName); - try { - $gapicClient->getProvider($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTriggerTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name2 = 'name2-1052831874'; - $uid = 'uid115792'; - $serviceAccount = 'serviceAccount-1948028253'; - $channel = 'channel738950403'; - $eventDataContentType = 'eventDataContentType-440836272'; - $satisfiesPzs = false; - $etag = 'etag3123477'; - $expectedResponse = new Trigger(); - $expectedResponse->setName($name2); - $expectedResponse->setUid($uid); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setChannel($channel); - $expectedResponse->setEventDataContentType($eventDataContentType); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setEtag($etag); - $transport->addResponse($expectedResponse); - // Mock request - $formattedName = $gapicClient->triggerName('[PROJECT]', '[LOCATION]', '[TRIGGER]'); - $request = (new GetTriggerRequest()) - ->setName($formattedName); - $response = $gapicClient->getTrigger($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.eventarc.v1.Eventarc/GetTrigger', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function getTriggerExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedName = $gapicClient->triggerName('[PROJECT]', '[LOCATION]', '[TRIGGER]'); - $request = (new GetTriggerRequest()) - ->setName($formattedName); - try { - $gapicClient->getTrigger($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listChannelConnectionsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $channelConnectionsElement = new ChannelConnection(); - $channelConnections = [ - $channelConnectionsElement, - ]; - $expectedResponse = new ListChannelConnectionsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChannelConnections($channelConnections); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListChannelConnectionsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listChannelConnections($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChannelConnections()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.eventarc.v1.Eventarc/ListChannelConnections', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listChannelConnectionsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListChannelConnectionsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listChannelConnections($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listChannelsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $channelsElement = new Channel(); - $channels = [ - $channelsElement, - ]; - $expectedResponse = new ListChannelsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setChannels($channels); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListChannelsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listChannels($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getChannels()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.eventarc.v1.Eventarc/ListChannels', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listChannelsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListChannelsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listChannels($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEnrollmentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $enrollmentsElement = new Enrollment(); - $enrollments = [ - $enrollmentsElement, - ]; - $expectedResponse = new ListEnrollmentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEnrollments($enrollments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListEnrollmentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listEnrollments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEnrollments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.eventarc.v1.Eventarc/ListEnrollments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listEnrollmentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListEnrollmentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listEnrollments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleApiSourcesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $googleApiSourcesElement = new GoogleApiSource(); - $googleApiSources = [ - $googleApiSourcesElement, - ]; - $expectedResponse = new ListGoogleApiSourcesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setGoogleApiSources($googleApiSources); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListGoogleApiSourcesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listGoogleApiSources($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getGoogleApiSources()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.eventarc.v1.Eventarc/ListGoogleApiSources', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listGoogleApiSourcesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListGoogleApiSourcesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listGoogleApiSources($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMessageBusEnrollmentsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $enrollmentsElement = 'enrollmentsElement-1920310100'; - $enrollments = [ - $enrollmentsElement, - ]; - $expectedResponse = new ListMessageBusEnrollmentsResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setEnrollments($enrollments); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $request = (new ListMessageBusEnrollmentsRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMessageBusEnrollments($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getEnrollments()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.eventarc.v1.Eventarc/ListMessageBusEnrollments', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMessageBusEnrollmentsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $formattedParent = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $request = (new ListMessageBusEnrollmentsRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMessageBusEnrollments($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMessageBusesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $messageBusesElement = new MessageBus(); - $messageBuses = [ - $messageBusesElement, - ]; - $expectedResponse = new ListMessageBusesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setMessageBuses($messageBuses); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListMessageBusesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listMessageBuses($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getMessageBuses()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.eventarc.v1.Eventarc/ListMessageBuses', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listMessageBusesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListMessageBusesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listMessageBuses($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPipelinesTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $pipelinesElement = new Pipeline(); - $pipelines = [ - $pipelinesElement, - ]; - $expectedResponse = new ListPipelinesResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setPipelines($pipelines); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListPipelinesRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listPipelines($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getPipelines()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.eventarc.v1.Eventarc/ListPipelines', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listPipelinesExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListPipelinesRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listPipelines($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProvidersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $providersElement = new Provider(); - $providers = [ - $providersElement, - ]; - $expectedResponse = new ListProvidersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setProviders($providers); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListProvidersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listProviders($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getProviders()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.eventarc.v1.Eventarc/ListProviders', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listProvidersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListProvidersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listProviders($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTriggersTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $nextPageToken = ''; - $triggersElement = new Trigger(); - $triggers = [ - $triggersElement, - ]; - $expectedResponse = new ListTriggersResponse(); - $expectedResponse->setNextPageToken($nextPageToken); - $expectedResponse->setTriggers($triggers); - $transport->addResponse($expectedResponse); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $request = (new ListTriggersRequest()) - ->setParent($formattedParent); - $response = $gapicClient->listTriggers($request); - $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); - $resources = iterator_to_array($response->iterateAllElements()); - $this->assertSame(1, count($resources)); - $this->assertEquals($expectedResponse->getTriggers()[0], $resources[0]); - $actualRequests = $transport->popReceivedCalls(); - $this->assertSame(1, count($actualRequests)); - $actualFuncCall = $actualRequests[0]->getFuncCall(); - $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.cloud.eventarc.v1.Eventarc/ListTriggers', $actualFuncCall); - $actualValue = $actualRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function listTriggersExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = 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 ListTriggersRequest()) - ->setParent($formattedParent); - try { - $gapicClient->listTriggers($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateChannelTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateChannelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $provider = 'provider-987494927'; - $pubsubTopic = 'pubsubTopic-338126829'; - $activationToken = 'activationToken1250030992'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $satisfiesPzs = false; - $expectedResponse = new Channel(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setProvider($provider); - $expectedResponse->setPubsubTopic($pubsubTopic); - $expectedResponse->setActivationToken($activationToken); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateChannelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new UpdateChannelRequest(); - $response = $gapicClient->updateChannel($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.eventarc.v1.Eventarc/UpdateChannel', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateChannelTest'); - $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 updateChannelExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateChannelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new UpdateChannelRequest(); - $response = $gapicClient->updateChannel($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateChannelTest'); - 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 updateEnrollmentTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateEnrollmentTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $displayName = 'displayName1615086568'; - $celMatch = 'celMatch1270406544'; - $messageBus = 'messageBus-872787384'; - $destination = 'destination-1429847026'; - $expectedResponse = new Enrollment(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCelMatch($celMatch); - $expectedResponse->setMessageBus($messageBus); - $expectedResponse->setDestination($destination); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateEnrollmentTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $enrollment = new Enrollment(); - $enrollmentCelMatch = 'enrollmentCelMatch2137295551'; - $enrollment->setCelMatch($enrollmentCelMatch); - $enrollmentMessageBus = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $enrollment->setMessageBus($enrollmentMessageBus); - $enrollmentDestination = 'enrollmentDestination-400605590'; - $enrollment->setDestination($enrollmentDestination); - $request = (new UpdateEnrollmentRequest()) - ->setEnrollment($enrollment); - $response = $gapicClient->updateEnrollment($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.eventarc.v1.Eventarc/UpdateEnrollment', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getEnrollment(); - $this->assertProtobufEquals($enrollment, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateEnrollmentTest'); - $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 updateEnrollmentExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateEnrollmentTest'); - $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 - $enrollment = new Enrollment(); - $enrollmentCelMatch = 'enrollmentCelMatch2137295551'; - $enrollment->setCelMatch($enrollmentCelMatch); - $enrollmentMessageBus = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $enrollment->setMessageBus($enrollmentMessageBus); - $enrollmentDestination = 'enrollmentDestination-400605590'; - $enrollment->setDestination($enrollmentDestination); - $request = (new UpdateEnrollmentRequest()) - ->setEnrollment($enrollment); - $response = $gapicClient->updateEnrollment($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateEnrollmentTest'); - 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 updateGoogleApiSourceTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateGoogleApiSourceTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $displayName = 'displayName1615086568'; - $destination = 'destination-1429847026'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $expectedResponse = new GoogleApiSource(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setDestination($destination); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateGoogleApiSourceTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $googleApiSource = new GoogleApiSource(); - $googleApiSourceDestination = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $googleApiSource->setDestination($googleApiSourceDestination); - $request = (new UpdateGoogleApiSourceRequest()) - ->setGoogleApiSource($googleApiSource); - $response = $gapicClient->updateGoogleApiSource($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.eventarc.v1.Eventarc/UpdateGoogleApiSource', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getGoogleApiSource(); - $this->assertProtobufEquals($googleApiSource, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateGoogleApiSourceTest'); - $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 updateGoogleApiSourceExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateGoogleApiSourceTest'); - $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 - $googleApiSource = new GoogleApiSource(); - $googleApiSourceDestination = $gapicClient->messageBusName('[PROJECT]', '[LOCATION]', '[MESSAGE_BUS]'); - $googleApiSource->setDestination($googleApiSourceDestination); - $request = (new UpdateGoogleApiSourceRequest()) - ->setGoogleApiSource($googleApiSource); - $response = $gapicClient->updateGoogleApiSource($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateGoogleApiSourceTest'); - 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 updateGoogleChannelConfigTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $name = 'name3373707'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $expectedResponse = new GoogleChannelConfig(); - $expectedResponse->setName($name); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $transport->addResponse($expectedResponse); - // Mock request - $googleChannelConfig = new GoogleChannelConfig(); - $googleChannelConfigName = 'googleChannelConfigName-13357801'; - $googleChannelConfig->setName($googleChannelConfigName); - $request = (new UpdateGoogleChannelConfigRequest()) - ->setGoogleChannelConfig($googleChannelConfig); - $response = $gapicClient->updateGoogleChannelConfig($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.eventarc.v1.Eventarc/UpdateGoogleChannelConfig', $actualFuncCall); - $actualValue = $actualRequestObject->getGoogleChannelConfig(); - $this->assertProtobufEquals($googleChannelConfig, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateGoogleChannelConfigExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $googleChannelConfig = new GoogleChannelConfig(); - $googleChannelConfigName = 'googleChannelConfigName-13357801'; - $googleChannelConfig->setName($googleChannelConfigName); - $request = (new UpdateGoogleChannelConfigRequest()) - ->setGoogleChannelConfig($googleChannelConfig); - try { - $gapicClient->updateGoogleChannelConfig($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function updateMessageBusTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateMessageBusTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $etag = 'etag3123477'; - $displayName = 'displayName1615086568'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $expectedResponse = new MessageBus(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setEtag($etag); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateMessageBusTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $messageBus = new MessageBus(); - $request = (new UpdateMessageBusRequest()) - ->setMessageBus($messageBus); - $response = $gapicClient->updateMessageBus($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.eventarc.v1.Eventarc/UpdateMessageBus', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getMessageBus(); - $this->assertProtobufEquals($messageBus, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMessageBusTest'); - $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 updateMessageBusExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateMessageBusTest'); - $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 - $messageBus = new MessageBus(); - $request = (new UpdateMessageBusRequest()) - ->setMessageBus($messageBus); - $response = $gapicClient->updateMessageBus($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateMessageBusTest'); - 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 updatePipelineTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updatePipelineTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $displayName = 'displayName1615086568'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $etag = 'etag3123477'; - $expectedResponse = new Pipeline(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setDisplayName($displayName); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updatePipelineTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $pipeline = new Pipeline(); - $pipelineDestinations = []; - $pipeline->setDestinations($pipelineDestinations); - $request = (new UpdatePipelineRequest()) - ->setPipeline($pipeline); - $response = $gapicClient->updatePipeline($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.eventarc.v1.Eventarc/UpdatePipeline', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getPipeline(); - $this->assertProtobufEquals($pipeline, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updatePipelineTest'); - $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 updatePipelineExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updatePipelineTest'); - $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 - $pipeline = new Pipeline(); - $pipelineDestinations = []; - $pipeline->setDestinations($pipelineDestinations); - $request = (new UpdatePipelineRequest()) - ->setPipeline($pipeline); - $response = $gapicClient->updatePipeline($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updatePipelineTest'); - 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 updateTriggerTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateTriggerTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $serviceAccount = 'serviceAccount-1948028253'; - $channel = 'channel738950403'; - $eventDataContentType = 'eventDataContentType-440836272'; - $satisfiesPzs = false; - $etag = 'etag3123477'; - $expectedResponse = new Trigger(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setServiceAccount($serviceAccount); - $expectedResponse->setChannel($channel); - $expectedResponse->setEventDataContentType($eventDataContentType); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $expectedResponse->setEtag($etag); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/updateTriggerTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - $request = new UpdateTriggerRequest(); - $response = $gapicClient->updateTrigger($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.eventarc.v1.Eventarc/UpdateTrigger', $actualApiFuncCall); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateTriggerTest'); - $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 updateTriggerExceptionTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/updateTriggerTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $operationsTransport->addResponse(null, $status); - $request = new UpdateTriggerRequest(); - $response = $gapicClient->updateTrigger($request); - $this->assertFalse($response->isDone()); - $this->assertNull($response->getResult()); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/updateTriggerTest'); - 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 createChannelAsyncTest() - { - $operationsTransport = $this->createTransport(); - $operationsClient = new OperationsClient([ - 'apiEndpoint' => '', - 'transport' => $operationsTransport, - 'credentials' => $this->createCredentials(), - ]); - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - 'operationsClient' => $operationsClient, - ]); - $this->assertTrue($transport->isExhausted()); - $this->assertTrue($operationsTransport->isExhausted()); - // Mock response - $incompleteOperation = new Operation(); - $incompleteOperation->setName('operations/createChannelTest'); - $incompleteOperation->setDone(false); - $transport->addResponse($incompleteOperation); - $name = 'name3373707'; - $uid = 'uid115792'; - $provider = 'provider-987494927'; - $pubsubTopic = 'pubsubTopic-338126829'; - $activationToken = 'activationToken1250030992'; - $cryptoKeyName = 'cryptoKeyName-184663511'; - $satisfiesPzs = false; - $expectedResponse = new Channel(); - $expectedResponse->setName($name); - $expectedResponse->setUid($uid); - $expectedResponse->setProvider($provider); - $expectedResponse->setPubsubTopic($pubsubTopic); - $expectedResponse->setActivationToken($activationToken); - $expectedResponse->setCryptoKeyName($cryptoKeyName); - $expectedResponse->setSatisfiesPzs($satisfiesPzs); - $anyResponse = new Any(); - $anyResponse->setValue($expectedResponse->serializeToString()); - $completeOperation = new Operation(); - $completeOperation->setName('operations/createChannelTest'); - $completeOperation->setDone(true); - $completeOperation->setResponse($anyResponse); - $operationsTransport->addResponse($completeOperation); - // Mock request - $formattedParent = $gapicClient->locationName('[PROJECT]', '[LOCATION]'); - $channel = new Channel(); - $channelName = 'channelName273953326'; - $channel->setName($channelName); - $channelId = 'channelId-1930808873'; - $request = (new CreateChannelRequest()) - ->setParent($formattedParent) - ->setChannel($channel) - ->setChannelId($channelId); - $response = $gapicClient->createChannelAsync($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.eventarc.v1.Eventarc/CreateChannel', $actualApiFuncCall); - $actualValue = $actualApiRequestObject->getParent(); - $this->assertProtobufEquals($formattedParent, $actualValue); - $actualValue = $actualApiRequestObject->getChannel(); - $this->assertProtobufEquals($channel, $actualValue); - $actualValue = $actualApiRequestObject->getChannelId(); - $this->assertProtobufEquals($channelId, $actualValue); - $expectedOperationsRequestObject = new GetOperationRequest(); - $expectedOperationsRequestObject->setName('operations/createChannelTest'); - $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/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php deleted file mode 100644 index 406503720aea215b68f9c84e521a5e22b53b598a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1805 zcmbVM&2AG(5XMeol5(Uh1BZz(Gz2L|g0bw?N~;M0*_+^SfcOxF6&lHEkIPPLCq1K{ z9t#uYQFs9!g)1+>nO9&B^p9u8A^{%1-;-y_Spqwxj~oS+I3}Yxk!MH} z5z9D?BQnY+6BHzj&l47*@CZ3LCa;c9$l<|@lY8oD8fPLzpG@O;8euDp;%wZ)8FEQQ z*h;cd#L_dyr>$ArCWj{JnHvB&J;yYmA(H-}_Yx%?Q%Qrq0So@oV8P)6EEp7E!D)LB zAdG055>sSq-~x#HnL9(0N-9}M9vX~Qn;FyQl zd`K*&u6>ZiijaMhcQ?=+DSm<%T%zDK3Jx$01xsWs2CCHerzi_%b)@-lajk}96VkLj z`u>$B_lXo4F5gawK$!`?XZqFvm&I3b4R_sy1*Bvbe>+<<; zoH}7@rIMZ}*Pk^sK7Ps;q;<#Rf}`h3V$EVIJ>xFCUx&YbOIyy4J?0rndbuRMQj*@R z-Pm4W8#$_FwkV%lZ8q+HpOX1tw&4E%s{p0?oGqxbv0EXP=0oL&aLZPTPEKi*p>s#QVH}Rs%RtHvbL;938`b)lqA=90spxIkP_?Pzf=?}JD(Jwv z2AFGdG;5nG_6O8dEE7!8rB+b@s>o2_#7wHA9oSTL#ZFy4XT8(7GE5=oqZ_>%tm<_% zE?}z|B{ifvby)ci=XU+hYgn7<2~GF)&QT8fGbt`_>_?3G)xRsc3B9u3*9ru?%9wuz zyth?Cn&&;Jyy@F+axul{t!aF%bJK(=^Df^_GTK}I^P#%aH-2p=@N&QQ28CaHr|pk< zRj{!2($|-bT{-)gYOreoecyEL`#GfVmzchP+8))6=KkC*OyiL?&LyAyp~sp^>x7qZ G3GfX(FF_Ch diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/Publisher.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/GPBMetadata/Google/Cloud/Eventarc/Publishing/V1/Publisher.php deleted file mode 100644 index e9952863ea7780af482e83d278a08511657aea58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2735 zcmb_ePj4GV6z@7HZ6^IAmO_J(VCsa%t=e6=fddmvWjn2tRuHQyK|)(uv+J=v)n;bd znRN(NIB?_K3!i}lpMi5v2)+OZPJ9GT%+8G0Zu6%}S|6<4nfHG0{ocQQpWjJ_30Q<} z!bplG>A`Rp${~SC$|a9@48yG7Cn=2hc0yy4dJwK{!ml*ql%(J(fa<3WMo>sBX#|(3=u$={#WDRsv8%&Ajs;QL`(^tX zizMX?<_eoEBGv2AVCJ$*30Kjm!?AOnJU}Wq!3L8gWjGGjh=@{}NS=0-C_)1wi?HS= z)$7)54oCa2YJ5a!pObYc(~L}8hcG2FOWCUSI|tY+o`M5H*GOp4V2tNc;7lMi;WU9b zOtBSHmA#Yc+@mD!HOUZ8J8XQy2X_ zBi+!Z#0q?{Pk^ex+sjYw<&iC{FT2_?tM`V(oLDHqndx zX*?4PGfH%>QU%vuWnUz!KS(76m#yTBj$Hz0tz)n6%@y$OOE#?W-yCq!-i!mX0Or+X z6nH?oVJ3|2=FH!XlDiHr=ty_%y^4yXqT-LEa#ZDbt$d_vhU;hC_rUolg0li>CJ(nc z$D@=N=WnU=^Xq4t=fG^Ar`uRo-UgQne+`G*&t}1#JtL|6O9^~v-ww&Vd;eGt9}Qxo zRetbBuxvIS|Mb^C&r07^9_C-Hr~AvYuEPIB6|wMd_%V;ngjLU0a#G?-U=Jnct7WPR zIXB!t9B{$1GKcPGC-MG;@+_m%s9K)unrE|8pXT`ratBlT-2rDUC3oc{9*y(&$;p%~ zf%}@kTIG%=Fx4)Hk+34oOps|JDl6r$pEs@&yJ^^zsh!2TrRJ>g)CTlt!y8JO2;}=a zJ3B93`Z$wAv;N#lVl4AkY5wPcU|DG%hhK9%14ybrM;+(ewrOTN?-Y(d;0Nwj%EQTe zr5sPf)d`Cv{I#^$);pCM0G=))wVru4YdO`e+VingU{|ln?lrx9sqO3EQm||Q5z-?C np)n*v6HJ7*YT>M&Rx8WJ2lA%bZl;!@Ll+?}X%?0}um`~ZMMSVP diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php deleted file mode 100644 index 59178671d8c9..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent.php +++ /dev/null @@ -1,328 +0,0 @@ -google.cloud.eventarc.publishing.v1.CloudEvent - */ -class CloudEvent extends \Google\Protobuf\Internal\Message -{ - /** - * Required. Identifies the event. Producers MUST ensure that source + id is - * unique for each distinct event. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $id = ''; - /** - * Required. Identifies the context in which an event happened. - * URI-reference - * - * Generated from protobuf field string source = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $source = ''; - /** - * Required. The version of the CloudEvents specification which the event - * uses. - * - * Generated from protobuf field string spec_version = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $spec_version = ''; - /** - * Required. This attribute contains a value describing the type of event - * related to the originating occurrence. - * - * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $type = ''; - /** - * Optional. Used for Optional & Extension Attributes - * - * Generated from protobuf field map attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private $attributes; - protected $data; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $id - * Required. Identifies the event. Producers MUST ensure that source + id is - * unique for each distinct event. - * @type string $source - * Required. Identifies the context in which an event happened. - * URI-reference - * @type string $spec_version - * Required. The version of the CloudEvents specification which the event - * uses. - * @type string $type - * Required. This attribute contains a value describing the type of event - * related to the originating occurrence. - * @type array|\Google\Protobuf\Internal\MapField $attributes - * Optional. Used for Optional & Extension Attributes - * @type string $binary_data - * Optional. Binary data. - * @type string $text_data - * Optional. Text data. - * @type \Google\Protobuf\Any $proto_data - * Optional. Proto data. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\CloudEvent::initOnce(); - parent::__construct($data); - } - - /** - * Required. Identifies the event. Producers MUST ensure that source + id is - * unique for each distinct event. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getId() - { - return $this->id; - } - - /** - * Required. Identifies the event. Producers MUST ensure that source + id is - * unique for each distinct event. - * - * Generated from protobuf field string id = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setId($var) - { - GPBUtil::checkString($var, True); - $this->id = $var; - - return $this; - } - - /** - * Required. Identifies the context in which an event happened. - * URI-reference - * - * Generated from protobuf field string source = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSource() - { - return $this->source; - } - - /** - * Required. Identifies the context in which an event happened. - * URI-reference - * - * Generated from protobuf field string source = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSource($var) - { - GPBUtil::checkString($var, True); - $this->source = $var; - - return $this; - } - - /** - * Required. The version of the CloudEvents specification which the event - * uses. - * - * Generated from protobuf field string spec_version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getSpecVersion() - { - return $this->spec_version; - } - - /** - * Required. The version of the CloudEvents specification which the event - * uses. - * - * Generated from protobuf field string spec_version = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setSpecVersion($var) - { - GPBUtil::checkString($var, True); - $this->spec_version = $var; - - return $this; - } - - /** - * Required. This attribute contains a value describing the type of event - * related to the originating occurrence. - * - * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getType() - { - return $this->type; - } - - /** - * Required. This attribute contains a value describing the type of event - * related to the originating occurrence. - * - * Generated from protobuf field string type = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setType($var) - { - GPBUtil::checkString($var, True); - $this->type = $var; - - return $this; - } - - /** - * Optional. Used for Optional & Extension Attributes - * - * Generated from protobuf field map attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Internal\MapField - */ - public function getAttributes() - { - return $this->attributes; - } - - /** - * Optional. Used for Optional & Extension Attributes - * - * Generated from protobuf field map attributes = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setAttributes($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Eventarc\Publishing\V1\CloudEvent\CloudEventAttributeValue::class); - $this->attributes = $arr; - - return $this; - } - - /** - * Optional. Binary data. - * - * Generated from protobuf field bytes binary_data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getBinaryData() - { - return $this->readOneof(6); - } - - public function hasBinaryData() - { - return $this->hasOneof(6); - } - - /** - * Optional. Binary data. - * - * Generated from protobuf field bytes binary_data = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setBinaryData($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Optional. Text data. - * - * Generated from protobuf field string text_data = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return string - */ - public function getTextData() - { - return $this->readOneof(7); - } - - public function hasTextData() - { - return $this->hasOneof(7); - } - - /** - * Optional. Text data. - * - * Generated from protobuf field string text_data = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param string $var - * @return $this - */ - public function setTextData($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * Optional. Proto data. - * - * Generated from protobuf field .google.protobuf.Any proto_data = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return \Google\Protobuf\Any|null - */ - public function getProtoData() - { - return $this->readOneof(8); - } - - public function hasProtoData() - { - return $this->hasOneof(8); - } - - /** - * Optional. Proto data. - * - * Generated from protobuf field .google.protobuf.Any proto_data = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param \Google\Protobuf\Any $var - * @return $this - */ - public function setProtoData($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); - $this->writeOneof(8, $var); - - return $this; - } - - /** - * @return string - */ - public function getData() - { - return $this->whichOneof("data"); - } - -} - diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent/CloudEventAttributeValue.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent/CloudEventAttributeValue.php deleted file mode 100644 index 3a83adbd311d..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/CloudEvent/CloudEventAttributeValue.php +++ /dev/null @@ -1,276 +0,0 @@ -google.cloud.eventarc.publishing.v1.CloudEvent.CloudEventAttributeValue - */ -class CloudEventAttributeValue extends \Google\Protobuf\Internal\Message -{ - protected $attr; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type bool $ce_boolean - * Boolean value. - * @type int $ce_integer - * Integer value. - * @type string $ce_string - * String value. - * @type string $ce_bytes - * Bytes value. - * @type string $ce_uri - * URI value. - * @type string $ce_uri_ref - * URI-reference value. - * @type \Google\Protobuf\Timestamp $ce_timestamp - * Timestamp value. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\CloudEvent::initOnce(); - parent::__construct($data); - } - - /** - * Boolean value. - * - * Generated from protobuf field bool ce_boolean = 1; - * @return bool - */ - public function getCeBoolean() - { - return $this->readOneof(1); - } - - public function hasCeBoolean() - { - return $this->hasOneof(1); - } - - /** - * Boolean value. - * - * Generated from protobuf field bool ce_boolean = 1; - * @param bool $var - * @return $this - */ - public function setCeBoolean($var) - { - GPBUtil::checkBool($var); - $this->writeOneof(1, $var); - - return $this; - } - - /** - * Integer value. - * - * Generated from protobuf field int32 ce_integer = 2; - * @return int - */ - public function getCeInteger() - { - return $this->readOneof(2); - } - - public function hasCeInteger() - { - return $this->hasOneof(2); - } - - /** - * Integer value. - * - * Generated from protobuf field int32 ce_integer = 2; - * @param int $var - * @return $this - */ - public function setCeInteger($var) - { - GPBUtil::checkInt32($var); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * String value. - * - * Generated from protobuf field string ce_string = 3; - * @return string - */ - public function getCeString() - { - return $this->readOneof(3); - } - - public function hasCeString() - { - return $this->hasOneof(3); - } - - /** - * String value. - * - * Generated from protobuf field string ce_string = 3; - * @param string $var - * @return $this - */ - public function setCeString($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * Bytes value. - * - * Generated from protobuf field bytes ce_bytes = 4; - * @return string - */ - public function getCeBytes() - { - return $this->readOneof(4); - } - - public function hasCeBytes() - { - return $this->hasOneof(4); - } - - /** - * Bytes value. - * - * Generated from protobuf field bytes ce_bytes = 4; - * @param string $var - * @return $this - */ - public function setCeBytes($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * URI value. - * - * Generated from protobuf field string ce_uri = 5; - * @return string - */ - public function getCeUri() - { - return $this->readOneof(5); - } - - public function hasCeUri() - { - return $this->hasOneof(5); - } - - /** - * URI value. - * - * Generated from protobuf field string ce_uri = 5; - * @param string $var - * @return $this - */ - public function setCeUri($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(5, $var); - - return $this; - } - - /** - * URI-reference value. - * - * Generated from protobuf field string ce_uri_ref = 6; - * @return string - */ - public function getCeUriRef() - { - return $this->readOneof(6); - } - - public function hasCeUriRef() - { - return $this->hasOneof(6); - } - - /** - * URI-reference value. - * - * Generated from protobuf field string ce_uri_ref = 6; - * @param string $var - * @return $this - */ - public function setCeUriRef($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(6, $var); - - return $this; - } - - /** - * Timestamp value. - * - * Generated from protobuf field .google.protobuf.Timestamp ce_timestamp = 7; - * @return \Google\Protobuf\Timestamp|null - */ - public function getCeTimestamp() - { - return $this->readOneof(7); - } - - public function hasCeTimestamp() - { - return $this->hasOneof(7); - } - - /** - * Timestamp value. - * - * Generated from protobuf field .google.protobuf.Timestamp ce_timestamp = 7; - * @param \Google\Protobuf\Timestamp $var - * @return $this - */ - public function setCeTimestamp($var) - { - GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); - $this->writeOneof(7, $var); - - return $this; - } - - /** - * @return string - */ - public function getAttr() - { - return $this->whichOneof("attr"); - } - -} - -// Adding a class alias for backwards compatibility with the previous class name. -class_alias(CloudEventAttributeValue::class, \Google\Cloud\Eventarc\Publishing\V1\CloudEvent_CloudEventAttributeValue::class); - diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsRequest.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsRequest.php deleted file mode 100644 index 79180267cebb..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - */ -class PublishChannelConnectionEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The channel_connection that the events are published from. For example: - * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`. - * - * Generated from protobuf field string channel_connection = 1; - */ - protected $channel_connection = ''; - /** - * The CloudEvents v1.0 events to publish. No other types are allowed. - * If this field is set, then the `text_events` fields must not be set. - * - * Generated from protobuf field repeated .google.protobuf.Any events = 2; - */ - private $events; - /** - * The text representation of events to publish. - * CloudEvent v1.0 in JSON format is the only allowed type. Refer to - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * for specification. - * If this field is set, then the `events` fields must not be set. - * - * Generated from protobuf field repeated string text_events = 3; - */ - private $text_events; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $channel_connection - * The channel_connection that the events are published from. For example: - * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`. - * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $events - * The CloudEvents v1.0 events to publish. No other types are allowed. - * If this field is set, then the `text_events` fields must not be set. - * @type array|\Google\Protobuf\Internal\RepeatedField $text_events - * The text representation of events to publish. - * CloudEvent v1.0 in JSON format is the only allowed type. Refer to - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * for specification. - * If this field is set, then the `events` fields must not be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce(); - parent::__construct($data); - } - - /** - * The channel_connection that the events are published from. For example: - * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`. - * - * Generated from protobuf field string channel_connection = 1; - * @return string - */ - public function getChannelConnection() - { - return $this->channel_connection; - } - - /** - * The channel_connection that the events are published from. For example: - * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`. - * - * Generated from protobuf field string channel_connection = 1; - * @param string $var - * @return $this - */ - public function setChannelConnection($var) - { - GPBUtil::checkString($var, True); - $this->channel_connection = $var; - - return $this; - } - - /** - * The CloudEvents v1.0 events to publish. No other types are allowed. - * If this field is set, then the `text_events` fields must not be set. - * - * Generated from protobuf field repeated .google.protobuf.Any events = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEvents() - { - return $this->events; - } - - /** - * The CloudEvents v1.0 events to publish. No other types are allowed. - * If this field is set, then the `text_events` fields must not be set. - * - * Generated from protobuf field repeated .google.protobuf.Any events = 2; - * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->events = $arr; - - return $this; - } - - /** - * The text representation of events to publish. - * CloudEvent v1.0 in JSON format is the only allowed type. Refer to - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * for specification. - * If this field is set, then the `events` fields must not be set. - * - * Generated from protobuf field repeated string text_events = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTextEvents() - { - return $this->text_events; - } - - /** - * The text representation of events to publish. - * CloudEvent v1.0 in JSON format is the only allowed type. Refer to - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * for specification. - * If this field is set, then the `events` fields must not be set. - * - * Generated from protobuf field repeated string text_events = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTextEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->text_events = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsResponse.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsResponse.php deleted file mode 100644 index 6a7494facfc6..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishChannelConnectionEventsResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - */ -class PublishChannelConnectionEventsResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsRequest.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsRequest.php deleted file mode 100644 index f5c6a6cfa164..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsRequest.php +++ /dev/null @@ -1,159 +0,0 @@ -google.cloud.eventarc.publishing.v1.PublishEventsRequest - */ -class PublishEventsRequest extends \Google\Protobuf\Internal\Message -{ - /** - * The full name of the channel to publish to. For example: - * `projects/{project}/locations/{location}/channels/{channel-id}`. - * - * Generated from protobuf field string channel = 1; - */ - protected $channel = ''; - /** - * The CloudEvents v1.0 events to publish. No other types are allowed. - * If this field is set, then the `text_events` fields must not be set. - * - * Generated from protobuf field repeated .google.protobuf.Any events = 2; - */ - private $events; - /** - * The text representation of events to publish. - * CloudEvent v1.0 in JSON format is the only allowed type. Refer to - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * for specification. - * If this field is set, then the `events` fields must not be set. - * - * Generated from protobuf field repeated string text_events = 3; - */ - private $text_events; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $channel - * The full name of the channel to publish to. For example: - * `projects/{project}/locations/{location}/channels/{channel-id}`. - * @type array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $events - * The CloudEvents v1.0 events to publish. No other types are allowed. - * If this field is set, then the `text_events` fields must not be set. - * @type array|\Google\Protobuf\Internal\RepeatedField $text_events - * The text representation of events to publish. - * CloudEvent v1.0 in JSON format is the only allowed type. Refer to - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * for specification. - * If this field is set, then the `events` fields must not be set. - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce(); - parent::__construct($data); - } - - /** - * The full name of the channel to publish to. For example: - * `projects/{project}/locations/{location}/channels/{channel-id}`. - * - * Generated from protobuf field string channel = 1; - * @return string - */ - public function getChannel() - { - return $this->channel; - } - - /** - * The full name of the channel to publish to. For example: - * `projects/{project}/locations/{location}/channels/{channel-id}`. - * - * Generated from protobuf field string channel = 1; - * @param string $var - * @return $this - */ - public function setChannel($var) - { - GPBUtil::checkString($var, True); - $this->channel = $var; - - return $this; - } - - /** - * The CloudEvents v1.0 events to publish. No other types are allowed. - * If this field is set, then the `text_events` fields must not be set. - * - * Generated from protobuf field repeated .google.protobuf.Any events = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getEvents() - { - return $this->events; - } - - /** - * The CloudEvents v1.0 events to publish. No other types are allowed. - * If this field is set, then the `text_events` fields must not be set. - * - * Generated from protobuf field repeated .google.protobuf.Any events = 2; - * @param array<\Google\Protobuf\Any>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Any::class); - $this->events = $arr; - - return $this; - } - - /** - * The text representation of events to publish. - * CloudEvent v1.0 in JSON format is the only allowed type. Refer to - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * for specification. - * If this field is set, then the `events` fields must not be set. - * - * Generated from protobuf field repeated string text_events = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getTextEvents() - { - return $this->text_events; - } - - /** - * The text representation of events to publish. - * CloudEvent v1.0 in JSON format is the only allowed type. Refer to - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * for specification. - * If this field is set, then the `events` fields must not be set. - * - * Generated from protobuf field repeated string text_events = 3; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setTextEvents($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->text_events = $arr; - - return $this; - } - -} - diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsResponse.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsResponse.php deleted file mode 100644 index 4291ac3bfd78..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishEventsResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.eventarc.publishing.v1.PublishEventsResponse - */ -class PublishEventsResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishRequest.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishRequest.php deleted file mode 100644 index ce20979caf11..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishRequest.php +++ /dev/null @@ -1,197 +0,0 @@ -google.cloud.eventarc.publishing.v1.PublishRequest - */ -class PublishRequest extends \Google\Protobuf\Internal\Message -{ - /** - * Required. The full name of the message bus to publish events to. Format: - * `projects/{project}/locations/{location}/messageBuses/{messageBus}`. - * - * Generated from protobuf field string message_bus = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - protected $message_bus = ''; - protected $format; - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * @type string $message_bus - * Required. The full name of the message bus to publish events to. Format: - * `projects/{project}/locations/{location}/messageBuses/{messageBus}`. - * @type \Google\Cloud\Eventarc\Publishing\V1\CloudEvent $proto_message - * The Protobuf format of the CloudEvent being published. Specification can - * be found here: - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md - * @type string $json_message - * The JSON format of the CloudEvent being published. Specification can be - * found here: - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * @type string $avro_message - * The Avro format of the CloudEvent being published. Specification can - * be found here: - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce(); - parent::__construct($data); - } - - /** - * Required. The full name of the message bus to publish events to. Format: - * `projects/{project}/locations/{location}/messageBuses/{messageBus}`. - * - * Generated from protobuf field string message_bus = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return string - */ - public function getMessageBus() - { - return $this->message_bus; - } - - /** - * Required. The full name of the message bus to publish events to. Format: - * `projects/{project}/locations/{location}/messageBuses/{messageBus}`. - * - * Generated from protobuf field string message_bus = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param string $var - * @return $this - */ - public function setMessageBus($var) - { - GPBUtil::checkString($var, True); - $this->message_bus = $var; - - return $this; - } - - /** - * The Protobuf format of the CloudEvent being published. Specification can - * be found here: - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md - * - * Generated from protobuf field .google.cloud.eventarc.publishing.v1.CloudEvent proto_message = 2; - * @return \Google\Cloud\Eventarc\Publishing\V1\CloudEvent|null - */ - public function getProtoMessage() - { - return $this->readOneof(2); - } - - public function hasProtoMessage() - { - return $this->hasOneof(2); - } - - /** - * The Protobuf format of the CloudEvent being published. Specification can - * be found here: - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md - * - * Generated from protobuf field .google.cloud.eventarc.publishing.v1.CloudEvent proto_message = 2; - * @param \Google\Cloud\Eventarc\Publishing\V1\CloudEvent $var - * @return $this - */ - public function setProtoMessage($var) - { - GPBUtil::checkMessage($var, \Google\Cloud\Eventarc\Publishing\V1\CloudEvent::class); - $this->writeOneof(2, $var); - - return $this; - } - - /** - * The JSON format of the CloudEvent being published. Specification can be - * found here: - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * - * Generated from protobuf field string json_message = 3; - * @return string - */ - public function getJsonMessage() - { - return $this->readOneof(3); - } - - public function hasJsonMessage() - { - return $this->hasOneof(3); - } - - /** - * The JSON format of the CloudEvent being published. Specification can be - * found here: - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md - * - * Generated from protobuf field string json_message = 3; - * @param string $var - * @return $this - */ - public function setJsonMessage($var) - { - GPBUtil::checkString($var, True); - $this->writeOneof(3, $var); - - return $this; - } - - /** - * The Avro format of the CloudEvent being published. Specification can - * be found here: - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md - * - * Generated from protobuf field bytes avro_message = 4; - * @return string - */ - public function getAvroMessage() - { - return $this->readOneof(4); - } - - public function hasAvroMessage() - { - return $this->hasOneof(4); - } - - /** - * The Avro format of the CloudEvent being published. Specification can - * be found here: - * https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md - * - * Generated from protobuf field bytes avro_message = 4; - * @param string $var - * @return $this - */ - public function setAvroMessage($var) - { - GPBUtil::checkString($var, False); - $this->writeOneof(4, $var); - - return $this; - } - - /** - * @return string - */ - public function getFormat() - { - return $this->whichOneof("format"); - } - -} - diff --git a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishResponse.php b/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishResponse.php deleted file mode 100644 index 76e083aea440..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/proto/src/Google/Cloud/Eventarc/Publishing/V1/PublishResponse.php +++ /dev/null @@ -1,33 +0,0 @@ -google.cloud.eventarc.publishing.v1.PublishResponse - */ -class PublishResponse extends \Google\Protobuf\Internal\Message -{ - - /** - * Constructor. - * - * @param array $data { - * Optional. Data for populating the Message object. - * - * } - */ - public function __construct($data = NULL) { - \GPBMetadata\Google\Cloud\Eventarc\Publishing\V1\Publisher::initOnce(); - parent::__construct($data); - } - -} - diff --git a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish.php b/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish.php deleted file mode 100644 index 80fce160f988..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish.php +++ /dev/null @@ -1,71 +0,0 @@ -setMessageBus($messageBus); - - // Call the API and handle any network failures. - try { - /** @var PublishResponse $response */ - $response = $publisherClient->publish($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} - -/** - * Helper to execute the sample. - * - * This sample has been automatically generated and should be regarded as a code - * template only. It will require modifications to work: - * - It may require correct/in-range values for request initialization. - * - It may require specifying regional endpoints when creating the service client, - * please see the apiEndpoint client configuration option for more details. - */ -function callSample(): void -{ - $messageBus = '[MESSAGE_BUS]'; - - publish_sample($messageBus); -} -// [END eventarcpublishing_v1_generated_Publisher_Publish_sync] diff --git a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_channel_connection_events.php b/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_channel_connection_events.php deleted file mode 100644 index db010040dcc7..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_channel_connection_events.php +++ /dev/null @@ -1,57 +0,0 @@ -publishChannelConnectionEvents($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END eventarcpublishing_v1_generated_Publisher_PublishChannelConnectionEvents_sync] diff --git a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_events.php b/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_events.php deleted file mode 100644 index 0aacdb5f12e3..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/samples/V1/PublisherClient/publish_events.php +++ /dev/null @@ -1,57 +0,0 @@ -publishEvents($request); - printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); - } catch (ApiException $ex) { - printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); - } -} -// [END eventarcpublishing_v1_generated_Publisher_PublishEvents_sync] diff --git a/owl-bot-staging/EventarcPublishing/v1/src/V1/Client/PublisherClient.php b/owl-bot-staging/EventarcPublishing/v1/src/V1/Client/PublisherClient.php deleted file mode 100644 index 0bc4216f3ccf..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/src/V1/Client/PublisherClient.php +++ /dev/null @@ -1,272 +0,0 @@ - publishAsync(PublishRequest $request, array $optionalArgs = []) - * @method PromiseInterface publishChannelConnectionEventsAsync(PublishChannelConnectionEventsRequest $request, array $optionalArgs = []) - * @method PromiseInterface publishEventsAsync(PublishEventsRequest $request, array $optionalArgs = []) - */ -final class PublisherClient -{ - use GapicClientTrait; - - /** The name of the service. */ - private const SERVICE_NAME = 'google.cloud.eventarc.publishing.v1.Publisher'; - - /** - * The default address of the service. - * - * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. - */ - private const SERVICE_ADDRESS = 'eventarcpublishing.googleapis.com'; - - /** The address template of the service. */ - private const SERVICE_ADDRESS_TEMPLATE = 'eventarcpublishing.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/publisher_client_config.json', - 'descriptorsConfigPath' => __DIR__ . '/../resources/publisher_descriptor_config.php', - 'gcpApiConfigPath' => __DIR__ . '/../resources/publisher_grpc_config.json', - 'credentialsConfig' => [ - 'defaultScopes' => self::$serviceScopes, - ], - 'transportConfig' => [ - 'rest' => [ - 'restClientConfigPath' => __DIR__ . '/../resources/publisher_rest_client_config.php', - ], - ], - ]; - } - - /** - * Constructor. - * - * @param array $options { - * Optional. Options for configuring the service API wrapper. - * - * @type string $apiEndpoint - * The address of the API remote host. May optionally include the port, formatted - * as ":". Default 'eventarcpublishing.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); - } - - /** - * Publish events to a message bus. - * - * The async variant is {@see PublisherClient::publishAsync()} . - * - * @example samples/V1/PublisherClient/publish.php - * - * @param PublishRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PublishResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function publish(PublishRequest $request, array $callOptions = []): PublishResponse - { - return $this->startApiCall('Publish', $request, $callOptions)->wait(); - } - - /** - * Publish events to a ChannelConnection in a partner's project. - * - * The async variant is - * {@see PublisherClient::publishChannelConnectionEventsAsync()} . - * - * @example samples/V1/PublisherClient/publish_channel_connection_events.php - * - * @param PublishChannelConnectionEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PublishChannelConnectionEventsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function publishChannelConnectionEvents(PublishChannelConnectionEventsRequest $request, array $callOptions = []): PublishChannelConnectionEventsResponse - { - return $this->startApiCall('PublishChannelConnectionEvents', $request, $callOptions)->wait(); - } - - /** - * Publish events to a subscriber's channel. - * - * The async variant is {@see PublisherClient::publishEventsAsync()} . - * - * @example samples/V1/PublisherClient/publish_events.php - * - * @param PublishEventsRequest $request A request to house fields associated with the call. - * @param array $callOptions { - * Optional. - * - * @type RetrySettings|array $retrySettings - * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an - * associative array of retry settings parameters. See the documentation on - * {@see RetrySettings} for example usage. - * } - * - * @return PublishEventsResponse - * - * @throws ApiException Thrown if the API call fails. - */ - public function publishEvents(PublishEventsRequest $request, array $callOptions = []): PublishEventsResponse - { - return $this->startApiCall('PublishEvents', $request, $callOptions)->wait(); - } -} diff --git a/owl-bot-staging/EventarcPublishing/v1/src/V1/gapic_metadata.json b/owl-bot-staging/EventarcPublishing/v1/src/V1/gapic_metadata.json deleted file mode 100644 index 8c15efbe6be4..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/src/V1/gapic_metadata.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services\/RPCs to the corresponding library clients\/methods", - "language": "php", - "protoPackage": "google.cloud.eventarc.publishing.v1", - "libraryPackage": "Google\\Cloud\\Eventarc\\Publishing\\V1", - "services": { - "Publisher": { - "clients": { - "grpc": { - "libraryClient": "PublisherGapicClient", - "rpcs": { - "Publish": { - "methods": [ - "publish" - ] - }, - "PublishChannelConnectionEvents": { - "methods": [ - "publishChannelConnectionEvents" - ] - }, - "PublishEvents": { - "methods": [ - "publishEvents" - ] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_client_config.json b/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_client_config.json deleted file mode 100644 index 8e360d5b8878..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_client_config.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "interfaces": { - "google.cloud.eventarc.publishing.v1.Publisher": { - "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": { - "Publish": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "PublishChannelConnectionEvents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_1_codes", - "retry_params_name": "no_retry_1_params" - }, - "PublishEvents": { - "timeout_millis": 60000, - "retry_codes_name": "no_retry_codes", - "retry_params_name": "no_retry_params" - } - } - } - } -} diff --git a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_descriptor_config.php b/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_descriptor_config.php deleted file mode 100644 index bff99c08e674..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_descriptor_config.php +++ /dev/null @@ -1,64 +0,0 @@ - [ - 'google.cloud.eventarc.publishing.v1.Publisher' => [ - 'Publish' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\Publishing\V1\PublishResponse', - 'headerParams' => [ - [ - 'keyName' => 'message_bus', - 'fieldAccessors' => [ - 'getMessageBus', - ], - ], - ], - ], - 'PublishChannelConnectionEvents' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\Publishing\V1\PublishChannelConnectionEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'channel_connection', - 'fieldAccessors' => [ - 'getChannelConnection', - ], - ], - ], - ], - 'PublishEvents' => [ - 'callType' => \Google\ApiCore\Call::UNARY_CALL, - 'responseType' => 'Google\Cloud\Eventarc\Publishing\V1\PublishEventsResponse', - 'headerParams' => [ - [ - 'keyName' => 'channel', - 'fieldAccessors' => [ - 'getChannel', - ], - ], - ], - ], - ], - ], -]; diff --git a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_rest_client_config.php b/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_rest_client_config.php deleted file mode 100644 index 5730c0aa7b57..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/src/V1/resources/publisher_rest_client_config.php +++ /dev/null @@ -1,65 +0,0 @@ - [ - 'google.cloud.eventarc.publishing.v1.Publisher' => [ - 'Publish' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{message_bus=projects/*/locations/*/messageBuses/*}:publish', - 'body' => '*', - 'placeholders' => [ - 'message_bus' => [ - 'getters' => [ - 'getMessageBus', - ], - ], - ], - ], - 'PublishChannelConnectionEvents' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{channel_connection=projects/*/locations/*/channelConnections/*}:publishEvents', - 'body' => '*', - 'placeholders' => [ - 'channel_connection' => [ - 'getters' => [ - 'getChannelConnection', - ], - ], - ], - ], - 'PublishEvents' => [ - 'method' => 'post', - 'uriTemplate' => '/v1/{channel=projects/*/locations/*/channels/*}:publishEvents', - 'body' => '*', - 'placeholders' => [ - 'channel' => [ - 'getters' => [ - 'getChannel', - ], - ], - ], - ], - ], - ], - 'numericEnums' => true, -]; diff --git a/owl-bot-staging/EventarcPublishing/v1/tests/Unit/V1/Client/PublisherClientTest.php b/owl-bot-staging/EventarcPublishing/v1/tests/Unit/V1/Client/PublisherClientTest.php deleted file mode 100644 index 95da35ac2278..000000000000 --- a/owl-bot-staging/EventarcPublishing/v1/tests/Unit/V1/Client/PublisherClientTest.php +++ /dev/null @@ -1,263 +0,0 @@ -getMockBuilder(CredentialsWrapper::class)->disableOriginalConstructor()->getMock(); - } - - /** @return PublisherClient */ - private function createClient(array $options = []) - { - $options += [ - 'credentials' => $this->createCredentials(), - ]; - return new PublisherClient($options); - } - - /** @test */ - public function publishTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PublishResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $messageBus = 'messageBus-872787384'; - $request = (new PublishRequest()) - ->setMessageBus($messageBus); - $response = $gapicClient->publish($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.eventarc.publishing.v1.Publisher/Publish', $actualFuncCall); - $actualValue = $actualRequestObject->getMessageBus(); - $this->assertProtobufEquals($messageBus, $actualValue); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function publishExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->details = 'internal error'; - $expectedExceptionMessage = json_encode([ - 'message' => 'internal error', - 'code' => Code::DATA_LOSS, - 'status' => 'DATA_LOSS', - 'details' => [], - ], JSON_PRETTY_PRINT); - $transport->addResponse(null, $status); - // Mock request - $messageBus = 'messageBus-872787384'; - $request = (new PublishRequest()) - ->setMessageBus($messageBus); - try { - $gapicClient->publish($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function publishChannelConnectionEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PublishChannelConnectionEventsResponse(); - $transport->addResponse($expectedResponse); - $request = new PublishChannelConnectionEventsRequest(); - $response = $gapicClient->publishChannelConnectionEvents($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.eventarc.publishing.v1.Publisher/PublishChannelConnectionEvents', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function publishChannelConnectionEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 PublishChannelConnectionEventsRequest(); - try { - $gapicClient->publishChannelConnectionEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function publishEventsTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PublishEventsResponse(); - $transport->addResponse($expectedResponse); - $request = new PublishEventsRequest(); - $response = $gapicClient->publishEvents($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.eventarc.publishing.v1.Publisher/PublishEvents', $actualFuncCall); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function publishEventsExceptionTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - $status = new stdClass(); - $status->code = Code::DATA_LOSS; - $status->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 PublishEventsRequest(); - try { - $gapicClient->publishEvents($request); - // If the $gapicClient method call did not throw, fail the test - $this->fail('Expected an ApiException, but no exception was thrown.'); - } catch (ApiException $ex) { - $this->assertEquals($status->code, $ex->getCode()); - $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); - } - // Call popReceivedCalls to ensure the stub is exhausted - $transport->popReceivedCalls(); - $this->assertTrue($transport->isExhausted()); - } - - /** @test */ - public function publishAsyncTest() - { - $transport = $this->createTransport(); - $gapicClient = $this->createClient([ - 'transport' => $transport, - ]); - $this->assertTrue($transport->isExhausted()); - // Mock response - $expectedResponse = new PublishResponse(); - $transport->addResponse($expectedResponse); - // Mock request - $messageBus = 'messageBus-872787384'; - $request = (new PublishRequest()) - ->setMessageBus($messageBus); - $response = $gapicClient->publishAsync($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.eventarc.publishing.v1.Publisher/Publish', $actualFuncCall); - $actualValue = $actualRequestObject->getMessageBus(); - $this->assertProtobufEquals($messageBus, $actualValue); - $this->assertTrue($transport->isExhausted()); - } -}